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 LINUX_SYMBOLS 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
1513 echo "$as_me:$LINENO: checking metadata" >&5
1514 echo $ECHO_N "checking metadata... $ECHO_C" >&6
1517 _spl_ac_meta_got_file=no
1518 if test -f "$META"; then
1519 _spl_ac_meta_got_file=yes
1521 SPL_META_NAME=`perl -n\
1522 -e "BEGIN { \\$key=shift @ARGV; }"\
1523 -e "next unless s/^\s*\\$key[:=]//i;"\
1524 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1527 -e "s/^(['\"])(.*)\1/\\$2/;"\
1529 -e "END { print \\$val if defined \\$val; }"\
1530 '(?:NAME|PROJECT|PACKAGE)' $META`;
1531 if test -n "$SPL_META_NAME"; then
1533 cat >>confdefs.h <<_ACEOF
1534 #define SPL_META_NAME "$SPL_META_NAME"
1540 SPL_META_VERSION=`perl -n\
1541 -e "BEGIN { \\$key=shift @ARGV; }"\
1542 -e "next unless s/^\s*\\$key[:=]//i;"\
1543 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1546 -e "s/^(['\"])(.*)\1/\\$2/;"\
1548 -e "END { print \\$val if defined \\$val; }"\
1550 if test -n "$SPL_META_VERSION"; then
1552 cat >>confdefs.h <<_ACEOF
1553 #define SPL_META_VERSION "$SPL_META_VERSION"
1559 SPL_META_RELEASE=`perl -n\
1560 -e "BEGIN { \\$key=shift @ARGV; }"\
1561 -e "next unless s/^\s*\\$key[:=]//i;"\
1562 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1565 -e "s/^(['\"])(.*)\1/\\$2/;"\
1567 -e "END { print \\$val if defined \\$val; }"\
1569 if test -n "$SPL_META_RELEASE"; then
1571 cat >>confdefs.h <<_ACEOF
1572 #define SPL_META_RELEASE "$SPL_META_RELEASE"
1578 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
1579 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
1580 test -n "$SPL_META_RELEASE" &&
1581 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
1583 cat >>confdefs.h <<_ACEOF
1584 #define SPL_META_ALIAS "$SPL_META_ALIAS"
1590 SPL_META_DATA=`perl -n\
1591 -e "BEGIN { \\$key=shift @ARGV; }"\
1592 -e "next unless s/^\s*\\$key[:=]//i;"\
1593 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1596 -e "s/^(['\"])(.*)\1/\\$2/;"\
1598 -e "END { print \\$val if defined \\$val; }"\
1600 if test -n "$SPL_META_DATA"; then
1602 cat >>confdefs.h <<_ACEOF
1603 #define SPL_META_DATA "$SPL_META_DATA"
1609 SPL_META_AUTHOR=`perl -n\
1610 -e "BEGIN { \\$key=shift @ARGV; }"\
1611 -e "next unless s/^\s*\\$key[:=]//i;"\
1612 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1615 -e "s/^(['\"])(.*)\1/\\$2/;"\
1617 -e "END { print \\$val if defined \\$val; }"\
1619 if test -n "$SPL_META_AUTHOR"; then
1621 cat >>confdefs.h <<_ACEOF
1622 #define SPL_META_AUTHOR "$SPL_META_AUTHOR"
1629 SPL_META_LT_CURRENT=`perl -n\
1630 -e "BEGIN { \\$key=shift @ARGV; }"\
1631 -e "next unless s/^\s*\\$key[:=]//i;"\
1632 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1635 -e "s/^(['\"])(.*)\1/\\$2/;"\
1637 -e "END { print \\$val if defined \\$val; }"\
1638 'LT_CURRENT' $META`;
1639 SPL_META_LT_REVISION=`perl -n\
1640 -e "BEGIN { \\$key=shift @ARGV; }"\
1641 -e "next unless s/^\s*\\$key[:=]//i;"\
1642 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1645 -e "s/^(['\"])(.*)\1/\\$2/;"\
1647 -e "END { print \\$val if defined \\$val; }"\
1648 'LT_REVISION' $META`;
1649 SPL_META_LT_AGE=`perl -n\
1650 -e "BEGIN { \\$key=shift @ARGV; }"\
1651 -e "next unless s/^\s*\\$key[:=]//i;"\
1652 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1655 -e "s/^(['\"])(.*)\1/\\$2/;"\
1657 -e "END { print \\$val if defined \\$val; }"\
1659 if test -n "$SPL_META_LT_CURRENT" \
1660 -o -n "$SPL_META_LT_REVISION" \
1661 -o -n "$SPL_META_LT_AGE"; then
1662 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
1663 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
1664 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
1666 cat >>confdefs.h <<_ACEOF
1667 #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
1671 cat >>confdefs.h <<_ACEOF
1672 #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
1676 cat >>confdefs.h <<_ACEOF
1677 #define SPL_META_LT_AGE "$SPL_META_LT_AGE"
1686 echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
1687 echo "${ECHO_T}$_spl_ac_meta_got_file" >&6
1691 for ac_dir in config $srcdir/config; do
1692 if test -f $ac_dir/install-sh; then
1694 ac_install_sh="$ac_aux_dir/install-sh -c"
1696 elif test -f $ac_dir/install.sh; then
1698 ac_install_sh="$ac_aux_dir/install.sh -c"
1700 elif test -f $ac_dir/shtool; then
1702 ac_install_sh="$ac_aux_dir/shtool install -c"
1706 if test -z "$ac_aux_dir"; then
1707 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1708 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1709 { (exit 1); exit 1; }; }
1711 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1712 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1713 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1715 # Make sure we can run config.sub.
1716 $ac_config_sub sun4 >/dev/null 2>&1 ||
1717 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1718 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1719 { (exit 1); exit 1; }; }
1721 echo "$as_me:$LINENO: checking build system type" >&5
1722 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1723 if test "${ac_cv_build+set}" = set; then
1724 echo $ECHO_N "(cached) $ECHO_C" >&6
1726 ac_cv_build_alias=$build_alias
1727 test -z "$ac_cv_build_alias" &&
1728 ac_cv_build_alias=`$ac_config_guess`
1729 test -z "$ac_cv_build_alias" &&
1730 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1731 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1732 { (exit 1); exit 1; }; }
1733 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1734 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1735 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1736 { (exit 1); exit 1; }; }
1739 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1740 echo "${ECHO_T}$ac_cv_build" >&6
1742 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1743 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1744 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1747 echo "$as_me:$LINENO: checking host system type" >&5
1748 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1749 if test "${ac_cv_host+set}" = set; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 ac_cv_host_alias=$host_alias
1753 test -z "$ac_cv_host_alias" &&
1754 ac_cv_host_alias=$ac_cv_build_alias
1755 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1756 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1757 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1758 { (exit 1); exit 1; }; }
1761 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1762 echo "${ECHO_T}$ac_cv_host" >&6
1764 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1765 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1766 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1769 echo "$as_me:$LINENO: checking target system type" >&5
1770 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1771 if test "${ac_cv_target+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 ac_cv_target_alias=$target_alias
1775 test "x$ac_cv_target_alias" = "x" &&
1776 ac_cv_target_alias=$ac_cv_host_alias
1777 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1778 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1779 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1780 { (exit 1); exit 1; }; }
1783 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1784 echo "${ECHO_T}$ac_cv_target" >&6
1785 target=$ac_cv_target
1786 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1787 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1788 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1791 # The aliases save the names the user supplied, while $host etc.
1792 # will get canonicalized.
1793 test -n "$target_alias" &&
1794 test "$program_prefix$program_suffix$program_transform_name" = \
1796 program_prefix=${target_alias}-
1797 am__api_version="1.9"
1798 # Find a good install program. We prefer a C program (faster),
1799 # so one script is as good as another. But avoid the broken or
1800 # incompatible versions:
1801 # SysV /etc/install, /usr/sbin/install
1802 # SunOS /usr/etc/install
1803 # IRIX /sbin/install
1805 # AmigaOS /C/install, which installs bootblocks on floppy discs
1806 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1807 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1808 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1809 # OS/2's system install, which has a completely different semantic
1810 # ./install, which can be erroneously created by make from ./install.sh.
1811 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1812 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1813 if test -z "$INSTALL"; then
1814 if test "${ac_cv_path_install+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 test -z "$as_dir" && as_dir=.
1822 # Account for people who put trailing slashes in PATH elements.
1824 ./ | .// | /cC/* | \
1825 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1826 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1829 # OSF1 and SCO ODT 3.0 have their own names for install.
1830 # Don't use installbsd from OSF since it installs stuff as root
1832 for ac_prog in ginstall scoinst install; do
1833 for ac_exec_ext in '' $ac_executable_extensions; do
1834 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1835 if test $ac_prog = install &&
1836 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1837 # AIX install. It has an incompatible calling convention.
1839 elif test $ac_prog = install &&
1840 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1841 # program-specific install script used by HP pwplus--don't use.
1844 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1856 if test "${ac_cv_path_install+set}" = set; then
1857 INSTALL=$ac_cv_path_install
1859 # As a last resort, use the slow shell script. We don't cache a
1860 # path for INSTALL within a source directory, because that will
1861 # break other packages using the cache if that directory is
1862 # removed, or if the path is relative.
1863 INSTALL=$ac_install_sh
1866 echo "$as_me:$LINENO: result: $INSTALL" >&5
1867 echo "${ECHO_T}$INSTALL" >&6
1869 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1870 # It thinks the first close brace ends the variable substitution.
1871 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1873 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1875 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1877 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1878 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1881 echo timestamp > conftest.file
1882 # Do `set' in a subshell so we don't clobber the current shell's
1883 # arguments. Must try -L first in case configure is actually a
1884 # symlink; some systems play weird games with the mod time of symlinks
1885 # (eg FreeBSD returns the mod time of the symlink's containing
1888 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1889 if test "$*" = "X"; then
1891 set X `ls -t $srcdir/configure conftest.file`
1894 if test "$*" != "X $srcdir/configure conftest.file" \
1895 && test "$*" != "X conftest.file $srcdir/configure"; then
1897 # If neither matched, then we have a broken ls. This can happen
1898 # if, for instance, CONFIG_SHELL is bash and it inherits a
1899 # broken ls alias from the environment. This has actually
1900 # happened. Such a system could not be considered "sane".
1901 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1902 alias in your environment" >&5
1903 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1904 alias in your environment" >&2;}
1905 { (exit 1); exit 1; }; }
1908 test "$2" = conftest.file
1914 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1915 Check your system clock" >&5
1916 echo "$as_me: error: newly created file is older than distributed files!
1917 Check your system clock" >&2;}
1918 { (exit 1); exit 1; }; }
1920 echo "$as_me:$LINENO: result: yes" >&5
1921 echo "${ECHO_T}yes" >&6
1922 test "$program_prefix" != NONE &&
1923 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1924 # Use a double $ so make ignores it.
1925 test "$program_suffix" != NONE &&
1926 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1927 # Double any \ or $. echo might interpret backslashes.
1928 # By default was `s,x,x', remove it if useless.
1929 cat <<\_ACEOF >conftest.sed
1930 s/[\\$]/&&/g;s/;s,x,x,$//
1932 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1935 # expand $ac_aux_dir to an absolute path
1936 am_aux_dir=`cd $ac_aux_dir && pwd`
1938 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1939 # Use eval to expand $SHELL
1940 if eval "$MISSING --run true"; then
1941 am_missing_run="$MISSING --run "
1944 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1945 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1948 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1949 # We used to keeping the `.' as first argument, in order to
1950 # allow $(mkdir_p) to be used without argument. As in
1951 # $(mkdir_p) $(somedir)
1952 # where $(somedir) is conditionally defined. However this is wrong
1954 # 1. if the package is installed by a user who cannot write `.'
1955 # make install will fail,
1956 # 2. the above comment should most certainly read
1957 # $(mkdir_p) $(DESTDIR)$(somedir)
1958 # so it does not work when $(somedir) is undefined and
1959 # $(DESTDIR) is not.
1960 # To support the latter case, we have to write
1961 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1962 # so the `.' trick is pointless.
1963 mkdir_p='mkdir -p --'
1965 # On NextStep and OpenStep, the `mkdir' command does not
1966 # recognize any option. It will interpret all options as
1967 # directories to create, and then abort because `.' already
1969 for d in ./-p ./--version;
1971 test -d $d && rmdir $d
1973 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1974 if test -f "$ac_aux_dir/mkinstalldirs"; then
1975 mkdir_p='$(mkinstalldirs)'
1977 mkdir_p='$(install_sh) -d'
1981 for ac_prog in gawk mawk nawk awk
1983 # Extract the first word of "$ac_prog", so it can be a program name with args.
1984 set dummy $ac_prog; ac_word=$2
1985 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987 if test "${ac_cv_prog_AWK+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 if test -n "$AWK"; then
1991 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000 ac_cv_prog_AWK="$ac_prog"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010 if test -n "$AWK"; then
2011 echo "$as_me:$LINENO: result: $AWK" >&5
2012 echo "${ECHO_T}$AWK" >&6
2014 echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6
2018 test -n "$AWK" && break
2021 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2022 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2023 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2024 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 cat >conftest.make <<\_ACEOF
2029 @echo 'ac_maketemp="$(MAKE)"'
2031 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2032 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2033 if test -n "$ac_maketemp"; then
2034 eval ac_cv_prog_make_${ac_make}_set=yes
2036 eval ac_cv_prog_make_${ac_make}_set=no
2040 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2041 echo "$as_me:$LINENO: result: yes" >&5
2042 echo "${ECHO_T}yes" >&6
2045 echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6
2047 SET_MAKE="MAKE=${MAKE-make}"
2050 rm -rf .tst 2>/dev/null
2051 mkdir .tst 2>/dev/null
2052 if test -d .tst; then
2057 rmdir .tst 2>/dev/null
2059 # test to see if srcdir already configured
2060 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2061 test -f $srcdir/config.status; then
2062 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2063 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2064 { (exit 1); exit 1; }; }
2067 # test whether we have cygpath
2068 if test -z "$CYGPATH_W"; then
2069 if (cygpath --version) >/dev/null 2>/dev/null; then
2070 CYGPATH_W='cygpath -w'
2077 # Define the identity of the package.
2078 PACKAGE=$SPL_META_NAME
2079 VERSION=$SPL_META_VERSION
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE "$PACKAGE"
2087 cat >>confdefs.h <<_ACEOF
2088 #define VERSION "$VERSION"
2091 # Some tools Automake needs.
2093 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2096 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2099 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2102 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2105 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2107 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2109 # Installed binaries are usually stripped using `strip' when the user
2110 # run `make install-strip'. However `strip' might not be the right
2111 # tool to use in cross-compilation environments, therefore Automake
2112 # will honor the `STRIP' environment variable to overrule this program.
2113 if test "$cross_compiling" != no; then
2114 if test -n "$ac_tool_prefix"; then
2115 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2116 set dummy ${ac_tool_prefix}strip; ac_word=$2
2117 echo "$as_me:$LINENO: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119 if test "${ac_cv_prog_STRIP+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 if test -n "$STRIP"; then
2123 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 test -z "$as_dir" && as_dir=.
2130 for ac_exec_ext in '' $ac_executable_extensions; do
2131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 STRIP=$ac_cv_prog_STRIP
2142 if test -n "$STRIP"; then
2143 echo "$as_me:$LINENO: result: $STRIP" >&5
2144 echo "${ECHO_T}$STRIP" >&6
2146 echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6
2151 if test -z "$ac_cv_prog_STRIP"; then
2153 # Extract the first word of "strip", so it can be a program name with args.
2154 set dummy strip; ac_word=$2
2155 echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2157 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 if test -n "$ac_ct_STRIP"; then
2161 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2170 ac_cv_prog_ac_ct_STRIP="strip"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2180 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2181 if test -n "$ac_ct_STRIP"; then
2182 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2183 echo "${ECHO_T}$ac_ct_STRIP" >&6
2185 echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6
2191 STRIP="$ac_cv_prog_STRIP"
2195 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2197 # We need awk for the "check" target. The system "awk" is bad on
2199 # Always define AMTAR for backward compatibility.
2201 AMTAR=${AMTAR-"${am_missing_run}tar"}
2203 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2209 ac_config_headers="$ac_config_headers spl_config.h"
2213 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2214 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2215 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2216 if test "${enable_maintainer_mode+set}" = set; then
2217 enableval="$enable_maintainer_mode"
2218 USE_MAINTAINER_MODE=$enableval
2220 USE_MAINTAINER_MODE=no
2222 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2223 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2226 if test $USE_MAINTAINER_MODE = yes; then
2227 MAINTAINER_MODE_TRUE=
2228 MAINTAINER_MODE_FALSE='#'
2230 MAINTAINER_MODE_TRUE='#'
2231 MAINTAINER_MODE_FALSE=
2234 MAINT=$MAINTAINER_MODE_TRUE
2238 # Find a good install program. We prefer a C program (faster),
2239 # so one script is as good as another. But avoid the broken or
2240 # incompatible versions:
2241 # SysV /etc/install, /usr/sbin/install
2242 # SunOS /usr/etc/install
2243 # IRIX /sbin/install
2245 # AmigaOS /C/install, which installs bootblocks on floppy discs
2246 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2247 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2248 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2249 # OS/2's system install, which has a completely different semantic
2250 # ./install, which can be erroneously created by make from ./install.sh.
2251 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2252 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2253 if test -z "$INSTALL"; then
2254 if test "${ac_cv_path_install+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 test -z "$as_dir" && as_dir=.
2262 # Account for people who put trailing slashes in PATH elements.
2264 ./ | .// | /cC/* | \
2265 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2266 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2269 # OSF1 and SCO ODT 3.0 have their own names for install.
2270 # Don't use installbsd from OSF since it installs stuff as root
2272 for ac_prog in ginstall scoinst install; do
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2275 if test $ac_prog = install &&
2276 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2277 # AIX install. It has an incompatible calling convention.
2279 elif test $ac_prog = install &&
2280 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2281 # program-specific install script used by HP pwplus--don't use.
2284 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2296 if test "${ac_cv_path_install+set}" = set; then
2297 INSTALL=$ac_cv_path_install
2299 # As a last resort, use the slow shell script. We don't cache a
2300 # path for INSTALL within a source directory, because that will
2301 # break other packages using the cache if that directory is
2302 # removed, or if the path is relative.
2303 INSTALL=$ac_install_sh
2306 echo "$as_me:$LINENO: result: $INSTALL" >&5
2307 echo "${ECHO_T}$INSTALL" >&6
2309 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2310 # It thinks the first close brace ends the variable substitution.
2311 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2313 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2315 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2318 ac_cpp='$CPP $CPPFLAGS'
2319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322 if test -n "$ac_tool_prefix"; then
2323 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2324 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2325 echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2327 if test "${ac_cv_prog_CC+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 if test -n "$CC"; then
2331 ac_cv_prog_CC="$CC" # Let the user override the test.
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 if test -n "$CC"; then
2351 echo "$as_me:$LINENO: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6
2354 echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2359 if test -z "$ac_cv_prog_CC"; then
2361 # Extract the first word of "gcc", so it can be a program name with args.
2362 set dummy gcc; ac_word=$2
2363 echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2365 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 if test -n "$ac_ct_CC"; then
2369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2378 ac_cv_prog_ac_ct_CC="gcc"
2379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2388 if test -n "$ac_ct_CC"; then
2389 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2390 echo "${ECHO_T}$ac_ct_CC" >&6
2392 echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6
2401 if test -z "$CC"; then
2402 if test -n "$ac_tool_prefix"; then
2403 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2404 set dummy ${ac_tool_prefix}cc; ac_word=$2
2405 echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2407 if test "${ac_cv_prog_CC+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 if test -n "$CC"; then
2411 ac_cv_prog_CC="$CC" # Let the user override the test.
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2420 ac_cv_prog_CC="${ac_tool_prefix}cc"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 if test -n "$CC"; then
2431 echo "$as_me:$LINENO: result: $CC" >&5
2432 echo "${ECHO_T}$CC" >&6
2434 echo "$as_me:$LINENO: result: no" >&5
2435 echo "${ECHO_T}no" >&6
2439 if test -z "$ac_cv_prog_CC"; then
2441 # Extract the first word of "cc", so it can be a program name with args.
2442 set dummy cc; ac_word=$2
2443 echo "$as_me:$LINENO: checking for $ac_word" >&5
2444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 if test -n "$ac_ct_CC"; then
2449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458 ac_cv_prog_ac_ct_CC="cc"
2459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2468 if test -n "$ac_ct_CC"; then
2469 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2470 echo "${ECHO_T}$ac_ct_CC" >&6
2472 echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6
2482 if test -z "$CC"; then
2483 # Extract the first word of "cc", so it can be a program name with args.
2484 set dummy cc; ac_word=$2
2485 echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2487 if test "${ac_cv_prog_CC+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 if test -n "$CC"; then
2491 ac_cv_prog_CC="$CC" # Let the user override the test.
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2502 ac_prog_rejected=yes
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 if test $ac_prog_rejected = yes; then
2513 # We found a bogon in the path, so make sure we never use it.
2514 set dummy $ac_cv_prog_CC
2516 if test $# != 0; then
2517 # We chose a different compiler from the bogus one.
2518 # However, it has the same basename, so the bogon will be chosen
2519 # first if we set CC to just the basename; use the full file name.
2521 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2527 if test -n "$CC"; then
2528 echo "$as_me:$LINENO: result: $CC" >&5
2529 echo "${ECHO_T}$CC" >&6
2531 echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6
2536 if test -z "$CC"; then
2537 if test -n "$ac_tool_prefix"; then
2540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2542 echo "$as_me:$LINENO: checking for $ac_word" >&5
2543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2544 if test "${ac_cv_prog_CC+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 if test -n "$CC"; then
2548 ac_cv_prog_CC="$CC" # Let the user override the test.
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 test -z "$as_dir" && as_dir=.
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2557 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 if test -n "$CC"; then
2568 echo "$as_me:$LINENO: result: $CC" >&5
2569 echo "${ECHO_T}$CC" >&6
2571 echo "$as_me:$LINENO: result: no" >&5
2572 echo "${ECHO_T}no" >&6
2575 test -n "$CC" && break
2578 if test -z "$CC"; then
2582 # Extract the first word of "$ac_prog", so it can be a program name with args.
2583 set dummy $ac_prog; ac_word=$2
2584 echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 if test -n "$ac_ct_CC"; then
2590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2599 ac_cv_prog_ac_ct_CC="$ac_prog"
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2609 if test -n "$ac_ct_CC"; then
2610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2611 echo "${ECHO_T}$ac_ct_CC" >&6
2613 echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6
2617 test -n "$ac_ct_CC" && break
2626 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2627 See \`config.log' for more details." >&5
2628 echo "$as_me: error: no acceptable C compiler found in \$PATH
2629 See \`config.log' for more details." >&2;}
2630 { (exit 1); exit 1; }; }
2632 # Provide some information about the compiler.
2633 echo "$as_me:$LINENO:" \
2634 "checking for C compiler version" >&5
2635 ac_compiler=`set X $ac_compile; echo $2`
2636 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2637 (eval $ac_compiler --version </dev/null >&5) 2>&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }
2641 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2642 (eval $ac_compiler -v </dev/null >&5) 2>&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }
2646 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2647 (eval $ac_compiler -V </dev/null >&5) 2>&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }
2652 cat >conftest.$ac_ext <<_ACEOF
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h. */
2667 ac_clean_files_save=$ac_clean_files
2668 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2669 # Try to create an executable without -o first, disregard a.out.
2670 # It will help us diagnose broken compilers, and finding out an intuition
2672 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2673 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2674 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2675 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2676 (eval $ac_link_default) 2>&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; then
2680 # Find the output, starting from the most likely. This scheme is
2681 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2684 # Be careful to initialize this variable, since it used to be cached.
2685 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2687 # b.out is created by i960 compilers.
2688 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2690 test -f "$ac_file" || continue
2692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2695 # This is the source file.
2698 # We found the default executable, but exeext='' is most
2702 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2703 # FIXME: I believe we export ac_cv_exeext for Libtool,
2704 # but it would be cool to find out if it's true. Does anybody
2705 # maintain Libtool? --akim.
2713 echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2716 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2717 See \`config.log' for more details." >&5
2718 echo "$as_me: error: C compiler cannot create executables
2719 See \`config.log' for more details." >&2;}
2720 { (exit 77); exit 77; }; }
2723 ac_exeext=$ac_cv_exeext
2724 echo "$as_me:$LINENO: result: $ac_file" >&5
2725 echo "${ECHO_T}$ac_file" >&6
2727 # Check the compiler produces executables we can run. If not, either
2728 # the compiler is broken, or we cross compile.
2729 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2730 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2731 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2732 # If not cross compiling, check that we can run a simple program.
2733 if test "$cross_compiling" != yes; then
2734 if { ac_try='./$ac_file'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2742 if test "$cross_compiling" = maybe; then
2745 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2746 If you meant to cross compile, use \`--host'.
2747 See \`config.log' for more details." >&5
2748 echo "$as_me: error: cannot run C compiled programs.
2749 If you meant to cross compile, use \`--host'.
2750 See \`config.log' for more details." >&2;}
2751 { (exit 1); exit 1; }; }
2755 echo "$as_me:$LINENO: result: yes" >&5
2756 echo "${ECHO_T}yes" >&6
2758 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2759 ac_clean_files=$ac_clean_files_save
2760 # Check the compiler produces executables we can run. If not, either
2761 # the compiler is broken, or we cross compile.
2762 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2763 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2764 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2765 echo "${ECHO_T}$cross_compiling" >&6
2767 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2768 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2770 (eval $ac_link) 2>&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }; then
2774 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2775 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2776 # work properly (i.e., refer to `conftest.exe'), while it won't with
2778 for ac_file in conftest.exe conftest conftest.*; do
2779 test -f "$ac_file" || continue
2781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2782 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2789 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2790 See \`config.log' for more details." >&5
2791 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2792 See \`config.log' for more details." >&2;}
2793 { (exit 1); exit 1; }; }
2796 rm -f conftest$ac_cv_exeext
2797 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2798 echo "${ECHO_T}$ac_cv_exeext" >&6
2800 rm -f conftest.$ac_ext
2801 EXEEXT=$ac_cv_exeext
2803 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2804 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2805 if test "${ac_cv_objext+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 cat >conftest.$ac_ext <<_ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h. */
2823 rm -f conftest.o conftest.obj
2824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825 (eval $ac_compile) 2>&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; then
2829 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2832 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2840 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2841 See \`config.log' for more details." >&5
2842 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2843 See \`config.log' for more details." >&2;}
2844 { (exit 1); exit 1; }; }
2847 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2849 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2850 echo "${ECHO_T}$ac_cv_objext" >&6
2851 OBJEXT=$ac_cv_objext
2853 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2854 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2855 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 cat >conftest.$ac_ext <<_ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2876 rm -f conftest.$ac_objext
2877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2878 (eval $ac_compile) 2>conftest.er1
2880 grep -v '^ *+' conftest.er1 >conftest.err
2882 cat conftest.err >&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } &&
2885 { ac_try='test -z "$ac_c_werror_flag"
2886 || test ! -s conftest.err'
2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; } &&
2892 { ac_try='test -s conftest.$ac_objext'
2893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; }; then
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2906 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2909 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2910 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2911 GCC=`test $ac_compiler_gnu = yes && echo yes`
2912 ac_test_CFLAGS=${CFLAGS+set}
2913 ac_save_CFLAGS=$CFLAGS
2915 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2916 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2917 if test "${ac_cv_prog_cc_g+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 cat >conftest.$ac_ext <<_ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2935 rm -f conftest.$ac_objext
2936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2937 (eval $ac_compile) 2>conftest.er1
2939 grep -v '^ *+' conftest.er1 >conftest.err
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -z "$ac_c_werror_flag"
2945 || test ! -s conftest.err'
2946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; } &&
2951 { ac_try='test -s conftest.$ac_objext'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; }; then
2959 echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2966 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2967 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2968 if test "$ac_test_CFLAGS" = set; then
2969 CFLAGS=$ac_save_CFLAGS
2970 elif test $ac_cv_prog_cc_g = yes; then
2971 if test "$GCC" = yes; then
2977 if test "$GCC" = yes; then
2983 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2984 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2985 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 ac_cv_prog_cc_stdc=no
2990 cat >conftest.$ac_ext <<_ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
2998 #include <sys/types.h>
2999 #include <sys/stat.h>
3000 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3001 struct buf { int x; };
3002 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3003 static char *e (p, i)
3009 static char *f (char * (*g) (char **, int), char **p, ...)
3014 s = g (p, va_arg (v,int));
3019 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3020 function prototypes and stuff, but not '\xHH' hex character constants.
3021 These don't provoke an error unfortunately, instead are silently treated
3022 as 'x'. The following induces an error, until -std1 is added to get
3023 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3024 array size at least. It's necessary to write '\x00'==0 to get something
3025 that's true only with -std1. */
3026 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3028 int test (int i, double x);
3029 struct s1 {int (*f) (int a);};
3030 struct s2 {int (*f) (double a);};
3031 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3037 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3042 # Don't try gcc -ansi; that turns off useful extensions and
3043 # breaks some systems' header files.
3044 # AIX -qlanglvl=ansi
3045 # Ultrix and OSF/1 -std1
3046 # HP-UX 10.20 and later -Ae
3047 # HP-UX older versions -Aa -D_HPUX_SOURCE
3048 # SVR4 -Xc -D__EXTENSIONS__
3049 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3051 CC="$ac_save_CC $ac_arg"
3052 rm -f conftest.$ac_objext
3053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3054 (eval $ac_compile) 2>conftest.er1
3056 grep -v '^ *+' conftest.er1 >conftest.err
3058 cat conftest.err >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } &&
3061 { ac_try='test -z "$ac_c_werror_flag"
3062 || test ! -s conftest.err'
3063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; } &&
3068 { ac_try='test -s conftest.$ac_objext'
3069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; }; then
3074 ac_cv_prog_cc_stdc=$ac_arg
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3081 rm -f conftest.err conftest.$ac_objext
3083 rm -f conftest.$ac_ext conftest.$ac_objext
3088 case "x$ac_cv_prog_cc_stdc" in
3090 echo "$as_me:$LINENO: result: none needed" >&5
3091 echo "${ECHO_T}none needed" >&6 ;;
3093 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3094 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3095 CC="$CC $ac_cv_prog_cc_stdc" ;;
3098 # Some people use a C++ compiler to compile C. Since we use `exit',
3099 # in C++ we need to declare it. In case someone uses the same compiler
3100 # for both compiling C and C++ we need to have the C++ compiler decide
3101 # the declaration of exit, since it's the most demanding environment.
3102 cat >conftest.$ac_ext <<_ACEOF
3107 rm -f conftest.$ac_objext
3108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3109 (eval $ac_compile) 2>conftest.er1
3111 grep -v '^ *+' conftest.er1 >conftest.err
3113 cat conftest.err >&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } &&
3116 { ac_try='test -z "$ac_c_werror_flag"
3117 || test ! -s conftest.err'
3118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; }; then
3129 for ac_declaration in \
3131 'extern "C" void std::exit (int) throw (); using std::exit;' \
3132 'extern "C" void std::exit (int); using std::exit;' \
3133 'extern "C" void exit (int) throw ();' \
3134 'extern "C" void exit (int);' \
3137 cat >conftest.$ac_ext <<_ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3153 rm -f conftest.$ac_objext
3154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155 (eval $ac_compile) 2>conftest.er1
3157 grep -v '^ *+' conftest.er1 >conftest.err
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -z "$ac_c_werror_flag"
3163 || test ! -s conftest.err'
3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; } &&
3169 { ac_try='test -s conftest.$ac_objext'
3170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3183 cat >conftest.$ac_ext <<_ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3198 rm -f conftest.$ac_objext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200 (eval $ac_compile) 2>conftest.er1
3202 grep -v '^ *+' conftest.er1 >conftest.err
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -z "$ac_c_werror_flag"
3208 || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3229 if test -n "$ac_declaration"; then
3230 echo '#ifdef __cplusplus' >>confdefs.h
3231 echo $ac_declaration >>confdefs.h
3232 echo '#endif' >>confdefs.h
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3242 ac_cpp='$CPP $CPPFLAGS'
3243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246 DEPDIR="${am__leading_dot}deps"
3248 ac_config_commands="$ac_config_commands depfiles"
3251 am_make=${MAKE-make}
3252 cat > confinc << 'END'
3257 # If we don't find an include directive, just comment out the code.
3258 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3259 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3263 # First try GNU make style include.
3264 echo "include confinc" > confmf
3265 # We grep out `Entering directory' and `Leaving directory'
3266 # messages which can occur if `w' ends up in MAKEFLAGS.
3267 # In particular we don't look at `^make:' because GNU make might
3268 # be invoked under some other name (usually "gmake"), in which
3269 # case it prints its new name instead of `make'.
3270 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3275 # Now try BSD make style include.
3276 if test "$am__include" = "#"; then
3277 echo '.include "confinc"' > confmf
3278 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3279 am__include=.include
3286 echo "$as_me:$LINENO: result: $_am_result" >&5
3287 echo "${ECHO_T}$_am_result" >&6
3288 rm -f confinc confmf
3290 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3291 if test "${enable_dependency_tracking+set}" = set; then
3292 enableval="$enable_dependency_tracking"
3295 if test "x$enable_dependency_tracking" != xno; then
3296 am_depcomp="$ac_aux_dir/depcomp"
3301 if test "x$enable_dependency_tracking" != xno; then
3312 depcc="$CC" am_compiler_list=
3314 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3315 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3316 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3320 # We make a subdir and do the tests there. Otherwise we can end up
3321 # making bogus files that we don't know about and never remove. For
3322 # instance it was reported that on HP-UX the gcc test will end up
3323 # making a dummy file named `D' -- because `-MD' means `put the output
3326 # Copy depcomp to subdir because otherwise we won't find it if we're
3327 # using a relative directory.
3328 cp "$am_depcomp" conftest.dir
3330 # We will build objects and dependencies in a subdirectory because
3331 # it helps to detect inapplicable dependency modes. For instance
3332 # both Tru64's cc and ICC support -MD to output dependencies as a
3333 # side effect of compilation, but ICC will put the dependencies in
3334 # the current directory while Tru64 will put them in the object
3338 am_cv_CC_dependencies_compiler_type=none
3339 if test "$am_compiler_list" = ""; then
3340 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3342 for depmode in $am_compiler_list; do
3343 # Setup a source with many dependencies, because some compilers
3344 # like to wrap large dependency lists on column 80 (with \), and
3345 # we should not choose a depcomp mode which is confused by this.
3347 # We need to recreate these files for each test, as the compiler may
3348 # overwrite some of them when testing with obscure command lines.
3349 # This happens at least with the AIX C compiler.
3351 for i in 1 2 3 4 5 6; do
3352 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3353 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3354 # Solaris 8's {/usr,}/bin/sh.
3355 touch sub/conftst$i.h
3357 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3361 # after this tag, mechanisms are not by side-effect, so they'll
3362 # only be used when explicitly requested
3363 if test "x$enable_dependency_tracking" = xyes; then
3371 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3372 # mode. It turns out that the SunPro C++ compiler does not properly
3373 # handle `-M -o', and we need to detect this.
3374 if depmode=$depmode \
3375 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3376 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3377 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3378 >/dev/null 2>conftest.err &&
3379 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3380 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3381 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3382 # icc doesn't choke on unknown options, it will just issue warnings
3383 # or remarks (even with -Werror). So we grep stderr for any message
3384 # that says an option was ignored or not supported.
3385 # When given -MP, icc 7.0 and 7.1 complain thusly:
3386 # icc: Command line warning: ignoring option '-M'; no argument required
3387 # The diagnosis changed in icc 8.0:
3388 # icc: Command line remark: option '-MP' not supported
3389 if (grep 'ignoring option' conftest.err ||
3390 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3391 am_cv_CC_dependencies_compiler_type=$depmode
3400 am_cv_CC_dependencies_compiler_type=none
3404 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3405 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3406 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3411 test "x$enable_dependency_tracking" != xno \
3412 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3414 am__fastdepCC_FALSE='#'
3416 am__fastdepCC_TRUE='#'
3417 am__fastdepCC_FALSE=
3421 # Check whether --enable-shared or --disable-shared was given.
3422 if test "${enable_shared+set}" = set; then
3423 enableval="$enable_shared"
3424 p=${PACKAGE-default}
3426 yes) enable_shared=yes ;;
3427 no) enable_shared=no ;;
3430 # Look at the argument we got. We use all the common list separators.
3431 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3432 for pkg in $enableval; do
3434 if test "X$pkg" = "X$p"; then
3445 # Check whether --enable-static or --disable-static was given.
3446 if test "${enable_static+set}" = set; then
3447 enableval="$enable_static"
3448 p=${PACKAGE-default}
3450 yes) enable_static=yes ;;
3451 no) enable_static=no ;;
3454 # Look at the argument we got. We use all the common list separators.
3455 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3456 for pkg in $enableval; do
3458 if test "X$pkg" = "X$p"; then
3469 # Check whether --enable-fast-install or --disable-fast-install was given.
3470 if test "${enable_fast_install+set}" = set; then
3471 enableval="$enable_fast_install"
3472 p=${PACKAGE-default}
3474 yes) enable_fast_install=yes ;;
3475 no) enable_fast_install=no ;;
3477 enable_fast_install=no
3478 # Look at the argument we got. We use all the common list separators.
3479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3480 for pkg in $enableval; do
3482 if test "X$pkg" = "X$p"; then
3483 enable_fast_install=yes
3490 enable_fast_install=yes
3493 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3494 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3495 if test "${lt_cv_path_SED+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 # Loop through the user's path and test for sed and gsed.
3499 # Then use that list of sed's as ones to test for truncation.
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 test -z "$as_dir" && as_dir=.
3505 for lt_ac_prog in sed gsed; do
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3508 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3516 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3517 # along with /bin/sed that truncates output.
3518 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3519 test ! -f $lt_ac_sed && continue
3520 cat /dev/null > conftest.in
3522 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3523 # Check for GNU sed and select it if it is found.
3524 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3525 lt_cv_path_SED=$lt_ac_sed
3529 cat conftest.in conftest.in >conftest.tmp
3530 mv conftest.tmp conftest.in
3531 cp conftest.in conftest.nl
3533 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3534 cmp -s conftest.out conftest.nl || break
3535 # 10000 chars as input seems more than enough
3536 test $lt_ac_count -gt 10 && break
3537 lt_ac_count=`expr $lt_ac_count + 1`
3538 if test $lt_ac_count -gt $lt_ac_max; then
3539 lt_ac_max=$lt_ac_count
3540 lt_cv_path_SED=$lt_ac_sed
3549 echo "$as_me:$LINENO: result: $SED" >&5
3550 echo "${ECHO_T}$SED" >&6
3552 echo "$as_me:$LINENO: checking for egrep" >&5
3553 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3554 if test "${ac_cv_prog_egrep+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3558 then ac_cv_prog_egrep='grep -E'
3559 else ac_cv_prog_egrep='egrep'
3562 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3563 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3564 EGREP=$ac_cv_prog_egrep
3568 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3569 if test "${with_gnu_ld+set}" = set; then
3570 withval="$with_gnu_ld"
3571 test "$withval" = no || with_gnu_ld=yes
3576 if test "$GCC" = yes; then
3577 # Check if gcc -print-prog-name=ld gives a path.
3578 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3579 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3582 # gcc leaves a trailing carriage return which upsets mingw
3583 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3585 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3588 # Accept absolute paths.
3590 re_direlt='/[^/][^/]*/\.\./'
3591 # Canonicalize the pathname of ld
3592 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3593 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3594 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3596 test -z "$LD" && LD="$ac_prog"
3599 # If it fails, then pretend we aren't using GCC.
3603 # If it is relative, then search for the first ld in PATH.
3607 elif test "$with_gnu_ld" = yes; then
3608 echo "$as_me:$LINENO: checking for GNU ld" >&5
3609 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3611 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3612 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3614 if test "${lt_cv_path_LD+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 if test -z "$LD"; then
3618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3619 for ac_dir in $PATH; do
3621 test -z "$ac_dir" && ac_dir=.
3622 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3623 lt_cv_path_LD="$ac_dir/$ac_prog"
3624 # Check to see if the program is GNU ld. I'd rather use --version,
3625 # but apparently some variants of GNU ld only accept -v.
3626 # Break only if it was the GNU/non-GNU ld that we prefer.
3627 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3628 *GNU* | *'with BFD'*)
3629 test "$with_gnu_ld" != no && break
3632 test "$with_gnu_ld" != yes && break
3639 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3644 if test -n "$LD"; then
3645 echo "$as_me:$LINENO: result: $LD" >&5
3646 echo "${ECHO_T}$LD" >&6
3648 echo "$as_me:$LINENO: result: no" >&5
3649 echo "${ECHO_T}no" >&6
3651 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3652 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3653 { (exit 1); exit 1; }; }
3654 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3655 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3656 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3660 case `$LD -v 2>&1 </dev/null` in
3661 *GNU* | *'with BFD'*)
3662 lt_cv_prog_gnu_ld=yes
3665 lt_cv_prog_gnu_ld=no
3669 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3670 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3671 with_gnu_ld=$lt_cv_prog_gnu_ld
3674 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3675 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3676 if test "${lt_cv_ld_reload_flag+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 lt_cv_ld_reload_flag='-r'
3681 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3682 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3683 reload_flag=$lt_cv_ld_reload_flag
3684 case $reload_flag in
3686 *) reload_flag=" $reload_flag" ;;
3688 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3691 if test "$GCC" = yes; then
3692 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3694 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3699 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3700 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3701 if test "${lt_cv_path_NM+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 if test -n "$NM"; then
3705 # Let the user override the test.
3708 lt_nm_to_check="${ac_tool_prefix}nm"
3709 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3710 lt_nm_to_check="$lt_nm_to_check nm"
3712 for lt_tmp_nm in $lt_nm_to_check; do
3713 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3714 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3716 test -z "$ac_dir" && ac_dir=.
3717 tmp_nm="$ac_dir/$lt_tmp_nm"
3718 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3719 # Check to see if the nm accepts a BSD-compat flag.
3720 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3721 # nm: unknown option "B" ignored
3722 # Tru64's nm complains that /dev/null is an invalid object file
3723 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3724 */dev/null* | *'Invalid file or object type'*)
3725 lt_cv_path_NM="$tmp_nm -B"
3729 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3731 lt_cv_path_NM="$tmp_nm -p"
3735 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3736 continue # so that we can try to find one that supports BSD flags
3745 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3748 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3749 echo "${ECHO_T}$lt_cv_path_NM" >&6
3752 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3753 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3755 if test "$LN_S" = "ln -s"; then
3756 echo "$as_me:$LINENO: result: yes" >&5
3757 echo "${ECHO_T}yes" >&6
3759 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3760 echo "${ECHO_T}no, using $LN_S" >&6
3763 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3764 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3765 if test "${lt_cv_deplibs_check_method+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 lt_cv_file_magic_cmd='$MAGIC_CMD'
3769 lt_cv_file_magic_test_file=
3770 lt_cv_deplibs_check_method='unknown'
3771 # Need to set the preceding variable on all platforms that support
3772 # interlibrary dependencies.
3773 # 'none' -- dependencies not supported.
3774 # `unknown' -- same as none, but documents that we really don't know.
3775 # 'pass_all' -- all dependencies passed with no checks.
3776 # 'test_compile' -- check by making test program.
3777 # 'file_magic [[regex]]' -- check by looking for files in library path
3778 # which responds to the $file_magic_cmd with a given extended regex.
3779 # If you have `file' or equivalent on your system and you're not sure
3780 # whether `pass_all' will *always* work, you probably want this one.
3784 lt_cv_deplibs_check_method=pass_all
3788 lt_cv_deplibs_check_method=pass_all
3792 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3793 lt_cv_file_magic_cmd='/usr/bin/file -L'
3794 lt_cv_file_magic_test_file=/shlib/libc.so
3798 # func_win32_libid is a shell function defined in ltmain.sh
3799 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3800 lt_cv_file_magic_cmd='func_win32_libid'
3804 # Base MSYS/MinGW do not provide the 'file' command needed by
3805 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3806 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3807 lt_cv_file_magic_cmd='$OBJDUMP -f'
3810 darwin* | rhapsody*)
3811 lt_cv_deplibs_check_method=pass_all
3814 freebsd* | kfreebsd*-gnu | dragonfly*)
3815 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3818 # Not sure whether the presence of OpenBSD here was a mistake.
3819 # Let's accept both of them until this is cleared up.
3820 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3821 lt_cv_file_magic_cmd=/usr/bin/file
3822 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3826 lt_cv_deplibs_check_method=pass_all
3831 lt_cv_deplibs_check_method=pass_all
3834 hpux10.20* | hpux11*)
3835 lt_cv_file_magic_cmd=/usr/bin/file
3838 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3839 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3842 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]'
3843 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3846 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3847 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3853 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3854 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3857 irix5* | irix6* | nonstopux*)
3859 *-32|*"-32 ") libmagic=32-bit;;
3860 *-n32|*"-n32 ") libmagic=N32;;
3861 *-64|*"-64 ") libmagic=64-bit;;
3862 *) libmagic=never-match;;
3864 lt_cv_deplibs_check_method=pass_all
3867 # This must be Linux ELF.
3869 lt_cv_deplibs_check_method=pass_all
3873 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3874 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3881 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3882 lt_cv_file_magic_cmd=/usr/bin/file
3883 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3887 lt_cv_deplibs_check_method=unknown
3891 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3898 osf3* | osf4* | osf5*)
3899 lt_cv_deplibs_check_method=pass_all
3903 lt_cv_deplibs_check_method=pass_all
3907 case $host_vendor in
3909 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]'
3910 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3913 lt_cv_deplibs_check_method=pass_all
3916 lt_cv_file_magic_cmd='/bin/file'
3917 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3920 lt_cv_file_magic_cmd='/bin/file'
3921 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3922 lt_cv_file_magic_test_file=/lib/libc.so
3925 lt_cv_deplibs_check_method=pass_all
3928 lt_cv_deplibs_check_method=pass_all
3933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3934 lt_cv_deplibs_check_method=pass_all
3939 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3940 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3941 file_magic_cmd=$lt_cv_file_magic_cmd
3942 deplibs_check_method=$lt_cv_deplibs_check_method
3943 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3948 # If no C compiler was specified, use CC.
3951 # If no C compiler flags were specified, use CFLAGS.
3952 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3954 # Allow CC to be a program name with arguments.
3958 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3959 if test "${enable_libtool_lock+set}" = set; then
3960 enableval="$enable_libtool_lock"
3963 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3965 # Some flags need to be propagated to the compiler or linker for good
3969 # Find out which ABI we are using.
3970 echo 'int i;' > conftest.$ac_ext
3971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3972 (eval $ac_compile) 2>&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; then
3976 case `/usr/bin/file conftest.$ac_objext` in
3988 # Find out which ABI we are using.
3989 echo '#line 3989 "configure"' > conftest.$ac_ext
3990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3991 (eval $ac_compile) 2>&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; then
3995 if test "$lt_cv_prog_gnu_ld" = yes; then
3996 case `/usr/bin/file conftest.$ac_objext` in
3998 LD="${LD-ld} -melf32bsmip"
4001 LD="${LD-ld} -melf32bmipn32"
4004 LD="${LD-ld} -melf64bmip"
4008 case `/usr/bin/file conftest.$ac_objext` in
4024 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4025 # Find out which ABI we are using.
4026 echo 'int i;' > conftest.$ac_ext
4027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028 (eval $ac_compile) 2>&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; then
4032 case `/usr/bin/file conftest.o` in
4036 LD="${LD-ld} -m elf_i386"
4038 ppc64-*linux*|powerpc64-*linux*)
4039 LD="${LD-ld} -m elf32ppclinux"
4042 LD="${LD-ld} -m elf_s390"
4045 LD="${LD-ld} -m elf32_sparc"
4052 LD="${LD-ld} -m elf_x86_64"
4054 ppc*-*linux*|powerpc*-*linux*)
4055 LD="${LD-ld} -m elf64ppc"
4058 LD="${LD-ld} -m elf64_s390"
4061 LD="${LD-ld} -m elf64_sparc"
4071 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4072 SAVE_CFLAGS="$CFLAGS"
4073 CFLAGS="$CFLAGS -belf"
4074 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4075 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4076 if test "${lt_cv_cc_needs_belf+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 ac_cpp='$CPP $CPPFLAGS'
4081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085 cat >conftest.$ac_ext <<_ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4100 rm -f conftest.$ac_objext conftest$ac_exeext
4101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4102 (eval $ac_link) 2>conftest.er1
4104 grep -v '^ *+' conftest.er1 >conftest.err
4106 cat conftest.err >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } &&
4109 { ac_try='test -z "$ac_c_werror_flag"
4110 || test ! -s conftest.err'
4111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); }; } &&
4116 { ac_try='test -s conftest$ac_exeext'
4117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; }; then
4122 lt_cv_cc_needs_belf=yes
4124 echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4127 lt_cv_cc_needs_belf=no
4129 rm -f conftest.err conftest.$ac_objext \
4130 conftest$ac_exeext conftest.$ac_ext
4132 ac_cpp='$CPP $CPPFLAGS'
4133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4139 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4140 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4141 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4142 CFLAGS="$SAVE_CFLAGS"
4146 # Find out which ABI we are using.
4147 echo 'int i;' > conftest.$ac_ext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4149 (eval $ac_compile) 2>&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; then
4153 case `/usr/bin/file conftest.o` in
4155 case $lt_cv_prog_gnu_ld in
4156 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4157 *) LD="${LD-ld} -64" ;;
4168 need_locks="$enable_libtool_lock"
4172 ac_cpp='$CPP $CPPFLAGS'
4173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4176 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4177 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4178 # On Suns, sometimes $CPP names a directory.
4179 if test -n "$CPP" && test -d "$CPP"; then
4182 if test -z "$CPP"; then
4183 if test "${ac_cv_prog_CPP+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 # Double quotes because CPP needs to be expanded
4187 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4190 for ac_c_preproc_warn_flag in '' yes
4192 # Use a header file that comes with gcc, so configuring glibc
4193 # with a fresh cross-compiler works.
4194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4195 # <limits.h> exists even on freestanding compilers.
4196 # On the NeXT, cc -E runs the code through the compiler's parser,
4197 # not just through cpp. "Syntax error" is here to catch this case.
4198 cat >conftest.$ac_ext <<_ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4205 # include <limits.h>
4207 # include <assert.h>
4211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4214 grep -v '^ *+' conftest.er1 >conftest.err
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } >/dev/null; then
4219 if test -s conftest.err; then
4220 ac_cpp_err=$ac_c_preproc_warn_flag
4221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4228 if test -z "$ac_cpp_err"; then
4231 echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4234 # Broken: fails on valid input.
4237 rm -f conftest.err conftest.$ac_ext
4239 # OK, works on sane cases. Now check whether non-existent headers
4240 # can be detected and how.
4241 cat >conftest.$ac_ext <<_ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4247 #include <ac_nonexistent.h>
4249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4252 grep -v '^ *+' conftest.er1 >conftest.err
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } >/dev/null; then
4257 if test -s conftest.err; then
4258 ac_cpp_err=$ac_c_preproc_warn_flag
4259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4266 if test -z "$ac_cpp_err"; then
4267 # Broken: success on invalid input.
4270 echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4273 # Passes both tests.
4277 rm -f conftest.err conftest.$ac_ext
4280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4281 rm -f conftest.err conftest.$ac_ext
4282 if $ac_preproc_ok; then
4294 echo "$as_me:$LINENO: result: $CPP" >&5
4295 echo "${ECHO_T}$CPP" >&6
4297 for ac_c_preproc_warn_flag in '' yes
4299 # Use a header file that comes with gcc, so configuring glibc
4300 # with a fresh cross-compiler works.
4301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4302 # <limits.h> exists even on freestanding compilers.
4303 # On the NeXT, cc -E runs the code through the compiler's parser,
4304 # not just through cpp. "Syntax error" is here to catch this case.
4305 cat >conftest.$ac_ext <<_ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4312 # include <limits.h>
4314 # include <assert.h>
4318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4321 grep -v '^ *+' conftest.er1 >conftest.err
4323 cat conftest.err >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } >/dev/null; then
4326 if test -s conftest.err; then
4327 ac_cpp_err=$ac_c_preproc_warn_flag
4328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4335 if test -z "$ac_cpp_err"; then
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4341 # Broken: fails on valid input.
4344 rm -f conftest.err conftest.$ac_ext
4346 # OK, works on sane cases. Now check whether non-existent headers
4347 # can be detected and how.
4348 cat >conftest.$ac_ext <<_ACEOF
4351 cat confdefs.h >>conftest.$ac_ext
4352 cat >>conftest.$ac_ext <<_ACEOF
4353 /* end confdefs.h. */
4354 #include <ac_nonexistent.h>
4356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4359 grep -v '^ *+' conftest.er1 >conftest.err
4361 cat conftest.err >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } >/dev/null; then
4364 if test -s conftest.err; then
4365 ac_cpp_err=$ac_c_preproc_warn_flag
4366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4373 if test -z "$ac_cpp_err"; then
4374 # Broken: success on invalid input.
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4380 # Passes both tests.
4384 rm -f conftest.err conftest.$ac_ext
4387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4388 rm -f conftest.err conftest.$ac_ext
4389 if $ac_preproc_ok; then
4392 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4393 See \`config.log' for more details." >&5
4394 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4395 See \`config.log' for more details." >&2;}
4396 { (exit 1); exit 1; }; }
4400 ac_cpp='$CPP $CPPFLAGS'
4401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4406 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4407 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4408 if test "${ac_cv_header_stdc+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 cat >conftest.$ac_ext <<_ACEOF
4414 cat confdefs.h >>conftest.$ac_ext
4415 cat >>conftest.$ac_ext <<_ACEOF
4416 /* end confdefs.h. */
4430 rm -f conftest.$ac_objext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>conftest.er1
4434 grep -v '^ *+' conftest.er1 >conftest.err
4436 cat conftest.err >&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } &&
4439 { ac_try='test -z "$ac_c_werror_flag"
4440 || test ! -s conftest.err'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; } &&
4446 { ac_try='test -s conftest.$ac_objext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_cv_header_stdc=yes
4454 echo "$as_me: failed program was:" >&5
4455 sed 's/^/| /' conftest.$ac_ext >&5
4457 ac_cv_header_stdc=no
4459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4461 if test $ac_cv_header_stdc = yes; then
4462 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4463 cat >conftest.$ac_ext <<_ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4473 $EGREP "memchr" >/dev/null 2>&1; then
4476 ac_cv_header_stdc=no
4482 if test $ac_cv_header_stdc = yes; then
4483 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4484 cat >conftest.$ac_ext <<_ACEOF
4487 cat confdefs.h >>conftest.$ac_ext
4488 cat >>conftest.$ac_ext <<_ACEOF
4489 /* end confdefs.h. */
4493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4494 $EGREP "free" >/dev/null 2>&1; then
4497 ac_cv_header_stdc=no
4503 if test $ac_cv_header_stdc = yes; then
4504 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4505 if test "$cross_compiling" = yes; then
4508 cat >conftest.$ac_ext <<_ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4515 #if ((' ' & 0x0FF) == 0x020)
4516 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4517 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4519 # define ISLOWER(c) \
4520 (('a' <= (c) && (c) <= 'i') \
4521 || ('j' <= (c) && (c) <= 'r') \
4522 || ('s' <= (c) && (c) <= 'z'))
4523 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4526 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4531 for (i = 0; i < 256; i++)
4532 if (XOR (islower (i), ISLOWER (i))
4533 || toupper (i) != TOUPPER (i))
4538 rm -f conftest$ac_exeext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4540 (eval $ac_link) 2>&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; }; then
4551 echo "$as_me: program exited with status $ac_status" >&5
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4556 ac_cv_header_stdc=no
4558 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4562 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4563 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4564 if test $ac_cv_header_stdc = yes; then
4566 cat >>confdefs.h <<\_ACEOF
4567 #define STDC_HEADERS 1
4572 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4582 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4583 inttypes.h stdint.h unistd.h
4585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4586 echo "$as_me:$LINENO: checking for $ac_header" >&5
4587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 cat >conftest.$ac_ext <<_ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4597 $ac_includes_default
4599 #include <$ac_header>
4601 rm -f conftest.$ac_objext
4602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4603 (eval $ac_compile) 2>conftest.er1
4605 grep -v '^ *+' conftest.er1 >conftest.err
4607 cat conftest.err >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } &&
4610 { ac_try='test -z "$ac_c_werror_flag"
4611 || test ! -s conftest.err'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; } &&
4617 { ac_try='test -s conftest.$ac_objext'
4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 eval "$as_ac_Header=yes"
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4628 eval "$as_ac_Header=no"
4630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4635 cat >>confdefs.h <<_ACEOF
4636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4645 for ac_header in dlfcn.h
4647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4649 echo "$as_me:$LINENO: checking for $ac_header" >&5
4650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4657 # Is the header compilable?
4658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4660 cat >conftest.$ac_ext <<_ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 $ac_includes_default
4667 #include <$ac_header>
4669 rm -f conftest.$ac_objext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671 (eval $ac_compile) 2>conftest.er1
4673 grep -v '^ *+' conftest.er1 >conftest.err
4675 cat conftest.err >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } &&
4678 { ac_try='test -z "$ac_c_werror_flag"
4679 || test ! -s conftest.err'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; } &&
4685 { ac_try='test -s conftest.$ac_objext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_header_compiler=yes
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4696 ac_header_compiler=no
4698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4700 echo "${ECHO_T}$ac_header_compiler" >&6
4702 # Is the header present?
4703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4705 cat >conftest.$ac_ext <<_ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4711 #include <$ac_header>
4713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4716 grep -v '^ *+' conftest.er1 >conftest.err
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } >/dev/null; then
4721 if test -s conftest.err; then
4722 ac_cpp_err=$ac_c_preproc_warn_flag
4723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4730 if test -z "$ac_cpp_err"; then
4731 ac_header_preproc=yes
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4736 ac_header_preproc=no
4738 rm -f conftest.err conftest.$ac_ext
4739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4740 echo "${ECHO_T}$ac_header_preproc" >&6
4742 # So? What about this header?
4743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4749 ac_header_preproc=yes
4752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4766 ## ------------------------------------------ ##
4767 ## Report this to the AC_PACKAGE_NAME lists. ##
4768 ## ------------------------------------------ ##
4771 sed "s/^/$as_me: WARNING: /" >&2
4774 echo "$as_me:$LINENO: checking for $ac_header" >&5
4775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 eval "$as_ac_Header=\$ac_header_preproc"
4781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4786 cat >>confdefs.h <<_ACEOF
4787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4795 ac_cpp='$CXXCPP $CPPFLAGS'
4796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4799 if test -n "$ac_tool_prefix"; then
4800 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4804 echo "$as_me:$LINENO: checking for $ac_word" >&5
4805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4806 if test "${ac_cv_prog_CXX+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 if test -n "$CXX"; then
4810 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 if test -n "$CXX"; then
4830 echo "$as_me:$LINENO: result: $CXX" >&5
4831 echo "${ECHO_T}$CXX" >&6
4833 echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6
4837 test -n "$CXX" && break
4840 if test -z "$CXX"; then
4842 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4844 # Extract the first word of "$ac_prog", so it can be a program name with args.
4845 set dummy $ac_prog; ac_word=$2
4846 echo "$as_me:$LINENO: checking for $ac_word" >&5
4847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4848 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 if test -n "$ac_ct_CXX"; then
4852 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4861 ac_cv_prog_ac_ct_CXX="$ac_prog"
4862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4871 if test -n "$ac_ct_CXX"; then
4872 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4873 echo "${ECHO_T}$ac_ct_CXX" >&6
4875 echo "$as_me:$LINENO: result: no" >&5
4876 echo "${ECHO_T}no" >&6
4879 test -n "$ac_ct_CXX" && break
4881 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4887 # Provide some information about the compiler.
4888 echo "$as_me:$LINENO:" \
4889 "checking for C++ compiler version" >&5
4890 ac_compiler=`set X $ac_compile; echo $2`
4891 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4892 (eval $ac_compiler --version </dev/null >&5) 2>&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }
4896 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4897 (eval $ac_compiler -v </dev/null >&5) 2>&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }
4901 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4902 (eval $ac_compiler -V </dev/null >&5) 2>&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }
4907 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4908 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4909 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 cat >conftest.$ac_ext <<_ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4930 rm -f conftest.$ac_objext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4932 (eval $ac_compile) 2>conftest.er1
4934 grep -v '^ *+' conftest.er1 >conftest.err
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try='test -z "$ac_cxx_werror_flag"
4940 || test ! -s conftest.err'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; } &&
4946 { ac_try='test -s conftest.$ac_objext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4960 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4963 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4964 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4965 GXX=`test $ac_compiler_gnu = yes && echo yes`
4966 ac_test_CXXFLAGS=${CXXFLAGS+set}
4967 ac_save_CXXFLAGS=$CXXFLAGS
4969 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4970 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4971 if test "${ac_cv_prog_cxx_g+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 cat >conftest.$ac_ext <<_ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4989 rm -f conftest.$ac_objext
4990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4991 (eval $ac_compile) 2>conftest.er1
4993 grep -v '^ *+' conftest.er1 >conftest.err
4995 cat conftest.err >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } &&
4998 { ac_try='test -z "$ac_cxx_werror_flag"
4999 || test ! -s conftest.err'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; } &&
5005 { ac_try='test -s conftest.$ac_objext'
5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; }; then
5011 ac_cv_prog_cxx_g=yes
5013 echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5020 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5021 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5022 if test "$ac_test_CXXFLAGS" = set; then
5023 CXXFLAGS=$ac_save_CXXFLAGS
5024 elif test $ac_cv_prog_cxx_g = yes; then
5025 if test "$GXX" = yes; then
5031 if test "$GXX" = yes; then
5037 for ac_declaration in \
5039 'extern "C" void std::exit (int) throw (); using std::exit;' \
5040 'extern "C" void std::exit (int); using std::exit;' \
5041 'extern "C" void exit (int) throw ();' \
5042 'extern "C" void exit (int);' \
5045 cat >conftest.$ac_ext <<_ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5061 rm -f conftest.$ac_objext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5063 (eval $ac_compile) 2>conftest.er1
5065 grep -v '^ *+' conftest.er1 >conftest.err
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } &&
5070 { ac_try='test -z "$ac_cxx_werror_flag"
5071 || test ! -s conftest.err'
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; } &&
5077 { ac_try='test -s conftest.$ac_objext'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; }; then
5085 echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5091 cat >conftest.$ac_ext <<_ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5106 rm -f conftest.$ac_objext
5107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5108 (eval $ac_compile) 2>conftest.er1
5110 grep -v '^ *+' conftest.er1 >conftest.err
5112 cat conftest.err >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } &&
5115 { ac_try='test -z "$ac_cxx_werror_flag"
5116 || test ! -s conftest.err'
5117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }; } &&
5122 { ac_try='test -s conftest.$ac_objext'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5137 if test -n "$ac_declaration"; then
5138 echo '#ifdef __cplusplus' >>confdefs.h
5139 echo $ac_declaration >>confdefs.h
5140 echo '#endif' >>confdefs.h
5144 ac_cpp='$CXXCPP $CPPFLAGS'
5145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5149 depcc="$CXX" am_compiler_list=
5151 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5152 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5153 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5157 # We make a subdir and do the tests there. Otherwise we can end up
5158 # making bogus files that we don't know about and never remove. For
5159 # instance it was reported that on HP-UX the gcc test will end up
5160 # making a dummy file named `D' -- because `-MD' means `put the output
5163 # Copy depcomp to subdir because otherwise we won't find it if we're
5164 # using a relative directory.
5165 cp "$am_depcomp" conftest.dir
5167 # We will build objects and dependencies in a subdirectory because
5168 # it helps to detect inapplicable dependency modes. For instance
5169 # both Tru64's cc and ICC support -MD to output dependencies as a
5170 # side effect of compilation, but ICC will put the dependencies in
5171 # the current directory while Tru64 will put them in the object
5175 am_cv_CXX_dependencies_compiler_type=none
5176 if test "$am_compiler_list" = ""; then
5177 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5179 for depmode in $am_compiler_list; do
5180 # Setup a source with many dependencies, because some compilers
5181 # like to wrap large dependency lists on column 80 (with \), and
5182 # we should not choose a depcomp mode which is confused by this.
5184 # We need to recreate these files for each test, as the compiler may
5185 # overwrite some of them when testing with obscure command lines.
5186 # This happens at least with the AIX C compiler.
5188 for i in 1 2 3 4 5 6; do
5189 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5190 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5191 # Solaris 8's {/usr,}/bin/sh.
5192 touch sub/conftst$i.h
5194 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5198 # after this tag, mechanisms are not by side-effect, so they'll
5199 # only be used when explicitly requested
5200 if test "x$enable_dependency_tracking" = xyes; then
5208 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5209 # mode. It turns out that the SunPro C++ compiler does not properly
5210 # handle `-M -o', and we need to detect this.
5211 if depmode=$depmode \
5212 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5213 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5214 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5215 >/dev/null 2>conftest.err &&
5216 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5217 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5218 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5219 # icc doesn't choke on unknown options, it will just issue warnings
5220 # or remarks (even with -Werror). So we grep stderr for any message
5221 # that says an option was ignored or not supported.
5222 # When given -MP, icc 7.0 and 7.1 complain thusly:
5223 # icc: Command line warning: ignoring option '-M'; no argument required
5224 # The diagnosis changed in icc 8.0:
5225 # icc: Command line remark: option '-MP' not supported
5226 if (grep 'ignoring option' conftest.err ||
5227 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5228 am_cv_CXX_dependencies_compiler_type=$depmode
5237 am_cv_CXX_dependencies_compiler_type=none
5241 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5242 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5243 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5248 test "x$enable_dependency_tracking" != xno \
5249 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5250 am__fastdepCXX_TRUE=
5251 am__fastdepCXX_FALSE='#'
5253 am__fastdepCXX_TRUE='#'
5254 am__fastdepCXX_FALSE=
5260 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5261 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5262 (test "X$CXX" != "Xg++"))) ; then
5264 ac_cpp='$CXXCPP $CPPFLAGS'
5265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5268 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5269 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5270 if test -z "$CXXCPP"; then
5271 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 # Double quotes because CXXCPP needs to be expanded
5275 for CXXCPP in "$CXX -E" "/lib/cpp"
5278 for ac_cxx_preproc_warn_flag in '' yes
5280 # Use a header file that comes with gcc, so configuring glibc
5281 # with a fresh cross-compiler works.
5282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5283 # <limits.h> exists even on freestanding compilers.
5284 # On the NeXT, cc -E runs the code through the compiler's parser,
5285 # not just through cpp. "Syntax error" is here to catch this case.
5286 cat >conftest.$ac_ext <<_ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5293 # include <limits.h>
5295 # include <assert.h>
5299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5302 grep -v '^ *+' conftest.er1 >conftest.err
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } >/dev/null; then
5307 if test -s conftest.err; then
5308 ac_cpp_err=$ac_cxx_preproc_warn_flag
5309 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5316 if test -z "$ac_cpp_err"; then
5319 echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5322 # Broken: fails on valid input.
5325 rm -f conftest.err conftest.$ac_ext
5327 # OK, works on sane cases. Now check whether non-existent headers
5328 # can be detected and how.
5329 cat >conftest.$ac_ext <<_ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5335 #include <ac_nonexistent.h>
5337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5340 grep -v '^ *+' conftest.er1 >conftest.err
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } >/dev/null; then
5345 if test -s conftest.err; then
5346 ac_cpp_err=$ac_cxx_preproc_warn_flag
5347 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5354 if test -z "$ac_cpp_err"; then
5355 # Broken: success on invalid input.
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5361 # Passes both tests.
5365 rm -f conftest.err conftest.$ac_ext
5368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5369 rm -f conftest.err conftest.$ac_ext
5370 if $ac_preproc_ok; then
5375 ac_cv_prog_CXXCPP=$CXXCPP
5378 CXXCPP=$ac_cv_prog_CXXCPP
5380 ac_cv_prog_CXXCPP=$CXXCPP
5382 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5383 echo "${ECHO_T}$CXXCPP" >&6
5385 for ac_cxx_preproc_warn_flag in '' yes
5387 # Use a header file that comes with gcc, so configuring glibc
5388 # with a fresh cross-compiler works.
5389 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5390 # <limits.h> exists even on freestanding compilers.
5391 # On the NeXT, cc -E runs the code through the compiler's parser,
5392 # not just through cpp. "Syntax error" is here to catch this case.
5393 cat >conftest.$ac_ext <<_ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5400 # include <limits.h>
5402 # include <assert.h>
5406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5409 grep -v '^ *+' conftest.er1 >conftest.err
5411 cat conftest.err >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } >/dev/null; then
5414 if test -s conftest.err; then
5415 ac_cpp_err=$ac_cxx_preproc_warn_flag
5416 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5423 if test -z "$ac_cpp_err"; then
5426 echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5429 # Broken: fails on valid input.
5432 rm -f conftest.err conftest.$ac_ext
5434 # OK, works on sane cases. Now check whether non-existent headers
5435 # can be detected and how.
5436 cat >conftest.$ac_ext <<_ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 #include <ac_nonexistent.h>
5444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5447 grep -v '^ *+' conftest.er1 >conftest.err
5449 cat conftest.err >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); } >/dev/null; then
5452 if test -s conftest.err; then
5453 ac_cpp_err=$ac_cxx_preproc_warn_flag
5454 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5461 if test -z "$ac_cpp_err"; then
5462 # Broken: success on invalid input.
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5468 # Passes both tests.
5472 rm -f conftest.err conftest.$ac_ext
5475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5476 rm -f conftest.err conftest.$ac_ext
5477 if $ac_preproc_ok; then
5480 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5481 See \`config.log' for more details." >&5
5482 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5483 See \`config.log' for more details." >&2;}
5484 { (exit 1); exit 1; }; }
5488 ac_cpp='$CXXCPP $CPPFLAGS'
5489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5497 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5498 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5499 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5500 if test -n "$ac_tool_prefix"; then
5501 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5505 echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507 if test "${ac_cv_prog_F77+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 if test -n "$F77"; then
5511 ac_cv_prog_F77="$F77" # Let the user override the test.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 if test -n "$F77"; then
5531 echo "$as_me:$LINENO: result: $F77" >&5
5532 echo "${ECHO_T}$F77" >&6
5534 echo "$as_me:$LINENO: result: no" >&5
5535 echo "${ECHO_T}no" >&6
5538 test -n "$F77" && break
5541 if test -z "$F77"; then
5543 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5545 # Extract the first word of "$ac_prog", so it can be a program name with args.
5546 set dummy $ac_prog; ac_word=$2
5547 echo "$as_me:$LINENO: checking for $ac_word" >&5
5548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5549 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 if test -n "$ac_ct_F77"; then
5553 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 test -z "$as_dir" && as_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562 ac_cv_prog_ac_ct_F77="$ac_prog"
5563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5572 if test -n "$ac_ct_F77"; then
5573 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5574 echo "${ECHO_T}$ac_ct_F77" >&6
5576 echo "$as_me:$LINENO: result: no" >&5
5577 echo "${ECHO_T}no" >&6
5580 test -n "$ac_ct_F77" && break
5587 # Provide some information about the compiler.
5588 echo "$as_me:5588:" \
5589 "checking for Fortran 77 compiler version" >&5
5590 ac_compiler=`set X $ac_compile; echo $2`
5591 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5592 (eval $ac_compiler --version </dev/null >&5) 2>&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }
5596 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5597 (eval $ac_compiler -v </dev/null >&5) 2>&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }
5601 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5602 (eval $ac_compiler -V </dev/null >&5) 2>&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }
5608 # If we don't use `.F' as extension, the preprocessor is not run on the
5609 # input file. (Note that this only needs to work for GNU compilers.)
5612 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5613 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5614 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 cat >conftest.$ac_ext <<_ACEOF
5625 rm -f conftest.$ac_objext
5626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5627 (eval $ac_compile) 2>conftest.er1
5629 grep -v '^ *+' conftest.er1 >conftest.err
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } &&
5634 { ac_try='test -z "$ac_f77_werror_flag"
5635 || test ! -s conftest.err'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; } &&
5641 { ac_try='test -s conftest.$ac_objext'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; }; then
5649 echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5655 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5658 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5659 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5661 ac_test_FFLAGS=${FFLAGS+set}
5662 ac_save_FFLAGS=$FFLAGS
5664 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5665 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5666 if test "${ac_cv_prog_f77_g+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 cat >conftest.$ac_ext <<_ACEOF
5675 rm -f conftest.$ac_objext
5676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5677 (eval $ac_compile) 2>conftest.er1
5679 grep -v '^ *+' conftest.er1 >conftest.err
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } &&
5684 { ac_try='test -z "$ac_f77_werror_flag"
5685 || test ! -s conftest.err'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; } &&
5691 { ac_try='test -s conftest.$ac_objext'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; }; then
5697 ac_cv_prog_f77_g=yes
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5707 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5708 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5709 if test "$ac_test_FFLAGS" = set; then
5710 FFLAGS=$ac_save_FFLAGS
5711 elif test $ac_cv_prog_f77_g = yes; then
5712 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5718 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5725 G77=`test $ac_compiler_gnu = yes && echo yes`
5727 ac_cpp='$CPP $CPPFLAGS'
5728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5734 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5736 # find the maximum length of command line arguments
5737 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5738 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5739 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 # On DJGPP, this test can blow up pretty badly due to problems in libc
5748 # (any single argument exceeding 2000 bytes causes a buffer overrun
5749 # during glob expansion). Even if it were fixed, the result of this
5750 # check would be larger than it should be.
5751 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5755 # Under GNU Hurd, this test is not required because there is
5756 # no limit to the length of command line arguments.
5757 # Libtool will interpret -1 as no limit whatsoever
5758 lt_cv_sys_max_cmd_len=-1;
5762 # On Win9x/ME, this test blows up -- it succeeds, but takes
5763 # about 5 minutes as the teststring grows exponentially.
5764 # Worse, since 9x/ME are not pre-emptively multitasking,
5765 # you end up with a "frozen" computer, even though with patience
5766 # the test eventually succeeds (with a max line length of 256k).
5767 # Instead, let's just punt: use the minimum linelength reported by
5768 # all of the supported platforms: 8192 (on NT/2K/XP).
5769 lt_cv_sys_max_cmd_len=8192;
5773 # On AmigaOS with pdksh, this test takes hours, literally.
5774 # So we just punt and use a minimum line length of 8192.
5775 lt_cv_sys_max_cmd_len=8192;
5778 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5779 # This has been around since 386BSD, at least. Likely further.
5780 if test -x /sbin/sysctl; then
5781 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5782 elif test -x /usr/sbin/sysctl; then
5783 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5785 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5787 # And add a safety zone
5788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5793 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5794 lt_cv_sys_max_cmd_len=196608
5798 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5799 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5800 # nice to cause kernel panics so lets avoid the loop below.
5801 # First set a reasonable default.
5802 lt_cv_sys_max_cmd_len=16384
5804 if test -x /sbin/sysconfig; then
5805 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5806 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5811 lt_cv_sys_max_cmd_len=102400
5813 sysv5* | sco5v6* | sysv4.2uw2*)
5814 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5815 if test -n "$kargmax"; then
5816 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5818 lt_cv_sys_max_cmd_len=32768
5822 # If test is not a shell built-in, we'll probably end up computing a
5823 # maximum length that is only half of the actual maximum length, but
5825 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5826 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5827 = "XX$teststring") >/dev/null 2>&1 &&
5828 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5829 lt_cv_sys_max_cmd_len=$new_result &&
5830 test $i != 17 # 1/2 MB should be enough
5833 teststring=$teststring$teststring
5836 # Add a significant safety factor because C++ compilers can tack on massive
5837 # amounts of additional arguments before passing them to the linker.
5838 # It appears as though 1/2 is a usable value.
5839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5845 if test -n $lt_cv_sys_max_cmd_len ; then
5846 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5847 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5849 echo "$as_me:$LINENO: result: none" >&5
5850 echo "${ECHO_T}none" >&6
5856 # Check for command to grab the raw symbol name followed by C symbol from nm.
5857 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5858 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5859 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 # These are sane defaults that work on at least a few old systems.
5864 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5866 # Character class describing NM global symbol codes.
5867 symcode='[BCDEGRST]'
5869 # Regexp to match symbols that can be accessed directly from C.
5870 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5872 # Transform an extracted symbol line into a proper C declaration
5873 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5875 # Transform an extracted symbol line into symbol name and symbol address
5876 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'"
5878 # Define system-specific variables.
5883 cygwin* | mingw* | pw32*)
5884 symcode='[ABCDGISTW]'
5886 hpux*) # Its linker distinguishes data from code symbols
5887 if test "$host_cpu" = ia64; then
5888 symcode='[ABCDEGRST]'
5890 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5891 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'"
5894 if test "$host_cpu" = ia64; then
5895 symcode='[ABCDGIRSTW]'
5896 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5897 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'"
5901 symcode='[BCDEGRST]'
5904 symcode='[BCDEGQRST]'
5915 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5923 # Handle CRLF in mingw tool chain
5927 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5931 # If we're using GNU nm, then use its standard symbol codes.
5932 case `$NM -V 2>&1` in
5933 *GNU* | *'with BFD'*)
5934 symcode='[ABCDGIRSTW]' ;;
5937 # Try without a prefix undercore, then with it.
5938 for ac_symprfx in "" "_"; do
5940 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5941 symxfrm="\\1 $ac_symprfx\\2 \\2"
5943 # Write the raw and C identifiers.
5944 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5946 # Check to see that the pipe works correctly.
5950 cat > conftest.$ac_ext <<EOF
5955 void nm_test_func(){}
5959 int main(){nm_test_var='a';nm_test_func();return(0);}
5962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5963 (eval $ac_compile) 2>&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; then
5967 # Now try to grab the symbols.
5969 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5970 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } && test -s "$nlist"; then
5974 # Try sorting and uniquifying the output.
5975 if sort "$nlist" | uniq > "$nlist"T; then
5976 mv -f "$nlist"T "$nlist"
5981 # Make sure that we snagged all the symbols we need.
5982 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5983 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5984 cat <<EOF > conftest.$ac_ext
5990 # Now generate the symbol file.
5991 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5993 cat <<EOF >> conftest.$ac_ext
5994 #if defined (__STDC__) && __STDC__
5995 # define lt_ptr_t void *
5997 # define lt_ptr_t char *
6001 /* The mapping between symbol names and symbols. */
6006 lt_preloaded_symbols[] =
6009 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6010 cat <<\EOF >> conftest.$ac_ext
6018 # Now try linking the two files.
6019 mv conftest.$ac_objext conftstm.$ac_objext
6020 lt_save_LIBS="$LIBS"
6021 lt_save_CFLAGS="$CFLAGS"
6022 LIBS="conftstm.$ac_objext"
6023 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6025 (eval $ac_link) 2>&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6031 LIBS="$lt_save_LIBS"
6032 CFLAGS="$lt_save_CFLAGS"
6034 echo "cannot find nm_test_func in $nlist" >&5
6037 echo "cannot find nm_test_var in $nlist" >&5
6040 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6043 echo "$progname: failed program was:" >&5
6044 cat conftest.$ac_ext >&5
6046 rm -f conftest* conftst*
6048 # Do not use the global_symbol_pipe unless it works.
6049 if test "$pipe_works" = yes; then
6052 lt_cv_sys_global_symbol_pipe=
6058 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6059 lt_cv_sys_global_symbol_to_cdecl=
6061 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6062 echo "$as_me:$LINENO: result: failed" >&5
6063 echo "${ECHO_T}failed" >&6
6065 echo "$as_me:$LINENO: result: ok" >&5
6066 echo "${ECHO_T}ok" >&6
6069 echo "$as_me:$LINENO: checking for objdir" >&5
6070 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6071 if test "${lt_cv_objdir+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 rm -f .libs 2>/dev/null
6075 mkdir .libs 2>/dev/null
6076 if test -d .libs; then
6079 # MS-DOS does not allow filenames that begin with a dot.
6082 rmdir .libs 2>/dev/null
6084 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6085 echo "${ECHO_T}$lt_cv_objdir" >&6
6086 objdir=$lt_cv_objdir
6094 # AIX sometimes has problems with the GCC collect2 program. For some
6095 # reason, if we set the COLLECT_NAMES environment variable, the problems
6096 # vanish in a puff of smoke.
6097 if test "X${COLLECT_NAMES+set}" != Xset; then
6099 export COLLECT_NAMES
6104 # Sed substitution that helps us do robust quoting. It backslashifies
6105 # metacharacters that are still active within double-quoted strings.
6106 Xsed='sed -e 1s/^X//'
6107 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6109 # Same as above, but do not quote variable references.
6110 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6112 # Sed substitution to delay expansion of an escaped shell variable in a
6113 # double_quote_subst'ed string.
6114 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6116 # Sed substitution to avoid accidental globbing in evaled expressions
6117 no_glob_subst='s/\*/\\\*/g'
6123 default_ofile=libtool
6124 can_build_shared=yes
6126 # All known linkers require a `.a' archive for static linking (except MSVC,
6127 # which needs '.lib').
6129 ltmain="$ac_aux_dir/ltmain.sh"
6130 ofile="$default_ofile"
6131 with_gnu_ld="$lt_cv_prog_gnu_ld"
6133 if test -n "$ac_tool_prefix"; then
6134 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6135 set dummy ${ac_tool_prefix}ar; ac_word=$2
6136 echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6138 if test "${ac_cv_prog_AR+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 if test -n "$AR"; then
6142 ac_cv_prog_AR="$AR" # Let the user override the test.
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6151 ac_cv_prog_AR="${ac_tool_prefix}ar"
6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 if test -n "$AR"; then
6162 echo "$as_me:$LINENO: result: $AR" >&5
6163 echo "${ECHO_T}$AR" >&6
6165 echo "$as_me:$LINENO: result: no" >&5
6166 echo "${ECHO_T}no" >&6
6170 if test -z "$ac_cv_prog_AR"; then
6172 # Extract the first word of "ar", so it can be a program name with args.
6173 set dummy ar; ac_word=$2
6174 echo "$as_me:$LINENO: checking for $ac_word" >&5
6175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6176 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 if test -n "$ac_ct_AR"; then
6180 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 test -z "$as_dir" && as_dir=.
6187 for ac_exec_ext in '' $ac_executable_extensions; do
6188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6189 ac_cv_prog_ac_ct_AR="ar"
6190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6199 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6200 if test -n "$ac_ct_AR"; then
6201 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6202 echo "${ECHO_T}$ac_ct_AR" >&6
6204 echo "$as_me:$LINENO: result: no" >&5
6205 echo "${ECHO_T}no" >&6
6213 if test -n "$ac_tool_prefix"; then
6214 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6215 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6216 echo "$as_me:$LINENO: checking for $ac_word" >&5
6217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6218 if test "${ac_cv_prog_RANLIB+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 if test -n "$RANLIB"; then
6222 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 test -z "$as_dir" && as_dir=.
6229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6231 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 RANLIB=$ac_cv_prog_RANLIB
6241 if test -n "$RANLIB"; then
6242 echo "$as_me:$LINENO: result: $RANLIB" >&5
6243 echo "${ECHO_T}$RANLIB" >&6
6245 echo "$as_me:$LINENO: result: no" >&5
6246 echo "${ECHO_T}no" >&6
6250 if test -z "$ac_cv_prog_RANLIB"; then
6251 ac_ct_RANLIB=$RANLIB
6252 # Extract the first word of "ranlib", so it can be a program name with args.
6253 set dummy ranlib; ac_word=$2
6254 echo "$as_me:$LINENO: checking for $ac_word" >&5
6255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6256 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 if test -n "$ac_ct_RANLIB"; then
6260 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6269 ac_cv_prog_ac_ct_RANLIB="ranlib"
6270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6279 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6280 if test -n "$ac_ct_RANLIB"; then
6281 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6282 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6284 echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6
6288 RANLIB=$ac_ct_RANLIB
6290 RANLIB="$ac_cv_prog_RANLIB"
6293 if test -n "$ac_tool_prefix"; then
6294 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6295 set dummy ${ac_tool_prefix}strip; ac_word=$2
6296 echo "$as_me:$LINENO: checking for $ac_word" >&5
6297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6298 if test "${ac_cv_prog_STRIP+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 if test -n "$STRIP"; then
6302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6311 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6320 STRIP=$ac_cv_prog_STRIP
6321 if test -n "$STRIP"; then
6322 echo "$as_me:$LINENO: result: $STRIP" >&5
6323 echo "${ECHO_T}$STRIP" >&6
6325 echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6
6330 if test -z "$ac_cv_prog_STRIP"; then
6332 # Extract the first word of "strip", so it can be a program name with args.
6333 set dummy strip; ac_word=$2
6334 echo "$as_me:$LINENO: checking for $ac_word" >&5
6335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6336 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 if test -n "$ac_ct_STRIP"; then
6340 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349 ac_cv_prog_ac_ct_STRIP="strip"
6350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6359 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6360 if test -n "$ac_ct_STRIP"; then
6361 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6362 echo "${ECHO_T}$ac_ct_STRIP" >&6
6364 echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6
6370 STRIP="$ac_cv_prog_STRIP"
6375 old_CFLAGS="$CFLAGS"
6377 # Set sane defaults for various variables
6378 test -z "$AR" && AR=ar
6379 test -z "$AR_FLAGS" && AR_FLAGS=cru
6380 test -z "$AS" && AS=as
6381 test -z "$CC" && CC=cc
6382 test -z "$LTCC" && LTCC=$CC
6383 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6384 test -z "$DLLTOOL" && DLLTOOL=dlltool
6385 test -z "$LD" && LD=ld
6386 test -z "$LN_S" && LN_S="ln -s"
6387 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6388 test -z "$NM" && NM=nm
6389 test -z "$SED" && SED=sed
6390 test -z "$OBJDUMP" && OBJDUMP=objdump
6391 test -z "$RANLIB" && RANLIB=:
6392 test -z "$STRIP" && STRIP=:
6393 test -z "$ac_objext" && ac_objext=o
6395 # Determine commands to create old-style static archives.
6396 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6397 old_postinstall_cmds='chmod 644 $oldlib'
6398 old_postuninstall_cmds=
6400 if test -n "$RANLIB"; then
6403 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6406 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6409 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6412 for cc_temp in $compiler""; do
6414 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6415 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6420 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6423 # Only perform the check for file, if the check method requires it
6424 case $deplibs_check_method in
6426 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6427 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6428 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6429 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6437 lt_save_MAGIC_CMD="$MAGIC_CMD"
6438 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6439 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6440 for ac_dir in $ac_dummy; do
6442 test -z "$ac_dir" && ac_dir=.
6443 if test -f $ac_dir/${ac_tool_prefix}file; then
6444 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6445 if test -n "$file_magic_test_file"; then
6446 case $deplibs_check_method in
6448 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6450 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6451 $EGREP "$file_magic_regex" > /dev/null; then
6456 *** Warning: the command libtool uses to detect shared libraries,
6457 *** $file_magic_cmd, produces output that libtool cannot recognize.
6458 *** The result is that libtool may fail to recognize shared libraries
6459 *** as such. This will affect the creation of libtool libraries that
6460 *** depend on shared libraries, but programs linked with such libtool
6461 *** libraries will work regardless of this problem. Nevertheless, you
6462 *** may want to report the problem to your system manager and/or to
6463 *** bug-libtool@gnu.org
6473 MAGIC_CMD="$lt_save_MAGIC_CMD"
6478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6479 if test -n "$MAGIC_CMD"; then
6480 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6481 echo "${ECHO_T}$MAGIC_CMD" >&6
6483 echo "$as_me:$LINENO: result: no" >&5
6484 echo "${ECHO_T}no" >&6
6487 if test -z "$lt_cv_path_MAGIC_CMD"; then
6488 if test -n "$ac_tool_prefix"; then
6489 echo "$as_me:$LINENO: checking for file" >&5
6490 echo $ECHO_N "checking for file... $ECHO_C" >&6
6491 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6499 lt_save_MAGIC_CMD="$MAGIC_CMD"
6500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6501 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6502 for ac_dir in $ac_dummy; do
6504 test -z "$ac_dir" && ac_dir=.
6505 if test -f $ac_dir/file; then
6506 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6507 if test -n "$file_magic_test_file"; then
6508 case $deplibs_check_method in
6510 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6512 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6513 $EGREP "$file_magic_regex" > /dev/null; then
6518 *** Warning: the command libtool uses to detect shared libraries,
6519 *** $file_magic_cmd, produces output that libtool cannot recognize.
6520 *** The result is that libtool may fail to recognize shared libraries
6521 *** as such. This will affect the creation of libtool libraries that
6522 *** depend on shared libraries, but programs linked with such libtool
6523 *** libraries will work regardless of this problem. Nevertheless, you
6524 *** may want to report the problem to your system manager and/or to
6525 *** bug-libtool@gnu.org
6535 MAGIC_CMD="$lt_save_MAGIC_CMD"
6540 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6541 if test -n "$MAGIC_CMD"; then
6542 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6543 echo "${ECHO_T}$MAGIC_CMD" >&6
6545 echo "$as_me:$LINENO: result: no" >&5
6546 echo "${ECHO_T}no" >&6
6561 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6562 if test "${enable_libtool_lock+set}" = set; then
6563 enableval="$enable_libtool_lock"
6566 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6569 # Check whether --with-pic or --without-pic was given.
6570 if test "${with_pic+set}" = set; then
6576 test -z "$pic_mode" && pic_mode=default
6578 # Use C for the default configuration in the libtool script
6582 ac_cpp='$CPP $CPPFLAGS'
6583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6588 # Source file extension for C test sources.
6591 # Object file extension for compiled C test sources.
6595 # Code to be used in simple compile tests
6596 lt_simple_compile_test_code="int some_variable = 0;\n"
6598 # Code to be used in simple link tests
6599 lt_simple_link_test_code='int main(){return(0);}\n'
6602 # If no C compiler was specified, use CC.
6605 # If no C compiler flags were specified, use CFLAGS.
6606 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6608 # Allow CC to be a program name with arguments.
6612 # save warnings/boilerplate of simple test code
6613 ac_outfile=conftest.$ac_objext
6614 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6615 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6616 _lt_compiler_boilerplate=`cat conftest.err`
6619 ac_outfile=conftest.$ac_objext
6620 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6621 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6622 _lt_linker_boilerplate=`cat conftest.err`
6627 lt_prog_compiler_no_builtin_flag=
6629 if test "$GCC" = yes; then
6630 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6633 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6634 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6635 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 lt_cv_prog_compiler_rtti_exceptions=no
6639 ac_outfile=conftest.$ac_objext
6640 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6641 lt_compiler_flag="-fno-rtti -fno-exceptions"
6642 # Insert the option either (1) after the last *FLAGS variable, or
6643 # (2) before a word containing "conftest.", or (3) at the end.
6644 # Note that $ac_compile itself does not contain backslashes and begins
6645 # with a dollar sign (not a hyphen), so the echo should work correctly.
6646 # The option is referenced via a variable to avoid confusing sed.
6647 lt_compile=`echo "$ac_compile" | $SED \
6648 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6650 -e 's:$: $lt_compiler_flag:'`
6651 (eval echo "\"\$as_me:6651: $lt_compile\"" >&5)
6652 (eval "$lt_compile" 2>conftest.err)
6654 cat conftest.err >&5
6655 echo "$as_me:6655: \$? = $ac_status" >&5
6656 if (exit $ac_status) && test -s "$ac_outfile"; then
6657 # The compiler can only warn and ignore the option if not recognized
6658 # So say no if there are warnings other than the usual output.
6659 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6661 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6662 lt_cv_prog_compiler_rtti_exceptions=yes
6668 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6669 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6671 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6672 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6679 lt_prog_compiler_wl=
6680 lt_prog_compiler_pic=
6681 lt_prog_compiler_static=
6683 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6684 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6686 if test "$GCC" = yes; then
6687 lt_prog_compiler_wl='-Wl,'
6688 lt_prog_compiler_static='-static'
6692 # All AIX code is PIC.
6693 if test "$host_cpu" = ia64; then
6694 # AIX 5 now supports IA64 processor
6695 lt_prog_compiler_static='-Bstatic'
6700 # FIXME: we need at least 68020 code to build shared libraries, but
6701 # adding the `-m68020' flag to GCC prevents building anything better,
6703 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6706 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6707 # PIC is the default for these OSes.
6710 mingw* | pw32* | os2*)
6711 # This hack is so that the source file can tell whether it is being
6712 # built for inclusion in a dll (and should export symbols for example).
6713 lt_prog_compiler_pic='-DDLL_EXPORT'
6716 darwin* | rhapsody*)
6717 # PIC is the default on this platform
6718 # Common symbols not allowed in MH_DYLIB files
6719 lt_prog_compiler_pic='-fno-common'
6723 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6724 # Instead, we relocate shared libraries at runtime.
6728 # Just because we use GCC doesn't mean we suddenly get shared libraries
6729 # on systems that don't support them.
6730 lt_prog_compiler_can_build_shared=no
6735 if test -d /usr/nec; then
6736 lt_prog_compiler_pic=-Kconform_pic
6741 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6748 lt_prog_compiler_pic='-fPIC'
6754 lt_prog_compiler_pic='-fPIC'
6758 # PORTME Check for flag to pass linker flags through the system compiler.
6761 lt_prog_compiler_wl='-Wl,'
6762 if test "$host_cpu" = ia64; then
6763 # AIX 5 now supports IA64 processor
6764 lt_prog_compiler_static='-Bstatic'
6766 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6770 # PIC is the default on this platform
6771 # Common symbols not allowed in MH_DYLIB files
6772 case $cc_basename in
6774 lt_prog_compiler_pic='-qnocommon'
6775 lt_prog_compiler_wl='-Wl,'
6780 mingw* | pw32* | os2*)
6781 # This hack is so that the source file can tell whether it is being
6782 # built for inclusion in a dll (and should export symbols for example).
6783 lt_prog_compiler_pic='-DDLL_EXPORT'
6786 hpux9* | hpux10* | hpux11*)
6787 lt_prog_compiler_wl='-Wl,'
6788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6795 lt_prog_compiler_pic='+Z'
6798 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6799 lt_prog_compiler_static='${wl}-a ${wl}archive'
6802 irix5* | irix6* | nonstopux*)
6803 lt_prog_compiler_wl='-Wl,'
6804 # PIC (with -KPIC) is the default.
6805 lt_prog_compiler_static='-non_shared'
6809 lt_prog_compiler_pic='-KPIC'
6810 lt_prog_compiler_static='-Bstatic'
6814 case $cc_basename in
6816 lt_prog_compiler_wl='-Wl,'
6817 lt_prog_compiler_pic='-KPIC'
6818 lt_prog_compiler_static='-static'
6820 pgcc* | pgf77* | pgf90* | pgf95*)
6821 # Portland Group compilers (*not* the Pentium gcc compiler,
6822 # which looks to be a dead project)
6823 lt_prog_compiler_wl='-Wl,'
6824 lt_prog_compiler_pic='-fpic'
6825 lt_prog_compiler_static='-Bstatic'
6828 lt_prog_compiler_wl='-Wl,'
6829 # All Alpha code is PIC.
6830 lt_prog_compiler_static='-non_shared'
6835 osf3* | osf4* | osf5*)
6836 lt_prog_compiler_wl='-Wl,'
6837 # All OSF/1 code is PIC.
6838 lt_prog_compiler_static='-non_shared'
6842 lt_prog_compiler_pic='-KPIC'
6843 lt_prog_compiler_static='-Bstatic'
6844 case $cc_basename in
6846 lt_prog_compiler_wl='-Qoption ld ';;
6848 lt_prog_compiler_wl='-Wl,';;
6853 lt_prog_compiler_wl='-Qoption ld '
6854 lt_prog_compiler_pic='-PIC'
6855 lt_prog_compiler_static='-Bstatic'
6858 sysv4 | sysv4.2uw2* | sysv4.3*)
6859 lt_prog_compiler_wl='-Wl,'
6860 lt_prog_compiler_pic='-KPIC'
6861 lt_prog_compiler_static='-Bstatic'
6865 if test -d /usr/nec ;then
6866 lt_prog_compiler_pic='-Kconform_pic'
6867 lt_prog_compiler_static='-Bstatic'
6871 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6872 lt_prog_compiler_wl='-Wl,'
6873 lt_prog_compiler_pic='-KPIC'
6874 lt_prog_compiler_static='-Bstatic'
6878 lt_prog_compiler_wl='-Wl,'
6879 lt_prog_compiler_can_build_shared=no
6883 lt_prog_compiler_pic='-pic'
6884 lt_prog_compiler_static='-Bstatic'
6888 lt_prog_compiler_can_build_shared=no
6893 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6894 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6897 # Check to make sure the PIC flag actually works.
6899 if test -n "$lt_prog_compiler_pic"; then
6901 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6902 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6903 if test "${lt_prog_compiler_pic_works+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 lt_prog_compiler_pic_works=no
6907 ac_outfile=conftest.$ac_objext
6908 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6909 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6910 # Insert the option either (1) after the last *FLAGS variable, or
6911 # (2) before a word containing "conftest.", or (3) at the end.
6912 # Note that $ac_compile itself does not contain backslashes and begins
6913 # with a dollar sign (not a hyphen), so the echo should work correctly.
6914 # The option is referenced via a variable to avoid confusing sed.
6915 lt_compile=`echo "$ac_compile" | $SED \
6916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6918 -e 's:$: $lt_compiler_flag:'`
6919 (eval echo "\"\$as_me:6919: $lt_compile\"" >&5)
6920 (eval "$lt_compile" 2>conftest.err)
6922 cat conftest.err >&5
6923 echo "$as_me:6923: \$? = $ac_status" >&5
6924 if (exit $ac_status) && test -s "$ac_outfile"; then
6925 # The compiler can only warn and ignore the option if not recognized
6926 # So say no if there are warnings other than the usual output.
6927 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6930 lt_prog_compiler_pic_works=yes
6936 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6937 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6939 if test x"$lt_prog_compiler_pic_works" = xyes; then
6940 case $lt_prog_compiler_pic in
6942 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6945 lt_prog_compiler_pic=
6946 lt_prog_compiler_can_build_shared=no
6951 # For platforms which do not support PIC, -DPIC is meaningless:
6953 lt_prog_compiler_pic=
6956 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6961 # Check to make sure the static flag actually works.
6963 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6964 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6965 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6966 if test "${lt_prog_compiler_static_works+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 lt_prog_compiler_static_works=no
6970 save_LDFLAGS="$LDFLAGS"
6971 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6972 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6973 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6974 # The linker can only warn and ignore the option if not recognized
6975 # So say no if there are warnings
6976 if test -s conftest.err; then
6977 # Append any errors to the config.log.
6978 cat conftest.err 1>&5
6979 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6981 if diff conftest.exp conftest.er2 >/dev/null; then
6982 lt_prog_compiler_static_works=yes
6985 lt_prog_compiler_static_works=yes
6989 LDFLAGS="$save_LDFLAGS"
6992 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6993 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6995 if test x"$lt_prog_compiler_static_works" = xyes; then
6998 lt_prog_compiler_static=
7002 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7003 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7004 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 lt_cv_prog_compiler_c_o=no
7008 $rm -r conftest 2>/dev/null
7012 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7014 lt_compiler_flag="-o out/conftest2.$ac_objext"
7015 # Insert the option either (1) after the last *FLAGS variable, or
7016 # (2) before a word containing "conftest.", or (3) at the end.
7017 # Note that $ac_compile itself does not contain backslashes and begins
7018 # with a dollar sign (not a hyphen), so the echo should work correctly.
7019 lt_compile=`echo "$ac_compile" | $SED \
7020 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7021 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7022 -e 's:$: $lt_compiler_flag:'`
7023 (eval echo "\"\$as_me:7023: $lt_compile\"" >&5)
7024 (eval "$lt_compile" 2>out/conftest.err)
7026 cat out/conftest.err >&5
7027 echo "$as_me:7027: \$? = $ac_status" >&5
7028 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7030 # The compiler can only warn and ignore the option if not recognized
7031 # So say no if there are warnings
7032 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7033 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7034 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7035 lt_cv_prog_compiler_c_o=yes
7040 # SGI C++ compiler will create directory out/ii_files/ for
7041 # template instantiation
7042 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7043 $rm out/* && rmdir out
7049 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7050 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7053 hard_links="nottested"
7054 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7055 # do not overwrite the value of need_locks provided by the user
7056 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7057 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7060 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7062 ln conftest.a conftest.b 2>&5 || hard_links=no
7063 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7064 echo "$as_me:$LINENO: result: $hard_links" >&5
7065 echo "${ECHO_T}$hard_links" >&6
7066 if test "$hard_links" = no; then
7067 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7068 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7075 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7076 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7079 allow_undefined_flag=
7080 enable_shared_with_static_runtimes=no
7082 archive_expsym_cmds=
7083 old_archive_From_new_cmds=
7084 old_archive_from_expsyms_cmds=
7085 export_dynamic_flag_spec=
7086 whole_archive_flag_spec=
7087 thread_safe_flag_spec=
7088 hardcode_libdir_flag_spec=
7089 hardcode_libdir_flag_spec_ld=
7090 hardcode_libdir_separator=
7093 hardcode_shlibpath_var=unsupported
7094 link_all_deplibs=unknown
7095 hardcode_automatic=no
7098 always_export_symbols=no
7099 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7100 # include_expsyms should be a list of space-separated symbols to be *always*
7101 # included in the symbol list
7103 # exclude_expsyms can be an extended regexp of symbols to exclude
7104 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7105 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7106 # as well as any symbol that contains `d'.
7107 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7108 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7109 # platforms (ab)use it in PIC code, but their linkers get confused if
7110 # the symbol is explicitly referenced. Since portable code cannot
7111 # rely on this symbol name, it's probably fine to never include it in
7112 # preloaded symbol tables.
7113 extract_expsyms_cmds=
7114 # Just being paranoid about ensuring that cc_basename is set.
7115 for cc_temp in $compiler""; do
7117 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7118 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7123 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7126 cygwin* | mingw* | pw32*)
7127 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7128 # When not using gcc, we currently assume that we are using
7129 # Microsoft Visual C++.
7130 if test "$GCC" != yes; then
7135 # we just hope/assume this is gcc and not c89 (= MSVC++)
7144 if test "$with_gnu_ld" = yes; then
7145 # If archive_cmds runs LD, not CC, wlarc should be empty
7148 # Set some defaults for GNU ld with shared library support. These
7149 # are reset later if shared libraries are not supported. Putting them
7150 # here allows them to be overridden if necessary.
7151 runpath_var=LD_RUN_PATH
7152 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7153 export_dynamic_flag_spec='${wl}--export-dynamic'
7154 # ancient GNU ld didn't support --whole-archive et. al.
7155 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7156 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7158 whole_archive_flag_spec=
7160 supports_anon_versioning=no
7161 case `$LD -v 2>/dev/null` in
7162 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7163 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7164 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7165 *\ 2.11.*) ;; # other 2.11 versions
7166 *) supports_anon_versioning=yes ;;
7169 # See if GNU ld supports shared libraries.
7171 aix3* | aix4* | aix5*)
7172 # On AIX/PPC, the GNU linker is very broken
7173 if test "$host_cpu" != ia64; then
7177 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7178 *** to be unable to reliably create shared libraries on AIX.
7179 *** Therefore, libtool is disabling shared libraries support. If you
7180 *** really care for shared libraries, you may want to modify your PATH
7181 *** so that a non-GNU linker is found, and then restart.
7188 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)'
7189 hardcode_libdir_flag_spec='-L$libdir'
7190 hardcode_minus_L=yes
7192 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7193 # that the semantics of dynamic libraries on AmigaOS, at least up
7194 # to version 4, is to share data among multiple programs linked
7195 # with the same dynamic library. Since this doesn't match the
7196 # behavior of shared libraries on other platforms, we can't use
7202 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7203 allow_undefined_flag=unsupported
7204 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7205 # support --undefined. This deserves some investigation. FIXME
7206 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7212 cygwin* | mingw* | pw32*)
7213 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7214 # as there is no search path for DLLs.
7215 hardcode_libdir_flag_spec='-L$libdir'
7216 allow_undefined_flag=unsupported
7217 always_export_symbols=no
7218 enable_shared_with_static_runtimes=yes
7219 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7221 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7223 # If the export-symbols file already is a .def file (1st line
7224 # is EXPORTS), use it as is; otherwise, prepend...
7225 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7226 cp $export_symbols $output_objdir/$soname.def;
7228 echo EXPORTS > $output_objdir/$soname.def;
7229 cat $export_symbols >> $output_objdir/$soname.def;
7231 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7239 hardcode_shlibpath_var=no
7240 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7241 export_dynamic_flag_spec='${wl}-E'
7242 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7243 # Instead, shared libraries are loaded at an image base (0x10000000 by
7244 # default) and relocated if they conflict, which is a slow very memory
7245 # consuming and fragmenting process. To avoid this, we pick a random,
7246 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7247 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7248 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7249 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'
7253 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7255 case $cc_basename,$host_cpu in
7256 pgcc*) # Portland Group C compiler
7257 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'
7258 tmp_addflag=' $pic_flag'
7260 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7261 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'
7262 tmp_addflag=' $pic_flag -Mnomain' ;;
7263 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7264 tmp_addflag=' -i_dynamic' ;;
7265 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7266 tmp_addflag=' -i_dynamic -nofor_main' ;;
7267 ifc* | ifort*) # Intel Fortran compiler
7268 tmp_addflag=' -nofor_main' ;;
7270 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7272 if test $supports_anon_versioning = yes; then
7273 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7274 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7275 $echo "local: *; };" >> $output_objdir/$libname.ver~
7276 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7284 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7285 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7289 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7294 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7298 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7299 *** create shared libraries on Solaris systems. Therefore, libtool
7300 *** is disabling shared libraries support. We urge you to upgrade GNU
7301 *** binutils to release 2.9.1 or newer. Another option is to modify
7302 *** your PATH or compiler configuration so that the native linker is
7303 *** used, and then restart.
7306 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7308 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7314 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7315 case `$LD -v 2>&1` in
7316 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7320 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7321 *** reliably create shared libraries on SCO systems. Therefore, libtool
7322 *** is disabling shared libraries support. We urge you to upgrade GNU
7323 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7324 *** your PATH or compiler configuration so that the native linker is
7325 *** used, and then restart.
7330 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7331 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7333 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7342 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7345 hardcode_shlibpath_var=no
7349 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7351 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7358 if test "$ld_shlibs" = no; then
7360 hardcode_libdir_flag_spec=
7361 export_dynamic_flag_spec=
7362 whole_archive_flag_spec=
7365 # PORTME fill in a description of your system's linker (not GNU ld)
7368 allow_undefined_flag=unsupported
7369 always_export_symbols=yes
7370 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'
7371 # Note: this linker hardcodes the directories in LIBPATH if there
7372 # are no directories specified by -L.
7373 hardcode_minus_L=yes
7374 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7375 # Neither direct hardcoding nor static linking is supported with a
7377 hardcode_direct=unsupported
7382 if test "$host_cpu" = ia64; then
7383 # On IA64, the linker does run time linking by default, so we don't
7384 # have to do anything special.
7385 aix_use_runtimelinking=no
7386 exp_sym_flag='-Bexport'
7389 # If we're using GNU nm, then we don't want the "-C" option.
7390 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7391 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7392 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'
7394 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'
7396 aix_use_runtimelinking=no
7398 # Test if we are trying to use run time linking or normal
7399 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7400 # need to do runtime linking.
7401 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7402 for ld_flag in $LDFLAGS; do
7403 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7404 aix_use_runtimelinking=yes
7411 exp_sym_flag='-bexport'
7412 no_entry_flag='-bnoentry'
7415 # When large executables or shared objects are built, AIX ld can
7416 # have problems creating the table of contents. If linking a library
7417 # or program results in "error TOC overflow" add -mminimal-toc to
7418 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7419 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7423 hardcode_libdir_separator=':'
7424 link_all_deplibs=yes
7426 if test "$GCC" = yes; then
7427 case $host_os in aix4.[012]|aix4.[012].*)
7428 # We only want to do this on AIX 4.2 and lower, the check
7429 # below for broken collect2 doesn't work under 4.3+
7430 collect2name=`${CC} -print-prog-name=collect2`
7431 if test -f "$collect2name" && \
7432 strings "$collect2name" | grep resolve_lib_name >/dev/null
7434 # We have reworked collect2
7437 # We have old collect2
7438 hardcode_direct=unsupported
7439 # It fails to find uninstalled libraries when the uninstalled
7440 # path is not listed in the libpath. Setting hardcode_minus_L
7441 # to unsupported forces relinking
7442 hardcode_minus_L=yes
7443 hardcode_libdir_flag_spec='-L$libdir'
7444 hardcode_libdir_separator=
7448 shared_flag='-shared'
7449 if test "$aix_use_runtimelinking" = yes; then
7450 shared_flag="$shared_flag "'${wl}-G'
7454 if test "$host_cpu" = ia64; then
7455 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7456 # chokes on -Wl,-G. The following line is correct:
7459 if test "$aix_use_runtimelinking" = yes; then
7460 shared_flag='${wl}-G'
7462 shared_flag='${wl}-bM:SRE'
7467 # It seems that -bexpall does not export symbols beginning with
7468 # underscore (_), so it is better to generate a list of symbols to export.
7469 always_export_symbols=yes
7470 if test "$aix_use_runtimelinking" = yes; then
7471 # Warning - without using the other runtime loading flags (-brtl),
7472 # -berok will link without error, but may produce a broken library.
7473 allow_undefined_flag='-berok'
7474 # Determine the default libpath from the value encoded in an empty executable.
7475 cat >conftest.$ac_ext <<_ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h. */
7490 rm -f conftest.$ac_objext conftest$ac_exeext
7491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7492 (eval $ac_link) 2>conftest.er1
7494 grep -v '^ *+' conftest.er1 >conftest.err
7496 cat conftest.err >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } &&
7499 { ac_try='test -z "$ac_c_werror_flag"
7500 || test ! -s conftest.err'
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; } &&
7506 { ac_try='test -s conftest$ac_exeext'
7507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); }; }; then
7513 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7515 # Check for a 64-bit object if we didn't find anything.
7516 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; }
7519 echo "$as_me: failed program was:" >&5
7520 sed 's/^/| /' conftest.$ac_ext >&5
7523 rm -f conftest.err conftest.$ac_objext \
7524 conftest$ac_exeext conftest.$ac_ext
7525 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7527 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7528 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"
7530 if test "$host_cpu" = ia64; then
7531 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7532 allow_undefined_flag="-z nodefs"
7533 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"
7535 # Determine the default libpath from the value encoded in an empty executable.
7536 cat >conftest.$ac_ext <<_ACEOF
7539 cat confdefs.h >>conftest.$ac_ext
7540 cat >>conftest.$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7551 rm -f conftest.$ac_objext conftest$ac_exeext
7552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553 (eval $ac_link) 2>conftest.er1
7555 grep -v '^ *+' conftest.er1 >conftest.err
7557 cat conftest.err >&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } &&
7560 { ac_try='test -z "$ac_c_werror_flag"
7561 || test ! -s conftest.err'
7562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }; } &&
7567 { ac_try='test -s conftest$ac_exeext'
7568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; }; then
7574 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7576 # Check for a 64-bit object if we didn't find anything.
7577 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; }
7580 echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
7584 rm -f conftest.err conftest.$ac_objext \
7585 conftest$ac_exeext conftest.$ac_ext
7586 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7588 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7589 # Warning - without using the other run time loading flags,
7590 # -berok will link without error, but may produce a broken library.
7591 no_undefined_flag=' ${wl}-bernotok'
7592 allow_undefined_flag=' ${wl}-berok'
7593 # Exported symbols can be pulled into shared objects from archives
7594 whole_archive_flag_spec='$convenience'
7595 archive_cmds_need_lc=yes
7596 # This is similar to how AIX traditionally builds its shared libraries.
7597 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'
7603 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)'
7604 hardcode_libdir_flag_spec='-L$libdir'
7605 hardcode_minus_L=yes
7606 # see comment about different semantics on the GNU ld section
7611 export_dynamic_flag_spec=-rdynamic
7614 cygwin* | mingw* | pw32*)
7615 # When not using gcc, we currently assume that we are using
7616 # Microsoft Visual C++.
7617 # hardcode_libdir_flag_spec is actually meaningless, as there is
7618 # no search path for DLLs.
7619 hardcode_libdir_flag_spec=' '
7620 allow_undefined_flag=unsupported
7621 # Tell ltmain to make .lib files, not .a files.
7623 # Tell ltmain to make .dll files, not .so files.
7625 # FIXME: Setting linknames here is a bad hack.
7626 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7627 # The linker will automatically build a .lib file if we build a DLL.
7628 old_archive_From_new_cmds='true'
7629 # FIXME: Should let the user specify the lib program.
7630 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7631 fix_srcfile_path='`cygpath -w "$srcfile"`'
7632 enable_shared_with_static_runtimes=yes
7635 darwin* | rhapsody*)
7637 rhapsody* | darwin1.[012])
7638 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7641 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7642 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7644 case ${MACOSX_DEPLOYMENT_TARGET} in
7646 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7649 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7655 archive_cmds_need_lc=no
7657 hardcode_automatic=yes
7658 hardcode_shlibpath_var=unsupported
7659 whole_archive_flag_spec=''
7660 link_all_deplibs=yes
7661 if test "$GCC" = yes ; then
7662 output_verbose_link_cmd='echo'
7663 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7664 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7665 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7666 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}'
7667 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}'
7669 case $cc_basename in
7671 output_verbose_link_cmd='echo'
7672 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7673 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7674 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7675 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}'
7676 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}'
7686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7687 hardcode_libdir_flag_spec='-L$libdir'
7688 hardcode_shlibpath_var=no
7695 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7696 # support. Future versions do this automatically, but an explicit c++rt0.o
7697 # does not break anything, and helps significantly (at the cost of a little
7700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7701 hardcode_libdir_flag_spec='-R$libdir'
7703 hardcode_shlibpath_var=no
7706 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7708 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7710 hardcode_minus_L=yes
7711 hardcode_shlibpath_var=no
7714 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7715 freebsd* | kfreebsd*-gnu | dragonfly*)
7716 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7717 hardcode_libdir_flag_spec='-R$libdir'
7719 hardcode_shlibpath_var=no
7723 if test "$GCC" = yes; then
7724 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'
7726 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'
7728 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7729 hardcode_libdir_separator=:
7732 # hardcode_minus_L: Not really in the search PATH,
7733 # but as the default location of the library.
7734 hardcode_minus_L=yes
7735 export_dynamic_flag_spec='${wl}-E'
7739 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7740 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7742 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7744 if test "$with_gnu_ld" = no; then
7745 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7746 hardcode_libdir_separator=:
7749 export_dynamic_flag_spec='${wl}-E'
7751 # hardcode_minus_L: Not really in the search PATH,
7752 # but as the default location of the library.
7753 hardcode_minus_L=yes
7758 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7761 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7764 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7767 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7773 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7776 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7779 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7783 if test "$with_gnu_ld" = no; then
7784 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7785 hardcode_libdir_separator=:
7789 hardcode_libdir_flag_spec_ld='+b $libdir'
7791 hardcode_shlibpath_var=no
7795 export_dynamic_flag_spec='${wl}-E'
7797 # hardcode_minus_L: Not really in the search PATH,
7798 # but as the default location of the library.
7799 hardcode_minus_L=yes
7805 irix5* | irix6* | nonstopux*)
7806 if test "$GCC" = yes; then
7807 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'
7809 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'
7810 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7813 hardcode_libdir_separator=:
7814 link_all_deplibs=yes
7818 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7819 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7821 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7823 hardcode_libdir_flag_spec='-R$libdir'
7825 hardcode_shlibpath_var=no
7829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7832 hardcode_libdir_separator=:
7833 hardcode_shlibpath_var=no
7838 hardcode_shlibpath_var=no
7839 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7840 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7841 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7842 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7843 export_dynamic_flag_spec='${wl}-E'
7846 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7848 hardcode_libdir_flag_spec='-R$libdir'
7851 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7852 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7859 hardcode_libdir_flag_spec='-L$libdir'
7860 hardcode_minus_L=yes
7861 allow_undefined_flag=unsupported
7862 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'
7863 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7867 if test "$GCC" = yes; then
7868 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7869 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'
7871 allow_undefined_flag=' -expect_unresolved \*'
7872 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'
7874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7875 hardcode_libdir_separator=:
7878 osf4* | osf5*) # as osf3* with the addition of -msym flag
7879 if test "$GCC" = yes; then
7880 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7881 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'
7882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7884 allow_undefined_flag=' -expect_unresolved \*'
7885 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'
7886 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7887 $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'
7889 # Both c and cxx compiler support -rpath directly
7890 hardcode_libdir_flag_spec='-rpath $libdir'
7892 hardcode_libdir_separator=:
7896 no_undefined_flag=' -z text'
7897 if test "$GCC" = yes; then
7899 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7900 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7901 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7904 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7905 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7906 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7908 hardcode_libdir_flag_spec='-R$libdir'
7909 hardcode_shlibpath_var=no
7911 solaris2.[0-5] | solaris2.[0-5].*) ;;
7913 # The compiler driver will combine linker options so we
7914 # cannot just pass the convience library names through
7915 # without $wl, iff we do not link with $LD.
7916 # Luckily, gcc supports the same syntax we need for Sun Studio.
7917 # Supported since Solaris 2.6 (maybe 2.5.1?)
7920 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7922 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' ;;
7925 link_all_deplibs=yes
7929 if test "x$host_vendor" = xsequent; then
7930 # Use $CC to link under sequent, because it throws in some extra .o
7931 # files that make .init and .fini sections work.
7932 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7934 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7936 hardcode_libdir_flag_spec='-L$libdir'
7938 hardcode_minus_L=yes
7939 hardcode_shlibpath_var=no
7943 case $host_vendor in
7945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7946 hardcode_direct=yes # is this really true???
7949 ## LD is ld it makes a PLAMLIB
7950 ## CC just makes a GrossModule.
7951 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7952 reload_cmds='$CC -r -o $output$reload_objs'
7956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7957 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7960 runpath_var='LD_RUN_PATH'
7961 hardcode_shlibpath_var=no
7965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7966 hardcode_shlibpath_var=no
7967 export_dynamic_flag_spec='-Bexport'
7971 if test -d /usr/nec; then
7972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7973 hardcode_shlibpath_var=no
7974 runpath_var=LD_RUN_PATH
7975 hardcode_runpath_var=yes
7980 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7981 no_undefined_flag='${wl}-z,text'
7982 archive_cmds_need_lc=no
7983 hardcode_shlibpath_var=no
7984 runpath_var='LD_RUN_PATH'
7986 if test "$GCC" = yes; then
7987 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7988 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7990 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7991 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7995 sysv5* | sco3.2v5* | sco5v6*)
7996 # Note: We can NOT use -z defs as we might desire, because we do not
7997 # link with -lc, and that would cause any symbols used from libc to
7998 # always be unresolved, which means just about no library would
7999 # ever link correctly. If we're not using GNU ld we use -z text
8000 # though, which does catch some bad symbols but isn't as heavy-handed
8002 no_undefined_flag='${wl}-z,text'
8003 allow_undefined_flag='${wl}-z,nodefs'
8004 archive_cmds_need_lc=no
8005 hardcode_shlibpath_var=no
8006 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8007 hardcode_libdir_separator=':'
8008 link_all_deplibs=yes
8009 export_dynamic_flag_spec='${wl}-Bexport'
8010 runpath_var='LD_RUN_PATH'
8012 if test "$GCC" = yes; then
8013 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8014 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8016 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8017 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8023 hardcode_libdir_flag_spec='-L$libdir'
8024 hardcode_shlibpath_var=no
8033 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8034 echo "${ECHO_T}$ld_shlibs" >&6
8035 test "$ld_shlibs" = no && can_build_shared=no
8038 # Do we need to explicitly link libc?
8040 case "x$archive_cmds_need_lc" in
8042 # Assume -lc should be added
8043 archive_cmds_need_lc=yes
8045 if test "$enable_shared" = yes && test "$GCC" = yes; then
8046 case $archive_cmds in
8048 # FIXME: we may have to deal with multi-command sequences.
8051 # Test whether the compiler implicitly links with -lc since on some
8052 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8053 # to ld, don't add -lc before -lgcc.
8054 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8055 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8057 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8060 (eval $ac_compile) 2>&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } 2>conftest.err; then
8066 libobjs=conftest.$ac_objext
8068 wl=$lt_prog_compiler_wl
8069 pic_flag=$lt_prog_compiler_pic
8075 lt_save_allow_undefined_flag=$allow_undefined_flag
8076 allow_undefined_flag=
8077 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8078 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }
8083 archive_cmds_need_lc=no
8085 archive_cmds_need_lc=yes
8087 allow_undefined_flag=$lt_save_allow_undefined_flag
8089 cat conftest.err 1>&5
8092 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8093 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8100 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8101 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8103 libname_spec='lib$name'
8111 shlibpath_overrides_runpath=unknown
8113 dynamic_linker="$host_os ld.so"
8114 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8115 if test "$GCC" = yes; then
8116 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8117 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8118 # if the path contains ";" then we assume it to be the separator
8119 # otherwise default to the standard path separator (i.e. ":") - it is
8120 # assumed that no part of a normal pathname contains ";" but that should
8121 # okay in the real world where ";" in dirpaths is itself problematic.
8122 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8124 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8127 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8129 need_lib_prefix=unknown
8130 hardcode_into_libs=no
8132 # when you set need_version to no, make sure it does not cause -set_version
8133 # flags to be left without arguments
8134 need_version=unknown
8139 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8140 shlibpath_var=LIBPATH
8142 # AIX 3 has no versioning support, so we append a major version to the name.
8143 soname_spec='${libname}${release}${shared_ext}$major'
8150 hardcode_into_libs=yes
8151 if test "$host_cpu" = ia64; then
8152 # AIX 5 supports IA64
8153 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8154 shlibpath_var=LD_LIBRARY_PATH
8156 # With GCC up to 2.95.x, collect2 would create an import file
8157 # for dependence libraries. The import file would start with
8158 # the line `#! .'. This would cause the generated library to
8159 # depend on `.', always an invalid library. This was fixed in
8160 # development snapshots of GCC prior to 3.0.
8162 aix4 | aix4.[01] | aix4.[01].*)
8163 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8165 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8172 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8173 # soname into executable. Probably we can add versioning support to
8174 # collect2, so additional links can be useful in future.
8175 if test "$aix_use_runtimelinking" = yes; then
8176 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8177 # instead of lib<name>.a to let people know that these are not
8178 # typical AIX shared libraries.
8179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8181 # We preserve .a as extension for shared libraries through AIX4.2
8182 # and later when we are not doing run time linking.
8183 library_names_spec='${libname}${release}.a $libname.a'
8184 soname_spec='${libname}${release}${shared_ext}$major'
8186 shlibpath_var=LIBPATH
8191 library_names_spec='$libname.ixlibrary $libname.a'
8192 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8193 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'
8197 library_names_spec='${libname}${shared_ext}'
8198 dynamic_linker="$host_os ld.so"
8199 shlibpath_var=LIBRARY_PATH
8205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8206 soname_spec='${libname}${release}${shared_ext}$major'
8207 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8208 shlibpath_var=LD_LIBRARY_PATH
8209 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8210 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8211 # the default ld.so.conf also contains /usr/contrib/lib and
8212 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8213 # libtool to hard-code these into programs
8216 cygwin* | mingw* | pw32*)
8217 version_type=windows
8222 case $GCC,$host_os in
8223 yes,cygwin* | yes,mingw* | yes,pw32*)
8224 library_names_spec='$libname.dll.a'
8225 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8226 postinstall_cmds='base_file=`basename \${file}`~
8227 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8228 dldir=$destdir/`dirname \$dlpath`~
8229 test -d \$dldir || mkdir -p \$dldir~
8230 $install_prog $dir/$dlname \$dldir/$dlname~
8231 chmod a+x \$dldir/$dlname'
8232 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8233 dlpath=$dir/\$dldll~
8235 shlibpath_overrides_runpath=yes
8239 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8240 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8241 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8244 # MinGW DLLs use traditional 'lib' prefix
8245 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8246 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8247 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8248 # It is most probably a Windows format PATH printed by
8249 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8250 # path with ; separators, and with drive letters. We can handle the
8251 # drive letters (cygwin fileutils understands them), so leave them,
8252 # especially as we might pass files found there to a mingw objdump,
8253 # which wouldn't understand a cygwinified path. Ahh.
8254 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8260 # pw32 DLLs use 'pw' prefix rather than 'lib'
8261 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8267 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8270 dynamic_linker='Win32 ld.exe'
8271 # FIXME: first we should search . and the directory the executable is in
8275 darwin* | rhapsody*)
8276 dynamic_linker="$host_os dyld"
8280 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8281 soname_spec='${libname}${release}${major}$shared_ext'
8282 shlibpath_overrides_runpath=yes
8283 shlibpath_var=DYLD_LIBRARY_PATH
8284 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8285 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8286 if test "$GCC" = yes; then
8287 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"`
8289 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8291 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8299 soname_spec='${libname}${release}${shared_ext}$major'
8300 shlibpath_var=LD_LIBRARY_PATH
8311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8312 soname_spec='${libname}${release}${shared_ext}$major'
8313 shlibpath_var=LD_LIBRARY_PATH
8314 shlibpath_overrides_runpath=no
8315 hardcode_into_libs=yes
8316 dynamic_linker='GNU ld.so'
8319 freebsd* | dragonfly*)
8320 # DragonFly does not have aout. When/if they implement a new
8321 # versioning mechanism, adjust this.
8322 if test -x /usr/bin/objformat; then
8323 objformat=`/usr/bin/objformat`
8326 freebsd[123]*) objformat=aout ;;
8330 version_type=freebsd-$objformat
8331 case $version_type in
8333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8338 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8342 shlibpath_var=LD_LIBRARY_PATH
8345 shlibpath_overrides_runpath=yes
8347 freebsd3.[01]* | freebsdelf3.[01]*)
8348 shlibpath_overrides_runpath=yes
8349 hardcode_into_libs=yes
8351 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8352 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8353 shlibpath_overrides_runpath=no
8354 hardcode_into_libs=yes
8356 freebsd*) # from 4.6 on
8357 shlibpath_overrides_runpath=yes
8358 hardcode_into_libs=yes
8367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8368 soname_spec='${libname}${release}${shared_ext}$major'
8369 shlibpath_var=LD_LIBRARY_PATH
8370 hardcode_into_libs=yes
8373 hpux9* | hpux10* | hpux11*)
8374 # Give a soname corresponding to the major version so that dld.sl refuses to
8375 # link against other versions.
8382 hardcode_into_libs=yes
8383 dynamic_linker="$host_os dld.so"
8384 shlibpath_var=LD_LIBRARY_PATH
8385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8387 soname_spec='${libname}${release}${shared_ext}$major'
8388 if test "X$HPUX_IA64_MODE" = X32; then
8389 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8391 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8393 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8397 hardcode_into_libs=yes
8398 dynamic_linker="$host_os dld.sl"
8399 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8400 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8402 soname_spec='${libname}${release}${shared_ext}$major'
8403 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8404 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8408 dynamic_linker="$host_os dld.sl"
8409 shlibpath_var=SHLIB_PATH
8410 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8412 soname_spec='${libname}${release}${shared_ext}$major'
8415 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8416 postinstall_cmds='chmod 555 $lib'
8423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8424 soname_spec='${libname}${release}${shared_ext}$major'
8425 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8426 shlibpath_var=LD_LIBRARY_PATH
8427 shlibpath_overrides_runpath=no
8428 hardcode_into_libs=yes
8431 irix5* | irix6* | nonstopux*)
8433 nonstopux*) version_type=nonstopux ;;
8435 if test "$lt_cv_prog_gnu_ld" = yes; then
8443 soname_spec='${libname}${release}${shared_ext}$major'
8444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8446 irix5* | nonstopux*)
8450 case $LD in # libtool.m4 will add one of these switches to LD
8451 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8452 libsuff= shlibsuff= libmagic=32-bit;;
8453 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8454 libsuff=32 shlibsuff=N32 libmagic=N32;;
8455 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8456 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8457 *) libsuff= shlibsuff= libmagic=never-match;;
8461 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8462 shlibpath_overrides_runpath=no
8463 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8464 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8465 hardcode_into_libs=yes
8468 # No shared lib support for Linux oldld, aout, or coff.
8469 linux*oldld* | linux*aout* | linux*coff*)
8473 # This must be Linux ELF.
8478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8479 soname_spec='${libname}${release}${shared_ext}$major'
8480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8481 shlibpath_var=LD_LIBRARY_PATH
8482 shlibpath_overrides_runpath=no
8483 # This implies no fast_install, which is unacceptable.
8484 # Some rework will be needed to allow for fast_install
8485 # before this can be enabled.
8486 hardcode_into_libs=yes
8488 # find out which ABI we are using
8491 x86_64*|s390x*|powerpc64*)
8492 echo '#line 8492 "configure"' > conftest.$ac_ext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8494 (eval $ac_compile) 2>&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; then
8498 case `/usr/bin/file conftest.$ac_objext` in
8501 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8509 # Append ld.so.conf contents to the search path
8510 if test -f /etc/ld.so.conf; then
8511 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' ' '`
8512 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8515 # We used to test for /lib/ld.so.1 and disable shared libraries on
8516 # powerpc, because MkLinux only supported shared libraries with the
8517 # GNU dynamic linker. Since this was broken with cross compilers,
8518 # most powerpc-linux boxes support dynamic linking these days and
8519 # people can always --disable-shared, the test was removed, and we
8520 # assume the GNU/Linux dynamic linker is in use.
8521 dynamic_linker='GNU/Linux ld.so'
8528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8529 soname_spec='${libname}${release}${shared_ext}$major'
8530 shlibpath_var=LD_LIBRARY_PATH
8531 shlibpath_overrides_runpath=no
8532 hardcode_into_libs=yes
8533 dynamic_linker='GNU ld.so'
8540 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8543 dynamic_linker='NetBSD (a.out) ld.so'
8545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8546 soname_spec='${libname}${release}${shared_ext}$major'
8547 dynamic_linker='NetBSD ld.elf_so'
8549 shlibpath_var=LD_LIBRARY_PATH
8550 shlibpath_overrides_runpath=yes
8551 hardcode_into_libs=yes
8556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8557 shlibpath_var=LD_LIBRARY_PATH
8558 shlibpath_overrides_runpath=yes
8565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8566 soname_spec='${libname}${release}${shared_ext}$major'
8567 shlibpath_var=LD_LIBRARY_PATH
8568 shlibpath_overrides_runpath=yes
8573 sys_lib_dlsearch_path_spec="/usr/lib"
8575 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8577 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8578 *) need_version=no ;;
8580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8582 shlibpath_var=LD_LIBRARY_PATH
8583 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8585 openbsd2.[89] | openbsd2.[89].*)
8586 shlibpath_overrides_runpath=no
8589 shlibpath_overrides_runpath=yes
8593 shlibpath_overrides_runpath=yes
8598 libname_spec='$name'
8601 library_names_spec='$libname${shared_ext} $libname.a'
8602 dynamic_linker='OS/2 ld.exe'
8603 shlibpath_var=LIBPATH
8606 osf3* | osf4* | osf5*)
8610 soname_spec='${libname}${release}${shared_ext}$major'
8611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8612 shlibpath_var=LD_LIBRARY_PATH
8613 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8614 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8622 soname_spec='${libname}${release}${shared_ext}$major'
8623 shlibpath_var=LD_LIBRARY_PATH
8624 shlibpath_overrides_runpath=yes
8625 hardcode_into_libs=yes
8626 # ldd complains unless libraries are executable
8627 postinstall_cmds='chmod +x $lib'
8632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8633 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8634 shlibpath_var=LD_LIBRARY_PATH
8635 shlibpath_overrides_runpath=yes
8636 if test "$with_gnu_ld" = yes; then
8644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8645 soname_spec='${libname}${release}${shared_ext}$major'
8646 shlibpath_var=LD_LIBRARY_PATH
8647 case $host_vendor in
8649 shlibpath_overrides_runpath=no
8651 export_dynamic_flag_spec='${wl}-Blargedynsym'
8652 runpath_var=LD_RUN_PATH
8660 shlibpath_overrides_runpath=no
8661 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8667 if test -d /usr/nec ;then
8669 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8670 soname_spec='$libname${shared_ext}.$major'
8671 shlibpath_var=LD_LIBRARY_PATH
8675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8676 version_type=freebsd-elf
8679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8680 soname_spec='${libname}${release}${shared_ext}$major'
8681 shlibpath_var=LD_LIBRARY_PATH
8682 hardcode_into_libs=yes
8683 if test "$with_gnu_ld" = yes; then
8684 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8685 shlibpath_overrides_runpath=no
8687 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8688 shlibpath_overrides_runpath=yes
8691 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8695 sys_lib_dlsearch_path_spec='/usr/lib'
8700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8701 soname_spec='${libname}${release}${shared_ext}$major'
8702 shlibpath_var=LD_LIBRARY_PATH
8709 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8710 echo "${ECHO_T}$dynamic_linker" >&6
8711 test "$dynamic_linker" = no && can_build_shared=no
8713 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8714 if test "$GCC" = yes; then
8715 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8718 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8719 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8721 if test -n "$hardcode_libdir_flag_spec" || \
8722 test -n "$runpath_var" || \
8723 test "X$hardcode_automatic" = "Xyes" ; then
8725 # We can hardcode non-existant directories.
8726 if test "$hardcode_direct" != no &&
8727 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8728 # have to relink, otherwise we might link with an installed library
8729 # when we should be linking with a yet-to-be-installed one
8730 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8731 test "$hardcode_minus_L" != no; then
8732 # Linking always hardcodes the temporary library directory.
8733 hardcode_action=relink
8735 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8736 hardcode_action=immediate
8739 # We cannot hardcode anything, or else we can only hardcode existing
8741 hardcode_action=unsupported
8743 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8744 echo "${ECHO_T}$hardcode_action" >&6
8746 if test "$hardcode_action" = relink; then
8747 # Fast installation is not supported
8748 enable_fast_install=no
8749 elif test "$shlibpath_overrides_runpath" = yes ||
8750 test "$enable_shared" = no; then
8751 # Fast installation is not necessary
8752 enable_fast_install=needless
8757 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8758 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8759 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8760 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8761 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8762 echo "$as_me:$LINENO: result: yes" >&5
8763 echo "${ECHO_T}yes" >&6
8765 # FIXME - insert some real tests, host_os isn't really good enough
8768 if test -n "$STRIP" ; then
8769 striplib="$STRIP -x"
8770 echo "$as_me:$LINENO: result: yes" >&5
8771 echo "${ECHO_T}yes" >&6
8773 echo "$as_me:$LINENO: result: no" >&5
8774 echo "${ECHO_T}no" >&6
8778 echo "$as_me:$LINENO: result: no" >&5
8779 echo "${ECHO_T}no" >&6
8784 if test "x$enable_dlopen" != xyes; then
8785 enable_dlopen=unknown
8786 enable_dlopen_self=unknown
8787 enable_dlopen_self_static=unknown
8794 lt_cv_dlopen="load_add_on"
8796 lt_cv_dlopen_self=yes
8800 lt_cv_dlopen="LoadLibrary"
8805 lt_cv_dlopen="dlopen"
8810 # if libdl is installed we need to link against it
8811 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8812 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8813 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 ac_check_lib_save_LIBS=$LIBS
8818 cat >conftest.$ac_ext <<_ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h. */
8825 /* Override any gcc2 internal prototype to avoid an error. */
8829 /* We use char because int might match the return type of a gcc2
8830 builtin and then its argument prototype would still apply. */
8840 rm -f conftest.$ac_objext conftest$ac_exeext
8841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842 (eval $ac_link) 2>conftest.er1
8844 grep -v '^ *+' conftest.er1 >conftest.err
8846 cat conftest.err >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } &&
8849 { ac_try='test -z "$ac_c_werror_flag"
8850 || test ! -s conftest.err'
8851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; } &&
8856 { ac_try='test -s conftest$ac_exeext'
8857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }; }; then
8862 ac_cv_lib_dl_dlopen=yes
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8867 ac_cv_lib_dl_dlopen=no
8869 rm -f conftest.err conftest.$ac_objext \
8870 conftest$ac_exeext conftest.$ac_ext
8871 LIBS=$ac_check_lib_save_LIBS
8873 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8874 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8875 if test $ac_cv_lib_dl_dlopen = yes; then
8876 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8881 lt_cv_dlopen_self=yes
8888 echo "$as_me:$LINENO: checking for shl_load" >&5
8889 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8890 if test "${ac_cv_func_shl_load+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8893 cat >conftest.$ac_ext <<_ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8899 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8901 #define shl_load innocuous_shl_load
8903 /* System header to define __stub macros and hopefully few prototypes,
8904 which can conflict with char shl_load (); below.
8905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8906 <limits.h> exists even on freestanding compilers. */
8909 # include <limits.h>
8911 # include <assert.h>
8916 /* Override any gcc2 internal prototype to avoid an error. */
8921 /* We use char because int might match the return type of a gcc2
8922 builtin and then its argument prototype would still apply. */
8924 /* The GNU C library defines this for functions which it implements
8925 to always fail with ENOSYS. Some functions are actually named
8926 something starting with __ and the normal name is an alias. */
8927 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8930 char (*f) () = shl_load;
8939 return f != shl_load;
8944 rm -f conftest.$ac_objext conftest$ac_exeext
8945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8946 (eval $ac_link) 2>conftest.er1
8948 grep -v '^ *+' conftest.er1 >conftest.err
8950 cat conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
8953 { ac_try='test -z "$ac_c_werror_flag"
8954 || test ! -s conftest.err'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; } &&
8960 { ac_try='test -s conftest$ac_exeext'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; }; then
8966 ac_cv_func_shl_load=yes
8968 echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8971 ac_cv_func_shl_load=no
8973 rm -f conftest.err conftest.$ac_objext \
8974 conftest$ac_exeext conftest.$ac_ext
8976 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8977 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8978 if test $ac_cv_func_shl_load = yes; then
8979 lt_cv_dlopen="shl_load"
8981 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8982 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8983 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 ac_check_lib_save_LIBS=$LIBS
8988 cat >conftest.$ac_ext <<_ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8995 /* Override any gcc2 internal prototype to avoid an error. */
8999 /* We use char because int might match the return type of a gcc2
9000 builtin and then its argument prototype would still apply. */
9010 rm -f conftest.$ac_objext conftest$ac_exeext
9011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9012 (eval $ac_link) 2>conftest.er1
9014 grep -v '^ *+' conftest.er1 >conftest.err
9016 cat conftest.err >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try='test -z "$ac_c_werror_flag"
9020 || test ! -s conftest.err'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; } &&
9026 { ac_try='test -s conftest$ac_exeext'
9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; }; then
9032 ac_cv_lib_dld_shl_load=yes
9034 echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.$ac_ext >&5
9037 ac_cv_lib_dld_shl_load=no
9039 rm -f conftest.err conftest.$ac_objext \
9040 conftest$ac_exeext conftest.$ac_ext
9041 LIBS=$ac_check_lib_save_LIBS
9043 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9044 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9045 if test $ac_cv_lib_dld_shl_load = yes; then
9046 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9048 echo "$as_me:$LINENO: checking for dlopen" >&5
9049 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9050 if test "${ac_cv_func_dlopen+set}" = set; then
9051 echo $ECHO_N "(cached) $ECHO_C" >&6
9053 cat >conftest.$ac_ext <<_ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9059 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9061 #define dlopen innocuous_dlopen
9063 /* System header to define __stub macros and hopefully few prototypes,
9064 which can conflict with char dlopen (); below.
9065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9066 <limits.h> exists even on freestanding compilers. */
9069 # include <limits.h>
9071 # include <assert.h>
9076 /* Override any gcc2 internal prototype to avoid an error. */
9081 /* We use char because int might match the return type of a gcc2
9082 builtin and then its argument prototype would still apply. */
9084 /* The GNU C library defines this for functions which it implements
9085 to always fail with ENOSYS. Some functions are actually named
9086 something starting with __ and the normal name is an alias. */
9087 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9090 char (*f) () = dlopen;
9104 rm -f conftest.$ac_objext conftest$ac_exeext
9105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9106 (eval $ac_link) 2>conftest.er1
9108 grep -v '^ *+' conftest.er1 >conftest.err
9110 cat conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } &&
9113 { ac_try='test -z "$ac_c_werror_flag"
9114 || test ! -s conftest.err'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; } &&
9120 { ac_try='test -s conftest$ac_exeext'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
9126 ac_cv_func_dlopen=yes
9128 echo "$as_me: failed program was:" >&5
9129 sed 's/^/| /' conftest.$ac_ext >&5
9131 ac_cv_func_dlopen=no
9133 rm -f conftest.err conftest.$ac_objext \
9134 conftest$ac_exeext conftest.$ac_ext
9136 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9137 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9138 if test $ac_cv_func_dlopen = yes; then
9139 lt_cv_dlopen="dlopen"
9141 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9142 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9143 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 ac_check_lib_save_LIBS=$LIBS
9148 cat >conftest.$ac_ext <<_ACEOF
9151 cat confdefs.h >>conftest.$ac_ext
9152 cat >>conftest.$ac_ext <<_ACEOF
9153 /* end confdefs.h. */
9155 /* Override any gcc2 internal prototype to avoid an error. */
9159 /* We use char because int might match the return type of a gcc2
9160 builtin and then its argument prototype would still apply. */
9170 rm -f conftest.$ac_objext conftest$ac_exeext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9172 (eval $ac_link) 2>conftest.er1
9174 grep -v '^ *+' conftest.er1 >conftest.err
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -z "$ac_c_werror_flag"
9180 || test ! -s conftest.err'
9181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; } &&
9186 { ac_try='test -s conftest$ac_exeext'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
9192 ac_cv_lib_dl_dlopen=yes
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9197 ac_cv_lib_dl_dlopen=no
9199 rm -f conftest.err conftest.$ac_objext \
9200 conftest$ac_exeext conftest.$ac_ext
9201 LIBS=$ac_check_lib_save_LIBS
9203 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9204 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9205 if test $ac_cv_lib_dl_dlopen = yes; then
9206 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9208 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9209 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9210 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
9213 ac_check_lib_save_LIBS=$LIBS
9215 cat >conftest.$ac_ext <<_ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9222 /* Override any gcc2 internal prototype to avoid an error. */
9226 /* We use char because int might match the return type of a gcc2
9227 builtin and then its argument prototype would still apply. */
9237 rm -f conftest.$ac_objext conftest$ac_exeext
9238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9239 (eval $ac_link) 2>conftest.er1
9241 grep -v '^ *+' conftest.er1 >conftest.err
9243 cat conftest.err >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); } &&
9246 { ac_try='test -z "$ac_c_werror_flag"
9247 || test ! -s conftest.err'
9248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); }; } &&
9253 { ac_try='test -s conftest$ac_exeext'
9254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); }; }; then
9259 ac_cv_lib_svld_dlopen=yes
9261 echo "$as_me: failed program was:" >&5
9262 sed 's/^/| /' conftest.$ac_ext >&5
9264 ac_cv_lib_svld_dlopen=no
9266 rm -f conftest.err conftest.$ac_objext \
9267 conftest$ac_exeext conftest.$ac_ext
9268 LIBS=$ac_check_lib_save_LIBS
9270 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9271 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9272 if test $ac_cv_lib_svld_dlopen = yes; then
9273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9275 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9276 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9277 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9280 ac_check_lib_save_LIBS=$LIBS
9282 cat >conftest.$ac_ext <<_ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9289 /* Override any gcc2 internal prototype to avoid an error. */
9293 /* We use char because int might match the return type of a gcc2
9294 builtin and then its argument prototype would still apply. */
9304 rm -f conftest.$ac_objext conftest$ac_exeext
9305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9306 (eval $ac_link) 2>conftest.er1
9308 grep -v '^ *+' conftest.er1 >conftest.err
9310 cat conftest.err >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } &&
9313 { ac_try='test -z "$ac_c_werror_flag"
9314 || test ! -s conftest.err'
9315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; } &&
9320 { ac_try='test -s conftest$ac_exeext'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; }; then
9326 ac_cv_lib_dld_dld_link=yes
9328 echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9331 ac_cv_lib_dld_dld_link=no
9333 rm -f conftest.err conftest.$ac_objext \
9334 conftest$ac_exeext conftest.$ac_ext
9335 LIBS=$ac_check_lib_save_LIBS
9337 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9338 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9339 if test $ac_cv_lib_dld_dld_link = yes; then
9340 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9361 if test "x$lt_cv_dlopen" != xno; then
9367 case $lt_cv_dlopen in
9369 save_CPPFLAGS="$CPPFLAGS"
9370 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9372 save_LDFLAGS="$LDFLAGS"
9373 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9376 LIBS="$lt_cv_dlopen_libs $LIBS"
9378 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9379 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9380 if test "${lt_cv_dlopen_self+set}" = set; then
9381 echo $ECHO_N "(cached) $ECHO_C" >&6
9383 if test "$cross_compiling" = yes; then :
9384 lt_cv_dlopen_self=cross
9386 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9387 lt_status=$lt_dlunknown
9388 cat > conftest.$ac_ext <<EOF
9389 #line 9389 "configure"
9390 #include "confdefs.h"
9399 # define LT_DLGLOBAL RTLD_GLOBAL
9402 # define LT_DLGLOBAL DL_GLOBAL
9404 # define LT_DLGLOBAL 0
9408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9409 find out it does not work in some platform. */
9410 #ifndef LT_DLLAZY_OR_NOW
9412 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9415 # define LT_DLLAZY_OR_NOW DL_LAZY
9418 # define LT_DLLAZY_OR_NOW RTLD_NOW
9421 # define LT_DLLAZY_OR_NOW DL_NOW
9423 # define LT_DLLAZY_OR_NOW 0
9431 extern "C" void exit (int);
9434 void fnord() { int i=42;}
9437 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9438 int status = $lt_dlunknown;
9442 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9443 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9444 /* dlclose (self); */
9452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9453 (eval $ac_link) 2>&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9457 (./conftest; exit; ) >&5 2>/dev/null
9460 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9461 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9462 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9465 # compilation failed
9466 lt_cv_dlopen_self=no
9473 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9474 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9476 if test "x$lt_cv_dlopen_self" = xyes; then
9477 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9478 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9479 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9480 if test "${lt_cv_dlopen_self_static+set}" = set; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
9483 if test "$cross_compiling" = yes; then :
9484 lt_cv_dlopen_self_static=cross
9486 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9487 lt_status=$lt_dlunknown
9488 cat > conftest.$ac_ext <<EOF
9489 #line 9489 "configure"
9490 #include "confdefs.h"
9499 # define LT_DLGLOBAL RTLD_GLOBAL
9502 # define LT_DLGLOBAL DL_GLOBAL
9504 # define LT_DLGLOBAL 0
9508 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9509 find out it does not work in some platform. */
9510 #ifndef LT_DLLAZY_OR_NOW
9512 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9515 # define LT_DLLAZY_OR_NOW DL_LAZY
9518 # define LT_DLLAZY_OR_NOW RTLD_NOW
9521 # define LT_DLLAZY_OR_NOW DL_NOW
9523 # define LT_DLLAZY_OR_NOW 0
9531 extern "C" void exit (int);
9534 void fnord() { int i=42;}
9537 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9538 int status = $lt_dlunknown;
9542 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9543 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9544 /* dlclose (self); */
9552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9553 (eval $ac_link) 2>&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9557 (./conftest; exit; ) >&5 2>/dev/null
9560 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9561 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9562 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9565 # compilation failed
9566 lt_cv_dlopen_self_static=no
9573 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9574 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9577 CPPFLAGS="$save_CPPFLAGS"
9578 LDFLAGS="$save_LDFLAGS"
9583 case $lt_cv_dlopen_self in
9584 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9585 *) enable_dlopen_self=unknown ;;
9588 case $lt_cv_dlopen_self_static in
9589 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9590 *) enable_dlopen_self_static=unknown ;;
9595 # Report which library types will actually be built
9596 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9597 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9598 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9599 echo "${ECHO_T}$can_build_shared" >&6
9601 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9602 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9603 test "$can_build_shared" = "no" && enable_shared=no
9605 # On AIX, shared libraries and static libraries use the same namespace, and
9606 # are all built from PIC.
9609 test "$enable_shared" = yes && enable_static=no
9610 if test -n "$RANLIB"; then
9611 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9612 postinstall_cmds='$RANLIB $lib'
9617 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9618 test "$enable_shared" = yes && enable_static=no
9622 echo "$as_me:$LINENO: result: $enable_shared" >&5
9623 echo "${ECHO_T}$enable_shared" >&6
9625 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9626 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9627 # Make sure either enable_shared or enable_static is yes.
9628 test "$enable_shared" = yes || enable_static=yes
9629 echo "$as_me:$LINENO: result: $enable_static" >&5
9630 echo "${ECHO_T}$enable_static" >&6
9632 # The else clause should only fire when bootstrapping the
9633 # libtool distribution, otherwise you forgot to ship ltmain.sh
9634 # with your package, and you will get complaints that there are
9635 # no rules to generate ltmain.sh.
9636 if test -f "$ltmain"; then
9637 # See if we are running on zsh, and set the options which allow our commands through
9638 # without removal of \ escapes.
9639 if test -n "${ZSH_VERSION+set}" ; then
9640 setopt NO_GLOB_SUBST
9642 # Now quote all the things that may contain metacharacters while being
9643 # careful not to overquote the AC_SUBSTed values. We take copies of the
9644 # variables and quote the copies for generation of the libtool script.
9645 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9647 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9648 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9649 deplibs_check_method reload_flag reload_cmds need_locks \
9650 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9651 lt_cv_sys_global_symbol_to_c_name_address \
9652 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9653 old_postinstall_cmds old_postuninstall_cmds \
9657 lt_prog_compiler_wl \
9658 lt_prog_compiler_pic \
9659 lt_prog_compiler_static \
9660 lt_prog_compiler_no_builtin_flag \
9661 export_dynamic_flag_spec \
9662 thread_safe_flag_spec \
9663 whole_archive_flag_spec \
9664 enable_shared_with_static_runtimes \
9666 old_archive_from_new_cmds \
9671 compiler_lib_search_path \
9673 archive_expsym_cmds \
9675 postuninstall_cmds \
9676 old_archive_from_expsyms_cmds \
9677 allow_undefined_flag \
9679 export_symbols_cmds \
9680 hardcode_libdir_flag_spec \
9681 hardcode_libdir_flag_spec_ld \
9682 hardcode_libdir_separator \
9683 hardcode_automatic \
9685 module_expsym_cmds \
9686 lt_cv_prog_compiler_c_o \
9691 old_archive_cmds | \
9692 old_archive_from_new_cmds | \
9694 archive_expsym_cmds | \
9696 module_expsym_cmds | \
9697 old_archive_from_expsyms_cmds | \
9698 export_symbols_cmds | \
9699 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9700 postinstall_cmds | postuninstall_cmds | \
9701 old_postinstall_cmds | old_postuninstall_cmds | \
9702 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9703 # Double-quote double-evaled strings.
9704 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9707 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9713 *'\$0 --fallback-echo"')
9714 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9719 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9721 { echo "$as_me:$LINENO: creating $ofile" >&5
9722 echo "$as_me: creating $ofile" >&6;}
9724 cat <<__EOF__ >> "$cfgfile"
9727 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9728 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9729 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9731 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9732 # Free Software Foundation, Inc.
9734 # This file is part of GNU Libtool:
9735 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9737 # This program is free software; you can redistribute it and/or modify
9738 # it under the terms of the GNU General Public License as published by
9739 # the Free Software Foundation; either version 2 of the License, or
9740 # (at your option) any later version.
9742 # This program is distributed in the hope that it will be useful, but
9743 # WITHOUT ANY WARRANTY; without even the implied warranty of
9744 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9745 # General Public License for more details.
9747 # You should have received a copy of the GNU General Public License
9748 # along with this program; if not, write to the Free Software
9749 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9751 # As a special exception to the GNU General Public License, if you
9752 # distribute this file as part of a program that contains a
9753 # configuration script generated by Autoconf, you may include it under
9754 # the same distribution terms that you use for the rest of that program.
9756 # A sed program that does not truncate output.
9759 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9760 Xsed="$SED -e 1s/^X//"
9762 # The HP-UX ksh and POSIX shell print the target directory to stdout
9764 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9766 # The names of the tagged configurations supported by this script.
9769 # ### BEGIN LIBTOOL CONFIG
9771 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9773 # Shell to use when invoking shell scripts.
9776 # Whether or not to build shared libraries.
9777 build_libtool_libs=$enable_shared
9779 # Whether or not to build static libraries.
9780 build_old_libs=$enable_static
9782 # Whether or not to add -lc for building shared libraries.
9783 build_libtool_need_lc=$archive_cmds_need_lc
9785 # Whether or not to disallow shared libs when runtime libs are static
9786 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9788 # Whether or not to optimize for fast installation.
9789 fast_install=$enable_fast_install
9792 host_alias=$host_alias
9797 build_alias=$build_alias
9801 # An echo program that does not interpret backslashes.
9806 AR_FLAGS=$lt_AR_FLAGS
9811 # LTCC compiler flags.
9812 LTCFLAGS=$lt_LTCFLAGS
9814 # A language-specific compiler.
9817 # Is the compiler the GNU C compiler?
9820 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9821 gcc_ver=\`gcc -dumpversion\`
9826 # The linker used to build libraries.
9829 # Whether we need hard or soft links.
9832 # A BSD-compatible nm program.
9835 # A symbol stripping program
9838 # Used to examine libraries when file_magic_cmd begins "file"
9839 MAGIC_CMD=$MAGIC_CMD
9841 # Used on cygwin: DLL creation program.
9844 # Used on cygwin: object dumper.
9847 # Used on cygwin: assembler.
9850 # The name of the directory that contains temporary libtool files.
9853 # How to create reloadable object files.
9854 reload_flag=$lt_reload_flag
9855 reload_cmds=$lt_reload_cmds
9857 # How to pass a linker flag through the compiler.
9858 wl=$lt_lt_prog_compiler_wl
9860 # Object file suffix (normally "o").
9863 # Old archive suffix (normally "a").
9866 # Shared library suffix (normally ".so").
9867 shrext_cmds='$shrext_cmds'
9869 # Executable file suffix (normally "").
9872 # Additional compiler flags for building library objects.
9873 pic_flag=$lt_lt_prog_compiler_pic
9876 # What is the maximum length of a command?
9877 max_cmd_len=$lt_cv_sys_max_cmd_len
9879 # Does compiler simultaneously support -c and -o options?
9880 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9882 # Must we lock files when doing compilation?
9883 need_locks=$lt_need_locks
9885 # Do we need the lib prefix for modules?
9886 need_lib_prefix=$need_lib_prefix
9888 # Do we need a version for libraries?
9889 need_version=$need_version
9891 # Whether dlopen is supported.
9892 dlopen_support=$enable_dlopen
9894 # Whether dlopen of programs is supported.
9895 dlopen_self=$enable_dlopen_self
9897 # Whether dlopen of statically linked programs is supported.
9898 dlopen_self_static=$enable_dlopen_self_static
9900 # Compiler flag to prevent dynamic linking.
9901 link_static_flag=$lt_lt_prog_compiler_static
9903 # Compiler flag to turn off builtin functions.
9904 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9906 # Compiler flag to allow reflexive dlopens.
9907 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9909 # Compiler flag to generate shared objects directly from archives.
9910 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9912 # Compiler flag to generate thread-safe objects.
9913 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9915 # Library versioning type.
9916 version_type=$version_type
9918 # Format of library name prefix.
9919 libname_spec=$lt_libname_spec
9921 # List of archive names. First name is the real one, the rest are links.
9922 # The last name is the one that the linker finds with -lNAME.
9923 library_names_spec=$lt_library_names_spec
9925 # The coded name of the library, if different from the real name.
9926 soname_spec=$lt_soname_spec
9928 # Commands used to build and install an old-style archive.
9930 old_archive_cmds=$lt_old_archive_cmds
9931 old_postinstall_cmds=$lt_old_postinstall_cmds
9932 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9934 # Create an old-style archive from a shared archive.
9935 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9937 # Create a temporary old-style archive to link instead of a shared archive.
9938 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9940 # Commands used to build and install a shared archive.
9941 archive_cmds=$lt_archive_cmds
9942 archive_expsym_cmds=$lt_archive_expsym_cmds
9943 postinstall_cmds=$lt_postinstall_cmds
9944 postuninstall_cmds=$lt_postuninstall_cmds
9946 # Commands used to build a loadable module (assumed same as above if empty)
9947 module_cmds=$lt_module_cmds
9948 module_expsym_cmds=$lt_module_expsym_cmds
9950 # Commands to strip libraries.
9951 old_striplib=$lt_old_striplib
9952 striplib=$lt_striplib
9954 # Dependencies to place before the objects being linked to create a
9956 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9958 # Dependencies to place after the objects being linked to create a
9960 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9962 # Dependencies to place before the objects being linked to create a
9966 # Dependencies to place after the objects being linked to create a
9968 postdeps=$lt_postdeps
9970 # The library search path used internally by the compiler when linking
9972 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9974 # Method to check whether dependent libraries are shared objects.
9975 deplibs_check_method=$lt_deplibs_check_method
9977 # Command to use when deplibs_check_method == file_magic.
9978 file_magic_cmd=$lt_file_magic_cmd
9980 # Flag that allows shared libraries with undefined symbols to be built.
9981 allow_undefined_flag=$lt_allow_undefined_flag
9983 # Flag that forces no undefined symbols.
9984 no_undefined_flag=$lt_no_undefined_flag
9986 # Commands used to finish a libtool library installation in a directory.
9987 finish_cmds=$lt_finish_cmds
9989 # Same as above, but a single script fragment to be evaled but not shown.
9990 finish_eval=$lt_finish_eval
9992 # Take the output of nm and produce a listing of raw symbols and C names.
9993 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9995 # Transform the output of nm in a proper C declaration
9996 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9998 # Transform the output of nm in a C name address pair
9999 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10001 # This is the shared library runtime path variable.
10002 runpath_var=$runpath_var
10004 # This is the shared library path variable.
10005 shlibpath_var=$shlibpath_var
10007 # Is shlibpath searched before the hard-coded library search path?
10008 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10010 # How to hardcode a shared library path into an executable.
10011 hardcode_action=$hardcode_action
10013 # Whether we should hardcode library paths into libraries.
10014 hardcode_into_libs=$hardcode_into_libs
10016 # Flag to hardcode \$libdir into a binary during linking.
10017 # This must work even if \$libdir does not exist.
10018 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10020 # If ld is used when linking, flag to hardcode \$libdir into
10021 # a binary during linking. This must work even if \$libdir does
10023 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10025 # Whether we need a single -rpath flag with a separated argument.
10026 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10028 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10029 # resulting binary.
10030 hardcode_direct=$hardcode_direct
10032 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10033 # resulting binary.
10034 hardcode_minus_L=$hardcode_minus_L
10036 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10037 # the resulting binary.
10038 hardcode_shlibpath_var=$hardcode_shlibpath_var
10040 # Set to yes if building a shared library automatically hardcodes DIR into the library
10041 # and all subsequent libraries and executables linked against it.
10042 hardcode_automatic=$hardcode_automatic
10044 # Variables whose values should be saved in libtool wrapper scripts and
10045 # restored at relink time.
10046 variables_saved_for_relink="$variables_saved_for_relink"
10048 # Whether libtool must link a program against all its dependency libraries.
10049 link_all_deplibs=$link_all_deplibs
10051 # Compile-time system search path for libraries
10052 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"\`
10054 # Run-time system search path for libraries
10055 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10057 # Fix the shell variable \$srcfile for the compiler.
10058 fix_srcfile_path="$fix_srcfile_path"
10060 # Set to yes if exported symbols are required.
10061 always_export_symbols=$always_export_symbols
10063 # The commands to list exported symbols.
10064 export_symbols_cmds=$lt_export_symbols_cmds
10066 # The commands to extract the exported symbol list from a shared archive.
10067 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10069 # Symbols that should not be listed in the preloaded symbols.
10070 exclude_expsyms=$lt_exclude_expsyms
10072 # Symbols that must always be exported.
10073 include_expsyms=$lt_include_expsyms
10075 # ### END LIBTOOL CONFIG
10082 cat <<\EOF >> "$cfgfile"
10084 # AIX sometimes has problems with the GCC collect2 program. For some
10085 # reason, if we set the COLLECT_NAMES environment variable, the problems
10086 # vanish in a puff of smoke.
10087 if test "X${COLLECT_NAMES+set}" != Xset; then
10089 export COLLECT_NAMES
10095 # We use sed instead of cat because bash on DJGPP gets confused if
10096 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10097 # text mode, it properly converts lines to CR/LF. This bash problem
10098 # is reportedly fixed, but why not run on old versions too?
10099 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10101 mv -f "$cfgfile" "$ofile" || \
10102 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10106 # If there is no Makefile yet, we rely on a make rule to execute
10107 # `config.status --recheck' to rerun these tests and create the
10108 # libtool script then.
10109 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10110 if test -f "$ltmain_in"; then
10111 test -f Makefile && make "$ltmain"
10117 ac_cpp='$CPP $CPPFLAGS'
10118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10125 # Check whether --with-tags or --without-tags was given.
10126 if test "${with_tags+set}" = set; then
10127 withval="$with_tags"
10128 tagnames="$withval"
10131 if test -f "$ltmain" && test -n "$tagnames"; then
10132 if test ! -f "${ofile}"; then
10133 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10134 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10137 if test -z "$LTCC"; then
10138 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10139 if test -z "$LTCC"; then
10140 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10141 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10143 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10144 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10147 if test -z "$LTCFLAGS"; then
10148 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10151 # Extract list of available tagged configurations in $ofile.
10152 # Note that this assumes the entire list is on one line.
10153 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10155 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10156 for tagname in $tagnames; do
10158 # Check whether tagname contains only valid characters
10159 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10161 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10162 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10163 { (exit 1); exit 1; }; }
10167 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10169 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10170 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10171 { (exit 1); exit 1; }; }
10174 # Update the list of available tags.
10175 if test -n "$tagname"; then
10176 echo appending configuration tag \"$tagname\" to $ofile
10180 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10181 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10182 (test "X$CXX" != "Xg++"))) ; then
10184 ac_cpp='$CXXCPP $CPPFLAGS'
10185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10192 archive_cmds_need_lc_CXX=no
10193 allow_undefined_flag_CXX=
10194 always_export_symbols_CXX=no
10195 archive_expsym_cmds_CXX=
10196 export_dynamic_flag_spec_CXX=
10197 hardcode_direct_CXX=no
10198 hardcode_libdir_flag_spec_CXX=
10199 hardcode_libdir_flag_spec_ld_CXX=
10200 hardcode_libdir_separator_CXX=
10201 hardcode_minus_L_CXX=no
10202 hardcode_shlibpath_var_CXX=unsupported
10203 hardcode_automatic_CXX=no
10205 module_expsym_cmds_CXX=
10206 link_all_deplibs_CXX=unknown
10207 old_archive_cmds_CXX=$old_archive_cmds
10208 no_undefined_flag_CXX=
10209 whole_archive_flag_spec_CXX=
10210 enable_shared_with_static_runtimes_CXX=no
10212 # Dependencies to place before and after the object being linked:
10213 predep_objects_CXX=
10214 postdep_objects_CXX=
10217 compiler_lib_search_path_CXX=
10219 # Source file extension for C++ test sources.
10222 # Object file extension for compiled C++ test sources.
10226 # Code to be used in simple compile tests
10227 lt_simple_compile_test_code="int some_variable = 0;\n"
10229 # Code to be used in simple link tests
10230 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10232 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10234 # If no C compiler was specified, use CC.
10237 # If no C compiler flags were specified, use CFLAGS.
10238 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10240 # Allow CC to be a program name with arguments.
10244 # save warnings/boilerplate of simple test code
10245 ac_outfile=conftest.$ac_objext
10246 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10247 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10248 _lt_compiler_boilerplate=`cat conftest.err`
10251 ac_outfile=conftest.$ac_objext
10252 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10253 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10254 _lt_linker_boilerplate=`cat conftest.err`
10258 # Allow CC to be a program name with arguments.
10263 lt_save_with_gnu_ld=$with_gnu_ld
10264 lt_save_path_LD=$lt_cv_path_LD
10265 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10266 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10268 $as_unset lt_cv_prog_gnu_ld
10270 if test -n "${lt_cv_path_LDCXX+set}"; then
10271 lt_cv_path_LD=$lt_cv_path_LDCXX
10273 $as_unset lt_cv_path_LD
10275 test -z "${LDCXX+set}" || LD=$LDCXX
10279 for cc_temp in $compiler""; do
10281 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10282 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10287 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10290 # We don't want -fno-exception wen compiling C++ code, so set the
10291 # no_builtin_flag separately
10292 if test "$GXX" = yes; then
10293 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10295 lt_prog_compiler_no_builtin_flag_CXX=
10298 if test "$GXX" = yes; then
10299 # Set up default GNU C++ configuration
10302 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10303 if test "${with_gnu_ld+set}" = set; then
10304 withval="$with_gnu_ld"
10305 test "$withval" = no || with_gnu_ld=yes
10310 if test "$GCC" = yes; then
10311 # Check if gcc -print-prog-name=ld gives a path.
10312 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10313 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10316 # gcc leaves a trailing carriage return which upsets mingw
10317 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10319 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10322 # Accept absolute paths.
10324 re_direlt='/[^/][^/]*/\.\./'
10325 # Canonicalize the pathname of ld
10326 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10327 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10328 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10330 test -z "$LD" && LD="$ac_prog"
10333 # If it fails, then pretend we aren't using GCC.
10337 # If it is relative, then search for the first ld in PATH.
10338 with_gnu_ld=unknown
10341 elif test "$with_gnu_ld" = yes; then
10342 echo "$as_me:$LINENO: checking for GNU ld" >&5
10343 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10345 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10346 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10348 if test "${lt_cv_path_LD+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 if test -z "$LD"; then
10352 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10353 for ac_dir in $PATH; do
10355 test -z "$ac_dir" && ac_dir=.
10356 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10357 lt_cv_path_LD="$ac_dir/$ac_prog"
10358 # Check to see if the program is GNU ld. I'd rather use --version,
10359 # but apparently some variants of GNU ld only accept -v.
10360 # Break only if it was the GNU/non-GNU ld that we prefer.
10361 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10362 *GNU* | *'with BFD'*)
10363 test "$with_gnu_ld" != no && break
10366 test "$with_gnu_ld" != yes && break
10373 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10377 LD="$lt_cv_path_LD"
10378 if test -n "$LD"; then
10379 echo "$as_me:$LINENO: result: $LD" >&5
10380 echo "${ECHO_T}$LD" >&6
10382 echo "$as_me:$LINENO: result: no" >&5
10383 echo "${ECHO_T}no" >&6
10385 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10386 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10387 { (exit 1); exit 1; }; }
10388 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10389 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10390 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10394 case `$LD -v 2>&1 </dev/null` in
10395 *GNU* | *'with BFD'*)
10396 lt_cv_prog_gnu_ld=yes
10399 lt_cv_prog_gnu_ld=no
10403 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10404 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10405 with_gnu_ld=$lt_cv_prog_gnu_ld
10409 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10410 # archiving commands below assume that GNU ld is being used.
10411 if test "$with_gnu_ld" = yes; then
10412 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10413 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'
10415 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10416 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10418 # If archive_cmds runs LD, not CC, wlarc should be empty
10419 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10420 # investigate it a little bit more. (MM)
10423 # ancient GNU ld didn't support --whole-archive et. al.
10424 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10425 grep 'no-whole-archive' > /dev/null; then
10426 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10428 whole_archive_flag_spec_CXX=
10434 # A generic and very simple default shared library creation
10435 # command for GNU C++ for the case where it uses the native
10436 # linker, instead of GNU ld. If possible, this setting should
10437 # overridden to take advantage of the native linker features on
10438 # the platform it is being used on.
10439 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10442 # Commands to make compiler produce verbose output that lists
10443 # what "hidden" libraries, object files and flags are used when
10444 # linking a shared library.
10445 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10453 # PORTME: fill in a description of your system's C++ link characteristics
10454 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10455 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10459 # FIXME: insert proper C++ library support
10463 if test "$host_cpu" = ia64; then
10464 # On IA64, the linker does run time linking by default, so we don't
10465 # have to do anything special.
10466 aix_use_runtimelinking=no
10467 exp_sym_flag='-Bexport'
10470 aix_use_runtimelinking=no
10472 # Test if we are trying to use run time linking or normal
10473 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10474 # need to do runtime linking.
10475 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10476 for ld_flag in $LDFLAGS; do
10479 aix_use_runtimelinking=yes
10487 exp_sym_flag='-bexport'
10488 no_entry_flag='-bnoentry'
10491 # When large executables or shared objects are built, AIX ld can
10492 # have problems creating the table of contents. If linking a library
10493 # or program results in "error TOC overflow" add -mminimal-toc to
10494 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10495 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10497 archive_cmds_CXX=''
10498 hardcode_direct_CXX=yes
10499 hardcode_libdir_separator_CXX=':'
10500 link_all_deplibs_CXX=yes
10502 if test "$GXX" = yes; then
10503 case $host_os in aix4.[012]|aix4.[012].*)
10504 # We only want to do this on AIX 4.2 and lower, the check
10505 # below for broken collect2 doesn't work under 4.3+
10506 collect2name=`${CC} -print-prog-name=collect2`
10507 if test -f "$collect2name" && \
10508 strings "$collect2name" | grep resolve_lib_name >/dev/null
10510 # We have reworked collect2
10511 hardcode_direct_CXX=yes
10513 # We have old collect2
10514 hardcode_direct_CXX=unsupported
10515 # It fails to find uninstalled libraries when the uninstalled
10516 # path is not listed in the libpath. Setting hardcode_minus_L
10517 # to unsupported forces relinking
10518 hardcode_minus_L_CXX=yes
10519 hardcode_libdir_flag_spec_CXX='-L$libdir'
10520 hardcode_libdir_separator_CXX=
10524 shared_flag='-shared'
10525 if test "$aix_use_runtimelinking" = yes; then
10526 shared_flag="$shared_flag "'${wl}-G'
10530 if test "$host_cpu" = ia64; then
10531 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10532 # chokes on -Wl,-G. The following line is correct:
10535 if test "$aix_use_runtimelinking" = yes; then
10536 shared_flag='${wl}-G'
10538 shared_flag='${wl}-bM:SRE'
10543 # It seems that -bexpall does not export symbols beginning with
10544 # underscore (_), so it is better to generate a list of symbols to export.
10545 always_export_symbols_CXX=yes
10546 if test "$aix_use_runtimelinking" = yes; then
10547 # Warning - without using the other runtime loading flags (-brtl),
10548 # -berok will link without error, but may produce a broken library.
10549 allow_undefined_flag_CXX='-berok'
10550 # Determine the default libpath from the value encoded in an empty executable.
10551 cat >conftest.$ac_ext <<_ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h. */
10566 rm -f conftest.$ac_objext conftest$ac_exeext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10568 (eval $ac_link) 2>conftest.er1
10570 grep -v '^ *+' conftest.er1 >conftest.err
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -z "$ac_cxx_werror_flag"
10576 || test ! -s conftest.err'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; } &&
10582 { ac_try='test -s conftest$ac_exeext'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10589 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10591 # Check for a 64-bit object if we didn't find anything.
10592 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; }
10595 echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10599 rm -f conftest.err conftest.$ac_objext \
10600 conftest$ac_exeext conftest.$ac_ext
10601 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10603 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10605 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"
10607 if test "$host_cpu" = ia64; then
10608 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10609 allow_undefined_flag_CXX="-z nodefs"
10610 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"
10612 # Determine the default libpath from the value encoded in an empty executable.
10613 cat >conftest.$ac_ext <<_ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10628 rm -f conftest.$ac_objext conftest$ac_exeext
10629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10630 (eval $ac_link) 2>conftest.er1
10632 grep -v '^ *+' conftest.er1 >conftest.err
10634 cat conftest.err >&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } &&
10637 { ac_try='test -z "$ac_cxx_werror_flag"
10638 || test ! -s conftest.err'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; } &&
10644 { ac_try='test -s conftest$ac_exeext'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
10651 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10653 # Check for a 64-bit object if we didn't find anything.
10654 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; }
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10661 rm -f conftest.err conftest.$ac_objext \
10662 conftest$ac_exeext conftest.$ac_ext
10663 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10665 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10666 # Warning - without using the other run time loading flags,
10667 # -berok will link without error, but may produce a broken library.
10668 no_undefined_flag_CXX=' ${wl}-bernotok'
10669 allow_undefined_flag_CXX=' ${wl}-berok'
10670 # Exported symbols can be pulled into shared objects from archives
10671 whole_archive_flag_spec_CXX='$convenience'
10672 archive_cmds_need_lc_CXX=yes
10673 # This is similar to how AIX traditionally builds its shared libraries.
10674 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'
10680 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10681 allow_undefined_flag_CXX=unsupported
10682 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10683 # support --undefined. This deserves some investigation. FIXME
10684 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10691 case $cc_basename in
10693 # FIXME: insert proper C++ library support
10699 cygwin* | mingw* | pw32*)
10700 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10701 # as there is no search path for DLLs.
10702 hardcode_libdir_flag_spec_CXX='-L$libdir'
10703 allow_undefined_flag_CXX=unsupported
10704 always_export_symbols_CXX=no
10705 enable_shared_with_static_runtimes_CXX=yes
10707 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10708 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'
10709 # If the export-symbols file already is a .def file (1st line
10710 # is EXPORTS), use it as is; otherwise, prepend...
10711 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10712 cp $export_symbols $output_objdir/$soname.def;
10714 echo EXPORTS > $output_objdir/$soname.def;
10715 cat $export_symbols >> $output_objdir/$soname.def;
10717 $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'
10722 darwin* | rhapsody*)
10724 rhapsody* | darwin1.[012])
10725 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10728 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10729 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10731 case ${MACOSX_DEPLOYMENT_TARGET} in
10733 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10736 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10742 archive_cmds_need_lc_CXX=no
10743 hardcode_direct_CXX=no
10744 hardcode_automatic_CXX=yes
10745 hardcode_shlibpath_var_CXX=unsupported
10746 whole_archive_flag_spec_CXX=''
10747 link_all_deplibs_CXX=yes
10749 if test "$GXX" = yes ; then
10750 lt_int_apple_cc_single_mod=no
10751 output_verbose_link_cmd='echo'
10752 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10753 lt_int_apple_cc_single_mod=yes
10755 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10756 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10758 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'
10760 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10761 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10762 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10763 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}'
10765 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}'
10767 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}'
10769 case $cc_basename in
10771 output_verbose_link_cmd='echo'
10772 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'
10773 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10774 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10775 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}'
10776 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}'
10786 case $cc_basename in
10788 # FIXME: insert proper C++ library support
10792 # Green Hills C++ Compiler
10793 # FIXME: insert proper C++ library support
10797 # FIXME: insert proper C++ library support
10803 # C++ shared libraries reported to be fairly broken before switch to ELF
10807 archive_cmds_need_lc_CXX=no
10809 freebsd* | kfreebsd*-gnu | dragonfly*)
10810 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10817 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10818 hardcode_libdir_separator_CXX=:
10819 export_dynamic_flag_spec_CXX='${wl}-E'
10820 hardcode_direct_CXX=yes
10821 hardcode_minus_L_CXX=yes # Not in the search PATH,
10822 # but as the default
10823 # location of the library.
10825 case $cc_basename in
10827 # FIXME: insert proper C++ library support
10831 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'
10832 # Commands to make compiler produce verbose output that lists
10833 # what "hidden" libraries, object files and flags are used when
10834 # linking a shared library.
10836 # There doesn't appear to be a way to prevent this compiler from
10837 # explicitly linking system object files so we need to strip them
10838 # from the output so that they don't get included in the library
10840 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'
10843 if test "$GXX" = yes; then
10844 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'
10846 # FIXME: insert proper C++ library support
10853 if test $with_gnu_ld = no; then
10854 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10855 hardcode_libdir_separator_CXX=:
10859 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10862 export_dynamic_flag_spec_CXX='${wl}-E'
10868 hardcode_direct_CXX=no
10869 hardcode_shlibpath_var_CXX=no
10872 hardcode_direct_CXX=yes
10873 hardcode_minus_L_CXX=yes # Not in the search PATH,
10874 # but as the default
10875 # location of the library.
10879 case $cc_basename in
10881 # FIXME: insert proper C++ library support
10887 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10890 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10893 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10896 # Commands to make compiler produce verbose output that lists
10897 # what "hidden" libraries, object files and flags are used when
10898 # linking a shared library.
10900 # There doesn't appear to be a way to prevent this compiler from
10901 # explicitly linking system object files so we need to strip them
10902 # from the output so that they don't get included in the library
10904 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'
10907 if test "$GXX" = yes; then
10908 if test $with_gnu_ld = no; then
10911 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10914 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10917 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'
10922 # FIXME: insert proper C++ library support
10929 hardcode_direct_CXX=no
10930 hardcode_shlibpath_var_CXX=no
10931 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10932 export_dynamic_flag_spec_CXX='${wl}-E'
10933 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10934 # Instead, shared libraries are loaded at an image base (0x10000000 by
10935 # default) and relocated if they conflict, which is a slow very memory
10936 # consuming and fragmenting process. To avoid this, we pick a random,
10937 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10938 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10939 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'
10940 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'
10943 case $cc_basename in
10946 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'
10948 # Archives containing C++ object files must be created using
10949 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10950 # necessary to make sure instantiated templates are included
10952 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10955 if test "$GXX" = yes; then
10956 if test "$with_gnu_ld" = no; then
10957 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'
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` -o $lib'
10962 link_all_deplibs_CXX=yes
10965 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10966 hardcode_libdir_separator_CXX=:
10969 case $cc_basename in
10971 # Kuck and Associates, Inc. (KAI) C++ Compiler
10973 # KCC will only create a shared library if the output file
10974 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10975 # to its proper name (with version) after linking.
10976 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'
10977 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'
10978 # Commands to make compiler produce verbose output that lists
10979 # what "hidden" libraries, object files and flags are used when
10980 # linking a shared library.
10982 # There doesn't appear to be a way to prevent this compiler from
10983 # explicitly linking system object files so we need to strip them
10984 # from the output so that they don't get included in the library
10986 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'
10988 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10989 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10991 # Archives containing C++ object files must be created using
10992 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10993 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10998 # version 8.0 and above of icpc choke on multiply defined symbols
10999 # if we add $predep_objects and $postdep_objects, however 7.1 and
11000 # earlier do not add the objects themselves.
11001 case `$CC -V 2>&1` in
11003 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11004 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'
11006 *) # Version 8.0 or newer
11009 ia64*) tmp_idyn=' -i_dynamic';;
11011 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11012 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'
11015 archive_cmds_need_lc_CXX=no
11016 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11017 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11018 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11021 # Portland Group C++ compiler
11022 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11023 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'
11025 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11026 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11027 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'
11031 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11032 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'
11034 runpath_var=LD_RUN_PATH
11035 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11036 hardcode_libdir_separator_CXX=:
11038 # Commands to make compiler produce verbose output that lists
11039 # what "hidden" libraries, object files and flags are used when
11040 # linking a shared library.
11042 # There doesn't appear to be a way to prevent this compiler from
11043 # explicitly linking system object files so we need to strip them
11044 # from the output so that they don't get included in the library
11046 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'
11051 # FIXME: insert proper C++ library support
11055 # FIXME: insert proper C++ library support
11059 case $cc_basename in
11061 # FIXME: insert proper C++ library support
11065 # FIXME: insert proper C++ library support
11071 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11072 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11074 hardcode_libdir_flag_spec_CXX='-R$libdir'
11075 hardcode_direct_CXX=yes
11076 hardcode_shlibpath_var_CXX=no
11078 # Workaround some broken pre-1.5 toolchains
11079 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11082 # C++ shared libraries are fairly broken
11086 hardcode_direct_CXX=yes
11087 hardcode_shlibpath_var_CXX=no
11088 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11089 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11090 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11091 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11092 export_dynamic_flag_spec_CXX='${wl}-E'
11093 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11095 output_verbose_link_cmd='echo'
11098 case $cc_basename in
11100 # Kuck and Associates, Inc. (KAI) C++ Compiler
11102 # KCC will only create a shared library if the output file
11103 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11104 # to its proper name (with version) after linking.
11105 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'
11107 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11108 hardcode_libdir_separator_CXX=:
11110 # Archives containing C++ object files must be created using
11111 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11112 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11116 # Rational C++ 2.4.1
11117 # FIXME: insert proper C++ library support
11121 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11122 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'
11124 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11125 hardcode_libdir_separator_CXX=:
11127 # Commands to make compiler produce verbose output that lists
11128 # what "hidden" libraries, object files and flags are used when
11129 # linking a shared library.
11131 # There doesn't appear to be a way to prevent this compiler from
11132 # explicitly linking system object files so we need to strip them
11133 # from the output so that they don't get included in the library
11135 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'
11138 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11139 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11140 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'
11142 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11143 hardcode_libdir_separator_CXX=:
11145 # Commands to make compiler produce verbose output that lists
11146 # what "hidden" libraries, object files and flags are used when
11147 # linking a shared library.
11148 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11151 # FIXME: insert proper C++ library support
11158 case $cc_basename in
11160 # Kuck and Associates, Inc. (KAI) C++ Compiler
11162 # KCC will only create a shared library if the output file
11163 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11164 # to its proper name (with version) after linking.
11165 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'
11167 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11168 hardcode_libdir_separator_CXX=:
11170 # Archives containing C++ object files must be created using
11171 # the KAI C++ compiler.
11172 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11175 # Rational C++ 2.4.1
11176 # FIXME: insert proper C++ library support
11180 allow_undefined_flag_CXX=' -expect_unresolved \*'
11181 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'
11182 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11183 echo "-hidden">> $lib.exp~
11184 $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~
11187 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11188 hardcode_libdir_separator_CXX=:
11190 # Commands to make compiler produce verbose output that lists
11191 # what "hidden" libraries, object files and flags are used when
11192 # linking a shared library.
11194 # There doesn't appear to be a way to prevent this compiler from
11195 # explicitly linking system object files so we need to strip them
11196 # from the output so that they don't get included in the library
11198 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'
11201 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11202 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11203 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'
11205 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11206 hardcode_libdir_separator_CXX=:
11208 # Commands to make compiler produce verbose output that lists
11209 # what "hidden" libraries, object files and flags are used when
11210 # linking a shared library.
11211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11214 # FIXME: insert proper C++ library support
11221 # FIXME: insert proper C++ library support
11225 case $cc_basename in
11228 # FIXME: insert proper C++ library support
11233 # FIXME: insert proper C++ library support
11237 # FIXME: insert proper C++ library support
11243 case $cc_basename in
11245 # Sun C++ 4.2, 5.x and Centerline C++
11246 archive_cmds_need_lc_CXX=yes
11247 no_undefined_flag_CXX=' -zdefs'
11248 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11249 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11250 $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'
11252 hardcode_libdir_flag_spec_CXX='-R$libdir'
11253 hardcode_shlibpath_var_CXX=no
11255 solaris2.[0-5] | solaris2.[0-5].*) ;;
11257 # The C++ compiler is used as linker so we must use $wl
11258 # flag to pass the commands to the underlying system
11259 # linker. We must also pass each convience library through
11260 # to the system linker between allextract/defaultextract.
11261 # The C++ compiler will combine linker options so we
11262 # cannot just pass the convience library names through
11264 # Supported since Solaris 2.6 (maybe 2.5.1?)
11265 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'
11268 link_all_deplibs_CXX=yes
11270 output_verbose_link_cmd='echo'
11272 # Archives containing C++ object files must be created using
11273 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11274 # necessary to make sure instantiated templates are included
11276 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11279 # Green Hills C++ Compiler
11280 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11282 # The C++ compiler must be used to create the archive.
11283 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11286 # GNU C++ compiler with Solaris linker
11287 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11288 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11289 if $CC --version | grep -v '^2\.7' > /dev/null; then
11290 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11291 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11292 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11294 # Commands to make compiler produce verbose output that lists
11295 # what "hidden" libraries, object files and flags are used when
11296 # linking a shared library.
11297 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11299 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11301 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11302 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11303 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11305 # Commands to make compiler produce verbose output that lists
11306 # what "hidden" libraries, object files and flags are used when
11307 # linking a shared library.
11308 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11311 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11316 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11317 no_undefined_flag_CXX='${wl}-z,text'
11318 archive_cmds_need_lc_CXX=no
11319 hardcode_shlibpath_var_CXX=no
11320 runpath_var='LD_RUN_PATH'
11322 case $cc_basename in
11324 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11325 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11328 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11329 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11333 sysv5* | sco3.2v5* | sco5v6*)
11334 # Note: We can NOT use -z defs as we might desire, because we do not
11335 # link with -lc, and that would cause any symbols used from libc to
11336 # always be unresolved, which means just about no library would
11337 # ever link correctly. If we're not using GNU ld we use -z text
11338 # though, which does catch some bad symbols but isn't as heavy-handed
11340 # For security reasons, it is highly recommended that you always
11341 # use absolute paths for naming shared libraries, and exclude the
11342 # DT_RUNPATH tag from executables and libraries. But doing so
11343 # requires that you compile everything twice, which is a pain.
11344 # So that behaviour is only enabled if SCOABSPATH is set to a
11345 # non-empty value in the environment. Most likely only useful for
11346 # creating official distributions of packages.
11347 # This is a hack until libtool officially supports absolute path
11348 # names for shared libraries.
11349 no_undefined_flag_CXX='${wl}-z,text'
11350 allow_undefined_flag_CXX='${wl}-z,nodefs'
11351 archive_cmds_need_lc_CXX=no
11352 hardcode_shlibpath_var_CXX=no
11353 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11354 hardcode_libdir_separator_CXX=':'
11355 link_all_deplibs_CXX=yes
11356 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11357 runpath_var='LD_RUN_PATH'
11359 case $cc_basename in
11361 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11362 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11365 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11366 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11371 case $cc_basename in
11373 # NonStop-UX NCC 3.20
11374 # FIXME: insert proper C++ library support
11378 # FIXME: insert proper C++ library support
11384 # FIXME: insert proper C++ library support
11388 # FIXME: insert proper C++ library support
11392 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11393 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11394 test "$ld_shlibs_CXX" = no && can_build_shared=no
11400 cat > conftest.$ac_ext <<EOF
11404 Foo (void) { a = 0; }
11410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11411 (eval $ac_compile) 2>&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; then
11415 # Parse the compiler output and extract the necessary
11416 # objects, libraries and library flags.
11418 # Sentinel used to keep track of whether or not we are before
11419 # the conftest object file.
11420 pre_test_object_deps_done=no
11422 # The `*' in the case matches for architectures that use `case' in
11423 # $output_verbose_cmd can trigger glob expansion during the loop
11424 # eval without this substitution.
11425 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11427 for p in `eval $output_verbose_link_cmd`; do
11431 # Some compilers place space between "-{L,R}" and the path.
11432 # Remove the space.
11433 if test $p = "-L" \
11434 || test $p = "-R"; then
11441 if test "$pre_test_object_deps_done" = no; then
11444 # Internal compiler library paths should come after those
11445 # provided the user. The postdeps already come after the
11446 # user supplied libs so there is no need to process them.
11447 if test -z "$compiler_lib_search_path_CXX"; then
11448 compiler_lib_search_path_CXX="${prev}${p}"
11450 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11453 # The "-l" case would never come before the object being
11454 # linked, so don't bother handling this case.
11457 if test -z "$postdeps_CXX"; then
11458 postdeps_CXX="${prev}${p}"
11460 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11466 # This assumes that the test object file only shows up
11467 # once in the compiler output.
11468 if test "$p" = "conftest.$objext"; then
11469 pre_test_object_deps_done=yes
11473 if test "$pre_test_object_deps_done" = no; then
11474 if test -z "$predep_objects_CXX"; then
11475 predep_objects_CXX="$p"
11477 predep_objects_CXX="$predep_objects_CXX $p"
11480 if test -z "$postdep_objects_CXX"; then
11481 postdep_objects_CXX="$p"
11483 postdep_objects_CXX="$postdep_objects_CXX $p"
11488 *) ;; # Ignore the rest.
11496 echo "libtool.m4: error: problem compiling CXX test program"
11499 $rm -f confest.$objext
11501 # PORTME: override above test on systems where it is broken
11504 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11505 # hack all around it, let's just trust "g++" to DTRT.
11506 predep_objects_CXX=
11507 postdep_objects_CXX=
11512 case $cc_basename in
11514 # Adding this requires a known-good setup of shared libraries for
11515 # Sun compiler versions before 5.6, else PIC objects from an old
11516 # archive will be linked into the output, leading to subtle bugs.
11517 postdeps_CXX='-lCstd -lCrun'
11524 case " $postdeps_CXX " in
11525 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11528 lt_prog_compiler_wl_CXX=
11529 lt_prog_compiler_pic_CXX=
11530 lt_prog_compiler_static_CXX=
11532 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11533 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11535 # C++ specific cases for pic, static, wl, etc.
11536 if test "$GXX" = yes; then
11537 lt_prog_compiler_wl_CXX='-Wl,'
11538 lt_prog_compiler_static_CXX='-static'
11542 # All AIX code is PIC.
11543 if test "$host_cpu" = ia64; then
11544 # AIX 5 now supports IA64 processor
11545 lt_prog_compiler_static_CXX='-Bstatic'
11549 # FIXME: we need at least 68020 code to build shared libraries, but
11550 # adding the `-m68020' flag to GCC prevents building anything better,
11552 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11554 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11555 # PIC is the default for these OSes.
11557 mingw* | os2* | pw32*)
11558 # This hack is so that the source file can tell whether it is being
11559 # built for inclusion in a dll (and should export symbols for example).
11560 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11562 darwin* | rhapsody*)
11563 # PIC is the default on this platform
11564 # Common symbols not allowed in MH_DYLIB files
11565 lt_prog_compiler_pic_CXX='-fno-common'
11568 # DJGPP does not support shared libraries at all
11569 lt_prog_compiler_pic_CXX=
11572 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11573 # Instead, we relocate shared libraries at runtime.
11576 if test -d /usr/nec; then
11577 lt_prog_compiler_pic_CXX=-Kconform_pic
11581 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11582 # not for PA HP-UX.
11587 lt_prog_compiler_pic_CXX='-fPIC'
11592 lt_prog_compiler_pic_CXX='-fPIC'
11598 # All AIX code is PIC.
11599 if test "$host_cpu" = ia64; then
11600 # AIX 5 now supports IA64 processor
11601 lt_prog_compiler_static_CXX='-Bstatic'
11603 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11607 case $cc_basename in
11609 # Green Hills C++ Compiler
11610 # _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"
11615 # PIC is the default on this platform
11616 # Common symbols not allowed in MH_DYLIB files
11617 case $cc_basename in
11619 lt_prog_compiler_pic_CXX='-qnocommon'
11620 lt_prog_compiler_wl_CXX='-Wl,'
11625 case $cc_basename in
11627 lt_prog_compiler_pic_CXX='-KPIC'
11630 # Green Hills C++ Compiler
11631 lt_prog_compiler_pic_CXX='-pic'
11637 freebsd* | kfreebsd*-gnu | dragonfly*)
11638 # FreeBSD uses GNU C++
11640 hpux9* | hpux10* | hpux11*)
11641 case $cc_basename in
11643 lt_prog_compiler_wl_CXX='-Wl,'
11644 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11645 if test "$host_cpu" != ia64; then
11646 lt_prog_compiler_pic_CXX='+Z'
11650 lt_prog_compiler_wl_CXX='-Wl,'
11651 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11657 lt_prog_compiler_pic_CXX='+Z'
11666 # This is c89, which is MS Visual C++ (no shared libs)
11667 # Anyone wants to do a port?
11669 irix5* | irix6* | nonstopux*)
11670 case $cc_basename in
11672 lt_prog_compiler_wl_CXX='-Wl,'
11673 lt_prog_compiler_static_CXX='-non_shared'
11674 # CC pic flag -KPIC is the default.
11681 case $cc_basename in
11684 lt_prog_compiler_wl_CXX='--backend -Wl,'
11685 lt_prog_compiler_pic_CXX='-fPIC'
11689 lt_prog_compiler_wl_CXX='-Wl,'
11690 lt_prog_compiler_pic_CXX='-KPIC'
11691 lt_prog_compiler_static_CXX='-static'
11694 # Portland Group C++ compiler.
11695 lt_prog_compiler_wl_CXX='-Wl,'
11696 lt_prog_compiler_pic_CXX='-fpic'
11697 lt_prog_compiler_static_CXX='-Bstatic'
11701 # Make sure the PIC flag is empty. It appears that all Alpha
11702 # Linux and Compaq Tru64 Unix objects are PIC.
11703 lt_prog_compiler_pic_CXX=
11704 lt_prog_compiler_static_CXX='-non_shared'
11715 case $cc_basename in
11717 lt_prog_compiler_pic_CXX='-W c,exportall'
11725 osf3* | osf4* | osf5*)
11726 case $cc_basename in
11728 lt_prog_compiler_wl_CXX='--backend -Wl,'
11731 # Rational C++ 2.4.1
11732 lt_prog_compiler_pic_CXX='-pic'
11735 # Digital/Compaq C++
11736 lt_prog_compiler_wl_CXX='-Wl,'
11737 # Make sure the PIC flag is empty. It appears that all Alpha
11738 # Linux and Compaq Tru64 Unix objects are PIC.
11739 lt_prog_compiler_pic_CXX=
11740 lt_prog_compiler_static_CXX='-non_shared'
11749 case $cc_basename in
11751 # Sun C++ 4.2, 5.x and Centerline C++
11752 lt_prog_compiler_pic_CXX='-KPIC'
11753 lt_prog_compiler_static_CXX='-Bstatic'
11754 lt_prog_compiler_wl_CXX='-Qoption ld '
11757 # Green Hills C++ Compiler
11758 lt_prog_compiler_pic_CXX='-PIC'
11765 case $cc_basename in
11768 lt_prog_compiler_pic_CXX='-pic'
11769 lt_prog_compiler_static_CXX='-Bstatic'
11773 lt_prog_compiler_pic_CXX='-pic'
11780 case $cc_basename in
11782 # NonStop-UX NCC 3.20
11783 lt_prog_compiler_pic_CXX='-KPIC'
11789 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11790 case $cc_basename in
11792 lt_prog_compiler_wl_CXX='-Wl,'
11793 lt_prog_compiler_pic_CXX='-KPIC'
11794 lt_prog_compiler_static_CXX='-Bstatic'
11801 lt_prog_compiler_can_build_shared_CXX=no
11806 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11807 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11810 # Check to make sure the PIC flag actually works.
11812 if test -n "$lt_prog_compiler_pic_CXX"; then
11814 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11815 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11816 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 lt_prog_compiler_pic_works_CXX=no
11820 ac_outfile=conftest.$ac_objext
11821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11822 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11823 # Insert the option either (1) after the last *FLAGS variable, or
11824 # (2) before a word containing "conftest.", or (3) at the end.
11825 # Note that $ac_compile itself does not contain backslashes and begins
11826 # with a dollar sign (not a hyphen), so the echo should work correctly.
11827 # The option is referenced via a variable to avoid confusing sed.
11828 lt_compile=`echo "$ac_compile" | $SED \
11829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11831 -e 's:$: $lt_compiler_flag:'`
11832 (eval echo "\"\$as_me:11832: $lt_compile\"" >&5)
11833 (eval "$lt_compile" 2>conftest.err)
11835 cat conftest.err >&5
11836 echo "$as_me:11836: \$? = $ac_status" >&5
11837 if (exit $ac_status) && test -s "$ac_outfile"; then
11838 # The compiler can only warn and ignore the option if not recognized
11839 # So say no if there are warnings other than the usual output.
11840 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11842 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11843 lt_prog_compiler_pic_works_CXX=yes
11849 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11850 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11852 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11853 case $lt_prog_compiler_pic_CXX in
11855 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11858 lt_prog_compiler_pic_CXX=
11859 lt_prog_compiler_can_build_shared_CXX=no
11864 # For platforms which do not support PIC, -DPIC is meaningless:
11866 lt_prog_compiler_pic_CXX=
11869 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11874 # Check to make sure the static flag actually works.
11876 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11877 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11878 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11879 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11882 lt_prog_compiler_static_works_CXX=no
11883 save_LDFLAGS="$LDFLAGS"
11884 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11885 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11886 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11887 # The linker can only warn and ignore the option if not recognized
11888 # So say no if there are warnings
11889 if test -s conftest.err; then
11890 # Append any errors to the config.log.
11891 cat conftest.err 1>&5
11892 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11894 if diff conftest.exp conftest.er2 >/dev/null; then
11895 lt_prog_compiler_static_works_CXX=yes
11898 lt_prog_compiler_static_works_CXX=yes
11902 LDFLAGS="$save_LDFLAGS"
11905 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11906 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11908 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11911 lt_prog_compiler_static_CXX=
11915 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11916 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11917 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 lt_cv_prog_compiler_c_o_CXX=no
11921 $rm -r conftest 2>/dev/null
11925 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11927 lt_compiler_flag="-o out/conftest2.$ac_objext"
11928 # Insert the option either (1) after the last *FLAGS variable, or
11929 # (2) before a word containing "conftest.", or (3) at the end.
11930 # Note that $ac_compile itself does not contain backslashes and begins
11931 # with a dollar sign (not a hyphen), so the echo should work correctly.
11932 lt_compile=`echo "$ac_compile" | $SED \
11933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11935 -e 's:$: $lt_compiler_flag:'`
11936 (eval echo "\"\$as_me:11936: $lt_compile\"" >&5)
11937 (eval "$lt_compile" 2>out/conftest.err)
11939 cat out/conftest.err >&5
11940 echo "$as_me:11940: \$? = $ac_status" >&5
11941 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11943 # The compiler can only warn and ignore the option if not recognized
11944 # So say no if there are warnings
11945 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11946 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11947 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11948 lt_cv_prog_compiler_c_o_CXX=yes
11953 # SGI C++ compiler will create directory out/ii_files/ for
11954 # template instantiation
11955 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11956 $rm out/* && rmdir out
11962 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11963 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11966 hard_links="nottested"
11967 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11968 # do not overwrite the value of need_locks provided by the user
11969 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11970 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11973 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11975 ln conftest.a conftest.b 2>&5 || hard_links=no
11976 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11977 echo "$as_me:$LINENO: result: $hard_links" >&5
11978 echo "${ECHO_T}$hard_links" >&6
11979 if test "$hard_links" = no; then
11980 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11981 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11988 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11989 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11991 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11994 # If we're using GNU nm, then we don't want the "-C" option.
11995 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11996 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11997 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'
11999 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'
12003 export_symbols_cmds_CXX="$ltdll_cmds"
12006 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'
12009 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12013 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12014 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12015 test "$ld_shlibs_CXX" = no && can_build_shared=no
12018 # Do we need to explicitly link libc?
12020 case "x$archive_cmds_need_lc_CXX" in
12022 # Assume -lc should be added
12023 archive_cmds_need_lc_CXX=yes
12025 if test "$enable_shared" = yes && test "$GCC" = yes; then
12026 case $archive_cmds_CXX in
12028 # FIXME: we may have to deal with multi-command sequences.
12031 # Test whether the compiler implicitly links with -lc since on some
12032 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12033 # to ld, don't add -lc before -lgcc.
12034 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12035 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12037 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12040 (eval $ac_compile) 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } 2>conftest.err; then
12046 libobjs=conftest.$ac_objext
12048 wl=$lt_prog_compiler_wl_CXX
12049 pic_flag=$lt_prog_compiler_pic_CXX
12055 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12056 allow_undefined_flag_CXX=
12057 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12058 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }
12063 archive_cmds_need_lc_CXX=no
12065 archive_cmds_need_lc_CXX=yes
12067 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12069 cat conftest.err 1>&5
12072 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12073 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12080 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12081 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12082 library_names_spec=
12083 libname_spec='lib$name'
12087 postuninstall_cmds=
12091 shlibpath_overrides_runpath=unknown
12093 dynamic_linker="$host_os ld.so"
12094 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12095 if test "$GCC" = yes; then
12096 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12097 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12098 # if the path contains ";" then we assume it to be the separator
12099 # otherwise default to the standard path separator (i.e. ":") - it is
12100 # assumed that no part of a normal pathname contains ";" but that should
12101 # okay in the real world where ";" in dirpaths is itself problematic.
12102 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12107 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12109 need_lib_prefix=unknown
12110 hardcode_into_libs=no
12112 # when you set need_version to no, make sure it does not cause -set_version
12113 # flags to be left without arguments
12114 need_version=unknown
12119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12120 shlibpath_var=LIBPATH
12122 # AIX 3 has no versioning support, so we append a major version to the name.
12123 soname_spec='${libname}${release}${shared_ext}$major'
12130 hardcode_into_libs=yes
12131 if test "$host_cpu" = ia64; then
12132 # AIX 5 supports IA64
12133 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12134 shlibpath_var=LD_LIBRARY_PATH
12136 # With GCC up to 2.95.x, collect2 would create an import file
12137 # for dependence libraries. The import file would start with
12138 # the line `#! .'. This would cause the generated library to
12139 # depend on `.', always an invalid library. This was fixed in
12140 # development snapshots of GCC prior to 3.0.
12142 aix4 | aix4.[01] | aix4.[01].*)
12143 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12145 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12148 can_build_shared=no
12152 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12153 # soname into executable. Probably we can add versioning support to
12154 # collect2, so additional links can be useful in future.
12155 if test "$aix_use_runtimelinking" = yes; then
12156 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12157 # instead of lib<name>.a to let people know that these are not
12158 # typical AIX shared libraries.
12159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12161 # We preserve .a as extension for shared libraries through AIX4.2
12162 # and later when we are not doing run time linking.
12163 library_names_spec='${libname}${release}.a $libname.a'
12164 soname_spec='${libname}${release}${shared_ext}$major'
12166 shlibpath_var=LIBPATH
12171 library_names_spec='$libname.ixlibrary $libname.a'
12172 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12173 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'
12177 library_names_spec='${libname}${shared_ext}'
12178 dynamic_linker="$host_os ld.so"
12179 shlibpath_var=LIBRARY_PATH
12185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12186 soname_spec='${libname}${release}${shared_ext}$major'
12187 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12188 shlibpath_var=LD_LIBRARY_PATH
12189 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12190 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12191 # the default ld.so.conf also contains /usr/contrib/lib and
12192 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12193 # libtool to hard-code these into programs
12196 cygwin* | mingw* | pw32*)
12197 version_type=windows
12202 case $GCC,$host_os in
12203 yes,cygwin* | yes,mingw* | yes,pw32*)
12204 library_names_spec='$libname.dll.a'
12205 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12206 postinstall_cmds='base_file=`basename \${file}`~
12207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12208 dldir=$destdir/`dirname \$dlpath`~
12209 test -d \$dldir || mkdir -p \$dldir~
12210 $install_prog $dir/$dlname \$dldir/$dlname~
12211 chmod a+x \$dldir/$dlname'
12212 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12213 dlpath=$dir/\$dldll~
12215 shlibpath_overrides_runpath=yes
12219 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12220 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12221 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12224 # MinGW DLLs use traditional 'lib' prefix
12225 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12226 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12227 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12228 # It is most probably a Windows format PATH printed by
12229 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12230 # path with ; separators, and with drive letters. We can handle the
12231 # drive letters (cygwin fileutils understands them), so leave them,
12232 # especially as we might pass files found there to a mingw objdump,
12233 # which wouldn't understand a cygwinified path. Ahh.
12234 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12240 # pw32 DLLs use 'pw' prefix rather than 'lib'
12241 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12247 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12250 dynamic_linker='Win32 ld.exe'
12251 # FIXME: first we should search . and the directory the executable is in
12255 darwin* | rhapsody*)
12256 dynamic_linker="$host_os dyld"
12257 version_type=darwin
12260 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12261 soname_spec='${libname}${release}${major}$shared_ext'
12262 shlibpath_overrides_runpath=yes
12263 shlibpath_var=DYLD_LIBRARY_PATH
12264 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12265 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12266 if test "$GCC" = yes; then
12267 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"`
12269 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12271 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12279 soname_spec='${libname}${release}${shared_ext}$major'
12280 shlibpath_var=LD_LIBRARY_PATH
12291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12292 soname_spec='${libname}${release}${shared_ext}$major'
12293 shlibpath_var=LD_LIBRARY_PATH
12294 shlibpath_overrides_runpath=no
12295 hardcode_into_libs=yes
12296 dynamic_linker='GNU ld.so'
12299 freebsd* | dragonfly*)
12300 # DragonFly does not have aout. When/if they implement a new
12301 # versioning mechanism, adjust this.
12302 if test -x /usr/bin/objformat; then
12303 objformat=`/usr/bin/objformat`
12306 freebsd[123]*) objformat=aout ;;
12307 *) objformat=elf ;;
12310 version_type=freebsd-$objformat
12311 case $version_type in
12313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12322 shlibpath_var=LD_LIBRARY_PATH
12325 shlibpath_overrides_runpath=yes
12327 freebsd3.[01]* | freebsdelf3.[01]*)
12328 shlibpath_overrides_runpath=yes
12329 hardcode_into_libs=yes
12331 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12332 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12333 shlibpath_overrides_runpath=no
12334 hardcode_into_libs=yes
12336 freebsd*) # from 4.6 on
12337 shlibpath_overrides_runpath=yes
12338 hardcode_into_libs=yes
12347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12348 soname_spec='${libname}${release}${shared_ext}$major'
12349 shlibpath_var=LD_LIBRARY_PATH
12350 hardcode_into_libs=yes
12353 hpux9* | hpux10* | hpux11*)
12354 # Give a soname corresponding to the major version so that dld.sl refuses to
12355 # link against other versions.
12362 hardcode_into_libs=yes
12363 dynamic_linker="$host_os dld.so"
12364 shlibpath_var=LD_LIBRARY_PATH
12365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12367 soname_spec='${libname}${release}${shared_ext}$major'
12368 if test "X$HPUX_IA64_MODE" = X32; then
12369 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12371 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12377 hardcode_into_libs=yes
12378 dynamic_linker="$host_os dld.sl"
12379 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12382 soname_spec='${libname}${release}${shared_ext}$major'
12383 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12388 dynamic_linker="$host_os dld.sl"
12389 shlibpath_var=SHLIB_PATH
12390 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12392 soname_spec='${libname}${release}${shared_ext}$major'
12395 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12396 postinstall_cmds='chmod 555 $lib'
12403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12404 soname_spec='${libname}${release}${shared_ext}$major'
12405 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12406 shlibpath_var=LD_LIBRARY_PATH
12407 shlibpath_overrides_runpath=no
12408 hardcode_into_libs=yes
12411 irix5* | irix6* | nonstopux*)
12413 nonstopux*) version_type=nonstopux ;;
12415 if test "$lt_cv_prog_gnu_ld" = yes; then
12423 soname_spec='${libname}${release}${shared_ext}$major'
12424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12426 irix5* | nonstopux*)
12427 libsuff= shlibsuff=
12430 case $LD in # libtool.m4 will add one of these switches to LD
12431 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12432 libsuff= shlibsuff= libmagic=32-bit;;
12433 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12434 libsuff=32 shlibsuff=N32 libmagic=N32;;
12435 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12436 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12437 *) libsuff= shlibsuff= libmagic=never-match;;
12441 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12442 shlibpath_overrides_runpath=no
12443 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12444 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12445 hardcode_into_libs=yes
12448 # No shared lib support for Linux oldld, aout, or coff.
12449 linux*oldld* | linux*aout* | linux*coff*)
12453 # This must be Linux ELF.
12458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12459 soname_spec='${libname}${release}${shared_ext}$major'
12460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12461 shlibpath_var=LD_LIBRARY_PATH
12462 shlibpath_overrides_runpath=no
12463 # This implies no fast_install, which is unacceptable.
12464 # Some rework will be needed to allow for fast_install
12465 # before this can be enabled.
12466 hardcode_into_libs=yes
12468 # find out which ABI we are using
12470 case "$host_cpu" in
12471 x86_64*|s390x*|powerpc64*)
12472 echo '#line 12472 "configure"' > conftest.$ac_ext
12473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12474 (eval $ac_compile) 2>&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; then
12478 case `/usr/bin/file conftest.$ac_objext` in
12481 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12489 # Append ld.so.conf contents to the search path
12490 if test -f /etc/ld.so.conf; then
12491 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' ' '`
12492 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12495 # We used to test for /lib/ld.so.1 and disable shared libraries on
12496 # powerpc, because MkLinux only supported shared libraries with the
12497 # GNU dynamic linker. Since this was broken with cross compilers,
12498 # most powerpc-linux boxes support dynamic linking these days and
12499 # people can always --disable-shared, the test was removed, and we
12500 # assume the GNU/Linux dynamic linker is in use.
12501 dynamic_linker='GNU/Linux ld.so'
12508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12509 soname_spec='${libname}${release}${shared_ext}$major'
12510 shlibpath_var=LD_LIBRARY_PATH
12511 shlibpath_overrides_runpath=no
12512 hardcode_into_libs=yes
12513 dynamic_linker='GNU ld.so'
12520 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12523 dynamic_linker='NetBSD (a.out) ld.so'
12525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12526 soname_spec='${libname}${release}${shared_ext}$major'
12527 dynamic_linker='NetBSD ld.elf_so'
12529 shlibpath_var=LD_LIBRARY_PATH
12530 shlibpath_overrides_runpath=yes
12531 hardcode_into_libs=yes
12536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12537 shlibpath_var=LD_LIBRARY_PATH
12538 shlibpath_overrides_runpath=yes
12545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12546 soname_spec='${libname}${release}${shared_ext}$major'
12547 shlibpath_var=LD_LIBRARY_PATH
12548 shlibpath_overrides_runpath=yes
12553 sys_lib_dlsearch_path_spec="/usr/lib"
12555 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12557 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12558 *) need_version=no ;;
12560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12562 shlibpath_var=LD_LIBRARY_PATH
12563 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12565 openbsd2.[89] | openbsd2.[89].*)
12566 shlibpath_overrides_runpath=no
12569 shlibpath_overrides_runpath=yes
12573 shlibpath_overrides_runpath=yes
12578 libname_spec='$name'
12581 library_names_spec='$libname${shared_ext} $libname.a'
12582 dynamic_linker='OS/2 ld.exe'
12583 shlibpath_var=LIBPATH
12586 osf3* | osf4* | osf5*)
12590 soname_spec='${libname}${release}${shared_ext}$major'
12591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12592 shlibpath_var=LD_LIBRARY_PATH
12593 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12594 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12602 soname_spec='${libname}${release}${shared_ext}$major'
12603 shlibpath_var=LD_LIBRARY_PATH
12604 shlibpath_overrides_runpath=yes
12605 hardcode_into_libs=yes
12606 # ldd complains unless libraries are executable
12607 postinstall_cmds='chmod +x $lib'
12612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12613 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12614 shlibpath_var=LD_LIBRARY_PATH
12615 shlibpath_overrides_runpath=yes
12616 if test "$with_gnu_ld" = yes; then
12624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12625 soname_spec='${libname}${release}${shared_ext}$major'
12626 shlibpath_var=LD_LIBRARY_PATH
12627 case $host_vendor in
12629 shlibpath_overrides_runpath=no
12631 export_dynamic_flag_spec='${wl}-Blargedynsym'
12632 runpath_var=LD_RUN_PATH
12640 shlibpath_overrides_runpath=no
12641 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12647 if test -d /usr/nec ;then
12649 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12650 soname_spec='$libname${shared_ext}.$major'
12651 shlibpath_var=LD_LIBRARY_PATH
12655 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12656 version_type=freebsd-elf
12659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12660 soname_spec='${libname}${release}${shared_ext}$major'
12661 shlibpath_var=LD_LIBRARY_PATH
12662 hardcode_into_libs=yes
12663 if test "$with_gnu_ld" = yes; then
12664 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12665 shlibpath_overrides_runpath=no
12667 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12668 shlibpath_overrides_runpath=yes
12671 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12675 sys_lib_dlsearch_path_spec='/usr/lib'
12680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12681 soname_spec='${libname}${release}${shared_ext}$major'
12682 shlibpath_var=LD_LIBRARY_PATH
12689 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12690 echo "${ECHO_T}$dynamic_linker" >&6
12691 test "$dynamic_linker" = no && can_build_shared=no
12693 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12694 if test "$GCC" = yes; then
12695 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12698 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12699 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12700 hardcode_action_CXX=
12701 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12702 test -n "$runpath_var_CXX" || \
12703 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12705 # We can hardcode non-existant directories.
12706 if test "$hardcode_direct_CXX" != no &&
12707 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12708 # have to relink, otherwise we might link with an installed library
12709 # when we should be linking with a yet-to-be-installed one
12710 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12711 test "$hardcode_minus_L_CXX" != no; then
12712 # Linking always hardcodes the temporary library directory.
12713 hardcode_action_CXX=relink
12715 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12716 hardcode_action_CXX=immediate
12719 # We cannot hardcode anything, or else we can only hardcode existing
12721 hardcode_action_CXX=unsupported
12723 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12724 echo "${ECHO_T}$hardcode_action_CXX" >&6
12726 if test "$hardcode_action_CXX" = relink; then
12727 # Fast installation is not supported
12728 enable_fast_install=no
12729 elif test "$shlibpath_overrides_runpath" = yes ||
12730 test "$enable_shared" = no; then
12731 # Fast installation is not necessary
12732 enable_fast_install=needless
12736 # The else clause should only fire when bootstrapping the
12737 # libtool distribution, otherwise you forgot to ship ltmain.sh
12738 # with your package, and you will get complaints that there are
12739 # no rules to generate ltmain.sh.
12740 if test -f "$ltmain"; then
12741 # See if we are running on zsh, and set the options which allow our commands through
12742 # without removal of \ escapes.
12743 if test -n "${ZSH_VERSION+set}" ; then
12744 setopt NO_GLOB_SUBST
12746 # Now quote all the things that may contain metacharacters while being
12747 # careful not to overquote the AC_SUBSTed values. We take copies of the
12748 # variables and quote the copies for generation of the libtool script.
12749 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12751 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12752 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12753 deplibs_check_method reload_flag reload_cmds need_locks \
12754 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12755 lt_cv_sys_global_symbol_to_c_name_address \
12756 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12757 old_postinstall_cmds old_postuninstall_cmds \
12761 lt_prog_compiler_wl_CXX \
12762 lt_prog_compiler_pic_CXX \
12763 lt_prog_compiler_static_CXX \
12764 lt_prog_compiler_no_builtin_flag_CXX \
12765 export_dynamic_flag_spec_CXX \
12766 thread_safe_flag_spec_CXX \
12767 whole_archive_flag_spec_CXX \
12768 enable_shared_with_static_runtimes_CXX \
12769 old_archive_cmds_CXX \
12770 old_archive_from_new_cmds_CXX \
12771 predep_objects_CXX \
12772 postdep_objects_CXX \
12775 compiler_lib_search_path_CXX \
12777 archive_expsym_cmds_CXX \
12778 postinstall_cmds_CXX \
12779 postuninstall_cmds_CXX \
12780 old_archive_from_expsyms_cmds_CXX \
12781 allow_undefined_flag_CXX \
12782 no_undefined_flag_CXX \
12783 export_symbols_cmds_CXX \
12784 hardcode_libdir_flag_spec_CXX \
12785 hardcode_libdir_flag_spec_ld_CXX \
12786 hardcode_libdir_separator_CXX \
12787 hardcode_automatic_CXX \
12789 module_expsym_cmds_CXX \
12790 lt_cv_prog_compiler_c_o_CXX \
12791 exclude_expsyms_CXX \
12792 include_expsyms_CXX; do
12795 old_archive_cmds_CXX | \
12796 old_archive_from_new_cmds_CXX | \
12797 archive_cmds_CXX | \
12798 archive_expsym_cmds_CXX | \
12799 module_cmds_CXX | \
12800 module_expsym_cmds_CXX | \
12801 old_archive_from_expsyms_cmds_CXX | \
12802 export_symbols_cmds_CXX | \
12803 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12804 postinstall_cmds | postuninstall_cmds | \
12805 old_postinstall_cmds | old_postuninstall_cmds | \
12806 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12807 # Double-quote double-evaled strings.
12808 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12811 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12817 *'\$0 --fallback-echo"')
12818 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12824 cat <<__EOF__ >> "$cfgfile"
12825 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12827 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12829 # Shell to use when invoking shell scripts.
12832 # Whether or not to build shared libraries.
12833 build_libtool_libs=$enable_shared
12835 # Whether or not to build static libraries.
12836 build_old_libs=$enable_static
12838 # Whether or not to add -lc for building shared libraries.
12839 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12841 # Whether or not to disallow shared libs when runtime libs are static
12842 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12844 # Whether or not to optimize for fast installation.
12845 fast_install=$enable_fast_install
12848 host_alias=$host_alias
12852 # The build system.
12853 build_alias=$build_alias
12857 # An echo program that does not interpret backslashes.
12862 AR_FLAGS=$lt_AR_FLAGS
12867 # LTCC compiler flags.
12868 LTCFLAGS=$lt_LTCFLAGS
12870 # A language-specific compiler.
12871 CC=$lt_compiler_CXX
12873 # Is the compiler the GNU C compiler?
12876 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12877 gcc_ver=\`gcc -dumpversion\`
12882 # The linker used to build libraries.
12885 # Whether we need hard or soft links.
12888 # A BSD-compatible nm program.
12891 # A symbol stripping program
12894 # Used to examine libraries when file_magic_cmd begins "file"
12895 MAGIC_CMD=$MAGIC_CMD
12897 # Used on cygwin: DLL creation program.
12900 # Used on cygwin: object dumper.
12903 # Used on cygwin: assembler.
12906 # The name of the directory that contains temporary libtool files.
12909 # How to create reloadable object files.
12910 reload_flag=$lt_reload_flag
12911 reload_cmds=$lt_reload_cmds
12913 # How to pass a linker flag through the compiler.
12914 wl=$lt_lt_prog_compiler_wl_CXX
12916 # Object file suffix (normally "o").
12917 objext="$ac_objext"
12919 # Old archive suffix (normally "a").
12922 # Shared library suffix (normally ".so").
12923 shrext_cmds='$shrext_cmds'
12925 # Executable file suffix (normally "").
12928 # Additional compiler flags for building library objects.
12929 pic_flag=$lt_lt_prog_compiler_pic_CXX
12932 # What is the maximum length of a command?
12933 max_cmd_len=$lt_cv_sys_max_cmd_len
12935 # Does compiler simultaneously support -c and -o options?
12936 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12938 # Must we lock files when doing compilation?
12939 need_locks=$lt_need_locks
12941 # Do we need the lib prefix for modules?
12942 need_lib_prefix=$need_lib_prefix
12944 # Do we need a version for libraries?
12945 need_version=$need_version
12947 # Whether dlopen is supported.
12948 dlopen_support=$enable_dlopen
12950 # Whether dlopen of programs is supported.
12951 dlopen_self=$enable_dlopen_self
12953 # Whether dlopen of statically linked programs is supported.
12954 dlopen_self_static=$enable_dlopen_self_static
12956 # Compiler flag to prevent dynamic linking.
12957 link_static_flag=$lt_lt_prog_compiler_static_CXX
12959 # Compiler flag to turn off builtin functions.
12960 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12962 # Compiler flag to allow reflexive dlopens.
12963 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12965 # Compiler flag to generate shared objects directly from archives.
12966 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12968 # Compiler flag to generate thread-safe objects.
12969 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12971 # Library versioning type.
12972 version_type=$version_type
12974 # Format of library name prefix.
12975 libname_spec=$lt_libname_spec
12977 # List of archive names. First name is the real one, the rest are links.
12978 # The last name is the one that the linker finds with -lNAME.
12979 library_names_spec=$lt_library_names_spec
12981 # The coded name of the library, if different from the real name.
12982 soname_spec=$lt_soname_spec
12984 # Commands used to build and install an old-style archive.
12986 old_archive_cmds=$lt_old_archive_cmds_CXX
12987 old_postinstall_cmds=$lt_old_postinstall_cmds
12988 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12990 # Create an old-style archive from a shared archive.
12991 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12993 # Create a temporary old-style archive to link instead of a shared archive.
12994 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12996 # Commands used to build and install a shared archive.
12997 archive_cmds=$lt_archive_cmds_CXX
12998 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12999 postinstall_cmds=$lt_postinstall_cmds
13000 postuninstall_cmds=$lt_postuninstall_cmds
13002 # Commands used to build a loadable module (assumed same as above if empty)
13003 module_cmds=$lt_module_cmds_CXX
13004 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13006 # Commands to strip libraries.
13007 old_striplib=$lt_old_striplib
13008 striplib=$lt_striplib
13010 # Dependencies to place before the objects being linked to create a
13012 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13014 # Dependencies to place after the objects being linked to create a
13016 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13018 # Dependencies to place before the objects being linked to create a
13020 predeps=$lt_predeps_CXX
13022 # Dependencies to place after the objects being linked to create a
13024 postdeps=$lt_postdeps_CXX
13026 # The library search path used internally by the compiler when linking
13027 # a shared library.
13028 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"\`
13030 # Method to check whether dependent libraries are shared objects.
13031 deplibs_check_method=$lt_deplibs_check_method
13033 # Command to use when deplibs_check_method == file_magic.
13034 file_magic_cmd=$lt_file_magic_cmd
13036 # Flag that allows shared libraries with undefined symbols to be built.
13037 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13039 # Flag that forces no undefined symbols.
13040 no_undefined_flag=$lt_no_undefined_flag_CXX
13042 # Commands used to finish a libtool library installation in a directory.
13043 finish_cmds=$lt_finish_cmds
13045 # Same as above, but a single script fragment to be evaled but not shown.
13046 finish_eval=$lt_finish_eval
13048 # Take the output of nm and produce a listing of raw symbols and C names.
13049 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13051 # Transform the output of nm in a proper C declaration
13052 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13054 # Transform the output of nm in a C name address pair
13055 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13057 # This is the shared library runtime path variable.
13058 runpath_var=$runpath_var
13060 # This is the shared library path variable.
13061 shlibpath_var=$shlibpath_var
13063 # Is shlibpath searched before the hard-coded library search path?
13064 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13066 # How to hardcode a shared library path into an executable.
13067 hardcode_action=$hardcode_action_CXX
13069 # Whether we should hardcode library paths into libraries.
13070 hardcode_into_libs=$hardcode_into_libs
13072 # Flag to hardcode \$libdir into a binary during linking.
13073 # This must work even if \$libdir does not exist.
13074 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13076 # If ld is used when linking, flag to hardcode \$libdir into
13077 # a binary during linking. This must work even if \$libdir does
13079 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13081 # Whether we need a single -rpath flag with a separated argument.
13082 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13084 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13085 # resulting binary.
13086 hardcode_direct=$hardcode_direct_CXX
13088 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13089 # resulting binary.
13090 hardcode_minus_L=$hardcode_minus_L_CXX
13092 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13093 # the resulting binary.
13094 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13096 # Set to yes if building a shared library automatically hardcodes DIR into the library
13097 # and all subsequent libraries and executables linked against it.
13098 hardcode_automatic=$hardcode_automatic_CXX
13100 # Variables whose values should be saved in libtool wrapper scripts and
13101 # restored at relink time.
13102 variables_saved_for_relink="$variables_saved_for_relink"
13104 # Whether libtool must link a program against all its dependency libraries.
13105 link_all_deplibs=$link_all_deplibs_CXX
13107 # Compile-time system search path for libraries
13108 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"\`
13110 # Run-time system search path for libraries
13111 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13113 # Fix the shell variable \$srcfile for the compiler.
13114 fix_srcfile_path="$fix_srcfile_path_CXX"
13116 # Set to yes if exported symbols are required.
13117 always_export_symbols=$always_export_symbols_CXX
13119 # The commands to list exported symbols.
13120 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13122 # The commands to extract the exported symbol list from a shared archive.
13123 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13125 # Symbols that should not be listed in the preloaded symbols.
13126 exclude_expsyms=$lt_exclude_expsyms_CXX
13128 # Symbols that must always be exported.
13129 include_expsyms=$lt_include_expsyms_CXX
13131 # ### END LIBTOOL TAG CONFIG: $tagname
13137 # If there is no Makefile yet, we rely on a make rule to execute
13138 # `config.status --recheck' to rerun these tests and create the
13139 # libtool script then.
13140 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13141 if test -f "$ltmain_in"; then
13142 test -f Makefile && make "$ltmain"
13148 ac_cpp='$CPP $CPPFLAGS'
13149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13157 with_gnu_ldcxx=$with_gnu_ld
13158 with_gnu_ld=$lt_save_with_gnu_ld
13159 lt_cv_path_LDCXX=$lt_cv_path_LD
13160 lt_cv_path_LD=$lt_save_path_LD
13161 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13162 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13170 if test -n "$F77" && test "X$F77" != "Xno"; then
13173 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13174 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13175 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13178 archive_cmds_need_lc_F77=no
13179 allow_undefined_flag_F77=
13180 always_export_symbols_F77=no
13181 archive_expsym_cmds_F77=
13182 export_dynamic_flag_spec_F77=
13183 hardcode_direct_F77=no
13184 hardcode_libdir_flag_spec_F77=
13185 hardcode_libdir_flag_spec_ld_F77=
13186 hardcode_libdir_separator_F77=
13187 hardcode_minus_L_F77=no
13188 hardcode_automatic_F77=no
13190 module_expsym_cmds_F77=
13191 link_all_deplibs_F77=unknown
13192 old_archive_cmds_F77=$old_archive_cmds
13193 no_undefined_flag_F77=
13194 whole_archive_flag_spec_F77=
13195 enable_shared_with_static_runtimes_F77=no
13197 # Source file extension for f77 test sources.
13200 # Object file extension for compiled f77 test sources.
13204 # Code to be used in simple compile tests
13205 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13207 # Code to be used in simple link tests
13208 lt_simple_link_test_code=" program t\n end\n"
13210 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13212 # If no C compiler was specified, use CC.
13215 # If no C compiler flags were specified, use CFLAGS.
13216 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13218 # Allow CC to be a program name with arguments.
13222 # save warnings/boilerplate of simple test code
13223 ac_outfile=conftest.$ac_objext
13224 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13225 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13226 _lt_compiler_boilerplate=`cat conftest.err`
13229 ac_outfile=conftest.$ac_objext
13230 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13231 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13232 _lt_linker_boilerplate=`cat conftest.err`
13236 # Allow CC to be a program name with arguments.
13241 for cc_temp in $compiler""; do
13243 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13244 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13249 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13252 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13253 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13254 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13255 echo "${ECHO_T}$can_build_shared" >&6
13257 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13258 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13259 test "$can_build_shared" = "no" && enable_shared=no
13261 # On AIX, shared libraries and static libraries use the same namespace, and
13262 # are all built from PIC.
13265 test "$enable_shared" = yes && enable_static=no
13266 if test -n "$RANLIB"; then
13267 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13268 postinstall_cmds='$RANLIB $lib'
13272 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13273 test "$enable_shared" = yes && enable_static=no
13277 echo "$as_me:$LINENO: result: $enable_shared" >&5
13278 echo "${ECHO_T}$enable_shared" >&6
13280 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13281 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13282 # Make sure either enable_shared or enable_static is yes.
13283 test "$enable_shared" = yes || enable_static=yes
13284 echo "$as_me:$LINENO: result: $enable_static" >&5
13285 echo "${ECHO_T}$enable_static" >&6
13290 lt_prog_compiler_wl_F77=
13291 lt_prog_compiler_pic_F77=
13292 lt_prog_compiler_static_F77=
13294 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13295 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13297 if test "$GCC" = yes; then
13298 lt_prog_compiler_wl_F77='-Wl,'
13299 lt_prog_compiler_static_F77='-static'
13303 # All AIX code is PIC.
13304 if test "$host_cpu" = ia64; then
13305 # AIX 5 now supports IA64 processor
13306 lt_prog_compiler_static_F77='-Bstatic'
13311 # FIXME: we need at least 68020 code to build shared libraries, but
13312 # adding the `-m68020' flag to GCC prevents building anything better,
13314 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13317 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13318 # PIC is the default for these OSes.
13321 mingw* | pw32* | os2*)
13322 # This hack is so that the source file can tell whether it is being
13323 # built for inclusion in a dll (and should export symbols for example).
13324 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13327 darwin* | rhapsody*)
13328 # PIC is the default on this platform
13329 # Common symbols not allowed in MH_DYLIB files
13330 lt_prog_compiler_pic_F77='-fno-common'
13334 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13335 # Instead, we relocate shared libraries at runtime.
13339 # Just because we use GCC doesn't mean we suddenly get shared libraries
13340 # on systems that don't support them.
13341 lt_prog_compiler_can_build_shared_F77=no
13346 if test -d /usr/nec; then
13347 lt_prog_compiler_pic_F77=-Kconform_pic
13352 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13353 # not for PA HP-UX.
13359 lt_prog_compiler_pic_F77='-fPIC'
13365 lt_prog_compiler_pic_F77='-fPIC'
13369 # PORTME Check for flag to pass linker flags through the system compiler.
13372 lt_prog_compiler_wl_F77='-Wl,'
13373 if test "$host_cpu" = ia64; then
13374 # AIX 5 now supports IA64 processor
13375 lt_prog_compiler_static_F77='-Bstatic'
13377 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13381 # PIC is the default on this platform
13382 # Common symbols not allowed in MH_DYLIB files
13383 case $cc_basename in
13385 lt_prog_compiler_pic_F77='-qnocommon'
13386 lt_prog_compiler_wl_F77='-Wl,'
13391 mingw* | pw32* | os2*)
13392 # This hack is so that the source file can tell whether it is being
13393 # built for inclusion in a dll (and should export symbols for example).
13394 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13397 hpux9* | hpux10* | hpux11*)
13398 lt_prog_compiler_wl_F77='-Wl,'
13399 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13400 # not for PA HP-UX.
13406 lt_prog_compiler_pic_F77='+Z'
13409 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13410 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13413 irix5* | irix6* | nonstopux*)
13414 lt_prog_compiler_wl_F77='-Wl,'
13415 # PIC (with -KPIC) is the default.
13416 lt_prog_compiler_static_F77='-non_shared'
13420 lt_prog_compiler_pic_F77='-KPIC'
13421 lt_prog_compiler_static_F77='-Bstatic'
13425 case $cc_basename in
13427 lt_prog_compiler_wl_F77='-Wl,'
13428 lt_prog_compiler_pic_F77='-KPIC'
13429 lt_prog_compiler_static_F77='-static'
13431 pgcc* | pgf77* | pgf90* | pgf95*)
13432 # Portland Group compilers (*not* the Pentium gcc compiler,
13433 # which looks to be a dead project)
13434 lt_prog_compiler_wl_F77='-Wl,'
13435 lt_prog_compiler_pic_F77='-fpic'
13436 lt_prog_compiler_static_F77='-Bstatic'
13439 lt_prog_compiler_wl_F77='-Wl,'
13440 # All Alpha code is PIC.
13441 lt_prog_compiler_static_F77='-non_shared'
13446 osf3* | osf4* | osf5*)
13447 lt_prog_compiler_wl_F77='-Wl,'
13448 # All OSF/1 code is PIC.
13449 lt_prog_compiler_static_F77='-non_shared'
13453 lt_prog_compiler_pic_F77='-KPIC'
13454 lt_prog_compiler_static_F77='-Bstatic'
13455 case $cc_basename in
13456 f77* | f90* | f95*)
13457 lt_prog_compiler_wl_F77='-Qoption ld ';;
13459 lt_prog_compiler_wl_F77='-Wl,';;
13464 lt_prog_compiler_wl_F77='-Qoption ld '
13465 lt_prog_compiler_pic_F77='-PIC'
13466 lt_prog_compiler_static_F77='-Bstatic'
13469 sysv4 | sysv4.2uw2* | sysv4.3*)
13470 lt_prog_compiler_wl_F77='-Wl,'
13471 lt_prog_compiler_pic_F77='-KPIC'
13472 lt_prog_compiler_static_F77='-Bstatic'
13476 if test -d /usr/nec ;then
13477 lt_prog_compiler_pic_F77='-Kconform_pic'
13478 lt_prog_compiler_static_F77='-Bstatic'
13482 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13483 lt_prog_compiler_wl_F77='-Wl,'
13484 lt_prog_compiler_pic_F77='-KPIC'
13485 lt_prog_compiler_static_F77='-Bstatic'
13489 lt_prog_compiler_wl_F77='-Wl,'
13490 lt_prog_compiler_can_build_shared_F77=no
13494 lt_prog_compiler_pic_F77='-pic'
13495 lt_prog_compiler_static_F77='-Bstatic'
13499 lt_prog_compiler_can_build_shared_F77=no
13504 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13505 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13508 # Check to make sure the PIC flag actually works.
13510 if test -n "$lt_prog_compiler_pic_F77"; then
13512 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13513 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13514 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13517 lt_prog_compiler_pic_works_F77=no
13518 ac_outfile=conftest.$ac_objext
13519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13520 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13521 # Insert the option either (1) after the last *FLAGS variable, or
13522 # (2) before a word containing "conftest.", or (3) at the end.
13523 # Note that $ac_compile itself does not contain backslashes and begins
13524 # with a dollar sign (not a hyphen), so the echo should work correctly.
13525 # The option is referenced via a variable to avoid confusing sed.
13526 lt_compile=`echo "$ac_compile" | $SED \
13527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13529 -e 's:$: $lt_compiler_flag:'`
13530 (eval echo "\"\$as_me:13530: $lt_compile\"" >&5)
13531 (eval "$lt_compile" 2>conftest.err)
13533 cat conftest.err >&5
13534 echo "$as_me:13534: \$? = $ac_status" >&5
13535 if (exit $ac_status) && test -s "$ac_outfile"; then
13536 # The compiler can only warn and ignore the option if not recognized
13537 # So say no if there are warnings other than the usual output.
13538 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13541 lt_prog_compiler_pic_works_F77=yes
13547 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13548 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13550 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13551 case $lt_prog_compiler_pic_F77 in
13553 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13556 lt_prog_compiler_pic_F77=
13557 lt_prog_compiler_can_build_shared_F77=no
13562 # For platforms which do not support PIC, -DPIC is meaningless:
13564 lt_prog_compiler_pic_F77=
13567 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13572 # Check to make sure the static flag actually works.
13574 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13575 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13576 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13577 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13578 echo $ECHO_N "(cached) $ECHO_C" >&6
13580 lt_prog_compiler_static_works_F77=no
13581 save_LDFLAGS="$LDFLAGS"
13582 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13583 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13584 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13585 # The linker can only warn and ignore the option if not recognized
13586 # So say no if there are warnings
13587 if test -s conftest.err; then
13588 # Append any errors to the config.log.
13589 cat conftest.err 1>&5
13590 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13592 if diff conftest.exp conftest.er2 >/dev/null; then
13593 lt_prog_compiler_static_works_F77=yes
13596 lt_prog_compiler_static_works_F77=yes
13600 LDFLAGS="$save_LDFLAGS"
13603 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13604 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13606 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13609 lt_prog_compiler_static_F77=
13613 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13614 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13615 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13618 lt_cv_prog_compiler_c_o_F77=no
13619 $rm -r conftest 2>/dev/null
13623 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13625 lt_compiler_flag="-o out/conftest2.$ac_objext"
13626 # Insert the option either (1) after the last *FLAGS variable, or
13627 # (2) before a word containing "conftest.", or (3) at the end.
13628 # Note that $ac_compile itself does not contain backslashes and begins
13629 # with a dollar sign (not a hyphen), so the echo should work correctly.
13630 lt_compile=`echo "$ac_compile" | $SED \
13631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13633 -e 's:$: $lt_compiler_flag:'`
13634 (eval echo "\"\$as_me:13634: $lt_compile\"" >&5)
13635 (eval "$lt_compile" 2>out/conftest.err)
13637 cat out/conftest.err >&5
13638 echo "$as_me:13638: \$? = $ac_status" >&5
13639 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13641 # The compiler can only warn and ignore the option if not recognized
13642 # So say no if there are warnings
13643 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13644 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13645 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13646 lt_cv_prog_compiler_c_o_F77=yes
13651 # SGI C++ compiler will create directory out/ii_files/ for
13652 # template instantiation
13653 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13654 $rm out/* && rmdir out
13660 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13661 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13664 hard_links="nottested"
13665 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13666 # do not overwrite the value of need_locks provided by the user
13667 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13668 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13671 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13673 ln conftest.a conftest.b 2>&5 || hard_links=no
13674 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13675 echo "$as_me:$LINENO: result: $hard_links" >&5
13676 echo "${ECHO_T}$hard_links" >&6
13677 if test "$hard_links" = no; then
13678 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13679 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13686 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13687 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13690 allow_undefined_flag_F77=
13691 enable_shared_with_static_runtimes_F77=no
13693 archive_expsym_cmds_F77=
13694 old_archive_From_new_cmds_F77=
13695 old_archive_from_expsyms_cmds_F77=
13696 export_dynamic_flag_spec_F77=
13697 whole_archive_flag_spec_F77=
13698 thread_safe_flag_spec_F77=
13699 hardcode_libdir_flag_spec_F77=
13700 hardcode_libdir_flag_spec_ld_F77=
13701 hardcode_libdir_separator_F77=
13702 hardcode_direct_F77=no
13703 hardcode_minus_L_F77=no
13704 hardcode_shlibpath_var_F77=unsupported
13705 link_all_deplibs_F77=unknown
13706 hardcode_automatic_F77=no
13708 module_expsym_cmds_F77=
13709 always_export_symbols_F77=no
13710 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13711 # include_expsyms should be a list of space-separated symbols to be *always*
13712 # included in the symbol list
13713 include_expsyms_F77=
13714 # exclude_expsyms can be an extended regexp of symbols to exclude
13715 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13716 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13717 # as well as any symbol that contains `d'.
13718 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13719 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13720 # platforms (ab)use it in PIC code, but their linkers get confused if
13721 # the symbol is explicitly referenced. Since portable code cannot
13722 # rely on this symbol name, it's probably fine to never include it in
13723 # preloaded symbol tables.
13724 extract_expsyms_cmds=
13725 # Just being paranoid about ensuring that cc_basename is set.
13726 for cc_temp in $compiler""; do
13728 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13729 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13734 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13737 cygwin* | mingw* | pw32*)
13738 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13739 # When not using gcc, we currently assume that we are using
13740 # Microsoft Visual C++.
13741 if test "$GCC" != yes; then
13746 # we just hope/assume this is gcc and not c89 (= MSVC++)
13755 if test "$with_gnu_ld" = yes; then
13756 # If archive_cmds runs LD, not CC, wlarc should be empty
13759 # Set some defaults for GNU ld with shared library support. These
13760 # are reset later if shared libraries are not supported. Putting them
13761 # here allows them to be overridden if necessary.
13762 runpath_var=LD_RUN_PATH
13763 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13764 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13765 # ancient GNU ld didn't support --whole-archive et. al.
13766 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13767 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13769 whole_archive_flag_spec_F77=
13771 supports_anon_versioning=no
13772 case `$LD -v 2>/dev/null` in
13773 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13774 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13775 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13776 *\ 2.11.*) ;; # other 2.11 versions
13777 *) supports_anon_versioning=yes ;;
13780 # See if GNU ld supports shared libraries.
13782 aix3* | aix4* | aix5*)
13783 # On AIX/PPC, the GNU linker is very broken
13784 if test "$host_cpu" != ia64; then
13788 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13789 *** to be unable to reliably create shared libraries on AIX.
13790 *** Therefore, libtool is disabling shared libraries support. If you
13791 *** really care for shared libraries, you may want to modify your PATH
13792 *** so that a non-GNU linker is found, and then restart.
13799 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)'
13800 hardcode_libdir_flag_spec_F77='-L$libdir'
13801 hardcode_minus_L_F77=yes
13803 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13804 # that the semantics of dynamic libraries on AmigaOS, at least up
13805 # to version 4, is to share data among multiple programs linked
13806 # with the same dynamic library. Since this doesn't match the
13807 # behavior of shared libraries on other platforms, we can't use
13813 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13814 allow_undefined_flag_F77=unsupported
13815 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13816 # support --undefined. This deserves some investigation. FIXME
13817 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13823 cygwin* | mingw* | pw32*)
13824 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13825 # as there is no search path for DLLs.
13826 hardcode_libdir_flag_spec_F77='-L$libdir'
13827 allow_undefined_flag_F77=unsupported
13828 always_export_symbols_F77=no
13829 enable_shared_with_static_runtimes_F77=yes
13830 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13832 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13833 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13834 # If the export-symbols file already is a .def file (1st line
13835 # is EXPORTS), use it as is; otherwise, prepend...
13836 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13837 cp $export_symbols $output_objdir/$soname.def;
13839 echo EXPORTS > $output_objdir/$soname.def;
13840 cat $export_symbols >> $output_objdir/$soname.def;
13842 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13849 hardcode_direct_F77=no
13850 hardcode_shlibpath_var_F77=no
13851 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13852 export_dynamic_flag_spec_F77='${wl}-E'
13853 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13854 # Instead, shared libraries are loaded at an image base (0x10000000 by
13855 # default) and relocated if they conflict, which is a slow very memory
13856 # consuming and fragmenting process. To avoid this, we pick a random,
13857 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13858 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13859 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'
13860 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'
13864 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13866 case $cc_basename,$host_cpu in
13867 pgcc*) # Portland Group C compiler
13868 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'
13869 tmp_addflag=' $pic_flag'
13871 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13872 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'
13873 tmp_addflag=' $pic_flag -Mnomain' ;;
13874 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13875 tmp_addflag=' -i_dynamic' ;;
13876 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13877 tmp_addflag=' -i_dynamic -nofor_main' ;;
13878 ifc* | ifort*) # Intel Fortran compiler
13879 tmp_addflag=' -nofor_main' ;;
13881 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13883 if test $supports_anon_versioning = yes; then
13884 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13885 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13886 $echo "local: *; };" >> $output_objdir/$libname.ver~
13887 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13895 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13896 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13899 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13900 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13905 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13909 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13910 *** create shared libraries on Solaris systems. Therefore, libtool
13911 *** is disabling shared libraries support. We urge you to upgrade GNU
13912 *** binutils to release 2.9.1 or newer. Another option is to modify
13913 *** your PATH or compiler configuration so that the native linker is
13914 *** used, and then restart.
13917 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13918 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13919 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13925 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13926 case `$LD -v 2>&1` in
13927 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13931 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13932 *** reliably create shared libraries on SCO systems. Therefore, libtool
13933 *** is disabling shared libraries support. We urge you to upgrade GNU
13934 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13935 *** your PATH or compiler configuration so that the native linker is
13936 *** used, and then restart.
13941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13942 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13943 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13944 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13953 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13955 hardcode_direct_F77=yes
13956 hardcode_shlibpath_var_F77=no
13960 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13961 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13962 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13969 if test "$ld_shlibs_F77" = no; then
13971 hardcode_libdir_flag_spec_F77=
13972 export_dynamic_flag_spec_F77=
13973 whole_archive_flag_spec_F77=
13976 # PORTME fill in a description of your system's linker (not GNU ld)
13979 allow_undefined_flag_F77=unsupported
13980 always_export_symbols_F77=yes
13981 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'
13982 # Note: this linker hardcodes the directories in LIBPATH if there
13983 # are no directories specified by -L.
13984 hardcode_minus_L_F77=yes
13985 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13986 # Neither direct hardcoding nor static linking is supported with a
13988 hardcode_direct_F77=unsupported
13993 if test "$host_cpu" = ia64; then
13994 # On IA64, the linker does run time linking by default, so we don't
13995 # have to do anything special.
13996 aix_use_runtimelinking=no
13997 exp_sym_flag='-Bexport'
14000 # If we're using GNU nm, then we don't want the "-C" option.
14001 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14002 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14003 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'
14005 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'
14007 aix_use_runtimelinking=no
14009 # Test if we are trying to use run time linking or normal
14010 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14011 # need to do runtime linking.
14012 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14013 for ld_flag in $LDFLAGS; do
14014 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14015 aix_use_runtimelinking=yes
14022 exp_sym_flag='-bexport'
14023 no_entry_flag='-bnoentry'
14026 # When large executables or shared objects are built, AIX ld can
14027 # have problems creating the table of contents. If linking a library
14028 # or program results in "error TOC overflow" add -mminimal-toc to
14029 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14030 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14032 archive_cmds_F77=''
14033 hardcode_direct_F77=yes
14034 hardcode_libdir_separator_F77=':'
14035 link_all_deplibs_F77=yes
14037 if test "$GCC" = yes; then
14038 case $host_os in aix4.[012]|aix4.[012].*)
14039 # We only want to do this on AIX 4.2 and lower, the check
14040 # below for broken collect2 doesn't work under 4.3+
14041 collect2name=`${CC} -print-prog-name=collect2`
14042 if test -f "$collect2name" && \
14043 strings "$collect2name" | grep resolve_lib_name >/dev/null
14045 # We have reworked collect2
14046 hardcode_direct_F77=yes
14048 # We have old collect2
14049 hardcode_direct_F77=unsupported
14050 # It fails to find uninstalled libraries when the uninstalled
14051 # path is not listed in the libpath. Setting hardcode_minus_L
14052 # to unsupported forces relinking
14053 hardcode_minus_L_F77=yes
14054 hardcode_libdir_flag_spec_F77='-L$libdir'
14055 hardcode_libdir_separator_F77=
14059 shared_flag='-shared'
14060 if test "$aix_use_runtimelinking" = yes; then
14061 shared_flag="$shared_flag "'${wl}-G'
14065 if test "$host_cpu" = ia64; then
14066 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14067 # chokes on -Wl,-G. The following line is correct:
14070 if test "$aix_use_runtimelinking" = yes; then
14071 shared_flag='${wl}-G'
14073 shared_flag='${wl}-bM:SRE'
14078 # It seems that -bexpall does not export symbols beginning with
14079 # underscore (_), so it is better to generate a list of symbols to export.
14080 always_export_symbols_F77=yes
14081 if test "$aix_use_runtimelinking" = yes; then
14082 # Warning - without using the other runtime loading flags (-brtl),
14083 # -berok will link without error, but may produce a broken library.
14084 allow_undefined_flag_F77='-berok'
14085 # Determine the default libpath from the value encoded in an empty executable.
14086 cat >conftest.$ac_ext <<_ACEOF
14091 rm -f conftest.$ac_objext conftest$ac_exeext
14092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14093 (eval $ac_link) 2>conftest.er1
14095 grep -v '^ *+' conftest.er1 >conftest.err
14097 cat conftest.err >&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } &&
14100 { ac_try='test -z "$ac_f77_werror_flag"
14101 || test ! -s conftest.err'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest$ac_exeext'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }; then
14114 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14116 # Check for a 64-bit object if we didn't find anything.
14117 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; }
14120 echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14124 rm -f conftest.err conftest.$ac_objext \
14125 conftest$ac_exeext conftest.$ac_ext
14126 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14128 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14129 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"
14131 if test "$host_cpu" = ia64; then
14132 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14133 allow_undefined_flag_F77="-z nodefs"
14134 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"
14136 # Determine the default libpath from the value encoded in an empty executable.
14137 cat >conftest.$ac_ext <<_ACEOF
14142 rm -f conftest.$ac_objext conftest$ac_exeext
14143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14144 (eval $ac_link) 2>conftest.er1
14146 grep -v '^ *+' conftest.er1 >conftest.err
14148 cat conftest.err >&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } &&
14151 { ac_try='test -z "$ac_f77_werror_flag"
14152 || test ! -s conftest.err'
14153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154 (eval $ac_try) 2>&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; } &&
14158 { ac_try='test -s conftest$ac_exeext'
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; }; then
14165 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14167 # Check for a 64-bit object if we didn't find anything.
14168 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; }
14171 echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.$ac_ext >&5
14175 rm -f conftest.err conftest.$ac_objext \
14176 conftest$ac_exeext conftest.$ac_ext
14177 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14179 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14180 # Warning - without using the other run time loading flags,
14181 # -berok will link without error, but may produce a broken library.
14182 no_undefined_flag_F77=' ${wl}-bernotok'
14183 allow_undefined_flag_F77=' ${wl}-berok'
14184 # Exported symbols can be pulled into shared objects from archives
14185 whole_archive_flag_spec_F77='$convenience'
14186 archive_cmds_need_lc_F77=yes
14187 # This is similar to how AIX traditionally builds its shared libraries.
14188 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'
14194 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)'
14195 hardcode_libdir_flag_spec_F77='-L$libdir'
14196 hardcode_minus_L_F77=yes
14197 # see comment about different semantics on the GNU ld section
14202 export_dynamic_flag_spec_F77=-rdynamic
14205 cygwin* | mingw* | pw32*)
14206 # When not using gcc, we currently assume that we are using
14207 # Microsoft Visual C++.
14208 # hardcode_libdir_flag_spec is actually meaningless, as there is
14209 # no search path for DLLs.
14210 hardcode_libdir_flag_spec_F77=' '
14211 allow_undefined_flag_F77=unsupported
14212 # Tell ltmain to make .lib files, not .a files.
14214 # Tell ltmain to make .dll files, not .so files.
14216 # FIXME: Setting linknames here is a bad hack.
14217 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14218 # The linker will automatically build a .lib file if we build a DLL.
14219 old_archive_From_new_cmds_F77='true'
14220 # FIXME: Should let the user specify the lib program.
14221 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14222 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14223 enable_shared_with_static_runtimes_F77=yes
14226 darwin* | rhapsody*)
14228 rhapsody* | darwin1.[012])
14229 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14232 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14233 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14235 case ${MACOSX_DEPLOYMENT_TARGET} in
14237 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14240 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14246 archive_cmds_need_lc_F77=no
14247 hardcode_direct_F77=no
14248 hardcode_automatic_F77=yes
14249 hardcode_shlibpath_var_F77=unsupported
14250 whole_archive_flag_spec_F77=''
14251 link_all_deplibs_F77=yes
14252 if test "$GCC" = yes ; then
14253 output_verbose_link_cmd='echo'
14254 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14255 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14256 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14257 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}'
14258 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}'
14260 case $cc_basename in
14262 output_verbose_link_cmd='echo'
14263 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14264 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14265 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14266 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}'
14267 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}'
14277 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14278 hardcode_libdir_flag_spec_F77='-L$libdir'
14279 hardcode_shlibpath_var_F77=no
14286 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14287 # support. Future versions do this automatically, but an explicit c++rt0.o
14288 # does not break anything, and helps significantly (at the cost of a little
14291 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14292 hardcode_libdir_flag_spec_F77='-R$libdir'
14293 hardcode_direct_F77=yes
14294 hardcode_shlibpath_var_F77=no
14297 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14299 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14300 hardcode_direct_F77=yes
14301 hardcode_minus_L_F77=yes
14302 hardcode_shlibpath_var_F77=no
14305 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14306 freebsd* | kfreebsd*-gnu | dragonfly*)
14307 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14308 hardcode_libdir_flag_spec_F77='-R$libdir'
14309 hardcode_direct_F77=yes
14310 hardcode_shlibpath_var_F77=no
14314 if test "$GCC" = yes; then
14315 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'
14317 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'
14319 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14320 hardcode_libdir_separator_F77=:
14321 hardcode_direct_F77=yes
14323 # hardcode_minus_L: Not really in the search PATH,
14324 # but as the default location of the library.
14325 hardcode_minus_L_F77=yes
14326 export_dynamic_flag_spec_F77='${wl}-E'
14330 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14331 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14333 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14335 if test "$with_gnu_ld" = no; then
14336 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14337 hardcode_libdir_separator_F77=:
14339 hardcode_direct_F77=yes
14340 export_dynamic_flag_spec_F77='${wl}-E'
14342 # hardcode_minus_L: Not really in the search PATH,
14343 # but as the default location of the library.
14344 hardcode_minus_L_F77=yes
14349 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14352 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14355 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14358 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14364 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14367 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14370 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14374 if test "$with_gnu_ld" = no; then
14375 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14376 hardcode_libdir_separator_F77=:
14380 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14381 hardcode_direct_F77=no
14382 hardcode_shlibpath_var_F77=no
14385 hardcode_direct_F77=yes
14386 export_dynamic_flag_spec_F77='${wl}-E'
14388 # hardcode_minus_L: Not really in the search PATH,
14389 # but as the default location of the library.
14390 hardcode_minus_L_F77=yes
14396 irix5* | irix6* | nonstopux*)
14397 if test "$GCC" = yes; then
14398 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'
14400 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'
14401 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14403 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14404 hardcode_libdir_separator_F77=:
14405 link_all_deplibs_F77=yes
14409 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14410 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14412 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14414 hardcode_libdir_flag_spec_F77='-R$libdir'
14415 hardcode_direct_F77=yes
14416 hardcode_shlibpath_var_F77=no
14420 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14421 hardcode_direct_F77=yes
14422 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14423 hardcode_libdir_separator_F77=:
14424 hardcode_shlibpath_var_F77=no
14428 hardcode_direct_F77=yes
14429 hardcode_shlibpath_var_F77=no
14430 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14431 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14432 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14433 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14434 export_dynamic_flag_spec_F77='${wl}-E'
14437 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14438 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14439 hardcode_libdir_flag_spec_F77='-R$libdir'
14442 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14443 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14450 hardcode_libdir_flag_spec_F77='-L$libdir'
14451 hardcode_minus_L_F77=yes
14452 allow_undefined_flag_F77=unsupported
14453 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'
14454 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14458 if test "$GCC" = yes; then
14459 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14460 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'
14462 allow_undefined_flag_F77=' -expect_unresolved \*'
14463 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'
14465 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14466 hardcode_libdir_separator_F77=:
14469 osf4* | osf5*) # as osf3* with the addition of -msym flag
14470 if test "$GCC" = yes; then
14471 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14472 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'
14473 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14475 allow_undefined_flag_F77=' -expect_unresolved \*'
14476 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'
14477 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~
14478 $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'
14480 # Both c and cxx compiler support -rpath directly
14481 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14483 hardcode_libdir_separator_F77=:
14487 no_undefined_flag_F77=' -z text'
14488 if test "$GCC" = yes; then
14490 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14491 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14492 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14495 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14496 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14497 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14499 hardcode_libdir_flag_spec_F77='-R$libdir'
14500 hardcode_shlibpath_var_F77=no
14502 solaris2.[0-5] | solaris2.[0-5].*) ;;
14504 # The compiler driver will combine linker options so we
14505 # cannot just pass the convience library names through
14506 # without $wl, iff we do not link with $LD.
14507 # Luckily, gcc supports the same syntax we need for Sun Studio.
14508 # Supported since Solaris 2.6 (maybe 2.5.1?)
14511 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14513 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' ;;
14516 link_all_deplibs_F77=yes
14520 if test "x$host_vendor" = xsequent; then
14521 # Use $CC to link under sequent, because it throws in some extra .o
14522 # files that make .init and .fini sections work.
14523 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14525 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14527 hardcode_libdir_flag_spec_F77='-L$libdir'
14528 hardcode_direct_F77=yes
14529 hardcode_minus_L_F77=yes
14530 hardcode_shlibpath_var_F77=no
14534 case $host_vendor in
14536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14537 hardcode_direct_F77=yes # is this really true???
14540 ## LD is ld it makes a PLAMLIB
14541 ## CC just makes a GrossModule.
14542 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14543 reload_cmds_F77='$CC -r -o $output$reload_objs'
14544 hardcode_direct_F77=no
14547 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14548 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14551 runpath_var='LD_RUN_PATH'
14552 hardcode_shlibpath_var_F77=no
14556 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14557 hardcode_shlibpath_var_F77=no
14558 export_dynamic_flag_spec_F77='-Bexport'
14562 if test -d /usr/nec; then
14563 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14564 hardcode_shlibpath_var_F77=no
14565 runpath_var=LD_RUN_PATH
14566 hardcode_runpath_var=yes
14571 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14572 no_undefined_flag_F77='${wl}-z,text'
14573 archive_cmds_need_lc_F77=no
14574 hardcode_shlibpath_var_F77=no
14575 runpath_var='LD_RUN_PATH'
14577 if test "$GCC" = yes; then
14578 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14579 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14581 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14582 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14586 sysv5* | sco3.2v5* | sco5v6*)
14587 # Note: We can NOT use -z defs as we might desire, because we do not
14588 # link with -lc, and that would cause any symbols used from libc to
14589 # always be unresolved, which means just about no library would
14590 # ever link correctly. If we're not using GNU ld we use -z text
14591 # though, which does catch some bad symbols but isn't as heavy-handed
14593 no_undefined_flag_F77='${wl}-z,text'
14594 allow_undefined_flag_F77='${wl}-z,nodefs'
14595 archive_cmds_need_lc_F77=no
14596 hardcode_shlibpath_var_F77=no
14597 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14598 hardcode_libdir_separator_F77=':'
14599 link_all_deplibs_F77=yes
14600 export_dynamic_flag_spec_F77='${wl}-Bexport'
14601 runpath_var='LD_RUN_PATH'
14603 if test "$GCC" = yes; then
14604 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14605 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14607 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14608 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14613 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14614 hardcode_libdir_flag_spec_F77='-L$libdir'
14615 hardcode_shlibpath_var_F77=no
14624 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14625 echo "${ECHO_T}$ld_shlibs_F77" >&6
14626 test "$ld_shlibs_F77" = no && can_build_shared=no
14629 # Do we need to explicitly link libc?
14631 case "x$archive_cmds_need_lc_F77" in
14633 # Assume -lc should be added
14634 archive_cmds_need_lc_F77=yes
14636 if test "$enable_shared" = yes && test "$GCC" = yes; then
14637 case $archive_cmds_F77 in
14639 # FIXME: we may have to deal with multi-command sequences.
14642 # Test whether the compiler implicitly links with -lc since on some
14643 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14644 # to ld, don't add -lc before -lgcc.
14645 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14646 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14648 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14651 (eval $ac_compile) 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } 2>conftest.err; then
14657 libobjs=conftest.$ac_objext
14659 wl=$lt_prog_compiler_wl_F77
14660 pic_flag=$lt_prog_compiler_pic_F77
14666 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14667 allow_undefined_flag_F77=
14668 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14669 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }
14674 archive_cmds_need_lc_F77=no
14676 archive_cmds_need_lc_F77=yes
14678 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14680 cat conftest.err 1>&5
14683 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14684 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14691 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14692 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14693 library_names_spec=
14694 libname_spec='lib$name'
14698 postuninstall_cmds=
14702 shlibpath_overrides_runpath=unknown
14704 dynamic_linker="$host_os ld.so"
14705 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14706 if test "$GCC" = yes; then
14707 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14708 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14709 # if the path contains ";" then we assume it to be the separator
14710 # otherwise default to the standard path separator (i.e. ":") - it is
14711 # assumed that no part of a normal pathname contains ";" but that should
14712 # okay in the real world where ";" in dirpaths is itself problematic.
14713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14718 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14720 need_lib_prefix=unknown
14721 hardcode_into_libs=no
14723 # when you set need_version to no, make sure it does not cause -set_version
14724 # flags to be left without arguments
14725 need_version=unknown
14730 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14731 shlibpath_var=LIBPATH
14733 # AIX 3 has no versioning support, so we append a major version to the name.
14734 soname_spec='${libname}${release}${shared_ext}$major'
14741 hardcode_into_libs=yes
14742 if test "$host_cpu" = ia64; then
14743 # AIX 5 supports IA64
14744 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14745 shlibpath_var=LD_LIBRARY_PATH
14747 # With GCC up to 2.95.x, collect2 would create an import file
14748 # for dependence libraries. The import file would start with
14749 # the line `#! .'. This would cause the generated library to
14750 # depend on `.', always an invalid library. This was fixed in
14751 # development snapshots of GCC prior to 3.0.
14753 aix4 | aix4.[01] | aix4.[01].*)
14754 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14756 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14759 can_build_shared=no
14763 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14764 # soname into executable. Probably we can add versioning support to
14765 # collect2, so additional links can be useful in future.
14766 if test "$aix_use_runtimelinking" = yes; then
14767 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14768 # instead of lib<name>.a to let people know that these are not
14769 # typical AIX shared libraries.
14770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772 # We preserve .a as extension for shared libraries through AIX4.2
14773 # and later when we are not doing run time linking.
14774 library_names_spec='${libname}${release}.a $libname.a'
14775 soname_spec='${libname}${release}${shared_ext}$major'
14777 shlibpath_var=LIBPATH
14782 library_names_spec='$libname.ixlibrary $libname.a'
14783 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14784 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'
14788 library_names_spec='${libname}${shared_ext}'
14789 dynamic_linker="$host_os ld.so"
14790 shlibpath_var=LIBRARY_PATH
14796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14797 soname_spec='${libname}${release}${shared_ext}$major'
14798 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14799 shlibpath_var=LD_LIBRARY_PATH
14800 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14801 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14802 # the default ld.so.conf also contains /usr/contrib/lib and
14803 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14804 # libtool to hard-code these into programs
14807 cygwin* | mingw* | pw32*)
14808 version_type=windows
14813 case $GCC,$host_os in
14814 yes,cygwin* | yes,mingw* | yes,pw32*)
14815 library_names_spec='$libname.dll.a'
14816 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14817 postinstall_cmds='base_file=`basename \${file}`~
14818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14819 dldir=$destdir/`dirname \$dlpath`~
14820 test -d \$dldir || mkdir -p \$dldir~
14821 $install_prog $dir/$dlname \$dldir/$dlname~
14822 chmod a+x \$dldir/$dlname'
14823 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14824 dlpath=$dir/\$dldll~
14826 shlibpath_overrides_runpath=yes
14830 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14831 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14832 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14835 # MinGW DLLs use traditional 'lib' prefix
14836 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14837 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14838 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14839 # It is most probably a Windows format PATH printed by
14840 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14841 # path with ; separators, and with drive letters. We can handle the
14842 # drive letters (cygwin fileutils understands them), so leave them,
14843 # especially as we might pass files found there to a mingw objdump,
14844 # which wouldn't understand a cygwinified path. Ahh.
14845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14851 # pw32 DLLs use 'pw' prefix rather than 'lib'
14852 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14858 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14861 dynamic_linker='Win32 ld.exe'
14862 # FIXME: first we should search . and the directory the executable is in
14866 darwin* | rhapsody*)
14867 dynamic_linker="$host_os dyld"
14868 version_type=darwin
14871 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14872 soname_spec='${libname}${release}${major}$shared_ext'
14873 shlibpath_overrides_runpath=yes
14874 shlibpath_var=DYLD_LIBRARY_PATH
14875 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14876 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14877 if test "$GCC" = yes; then
14878 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"`
14880 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14882 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14890 soname_spec='${libname}${release}${shared_ext}$major'
14891 shlibpath_var=LD_LIBRARY_PATH
14902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14903 soname_spec='${libname}${release}${shared_ext}$major'
14904 shlibpath_var=LD_LIBRARY_PATH
14905 shlibpath_overrides_runpath=no
14906 hardcode_into_libs=yes
14907 dynamic_linker='GNU ld.so'
14910 freebsd* | dragonfly*)
14911 # DragonFly does not have aout. When/if they implement a new
14912 # versioning mechanism, adjust this.
14913 if test -x /usr/bin/objformat; then
14914 objformat=`/usr/bin/objformat`
14917 freebsd[123]*) objformat=aout ;;
14918 *) objformat=elf ;;
14921 version_type=freebsd-$objformat
14922 case $version_type in
14924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14933 shlibpath_var=LD_LIBRARY_PATH
14936 shlibpath_overrides_runpath=yes
14938 freebsd3.[01]* | freebsdelf3.[01]*)
14939 shlibpath_overrides_runpath=yes
14940 hardcode_into_libs=yes
14942 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14943 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14944 shlibpath_overrides_runpath=no
14945 hardcode_into_libs=yes
14947 freebsd*) # from 4.6 on
14948 shlibpath_overrides_runpath=yes
14949 hardcode_into_libs=yes
14958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14959 soname_spec='${libname}${release}${shared_ext}$major'
14960 shlibpath_var=LD_LIBRARY_PATH
14961 hardcode_into_libs=yes
14964 hpux9* | hpux10* | hpux11*)
14965 # Give a soname corresponding to the major version so that dld.sl refuses to
14966 # link against other versions.
14973 hardcode_into_libs=yes
14974 dynamic_linker="$host_os dld.so"
14975 shlibpath_var=LD_LIBRARY_PATH
14976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14978 soname_spec='${libname}${release}${shared_ext}$major'
14979 if test "X$HPUX_IA64_MODE" = X32; then
14980 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14982 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14988 hardcode_into_libs=yes
14989 dynamic_linker="$host_os dld.sl"
14990 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14993 soname_spec='${libname}${release}${shared_ext}$major'
14994 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14999 dynamic_linker="$host_os dld.sl"
15000 shlibpath_var=SHLIB_PATH
15001 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15003 soname_spec='${libname}${release}${shared_ext}$major'
15006 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15007 postinstall_cmds='chmod 555 $lib'
15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15015 soname_spec='${libname}${release}${shared_ext}$major'
15016 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15017 shlibpath_var=LD_LIBRARY_PATH
15018 shlibpath_overrides_runpath=no
15019 hardcode_into_libs=yes
15022 irix5* | irix6* | nonstopux*)
15024 nonstopux*) version_type=nonstopux ;;
15026 if test "$lt_cv_prog_gnu_ld" = yes; then
15034 soname_spec='${libname}${release}${shared_ext}$major'
15035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15037 irix5* | nonstopux*)
15038 libsuff= shlibsuff=
15041 case $LD in # libtool.m4 will add one of these switches to LD
15042 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15043 libsuff= shlibsuff= libmagic=32-bit;;
15044 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15045 libsuff=32 shlibsuff=N32 libmagic=N32;;
15046 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15047 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15048 *) libsuff= shlibsuff= libmagic=never-match;;
15052 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15053 shlibpath_overrides_runpath=no
15054 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15055 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15056 hardcode_into_libs=yes
15059 # No shared lib support for Linux oldld, aout, or coff.
15060 linux*oldld* | linux*aout* | linux*coff*)
15064 # This must be Linux ELF.
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15070 soname_spec='${libname}${release}${shared_ext}$major'
15071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15072 shlibpath_var=LD_LIBRARY_PATH
15073 shlibpath_overrides_runpath=no
15074 # This implies no fast_install, which is unacceptable.
15075 # Some rework will be needed to allow for fast_install
15076 # before this can be enabled.
15077 hardcode_into_libs=yes
15079 # find out which ABI we are using
15081 case "$host_cpu" in
15082 x86_64*|s390x*|powerpc64*)
15083 echo '#line 15083 "configure"' > conftest.$ac_ext
15084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15085 (eval $ac_compile) 2>&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; then
15089 case `/usr/bin/file conftest.$ac_objext` in
15092 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15100 # Append ld.so.conf contents to the search path
15101 if test -f /etc/ld.so.conf; then
15102 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' ' '`
15103 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15106 # We used to test for /lib/ld.so.1 and disable shared libraries on
15107 # powerpc, because MkLinux only supported shared libraries with the
15108 # GNU dynamic linker. Since this was broken with cross compilers,
15109 # most powerpc-linux boxes support dynamic linking these days and
15110 # people can always --disable-shared, the test was removed, and we
15111 # assume the GNU/Linux dynamic linker is in use.
15112 dynamic_linker='GNU/Linux ld.so'
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15120 soname_spec='${libname}${release}${shared_ext}$major'
15121 shlibpath_var=LD_LIBRARY_PATH
15122 shlibpath_overrides_runpath=no
15123 hardcode_into_libs=yes
15124 dynamic_linker='GNU ld.so'
15131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15134 dynamic_linker='NetBSD (a.out) ld.so'
15136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15137 soname_spec='${libname}${release}${shared_ext}$major'
15138 dynamic_linker='NetBSD ld.elf_so'
15140 shlibpath_var=LD_LIBRARY_PATH
15141 shlibpath_overrides_runpath=yes
15142 hardcode_into_libs=yes
15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15148 shlibpath_var=LD_LIBRARY_PATH
15149 shlibpath_overrides_runpath=yes
15156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15157 soname_spec='${libname}${release}${shared_ext}$major'
15158 shlibpath_var=LD_LIBRARY_PATH
15159 shlibpath_overrides_runpath=yes
15164 sys_lib_dlsearch_path_spec="/usr/lib"
15166 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15168 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15169 *) need_version=no ;;
15171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15173 shlibpath_var=LD_LIBRARY_PATH
15174 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15176 openbsd2.[89] | openbsd2.[89].*)
15177 shlibpath_overrides_runpath=no
15180 shlibpath_overrides_runpath=yes
15184 shlibpath_overrides_runpath=yes
15189 libname_spec='$name'
15192 library_names_spec='$libname${shared_ext} $libname.a'
15193 dynamic_linker='OS/2 ld.exe'
15194 shlibpath_var=LIBPATH
15197 osf3* | osf4* | osf5*)
15201 soname_spec='${libname}${release}${shared_ext}$major'
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203 shlibpath_var=LD_LIBRARY_PATH
15204 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15205 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213 soname_spec='${libname}${release}${shared_ext}$major'
15214 shlibpath_var=LD_LIBRARY_PATH
15215 shlibpath_overrides_runpath=yes
15216 hardcode_into_libs=yes
15217 # ldd complains unless libraries are executable
15218 postinstall_cmds='chmod +x $lib'
15223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15224 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15225 shlibpath_var=LD_LIBRARY_PATH
15226 shlibpath_overrides_runpath=yes
15227 if test "$with_gnu_ld" = yes; then
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15236 soname_spec='${libname}${release}${shared_ext}$major'
15237 shlibpath_var=LD_LIBRARY_PATH
15238 case $host_vendor in
15240 shlibpath_overrides_runpath=no
15242 export_dynamic_flag_spec='${wl}-Blargedynsym'
15243 runpath_var=LD_RUN_PATH
15251 shlibpath_overrides_runpath=no
15252 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15258 if test -d /usr/nec ;then
15260 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15261 soname_spec='$libname${shared_ext}.$major'
15262 shlibpath_var=LD_LIBRARY_PATH
15266 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15267 version_type=freebsd-elf
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15271 soname_spec='${libname}${release}${shared_ext}$major'
15272 shlibpath_var=LD_LIBRARY_PATH
15273 hardcode_into_libs=yes
15274 if test "$with_gnu_ld" = yes; then
15275 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15276 shlibpath_overrides_runpath=no
15278 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15279 shlibpath_overrides_runpath=yes
15282 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15286 sys_lib_dlsearch_path_spec='/usr/lib'
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15292 soname_spec='${libname}${release}${shared_ext}$major'
15293 shlibpath_var=LD_LIBRARY_PATH
15300 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15301 echo "${ECHO_T}$dynamic_linker" >&6
15302 test "$dynamic_linker" = no && can_build_shared=no
15304 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15305 if test "$GCC" = yes; then
15306 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15309 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15310 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15311 hardcode_action_F77=
15312 if test -n "$hardcode_libdir_flag_spec_F77" || \
15313 test -n "$runpath_var_F77" || \
15314 test "X$hardcode_automatic_F77" = "Xyes" ; then
15316 # We can hardcode non-existant directories.
15317 if test "$hardcode_direct_F77" != no &&
15318 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15319 # have to relink, otherwise we might link with an installed library
15320 # when we should be linking with a yet-to-be-installed one
15321 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15322 test "$hardcode_minus_L_F77" != no; then
15323 # Linking always hardcodes the temporary library directory.
15324 hardcode_action_F77=relink
15326 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15327 hardcode_action_F77=immediate
15330 # We cannot hardcode anything, or else we can only hardcode existing
15332 hardcode_action_F77=unsupported
15334 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15335 echo "${ECHO_T}$hardcode_action_F77" >&6
15337 if test "$hardcode_action_F77" = relink; then
15338 # Fast installation is not supported
15339 enable_fast_install=no
15340 elif test "$shlibpath_overrides_runpath" = yes ||
15341 test "$enable_shared" = no; then
15342 # Fast installation is not necessary
15343 enable_fast_install=needless
15347 # The else clause should only fire when bootstrapping the
15348 # libtool distribution, otherwise you forgot to ship ltmain.sh
15349 # with your package, and you will get complaints that there are
15350 # no rules to generate ltmain.sh.
15351 if test -f "$ltmain"; then
15352 # See if we are running on zsh, and set the options which allow our commands through
15353 # without removal of \ escapes.
15354 if test -n "${ZSH_VERSION+set}" ; then
15355 setopt NO_GLOB_SUBST
15357 # Now quote all the things that may contain metacharacters while being
15358 # careful not to overquote the AC_SUBSTed values. We take copies of the
15359 # variables and quote the copies for generation of the libtool script.
15360 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15362 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15363 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15364 deplibs_check_method reload_flag reload_cmds need_locks \
15365 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15366 lt_cv_sys_global_symbol_to_c_name_address \
15367 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15368 old_postinstall_cmds old_postuninstall_cmds \
15372 lt_prog_compiler_wl_F77 \
15373 lt_prog_compiler_pic_F77 \
15374 lt_prog_compiler_static_F77 \
15375 lt_prog_compiler_no_builtin_flag_F77 \
15376 export_dynamic_flag_spec_F77 \
15377 thread_safe_flag_spec_F77 \
15378 whole_archive_flag_spec_F77 \
15379 enable_shared_with_static_runtimes_F77 \
15380 old_archive_cmds_F77 \
15381 old_archive_from_new_cmds_F77 \
15382 predep_objects_F77 \
15383 postdep_objects_F77 \
15386 compiler_lib_search_path_F77 \
15388 archive_expsym_cmds_F77 \
15389 postinstall_cmds_F77 \
15390 postuninstall_cmds_F77 \
15391 old_archive_from_expsyms_cmds_F77 \
15392 allow_undefined_flag_F77 \
15393 no_undefined_flag_F77 \
15394 export_symbols_cmds_F77 \
15395 hardcode_libdir_flag_spec_F77 \
15396 hardcode_libdir_flag_spec_ld_F77 \
15397 hardcode_libdir_separator_F77 \
15398 hardcode_automatic_F77 \
15400 module_expsym_cmds_F77 \
15401 lt_cv_prog_compiler_c_o_F77 \
15402 exclude_expsyms_F77 \
15403 include_expsyms_F77; do
15406 old_archive_cmds_F77 | \
15407 old_archive_from_new_cmds_F77 | \
15408 archive_cmds_F77 | \
15409 archive_expsym_cmds_F77 | \
15410 module_cmds_F77 | \
15411 module_expsym_cmds_F77 | \
15412 old_archive_from_expsyms_cmds_F77 | \
15413 export_symbols_cmds_F77 | \
15414 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15415 postinstall_cmds | postuninstall_cmds | \
15416 old_postinstall_cmds | old_postuninstall_cmds | \
15417 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15418 # Double-quote double-evaled strings.
15419 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15422 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15428 *'\$0 --fallback-echo"')
15429 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15435 cat <<__EOF__ >> "$cfgfile"
15436 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15438 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15440 # Shell to use when invoking shell scripts.
15443 # Whether or not to build shared libraries.
15444 build_libtool_libs=$enable_shared
15446 # Whether or not to build static libraries.
15447 build_old_libs=$enable_static
15449 # Whether or not to add -lc for building shared libraries.
15450 build_libtool_need_lc=$archive_cmds_need_lc_F77
15452 # Whether or not to disallow shared libs when runtime libs are static
15453 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15455 # Whether or not to optimize for fast installation.
15456 fast_install=$enable_fast_install
15459 host_alias=$host_alias
15463 # The build system.
15464 build_alias=$build_alias
15468 # An echo program that does not interpret backslashes.
15473 AR_FLAGS=$lt_AR_FLAGS
15478 # LTCC compiler flags.
15479 LTCFLAGS=$lt_LTCFLAGS
15481 # A language-specific compiler.
15482 CC=$lt_compiler_F77
15484 # Is the compiler the GNU C compiler?
15487 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15488 gcc_ver=\`gcc -dumpversion\`
15493 # The linker used to build libraries.
15496 # Whether we need hard or soft links.
15499 # A BSD-compatible nm program.
15502 # A symbol stripping program
15505 # Used to examine libraries when file_magic_cmd begins "file"
15506 MAGIC_CMD=$MAGIC_CMD
15508 # Used on cygwin: DLL creation program.
15511 # Used on cygwin: object dumper.
15514 # Used on cygwin: assembler.
15517 # The name of the directory that contains temporary libtool files.
15520 # How to create reloadable object files.
15521 reload_flag=$lt_reload_flag
15522 reload_cmds=$lt_reload_cmds
15524 # How to pass a linker flag through the compiler.
15525 wl=$lt_lt_prog_compiler_wl_F77
15527 # Object file suffix (normally "o").
15528 objext="$ac_objext"
15530 # Old archive suffix (normally "a").
15533 # Shared library suffix (normally ".so").
15534 shrext_cmds='$shrext_cmds'
15536 # Executable file suffix (normally "").
15539 # Additional compiler flags for building library objects.
15540 pic_flag=$lt_lt_prog_compiler_pic_F77
15543 # What is the maximum length of a command?
15544 max_cmd_len=$lt_cv_sys_max_cmd_len
15546 # Does compiler simultaneously support -c and -o options?
15547 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15549 # Must we lock files when doing compilation?
15550 need_locks=$lt_need_locks
15552 # Do we need the lib prefix for modules?
15553 need_lib_prefix=$need_lib_prefix
15555 # Do we need a version for libraries?
15556 need_version=$need_version
15558 # Whether dlopen is supported.
15559 dlopen_support=$enable_dlopen
15561 # Whether dlopen of programs is supported.
15562 dlopen_self=$enable_dlopen_self
15564 # Whether dlopen of statically linked programs is supported.
15565 dlopen_self_static=$enable_dlopen_self_static
15567 # Compiler flag to prevent dynamic linking.
15568 link_static_flag=$lt_lt_prog_compiler_static_F77
15570 # Compiler flag to turn off builtin functions.
15571 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15573 # Compiler flag to allow reflexive dlopens.
15574 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15576 # Compiler flag to generate shared objects directly from archives.
15577 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15579 # Compiler flag to generate thread-safe objects.
15580 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15582 # Library versioning type.
15583 version_type=$version_type
15585 # Format of library name prefix.
15586 libname_spec=$lt_libname_spec
15588 # List of archive names. First name is the real one, the rest are links.
15589 # The last name is the one that the linker finds with -lNAME.
15590 library_names_spec=$lt_library_names_spec
15592 # The coded name of the library, if different from the real name.
15593 soname_spec=$lt_soname_spec
15595 # Commands used to build and install an old-style archive.
15597 old_archive_cmds=$lt_old_archive_cmds_F77
15598 old_postinstall_cmds=$lt_old_postinstall_cmds
15599 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15601 # Create an old-style archive from a shared archive.
15602 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15604 # Create a temporary old-style archive to link instead of a shared archive.
15605 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15607 # Commands used to build and install a shared archive.
15608 archive_cmds=$lt_archive_cmds_F77
15609 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15610 postinstall_cmds=$lt_postinstall_cmds
15611 postuninstall_cmds=$lt_postuninstall_cmds
15613 # Commands used to build a loadable module (assumed same as above if empty)
15614 module_cmds=$lt_module_cmds_F77
15615 module_expsym_cmds=$lt_module_expsym_cmds_F77
15617 # Commands to strip libraries.
15618 old_striplib=$lt_old_striplib
15619 striplib=$lt_striplib
15621 # Dependencies to place before the objects being linked to create a
15623 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15625 # Dependencies to place after the objects being linked to create a
15627 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15629 # Dependencies to place before the objects being linked to create a
15631 predeps=$lt_predeps_F77
15633 # Dependencies to place after the objects being linked to create a
15635 postdeps=$lt_postdeps_F77
15637 # The library search path used internally by the compiler when linking
15638 # a shared library.
15639 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"\`
15641 # Method to check whether dependent libraries are shared objects.
15642 deplibs_check_method=$lt_deplibs_check_method
15644 # Command to use when deplibs_check_method == file_magic.
15645 file_magic_cmd=$lt_file_magic_cmd
15647 # Flag that allows shared libraries with undefined symbols to be built.
15648 allow_undefined_flag=$lt_allow_undefined_flag_F77
15650 # Flag that forces no undefined symbols.
15651 no_undefined_flag=$lt_no_undefined_flag_F77
15653 # Commands used to finish a libtool library installation in a directory.
15654 finish_cmds=$lt_finish_cmds
15656 # Same as above, but a single script fragment to be evaled but not shown.
15657 finish_eval=$lt_finish_eval
15659 # Take the output of nm and produce a listing of raw symbols and C names.
15660 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15662 # Transform the output of nm in a proper C declaration
15663 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15665 # Transform the output of nm in a C name address pair
15666 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15668 # This is the shared library runtime path variable.
15669 runpath_var=$runpath_var
15671 # This is the shared library path variable.
15672 shlibpath_var=$shlibpath_var
15674 # Is shlibpath searched before the hard-coded library search path?
15675 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15677 # How to hardcode a shared library path into an executable.
15678 hardcode_action=$hardcode_action_F77
15680 # Whether we should hardcode library paths into libraries.
15681 hardcode_into_libs=$hardcode_into_libs
15683 # Flag to hardcode \$libdir into a binary during linking.
15684 # This must work even if \$libdir does not exist.
15685 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15687 # If ld is used when linking, flag to hardcode \$libdir into
15688 # a binary during linking. This must work even if \$libdir does
15690 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15692 # Whether we need a single -rpath flag with a separated argument.
15693 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15695 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15696 # resulting binary.
15697 hardcode_direct=$hardcode_direct_F77
15699 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15700 # resulting binary.
15701 hardcode_minus_L=$hardcode_minus_L_F77
15703 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15704 # the resulting binary.
15705 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15707 # Set to yes if building a shared library automatically hardcodes DIR into the library
15708 # and all subsequent libraries and executables linked against it.
15709 hardcode_automatic=$hardcode_automatic_F77
15711 # Variables whose values should be saved in libtool wrapper scripts and
15712 # restored at relink time.
15713 variables_saved_for_relink="$variables_saved_for_relink"
15715 # Whether libtool must link a program against all its dependency libraries.
15716 link_all_deplibs=$link_all_deplibs_F77
15718 # Compile-time system search path for libraries
15719 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"\`
15721 # Run-time system search path for libraries
15722 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15724 # Fix the shell variable \$srcfile for the compiler.
15725 fix_srcfile_path="$fix_srcfile_path_F77"
15727 # Set to yes if exported symbols are required.
15728 always_export_symbols=$always_export_symbols_F77
15730 # The commands to list exported symbols.
15731 export_symbols_cmds=$lt_export_symbols_cmds_F77
15733 # The commands to extract the exported symbol list from a shared archive.
15734 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15736 # Symbols that should not be listed in the preloaded symbols.
15737 exclude_expsyms=$lt_exclude_expsyms_F77
15739 # Symbols that must always be exported.
15740 include_expsyms=$lt_include_expsyms_F77
15742 # ### END LIBTOOL TAG CONFIG: $tagname
15748 # If there is no Makefile yet, we rely on a make rule to execute
15749 # `config.status --recheck' to rerun these tests and create the
15750 # libtool script then.
15751 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15752 if test -f "$ltmain_in"; then
15753 test -f Makefile && make "$ltmain"
15759 ac_cpp='$CPP $CPPFLAGS'
15760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15772 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15776 # Source file extension for Java test sources.
15779 # Object file extension for compiled Java test sources.
15783 # Code to be used in simple compile tests
15784 lt_simple_compile_test_code="class foo {}\n"
15786 # Code to be used in simple link tests
15787 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15789 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15791 # If no C compiler was specified, use CC.
15794 # If no C compiler flags were specified, use CFLAGS.
15795 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15797 # Allow CC to be a program name with arguments.
15801 # save warnings/boilerplate of simple test code
15802 ac_outfile=conftest.$ac_objext
15803 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15804 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15805 _lt_compiler_boilerplate=`cat conftest.err`
15808 ac_outfile=conftest.$ac_objext
15809 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15810 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15811 _lt_linker_boilerplate=`cat conftest.err`
15815 # Allow CC to be a program name with arguments.
15820 for cc_temp in $compiler""; do
15822 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15823 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15828 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15831 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15832 archive_cmds_need_lc_GCJ=no
15834 old_archive_cmds_GCJ=$old_archive_cmds
15837 lt_prog_compiler_no_builtin_flag_GCJ=
15839 if test "$GCC" = yes; then
15840 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15843 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15844 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15845 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15846 echo $ECHO_N "(cached) $ECHO_C" >&6
15848 lt_cv_prog_compiler_rtti_exceptions=no
15849 ac_outfile=conftest.$ac_objext
15850 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15851 lt_compiler_flag="-fno-rtti -fno-exceptions"
15852 # Insert the option either (1) after the last *FLAGS variable, or
15853 # (2) before a word containing "conftest.", or (3) at the end.
15854 # Note that $ac_compile itself does not contain backslashes and begins
15855 # with a dollar sign (not a hyphen), so the echo should work correctly.
15856 # The option is referenced via a variable to avoid confusing sed.
15857 lt_compile=`echo "$ac_compile" | $SED \
15858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15860 -e 's:$: $lt_compiler_flag:'`
15861 (eval echo "\"\$as_me:15861: $lt_compile\"" >&5)
15862 (eval "$lt_compile" 2>conftest.err)
15864 cat conftest.err >&5
15865 echo "$as_me:15865: \$? = $ac_status" >&5
15866 if (exit $ac_status) && test -s "$ac_outfile"; then
15867 # The compiler can only warn and ignore the option if not recognized
15868 # So say no if there are warnings other than the usual output.
15869 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15871 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15872 lt_cv_prog_compiler_rtti_exceptions=yes
15878 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15879 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15881 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15882 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15889 lt_prog_compiler_wl_GCJ=
15890 lt_prog_compiler_pic_GCJ=
15891 lt_prog_compiler_static_GCJ=
15893 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15894 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15896 if test "$GCC" = yes; then
15897 lt_prog_compiler_wl_GCJ='-Wl,'
15898 lt_prog_compiler_static_GCJ='-static'
15902 # All AIX code is PIC.
15903 if test "$host_cpu" = ia64; then
15904 # AIX 5 now supports IA64 processor
15905 lt_prog_compiler_static_GCJ='-Bstatic'
15910 # FIXME: we need at least 68020 code to build shared libraries, but
15911 # adding the `-m68020' flag to GCC prevents building anything better,
15913 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15916 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15917 # PIC is the default for these OSes.
15920 mingw* | pw32* | os2*)
15921 # This hack is so that the source file can tell whether it is being
15922 # built for inclusion in a dll (and should export symbols for example).
15923 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15926 darwin* | rhapsody*)
15927 # PIC is the default on this platform
15928 # Common symbols not allowed in MH_DYLIB files
15929 lt_prog_compiler_pic_GCJ='-fno-common'
15933 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15934 # Instead, we relocate shared libraries at runtime.
15938 # Just because we use GCC doesn't mean we suddenly get shared libraries
15939 # on systems that don't support them.
15940 lt_prog_compiler_can_build_shared_GCJ=no
15945 if test -d /usr/nec; then
15946 lt_prog_compiler_pic_GCJ=-Kconform_pic
15951 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15952 # not for PA HP-UX.
15958 lt_prog_compiler_pic_GCJ='-fPIC'
15964 lt_prog_compiler_pic_GCJ='-fPIC'
15968 # PORTME Check for flag to pass linker flags through the system compiler.
15971 lt_prog_compiler_wl_GCJ='-Wl,'
15972 if test "$host_cpu" = ia64; then
15973 # AIX 5 now supports IA64 processor
15974 lt_prog_compiler_static_GCJ='-Bstatic'
15976 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15980 # PIC is the default on this platform
15981 # Common symbols not allowed in MH_DYLIB files
15982 case $cc_basename in
15984 lt_prog_compiler_pic_GCJ='-qnocommon'
15985 lt_prog_compiler_wl_GCJ='-Wl,'
15990 mingw* | pw32* | os2*)
15991 # This hack is so that the source file can tell whether it is being
15992 # built for inclusion in a dll (and should export symbols for example).
15993 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15996 hpux9* | hpux10* | hpux11*)
15997 lt_prog_compiler_wl_GCJ='-Wl,'
15998 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15999 # not for PA HP-UX.
16005 lt_prog_compiler_pic_GCJ='+Z'
16008 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16009 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16012 irix5* | irix6* | nonstopux*)
16013 lt_prog_compiler_wl_GCJ='-Wl,'
16014 # PIC (with -KPIC) is the default.
16015 lt_prog_compiler_static_GCJ='-non_shared'
16019 lt_prog_compiler_pic_GCJ='-KPIC'
16020 lt_prog_compiler_static_GCJ='-Bstatic'
16024 case $cc_basename in
16026 lt_prog_compiler_wl_GCJ='-Wl,'
16027 lt_prog_compiler_pic_GCJ='-KPIC'
16028 lt_prog_compiler_static_GCJ='-static'
16030 pgcc* | pgf77* | pgf90* | pgf95*)
16031 # Portland Group compilers (*not* the Pentium gcc compiler,
16032 # which looks to be a dead project)
16033 lt_prog_compiler_wl_GCJ='-Wl,'
16034 lt_prog_compiler_pic_GCJ='-fpic'
16035 lt_prog_compiler_static_GCJ='-Bstatic'
16038 lt_prog_compiler_wl_GCJ='-Wl,'
16039 # All Alpha code is PIC.
16040 lt_prog_compiler_static_GCJ='-non_shared'
16045 osf3* | osf4* | osf5*)
16046 lt_prog_compiler_wl_GCJ='-Wl,'
16047 # All OSF/1 code is PIC.
16048 lt_prog_compiler_static_GCJ='-non_shared'
16052 lt_prog_compiler_pic_GCJ='-KPIC'
16053 lt_prog_compiler_static_GCJ='-Bstatic'
16054 case $cc_basename in
16055 f77* | f90* | f95*)
16056 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16058 lt_prog_compiler_wl_GCJ='-Wl,';;
16063 lt_prog_compiler_wl_GCJ='-Qoption ld '
16064 lt_prog_compiler_pic_GCJ='-PIC'
16065 lt_prog_compiler_static_GCJ='-Bstatic'
16068 sysv4 | sysv4.2uw2* | sysv4.3*)
16069 lt_prog_compiler_wl_GCJ='-Wl,'
16070 lt_prog_compiler_pic_GCJ='-KPIC'
16071 lt_prog_compiler_static_GCJ='-Bstatic'
16075 if test -d /usr/nec ;then
16076 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16077 lt_prog_compiler_static_GCJ='-Bstatic'
16081 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16082 lt_prog_compiler_wl_GCJ='-Wl,'
16083 lt_prog_compiler_pic_GCJ='-KPIC'
16084 lt_prog_compiler_static_GCJ='-Bstatic'
16088 lt_prog_compiler_wl_GCJ='-Wl,'
16089 lt_prog_compiler_can_build_shared_GCJ=no
16093 lt_prog_compiler_pic_GCJ='-pic'
16094 lt_prog_compiler_static_GCJ='-Bstatic'
16098 lt_prog_compiler_can_build_shared_GCJ=no
16103 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16104 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16107 # Check to make sure the PIC flag actually works.
16109 if test -n "$lt_prog_compiler_pic_GCJ"; then
16111 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16112 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16113 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16116 lt_prog_compiler_pic_works_GCJ=no
16117 ac_outfile=conftest.$ac_objext
16118 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16119 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16120 # Insert the option either (1) after the last *FLAGS variable, or
16121 # (2) before a word containing "conftest.", or (3) at the end.
16122 # Note that $ac_compile itself does not contain backslashes and begins
16123 # with a dollar sign (not a hyphen), so the echo should work correctly.
16124 # The option is referenced via a variable to avoid confusing sed.
16125 lt_compile=`echo "$ac_compile" | $SED \
16126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16128 -e 's:$: $lt_compiler_flag:'`
16129 (eval echo "\"\$as_me:16129: $lt_compile\"" >&5)
16130 (eval "$lt_compile" 2>conftest.err)
16132 cat conftest.err >&5
16133 echo "$as_me:16133: \$? = $ac_status" >&5
16134 if (exit $ac_status) && test -s "$ac_outfile"; then
16135 # The compiler can only warn and ignore the option if not recognized
16136 # So say no if there are warnings other than the usual output.
16137 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16140 lt_prog_compiler_pic_works_GCJ=yes
16146 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16147 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16149 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16150 case $lt_prog_compiler_pic_GCJ in
16152 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16155 lt_prog_compiler_pic_GCJ=
16156 lt_prog_compiler_can_build_shared_GCJ=no
16161 # For platforms which do not support PIC, -DPIC is meaningless:
16163 lt_prog_compiler_pic_GCJ=
16166 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16171 # Check to make sure the static flag actually works.
16173 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16174 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16175 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16176 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
16179 lt_prog_compiler_static_works_GCJ=no
16180 save_LDFLAGS="$LDFLAGS"
16181 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16182 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16184 # The linker can only warn and ignore the option if not recognized
16185 # So say no if there are warnings
16186 if test -s conftest.err; then
16187 # Append any errors to the config.log.
16188 cat conftest.err 1>&5
16189 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16191 if diff conftest.exp conftest.er2 >/dev/null; then
16192 lt_prog_compiler_static_works_GCJ=yes
16195 lt_prog_compiler_static_works_GCJ=yes
16199 LDFLAGS="$save_LDFLAGS"
16202 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16203 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16205 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16208 lt_prog_compiler_static_GCJ=
16212 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16213 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16214 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 lt_cv_prog_compiler_c_o_GCJ=no
16218 $rm -r conftest 2>/dev/null
16222 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16224 lt_compiler_flag="-o out/conftest2.$ac_objext"
16225 # Insert the option either (1) after the last *FLAGS variable, or
16226 # (2) before a word containing "conftest.", or (3) at the end.
16227 # Note that $ac_compile itself does not contain backslashes and begins
16228 # with a dollar sign (not a hyphen), so the echo should work correctly.
16229 lt_compile=`echo "$ac_compile" | $SED \
16230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16232 -e 's:$: $lt_compiler_flag:'`
16233 (eval echo "\"\$as_me:16233: $lt_compile\"" >&5)
16234 (eval "$lt_compile" 2>out/conftest.err)
16236 cat out/conftest.err >&5
16237 echo "$as_me:16237: \$? = $ac_status" >&5
16238 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16240 # The compiler can only warn and ignore the option if not recognized
16241 # So say no if there are warnings
16242 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16243 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16244 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16245 lt_cv_prog_compiler_c_o_GCJ=yes
16250 # SGI C++ compiler will create directory out/ii_files/ for
16251 # template instantiation
16252 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16253 $rm out/* && rmdir out
16259 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16260 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16263 hard_links="nottested"
16264 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16265 # do not overwrite the value of need_locks provided by the user
16266 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16267 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16270 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16272 ln conftest.a conftest.b 2>&5 || hard_links=no
16273 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16274 echo "$as_me:$LINENO: result: $hard_links" >&5
16275 echo "${ECHO_T}$hard_links" >&6
16276 if test "$hard_links" = no; then
16277 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16278 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16285 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16286 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16289 allow_undefined_flag_GCJ=
16290 enable_shared_with_static_runtimes_GCJ=no
16292 archive_expsym_cmds_GCJ=
16293 old_archive_From_new_cmds_GCJ=
16294 old_archive_from_expsyms_cmds_GCJ=
16295 export_dynamic_flag_spec_GCJ=
16296 whole_archive_flag_spec_GCJ=
16297 thread_safe_flag_spec_GCJ=
16298 hardcode_libdir_flag_spec_GCJ=
16299 hardcode_libdir_flag_spec_ld_GCJ=
16300 hardcode_libdir_separator_GCJ=
16301 hardcode_direct_GCJ=no
16302 hardcode_minus_L_GCJ=no
16303 hardcode_shlibpath_var_GCJ=unsupported
16304 link_all_deplibs_GCJ=unknown
16305 hardcode_automatic_GCJ=no
16307 module_expsym_cmds_GCJ=
16308 always_export_symbols_GCJ=no
16309 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16310 # include_expsyms should be a list of space-separated symbols to be *always*
16311 # included in the symbol list
16312 include_expsyms_GCJ=
16313 # exclude_expsyms can be an extended regexp of symbols to exclude
16314 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16315 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16316 # as well as any symbol that contains `d'.
16317 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16318 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16319 # platforms (ab)use it in PIC code, but their linkers get confused if
16320 # the symbol is explicitly referenced. Since portable code cannot
16321 # rely on this symbol name, it's probably fine to never include it in
16322 # preloaded symbol tables.
16323 extract_expsyms_cmds=
16324 # Just being paranoid about ensuring that cc_basename is set.
16325 for cc_temp in $compiler""; do
16327 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16328 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16333 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16336 cygwin* | mingw* | pw32*)
16337 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16338 # When not using gcc, we currently assume that we are using
16339 # Microsoft Visual C++.
16340 if test "$GCC" != yes; then
16345 # we just hope/assume this is gcc and not c89 (= MSVC++)
16354 if test "$with_gnu_ld" = yes; then
16355 # If archive_cmds runs LD, not CC, wlarc should be empty
16358 # Set some defaults for GNU ld with shared library support. These
16359 # are reset later if shared libraries are not supported. Putting them
16360 # here allows them to be overridden if necessary.
16361 runpath_var=LD_RUN_PATH
16362 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16363 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16364 # ancient GNU ld didn't support --whole-archive et. al.
16365 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16366 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16368 whole_archive_flag_spec_GCJ=
16370 supports_anon_versioning=no
16371 case `$LD -v 2>/dev/null` in
16372 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16373 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16374 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16375 *\ 2.11.*) ;; # other 2.11 versions
16376 *) supports_anon_versioning=yes ;;
16379 # See if GNU ld supports shared libraries.
16381 aix3* | aix4* | aix5*)
16382 # On AIX/PPC, the GNU linker is very broken
16383 if test "$host_cpu" != ia64; then
16387 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16388 *** to be unable to reliably create shared libraries on AIX.
16389 *** Therefore, libtool is disabling shared libraries support. If you
16390 *** really care for shared libraries, you may want to modify your PATH
16391 *** so that a non-GNU linker is found, and then restart.
16398 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)'
16399 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16400 hardcode_minus_L_GCJ=yes
16402 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16403 # that the semantics of dynamic libraries on AmigaOS, at least up
16404 # to version 4, is to share data among multiple programs linked
16405 # with the same dynamic library. Since this doesn't match the
16406 # behavior of shared libraries on other platforms, we can't use
16412 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16413 allow_undefined_flag_GCJ=unsupported
16414 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16415 # support --undefined. This deserves some investigation. FIXME
16416 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16422 cygwin* | mingw* | pw32*)
16423 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16424 # as there is no search path for DLLs.
16425 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16426 allow_undefined_flag_GCJ=unsupported
16427 always_export_symbols_GCJ=no
16428 enable_shared_with_static_runtimes_GCJ=yes
16429 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16431 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16432 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16433 # If the export-symbols file already is a .def file (1st line
16434 # is EXPORTS), use it as is; otherwise, prepend...
16435 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16436 cp $export_symbols $output_objdir/$soname.def;
16438 echo EXPORTS > $output_objdir/$soname.def;
16439 cat $export_symbols >> $output_objdir/$soname.def;
16441 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16448 hardcode_direct_GCJ=no
16449 hardcode_shlibpath_var_GCJ=no
16450 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16451 export_dynamic_flag_spec_GCJ='${wl}-E'
16452 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16453 # Instead, shared libraries are loaded at an image base (0x10000000 by
16454 # default) and relocated if they conflict, which is a slow very memory
16455 # consuming and fragmenting process. To avoid this, we pick a random,
16456 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16457 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16458 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'
16459 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'
16463 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16465 case $cc_basename,$host_cpu in
16466 pgcc*) # Portland Group C compiler
16467 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'
16468 tmp_addflag=' $pic_flag'
16470 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16471 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'
16472 tmp_addflag=' $pic_flag -Mnomain' ;;
16473 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16474 tmp_addflag=' -i_dynamic' ;;
16475 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16476 tmp_addflag=' -i_dynamic -nofor_main' ;;
16477 ifc* | ifort*) # Intel Fortran compiler
16478 tmp_addflag=' -nofor_main' ;;
16480 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16482 if test $supports_anon_versioning = yes; then
16483 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16484 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16485 $echo "local: *; };" >> $output_objdir/$libname.ver~
16486 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16494 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16495 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16498 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16499 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16504 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16508 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16509 *** create shared libraries on Solaris systems. Therefore, libtool
16510 *** is disabling shared libraries support. We urge you to upgrade GNU
16511 *** binutils to release 2.9.1 or newer. Another option is to modify
16512 *** your PATH or compiler configuration so that the native linker is
16513 *** used, and then restart.
16516 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16517 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16518 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16525 case `$LD -v 2>&1` in
16526 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16530 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16531 *** reliably create shared libraries on SCO systems. Therefore, libtool
16532 *** is disabling shared libraries support. We urge you to upgrade GNU
16533 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16534 *** your PATH or compiler configuration so that the native linker is
16535 *** used, and then restart.
16540 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16541 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16542 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16543 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16552 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16554 hardcode_direct_GCJ=yes
16555 hardcode_shlibpath_var_GCJ=no
16559 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16560 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16561 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16568 if test "$ld_shlibs_GCJ" = no; then
16570 hardcode_libdir_flag_spec_GCJ=
16571 export_dynamic_flag_spec_GCJ=
16572 whole_archive_flag_spec_GCJ=
16575 # PORTME fill in a description of your system's linker (not GNU ld)
16578 allow_undefined_flag_GCJ=unsupported
16579 always_export_symbols_GCJ=yes
16580 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'
16581 # Note: this linker hardcodes the directories in LIBPATH if there
16582 # are no directories specified by -L.
16583 hardcode_minus_L_GCJ=yes
16584 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16585 # Neither direct hardcoding nor static linking is supported with a
16587 hardcode_direct_GCJ=unsupported
16592 if test "$host_cpu" = ia64; then
16593 # On IA64, the linker does run time linking by default, so we don't
16594 # have to do anything special.
16595 aix_use_runtimelinking=no
16596 exp_sym_flag='-Bexport'
16599 # If we're using GNU nm, then we don't want the "-C" option.
16600 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16601 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16602 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'
16604 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'
16606 aix_use_runtimelinking=no
16608 # Test if we are trying to use run time linking or normal
16609 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16610 # need to do runtime linking.
16611 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16612 for ld_flag in $LDFLAGS; do
16613 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16614 aix_use_runtimelinking=yes
16621 exp_sym_flag='-bexport'
16622 no_entry_flag='-bnoentry'
16625 # When large executables or shared objects are built, AIX ld can
16626 # have problems creating the table of contents. If linking a library
16627 # or program results in "error TOC overflow" add -mminimal-toc to
16628 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16629 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16631 archive_cmds_GCJ=''
16632 hardcode_direct_GCJ=yes
16633 hardcode_libdir_separator_GCJ=':'
16634 link_all_deplibs_GCJ=yes
16636 if test "$GCC" = yes; then
16637 case $host_os in aix4.[012]|aix4.[012].*)
16638 # We only want to do this on AIX 4.2 and lower, the check
16639 # below for broken collect2 doesn't work under 4.3+
16640 collect2name=`${CC} -print-prog-name=collect2`
16641 if test -f "$collect2name" && \
16642 strings "$collect2name" | grep resolve_lib_name >/dev/null
16644 # We have reworked collect2
16645 hardcode_direct_GCJ=yes
16647 # We have old collect2
16648 hardcode_direct_GCJ=unsupported
16649 # It fails to find uninstalled libraries when the uninstalled
16650 # path is not listed in the libpath. Setting hardcode_minus_L
16651 # to unsupported forces relinking
16652 hardcode_minus_L_GCJ=yes
16653 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16654 hardcode_libdir_separator_GCJ=
16658 shared_flag='-shared'
16659 if test "$aix_use_runtimelinking" = yes; then
16660 shared_flag="$shared_flag "'${wl}-G'
16664 if test "$host_cpu" = ia64; then
16665 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16666 # chokes on -Wl,-G. The following line is correct:
16669 if test "$aix_use_runtimelinking" = yes; then
16670 shared_flag='${wl}-G'
16672 shared_flag='${wl}-bM:SRE'
16677 # It seems that -bexpall does not export symbols beginning with
16678 # underscore (_), so it is better to generate a list of symbols to export.
16679 always_export_symbols_GCJ=yes
16680 if test "$aix_use_runtimelinking" = yes; then
16681 # Warning - without using the other runtime loading flags (-brtl),
16682 # -berok will link without error, but may produce a broken library.
16683 allow_undefined_flag_GCJ='-berok'
16684 # Determine the default libpath from the value encoded in an empty executable.
16685 cat >conftest.$ac_ext <<_ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h. */
16700 rm -f conftest.$ac_objext conftest$ac_exeext
16701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16702 (eval $ac_link) 2>conftest.er1
16704 grep -v '^ *+' conftest.er1 >conftest.err
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
16709 { ac_try='test -z "$ac_c_werror_flag"
16710 || test ! -s conftest.err'
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest$ac_exeext'
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; }; then
16723 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16725 # Check for a 64-bit object if we didn't find anything.
16726 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; }
16729 echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.$ac_ext >&5
16733 rm -f conftest.err conftest.$ac_objext \
16734 conftest$ac_exeext conftest.$ac_ext
16735 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16737 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16738 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"
16740 if test "$host_cpu" = ia64; then
16741 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16742 allow_undefined_flag_GCJ="-z nodefs"
16743 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"
16745 # Determine the default libpath from the value encoded in an empty executable.
16746 cat >conftest.$ac_ext <<_ACEOF
16749 cat confdefs.h >>conftest.$ac_ext
16750 cat >>conftest.$ac_ext <<_ACEOF
16751 /* end confdefs.h. */
16761 rm -f conftest.$ac_objext conftest$ac_exeext
16762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16763 (eval $ac_link) 2>conftest.er1
16765 grep -v '^ *+' conftest.er1 >conftest.err
16767 cat conftest.err >&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } &&
16770 { ac_try='test -z "$ac_c_werror_flag"
16771 || test ! -s conftest.err'
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; } &&
16777 { ac_try='test -s conftest$ac_exeext'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16784 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16786 # Check for a 64-bit object if we didn't find anything.
16787 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; }
16790 echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16794 rm -f conftest.err conftest.$ac_objext \
16795 conftest$ac_exeext conftest.$ac_ext
16796 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16798 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16799 # Warning - without using the other run time loading flags,
16800 # -berok will link without error, but may produce a broken library.
16801 no_undefined_flag_GCJ=' ${wl}-bernotok'
16802 allow_undefined_flag_GCJ=' ${wl}-berok'
16803 # Exported symbols can be pulled into shared objects from archives
16804 whole_archive_flag_spec_GCJ='$convenience'
16805 archive_cmds_need_lc_GCJ=yes
16806 # This is similar to how AIX traditionally builds its shared libraries.
16807 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'
16813 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)'
16814 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16815 hardcode_minus_L_GCJ=yes
16816 # see comment about different semantics on the GNU ld section
16821 export_dynamic_flag_spec_GCJ=-rdynamic
16824 cygwin* | mingw* | pw32*)
16825 # When not using gcc, we currently assume that we are using
16826 # Microsoft Visual C++.
16827 # hardcode_libdir_flag_spec is actually meaningless, as there is
16828 # no search path for DLLs.
16829 hardcode_libdir_flag_spec_GCJ=' '
16830 allow_undefined_flag_GCJ=unsupported
16831 # Tell ltmain to make .lib files, not .a files.
16833 # Tell ltmain to make .dll files, not .so files.
16835 # FIXME: Setting linknames here is a bad hack.
16836 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16837 # The linker will automatically build a .lib file if we build a DLL.
16838 old_archive_From_new_cmds_GCJ='true'
16839 # FIXME: Should let the user specify the lib program.
16840 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16841 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16842 enable_shared_with_static_runtimes_GCJ=yes
16845 darwin* | rhapsody*)
16847 rhapsody* | darwin1.[012])
16848 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16851 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16852 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16854 case ${MACOSX_DEPLOYMENT_TARGET} in
16856 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16859 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16865 archive_cmds_need_lc_GCJ=no
16866 hardcode_direct_GCJ=no
16867 hardcode_automatic_GCJ=yes
16868 hardcode_shlibpath_var_GCJ=unsupported
16869 whole_archive_flag_spec_GCJ=''
16870 link_all_deplibs_GCJ=yes
16871 if test "$GCC" = yes ; then
16872 output_verbose_link_cmd='echo'
16873 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16874 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16875 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16876 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}'
16877 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}'
16879 case $cc_basename in
16881 output_verbose_link_cmd='echo'
16882 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16883 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16884 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16885 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}'
16886 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}'
16896 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16897 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16898 hardcode_shlibpath_var_GCJ=no
16905 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16906 # support. Future versions do this automatically, but an explicit c++rt0.o
16907 # does not break anything, and helps significantly (at the cost of a little
16910 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16911 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16912 hardcode_direct_GCJ=yes
16913 hardcode_shlibpath_var_GCJ=no
16916 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16918 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16919 hardcode_direct_GCJ=yes
16920 hardcode_minus_L_GCJ=yes
16921 hardcode_shlibpath_var_GCJ=no
16924 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16925 freebsd* | kfreebsd*-gnu | dragonfly*)
16926 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16927 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16928 hardcode_direct_GCJ=yes
16929 hardcode_shlibpath_var_GCJ=no
16933 if test "$GCC" = yes; then
16934 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'
16936 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'
16938 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16939 hardcode_libdir_separator_GCJ=:
16940 hardcode_direct_GCJ=yes
16942 # hardcode_minus_L: Not really in the search PATH,
16943 # but as the default location of the library.
16944 hardcode_minus_L_GCJ=yes
16945 export_dynamic_flag_spec_GCJ='${wl}-E'
16949 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16950 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16952 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16954 if test "$with_gnu_ld" = no; then
16955 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16956 hardcode_libdir_separator_GCJ=:
16958 hardcode_direct_GCJ=yes
16959 export_dynamic_flag_spec_GCJ='${wl}-E'
16961 # hardcode_minus_L: Not really in the search PATH,
16962 # but as the default location of the library.
16963 hardcode_minus_L_GCJ=yes
16968 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16971 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16974 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16977 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16983 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16986 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16989 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16993 if test "$with_gnu_ld" = no; then
16994 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16995 hardcode_libdir_separator_GCJ=:
16999 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17000 hardcode_direct_GCJ=no
17001 hardcode_shlibpath_var_GCJ=no
17004 hardcode_direct_GCJ=yes
17005 export_dynamic_flag_spec_GCJ='${wl}-E'
17007 # hardcode_minus_L: Not really in the search PATH,
17008 # but as the default location of the library.
17009 hardcode_minus_L_GCJ=yes
17015 irix5* | irix6* | nonstopux*)
17016 if test "$GCC" = yes; then
17017 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'
17019 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'
17020 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17022 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17023 hardcode_libdir_separator_GCJ=:
17024 link_all_deplibs_GCJ=yes
17028 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17029 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17031 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17033 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17034 hardcode_direct_GCJ=yes
17035 hardcode_shlibpath_var_GCJ=no
17039 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17040 hardcode_direct_GCJ=yes
17041 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17042 hardcode_libdir_separator_GCJ=:
17043 hardcode_shlibpath_var_GCJ=no
17047 hardcode_direct_GCJ=yes
17048 hardcode_shlibpath_var_GCJ=no
17049 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17050 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17051 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17052 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17053 export_dynamic_flag_spec_GCJ='${wl}-E'
17056 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17057 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17058 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17061 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17062 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17069 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17070 hardcode_minus_L_GCJ=yes
17071 allow_undefined_flag_GCJ=unsupported
17072 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'
17073 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17077 if test "$GCC" = yes; then
17078 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17079 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'
17081 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17082 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'
17084 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17085 hardcode_libdir_separator_GCJ=:
17088 osf4* | osf5*) # as osf3* with the addition of -msym flag
17089 if test "$GCC" = yes; then
17090 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17091 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'
17092 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17094 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17095 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'
17096 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~
17097 $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'
17099 # Both c and cxx compiler support -rpath directly
17100 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17102 hardcode_libdir_separator_GCJ=:
17106 no_undefined_flag_GCJ=' -z text'
17107 if test "$GCC" = yes; then
17109 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17110 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17111 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17114 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17115 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17116 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17118 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17119 hardcode_shlibpath_var_GCJ=no
17121 solaris2.[0-5] | solaris2.[0-5].*) ;;
17123 # The compiler driver will combine linker options so we
17124 # cannot just pass the convience library names through
17125 # without $wl, iff we do not link with $LD.
17126 # Luckily, gcc supports the same syntax we need for Sun Studio.
17127 # Supported since Solaris 2.6 (maybe 2.5.1?)
17130 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17132 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' ;;
17135 link_all_deplibs_GCJ=yes
17139 if test "x$host_vendor" = xsequent; then
17140 # Use $CC to link under sequent, because it throws in some extra .o
17141 # files that make .init and .fini sections work.
17142 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17144 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17146 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17147 hardcode_direct_GCJ=yes
17148 hardcode_minus_L_GCJ=yes
17149 hardcode_shlibpath_var_GCJ=no
17153 case $host_vendor in
17155 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17156 hardcode_direct_GCJ=yes # is this really true???
17159 ## LD is ld it makes a PLAMLIB
17160 ## CC just makes a GrossModule.
17161 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17162 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17163 hardcode_direct_GCJ=no
17166 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17167 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17170 runpath_var='LD_RUN_PATH'
17171 hardcode_shlibpath_var_GCJ=no
17175 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17176 hardcode_shlibpath_var_GCJ=no
17177 export_dynamic_flag_spec_GCJ='-Bexport'
17181 if test -d /usr/nec; then
17182 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17183 hardcode_shlibpath_var_GCJ=no
17184 runpath_var=LD_RUN_PATH
17185 hardcode_runpath_var=yes
17190 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17191 no_undefined_flag_GCJ='${wl}-z,text'
17192 archive_cmds_need_lc_GCJ=no
17193 hardcode_shlibpath_var_GCJ=no
17194 runpath_var='LD_RUN_PATH'
17196 if test "$GCC" = yes; then
17197 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17198 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17200 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17201 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17205 sysv5* | sco3.2v5* | sco5v6*)
17206 # Note: We can NOT use -z defs as we might desire, because we do not
17207 # link with -lc, and that would cause any symbols used from libc to
17208 # always be unresolved, which means just about no library would
17209 # ever link correctly. If we're not using GNU ld we use -z text
17210 # though, which does catch some bad symbols but isn't as heavy-handed
17212 no_undefined_flag_GCJ='${wl}-z,text'
17213 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17214 archive_cmds_need_lc_GCJ=no
17215 hardcode_shlibpath_var_GCJ=no
17216 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17217 hardcode_libdir_separator_GCJ=':'
17218 link_all_deplibs_GCJ=yes
17219 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17220 runpath_var='LD_RUN_PATH'
17222 if test "$GCC" = yes; then
17223 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17224 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17226 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17227 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17232 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17233 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17234 hardcode_shlibpath_var_GCJ=no
17243 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17244 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17245 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17248 # Do we need to explicitly link libc?
17250 case "x$archive_cmds_need_lc_GCJ" in
17252 # Assume -lc should be added
17253 archive_cmds_need_lc_GCJ=yes
17255 if test "$enable_shared" = yes && test "$GCC" = yes; then
17256 case $archive_cmds_GCJ in
17258 # FIXME: we may have to deal with multi-command sequences.
17261 # Test whether the compiler implicitly links with -lc since on some
17262 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17263 # to ld, don't add -lc before -lgcc.
17264 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17265 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17267 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17270 (eval $ac_compile) 2>&5
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } 2>conftest.err; then
17276 libobjs=conftest.$ac_objext
17278 wl=$lt_prog_compiler_wl_GCJ
17279 pic_flag=$lt_prog_compiler_pic_GCJ
17285 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17286 allow_undefined_flag_GCJ=
17287 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17288 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }
17293 archive_cmds_need_lc_GCJ=no
17295 archive_cmds_need_lc_GCJ=yes
17297 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17299 cat conftest.err 1>&5
17302 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17303 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17310 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17311 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17312 library_names_spec=
17313 libname_spec='lib$name'
17317 postuninstall_cmds=
17321 shlibpath_overrides_runpath=unknown
17323 dynamic_linker="$host_os ld.so"
17324 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17325 if test "$GCC" = yes; then
17326 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17327 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17328 # if the path contains ";" then we assume it to be the separator
17329 # otherwise default to the standard path separator (i.e. ":") - it is
17330 # assumed that no part of a normal pathname contains ";" but that should
17331 # okay in the real world where ";" in dirpaths is itself problematic.
17332 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17334 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17337 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17339 need_lib_prefix=unknown
17340 hardcode_into_libs=no
17342 # when you set need_version to no, make sure it does not cause -set_version
17343 # flags to be left without arguments
17344 need_version=unknown
17349 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17350 shlibpath_var=LIBPATH
17352 # AIX 3 has no versioning support, so we append a major version to the name.
17353 soname_spec='${libname}${release}${shared_ext}$major'
17360 hardcode_into_libs=yes
17361 if test "$host_cpu" = ia64; then
17362 # AIX 5 supports IA64
17363 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17364 shlibpath_var=LD_LIBRARY_PATH
17366 # With GCC up to 2.95.x, collect2 would create an import file
17367 # for dependence libraries. The import file would start with
17368 # the line `#! .'. This would cause the generated library to
17369 # depend on `.', always an invalid library. This was fixed in
17370 # development snapshots of GCC prior to 3.0.
17372 aix4 | aix4.[01] | aix4.[01].*)
17373 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17375 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17378 can_build_shared=no
17382 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17383 # soname into executable. Probably we can add versioning support to
17384 # collect2, so additional links can be useful in future.
17385 if test "$aix_use_runtimelinking" = yes; then
17386 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17387 # instead of lib<name>.a to let people know that these are not
17388 # typical AIX shared libraries.
17389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17391 # We preserve .a as extension for shared libraries through AIX4.2
17392 # and later when we are not doing run time linking.
17393 library_names_spec='${libname}${release}.a $libname.a'
17394 soname_spec='${libname}${release}${shared_ext}$major'
17396 shlibpath_var=LIBPATH
17401 library_names_spec='$libname.ixlibrary $libname.a'
17402 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17403 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'
17407 library_names_spec='${libname}${shared_ext}'
17408 dynamic_linker="$host_os ld.so"
17409 shlibpath_var=LIBRARY_PATH
17415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17416 soname_spec='${libname}${release}${shared_ext}$major'
17417 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17418 shlibpath_var=LD_LIBRARY_PATH
17419 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17420 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17421 # the default ld.so.conf also contains /usr/contrib/lib and
17422 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17423 # libtool to hard-code these into programs
17426 cygwin* | mingw* | pw32*)
17427 version_type=windows
17432 case $GCC,$host_os in
17433 yes,cygwin* | yes,mingw* | yes,pw32*)
17434 library_names_spec='$libname.dll.a'
17435 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17436 postinstall_cmds='base_file=`basename \${file}`~
17437 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17438 dldir=$destdir/`dirname \$dlpath`~
17439 test -d \$dldir || mkdir -p \$dldir~
17440 $install_prog $dir/$dlname \$dldir/$dlname~
17441 chmod a+x \$dldir/$dlname'
17442 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17443 dlpath=$dir/\$dldll~
17445 shlibpath_overrides_runpath=yes
17449 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17450 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17451 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17454 # MinGW DLLs use traditional 'lib' prefix
17455 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17456 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17457 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17458 # It is most probably a Windows format PATH printed by
17459 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17460 # path with ; separators, and with drive letters. We can handle the
17461 # drive letters (cygwin fileutils understands them), so leave them,
17462 # especially as we might pass files found there to a mingw objdump,
17463 # which wouldn't understand a cygwinified path. Ahh.
17464 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17466 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17470 # pw32 DLLs use 'pw' prefix rather than 'lib'
17471 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17477 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17480 dynamic_linker='Win32 ld.exe'
17481 # FIXME: first we should search . and the directory the executable is in
17485 darwin* | rhapsody*)
17486 dynamic_linker="$host_os dyld"
17487 version_type=darwin
17490 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17491 soname_spec='${libname}${release}${major}$shared_ext'
17492 shlibpath_overrides_runpath=yes
17493 shlibpath_var=DYLD_LIBRARY_PATH
17494 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17495 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17496 if test "$GCC" = yes; then
17497 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"`
17499 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17501 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17509 soname_spec='${libname}${release}${shared_ext}$major'
17510 shlibpath_var=LD_LIBRARY_PATH
17521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17522 soname_spec='${libname}${release}${shared_ext}$major'
17523 shlibpath_var=LD_LIBRARY_PATH
17524 shlibpath_overrides_runpath=no
17525 hardcode_into_libs=yes
17526 dynamic_linker='GNU ld.so'
17529 freebsd* | dragonfly*)
17530 # DragonFly does not have aout. When/if they implement a new
17531 # versioning mechanism, adjust this.
17532 if test -x /usr/bin/objformat; then
17533 objformat=`/usr/bin/objformat`
17536 freebsd[123]*) objformat=aout ;;
17537 *) objformat=elf ;;
17540 version_type=freebsd-$objformat
17541 case $version_type in
17543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17548 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17552 shlibpath_var=LD_LIBRARY_PATH
17555 shlibpath_overrides_runpath=yes
17557 freebsd3.[01]* | freebsdelf3.[01]*)
17558 shlibpath_overrides_runpath=yes
17559 hardcode_into_libs=yes
17561 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17562 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17563 shlibpath_overrides_runpath=no
17564 hardcode_into_libs=yes
17566 freebsd*) # from 4.6 on
17567 shlibpath_overrides_runpath=yes
17568 hardcode_into_libs=yes
17577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17578 soname_spec='${libname}${release}${shared_ext}$major'
17579 shlibpath_var=LD_LIBRARY_PATH
17580 hardcode_into_libs=yes
17583 hpux9* | hpux10* | hpux11*)
17584 # Give a soname corresponding to the major version so that dld.sl refuses to
17585 # link against other versions.
17592 hardcode_into_libs=yes
17593 dynamic_linker="$host_os dld.so"
17594 shlibpath_var=LD_LIBRARY_PATH
17595 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17597 soname_spec='${libname}${release}${shared_ext}$major'
17598 if test "X$HPUX_IA64_MODE" = X32; then
17599 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17601 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17607 hardcode_into_libs=yes
17608 dynamic_linker="$host_os dld.sl"
17609 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17610 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17612 soname_spec='${libname}${release}${shared_ext}$major'
17613 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17618 dynamic_linker="$host_os dld.sl"
17619 shlibpath_var=SHLIB_PATH
17620 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17622 soname_spec='${libname}${release}${shared_ext}$major'
17625 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17626 postinstall_cmds='chmod 555 $lib'
17633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17634 soname_spec='${libname}${release}${shared_ext}$major'
17635 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17636 shlibpath_var=LD_LIBRARY_PATH
17637 shlibpath_overrides_runpath=no
17638 hardcode_into_libs=yes
17641 irix5* | irix6* | nonstopux*)
17643 nonstopux*) version_type=nonstopux ;;
17645 if test "$lt_cv_prog_gnu_ld" = yes; then
17653 soname_spec='${libname}${release}${shared_ext}$major'
17654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17656 irix5* | nonstopux*)
17657 libsuff= shlibsuff=
17660 case $LD in # libtool.m4 will add one of these switches to LD
17661 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17662 libsuff= shlibsuff= libmagic=32-bit;;
17663 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17664 libsuff=32 shlibsuff=N32 libmagic=N32;;
17665 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17666 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17667 *) libsuff= shlibsuff= libmagic=never-match;;
17671 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17672 shlibpath_overrides_runpath=no
17673 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17674 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17675 hardcode_into_libs=yes
17678 # No shared lib support for Linux oldld, aout, or coff.
17679 linux*oldld* | linux*aout* | linux*coff*)
17683 # This must be Linux ELF.
17688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17689 soname_spec='${libname}${release}${shared_ext}$major'
17690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17691 shlibpath_var=LD_LIBRARY_PATH
17692 shlibpath_overrides_runpath=no
17693 # This implies no fast_install, which is unacceptable.
17694 # Some rework will be needed to allow for fast_install
17695 # before this can be enabled.
17696 hardcode_into_libs=yes
17698 # find out which ABI we are using
17700 case "$host_cpu" in
17701 x86_64*|s390x*|powerpc64*)
17702 echo '#line 17702 "configure"' > conftest.$ac_ext
17703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17704 (eval $ac_compile) 2>&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; then
17708 case `/usr/bin/file conftest.$ac_objext` in
17711 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17719 # Append ld.so.conf contents to the search path
17720 if test -f /etc/ld.so.conf; then
17721 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' ' '`
17722 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17725 # We used to test for /lib/ld.so.1 and disable shared libraries on
17726 # powerpc, because MkLinux only supported shared libraries with the
17727 # GNU dynamic linker. Since this was broken with cross compilers,
17728 # most powerpc-linux boxes support dynamic linking these days and
17729 # people can always --disable-shared, the test was removed, and we
17730 # assume the GNU/Linux dynamic linker is in use.
17731 dynamic_linker='GNU/Linux ld.so'
17738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17739 soname_spec='${libname}${release}${shared_ext}$major'
17740 shlibpath_var=LD_LIBRARY_PATH
17741 shlibpath_overrides_runpath=no
17742 hardcode_into_libs=yes
17743 dynamic_linker='GNU ld.so'
17750 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17753 dynamic_linker='NetBSD (a.out) ld.so'
17755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17756 soname_spec='${libname}${release}${shared_ext}$major'
17757 dynamic_linker='NetBSD ld.elf_so'
17759 shlibpath_var=LD_LIBRARY_PATH
17760 shlibpath_overrides_runpath=yes
17761 hardcode_into_libs=yes
17766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17767 shlibpath_var=LD_LIBRARY_PATH
17768 shlibpath_overrides_runpath=yes
17775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17776 soname_spec='${libname}${release}${shared_ext}$major'
17777 shlibpath_var=LD_LIBRARY_PATH
17778 shlibpath_overrides_runpath=yes
17783 sys_lib_dlsearch_path_spec="/usr/lib"
17785 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17787 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17788 *) need_version=no ;;
17790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17791 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17792 shlibpath_var=LD_LIBRARY_PATH
17793 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17795 openbsd2.[89] | openbsd2.[89].*)
17796 shlibpath_overrides_runpath=no
17799 shlibpath_overrides_runpath=yes
17803 shlibpath_overrides_runpath=yes
17808 libname_spec='$name'
17811 library_names_spec='$libname${shared_ext} $libname.a'
17812 dynamic_linker='OS/2 ld.exe'
17813 shlibpath_var=LIBPATH
17816 osf3* | osf4* | osf5*)
17820 soname_spec='${libname}${release}${shared_ext}$major'
17821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17822 shlibpath_var=LD_LIBRARY_PATH
17823 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17824 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17832 soname_spec='${libname}${release}${shared_ext}$major'
17833 shlibpath_var=LD_LIBRARY_PATH
17834 shlibpath_overrides_runpath=yes
17835 hardcode_into_libs=yes
17836 # ldd complains unless libraries are executable
17837 postinstall_cmds='chmod +x $lib'
17842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17843 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17844 shlibpath_var=LD_LIBRARY_PATH
17845 shlibpath_overrides_runpath=yes
17846 if test "$with_gnu_ld" = yes; then
17854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17855 soname_spec='${libname}${release}${shared_ext}$major'
17856 shlibpath_var=LD_LIBRARY_PATH
17857 case $host_vendor in
17859 shlibpath_overrides_runpath=no
17861 export_dynamic_flag_spec='${wl}-Blargedynsym'
17862 runpath_var=LD_RUN_PATH
17870 shlibpath_overrides_runpath=no
17871 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17877 if test -d /usr/nec ;then
17879 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17880 soname_spec='$libname${shared_ext}.$major'
17881 shlibpath_var=LD_LIBRARY_PATH
17885 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17886 version_type=freebsd-elf
17889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17890 soname_spec='${libname}${release}${shared_ext}$major'
17891 shlibpath_var=LD_LIBRARY_PATH
17892 hardcode_into_libs=yes
17893 if test "$with_gnu_ld" = yes; then
17894 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17895 shlibpath_overrides_runpath=no
17897 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17898 shlibpath_overrides_runpath=yes
17901 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17905 sys_lib_dlsearch_path_spec='/usr/lib'
17910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17911 soname_spec='${libname}${release}${shared_ext}$major'
17912 shlibpath_var=LD_LIBRARY_PATH
17919 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17920 echo "${ECHO_T}$dynamic_linker" >&6
17921 test "$dynamic_linker" = no && can_build_shared=no
17923 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17924 if test "$GCC" = yes; then
17925 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17928 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17929 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17930 hardcode_action_GCJ=
17931 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17932 test -n "$runpath_var_GCJ" || \
17933 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17935 # We can hardcode non-existant directories.
17936 if test "$hardcode_direct_GCJ" != no &&
17937 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17938 # have to relink, otherwise we might link with an installed library
17939 # when we should be linking with a yet-to-be-installed one
17940 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17941 test "$hardcode_minus_L_GCJ" != no; then
17942 # Linking always hardcodes the temporary library directory.
17943 hardcode_action_GCJ=relink
17945 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17946 hardcode_action_GCJ=immediate
17949 # We cannot hardcode anything, or else we can only hardcode existing
17951 hardcode_action_GCJ=unsupported
17953 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17954 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17956 if test "$hardcode_action_GCJ" = relink; then
17957 # Fast installation is not supported
17958 enable_fast_install=no
17959 elif test "$shlibpath_overrides_runpath" = yes ||
17960 test "$enable_shared" = no; then
17961 # Fast installation is not necessary
17962 enable_fast_install=needless
17966 # The else clause should only fire when bootstrapping the
17967 # libtool distribution, otherwise you forgot to ship ltmain.sh
17968 # with your package, and you will get complaints that there are
17969 # no rules to generate ltmain.sh.
17970 if test -f "$ltmain"; then
17971 # See if we are running on zsh, and set the options which allow our commands through
17972 # without removal of \ escapes.
17973 if test -n "${ZSH_VERSION+set}" ; then
17974 setopt NO_GLOB_SUBST
17976 # Now quote all the things that may contain metacharacters while being
17977 # careful not to overquote the AC_SUBSTed values. We take copies of the
17978 # variables and quote the copies for generation of the libtool script.
17979 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17981 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17982 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17983 deplibs_check_method reload_flag reload_cmds need_locks \
17984 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17985 lt_cv_sys_global_symbol_to_c_name_address \
17986 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17987 old_postinstall_cmds old_postuninstall_cmds \
17991 lt_prog_compiler_wl_GCJ \
17992 lt_prog_compiler_pic_GCJ \
17993 lt_prog_compiler_static_GCJ \
17994 lt_prog_compiler_no_builtin_flag_GCJ \
17995 export_dynamic_flag_spec_GCJ \
17996 thread_safe_flag_spec_GCJ \
17997 whole_archive_flag_spec_GCJ \
17998 enable_shared_with_static_runtimes_GCJ \
17999 old_archive_cmds_GCJ \
18000 old_archive_from_new_cmds_GCJ \
18001 predep_objects_GCJ \
18002 postdep_objects_GCJ \
18005 compiler_lib_search_path_GCJ \
18007 archive_expsym_cmds_GCJ \
18008 postinstall_cmds_GCJ \
18009 postuninstall_cmds_GCJ \
18010 old_archive_from_expsyms_cmds_GCJ \
18011 allow_undefined_flag_GCJ \
18012 no_undefined_flag_GCJ \
18013 export_symbols_cmds_GCJ \
18014 hardcode_libdir_flag_spec_GCJ \
18015 hardcode_libdir_flag_spec_ld_GCJ \
18016 hardcode_libdir_separator_GCJ \
18017 hardcode_automatic_GCJ \
18019 module_expsym_cmds_GCJ \
18020 lt_cv_prog_compiler_c_o_GCJ \
18021 exclude_expsyms_GCJ \
18022 include_expsyms_GCJ; do
18025 old_archive_cmds_GCJ | \
18026 old_archive_from_new_cmds_GCJ | \
18027 archive_cmds_GCJ | \
18028 archive_expsym_cmds_GCJ | \
18029 module_cmds_GCJ | \
18030 module_expsym_cmds_GCJ | \
18031 old_archive_from_expsyms_cmds_GCJ | \
18032 export_symbols_cmds_GCJ | \
18033 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18034 postinstall_cmds | postuninstall_cmds | \
18035 old_postinstall_cmds | old_postuninstall_cmds | \
18036 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18037 # Double-quote double-evaled strings.
18038 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18041 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18047 *'\$0 --fallback-echo"')
18048 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18054 cat <<__EOF__ >> "$cfgfile"
18055 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18057 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18059 # Shell to use when invoking shell scripts.
18062 # Whether or not to build shared libraries.
18063 build_libtool_libs=$enable_shared
18065 # Whether or not to build static libraries.
18066 build_old_libs=$enable_static
18068 # Whether or not to add -lc for building shared libraries.
18069 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18071 # Whether or not to disallow shared libs when runtime libs are static
18072 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18074 # Whether or not to optimize for fast installation.
18075 fast_install=$enable_fast_install
18078 host_alias=$host_alias
18082 # The build system.
18083 build_alias=$build_alias
18087 # An echo program that does not interpret backslashes.
18092 AR_FLAGS=$lt_AR_FLAGS
18097 # LTCC compiler flags.
18098 LTCFLAGS=$lt_LTCFLAGS
18100 # A language-specific compiler.
18101 CC=$lt_compiler_GCJ
18103 # Is the compiler the GNU C compiler?
18106 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18107 gcc_ver=\`gcc -dumpversion\`
18112 # The linker used to build libraries.
18115 # Whether we need hard or soft links.
18118 # A BSD-compatible nm program.
18121 # A symbol stripping program
18124 # Used to examine libraries when file_magic_cmd begins "file"
18125 MAGIC_CMD=$MAGIC_CMD
18127 # Used on cygwin: DLL creation program.
18130 # Used on cygwin: object dumper.
18133 # Used on cygwin: assembler.
18136 # The name of the directory that contains temporary libtool files.
18139 # How to create reloadable object files.
18140 reload_flag=$lt_reload_flag
18141 reload_cmds=$lt_reload_cmds
18143 # How to pass a linker flag through the compiler.
18144 wl=$lt_lt_prog_compiler_wl_GCJ
18146 # Object file suffix (normally "o").
18147 objext="$ac_objext"
18149 # Old archive suffix (normally "a").
18152 # Shared library suffix (normally ".so").
18153 shrext_cmds='$shrext_cmds'
18155 # Executable file suffix (normally "").
18158 # Additional compiler flags for building library objects.
18159 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18162 # What is the maximum length of a command?
18163 max_cmd_len=$lt_cv_sys_max_cmd_len
18165 # Does compiler simultaneously support -c and -o options?
18166 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18168 # Must we lock files when doing compilation?
18169 need_locks=$lt_need_locks
18171 # Do we need the lib prefix for modules?
18172 need_lib_prefix=$need_lib_prefix
18174 # Do we need a version for libraries?
18175 need_version=$need_version
18177 # Whether dlopen is supported.
18178 dlopen_support=$enable_dlopen
18180 # Whether dlopen of programs is supported.
18181 dlopen_self=$enable_dlopen_self
18183 # Whether dlopen of statically linked programs is supported.
18184 dlopen_self_static=$enable_dlopen_self_static
18186 # Compiler flag to prevent dynamic linking.
18187 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18189 # Compiler flag to turn off builtin functions.
18190 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18192 # Compiler flag to allow reflexive dlopens.
18193 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18195 # Compiler flag to generate shared objects directly from archives.
18196 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18198 # Compiler flag to generate thread-safe objects.
18199 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18201 # Library versioning type.
18202 version_type=$version_type
18204 # Format of library name prefix.
18205 libname_spec=$lt_libname_spec
18207 # List of archive names. First name is the real one, the rest are links.
18208 # The last name is the one that the linker finds with -lNAME.
18209 library_names_spec=$lt_library_names_spec
18211 # The coded name of the library, if different from the real name.
18212 soname_spec=$lt_soname_spec
18214 # Commands used to build and install an old-style archive.
18216 old_archive_cmds=$lt_old_archive_cmds_GCJ
18217 old_postinstall_cmds=$lt_old_postinstall_cmds
18218 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18220 # Create an old-style archive from a shared archive.
18221 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18223 # Create a temporary old-style archive to link instead of a shared archive.
18224 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18226 # Commands used to build and install a shared archive.
18227 archive_cmds=$lt_archive_cmds_GCJ
18228 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18229 postinstall_cmds=$lt_postinstall_cmds
18230 postuninstall_cmds=$lt_postuninstall_cmds
18232 # Commands used to build a loadable module (assumed same as above if empty)
18233 module_cmds=$lt_module_cmds_GCJ
18234 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18236 # Commands to strip libraries.
18237 old_striplib=$lt_old_striplib
18238 striplib=$lt_striplib
18240 # Dependencies to place before the objects being linked to create a
18242 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18244 # Dependencies to place after the objects being linked to create a
18246 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18248 # Dependencies to place before the objects being linked to create a
18250 predeps=$lt_predeps_GCJ
18252 # Dependencies to place after the objects being linked to create a
18254 postdeps=$lt_postdeps_GCJ
18256 # The library search path used internally by the compiler when linking
18257 # a shared library.
18258 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"\`
18260 # Method to check whether dependent libraries are shared objects.
18261 deplibs_check_method=$lt_deplibs_check_method
18263 # Command to use when deplibs_check_method == file_magic.
18264 file_magic_cmd=$lt_file_magic_cmd
18266 # Flag that allows shared libraries with undefined symbols to be built.
18267 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18269 # Flag that forces no undefined symbols.
18270 no_undefined_flag=$lt_no_undefined_flag_GCJ
18272 # Commands used to finish a libtool library installation in a directory.
18273 finish_cmds=$lt_finish_cmds
18275 # Same as above, but a single script fragment to be evaled but not shown.
18276 finish_eval=$lt_finish_eval
18278 # Take the output of nm and produce a listing of raw symbols and C names.
18279 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18281 # Transform the output of nm in a proper C declaration
18282 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18284 # Transform the output of nm in a C name address pair
18285 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18287 # This is the shared library runtime path variable.
18288 runpath_var=$runpath_var
18290 # This is the shared library path variable.
18291 shlibpath_var=$shlibpath_var
18293 # Is shlibpath searched before the hard-coded library search path?
18294 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18296 # How to hardcode a shared library path into an executable.
18297 hardcode_action=$hardcode_action_GCJ
18299 # Whether we should hardcode library paths into libraries.
18300 hardcode_into_libs=$hardcode_into_libs
18302 # Flag to hardcode \$libdir into a binary during linking.
18303 # This must work even if \$libdir does not exist.
18304 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18306 # If ld is used when linking, flag to hardcode \$libdir into
18307 # a binary during linking. This must work even if \$libdir does
18309 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18311 # Whether we need a single -rpath flag with a separated argument.
18312 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18314 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18315 # resulting binary.
18316 hardcode_direct=$hardcode_direct_GCJ
18318 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18319 # resulting binary.
18320 hardcode_minus_L=$hardcode_minus_L_GCJ
18322 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18323 # the resulting binary.
18324 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18326 # Set to yes if building a shared library automatically hardcodes DIR into the library
18327 # and all subsequent libraries and executables linked against it.
18328 hardcode_automatic=$hardcode_automatic_GCJ
18330 # Variables whose values should be saved in libtool wrapper scripts and
18331 # restored at relink time.
18332 variables_saved_for_relink="$variables_saved_for_relink"
18334 # Whether libtool must link a program against all its dependency libraries.
18335 link_all_deplibs=$link_all_deplibs_GCJ
18337 # Compile-time system search path for libraries
18338 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"\`
18340 # Run-time system search path for libraries
18341 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18343 # Fix the shell variable \$srcfile for the compiler.
18344 fix_srcfile_path="$fix_srcfile_path_GCJ"
18346 # Set to yes if exported symbols are required.
18347 always_export_symbols=$always_export_symbols_GCJ
18349 # The commands to list exported symbols.
18350 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18352 # The commands to extract the exported symbol list from a shared archive.
18353 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18355 # Symbols that should not be listed in the preloaded symbols.
18356 exclude_expsyms=$lt_exclude_expsyms_GCJ
18358 # Symbols that must always be exported.
18359 include_expsyms=$lt_include_expsyms_GCJ
18361 # ### END LIBTOOL TAG CONFIG: $tagname
18367 # If there is no Makefile yet, we rely on a make rule to execute
18368 # `config.status --recheck' to rerun these tests and create the
18369 # libtool script then.
18370 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18371 if test -f "$ltmain_in"; then
18372 test -f Makefile && make "$ltmain"
18378 ac_cpp='$CPP $CPPFLAGS'
18379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18394 # Source file extension for RC test sources.
18397 # Object file extension for compiled RC test sources.
18401 # Code to be used in simple compile tests
18402 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18404 # Code to be used in simple link tests
18405 lt_simple_link_test_code="$lt_simple_compile_test_code"
18407 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18409 # If no C compiler was specified, use CC.
18412 # If no C compiler flags were specified, use CFLAGS.
18413 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18415 # Allow CC to be a program name with arguments.
18419 # save warnings/boilerplate of simple test code
18420 ac_outfile=conftest.$ac_objext
18421 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18422 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18423 _lt_compiler_boilerplate=`cat conftest.err`
18426 ac_outfile=conftest.$ac_objext
18427 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18428 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18429 _lt_linker_boilerplate=`cat conftest.err`
18433 # Allow CC to be a program name with arguments.
18438 for cc_temp in $compiler""; do
18440 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18441 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18446 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18448 lt_cv_prog_compiler_c_o_RC=yes
18450 # The else clause should only fire when bootstrapping the
18451 # libtool distribution, otherwise you forgot to ship ltmain.sh
18452 # with your package, and you will get complaints that there are
18453 # no rules to generate ltmain.sh.
18454 if test -f "$ltmain"; then
18455 # See if we are running on zsh, and set the options which allow our commands through
18456 # without removal of \ escapes.
18457 if test -n "${ZSH_VERSION+set}" ; then
18458 setopt NO_GLOB_SUBST
18460 # Now quote all the things that may contain metacharacters while being
18461 # careful not to overquote the AC_SUBSTed values. We take copies of the
18462 # variables and quote the copies for generation of the libtool script.
18463 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18465 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18466 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18467 deplibs_check_method reload_flag reload_cmds need_locks \
18468 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18469 lt_cv_sys_global_symbol_to_c_name_address \
18470 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18471 old_postinstall_cmds old_postuninstall_cmds \
18475 lt_prog_compiler_wl_RC \
18476 lt_prog_compiler_pic_RC \
18477 lt_prog_compiler_static_RC \
18478 lt_prog_compiler_no_builtin_flag_RC \
18479 export_dynamic_flag_spec_RC \
18480 thread_safe_flag_spec_RC \
18481 whole_archive_flag_spec_RC \
18482 enable_shared_with_static_runtimes_RC \
18483 old_archive_cmds_RC \
18484 old_archive_from_new_cmds_RC \
18485 predep_objects_RC \
18486 postdep_objects_RC \
18489 compiler_lib_search_path_RC \
18491 archive_expsym_cmds_RC \
18492 postinstall_cmds_RC \
18493 postuninstall_cmds_RC \
18494 old_archive_from_expsyms_cmds_RC \
18495 allow_undefined_flag_RC \
18496 no_undefined_flag_RC \
18497 export_symbols_cmds_RC \
18498 hardcode_libdir_flag_spec_RC \
18499 hardcode_libdir_flag_spec_ld_RC \
18500 hardcode_libdir_separator_RC \
18501 hardcode_automatic_RC \
18503 module_expsym_cmds_RC \
18504 lt_cv_prog_compiler_c_o_RC \
18505 exclude_expsyms_RC \
18506 include_expsyms_RC; do
18509 old_archive_cmds_RC | \
18510 old_archive_from_new_cmds_RC | \
18511 archive_cmds_RC | \
18512 archive_expsym_cmds_RC | \
18514 module_expsym_cmds_RC | \
18515 old_archive_from_expsyms_cmds_RC | \
18516 export_symbols_cmds_RC | \
18517 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18518 postinstall_cmds | postuninstall_cmds | \
18519 old_postinstall_cmds | old_postuninstall_cmds | \
18520 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18521 # Double-quote double-evaled strings.
18522 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18525 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18531 *'\$0 --fallback-echo"')
18532 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18538 cat <<__EOF__ >> "$cfgfile"
18539 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18541 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18543 # Shell to use when invoking shell scripts.
18546 # Whether or not to build shared libraries.
18547 build_libtool_libs=$enable_shared
18549 # Whether or not to build static libraries.
18550 build_old_libs=$enable_static
18552 # Whether or not to add -lc for building shared libraries.
18553 build_libtool_need_lc=$archive_cmds_need_lc_RC
18555 # Whether or not to disallow shared libs when runtime libs are static
18556 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18558 # Whether or not to optimize for fast installation.
18559 fast_install=$enable_fast_install
18562 host_alias=$host_alias
18566 # The build system.
18567 build_alias=$build_alias
18571 # An echo program that does not interpret backslashes.
18576 AR_FLAGS=$lt_AR_FLAGS
18581 # LTCC compiler flags.
18582 LTCFLAGS=$lt_LTCFLAGS
18584 # A language-specific compiler.
18587 # Is the compiler the GNU C compiler?
18590 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18591 gcc_ver=\`gcc -dumpversion\`
18596 # The linker used to build libraries.
18599 # Whether we need hard or soft links.
18602 # A BSD-compatible nm program.
18605 # A symbol stripping program
18608 # Used to examine libraries when file_magic_cmd begins "file"
18609 MAGIC_CMD=$MAGIC_CMD
18611 # Used on cygwin: DLL creation program.
18614 # Used on cygwin: object dumper.
18617 # Used on cygwin: assembler.
18620 # The name of the directory that contains temporary libtool files.
18623 # How to create reloadable object files.
18624 reload_flag=$lt_reload_flag
18625 reload_cmds=$lt_reload_cmds
18627 # How to pass a linker flag through the compiler.
18628 wl=$lt_lt_prog_compiler_wl_RC
18630 # Object file suffix (normally "o").
18631 objext="$ac_objext"
18633 # Old archive suffix (normally "a").
18636 # Shared library suffix (normally ".so").
18637 shrext_cmds='$shrext_cmds'
18639 # Executable file suffix (normally "").
18642 # Additional compiler flags for building library objects.
18643 pic_flag=$lt_lt_prog_compiler_pic_RC
18646 # What is the maximum length of a command?
18647 max_cmd_len=$lt_cv_sys_max_cmd_len
18649 # Does compiler simultaneously support -c and -o options?
18650 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18652 # Must we lock files when doing compilation?
18653 need_locks=$lt_need_locks
18655 # Do we need the lib prefix for modules?
18656 need_lib_prefix=$need_lib_prefix
18658 # Do we need a version for libraries?
18659 need_version=$need_version
18661 # Whether dlopen is supported.
18662 dlopen_support=$enable_dlopen
18664 # Whether dlopen of programs is supported.
18665 dlopen_self=$enable_dlopen_self
18667 # Whether dlopen of statically linked programs is supported.
18668 dlopen_self_static=$enable_dlopen_self_static
18670 # Compiler flag to prevent dynamic linking.
18671 link_static_flag=$lt_lt_prog_compiler_static_RC
18673 # Compiler flag to turn off builtin functions.
18674 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18676 # Compiler flag to allow reflexive dlopens.
18677 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18679 # Compiler flag to generate shared objects directly from archives.
18680 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18682 # Compiler flag to generate thread-safe objects.
18683 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18685 # Library versioning type.
18686 version_type=$version_type
18688 # Format of library name prefix.
18689 libname_spec=$lt_libname_spec
18691 # List of archive names. First name is the real one, the rest are links.
18692 # The last name is the one that the linker finds with -lNAME.
18693 library_names_spec=$lt_library_names_spec
18695 # The coded name of the library, if different from the real name.
18696 soname_spec=$lt_soname_spec
18698 # Commands used to build and install an old-style archive.
18700 old_archive_cmds=$lt_old_archive_cmds_RC
18701 old_postinstall_cmds=$lt_old_postinstall_cmds
18702 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18704 # Create an old-style archive from a shared archive.
18705 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18707 # Create a temporary old-style archive to link instead of a shared archive.
18708 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18710 # Commands used to build and install a shared archive.
18711 archive_cmds=$lt_archive_cmds_RC
18712 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18713 postinstall_cmds=$lt_postinstall_cmds
18714 postuninstall_cmds=$lt_postuninstall_cmds
18716 # Commands used to build a loadable module (assumed same as above if empty)
18717 module_cmds=$lt_module_cmds_RC
18718 module_expsym_cmds=$lt_module_expsym_cmds_RC
18720 # Commands to strip libraries.
18721 old_striplib=$lt_old_striplib
18722 striplib=$lt_striplib
18724 # Dependencies to place before the objects being linked to create a
18726 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18728 # Dependencies to place after the objects being linked to create a
18730 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18732 # Dependencies to place before the objects being linked to create a
18734 predeps=$lt_predeps_RC
18736 # Dependencies to place after the objects being linked to create a
18738 postdeps=$lt_postdeps_RC
18740 # The library search path used internally by the compiler when linking
18741 # a shared library.
18742 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"\`
18744 # Method to check whether dependent libraries are shared objects.
18745 deplibs_check_method=$lt_deplibs_check_method
18747 # Command to use when deplibs_check_method == file_magic.
18748 file_magic_cmd=$lt_file_magic_cmd
18750 # Flag that allows shared libraries with undefined symbols to be built.
18751 allow_undefined_flag=$lt_allow_undefined_flag_RC
18753 # Flag that forces no undefined symbols.
18754 no_undefined_flag=$lt_no_undefined_flag_RC
18756 # Commands used to finish a libtool library installation in a directory.
18757 finish_cmds=$lt_finish_cmds
18759 # Same as above, but a single script fragment to be evaled but not shown.
18760 finish_eval=$lt_finish_eval
18762 # Take the output of nm and produce a listing of raw symbols and C names.
18763 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18765 # Transform the output of nm in a proper C declaration
18766 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18768 # Transform the output of nm in a C name address pair
18769 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18771 # This is the shared library runtime path variable.
18772 runpath_var=$runpath_var
18774 # This is the shared library path variable.
18775 shlibpath_var=$shlibpath_var
18777 # Is shlibpath searched before the hard-coded library search path?
18778 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18780 # How to hardcode a shared library path into an executable.
18781 hardcode_action=$hardcode_action_RC
18783 # Whether we should hardcode library paths into libraries.
18784 hardcode_into_libs=$hardcode_into_libs
18786 # Flag to hardcode \$libdir into a binary during linking.
18787 # This must work even if \$libdir does not exist.
18788 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18790 # If ld is used when linking, flag to hardcode \$libdir into
18791 # a binary during linking. This must work even if \$libdir does
18793 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18795 # Whether we need a single -rpath flag with a separated argument.
18796 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18798 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18799 # resulting binary.
18800 hardcode_direct=$hardcode_direct_RC
18802 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18803 # resulting binary.
18804 hardcode_minus_L=$hardcode_minus_L_RC
18806 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18807 # the resulting binary.
18808 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18810 # Set to yes if building a shared library automatically hardcodes DIR into the library
18811 # and all subsequent libraries and executables linked against it.
18812 hardcode_automatic=$hardcode_automatic_RC
18814 # Variables whose values should be saved in libtool wrapper scripts and
18815 # restored at relink time.
18816 variables_saved_for_relink="$variables_saved_for_relink"
18818 # Whether libtool must link a program against all its dependency libraries.
18819 link_all_deplibs=$link_all_deplibs_RC
18821 # Compile-time system search path for libraries
18822 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"\`
18824 # Run-time system search path for libraries
18825 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18827 # Fix the shell variable \$srcfile for the compiler.
18828 fix_srcfile_path="$fix_srcfile_path_RC"
18830 # Set to yes if exported symbols are required.
18831 always_export_symbols=$always_export_symbols_RC
18833 # The commands to list exported symbols.
18834 export_symbols_cmds=$lt_export_symbols_cmds_RC
18836 # The commands to extract the exported symbol list from a shared archive.
18837 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18839 # Symbols that should not be listed in the preloaded symbols.
18840 exclude_expsyms=$lt_exclude_expsyms_RC
18842 # Symbols that must always be exported.
18843 include_expsyms=$lt_include_expsyms_RC
18845 # ### END LIBTOOL TAG CONFIG: $tagname
18851 # If there is no Makefile yet, we rely on a make rule to execute
18852 # `config.status --recheck' to rerun these tests and create the
18853 # libtool script then.
18854 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18855 if test -f "$ltmain_in"; then
18856 test -f Makefile && make "$ltmain"
18862 ac_cpp='$CPP $CPPFLAGS'
18863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18872 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18873 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18874 { (exit 1); exit 1; }; }
18878 # Append the new tag name to the list of available tags.
18879 if test -n "$tagname" ; then
18880 available_tags="$available_tags $tagname"
18886 # Now substitute the updated list of available tags.
18887 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18888 mv "${ofile}T" "$ofile"
18892 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18893 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18894 { (exit 1); exit 1; }; }
18900 # This can be used to rebuild libtool when needed
18901 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18903 # Always use our own libtool.
18904 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18906 # Prevent multiple expansion
18930 # Check whether --with-linux or --without-linux was given.
18931 if test "${with_linux+set}" = set; then
18932 withval="$with_linux"
18933 kernelsrc="$withval"
18937 # Check whether --with-linux-obj or --without-linux-obj was given.
18938 if test "${with_linux_obj+set}" = set; then
18939 withval="$with_linux_obj"
18940 kernelbuild="$withval"
18943 echo "$as_me:$LINENO: checking kernel source directory" >&5
18944 echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6
18945 if test -z "$kernelsrc"; then
18946 sourcelink=`ls -1d /usr/src/kernels/* /usr/src/linux-* \
18947 2>/dev/null | grep -v obj | tail -1`
18949 if test -e ${sourcelink}; then
18950 kernelsrc=`readlink -f ${sourcelink}`
18952 echo "$as_me:$LINENO: result: Not found" >&5
18953 echo "${ECHO_T}Not found" >&6
18954 { { echo "$as_me:$LINENO: error:
18955 *** Please specify the location of the kernel source
18956 *** with the '--with-linux=PATH' option" >&5
18957 echo "$as_me: error:
18958 *** Please specify the location of the kernel source
18959 *** with the '--with-linux=PATH' option" >&2;}
18960 { (exit 1); exit 1; }; }
18963 if test "$kernelsrc" = "NONE"; then
18968 echo "$as_me:$LINENO: result: $kernelsrc" >&5
18969 echo "${ECHO_T}$kernelsrc" >&6
18970 echo "$as_me:$LINENO: checking kernel build directory" >&5
18971 echo $ECHO_N "checking kernel build directory... $ECHO_C" >&6
18972 if test -z "$kernelbuild"; then
18973 if test -d ${kernelsrc}-obj; then
18974 kernelbuild=${kernelsrc}-obj/`arch`/`arch`
18975 elif test -d `dirname ${kernelsrc}`/build-`arch`; then
18976 kernelbuild=`dirname ${kernelsrc}`/build-`arch`
18978 kernelbuild=${kernelsrc}
18981 echo "$as_me:$LINENO: result: $kernelbuild" >&5
18982 echo "${ECHO_T}$kernelbuild" >&6
18984 echo "$as_me:$LINENO: checking kernel source version" >&5
18985 echo $ECHO_N "checking kernel source version... $ECHO_C" >&6
18986 if test -r $kernelbuild/include/linux/version.h &&
18987 fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then
18989 kernsrcver=`(echo "#include <linux/version.h>";
18990 echo "kernsrcver=UTS_RELEASE") |
18991 cpp -I $kernelbuild/include |
18992 grep "^kernsrcver=" | cut -d \" -f 2`
18994 elif test -r $kernelbuild/include/linux/utsrelease.h &&
18995 fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then
18997 kernsrcver=`(echo "#include <linux/utsrelease.h>";
18998 echo "kernsrcver=UTS_RELEASE") |
18999 cpp -I $kernelbuild/include |
19000 grep "^kernsrcver=" | cut -d \" -f 2`
19003 if test -z "$kernsrcver"; then
19004 echo "$as_me:$LINENO: result: Not found" >&5
19005 echo "${ECHO_T}Not found" >&6
19006 { { echo "$as_me:$LINENO: error:
19007 *** Cannot determine the version of the linux kernel source.
19008 *** Please prepare the kernel before running this script" >&5
19009 echo "$as_me: error:
19010 *** Cannot determine the version of the linux kernel source.
19011 *** Please prepare the kernel before running this script" >&2;}
19012 { (exit 1); exit 1; }; }
19015 echo "$as_me:$LINENO: result: $kernsrcver" >&5
19016 echo "${ECHO_T}$kernsrcver" >&6
19019 LINUX_OBJ=${kernelbuild}
19020 LINUX_VERSION=${kernsrcver}
19022 abs_srcdir=`readlink -f ${srcdir}`
19023 kerninclude="-I${abs_srcdir} -I${abs_srcdir}/include"
19024 kernwarn="-Wstrict-prototypes -Werror"
19026 if test "${LINUX_OBJ}" != "${LINUX}"; then
19027 kernobjs="O=$kernelbuild"
19031 KERNELCPPFLAGS="${kerninclude} ${kernwarn}"
19032 KERNELMAKE_PARAMS="${kernobjs}"
19042 echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
19043 echo $ECHO_N "checking kernel file name for module symbols... $ECHO_C" >&6
19044 if grep -q Modules.symvers $LINUX/scripts/Makefile.modpost; then
19045 LINUX_SYMBOLS=Modules.symvers
19047 LINUX_SYMBOLS=Module.symvers
19049 echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
19050 echo "${ECHO_T}$LINUX_SYMBOLS" >&6
19054 echo "$as_me:$LINENO: checking license" >&5
19055 echo $ECHO_N "checking license... $ECHO_C" >&6
19056 echo "$as_me:$LINENO: result: GPL" >&5
19057 echo "${ECHO_T}GPL" >&6
19058 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
19061 echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
19062 echo $ECHO_N "checking whether debugging is enabled... $ECHO_C" >&6
19063 # Check whether --enable-debug or --disable-debug was given.
19064 if test "${enable_debug+set}" = set; then
19065 enableval="$enable_debug"
19066 case "$enableval" in
19067 yes) spl_ac_debug=yes ;;
19068 no) spl_ac_debug=no ;;
19069 *) echo "$as_me:$LINENO: result: Error!" >&5
19070 echo "${ECHO_T}Error!" >&6
19071 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug" >&5
19072 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug" >&2;}
19073 { (exit 1); exit 1; }; } ;;
19077 if test "$spl_ac_debug" = yes; then
19078 echo "$as_me:$LINENO: result: yes" >&5
19079 echo "${ECHO_T}yes" >&6
19080 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
19082 echo "$as_me:$LINENO: result: no" >&5
19083 echo "${ECHO_T}no" >&6
19084 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
19088 echo "$as_me:$LINENO: checking whether kmem debugging is enabled" >&5
19089 echo $ECHO_N "checking whether kmem debugging is enabled... $ECHO_C" >&6
19090 # Check whether --enable-debug-kmem or --disable-debug-kmem was given.
19091 if test "${enable_debug_kmem+set}" = set; then
19092 enableval="$enable_debug_kmem"
19093 case "$enableval" in
19094 yes) spl_ac_debug_kmem=yes ;;
19095 no) spl_ac_debug_kmem=no ;;
19096 *) echo "$as_me:$LINENO: result: Error!" >&5
19097 echo "${ECHO_T}Error!" >&6
19098 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kmem" >&5
19099 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kmem" >&2;}
19100 { (exit 1); exit 1; }; } ;;
19104 if test "$spl_ac_debug_kmem" = yes; then
19105 echo "$as_me:$LINENO: result: yes" >&5
19106 echo "${ECHO_T}yes" >&6
19108 cat >>confdefs.h <<\_ACEOF
19109 #define DEBUG_KMEM 1
19112 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
19114 echo "$as_me:$LINENO: result: no" >&5
19115 echo "${ECHO_T}no" >&6
19119 echo "$as_me:$LINENO: checking whether mutex debugging is enabled" >&5
19120 echo $ECHO_N "checking whether mutex debugging is enabled... $ECHO_C" >&6
19121 # Check whether --enable-debug-mutex or --disable-debug-mutex was given.
19122 if test "${enable_debug_mutex+set}" = set; then
19123 enableval="$enable_debug_mutex"
19124 case "$enableval" in
19125 yes) spl_ac_debug_mutex=yes ;;
19126 no) spl_ac_debug_mutex=no ;;
19127 *) echo "$as_me:$LINENO: result: Error!" >&5
19128 echo "${ECHO_T}Error!" >&6
19129 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-mutex" >&5
19130 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-mutex" >&2;}
19131 { (exit 1); exit 1; }; } ;;
19135 if test "$spl_ac_debug_mutex" = yes; then
19136 echo "$as_me:$LINENO: result: yes" >&5
19137 echo "${ECHO_T}yes" >&6
19139 cat >>confdefs.h <<\_ACEOF
19140 #define DEBUG_MUTEX 1
19143 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_MUTEX"
19145 echo "$as_me:$LINENO: result: no" >&5
19146 echo "${ECHO_T}no" >&6
19150 echo "$as_me:$LINENO: checking whether kstat debugging is enabled" >&5
19151 echo $ECHO_N "checking whether kstat debugging is enabled... $ECHO_C" >&6
19152 # Check whether --enable-debug-kstat or --disable-debug-kstat was given.
19153 if test "${enable_debug_kstat+set}" = set; then
19154 enableval="$enable_debug_kstat"
19155 case "$enableval" in
19156 yes) spl_ac_debug_kstat=yes ;;
19157 no) spl_ac_debug_kstat=no ;;
19158 *) echo "$as_me:$LINENO: result: Error!" >&5
19159 echo "${ECHO_T}Error!" >&6
19160 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kstat" >&5
19161 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kstat" >&2;}
19162 { (exit 1); exit 1; }; } ;;
19166 if test "$spl_ac_debug_kstat" = yes; then
19167 echo "$as_me:$LINENO: result: yes" >&5
19168 echo "${ECHO_T}yes" >&6
19170 cat >>confdefs.h <<\_ACEOF
19171 #define DEBUG_KSTAT 1
19174 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KSTAT"
19176 echo "$as_me:$LINENO: result: no" >&5
19177 echo "${ECHO_T}no" >&6
19181 echo "$as_me:$LINENO: checking whether callb debugging is enabled" >&5
19182 echo $ECHO_N "checking whether callb debugging is enabled... $ECHO_C" >&6
19183 # Check whether --enable-debug-callb or --disable-debug-callb was given.
19184 if test "${enable_debug_callb+set}" = set; then
19185 enableval="$enable_debug_callb"
19186 case "$enableval" in
19187 yes) spl_ac_debug_callb=yes ;;
19188 no) spl_ac_debug_callb=no ;;
19189 *) echo "$as_me:$LINENO: result: Error!" >&5
19190 echo "${ECHO_T}Error!" >&6
19191 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-callb" >&5
19192 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-callb" >&2;}
19193 { (exit 1); exit 1; }; } ;;
19197 if test "$spl_ac_debug_callb" = yes; then
19198 echo "$as_me:$LINENO: result: yes" >&5
19199 echo "${ECHO_T}yes" >&6
19201 cat >>confdefs.h <<\_ACEOF
19202 #define DEBUG_CALLB 1
19205 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_CALLB"
19207 echo "$as_me:$LINENO: result: no" >&5
19208 echo "${ECHO_T}no" >&6
19211 echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
19212 echo $ECHO_N "checking whether kernel defines uintptr_t... $ECHO_C" >&6
19215 cat >conftest.c <<_ACEOF
19218 cat confdefs.h >>conftest.$ac_ext
19219 cat >>conftest.$ac_ext <<_ACEOF
19220 /* end confdefs.h. */
19223 #include <linux/types.h>
19238 rm -Rf build && mkdir -p build
19239 echo "obj-m := conftest.o" >build/Makefile
19240 if { ac_try='cp conftest.c build && make modules 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'
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19252 echo "$as_me:$LINENO: result: yes" >&5
19253 echo "${ECHO_T}yes" >&6
19255 cat >>confdefs.h <<\_ACEOF
19256 #define HAVE_UINTPTR_T 1
19261 echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19264 echo "$as_me:$LINENO: result: no" >&5
19265 echo "${ECHO_T}no" >&6
19275 echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
19276 echo $ECHO_N "checking whether kernel defines atomic64_t... $ECHO_C" >&6
19279 cat >conftest.c <<_ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h. */
19287 #include <asm/atomic.h>
19302 rm -Rf build && mkdir -p build
19303 echo "obj-m := conftest.o" >build/Makefile
19304 if { ac_try='cp conftest.c build && make modules 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'
19305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306 (eval $ac_try) 2>&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311 (eval $ac_try) 2>&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; }; then
19316 echo "$as_me:$LINENO: result: yes" >&5
19317 echo "${ECHO_T}yes" >&6
19319 cat >>confdefs.h <<\_ACEOF
19320 #define HAVE_ATOMIC64_T 1
19325 echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19328 echo "$as_me:$LINENO: result: no" >&5
19329 echo "${ECHO_T}no" >&6
19339 echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
19340 echo $ECHO_N "checking whether INIT_WORK wants 3 args... $ECHO_C" >&6
19343 cat >conftest.c <<_ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h. */
19351 #include <linux/workqueue.h>
19357 struct work_struct work;
19358 INIT_WORK(&work, NULL, NULL);
19367 rm -Rf build && mkdir -p build
19368 echo "obj-m := conftest.o" >build/Makefile
19369 if { ac_try='cp conftest.c build && make modules 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'
19370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19371 (eval $ac_try) 2>&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376 (eval $ac_try) 2>&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; }; then
19381 echo "$as_me:$LINENO: result: yes" >&5
19382 echo "${ECHO_T}yes" >&6
19384 cat >>confdefs.h <<\_ACEOF
19385 #define HAVE_3ARGS_INIT_WORK 1
19390 echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.$ac_ext >&5
19393 echo "$as_me:$LINENO: result: no" >&5
19394 echo "${ECHO_T}no" >&6
19404 echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
19405 echo $ECHO_N "checking whether register_sysctl_table() wants 2 args... $ECHO_C" >&6
19408 cat >conftest.c <<_ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19416 #include <linux/sysctl.h>
19422 return register_sysctl_table(NULL,0);
19431 rm -Rf build && mkdir -p build
19432 echo "obj-m := conftest.o" >build/Makefile
19433 if { ac_try='cp conftest.c build && make modules 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'
19434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435 (eval $ac_try) 2>&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440 (eval $ac_try) 2>&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; }; then
19445 echo "$as_me:$LINENO: result: yes" >&5
19446 echo "${ECHO_T}yes" >&6
19448 cat >>confdefs.h <<\_ACEOF
19449 #define HAVE_2ARGS_REGISTER_SYSCTL 1
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19457 echo "$as_me:$LINENO: result: no" >&5
19458 echo "${ECHO_T}no" >&6
19469 echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
19470 echo $ECHO_N "checking whether set_shrinker() available... $ECHO_C" >&6
19473 cat >conftest.c <<_ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h. */
19481 #include <linux/mm.h>
19487 return set_shrinker(DEFAULT_SEEKS, NULL);
19496 rm -Rf build && mkdir -p build
19497 echo "obj-m := conftest.o" >build/Makefile
19498 if { ac_try='cp conftest.c build && make modules 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'
19499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500 (eval $ac_try) 2>&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; }; then
19510 echo "$as_me:$LINENO: result: yes" >&5
19511 echo "${ECHO_T}yes" >&6
19513 cat >>confdefs.h <<\_ACEOF
19514 #define HAVE_SET_SHRINKER 1
19519 echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19522 echo "$as_me:$LINENO: result: no" >&5
19523 echo "${ECHO_T}no" >&6
19533 echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
19534 echo $ECHO_N "checking whether struct path used in struct nameidata... $ECHO_C" >&6
19537 cat >conftest.c <<_ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19545 #include <linux/namei.h>
19551 struct nameidata nd;
19553 nd.path.mnt = NULL;
19554 nd.path.dentry = NULL;
19563 rm -Rf build && mkdir -p build
19564 echo "obj-m := conftest.o" >build/Makefile
19565 if { ac_try='cp conftest.c build && make modules 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'
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; }; then
19577 echo "$as_me:$LINENO: result: yes" >&5
19578 echo "${ECHO_T}yes" >&6
19580 cat >>confdefs.h <<\_ACEOF
19581 #define HAVE_PATH_IN_NAMEIDATA 1
19586 echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19589 echo "$as_me:$LINENO: result: no" >&5
19590 echo "${ECHO_T}no" >&6
19601 echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
19602 echo $ECHO_N "checking whether symbol task_curr is exported... $ECHO_C" >&6
19603 grep -q -E '[[:space:]]task_curr[[:space:]]' \
19604 $LINUX_OBJ/Module*.symvers 2>/dev/null
19606 if test $rc -ne 0; then
19608 for file in kernel/sched.c; do
19609 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
19610 "$LINUX_OBJ/$file" 2>/dev/null
19612 if test $rc -eq 0; then
19617 if test $export -eq 0; then
19618 echo "$as_me:$LINENO: result: no" >&5
19619 echo "${ECHO_T}no" >&6
19622 echo "$as_me:$LINENO: result: yes" >&5
19623 echo "${ECHO_T}yes" >&6
19625 cat >>confdefs.h <<\_ACEOF
19626 #define HAVE_TASK_CURR 1
19631 echo "$as_me:$LINENO: result: yes" >&5
19632 echo "${ECHO_T}yes" >&6
19634 cat >>confdefs.h <<\_ACEOF
19635 #define HAVE_TASK_CURR 1
19641 echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
19642 echo $ECHO_N "checking whether unnumbered sysctl support exists... $ECHO_C" >&6
19645 cat >conftest.c <<_ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19653 #include <linux/sysctl.h>
19659 #ifndef CTL_UNNUMBERED
19660 #error CTL_UNNUMBERED undefined
19670 rm -Rf build && mkdir -p build
19671 echo "obj-m := conftest.o" >build/Makefile
19672 if { ac_try='cp conftest.c build && make modules 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'
19673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674 (eval $ac_try) 2>&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679 (eval $ac_try) 2>&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; }; then
19684 echo "$as_me:$LINENO: result: yes" >&5
19685 echo "${ECHO_T}yes" >&6
19687 cat >>confdefs.h <<\_ACEOF
19688 #define HAVE_CTL_UNNUMBERED 1
19693 echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19696 echo "$as_me:$LINENO: result: no" >&5
19697 echo "${ECHO_T}no" >&6
19707 echo "$as_me:$LINENO: checking whether fls64() is available" >&5
19708 echo $ECHO_N "checking whether fls64() is available... $ECHO_C" >&6
19711 cat >conftest.c <<_ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h. */
19719 #include <linux/bitops.h>
19734 rm -Rf build && mkdir -p build
19735 echo "obj-m := conftest.o" >build/Makefile
19736 if { ac_try='cp conftest.c build && make modules 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'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743 (eval $ac_try) 2>&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; }; then
19748 echo "$as_me:$LINENO: result: yes" >&5
19749 echo "${ECHO_T}yes" >&6
19751 cat >>confdefs.h <<\_ACEOF
19752 #define HAVE_FLS64 1
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19760 echo "$as_me:$LINENO: result: no" >&5
19761 echo "${ECHO_T}no" >&6
19772 echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
19773 echo $ECHO_N "checking whether symbol device_create is exported... $ECHO_C" >&6
19774 grep -q -E '[[:space:]]device_create[[:space:]]' \
19775 $LINUX_OBJ/Module*.symvers 2>/dev/null
19777 if test $rc -ne 0; then
19779 for file in drivers/base/core.c; do
19780 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
19781 "$LINUX_OBJ/$file" 2>/dev/null
19783 if test $rc -eq 0; then
19788 if test $export -eq 0; then
19789 echo "$as_me:$LINENO: result: no" >&5
19790 echo "${ECHO_T}no" >&6
19793 echo "$as_me:$LINENO: result: yes" >&5
19794 echo "${ECHO_T}yes" >&6
19796 cat >>confdefs.h <<\_ACEOF
19797 #define HAVE_DEVICE_CREATE 1
19802 echo "$as_me:$LINENO: result: yes" >&5
19803 echo "${ECHO_T}yes" >&6
19805 cat >>confdefs.h <<\_ACEOF
19806 #define HAVE_DEVICE_CREATE 1
19813 echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
19814 echo $ECHO_N "checking whether device_create() wants 5 args... $ECHO_C" >&6
19815 tmp_flags="$EXTRA_KCFLAGS"
19816 EXTRA_KCFLAGS="-Werror"
19819 cat >conftest.c <<_ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h. */
19827 #include <linux/device.h>
19833 device_create(NULL, NULL, 0, NULL, "%d", 1);
19842 rm -Rf build && mkdir -p build
19843 echo "obj-m := conftest.o" >build/Makefile
19844 if { ac_try='cp conftest.c build && make modules 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'
19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19846 (eval $ac_try) 2>&5
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
19856 echo "$as_me:$LINENO: result: yes" >&5
19857 echo "${ECHO_T}yes" >&6
19859 cat >>confdefs.h <<\_ACEOF
19860 #define HAVE_5ARGS_DEVICE_CREATE 1
19865 echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19868 echo "$as_me:$LINENO: result: no" >&5
19869 echo "${ECHO_T}no" >&6
19878 EXTRA_KCFLAGS="$tmp_flags"
19881 echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
19882 echo $ECHO_N "checking whether symbol class_device_create is exported... $ECHO_C" >&6
19883 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
19884 $LINUX_OBJ/Module*.symvers 2>/dev/null
19886 if test $rc -ne 0; then
19888 for file in drivers/base/class.c; do
19889 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
19890 "$LINUX_OBJ/$file" 2>/dev/null
19892 if test $rc -eq 0; then
19897 if test $export -eq 0; then
19898 echo "$as_me:$LINENO: result: no" >&5
19899 echo "${ECHO_T}no" >&6
19902 echo "$as_me:$LINENO: result: yes" >&5
19903 echo "${ECHO_T}yes" >&6
19905 cat >>confdefs.h <<\_ACEOF
19906 #define HAVE_CLASS_DEVICE_CREATE 1
19911 echo "$as_me:$LINENO: result: yes" >&5
19912 echo "${ECHO_T}yes" >&6
19914 cat >>confdefs.h <<\_ACEOF
19915 #define HAVE_CLASS_DEVICE_CREATE 1
19922 echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
19923 echo $ECHO_N "checking whether symbol set_normalized_timespec is exported... $ECHO_C" >&6
19924 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
19925 $LINUX_OBJ/Module*.symvers 2>/dev/null
19927 if test $rc -ne 0; then
19929 for file in kernel/time.c; do
19930 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
19931 "$LINUX_OBJ/$file" 2>/dev/null
19933 if test $rc -eq 0; then
19938 if test $export -eq 0; then
19939 echo "$as_me:$LINENO: result: no" >&5
19940 echo "${ECHO_T}no" >&6
19943 echo "$as_me:$LINENO: result: yes" >&5
19944 echo "${ECHO_T}yes" >&6
19946 cat >>confdefs.h <<\_ACEOF
19947 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
19952 echo "$as_me:$LINENO: result: yes" >&5
19953 echo "${ECHO_T}yes" >&6
19955 cat >>confdefs.h <<\_ACEOF
19956 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
19963 echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
19964 echo $ECHO_N "checking whether set_normalized_timespec() is an inline... $ECHO_C" >&6
19967 cat >conftest.c <<_ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19975 #include <linux/time.h>
19976 void set_normalized_timespec(struct timespec *ts,
19977 time_t sec, long nsec) { }
19990 rm -Rf build && mkdir -p build
19991 echo "obj-m := conftest.o" >build/Makefile
19992 if { ac_try='cp conftest.c build && make modules 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'
19993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994 (eval $ac_try) 2>&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; }; then
20004 echo "$as_me:$LINENO: result: no" >&5
20005 echo "${ECHO_T}no" >&6
20008 echo "$as_me: failed program was:" >&5
20009 sed 's/^/| /' conftest.$ac_ext >&5
20011 echo "$as_me:$LINENO: result: yes" >&5
20012 echo "${ECHO_T}yes" >&6
20014 cat >>confdefs.h <<\_ACEOF
20015 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
20028 echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
20029 echo $ECHO_N "checking whether timespec_sub() is available... $ECHO_C" >&6
20032 cat >conftest.c <<_ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h. */
20040 #include <linux/time.h>
20046 struct timespec a, b, c = { 0 };
20047 c = timespec_sub(a, b);
20056 rm -Rf build && mkdir -p build
20057 echo "obj-m := conftest.o" >build/Makefile
20058 if { ac_try='cp conftest.c build && make modules 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'
20059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060 (eval $ac_try) 2>&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20065 (eval $ac_try) 2>&5
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); }; }; then
20070 echo "$as_me:$LINENO: result: yes" >&5
20071 echo "${ECHO_T}yes" >&6
20073 cat >>confdefs.h <<\_ACEOF
20074 #define HAVE_TIMESPEC_SUB 1
20079 echo "$as_me: failed program was:" >&5
20080 sed 's/^/| /' conftest.$ac_ext >&5
20082 echo "$as_me:$LINENO: result: no" >&5
20083 echo "${ECHO_T}no" >&6
20094 echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
20095 echo $ECHO_N "checking whether init_utsname() is available... $ECHO_C" >&6
20098 cat >conftest.c <<_ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h. */
20106 #include <linux/utsname.h>
20112 struct new_utsname *a = init_utsname();
20121 rm -Rf build && mkdir -p build
20122 echo "obj-m := conftest.o" >build/Makefile
20123 if { ac_try='cp conftest.c build && make modules 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'
20124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125 (eval $ac_try) 2>&5
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130 (eval $ac_try) 2>&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; }; then
20135 echo "$as_me:$LINENO: result: yes" >&5
20136 echo "${ECHO_T}yes" >&6
20138 cat >>confdefs.h <<\_ACEOF
20139 #define HAVE_INIT_UTSNAME 1
20144 echo "$as_me: failed program was:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20147 echo "$as_me:$LINENO: result: no" >&5
20148 echo "${ECHO_T}no" >&6
20159 echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
20160 echo $ECHO_N "checking whether header linux/fdtable.h exists... $ECHO_C" >&6
20163 cat >conftest.c <<_ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h. */
20171 #include <linux/fdtable.h>
20186 rm -Rf build && mkdir -p build
20187 echo "obj-m := conftest.o" >build/Makefile
20188 if { ac_try='cp conftest.c build && make modules 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'
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190 (eval $ac_try) 2>&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; }; then
20201 cat >>confdefs.h <<\_ACEOF
20202 #define HAVE_FDTABLE_HEADER 1
20205 echo "$as_me:$LINENO: result: yes" >&5
20206 echo "${ECHO_T}yes" >&6
20210 echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20213 echo "$as_me:$LINENO: result: no" >&5
20214 echo "${ECHO_T}no" >&6
20227 echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
20228 echo $ECHO_N "checking whether files_fdtable() is available... $ECHO_C" >&6
20231 cat >conftest.c <<_ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h. */
20239 #include <linux/sched.h>
20240 #include <linux/file.h>
20241 #ifdef HAVE_FDTABLE_HEADER
20242 #include <linux/fdtable.h>
20249 struct files_struct *files = current->files;
20250 struct fdtable *fdt = files_fdtable(files);
20259 rm -Rf build && mkdir -p build
20260 echo "obj-m := conftest.o" >build/Makefile
20261 if { ac_try='cp conftest.c build && make modules 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'
20262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263 (eval $ac_try) 2>&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268 (eval $ac_try) 2>&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; }; then
20273 echo "$as_me:$LINENO: result: yes" >&5
20274 echo "${ECHO_T}yes" >&6
20276 cat >>confdefs.h <<\_ACEOF
20277 #define HAVE_FILES_FDTABLE 1
20282 echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20285 echo "$as_me:$LINENO: result: no" >&5
20286 echo "${ECHO_T}no" >&6
20297 echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
20298 echo $ECHO_N "checking whether header linux/uaccess.h exists... $ECHO_C" >&6
20301 cat >conftest.c <<_ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20309 #include <linux/uaccess.h>
20324 rm -Rf build && mkdir -p build
20325 echo "obj-m := conftest.o" >build/Makefile
20326 if { ac_try='cp conftest.c build && make modules 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'
20327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20328 (eval $ac_try) 2>&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333 (eval $ac_try) 2>&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }; }; then
20339 cat >>confdefs.h <<\_ACEOF
20340 #define HAVE_UACCESS_HEADER 1
20343 echo "$as_me:$LINENO: result: yes" >&5
20344 echo "${ECHO_T}yes" >&6
20348 echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20351 echo "$as_me:$LINENO: result: no" >&5
20352 echo "${ECHO_T}no" >&6
20365 echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
20366 echo $ECHO_N "checking whether kmalloc_node() is available... $ECHO_C" >&6
20369 cat >conftest.c <<_ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h. */
20377 #include <linux/slab.h>
20383 void *a = kmalloc_node(1, GFP_KERNEL, 0);
20392 rm -Rf build && mkdir -p build
20393 echo "obj-m := conftest.o" >build/Makefile
20394 if { ac_try='cp conftest.c build && make modules 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'
20395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20396 (eval $ac_try) 2>&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401 (eval $ac_try) 2>&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); }; }; then
20406 echo "$as_me:$LINENO: result: yes" >&5
20407 echo "${ECHO_T}yes" >&6
20409 cat >>confdefs.h <<\_ACEOF
20410 #define HAVE_KMALLOC_NODE 1
20415 echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20418 echo "$as_me:$LINENO: result: no" >&5
20419 echo "${ECHO_T}no" >&6
20430 echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
20431 echo $ECHO_N "checking whether symbol monotonic_clock is exported... $ECHO_C" >&6
20432 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
20433 $LINUX_OBJ/Module*.symvers 2>/dev/null
20435 if test $rc -ne 0; then
20438 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
20439 "$LINUX_OBJ/$file" 2>/dev/null
20441 if test $rc -eq 0; then
20446 if test $export -eq 0; then
20447 echo "$as_me:$LINENO: result: no" >&5
20448 echo "${ECHO_T}no" >&6
20451 echo "$as_me:$LINENO: result: yes" >&5
20452 echo "${ECHO_T}yes" >&6
20454 cat >>confdefs.h <<\_ACEOF
20455 #define HAVE_MONOTONIC_CLOCK 1
20460 echo "$as_me:$LINENO: result: yes" >&5
20461 echo "${ECHO_T}yes" >&6
20463 cat >>confdefs.h <<\_ACEOF
20464 #define HAVE_MONOTONIC_CLOCK 1
20471 echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
20472 echo $ECHO_N "checking whether struct inode has i_mutex... $ECHO_C" >&6
20475 cat >conftest.c <<_ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h. */
20483 #include <linux/fs.h>
20484 #include <linux/mutex.h>
20491 mutex_init(&i.i_mutex);
20500 rm -Rf build && mkdir -p build
20501 echo "obj-m := conftest.o" >build/Makefile
20502 if { ac_try='cp conftest.c build && make modules 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'
20503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504 (eval $ac_try) 2>&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20509 (eval $ac_try) 2>&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); }; }; then
20514 echo "$as_me:$LINENO: result: yes" >&5
20515 echo "${ECHO_T}yes" >&6
20517 cat >>confdefs.h <<\_ACEOF
20518 #define HAVE_INODE_I_MUTEX 1
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20526 echo "$as_me:$LINENO: result: no" >&5
20527 echo "${ECHO_T}no" >&6
20538 echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
20539 echo $ECHO_N "checking whether mutex_lock_nested() is available... $ECHO_C" >&6
20542 cat >conftest.c <<_ACEOF
20545 cat confdefs.h >>conftest.$ac_ext
20546 cat >>conftest.$ac_ext <<_ACEOF
20547 /* end confdefs.h. */
20550 #include <linux/mutex.h>
20556 struct mutex mutex;
20557 mutex_init(&mutex);
20558 mutex_lock_nested(&mutex, 0);
20567 rm -Rf build && mkdir -p build
20568 echo "obj-m := conftest.o" >build/Makefile
20569 if { ac_try='cp conftest.c build && make modules 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'
20570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571 (eval $ac_try) 2>&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20576 (eval $ac_try) 2>&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); }; }; then
20581 echo "$as_me:$LINENO: result: yes" >&5
20582 echo "${ECHO_T}yes" >&6
20584 cat >>confdefs.h <<\_ACEOF
20585 #define HAVE_MUTEX_LOCK_NESTED 1
20590 echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20593 echo "$as_me:$LINENO: result: no" >&5
20594 echo "${ECHO_T}no" >&6
20605 echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
20606 echo $ECHO_N "checking whether symbol div64_64 is exported... $ECHO_C" >&6
20607 grep -q -E '[[:space:]]div64_64[[:space:]]' \
20608 $LINUX_OBJ/Module*.symvers 2>/dev/null
20610 if test $rc -ne 0; then
20613 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
20614 "$LINUX_OBJ/$file" 2>/dev/null
20616 if test $rc -eq 0; then
20621 if test $export -eq 0; then
20622 echo "$as_me:$LINENO: result: no" >&5
20623 echo "${ECHO_T}no" >&6
20626 echo "$as_me:$LINENO: result: yes" >&5
20627 echo "${ECHO_T}yes" >&6
20629 cat >>confdefs.h <<\_ACEOF
20630 #define HAVE_DIV64_64 1
20635 echo "$as_me:$LINENO: result: yes" >&5
20636 echo "${ECHO_T}yes" >&6
20638 cat >>confdefs.h <<\_ACEOF
20639 #define HAVE_DIV64_64 1
20646 echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
20647 echo $ECHO_N "checking whether symbol div64_u64 is exported... $ECHO_C" >&6
20648 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
20649 $LINUX_OBJ/Module*.symvers 2>/dev/null
20651 if test $rc -ne 0; then
20654 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
20655 "$LINUX_OBJ/$file" 2>/dev/null
20657 if test $rc -eq 0; then
20662 if test $export -eq 0; then
20663 echo "$as_me:$LINENO: result: no" >&5
20664 echo "${ECHO_T}no" >&6
20667 echo "$as_me:$LINENO: result: yes" >&5
20668 echo "${ECHO_T}yes" >&6
20670 cat >>confdefs.h <<\_ACEOF
20671 #define HAVE_DIV64_U64 1
20676 echo "$as_me:$LINENO: result: yes" >&5
20677 echo "${ECHO_T}yes" >&6
20679 cat >>confdefs.h <<\_ACEOF
20680 #define HAVE_DIV64_U64 1
20687 echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
20688 echo $ECHO_N "checking whether on_each_cpu() wants 3 args... $ECHO_C" >&6
20691 cat >conftest.c <<_ACEOF
20694 cat confdefs.h >>conftest.$ac_ext
20695 cat >>conftest.$ac_ext <<_ACEOF
20696 /* end confdefs.h. */
20699 #include <linux/smp.h>
20705 on_each_cpu(NULL, NULL, 0);
20714 rm -Rf build && mkdir -p build
20715 echo "obj-m := conftest.o" >build/Makefile
20716 if { ac_try='cp conftest.c build && make modules 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'
20717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718 (eval $ac_try) 2>&5
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723 (eval $ac_try) 2>&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; }; then
20728 echo "$as_me:$LINENO: result: yes" >&5
20729 echo "${ECHO_T}yes" >&6
20731 cat >>confdefs.h <<\_ACEOF
20732 #define HAVE_3ARGS_ON_EACH_CPU 1
20737 echo "$as_me: failed program was:" >&5
20738 sed 's/^/| /' conftest.$ac_ext >&5
20740 echo "$as_me:$LINENO: result: no" >&5
20741 echo "${ECHO_T}no" >&6
20752 echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
20753 echo $ECHO_N "checking whether symbol kallsyms_lookup_name is exported... $ECHO_C" >&6
20754 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
20755 $LINUX_OBJ/Module*.symvers 2>/dev/null
20757 if test $rc -ne 0; then
20760 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
20761 "$LINUX_OBJ/$file" 2>/dev/null
20763 if test $rc -eq 0; then
20768 if test $export -eq 0; then
20769 echo "$as_me:$LINENO: result: no" >&5
20770 echo "${ECHO_T}no" >&6
20773 echo "$as_me:$LINENO: result: yes" >&5
20774 echo "${ECHO_T}yes" >&6
20776 cat >>confdefs.h <<\_ACEOF
20777 #define HAVE_KALLSYMS_LOOKUP_NAME 1
20782 echo "$as_me:$LINENO: result: yes" >&5
20783 echo "${ECHO_T}yes" >&6
20785 cat >>confdefs.h <<\_ACEOF
20786 #define HAVE_KALLSYMS_LOOKUP_NAME 1
20793 echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
20794 echo $ECHO_N "checking whether symbol get_vmalloc_info is exported... $ECHO_C" >&6
20795 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
20796 $LINUX_OBJ/Module*.symvers 2>/dev/null
20798 if test $rc -ne 0; then
20801 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
20802 "$LINUX_OBJ/$file" 2>/dev/null
20804 if test $rc -eq 0; then
20809 if test $export -eq 0; then
20810 echo "$as_me:$LINENO: result: no" >&5
20811 echo "${ECHO_T}no" >&6
20814 echo "$as_me:$LINENO: result: yes" >&5
20815 echo "${ECHO_T}yes" >&6
20817 cat >>confdefs.h <<\_ACEOF
20818 #define HAVE_GET_VMALLOC_INFO 1
20823 echo "$as_me:$LINENO: result: yes" >&5
20824 echo "${ECHO_T}yes" >&6
20826 cat >>confdefs.h <<\_ACEOF
20827 #define HAVE_GET_VMALLOC_INFO 1
20834 echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
20835 echo $ECHO_N "checking whether symbol *_pgdat exist... $ECHO_C" >&6
20836 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
20838 if test $rc -eq 0; then
20839 echo "$as_me:$LINENO: result: yes" >&5
20840 echo "${ECHO_T}yes" >&6
20842 cat >>confdefs.h <<\_ACEOF
20843 #define HAVE_PGDAT_HELPERS 1
20847 echo "$as_me:$LINENO: result: no" >&5
20848 echo "${ECHO_T}no" >&6
20852 echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
20853 echo $ECHO_N "checking whether symbol first_online_pgdat is exported... $ECHO_C" >&6
20854 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
20855 $LINUX_OBJ/Module*.symvers 2>/dev/null
20857 if test $rc -ne 0; then
20860 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
20861 "$LINUX_OBJ/$file" 2>/dev/null
20863 if test $rc -eq 0; then
20868 if test $export -eq 0; then
20869 echo "$as_me:$LINENO: result: no" >&5
20870 echo "${ECHO_T}no" >&6
20873 echo "$as_me:$LINENO: result: yes" >&5
20874 echo "${ECHO_T}yes" >&6
20876 cat >>confdefs.h <<\_ACEOF
20877 #define HAVE_FIRST_ONLINE_PGDAT 1
20882 echo "$as_me:$LINENO: result: yes" >&5
20883 echo "${ECHO_T}yes" >&6
20885 cat >>confdefs.h <<\_ACEOF
20886 #define HAVE_FIRST_ONLINE_PGDAT 1
20893 echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
20894 echo $ECHO_N "checking whether symbol next_online_pgdat is exported... $ECHO_C" >&6
20895 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
20896 $LINUX_OBJ/Module*.symvers 2>/dev/null
20898 if test $rc -ne 0; then
20901 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
20902 "$LINUX_OBJ/$file" 2>/dev/null
20904 if test $rc -eq 0; then
20909 if test $export -eq 0; then
20910 echo "$as_me:$LINENO: result: no" >&5
20911 echo "${ECHO_T}no" >&6
20914 echo "$as_me:$LINENO: result: yes" >&5
20915 echo "${ECHO_T}yes" >&6
20917 cat >>confdefs.h <<\_ACEOF
20918 #define HAVE_NEXT_ONLINE_PGDAT 1
20923 echo "$as_me:$LINENO: result: yes" >&5
20924 echo "${ECHO_T}yes" >&6
20926 cat >>confdefs.h <<\_ACEOF
20927 #define HAVE_NEXT_ONLINE_PGDAT 1
20934 echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
20935 echo $ECHO_N "checking whether symbol next_zone is exported... $ECHO_C" >&6
20936 grep -q -E '[[:space:]]next_zone[[:space:]]' \
20937 $LINUX_OBJ/Module*.symvers 2>/dev/null
20939 if test $rc -ne 0; then
20942 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
20943 "$LINUX_OBJ/$file" 2>/dev/null
20945 if test $rc -eq 0; then
20950 if test $export -eq 0; then
20951 echo "$as_me:$LINENO: result: no" >&5
20952 echo "${ECHO_T}no" >&6
20955 echo "$as_me:$LINENO: result: yes" >&5
20956 echo "${ECHO_T}yes" >&6
20958 cat >>confdefs.h <<\_ACEOF
20959 #define HAVE_NEXT_ZONE 1
20964 echo "$as_me:$LINENO: result: yes" >&5
20965 echo "${ECHO_T}yes" >&6
20967 cat >>confdefs.h <<\_ACEOF
20968 #define HAVE_NEXT_ZONE 1
20975 echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
20976 echo $ECHO_N "checking whether symbol pgdat_list is exported... $ECHO_C" >&6
20977 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
20978 $LINUX_OBJ/Module*.symvers 2>/dev/null
20980 if test $rc -ne 0; then
20983 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
20984 "$LINUX_OBJ/$file" 2>/dev/null
20986 if test $rc -eq 0; then
20991 if test $export -eq 0; then
20992 echo "$as_me:$LINENO: result: no" >&5
20993 echo "${ECHO_T}no" >&6
20996 echo "$as_me:$LINENO: result: yes" >&5
20997 echo "${ECHO_T}yes" >&6
20999 cat >>confdefs.h <<\_ACEOF
21000 #define HAVE_PGDAT_LIST 1
21005 echo "$as_me:$LINENO: result: yes" >&5
21006 echo "${ECHO_T}yes" >&6
21008 cat >>confdefs.h <<\_ACEOF
21009 #define HAVE_PGDAT_LIST 1
21016 echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
21017 echo $ECHO_N "checking whether symbol get_zone_counts is exported... $ECHO_C" >&6
21018 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
21019 $LINUX_OBJ/Module*.symvers 2>/dev/null
21021 if test $rc -ne 0; then
21024 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
21025 "$LINUX_OBJ/$file" 2>/dev/null
21027 if test $rc -eq 0; then
21032 if test $export -eq 0; then
21033 echo "$as_me:$LINENO: result: no" >&5
21034 echo "${ECHO_T}no" >&6
21037 echo "$as_me:$LINENO: result: yes" >&5
21038 echo "${ECHO_T}yes" >&6
21040 cat >>confdefs.h <<\_ACEOF
21041 #define HAVE_GET_ZONE_COUNTS 1
21046 echo "$as_me:$LINENO: result: yes" >&5
21047 echo "${ECHO_T}yes" >&6
21049 cat >>confdefs.h <<\_ACEOF
21050 #define HAVE_GET_ZONE_COUNTS 1
21057 echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
21058 echo $ECHO_N "checking whether global_page_state() is available... $ECHO_C" >&6
21061 cat >conftest.c <<_ACEOF
21064 cat confdefs.h >>conftest.$ac_ext
21065 cat >>conftest.$ac_ext <<_ACEOF
21066 /* end confdefs.h. */
21069 #include <linux/vmstat.h>
21075 unsigned long state;
21076 state = global_page_state(NR_FREE_PAGES);
21085 rm -Rf build && mkdir -p build
21086 echo "obj-m := conftest.o" >build/Makefile
21087 if { ac_try='cp conftest.c build && make modules 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'
21088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21089 (eval $ac_try) 2>&5
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
21099 echo "$as_me:$LINENO: result: yes" >&5
21100 echo "${ECHO_T}yes" >&6
21102 cat >>confdefs.h <<\_ACEOF
21103 #define HAVE_GLOBAL_PAGE_STATE 1
21108 echo "$as_me: failed program was:" >&5
21109 sed 's/^/| /' conftest.$ac_ext >&5
21111 echo "$as_me:$LINENO: result: no" >&5
21112 echo "${ECHO_T}no" >&6
21123 echo "$as_me:$LINENO: checking whether free/inactive/active page state is available" >&5
21124 echo $ECHO_N "checking whether free/inactive/active page state is available... $ECHO_C" >&6
21127 cat >conftest.c <<_ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21135 #include <linux/mmzone.h>
21141 enum zone_stat_item i1, i2, i3;
21142 i1 = NR_FREE_PAGES;
21153 rm -Rf build && mkdir -p build
21154 echo "obj-m := conftest.o" >build/Makefile
21155 if { ac_try='cp conftest.c build && make modules 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'
21156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21157 (eval $ac_try) 2>&5
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162 (eval $ac_try) 2>&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; }; then
21167 echo "$as_me:$LINENO: result: yes" >&5
21168 echo "${ECHO_T}yes" >&6
21170 cat >>confdefs.h <<\_ACEOF
21171 #define HAVE_ZONE_STAT_ITEM_FIA 1
21176 echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21179 echo "$as_me:$LINENO: result: no" >&5
21180 echo "${ECHO_T}no" >&6
21190 echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
21191 echo $ECHO_N "checking whether vfs_unlink() wants 2 args... $ECHO_C" >&6
21194 cat >conftest.c <<_ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h. */
21202 #include <linux/fs.h>
21208 vfs_unlink(NULL, NULL);
21217 rm -Rf build && mkdir -p build
21218 echo "obj-m := conftest.o" >build/Makefile
21219 if { ac_try='cp conftest.c build && make modules 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'
21220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21221 (eval $ac_try) 2>&5
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21226 (eval $ac_try) 2>&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); }; }; then
21231 echo "$as_me:$LINENO: result: yes" >&5
21232 echo "${ECHO_T}yes" >&6
21234 cat >>confdefs.h <<\_ACEOF
21235 #define HAVE_2ARGS_VFS_UNLINK 1
21240 echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21243 echo "$as_me:$LINENO: result: no" >&5
21244 echo "${ECHO_T}no" >&6
21254 echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
21255 echo $ECHO_N "checking whether vfs_rename() wants 4 args... $ECHO_C" >&6
21258 cat >conftest.c <<_ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h. */
21266 #include <linux/fs.h>
21272 vfs_rename(NULL, NULL, NULL, NULL);
21281 rm -Rf build && mkdir -p build
21282 echo "obj-m := conftest.o" >build/Makefile
21283 if { ac_try='cp conftest.c build && make modules 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'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290 (eval $ac_try) 2>&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); }; }; then
21295 echo "$as_me:$LINENO: result: yes" >&5
21296 echo "${ECHO_T}yes" >&6
21298 cat >>confdefs.h <<\_ACEOF
21299 #define HAVE_4ARGS_VFS_RENAME 1
21304 echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21307 echo "$as_me:$LINENO: result: no" >&5
21308 echo "${ECHO_T}no" >&6
21319 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"
21322 cat >confcache <<\_ACEOF
21323 # This file is a shell script that caches the results of configure
21324 # tests run on this system so they can be shared between configure
21325 # scripts and configure runs, see configure's option --config-cache.
21326 # It is not useful on other systems. If it contains results you don't
21327 # want to keep, you may remove or edit it.
21329 # config.status only pays attention to the cache file if you give it
21330 # the --recheck option to rerun configure.
21332 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21333 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21334 # following values.
21338 # The following way of writing the cache mishandles newlines in values,
21339 # but we know of no workaround that is simple, portable, and efficient.
21340 # So, don't put newlines in cache variables' values.
21341 # Ultrix sh set writes to stderr and can't be redirected directly,
21342 # and sets the high bit in the cache file unless we assign to the vars.
21345 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21347 # `set' does not quote correctly, so add quotes (double-quote
21348 # substitution turns \\\\ into \\, and sed turns \\ into \).
21351 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21354 # `set' quotes correctly as required by POSIX, so do not add quotes.
21356 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21363 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21365 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21367 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21368 if test -w $cache_file; then
21369 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21370 cat confcache >$cache_file
21372 echo "not updating unwritable cache $cache_file"
21377 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21378 # Let make expand exec_prefix.
21379 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21381 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21382 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21383 # trailing colons and then remove the whole line if VPATH becomes empty
21384 # (actually we leave an empty line to preserve line numbers).
21385 if test "x$srcdir" = x.; then
21386 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21387 s/:*\$(srcdir):*/:/;
21388 s/:*\${srcdir}:*/:/;
21390 s/^\([^=]*=[ ]*\):*/\1/;
21396 DEFS=-DHAVE_CONFIG_H
21400 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21401 # 1. Remove the extension, and $U if already installed.
21402 ac_i=`echo "$ac_i" |
21403 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21405 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21406 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21408 LIBOBJS=$ac_libobjs
21410 LTLIBOBJS=$ac_ltlibobjs
21413 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21414 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21415 Usually this means the macro was only invoked conditionally." >&5
21416 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21417 Usually this means the macro was only invoked conditionally." >&2;}
21418 { (exit 1); exit 1; }; }
21420 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21421 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21422 Usually this means the macro was only invoked conditionally." >&5
21423 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21424 Usually this means the macro was only invoked conditionally." >&2;}
21425 { (exit 1); exit 1; }; }
21427 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21428 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21429 Usually this means the macro was only invoked conditionally." >&5
21430 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21431 Usually this means the macro was only invoked conditionally." >&2;}
21432 { (exit 1); exit 1; }; }
21434 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21435 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21436 Usually this means the macro was only invoked conditionally." >&5
21437 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21438 Usually this means the macro was only invoked conditionally." >&2;}
21439 { (exit 1); exit 1; }; }
21442 : ${CONFIG_STATUS=./config.status}
21443 ac_clean_files_save=$ac_clean_files
21444 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21445 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21446 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21447 cat >$CONFIG_STATUS <<_ACEOF
21449 # Generated by $as_me.
21450 # Run this file to recreate the current configuration.
21451 # Compiler output produced by configure, useful for debugging
21452 # configure, is in config.log if it exists.
21455 ac_cs_recheck=false
21457 SHELL=\${CONFIG_SHELL-$SHELL}
21460 cat >>$CONFIG_STATUS <<\_ACEOF
21461 ## --------------------- ##
21462 ## M4sh Initialization. ##
21463 ## --------------------- ##
21465 # Be Bourne compatible
21466 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21469 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21470 # is contrary to our usage. Disable this feature.
21471 alias -g '${1+"$@"}'='"$@"'
21472 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21475 DUALCASE=1; export DUALCASE # for MKS sh
21477 # Support unset when possible.
21478 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21485 # Work around bugs in pre-3.0 UWIN ksh.
21486 $as_unset ENV MAIL MAILPATH
21493 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21494 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21495 LC_TELEPHONE LC_TIME
21497 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21498 eval $as_var=C; export $as_var
21504 # Required to use basename.
21505 if expr a : '\(a\)' >/dev/null 2>&1; then
21511 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21512 as_basename=basename
21518 # Name of the executable.
21519 as_me=`$as_basename "$0" ||
21520 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21521 X"$0" : 'X\(//\)$' \| \
21522 X"$0" : 'X\(/\)$' \| \
21523 . : '\(.\)' 2>/dev/null ||
21525 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21526 /^X\/\(\/\/\)$/{ s//\1/; q; }
21527 /^X\/\(\/\).*/{ s//\1/; q; }
21531 # PATH needs CR, and LINENO needs CR and PATH.
21532 # Avoid depending upon Character Ranges.
21533 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21534 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21535 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21536 as_cr_digits='0123456789'
21537 as_cr_alnum=$as_cr_Letters$as_cr_digits
21539 # The user is always right.
21540 if test "${PATH_SEPARATOR+set}" != set; then
21541 echo "#! /bin/sh" >conf$$.sh
21542 echo "exit 0" >>conf$$.sh
21544 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21553 as_lineno_1=$LINENO
21554 as_lineno_2=$LINENO
21555 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21556 test "x$as_lineno_1" != "x$as_lineno_2" &&
21557 test "x$as_lineno_3" = "x$as_lineno_2" || {
21558 # Find who we are. Look in the path if we contain no path at all
21561 *[\\/]* ) as_myself=$0 ;;
21562 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21563 for as_dir in $PATH
21566 test -z "$as_dir" && as_dir=.
21567 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21572 # We did not find ourselves, most probably we were run as `sh COMMAND'
21573 # in which case we are not to be found in the path.
21574 if test "x$as_myself" = x; then
21577 if test ! -f "$as_myself"; then
21578 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21579 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21580 { (exit 1); exit 1; }; }
21582 case $CONFIG_SHELL in
21584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21585 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21588 test -z "$as_dir" && as_dir=.
21589 for as_base in sh bash ksh sh5; do
21592 if ("$as_dir/$as_base" -c '
21593 as_lineno_1=$LINENO
21594 as_lineno_2=$LINENO
21595 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21596 test "x$as_lineno_1" != "x$as_lineno_2" &&
21597 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21598 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21599 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21600 CONFIG_SHELL=$as_dir/$as_base
21601 export CONFIG_SHELL
21602 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21610 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21611 # uniformly replaced by the line number. The first 'sed' inserts a
21612 # line-number line before each line; the second 'sed' does the real
21613 # work. The second script uses 'N' to pair each line-number line
21614 # with the numbered line, and appends trailing '-' during
21615 # substitution so that $LINENO is not a special case at line end.
21616 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21617 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21618 sed '=' <$as_myself |
21623 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21626 s,^['$as_cr_digits']*\n,,
21627 ' >$as_me.lineno &&
21628 chmod +x $as_me.lineno ||
21629 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21630 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21631 { (exit 1); exit 1; }; }
21633 # Don't try to exec as it changes $[0], causing all sort of problems
21634 # (the dirname of $[0] is not the place where we might find the
21635 # original and so on. Autoconf is especially sensible to this).
21637 # Exit status is that of the last command.
21642 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21643 *c*,-n*) ECHO_N= ECHO_C='
21645 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21646 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21649 if expr a : '\(a\)' >/dev/null 2>&1; then
21655 rm -f conf$$ conf$$.exe conf$$.file
21657 if ln -s conf$$.file conf$$ 2>/dev/null; then
21658 # We could just check for DJGPP; but this test a) works b) is more generic
21659 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21660 if test -f conf$$.exe; then
21661 # Don't use ln at all; we don't have any links
21666 elif ln conf$$.file conf$$ 2>/dev/null; then
21671 rm -f conf$$ conf$$.exe conf$$.file
21673 if mkdir -p . 2>/dev/null; then
21676 test -d ./-p && rmdir ./-p
21680 as_executable_p="test -f"
21682 # Sed expression to map a string onto a valid CPP name.
21683 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21685 # Sed expression to map a string onto a valid variable name.
21686 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21690 # We need space, tab and new line, in precisely that order.
21700 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21701 # report actual input values of CONFIG_FILES etc. instead of their
21702 # values after options handling. Logging --version etc. is OK.
21706 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21707 ## Running $as_me. ##
21712 This file was extended by $as_me, which was
21713 generated by GNU Autoconf 2.59. Invocation command line was
21715 CONFIG_FILES = $CONFIG_FILES
21716 CONFIG_HEADERS = $CONFIG_HEADERS
21717 CONFIG_LINKS = $CONFIG_LINKS
21718 CONFIG_COMMANDS = $CONFIG_COMMANDS
21722 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21726 # Files that config.status was made for.
21727 if test -n "$ac_config_files"; then
21728 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21731 if test -n "$ac_config_headers"; then
21732 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21735 if test -n "$ac_config_links"; then
21736 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21739 if test -n "$ac_config_commands"; then
21740 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21743 cat >>$CONFIG_STATUS <<\_ACEOF
21746 \`$as_me' instantiates files from templates according to the
21747 current configuration.
21749 Usage: $0 [OPTIONS] [FILE]...
21751 -h, --help print this help, then exit
21752 -V, --version print version number, then exit
21753 -q, --quiet do not print progress messages
21754 -d, --debug don't remove temporary files
21755 --recheck update $as_me by reconfiguring in the same conditions
21756 --file=FILE[:TEMPLATE]
21757 instantiate the configuration file FILE
21758 --header=FILE[:TEMPLATE]
21759 instantiate the configuration header FILE
21761 Configuration files:
21764 Configuration headers:
21767 Configuration commands:
21770 Report bugs to <bug-autoconf@gnu.org>."
21773 cat >>$CONFIG_STATUS <<_ACEOF
21776 configured by $0, generated by GNU Autoconf 2.59,
21777 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21779 Copyright (C) 2003 Free Software Foundation, Inc.
21780 This config.status script is free software; the Free Software Foundation
21781 gives unlimited permission to copy, distribute and modify it."
21786 cat >>$CONFIG_STATUS <<\_ACEOF
21787 # If no file are specified by the user, then we need to provide default
21788 # value. By we need to know if files were specified by the user.
21794 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21795 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21803 *) # This is not an option, so the user has probably given explicit
21806 ac_need_defaults=false;;
21810 # Handling of the options.
21812 cat >>$CONFIG_STATUS <<\_ACEOF
21813 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21815 --version | --vers* | -V )
21816 echo "$ac_cs_version"; exit 0 ;;
21818 # Conflict between --help and --header
21819 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21820 Try \`$0 --help' for more information." >&5
21821 echo "$as_me: error: ambiguous option: $1
21822 Try \`$0 --help' for more information." >&2;}
21823 { (exit 1); exit 1; }; };;
21824 --help | --hel | -h )
21825 echo "$ac_cs_usage"; exit 0 ;;
21826 --debug | --d* | -d )
21828 --file | --fil | --fi | --f )
21830 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21831 ac_need_defaults=false;;
21832 --header | --heade | --head | --hea )
21834 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21835 ac_need_defaults=false;;
21836 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21837 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21840 # This is an error.
21841 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21842 Try \`$0 --help' for more information." >&5
21843 echo "$as_me: error: unrecognized option: $1
21844 Try \`$0 --help' for more information." >&2;}
21845 { (exit 1); exit 1; }; } ;;
21847 *) ac_config_targets="$ac_config_targets $1" ;;
21853 ac_configure_extra_args=
21855 if $ac_cs_silent; then
21857 ac_configure_extra_args="$ac_configure_extra_args --silent"
21861 cat >>$CONFIG_STATUS <<_ACEOF
21862 if \$ac_cs_recheck; then
21863 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21864 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21869 cat >>$CONFIG_STATUS <<_ACEOF
21871 # INIT-COMMANDS section.
21874 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21880 cat >>$CONFIG_STATUS <<\_ACEOF
21881 for ac_config_target in $ac_config_targets
21883 case "$ac_config_target" in
21884 # Handling of arguments.
21885 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21886 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21887 "cmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
21888 "module/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
21889 "module/spl/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
21890 "module/splat/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
21891 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21892 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21893 "spl.spec" ) CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
21894 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21895 "spl_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
21896 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21897 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21898 { (exit 1); exit 1; }; };;
21902 # If the user did not use the arguments to specify the items to instantiate,
21903 # then the envvar interface is used. Set only those that are not.
21904 # We use the long form for the default assignment because of an extremely
21905 # bizarre bug on SunOS 4.1.3.
21906 if $ac_need_defaults; then
21907 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21908 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21909 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21912 # Have a temporary directory for convenience. Make it in the build tree
21913 # simply because there is no reason to put it here, and in addition,
21914 # creating and moving files from /tmp can sometimes cause problems.
21915 # Create a temporary directory, and hook for its removal unless debugging.
21918 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21919 trap '{ (exit 1); exit 1; }' 1 2 13 15
21922 # Create a (secure) tmp directory for tmp files.
21925 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21926 test -n "$tmp" && test -d "$tmp"
21929 tmp=./confstat$$-$RANDOM
21930 (umask 077 && mkdir $tmp)
21933 echo "$me: cannot create a temporary directory in ." >&2
21934 { (exit 1); exit 1; }
21939 cat >>$CONFIG_STATUS <<_ACEOF
21942 # CONFIG_FILES section.
21945 # No need to generate the scripts if there are no CONFIG_FILES.
21946 # This happens for instance when ./config.status config.h
21947 if test -n "\$CONFIG_FILES"; then
21948 # Protect against being on the right side of a sed subst in config.status.
21949 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21950 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21951 s,@SHELL@,$SHELL,;t t
21952 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21953 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21954 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21955 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21956 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21957 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21958 s,@exec_prefix@,$exec_prefix,;t t
21959 s,@prefix@,$prefix,;t t
21960 s,@program_transform_name@,$program_transform_name,;t t
21961 s,@bindir@,$bindir,;t t
21962 s,@sbindir@,$sbindir,;t t
21963 s,@libexecdir@,$libexecdir,;t t
21964 s,@datadir@,$datadir,;t t
21965 s,@sysconfdir@,$sysconfdir,;t t
21966 s,@sharedstatedir@,$sharedstatedir,;t t
21967 s,@localstatedir@,$localstatedir,;t t
21968 s,@libdir@,$libdir,;t t
21969 s,@includedir@,$includedir,;t t
21970 s,@oldincludedir@,$oldincludedir,;t t
21971 s,@infodir@,$infodir,;t t
21972 s,@mandir@,$mandir,;t t
21973 s,@build_alias@,$build_alias,;t t
21974 s,@host_alias@,$host_alias,;t t
21975 s,@target_alias@,$target_alias,;t t
21976 s,@DEFS@,$DEFS,;t t
21977 s,@ECHO_C@,$ECHO_C,;t t
21978 s,@ECHO_N@,$ECHO_N,;t t
21979 s,@ECHO_T@,$ECHO_T,;t t
21980 s,@LIBS@,$LIBS,;t t
21981 s,@SPL_META_NAME@,$SPL_META_NAME,;t t
21982 s,@SPL_META_VERSION@,$SPL_META_VERSION,;t t
21983 s,@SPL_META_RELEASE@,$SPL_META_RELEASE,;t t
21984 s,@SPL_META_ALIAS@,$SPL_META_ALIAS,;t t
21985 s,@SPL_META_DATA@,$SPL_META_DATA,;t t
21986 s,@SPL_META_AUTHOR@,$SPL_META_AUTHOR,;t t
21987 s,@SPL_META_LT_CURRENT@,$SPL_META_LT_CURRENT,;t t
21988 s,@SPL_META_LT_REVISION@,$SPL_META_LT_REVISION,;t t
21989 s,@SPL_META_LT_AGE@,$SPL_META_LT_AGE,;t t
21990 s,@build@,$build,;t t
21991 s,@build_cpu@,$build_cpu,;t t
21992 s,@build_vendor@,$build_vendor,;t t
21993 s,@build_os@,$build_os,;t t
21994 s,@host@,$host,;t t
21995 s,@host_cpu@,$host_cpu,;t t
21996 s,@host_vendor@,$host_vendor,;t t
21997 s,@host_os@,$host_os,;t t
21998 s,@target@,$target,;t t
21999 s,@target_cpu@,$target_cpu,;t t
22000 s,@target_vendor@,$target_vendor,;t t
22001 s,@target_os@,$target_os,;t t
22002 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22003 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22004 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22005 s,@CYGPATH_W@,$CYGPATH_W,;t t
22006 s,@PACKAGE@,$PACKAGE,;t t
22007 s,@VERSION@,$VERSION,;t t
22008 s,@ACLOCAL@,$ACLOCAL,;t t
22009 s,@AUTOCONF@,$AUTOCONF,;t t
22010 s,@AUTOMAKE@,$AUTOMAKE,;t t
22011 s,@AUTOHEADER@,$AUTOHEADER,;t t
22012 s,@MAKEINFO@,$MAKEINFO,;t t
22013 s,@install_sh@,$install_sh,;t t
22014 s,@STRIP@,$STRIP,;t t
22015 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22016 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22017 s,@mkdir_p@,$mkdir_p,;t t
22019 s,@SET_MAKE@,$SET_MAKE,;t t
22020 s,@am__leading_dot@,$am__leading_dot,;t t
22021 s,@AMTAR@,$AMTAR,;t t
22022 s,@am__tar@,$am__tar,;t t
22023 s,@am__untar@,$am__untar,;t t
22024 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22025 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22026 s,@MAINT@,$MAINT,;t t
22028 s,@CFLAGS@,$CFLAGS,;t t
22029 s,@LDFLAGS@,$LDFLAGS,;t t
22030 s,@CPPFLAGS@,$CPPFLAGS,;t t
22031 s,@ac_ct_CC@,$ac_ct_CC,;t t
22032 s,@EXEEXT@,$EXEEXT,;t t
22033 s,@OBJEXT@,$OBJEXT,;t t
22034 s,@DEPDIR@,$DEPDIR,;t t
22035 s,@am__include@,$am__include,;t t
22036 s,@am__quote@,$am__quote,;t t
22037 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22038 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22039 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22040 s,@CCDEPMODE@,$CCDEPMODE,;t t
22041 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22042 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22044 s,@EGREP@,$EGREP,;t t
22045 s,@LN_S@,$LN_S,;t t
22046 s,@ECHO@,$ECHO,;t t
22048 s,@ac_ct_AR@,$ac_ct_AR,;t t
22049 s,@RANLIB@,$RANLIB,;t t
22050 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22053 s,@CXXFLAGS@,$CXXFLAGS,;t t
22054 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22055 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22056 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22057 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22058 s,@CXXCPP@,$CXXCPP,;t t
22060 s,@FFLAGS@,$FFLAGS,;t t
22061 s,@ac_ct_F77@,$ac_ct_F77,;t t
22062 s,@LIBTOOL@,$LIBTOOL,;t t
22063 s,@LINUX@,$LINUX,;t t
22064 s,@LINUX_OBJ@,$LINUX_OBJ,;t t
22065 s,@LINUX_VERSION@,$LINUX_VERSION,;t t
22066 s,@KERNELMAKE_PARAMS@,$KERNELMAKE_PARAMS,;t t
22067 s,@KERNELCPPFLAGS@,$KERNELCPPFLAGS,;t t
22068 s,@KERNELCFLAGS@,$KERNELCFLAGS,;t t
22069 s,@LINUX_SYMBOLS@,$LINUX_SYMBOLS,;t t
22070 s,@LIBOBJS@,$LIBOBJS,;t t
22071 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22076 cat >>$CONFIG_STATUS <<\_ACEOF
22077 # Split the substitutions into bite-sized pieces for seds with
22078 # small command number limits, like on Digital OSF/1 and HP-UX.
22079 ac_max_sed_lines=48
22080 ac_sed_frag=1 # Number of current file.
22081 ac_beg=1 # First line for current file.
22082 ac_end=$ac_max_sed_lines # Line after last line for current file.
22085 while $ac_more_lines; do
22086 if test $ac_beg -gt 1; then
22087 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22089 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22091 if test ! -s $tmp/subs.frag; then
22092 ac_more_lines=false
22094 # The purpose of the label and of the branching condition is to
22095 # speed up the sed processing (if there are no `@' at all, there
22096 # is no need to browse any of the substitutions).
22097 # These are the two extra sed commands mentioned above.
22099 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22100 if test -z "$ac_sed_cmds"; then
22101 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22103 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22105 ac_sed_frag=`expr $ac_sed_frag + 1`
22107 ac_end=`expr $ac_end + $ac_max_sed_lines`
22110 if test -z "$ac_sed_cmds"; then
22113 fi # test -n "$CONFIG_FILES"
22116 cat >>$CONFIG_STATUS <<\_ACEOF
22117 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22118 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22120 - | *:- | *:-:* ) # input from stdin
22122 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22123 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22124 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22125 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22126 * ) ac_file_in=$ac_file.in ;;
22129 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22130 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22131 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22132 X"$ac_file" : 'X\(//\)[^/]' \| \
22133 X"$ac_file" : 'X\(//\)$' \| \
22134 X"$ac_file" : 'X\(/\)' \| \
22135 . : '\(.\)' 2>/dev/null ||
22137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22139 /^X\(\/\/\)$/{ s//\1/; q; }
22140 /^X\(\/\).*/{ s//\1/; q; }
22142 { if $as_mkdir_p; then
22147 while test ! -d "$as_dir"; do
22148 as_dirs="$as_dir $as_dirs"
22149 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22150 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22151 X"$as_dir" : 'X\(//\)[^/]' \| \
22152 X"$as_dir" : 'X\(//\)$' \| \
22153 X"$as_dir" : 'X\(/\)' \| \
22154 . : '\(.\)' 2>/dev/null ||
22156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22158 /^X\(\/\/\)$/{ s//\1/; q; }
22159 /^X\(\/\).*/{ s//\1/; q; }
22162 test ! -n "$as_dirs" || mkdir $as_dirs
22163 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22164 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22165 { (exit 1); exit 1; }; }; }
22169 if test "$ac_dir" != .; then
22170 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22171 # A "../" for each directory in $ac_dir_suffix.
22172 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22174 ac_dir_suffix= ac_top_builddir=
22178 .) # No --srcdir option. We are building in place.
22180 if test -z "$ac_top_builddir"; then
22183 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22185 [\\/]* | ?:[\\/]* ) # Absolute path.
22186 ac_srcdir=$srcdir$ac_dir_suffix;
22187 ac_top_srcdir=$srcdir ;;
22188 *) # Relative path.
22189 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22190 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22193 # Do not use `cd foo && pwd` to compute absolute paths, because
22194 # the directories may not exist.
22196 .) ac_abs_builddir="$ac_dir";;
22199 .) ac_abs_builddir=`pwd`;;
22200 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22201 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22204 case $ac_abs_builddir in
22205 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22207 case ${ac_top_builddir}. in
22208 .) ac_abs_top_builddir=$ac_abs_builddir;;
22209 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22210 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22213 case $ac_abs_builddir in
22214 .) ac_abs_srcdir=$ac_srcdir;;
22217 .) ac_abs_srcdir=$ac_abs_builddir;;
22218 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22219 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22222 case $ac_abs_builddir in
22223 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22225 case $ac_top_srcdir in
22226 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22227 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22228 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22234 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22235 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22238 if test x"$ac_file" != x-; then
22239 { echo "$as_me:$LINENO: creating $ac_file" >&5
22240 echo "$as_me: creating $ac_file" >&6;}
22243 # Let's still pretend it is `configure' which instantiates (i.e., don't
22244 # use $as_me), people would be surprised to read:
22245 # /* config.h. Generated by config.status. */
22246 if test x"$ac_file" = x-; then
22249 configure_input="$ac_file. "
22251 configure_input=$configure_input"Generated from `echo $ac_file_in |
22252 sed 's,.*/,,'` by configure."
22254 # First look for the input files in the build tree, otherwise in the
22256 ac_file_inputs=`IFS=:
22257 for f in $ac_file_in; do
22259 -) echo $tmp/stdin ;;
22261 # Absolute (can't be DOS-style, as IFS=:)
22262 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22263 echo "$as_me: error: cannot find input file: $f" >&2;}
22264 { (exit 1); exit 1; }; }
22267 if test -f "$f"; then
22270 elif test -f "$srcdir/$f"; then
22275 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22276 echo "$as_me: error: cannot find input file: $f" >&2;}
22277 { (exit 1); exit 1; }; }
22280 done` || { (exit 1); exit 1; }
22282 cat >>$CONFIG_STATUS <<_ACEOF
22286 cat >>$CONFIG_STATUS <<\_ACEOF
22288 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22289 s,@configure_input@,$configure_input,;t t
22290 s,@srcdir@,$ac_srcdir,;t t
22291 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22292 s,@top_srcdir@,$ac_top_srcdir,;t t
22293 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22294 s,@builddir@,$ac_builddir,;t t
22295 s,@abs_builddir@,$ac_abs_builddir,;t t
22296 s,@top_builddir@,$ac_top_builddir,;t t
22297 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22298 s,@INSTALL@,$ac_INSTALL,;t t
22299 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22301 if test x"$ac_file" != x-; then
22302 mv $tmp/out $ac_file
22310 cat >>$CONFIG_STATUS <<\_ACEOF
22313 # CONFIG_HEADER section.
22316 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22317 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22319 # ac_d sets the value in "#define NAME VALUE" lines.
22320 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22321 ac_dB='[ ].*$,\1#\2'
22324 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22325 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22326 ac_uB='$,\1#\2define\3'
22330 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22331 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22333 - | *:- | *:-:* ) # input from stdin
22335 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22336 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22337 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22338 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22339 * ) ac_file_in=$ac_file.in ;;
22342 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22343 echo "$as_me: creating $ac_file" >&6;}
22345 # First look for the input files in the build tree, otherwise in the
22347 ac_file_inputs=`IFS=:
22348 for f in $ac_file_in; do
22350 -) echo $tmp/stdin ;;
22352 # Absolute (can't be DOS-style, as IFS=:)
22353 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22354 echo "$as_me: error: cannot find input file: $f" >&2;}
22355 { (exit 1); exit 1; }; }
22356 # Do quote $f, to prevent DOS paths from being IFS'd.
22359 if test -f "$f"; then
22362 elif test -f "$srcdir/$f"; then
22367 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22368 echo "$as_me: error: cannot find input file: $f" >&2;}
22369 { (exit 1); exit 1; }; }
22372 done` || { (exit 1); exit 1; }
22373 # Remove the trailing spaces.
22374 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22378 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22379 # `conftest.undefs', that substitutes the proper values into
22380 # config.h.in to produce config.h. The first handles `#define'
22381 # templates, and the second `#undef' templates.
22382 # And first: Protect against being on the right side of a sed subst in
22383 # config.status. Protect against being in an unquoted here document
22384 # in config.status.
22385 rm -f conftest.defines conftest.undefs
22386 # Using a here document instead of a string reduces the quoting nightmare.
22387 # Putting comments in sed scripts is not portable.
22389 # `end' is used to avoid that the second main sed command (meant for
22390 # 0-ary CPP macros) applies to n-ary macro definitions.
22391 # See the Autoconf documentation for `clear'.
22392 cat >confdef2sed.sed <<\_ACEOF
22397 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22399 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22402 # If some macros were called several times there might be several times
22403 # the same #defines, which is useless. Nevertheless, we may not want to
22404 # sort them, since we want the *last* AC-DEFINE to be honored.
22405 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22406 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22407 rm -f confdef2sed.sed
22409 # This sed command replaces #undef with comments. This is necessary, for
22410 # example, in the case of _POSIX_SOURCE, which is predefined and required
22411 # on some systems where configure will not decide to define it.
22412 cat >>conftest.undefs <<\_ACEOF
22413 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22416 # Break up conftest.defines because some shells have a limit on the size
22417 # of here documents, and old seds have small limits too (100 cmds).
22418 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22419 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22420 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22421 echo ' :' >>$CONFIG_STATUS
22422 rm -f conftest.tail
22423 while grep . conftest.defines >/dev/null
22425 # Write a limited-size here document to $tmp/defines.sed.
22426 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22427 # Speed up: don't consider the non `#define' lines.
22428 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22429 # Work around the forget-to-reset-the-flag bug.
22430 echo 't clr' >>$CONFIG_STATUS
22431 echo ': clr' >>$CONFIG_STATUS
22432 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22434 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22436 mv $tmp/out $tmp/in
22438 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22439 rm -f conftest.defines
22440 mv conftest.tail conftest.defines
22442 rm -f conftest.defines
22443 echo ' fi # grep' >>$CONFIG_STATUS
22444 echo >>$CONFIG_STATUS
22446 # Break up conftest.undefs because some shells have a limit on the size
22447 # of here documents, and old seds have small limits too (100 cmds).
22448 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22449 rm -f conftest.tail
22450 while grep . conftest.undefs >/dev/null
22452 # Write a limited-size here document to $tmp/undefs.sed.
22453 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22454 # Speed up: don't consider the non `#undef'
22455 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22456 # Work around the forget-to-reset-the-flag bug.
22457 echo 't clr' >>$CONFIG_STATUS
22458 echo ': clr' >>$CONFIG_STATUS
22459 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22461 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22463 mv $tmp/out $tmp/in
22465 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22466 rm -f conftest.undefs
22467 mv conftest.tail conftest.undefs
22469 rm -f conftest.undefs
22471 cat >>$CONFIG_STATUS <<\_ACEOF
22472 # Let's still pretend it is `configure' which instantiates (i.e., don't
22473 # use $as_me), people would be surprised to read:
22474 # /* config.h. Generated by config.status. */
22475 if test x"$ac_file" = x-; then
22476 echo "/* Generated by configure. */" >$tmp/config.h
22478 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22480 cat $tmp/in >>$tmp/config.h
22482 if test x"$ac_file" != x-; then
22483 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22484 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22485 echo "$as_me: $ac_file is unchanged" >&6;}
22487 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22488 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22489 X"$ac_file" : 'X\(//\)[^/]' \| \
22490 X"$ac_file" : 'X\(//\)$' \| \
22491 X"$ac_file" : 'X\(/\)' \| \
22492 . : '\(.\)' 2>/dev/null ||
22494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22495 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22496 /^X\(\/\/\)$/{ s//\1/; q; }
22497 /^X\(\/\).*/{ s//\1/; q; }
22499 { if $as_mkdir_p; then
22504 while test ! -d "$as_dir"; do
22505 as_dirs="$as_dir $as_dirs"
22506 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22507 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22508 X"$as_dir" : 'X\(//\)[^/]' \| \
22509 X"$as_dir" : 'X\(//\)$' \| \
22510 X"$as_dir" : 'X\(/\)' \| \
22511 . : '\(.\)' 2>/dev/null ||
22513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22514 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22515 /^X\(\/\/\)$/{ s//\1/; q; }
22516 /^X\(\/\).*/{ s//\1/; q; }
22519 test ! -n "$as_dirs" || mkdir $as_dirs
22520 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22521 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22522 { (exit 1); exit 1; }; }; }
22525 mv $tmp/config.h $ac_file
22529 rm -f $tmp/config.h
22531 # Compute $ac_file's index in $config_headers.
22533 for _am_header in $config_headers :; do
22534 case $_am_header in
22535 $ac_file | $ac_file:* )
22538 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22541 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22542 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22543 X$ac_file : 'X\(//\)[^/]' \| \
22544 X$ac_file : 'X\(//\)$' \| \
22545 X$ac_file : 'X\(/\)' \| \
22546 . : '\(.\)' 2>/dev/null ||
22548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22549 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22550 /^X\(\/\/\)$/{ s//\1/; q; }
22551 /^X\(\/\).*/{ s//\1/; q; }
22552 s/.*/./; q'`/stamp-h$_am_stamp_count
22555 cat >>$CONFIG_STATUS <<\_ACEOF
22558 # CONFIG_COMMANDS section.
22560 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22561 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22562 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22563 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22564 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22565 X"$ac_dest" : 'X\(//\)[^/]' \| \
22566 X"$ac_dest" : 'X\(//\)$' \| \
22567 X"$ac_dest" : 'X\(/\)' \| \
22568 . : '\(.\)' 2>/dev/null ||
22570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22571 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22572 /^X\(\/\/\)$/{ s//\1/; q; }
22573 /^X\(\/\).*/{ s//\1/; q; }
22575 { if $as_mkdir_p; then
22580 while test ! -d "$as_dir"; do
22581 as_dirs="$as_dir $as_dirs"
22582 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22583 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22584 X"$as_dir" : 'X\(//\)[^/]' \| \
22585 X"$as_dir" : 'X\(//\)$' \| \
22586 X"$as_dir" : 'X\(/\)' \| \
22587 . : '\(.\)' 2>/dev/null ||
22589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22590 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22591 /^X\(\/\/\)$/{ s//\1/; q; }
22592 /^X\(\/\).*/{ s//\1/; q; }
22595 test ! -n "$as_dirs" || mkdir $as_dirs
22596 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22597 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22598 { (exit 1); exit 1; }; }; }
22602 if test "$ac_dir" != .; then
22603 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22604 # A "../" for each directory in $ac_dir_suffix.
22605 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22607 ac_dir_suffix= ac_top_builddir=
22611 .) # No --srcdir option. We are building in place.
22613 if test -z "$ac_top_builddir"; then
22616 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22618 [\\/]* | ?:[\\/]* ) # Absolute path.
22619 ac_srcdir=$srcdir$ac_dir_suffix;
22620 ac_top_srcdir=$srcdir ;;
22621 *) # Relative path.
22622 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22623 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22626 # Do not use `cd foo && pwd` to compute absolute paths, because
22627 # the directories may not exist.
22629 .) ac_abs_builddir="$ac_dir";;
22632 .) ac_abs_builddir=`pwd`;;
22633 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22634 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22637 case $ac_abs_builddir in
22638 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22640 case ${ac_top_builddir}. in
22641 .) ac_abs_top_builddir=$ac_abs_builddir;;
22642 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22643 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22646 case $ac_abs_builddir in
22647 .) ac_abs_srcdir=$ac_srcdir;;
22650 .) ac_abs_srcdir=$ac_abs_builddir;;
22651 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22652 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22655 case $ac_abs_builddir in
22656 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22658 case $ac_top_srcdir in
22659 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22660 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22661 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22666 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22667 echo "$as_me: executing $ac_dest commands" >&6;}
22669 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22670 # Strip MF so we end up with the name of the file.
22671 mf=`echo "$mf" | sed -e 's/:.*$//'`
22672 # Check whether this is an Automake generated Makefile or not.
22673 # We used to match only the files named `Makefile.in', but
22674 # some people rename them; so instead we look at the file content.
22675 # Grep'ing the first line is not enough: some people post-process
22676 # each Makefile.in and add a new line on top of each file to say so.
22677 # So let's grep whole file.
22678 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22679 dirpart=`(dirname "$mf") 2>/dev/null ||
22680 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22681 X"$mf" : 'X\(//\)[^/]' \| \
22682 X"$mf" : 'X\(//\)$' \| \
22683 X"$mf" : 'X\(/\)' \| \
22684 . : '\(.\)' 2>/dev/null ||
22686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22687 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22688 /^X\(\/\/\)$/{ s//\1/; q; }
22689 /^X\(\/\).*/{ s//\1/; q; }
22694 # Extract the definition of DEPDIR, am__include, and am__quote
22695 # from the Makefile without running `make'.
22696 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22697 test -z "$DEPDIR" && continue
22698 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22699 test -z "am__include" && continue
22700 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22701 # When using ansi2knr, U may be empty or an underscore; expand it
22702 U=`sed -n 's/^U = //p' < "$mf"`
22703 # Find all dependency output files, they are included files with
22704 # $(DEPDIR) in their names. We invoke sed twice because it is the
22705 # simplest approach to changing $(DEPDIR) to its actual value in the
22707 for file in `sed -n "
22708 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22709 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22710 # Make sure the directory exists.
22711 test -f "$dirpart/$file" && continue
22712 fdir=`(dirname "$file") 2>/dev/null ||
22713 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22714 X"$file" : 'X\(//\)[^/]' \| \
22715 X"$file" : 'X\(//\)$' \| \
22716 X"$file" : 'X\(/\)' \| \
22717 . : '\(.\)' 2>/dev/null ||
22719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22721 /^X\(\/\/\)$/{ s//\1/; q; }
22722 /^X\(\/\).*/{ s//\1/; q; }
22724 { if $as_mkdir_p; then
22725 mkdir -p $dirpart/$fdir
22727 as_dir=$dirpart/$fdir
22729 while test ! -d "$as_dir"; do
22730 as_dirs="$as_dir $as_dirs"
22731 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22732 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22733 X"$as_dir" : 'X\(//\)[^/]' \| \
22734 X"$as_dir" : 'X\(//\)$' \| \
22735 X"$as_dir" : 'X\(/\)' \| \
22736 . : '\(.\)' 2>/dev/null ||
22738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22739 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22740 /^X\(\/\/\)$/{ s//\1/; q; }
22741 /^X\(\/\).*/{ s//\1/; q; }
22744 test ! -n "$as_dirs" || mkdir $as_dirs
22745 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22746 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22747 { (exit 1); exit 1; }; }; }
22749 # echo "creating $dirpart/$file"
22750 echo '# dummy' > "$dirpart/$file"
22758 cat >>$CONFIG_STATUS <<\_ACEOF
22760 { (exit 0); exit 0; }
22762 chmod +x $CONFIG_STATUS
22763 ac_clean_files=$ac_clean_files_save
22766 # configure is writing to config.log, and then calls config.status.
22767 # config.status does its own redirection, appending to config.log.
22768 # Unfortunately, on DOS this fails, as config.log is still kept open
22769 # by configure, so config.status won't be able to write to it; its
22770 # output is simply discarded. So we exec the FD to /dev/null,
22771 # effectively closing config.log, so it can be properly (re)opened and
22772 # appended to by config.status. When coming back to configure, we
22773 # need to make the FD available again.
22774 if test "$no_create" != yes; then
22776 ac_config_status_args=
22777 test "$silent" = yes &&
22778 ac_config_status_args="$ac_config_status_args --quiet"
22780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22783 # would make configure fail if this is the last instruction.
22784 $ac_cs_success || { (exit 1); exit 1; }