2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for JSON C Library 0.3.
5 # Report bugs to <michael@metaparadigm.com>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='JSON C Library'
425 PACKAGE_TARNAME='json-c'
426 PACKAGE_VERSION='0.3'
427 PACKAGE_STRING='JSON C Library 0.3'
428 PACKAGE_BUGREPORT='michael@metaparadigm.com'
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LTLIBOBJS'
470 # Initialize some variables set by options.
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
482 program_transform_name=s,x,x,
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
585 -help | --help | --hel | --he | -h)
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 # Obsolete; use --without-fp.
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
715 -site=* | --site=* | --sit=*)
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 -version | --version | --versio | --versi | --vers | -V)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
764 # Obsolete; use --with-x.
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
877 if test ! -r $srcdir/$ac_unique_file; then
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
956 \`configure' configures JSON C Library 0.3 to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1010 --program-prefix=PREFIX prepend PREFIX to installed program names
1011 --program-suffix=SUFFIX append SUFFIX to installed program names
1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015 --build=BUILD configure for building on BUILD [guessed]
1016 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1020 if test -n "$ac_init_help"; then
1021 case $ac_init_help in
1022 short | recursive ) echo "Configuration of JSON C Library 0.3:";;
1027 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1028 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1029 --enable-shared[=PKGS]
1030 build shared libraries [default=yes]
1031 --enable-static[=PKGS]
1032 build static libraries [default=yes]
1033 --enable-fast-install[=PKGS]
1034 optimize for fast installation [default=yes]
1035 --disable-libtool-lock avoid locking (might break parallel builds)
1038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1040 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1041 --with-pic try to use only PIC/non-PIC objects [default=use
1044 include additional configurations [automatic]
1046 Some influential environment variables:
1047 CC C compiler command
1048 CFLAGS C compiler flags
1049 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1050 nonstandard directory <lib dir>
1051 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1052 headers in a nonstandard directory <include dir>
1054 CXX C++ compiler command
1055 CXXFLAGS C++ compiler flags
1056 CXXCPP C++ preprocessor
1057 F77 Fortran 77 compiler command
1058 FFLAGS Fortran 77 compiler flags
1060 Use these variables to override the choices made by `configure' or to help
1061 it to find libraries and programs with nonstandard names/locations.
1063 Report bugs to <michael@metaparadigm.com>.
1067 if test "$ac_init_help" = "recursive"; then
1068 # If there are subdirs, report their specific --help.
1070 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1071 test -d $ac_dir || continue
1074 if test "$ac_dir" != .; then
1075 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1076 # A "../" for each directory in $ac_dir_suffix.
1077 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1079 ac_dir_suffix= ac_top_builddir=
1083 .) # No --srcdir option. We are building in place.
1085 if test -z "$ac_top_builddir"; then
1088 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1090 [\\/]* | ?:[\\/]* ) # Absolute path.
1091 ac_srcdir=$srcdir$ac_dir_suffix;
1092 ac_top_srcdir=$srcdir ;;
1094 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1095 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1098 # Do not use `cd foo && pwd` to compute absolute paths, because
1099 # the directories may not exist.
1101 .) ac_abs_builddir="$ac_dir";;
1104 .) ac_abs_builddir=`pwd`;;
1105 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1106 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1109 case $ac_abs_builddir in
1110 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1112 case ${ac_top_builddir}. in
1113 .) ac_abs_top_builddir=$ac_abs_builddir;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1115 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1118 case $ac_abs_builddir in
1119 .) ac_abs_srcdir=$ac_srcdir;;
1122 .) ac_abs_srcdir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1124 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1127 case $ac_abs_builddir in
1128 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1130 case $ac_top_srcdir in
1131 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1133 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1138 # Check for guested configure; otherwise get Cygnus style configure.
1139 if test -f $ac_srcdir/configure.gnu; then
1141 $SHELL $ac_srcdir/configure.gnu --help=recursive
1142 elif test -f $ac_srcdir/configure; then
1144 $SHELL $ac_srcdir/configure --help=recursive
1145 elif test -f $ac_srcdir/configure.ac ||
1146 test -f $ac_srcdir/configure.in; then
1148 $ac_configure --help
1150 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1156 test -n "$ac_init_help" && exit 0
1157 if $ac_init_version; then
1159 JSON C Library configure 0.3
1160 generated by GNU Autoconf 2.59
1162 Copyright (C) 2003 Free Software Foundation, Inc.
1163 This configure script is free software; the Free Software Foundation
1164 gives unlimited permission to copy, distribute and modify it.
1170 This file contains any messages produced by compilers while
1171 running configure, to aid debugging if configure makes a mistake.
1173 It was created by JSON C Library $as_me 0.3, which was
1174 generated by GNU Autoconf 2.59. Invocation command line was
1185 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1186 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1187 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1188 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1189 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1191 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1192 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1194 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1195 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1196 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1197 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1198 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1199 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1200 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1208 test -z "$as_dir" && as_dir=.
1209 echo "PATH: $as_dir"
1224 # Keep a trace of the command line.
1225 # Strip out --no-create and --no-recursion so they do not pile up.
1226 # Strip out --silent because we don't want to record it for future runs.
1227 # Also quote any args containing shell meta-characters.
1228 # Make two passes to allow for proper duplicate-argument suppression.
1233 ac_must_keep_next=false
1239 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1243 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1244 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1247 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1249 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1250 if test $ac_must_keep_next = true; then
1251 ac_must_keep_next=false # Got value, back to normal.
1254 *=* | --config-cache | -C | -disable-* | --disable-* \
1255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1257 | -with-* | --with-* | -without-* | --without-* | --x)
1258 case "$ac_configure_args0 " in
1259 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1262 -* ) ac_must_keep_next=true ;;
1265 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1266 # Get rid of the leading space.
1272 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1273 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1275 # When interrupted or exit'd, cleanup temporary files, and complete
1276 # config.log. We remove comments because anyway the quotes in there
1277 # would cause problems or look ugly.
1278 # WARNING: Be sure not to use single quotes in there, as some shells,
1279 # such as our DU 5.0 friend, will then `close' the trap.
1280 trap 'exit_status=$?
1281 # Save into config.log some information that might help in debugging.
1286 ## ---------------- ##
1287 ## Cache variables. ##
1288 ## ---------------- ##
1291 # The following way of writing the cache mishandles newlines in values,
1294 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1297 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1302 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1309 ## ----------------- ##
1310 ## Output variables. ##
1311 ## ----------------- ##
1314 for ac_var in $ac_subst_vars
1316 eval ac_val=$`echo $ac_var`
1317 echo "$ac_var='"'"'$ac_val'"'"'"
1321 if test -n "$ac_subst_files"; then
1328 for ac_var in $ac_subst_files
1330 eval ac_val=$`echo $ac_var`
1331 echo "$ac_var='"'"'$ac_val'"'"'"
1336 if test -s confdefs.h; then
1343 sed "/^$/d" confdefs.h | sort
1346 test "$ac_signal" != 0 &&
1347 echo "$as_me: caught signal $ac_signal"
1348 echo "$as_me: exit $exit_status"
1350 rm -f core *.core &&
1351 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1354 for ac_signal in 1 2 13 15; do
1355 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1360 rm -rf conftest* confdefs.h
1361 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1364 # Predefined preprocessor variables.
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_NAME "$PACKAGE_NAME"
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_STRING "$PACKAGE_STRING"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1391 # Let the site file select an alternate cache file if it wants to.
1392 # Prefer explicitly selected file to automatically selected ones.
1393 if test -z "$CONFIG_SITE"; then
1394 if test "x$prefix" != xNONE; then
1395 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1397 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1400 for ac_site_file in $CONFIG_SITE; do
1401 if test -r "$ac_site_file"; then
1402 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1403 echo "$as_me: loading site script $ac_site_file" >&6;}
1404 sed 's/^/| /' "$ac_site_file" >&5
1409 if test -r "$cache_file"; then
1410 # Some versions of bash will fail to source /dev/null (special
1411 # files actually), so we avoid doing that.
1412 if test -f "$cache_file"; then
1413 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1414 echo "$as_me: loading cache $cache_file" >&6;}
1416 [\\/]* | ?:[\\/]* ) . $cache_file;;
1417 *) . ./$cache_file;;
1421 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1422 echo "$as_me: creating cache $cache_file" >&6;}
1426 # Check that the precious variables saved in the cache have kept the same
1428 ac_cache_corrupted=false
1429 for ac_var in `(set) 2>&1 |
1430 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1431 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1432 eval ac_new_set=\$ac_env_${ac_var}_set
1433 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1434 eval ac_new_val="\$ac_env_${ac_var}_value"
1435 case $ac_old_set,$ac_new_set in
1437 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1439 ac_cache_corrupted=: ;;
1441 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1443 ac_cache_corrupted=: ;;
1446 if test "x$ac_old_val" != "x$ac_new_val"; then
1447 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1448 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1449 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1450 echo "$as_me: former value: $ac_old_val" >&2;}
1451 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1452 echo "$as_me: current value: $ac_new_val" >&2;}
1453 ac_cache_corrupted=:
1456 # Pass precious variables to config.status.
1457 if test "$ac_new_set" = set; then
1459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1460 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1461 *) ac_arg=$ac_var=$ac_new_val ;;
1463 case " $ac_configure_args " in
1464 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1465 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1469 if $ac_cache_corrupted; then
1470 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1471 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1472 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1473 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1474 { (exit 1); exit 1; }; }
1478 ac_cpp='$CPP $CPPFLAGS'
1479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510 am__api_version="1.4"
1512 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1513 if test -f $ac_dir/install-sh; then
1515 ac_install_sh="$ac_aux_dir/install-sh -c"
1517 elif test -f $ac_dir/install.sh; then
1519 ac_install_sh="$ac_aux_dir/install.sh -c"
1521 elif test -f $ac_dir/shtool; then
1523 ac_install_sh="$ac_aux_dir/shtool install -c"
1527 if test -z "$ac_aux_dir"; then
1528 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1529 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1530 { (exit 1); exit 1; }; }
1532 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1533 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1534 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1536 # Find a good install program. We prefer a C program (faster),
1537 # so one script is as good as another. But avoid the broken or
1538 # incompatible versions:
1539 # SysV /etc/install, /usr/sbin/install
1540 # SunOS /usr/etc/install
1541 # IRIX /sbin/install
1543 # AmigaOS /C/install, which installs bootblocks on floppy discs
1544 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1545 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1546 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1547 # OS/2's system install, which has a completely different semantic
1548 # ./install, which can be erroneously created by make from ./install.sh.
1549 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1550 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1551 if test -z "$INSTALL"; then
1552 if test "${ac_cv_path_install+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559 test -z "$as_dir" && as_dir=.
1560 # Account for people who put trailing slashes in PATH elements.
1562 ./ | .// | /cC/* | \
1563 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1564 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1567 # OSF1 and SCO ODT 3.0 have their own names for install.
1568 # Don't use installbsd from OSF since it installs stuff as root
1570 for ac_prog in ginstall scoinst install; do
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1573 if test $ac_prog = install &&
1574 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1575 # AIX install. It has an incompatible calling convention.
1577 elif test $ac_prog = install &&
1578 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1579 # program-specific install script used by HP pwplus--don't use.
1582 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1594 if test "${ac_cv_path_install+set}" = set; then
1595 INSTALL=$ac_cv_path_install
1597 # As a last resort, use the slow shell script. We don't cache a
1598 # path for INSTALL within a source directory, because that will
1599 # break other packages using the cache if that directory is
1600 # removed, or if the path is relative.
1601 INSTALL=$ac_install_sh
1604 echo "$as_me:$LINENO: result: $INSTALL" >&5
1605 echo "${ECHO_T}$INSTALL" >&6
1607 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1608 # It thinks the first close brace ends the variable substitution.
1609 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1611 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1613 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1615 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1616 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1619 echo timestamp > conftestfile
1620 # Do `set' in a subshell so we don't clobber the current shell's
1621 # arguments. Must try -L first in case configure is actually a
1622 # symlink; some systems play weird games with the mod time of symlinks
1623 # (eg FreeBSD returns the mod time of the symlink's containing
1626 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1627 if test "$*" = "X"; then
1629 set X `ls -t $srcdir/configure conftestfile`
1631 if test "$*" != "X $srcdir/configure conftestfile" \
1632 && test "$*" != "X conftestfile $srcdir/configure"; then
1634 # If neither matched, then we have a broken ls. This can happen
1635 # if, for instance, CONFIG_SHELL is bash and it inherits a
1636 # broken ls alias from the environment. This has actually
1637 # happened. Such a system could not be considered "sane".
1638 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1639 alias in your environment" >&5
1640 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1641 alias in your environment" >&2;}
1642 { (exit 1); exit 1; }; }
1645 test "$2" = conftestfile
1651 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1652 Check your system clock" >&5
1653 echo "$as_me: error: newly created file is older than distributed files!
1654 Check your system clock" >&2;}
1655 { (exit 1); exit 1; }; }
1658 echo "$as_me:$LINENO: result: yes" >&5
1659 echo "${ECHO_T}yes" >&6
1660 test "$program_prefix" != NONE &&
1661 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1662 # Use a double $ so make ignores it.
1663 test "$program_suffix" != NONE &&
1664 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1665 # Double any \ or $. echo might interpret backslashes.
1666 # By default was `s,x,x', remove it if useless.
1667 cat <<\_ACEOF >conftest.sed
1668 s/[\\$]/&&/g;s/;s,x,x,$//
1670 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1673 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1674 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1675 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1676 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 cat >conftest.make <<\_ACEOF
1681 @echo 'ac_maketemp="$(MAKE)"'
1683 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1684 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1685 if test -n "$ac_maketemp"; then
1686 eval ac_cv_prog_make_${ac_make}_set=yes
1688 eval ac_cv_prog_make_${ac_make}_set=no
1692 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1693 echo "$as_me:$LINENO: result: yes" >&5
1694 echo "${ECHO_T}yes" >&6
1697 echo "$as_me:$LINENO: result: no" >&5
1698 echo "${ECHO_T}no" >&6
1699 SET_MAKE="MAKE=${MAKE-make}"
1703 PACKAGE=JSON C Library
1707 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1708 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1709 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1710 { (exit 1); exit 1; }; }
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE "$PACKAGE"
1718 cat >>confdefs.h <<_ACEOF
1719 #define VERSION "$VERSION"
1724 missing_dir=`cd $ac_aux_dir && pwd`
1725 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1726 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1727 # Run test in a subshell; some versions of sh will print an error if
1728 # an executable is not found, even if stderr is redirected.
1729 # Redirect stdin to placate older versions of autoconf. Sigh.
1730 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1731 ACLOCAL=aclocal-${am__api_version}
1732 echo "$as_me:$LINENO: result: found" >&5
1733 echo "${ECHO_T}found" >&6
1735 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1736 echo "$as_me:$LINENO: result: missing" >&5
1737 echo "${ECHO_T}missing" >&6
1740 echo "$as_me:$LINENO: checking for working autoconf" >&5
1741 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1742 # Run test in a subshell; some versions of sh will print an error if
1743 # an executable is not found, even if stderr is redirected.
1744 # Redirect stdin to placate older versions of autoconf. Sigh.
1745 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1747 echo "$as_me:$LINENO: result: found" >&5
1748 echo "${ECHO_T}found" >&6
1750 AUTOCONF="$missing_dir/missing autoconf"
1751 echo "$as_me:$LINENO: result: missing" >&5
1752 echo "${ECHO_T}missing" >&6
1755 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1756 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1757 # Run test in a subshell; some versions of sh will print an error if
1758 # an executable is not found, even if stderr is redirected.
1759 # Redirect stdin to placate older versions of autoconf. Sigh.
1760 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1761 AUTOMAKE=automake-${am__api_version}
1762 echo "$as_me:$LINENO: result: found" >&5
1763 echo "${ECHO_T}found" >&6
1765 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1766 echo "$as_me:$LINENO: result: missing" >&5
1767 echo "${ECHO_T}missing" >&6
1770 echo "$as_me:$LINENO: checking for working autoheader" >&5
1771 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1772 # Run test in a subshell; some versions of sh will print an error if
1773 # an executable is not found, even if stderr is redirected.
1774 # Redirect stdin to placate older versions of autoconf. Sigh.
1775 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1776 AUTOHEADER=autoheader
1777 echo "$as_me:$LINENO: result: found" >&5
1778 echo "${ECHO_T}found" >&6
1780 AUTOHEADER="$missing_dir/missing autoheader"
1781 echo "$as_me:$LINENO: result: missing" >&5
1782 echo "${ECHO_T}missing" >&6
1785 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1786 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1787 # Run test in a subshell; some versions of sh will print an error if
1788 # an executable is not found, even if stderr is redirected.
1789 # Redirect stdin to placate older versions of autoconf. Sigh.
1790 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1792 echo "$as_me:$LINENO: result: found" >&5
1793 echo "${ECHO_T}found" >&6
1795 MAKEINFO="$missing_dir/missing makeinfo"
1796 echo "$as_me:$LINENO: result: missing" >&5
1797 echo "${ECHO_T}missing" >&6
1802 # Checks for programs.
1804 # Checks for libraries.
1806 # Checks for header files.
1808 ac_config_headers="$ac_config_headers config.h"
1810 ac_config_commands="$ac_config_commands default-1"
1813 ac_cpp='$CPP $CPPFLAGS'
1814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1817 if test -n "$ac_tool_prefix"; then
1818 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1819 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1820 echo "$as_me:$LINENO: checking for $ac_word" >&5
1821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822 if test "${ac_cv_prog_CC+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1825 if test -n "$CC"; then
1826 ac_cv_prog_CC="$CC" # Let the user override the test.
1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 test -z "$as_dir" && as_dir=.
1833 for ac_exec_ext in '' $ac_executable_extensions; do
1834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845 if test -n "$CC"; then
1846 echo "$as_me:$LINENO: result: $CC" >&5
1847 echo "${ECHO_T}$CC" >&6
1849 echo "$as_me:$LINENO: result: no" >&5
1850 echo "${ECHO_T}no" >&6
1854 if test -z "$ac_cv_prog_CC"; then
1856 # Extract the first word of "gcc", so it can be a program name with args.
1857 set dummy gcc; ac_word=$2
1858 echo "$as_me:$LINENO: checking for $ac_word" >&5
1859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 if test -n "$ac_ct_CC"; then
1864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870 test -z "$as_dir" && as_dir=.
1871 for ac_exec_ext in '' $ac_executable_extensions; do
1872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873 ac_cv_prog_ac_ct_CC="gcc"
1874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1883 if test -n "$ac_ct_CC"; then
1884 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1885 echo "${ECHO_T}$ac_ct_CC" >&6
1887 echo "$as_me:$LINENO: result: no" >&5
1888 echo "${ECHO_T}no" >&6
1896 if test -z "$CC"; then
1897 if test -n "$ac_tool_prefix"; then
1898 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1899 set dummy ${ac_tool_prefix}cc; ac_word=$2
1900 echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902 if test "${ac_cv_prog_CC+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 if test -n "$CC"; then
1906 ac_cv_prog_CC="$CC" # Let the user override the test.
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 test -z "$as_dir" && as_dir=.
1913 for ac_exec_ext in '' $ac_executable_extensions; do
1914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915 ac_cv_prog_CC="${ac_tool_prefix}cc"
1916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925 if test -n "$CC"; then
1926 echo "$as_me:$LINENO: result: $CC" >&5
1927 echo "${ECHO_T}$CC" >&6
1929 echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6
1934 if test -z "$ac_cv_prog_CC"; then
1936 # Extract the first word of "cc", so it can be a program name with args.
1937 set dummy cc; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 if test -n "$ac_ct_CC"; then
1944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950 test -z "$as_dir" && as_dir=.
1951 for ac_exec_ext in '' $ac_executable_extensions; do
1952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953 ac_cv_prog_ac_ct_CC="cc"
1954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1963 if test -n "$ac_ct_CC"; then
1964 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1965 echo "${ECHO_T}$ac_ct_CC" >&6
1967 echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1977 if test -z "$CC"; then
1978 # Extract the first word of "cc", so it can be a program name with args.
1979 set dummy cc; ac_word=$2
1980 echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 test -z "$as_dir" && as_dir=.
1994 for ac_exec_ext in '' $ac_executable_extensions; do
1995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1997 ac_prog_rejected=yes
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007 if test $ac_prog_rejected = yes; then
2008 # We found a bogon in the path, so make sure we never use it.
2009 set dummy $ac_cv_prog_CC
2011 if test $# != 0; then
2012 # We chose a different compiler from the bogus one.
2013 # However, it has the same basename, so the bogon will be chosen
2014 # first if we set CC to just the basename; use the full file name.
2016 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2022 if test -n "$CC"; then
2023 echo "$as_me:$LINENO: result: $CC" >&5
2024 echo "${ECHO_T}$CC" >&6
2026 echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2031 if test -z "$CC"; then
2032 if test -n "$ac_tool_prefix"; then
2035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2037 echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039 if test "${ac_cv_prog_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 if test -n "$CC"; then
2043 ac_cv_prog_CC="$CC" # Let the user override the test.
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 if test -n "$CC"; then
2063 echo "$as_me:$LINENO: result: $CC" >&5
2064 echo "${ECHO_T}$CC" >&6
2066 echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6
2070 test -n "$CC" && break
2073 if test -z "$CC"; then
2077 # Extract the first word of "$ac_prog", so it can be a program name with args.
2078 set dummy $ac_prog; ac_word=$2
2079 echo "$as_me:$LINENO: checking for $ac_word" >&5
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 if test -n "$ac_ct_CC"; then
2085 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 test -z "$as_dir" && as_dir=.
2092 for ac_exec_ext in '' $ac_executable_extensions; do
2093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2094 ac_cv_prog_ac_ct_CC="$ac_prog"
2095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2104 if test -n "$ac_ct_CC"; then
2105 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106 echo "${ECHO_T}$ac_ct_CC" >&6
2108 echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6
2112 test -n "$ac_ct_CC" && break
2121 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&2;}
2125 { (exit 1); exit 1; }; }
2127 # Provide some information about the compiler.
2128 echo "$as_me:$LINENO:" \
2129 "checking for C compiler version" >&5
2130 ac_compiler=`set X $ac_compile; echo $2`
2131 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2132 (eval $ac_compiler --version </dev/null >&5) 2>&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }
2136 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2137 (eval $ac_compiler -v </dev/null >&5) 2>&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }
2141 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2142 (eval $ac_compiler -V </dev/null >&5) 2>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }
2147 cat >conftest.$ac_ext <<_ACEOF
2150 cat confdefs.h >>conftest.$ac_ext
2151 cat >>conftest.$ac_ext <<_ACEOF
2152 /* end confdefs.h. */
2162 ac_clean_files_save=$ac_clean_files
2163 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2164 # Try to create an executable without -o first, disregard a.out.
2165 # It will help us diagnose broken compilers, and finding out an intuition
2167 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2168 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2169 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2170 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2171 (eval $ac_link_default) 2>&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; then
2175 # Find the output, starting from the most likely. This scheme is
2176 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2179 # Be careful to initialize this variable, since it used to be cached.
2180 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2182 # b.out is created by i960 compilers.
2183 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2185 test -f "$ac_file" || continue
2187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2190 # This is the source file.
2193 # We found the default executable, but exeext='' is most
2197 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198 # FIXME: I believe we export ac_cv_exeext for Libtool,
2199 # but it would be cool to find out if it's true. Does anybody
2200 # maintain Libtool? --akim.
2208 echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.$ac_ext >&5
2211 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&5
2213 echo "$as_me: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&2;}
2215 { (exit 77); exit 77; }; }
2218 ac_exeext=$ac_cv_exeext
2219 echo "$as_me:$LINENO: result: $ac_file" >&5
2220 echo "${ECHO_T}$ac_file" >&6
2222 # Check the compiler produces executables we can run. If not, either
2223 # the compiler is broken, or we cross compile.
2224 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2225 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2226 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2227 # If not cross compiling, check that we can run a simple program.
2228 if test "$cross_compiling" != yes; then
2229 if { ac_try='./$ac_file'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2237 if test "$cross_compiling" = maybe; then
2240 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: cannot run C compiled programs.
2244 If you meant to cross compile, use \`--host'.
2245 See \`config.log' for more details." >&2;}
2246 { (exit 1); exit 1; }; }
2250 echo "$as_me:$LINENO: result: yes" >&5
2251 echo "${ECHO_T}yes" >&6
2253 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2254 ac_clean_files=$ac_clean_files_save
2255 # Check the compiler produces executables we can run. If not, either
2256 # the compiler is broken, or we cross compile.
2257 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2258 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2259 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2260 echo "${ECHO_T}$cross_compiling" >&6
2262 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2263 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2265 (eval $ac_link) 2>&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; then
2269 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2270 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2271 # work properly (i.e., refer to `conftest.exe'), while it won't with
2273 for ac_file in conftest.exe conftest conftest.*; do
2274 test -f "$ac_file" || continue
2276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2277 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&5
2286 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&2;}
2288 { (exit 1); exit 1; }; }
2291 rm -f conftest$ac_cv_exeext
2292 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2293 echo "${ECHO_T}$ac_cv_exeext" >&6
2295 rm -f conftest.$ac_ext
2296 EXEEXT=$ac_cv_exeext
2298 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2299 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2300 if test "${ac_cv_objext+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 cat >conftest.$ac_ext <<_ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h. */
2318 rm -f conftest.o conftest.obj
2319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320 (eval $ac_compile) 2>&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; then
2324 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2332 echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2335 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&2;}
2339 { (exit 1); exit 1; }; }
2342 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2344 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2345 echo "${ECHO_T}$ac_cv_objext" >&6
2346 OBJEXT=$ac_cv_objext
2348 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2349 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2350 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 cat >conftest.$ac_ext <<_ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h. */
2371 rm -f conftest.$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>conftest.er1
2375 grep -v '^ *+' conftest.er1 >conftest.err
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2403 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2404 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2405 GCC=`test $ac_compiler_gnu = yes && echo yes`
2406 ac_test_CFLAGS=${CFLAGS+set}
2407 ac_save_CFLAGS=$CFLAGS
2409 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2410 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2411 if test "${ac_cv_prog_cc_g+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 cat >conftest.$ac_ext <<_ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>conftest.er1
2433 grep -v '^ *+' conftest.er1 >conftest.err
2435 cat conftest.err >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
2438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; } &&
2444 { ac_try='test -s conftest.$ac_objext'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2460 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2461 if test "$ac_test_CFLAGS" = set; then
2462 CFLAGS=$ac_save_CFLAGS
2463 elif test $ac_cv_prog_cc_g = yes; then
2464 if test "$GCC" = yes; then
2470 if test "$GCC" = yes; then
2476 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2477 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2478 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 ac_cv_prog_cc_stdc=no
2483 cat >conftest.$ac_ext <<_ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2491 #include <sys/types.h>
2492 #include <sys/stat.h>
2493 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2494 struct buf { int x; };
2495 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2496 static char *e (p, i)
2502 static char *f (char * (*g) (char **, int), char **p, ...)
2507 s = g (p, va_arg (v,int));
2512 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2513 function prototypes and stuff, but not '\xHH' hex character constants.
2514 These don't provoke an error unfortunately, instead are silently treated
2515 as 'x'. The following induces an error, until -std1 is added to get
2516 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2517 array size at least. It's necessary to write '\x00'==0 to get something
2518 that's true only with -std1. */
2519 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2521 int test (int i, double x);
2522 struct s1 {int (*f) (int a);};
2523 struct s2 {int (*f) (double a);};
2524 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2530 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2535 # Don't try gcc -ansi; that turns off useful extensions and
2536 # breaks some systems' header files.
2537 # AIX -qlanglvl=ansi
2538 # Ultrix and OSF/1 -std1
2539 # HP-UX 10.20 and later -Ae
2540 # HP-UX older versions -Aa -D_HPUX_SOURCE
2541 # SVR4 -Xc -D__EXTENSIONS__
2542 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2544 CC="$ac_save_CC $ac_arg"
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>conftest.er1
2549 grep -v '^ *+' conftest.er1 >conftest.err
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2566 ac_cv_prog_cc_stdc=$ac_arg
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2573 rm -f conftest.err conftest.$ac_objext
2575 rm -f conftest.$ac_ext conftest.$ac_objext
2580 case "x$ac_cv_prog_cc_stdc" in
2582 echo "$as_me:$LINENO: result: none needed" >&5
2583 echo "${ECHO_T}none needed" >&6 ;;
2585 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2586 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2587 CC="$CC $ac_cv_prog_cc_stdc" ;;
2590 # Some people use a C++ compiler to compile C. Since we use `exit',
2591 # in C++ we need to declare it. In case someone uses the same compiler
2592 # for both compiling C and C++ we need to have the C++ compiler decide
2593 # the declaration of exit, since it's the most demanding environment.
2594 cat >conftest.$ac_ext <<_ACEOF
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>conftest.er1
2603 grep -v '^ *+' conftest.er1 >conftest.err
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest.$ac_objext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 for ac_declaration in \
2622 'extern "C" void std::exit (int) throw (); using std::exit;' \
2623 'extern "C" void std::exit (int); using std::exit;' \
2624 'extern "C" void exit (int) throw ();' \
2625 'extern "C" void exit (int);' \
2628 cat >conftest.$ac_ext <<_ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>conftest.er1
2648 grep -v '^ *+' conftest.er1 >conftest.err
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673 cat >conftest.$ac_ext <<_ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2688 rm -f conftest.$ac_objext
2689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690 (eval $ac_compile) 2>conftest.er1
2692 grep -v '^ *+' conftest.er1 >conftest.err
2694 cat conftest.err >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } &&
2697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; } &&
2703 { ac_try='test -s conftest.$ac_objext'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; }; then
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2718 if test -n "$ac_declaration"; then
2719 echo '#ifdef __cplusplus' >>confdefs.h
2720 echo $ac_declaration >>confdefs.h
2721 echo '#endif' >>confdefs.h
2725 echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731 ac_cpp='$CPP $CPPFLAGS'
2732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738 ac_cpp='$CPP $CPPFLAGS'
2739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2743 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2744 # On Suns, sometimes $CPP names a directory.
2745 if test -n "$CPP" && test -d "$CPP"; then
2748 if test -z "$CPP"; then
2749 if test "${ac_cv_prog_CPP+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 # Double quotes because CPP needs to be expanded
2753 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2756 for ac_c_preproc_warn_flag in '' yes
2758 # Use a header file that comes with gcc, so configuring glibc
2759 # with a fresh cross-compiler works.
2760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2761 # <limits.h> exists even on freestanding compilers.
2762 # On the NeXT, cc -E runs the code through the compiler's parser,
2763 # not just through cpp. "Syntax error" is here to catch this case.
2764 cat >conftest.$ac_ext <<_ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2771 # include <limits.h>
2773 # include <assert.h>
2777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2780 grep -v '^ *+' conftest.er1 >conftest.err
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } >/dev/null; then
2785 if test -s conftest.err; then
2786 ac_cpp_err=$ac_c_preproc_warn_flag
2787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2794 if test -z "$ac_cpp_err"; then
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2800 # Broken: fails on valid input.
2803 rm -f conftest.err conftest.$ac_ext
2805 # OK, works on sane cases. Now check whether non-existent headers
2806 # can be detected and how.
2807 cat >conftest.$ac_ext <<_ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2813 #include <ac_nonexistent.h>
2815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2818 grep -v '^ *+' conftest.er1 >conftest.err
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } >/dev/null; then
2823 if test -s conftest.err; then
2824 ac_cpp_err=$ac_c_preproc_warn_flag
2825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2832 if test -z "$ac_cpp_err"; then
2833 # Broken: success on invalid input.
2836 echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2839 # Passes both tests.
2843 rm -f conftest.err conftest.$ac_ext
2846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2847 rm -f conftest.err conftest.$ac_ext
2848 if $ac_preproc_ok; then
2860 echo "$as_me:$LINENO: result: $CPP" >&5
2861 echo "${ECHO_T}$CPP" >&6
2863 for ac_c_preproc_warn_flag in '' yes
2865 # Use a header file that comes with gcc, so configuring glibc
2866 # with a fresh cross-compiler works.
2867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2868 # <limits.h> exists even on freestanding compilers.
2869 # On the NeXT, cc -E runs the code through the compiler's parser,
2870 # not just through cpp. "Syntax error" is here to catch this case.
2871 cat >conftest.$ac_ext <<_ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2878 # include <limits.h>
2880 # include <assert.h>
2884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2887 grep -v '^ *+' conftest.er1 >conftest.err
2889 cat conftest.err >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } >/dev/null; then
2892 if test -s conftest.err; then
2893 ac_cpp_err=$ac_c_preproc_warn_flag
2894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2901 if test -z "$ac_cpp_err"; then
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2907 # Broken: fails on valid input.
2910 rm -f conftest.err conftest.$ac_ext
2912 # OK, works on sane cases. Now check whether non-existent headers
2913 # can be detected and how.
2914 cat >conftest.$ac_ext <<_ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2920 #include <ac_nonexistent.h>
2922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2925 grep -v '^ *+' conftest.er1 >conftest.err
2927 cat conftest.err >&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } >/dev/null; then
2930 if test -s conftest.err; then
2931 ac_cpp_err=$ac_c_preproc_warn_flag
2932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2939 if test -z "$ac_cpp_err"; then
2940 # Broken: success on invalid input.
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2946 # Passes both tests.
2950 rm -f conftest.err conftest.$ac_ext
2953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2954 rm -f conftest.err conftest.$ac_ext
2955 if $ac_preproc_ok; then
2958 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2961 See \`config.log' for more details." >&2;}
2962 { (exit 1); exit 1; }; }
2966 ac_cpp='$CPP $CPPFLAGS'
2967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2972 echo "$as_me:$LINENO: checking for egrep" >&5
2973 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2974 if test "${ac_cv_prog_egrep+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2978 then ac_cv_prog_egrep='grep -E'
2979 else ac_cv_prog_egrep='egrep'
2982 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2983 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2984 EGREP=$ac_cv_prog_egrep
2987 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2988 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2989 if test "${ac_cv_header_stdc+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 cat >conftest.$ac_ext <<_ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h. */
3011 rm -f conftest.$ac_objext
3012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>conftest.er1
3015 grep -v '^ *+' conftest.er1 >conftest.err
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
3020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; } &&
3026 { ac_try='test -s conftest.$ac_objext'
3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; }; then
3032 ac_cv_header_stdc=yes
3034 echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3037 ac_cv_header_stdc=no
3039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3041 if test $ac_cv_header_stdc = yes; then
3042 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3043 cat >conftest.$ac_ext <<_ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3053 $EGREP "memchr" >/dev/null 2>&1; then
3056 ac_cv_header_stdc=no
3062 if test $ac_cv_header_stdc = yes; then
3063 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3064 cat >conftest.$ac_ext <<_ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3074 $EGREP "free" >/dev/null 2>&1; then
3077 ac_cv_header_stdc=no
3083 if test $ac_cv_header_stdc = yes; then
3084 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3085 if test "$cross_compiling" = yes; then
3088 cat >conftest.$ac_ext <<_ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h. */
3095 #if ((' ' & 0x0FF) == 0x020)
3096 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3097 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3099 # define ISLOWER(c) \
3100 (('a' <= (c) && (c) <= 'i') \
3101 || ('j' <= (c) && (c) <= 'r') \
3102 || ('s' <= (c) && (c) <= 'z'))
3103 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3111 for (i = 0; i < 256; i++)
3112 if (XOR (islower (i), ISLOWER (i))
3113 || toupper (i) != TOUPPER (i))
3118 rm -f conftest$ac_exeext
3119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3120 (eval $ac_link) 2>&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; }; then
3131 echo "$as_me: program exited with status $ac_status" >&5
3132 echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3136 ac_cv_header_stdc=no
3138 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3142 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3143 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3144 if test $ac_cv_header_stdc = yes; then
3146 cat >>confdefs.h <<\_ACEOF
3147 #define STDC_HEADERS 1
3152 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3162 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3163 inttypes.h stdint.h unistd.h
3165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3166 echo "$as_me:$LINENO: checking for $ac_header" >&5
3167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 cat >conftest.$ac_ext <<_ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3177 $ac_includes_default
3179 #include <$ac_header>
3181 rm -f conftest.$ac_objext
3182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3183 (eval $ac_compile) 2>conftest.er1
3185 grep -v '^ *+' conftest.er1 >conftest.err
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } &&
3190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3202 eval "$as_ac_Header=yes"
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3207 eval "$as_ac_Header=no"
3209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3214 cat >>confdefs.h <<_ACEOF
3215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3230 for ac_header in fcntl.h limits.h strings.h syslog.h unistd.h sys/param.h stdarg.h
3232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3234 echo "$as_me:$LINENO: checking for $ac_header" >&5
3235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3242 # Is the header compilable?
3243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3245 cat >conftest.$ac_ext <<_ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h. */
3251 $ac_includes_default
3252 #include <$ac_header>
3254 rm -f conftest.$ac_objext
3255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3256 (eval $ac_compile) 2>conftest.er1
3258 grep -v '^ *+' conftest.er1 >conftest.err
3260 cat conftest.err >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 ac_header_compiler=yes
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3280 ac_header_compiler=no
3282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3284 echo "${ECHO_T}$ac_header_compiler" >&6
3286 # Is the header present?
3287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3289 cat >conftest.$ac_ext <<_ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3295 #include <$ac_header>
3297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3300 grep -v '^ *+' conftest.er1 >conftest.err
3302 cat conftest.err >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } >/dev/null; then
3305 if test -s conftest.err; then
3306 ac_cpp_err=$ac_c_preproc_warn_flag
3307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3314 if test -z "$ac_cpp_err"; then
3315 ac_header_preproc=yes
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 ac_header_preproc=no
3322 rm -f conftest.err conftest.$ac_ext
3323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3324 echo "${ECHO_T}$ac_header_preproc" >&6
3326 # So? What about this header?
3327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3333 ac_header_preproc=yes
3336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3343 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3350 ## --------------------------------------- ##
3351 ## Report this to michael@metaparadigm.com ##
3352 ## --------------------------------------- ##
3355 sed "s/^/$as_me: WARNING: /" >&2
3358 echo "$as_me:$LINENO: checking for $ac_header" >&5
3359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 eval "$as_ac_Header=\$ac_header_preproc"
3365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3370 cat >>confdefs.h <<_ACEOF
3371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3379 # Checks for typedefs, structures, and compiler characteristics.
3380 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3381 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3382 if test "${ac_cv_c_const+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 cat >conftest.$ac_ext <<_ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3395 /* FIXME: Include the comments suggested by Paul. */
3397 /* Ultrix mips cc rejects this. */
3398 typedef int charset[2];
3400 /* SunOS 4.1.1 cc rejects this. */
3401 char const *const *ccp;
3403 /* NEC SVR4.0.2 mips cc rejects this. */
3404 struct point {int x, y;};
3405 static struct point const zero = {0,0};
3406 /* AIX XL C 1.02.0.0 rejects this.
3407 It does not let you subtract one const X* pointer from another in
3408 an arm of an if-expression whose if-part is not a constant
3410 const char *g = "string";
3411 ccp = &g + (g ? g-g : 0);
3412 /* HPUX 7.0 cc rejects these. */
3415 ccp = (char const *const *) p;
3416 { /* SCO 3.2v4 cc rejects this. */
3418 char const *s = 0 ? (char *) 0 : (char const *) 0;
3422 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3424 const int *foo = &x[0];
3427 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3428 typedef const int *iptr;
3432 { /* AIX XL C 1.02.0.0 rejects this saying
3433 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3434 struct s { int j; const int *ap[3]; };
3435 struct s *b; b->j = 5;
3437 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3446 rm -f conftest.$ac_objext
3447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3448 (eval $ac_compile) 2>conftest.er1
3450 grep -v '^ *+' conftest.er1 >conftest.err
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } &&
3455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; } &&
3461 { ac_try='test -s conftest.$ac_objext'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; }; then
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3476 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3477 echo "${ECHO_T}$ac_cv_c_const" >&6
3478 if test $ac_cv_c_const = no; then
3480 cat >>confdefs.h <<\_ACEOF
3486 echo "$as_me:$LINENO: checking for size_t" >&5
3487 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3488 if test "${ac_cv_type_size_t+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 cat >conftest.$ac_ext <<_ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h. */
3497 $ac_includes_default
3503 if (sizeof (size_t))
3509 rm -f conftest.$ac_objext
3510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3511 (eval $ac_compile) 2>conftest.er1
3513 grep -v '^ *+' conftest.er1 >conftest.err
3515 cat conftest.err >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } &&
3518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; } &&
3524 { ac_try='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 ac_cv_type_size_t=yes
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3535 ac_cv_type_size_t=no
3537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3539 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3540 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3541 if test $ac_cv_type_size_t = yes; then
3545 cat >>confdefs.h <<_ACEOF
3546 #define size_t unsigned
3552 # Checks for library functions.
3554 for ac_func in vprintf
3556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3557 echo "$as_me:$LINENO: checking for $ac_func" >&5
3558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3559 if eval "test \"\${$as_ac_var+set}\" = set"; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 cat >conftest.$ac_ext <<_ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3570 #define $ac_func innocuous_$ac_func
3572 /* System header to define __stub macros and hopefully few prototypes,
3573 which can conflict with char $ac_func (); below.
3574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3575 <limits.h> exists even on freestanding compilers. */
3578 # include <limits.h>
3580 # include <assert.h>
3585 /* Override any gcc2 internal prototype to avoid an error. */
3590 /* We use char because int might match the return type of a gcc2
3591 builtin and then its argument prototype would still apply. */
3593 /* The GNU C library defines this for functions which it implements
3594 to always fail with ENOSYS. Some functions are actually named
3595 something starting with __ and the normal name is an alias. */
3596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3599 char (*f) () = $ac_func;
3608 return f != $ac_func;
3613 rm -f conftest.$ac_objext conftest$ac_exeext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3615 (eval $ac_link) 2>conftest.er1
3617 grep -v '^ *+' conftest.er1 >conftest.err
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; } &&
3628 { ac_try='test -s conftest$ac_exeext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3634 eval "$as_ac_var=yes"
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3639 eval "$as_ac_var=no"
3641 rm -f conftest.err conftest.$ac_objext \
3642 conftest$ac_exeext conftest.$ac_ext
3644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3646 if test `eval echo '${'$as_ac_var'}'` = yes; then
3647 cat >>confdefs.h <<_ACEOF
3648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3651 echo "$as_me:$LINENO: checking for _doprnt" >&5
3652 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
3653 if test "${ac_cv_func__doprnt+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 cat >conftest.$ac_ext <<_ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3662 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
3663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3664 #define _doprnt innocuous__doprnt
3666 /* System header to define __stub macros and hopefully few prototypes,
3667 which can conflict with char _doprnt (); below.
3668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3669 <limits.h> exists even on freestanding compilers. */
3672 # include <limits.h>
3674 # include <assert.h>
3679 /* Override any gcc2 internal prototype to avoid an error. */
3684 /* We use char because int might match the return type of a gcc2
3685 builtin and then its argument prototype would still apply. */
3687 /* The GNU C library defines this for functions which it implements
3688 to always fail with ENOSYS. Some functions are actually named
3689 something starting with __ and the normal name is an alias. */
3690 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3693 char (*f) () = _doprnt;
3702 return f != _doprnt;
3707 rm -f conftest.$ac_objext conftest$ac_exeext
3708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3709 (eval $ac_link) 2>conftest.er1
3711 grep -v '^ *+' conftest.er1 >conftest.err
3713 cat conftest.err >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } &&
3716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; } &&
3722 { ac_try='test -s conftest$ac_exeext'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; }; then
3728 ac_cv_func__doprnt=yes
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3733 ac_cv_func__doprnt=no
3735 rm -f conftest.err conftest.$ac_objext \
3736 conftest$ac_exeext conftest.$ac_ext
3738 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
3739 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
3740 if test $ac_cv_func__doprnt = yes; then
3742 cat >>confdefs.h <<\_ACEOF
3743 #define HAVE_DOPRNT 1
3752 echo "$as_me:$LINENO: checking for working memcmp" >&5
3753 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
3754 if test "${ac_cv_func_memcmp_working+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 if test "$cross_compiling" = yes; then
3758 ac_cv_func_memcmp_working=no
3760 cat >conftest.$ac_ext <<_ACEOF
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h. */
3766 $ac_includes_default
3771 /* Some versions of memcmp are not 8-bit clean. */
3772 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3773 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
3776 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
3777 or more and with at least one buffer not starting on a 4-byte boundary.
3778 William Lewis provided this test program. */
3783 for (i = 0; i < 4; i++)
3787 strcpy (a, "--------01111111");
3788 strcpy (b, "--------10000000");
3789 if (memcmp (a, b, 16) >= 0)
3799 rm -f conftest$ac_exeext
3800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801 (eval $ac_link) 2>&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; }; then
3810 ac_cv_func_memcmp_working=yes
3812 echo "$as_me: program exited with status $ac_status" >&5
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3817 ac_cv_func_memcmp_working=no
3819 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3822 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
3823 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
3824 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
3825 "memcmp.$ac_objext" | \
3826 *" memcmp.$ac_objext" | \
3827 "memcmp.$ac_objext "* | \
3828 *" memcmp.$ac_objext "* ) ;;
3829 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
3834 for ac_header in stdlib.h
3836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3838 echo "$as_me:$LINENO: checking for $ac_header" >&5
3839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3846 # Is the header compilable?
3847 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3849 cat >conftest.$ac_ext <<_ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 $ac_includes_default
3856 #include <$ac_header>
3858 rm -f conftest.$ac_objext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860 (eval $ac_compile) 2>conftest.er1
3862 grep -v '^ *+' conftest.er1 >conftest.err
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } &&
3867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 ac_header_compiler=yes
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3884 ac_header_compiler=no
3886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3888 echo "${ECHO_T}$ac_header_compiler" >&6
3890 # Is the header present?
3891 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3893 cat >conftest.$ac_ext <<_ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3899 #include <$ac_header>
3901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3904 grep -v '^ *+' conftest.er1 >conftest.err
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } >/dev/null; then
3909 if test -s conftest.err; then
3910 ac_cpp_err=$ac_c_preproc_warn_flag
3911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3918 if test -z "$ac_cpp_err"; then
3919 ac_header_preproc=yes
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924 ac_header_preproc=no
3926 rm -f conftest.err conftest.$ac_ext
3927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3928 echo "${ECHO_T}$ac_header_preproc" >&6
3930 # So? What about this header?
3931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3937 ac_header_preproc=yes
3940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3943 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3947 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3954 ## --------------------------------------- ##
3955 ## Report this to michael@metaparadigm.com ##
3956 ## --------------------------------------- ##
3959 sed "s/^/$as_me: WARNING: /" >&2
3962 echo "$as_me:$LINENO: checking for $ac_header" >&5
3963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 eval "$as_ac_Header=\$ac_header_preproc"
3969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3974 cat >>confdefs.h <<_ACEOF
3975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3982 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
3983 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
3984 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 if test "$cross_compiling" = yes; then
3988 ac_cv_func_malloc_0_nonnull=no
3990 cat >conftest.$ac_ext <<_ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h. */
3996 #if STDC_HEADERS || HAVE_STDLIB_H
3997 # include <stdlib.h>
4005 exit (malloc (0) ? 0 : 1);
4010 rm -f conftest$ac_exeext
4011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4012 (eval $ac_link) 2>&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; }; then
4021 ac_cv_func_malloc_0_nonnull=yes
4023 echo "$as_me: program exited with status $ac_status" >&5
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4028 ac_cv_func_malloc_0_nonnull=no
4030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4033 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
4034 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
4035 if test $ac_cv_func_malloc_0_nonnull = yes; then
4037 cat >>confdefs.h <<\_ACEOF
4038 #define HAVE_MALLOC 1
4042 cat >>confdefs.h <<\_ACEOF
4043 #define HAVE_MALLOC 0
4047 "malloc.$ac_objext" | \
4048 *" malloc.$ac_objext" | \
4049 "malloc.$ac_objext "* | \
4050 *" malloc.$ac_objext "* ) ;;
4051 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
4055 cat >>confdefs.h <<\_ACEOF
4056 #define malloc rpl_malloc
4064 for ac_header in stdlib.h
4066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4068 echo "$as_me:$LINENO: checking for $ac_header" >&5
4069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4076 # Is the header compilable?
4077 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4079 cat >conftest.$ac_ext <<_ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4085 $ac_includes_default
4086 #include <$ac_header>
4088 rm -f conftest.$ac_objext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4090 (eval $ac_compile) 2>conftest.er1
4092 grep -v '^ *+' conftest.er1 >conftest.err
4094 cat conftest.err >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } &&
4097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; } &&
4103 { ac_try='test -s conftest.$ac_objext'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; }; then
4109 ac_header_compiler=yes
4111 echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4114 ac_header_compiler=no
4116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4118 echo "${ECHO_T}$ac_header_compiler" >&6
4120 # Is the header present?
4121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4123 cat >conftest.$ac_ext <<_ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 #include <$ac_header>
4131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4134 grep -v '^ *+' conftest.er1 >conftest.err
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } >/dev/null; then
4139 if test -s conftest.err; then
4140 ac_cpp_err=$ac_c_preproc_warn_flag
4141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4148 if test -z "$ac_cpp_err"; then
4149 ac_header_preproc=yes
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4154 ac_header_preproc=no
4156 rm -f conftest.err conftest.$ac_ext
4157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4158 echo "${ECHO_T}$ac_header_preproc" >&6
4160 # So? What about this header?
4161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4167 ac_header_preproc=yes
4170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4184 ## --------------------------------------- ##
4185 ## Report this to michael@metaparadigm.com ##
4186 ## --------------------------------------- ##
4189 sed "s/^/$as_me: WARNING: /" >&2
4192 echo "$as_me:$LINENO: checking for $ac_header" >&5
4193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 eval "$as_ac_Header=\$ac_header_preproc"
4199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4204 cat >>confdefs.h <<_ACEOF
4205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4212 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
4213 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
4214 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 if test "$cross_compiling" = yes; then
4218 ac_cv_func_realloc_0_nonnull=no
4220 cat >conftest.$ac_ext <<_ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4226 #if STDC_HEADERS || HAVE_STDLIB_H
4227 # include <stdlib.h>
4235 exit (realloc (0, 0) ? 0 : 1);
4240 rm -f conftest$ac_exeext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4242 (eval $ac_link) 2>&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }; }; then
4251 ac_cv_func_realloc_0_nonnull=yes
4253 echo "$as_me: program exited with status $ac_status" >&5
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4258 ac_cv_func_realloc_0_nonnull=no
4260 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4263 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
4264 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
4265 if test $ac_cv_func_realloc_0_nonnull = yes; then
4267 cat >>confdefs.h <<\_ACEOF
4268 #define HAVE_REALLOC 1
4272 cat >>confdefs.h <<\_ACEOF
4273 #define HAVE_REALLOC 0
4277 "realloc.$ac_objext" | \
4278 *" realloc.$ac_objext" | \
4279 "realloc.$ac_objext "* | \
4280 *" realloc.$ac_objext "* ) ;;
4281 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
4285 cat >>confdefs.h <<\_ACEOF
4286 #define realloc rpl_realloc
4300 for ac_func in strndup strerror vsnprintf vasprintf open vsyslog strncasecmp
4302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4303 echo "$as_me:$LINENO: checking for $ac_func" >&5
4304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4305 if eval "test \"\${$as_ac_var+set}\" = set"; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 cat >conftest.$ac_ext <<_ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4316 #define $ac_func innocuous_$ac_func
4318 /* System header to define __stub macros and hopefully few prototypes,
4319 which can conflict with char $ac_func (); below.
4320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4321 <limits.h> exists even on freestanding compilers. */
4324 # include <limits.h>
4326 # include <assert.h>
4331 /* Override any gcc2 internal prototype to avoid an error. */
4336 /* We use char because int might match the return type of a gcc2
4337 builtin and then its argument prototype would still apply. */
4339 /* The GNU C library defines this for functions which it implements
4340 to always fail with ENOSYS. Some functions are actually named
4341 something starting with __ and the normal name is an alias. */
4342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4345 char (*f) () = $ac_func;
4354 return f != $ac_func;
4359 rm -f conftest.$ac_objext conftest$ac_exeext
4360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4361 (eval $ac_link) 2>conftest.er1
4363 grep -v '^ *+' conftest.er1 >conftest.err
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; } &&
4374 { ac_try='test -s conftest$ac_exeext'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; }; then
4380 eval "$as_ac_var=yes"
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4385 eval "$as_ac_var=no"
4387 rm -f conftest.err conftest.$ac_objext \
4388 conftest$ac_exeext conftest.$ac_ext
4390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4392 if test `eval echo '${'$as_ac_var'}'` = yes; then
4393 cat >>confdefs.h <<_ACEOF
4394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4401 # Check whether --enable-shared or --disable-shared was given.
4402 if test "${enable_shared+set}" = set; then
4403 enableval="$enable_shared"
4404 p=${PACKAGE-default}
4406 yes) enable_shared=yes ;;
4407 no) enable_shared=no ;;
4410 # Look at the argument we got. We use all the common list separators.
4411 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4412 for pkg in $enableval; do
4414 if test "X$pkg" = "X$p"; then
4425 # Check whether --enable-static or --disable-static was given.
4426 if test "${enable_static+set}" = set; then
4427 enableval="$enable_static"
4428 p=${PACKAGE-default}
4430 yes) enable_static=yes ;;
4431 no) enable_static=no ;;
4434 # Look at the argument we got. We use all the common list separators.
4435 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4436 for pkg in $enableval; do
4438 if test "X$pkg" = "X$p"; then
4449 # Check whether --enable-fast-install or --disable-fast-install was given.
4450 if test "${enable_fast_install+set}" = set; then
4451 enableval="$enable_fast_install"
4452 p=${PACKAGE-default}
4454 yes) enable_fast_install=yes ;;
4455 no) enable_fast_install=no ;;
4457 enable_fast_install=no
4458 # Look at the argument we got. We use all the common list separators.
4459 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4460 for pkg in $enableval; do
4462 if test "X$pkg" = "X$p"; then
4463 enable_fast_install=yes
4470 enable_fast_install=yes
4473 # Make sure we can run config.sub.
4474 $ac_config_sub sun4 >/dev/null 2>&1 ||
4475 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4476 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4477 { (exit 1); exit 1; }; }
4479 echo "$as_me:$LINENO: checking build system type" >&5
4480 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4481 if test "${ac_cv_build+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 ac_cv_build_alias=$build_alias
4485 test -z "$ac_cv_build_alias" &&
4486 ac_cv_build_alias=`$ac_config_guess`
4487 test -z "$ac_cv_build_alias" &&
4488 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4489 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4490 { (exit 1); exit 1; }; }
4491 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4492 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4493 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4494 { (exit 1); exit 1; }; }
4497 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4498 echo "${ECHO_T}$ac_cv_build" >&6
4500 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4501 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4502 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4505 echo "$as_me:$LINENO: checking host system type" >&5
4506 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4507 if test "${ac_cv_host+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 ac_cv_host_alias=$host_alias
4511 test -z "$ac_cv_host_alias" &&
4512 ac_cv_host_alias=$ac_cv_build_alias
4513 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4514 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4515 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4516 { (exit 1); exit 1; }; }
4519 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4520 echo "${ECHO_T}$ac_cv_host" >&6
4522 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4523 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4524 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4527 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4528 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4529 if test "${lt_cv_path_SED+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 # Loop through the user's path and test for sed and gsed.
4533 # Then use that list of sed's as ones to test for truncation.
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 test -z "$as_dir" && as_dir=.
4539 for lt_ac_prog in sed gsed; do
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4542 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4549 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4550 # along with /bin/sed that truncates output.
4551 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4552 test ! -f $lt_ac_sed && continue
4553 cat /dev/null > conftest.in
4555 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4556 # Check for GNU sed and select it if it is found.
4557 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4558 lt_cv_path_SED=$lt_ac_sed
4562 cat conftest.in conftest.in >conftest.tmp
4563 mv conftest.tmp conftest.in
4564 cp conftest.in conftest.nl
4566 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4567 cmp -s conftest.out conftest.nl || break
4568 # 10000 chars as input seems more than enough
4569 test $lt_ac_count -gt 10 && break
4570 lt_ac_count=`expr $lt_ac_count + 1`
4571 if test $lt_ac_count -gt $lt_ac_max; then
4572 lt_ac_max=$lt_ac_count
4573 lt_cv_path_SED=$lt_ac_sed
4581 echo "$as_me:$LINENO: result: $SED" >&5
4582 echo "${ECHO_T}$SED" >&6
4585 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4586 if test "${with_gnu_ld+set}" = set; then
4587 withval="$with_gnu_ld"
4588 test "$withval" = no || with_gnu_ld=yes
4593 if test "$GCC" = yes; then
4594 # Check if gcc -print-prog-name=ld gives a path.
4595 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4596 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4599 # gcc leaves a trailing carriage return which upsets mingw
4600 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4602 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4605 # Accept absolute paths.
4607 re_direlt='/[^/][^/]*/\.\./'
4608 # Canonicalize the pathname of ld
4609 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4610 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4611 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4613 test -z "$LD" && LD="$ac_prog"
4616 # If it fails, then pretend we aren't using GCC.
4620 # If it is relative, then search for the first ld in PATH.
4624 elif test "$with_gnu_ld" = yes; then
4625 echo "$as_me:$LINENO: checking for GNU ld" >&5
4626 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4628 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4629 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4631 if test "${lt_cv_path_LD+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 if test -z "$LD"; then
4635 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4636 for ac_dir in $PATH; do
4638 test -z "$ac_dir" && ac_dir=.
4639 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4640 lt_cv_path_LD="$ac_dir/$ac_prog"
4641 # Check to see if the program is GNU ld. I'd rather use --version,
4642 # but apparently some variants of GNU ld only accept -v.
4643 # Break only if it was the GNU/non-GNU ld that we prefer.
4644 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4645 *GNU* | *'with BFD'*)
4646 test "$with_gnu_ld" != no && break
4649 test "$with_gnu_ld" != yes && break
4656 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4661 if test -n "$LD"; then
4662 echo "$as_me:$LINENO: result: $LD" >&5
4663 echo "${ECHO_T}$LD" >&6
4665 echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6
4668 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4669 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4670 { (exit 1); exit 1; }; }
4671 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4672 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4673 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4677 case `$LD -v 2>&1 </dev/null` in
4678 *GNU* | *'with BFD'*)
4679 lt_cv_prog_gnu_ld=yes
4682 lt_cv_prog_gnu_ld=no
4686 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4687 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4688 with_gnu_ld=$lt_cv_prog_gnu_ld
4691 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4692 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4693 if test "${lt_cv_ld_reload_flag+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 lt_cv_ld_reload_flag='-r'
4698 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4699 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4700 reload_flag=$lt_cv_ld_reload_flag
4701 case $reload_flag in
4703 *) reload_flag=" $reload_flag" ;;
4705 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4708 if test "$GCC" = yes; then
4709 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4711 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4716 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4717 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4718 if test "${lt_cv_path_NM+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 if test -n "$NM"; then
4722 # Let the user override the test.
4725 lt_nm_to_check="${ac_tool_prefix}nm"
4726 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4727 lt_nm_to_check="$lt_nm_to_check nm"
4729 for lt_tmp_nm in $lt_nm_to_check; do
4730 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4731 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4733 test -z "$ac_dir" && ac_dir=.
4734 tmp_nm="$ac_dir/$lt_tmp_nm"
4735 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4736 # Check to see if the nm accepts a BSD-compat flag.
4737 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4738 # nm: unknown option "B" ignored
4739 # Tru64's nm complains that /dev/null is an invalid object file
4740 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4741 */dev/null* | *'Invalid file or object type'*)
4742 lt_cv_path_NM="$tmp_nm -B"
4746 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4748 lt_cv_path_NM="$tmp_nm -p"
4752 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4753 continue # so that we can try to find one that supports BSD flags
4762 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4765 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4766 echo "${ECHO_T}$lt_cv_path_NM" >&6
4769 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4770 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4772 if test "$LN_S" = "ln -s"; then
4773 echo "$as_me:$LINENO: result: yes" >&5
4774 echo "${ECHO_T}yes" >&6
4776 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4777 echo "${ECHO_T}no, using $LN_S" >&6
4780 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4781 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4782 if test "${lt_cv_deplibs_check_method+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 lt_cv_file_magic_cmd='$MAGIC_CMD'
4786 lt_cv_file_magic_test_file=
4787 lt_cv_deplibs_check_method='unknown'
4788 # Need to set the preceding variable on all platforms that support
4789 # interlibrary dependencies.
4790 # 'none' -- dependencies not supported.
4791 # `unknown' -- same as none, but documents that we really don't know.
4792 # 'pass_all' -- all dependencies passed with no checks.
4793 # 'test_compile' -- check by making test program.
4794 # 'file_magic [[regex]]' -- check by looking for files in library path
4795 # which responds to the $file_magic_cmd with a given extended regex.
4796 # If you have `file' or equivalent on your system and you're not sure
4797 # whether `pass_all' will *always* work, you probably want this one.
4801 lt_cv_deplibs_check_method=pass_all
4805 lt_cv_deplibs_check_method=pass_all
4809 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4810 lt_cv_file_magic_cmd='/usr/bin/file -L'
4811 lt_cv_file_magic_test_file=/shlib/libc.so
4815 # func_win32_libid is a shell function defined in ltmain.sh
4816 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4817 lt_cv_file_magic_cmd='func_win32_libid'
4821 # Base MSYS/MinGW do not provide the 'file' command needed by
4822 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4823 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4824 lt_cv_file_magic_cmd='$OBJDUMP -f'
4827 darwin* | rhapsody*)
4828 lt_cv_deplibs_check_method=pass_all
4831 freebsd* | kfreebsd*-gnu | dragonfly*)
4832 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4835 # Not sure whether the presence of OpenBSD here was a mistake.
4836 # Let's accept both of them until this is cleared up.
4837 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4838 lt_cv_file_magic_cmd=/usr/bin/file
4839 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4843 lt_cv_deplibs_check_method=pass_all
4848 lt_cv_deplibs_check_method=pass_all
4851 hpux10.20* | hpux11*)
4852 lt_cv_file_magic_cmd=/usr/bin/file
4855 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4856 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4859 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]'
4860 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4863 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4864 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4870 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4871 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4874 irix5* | irix6* | nonstopux*)
4876 *-32|*"-32 ") libmagic=32-bit;;
4877 *-n32|*"-n32 ") libmagic=N32;;
4878 *-64|*"-64 ") libmagic=64-bit;;
4879 *) libmagic=never-match;;
4881 lt_cv_deplibs_check_method=pass_all
4884 # This must be Linux ELF.
4886 lt_cv_deplibs_check_method=pass_all
4889 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4890 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4891 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4893 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4898 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4899 lt_cv_file_magic_cmd=/usr/bin/file
4900 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4904 lt_cv_deplibs_check_method=unknown
4908 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4909 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4911 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4915 osf3* | osf4* | osf5*)
4916 lt_cv_deplibs_check_method=pass_all
4920 lt_cv_deplibs_check_method=pass_all
4924 case $host_vendor in
4926 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]'
4927 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4930 lt_cv_deplibs_check_method=pass_all
4933 lt_cv_file_magic_cmd='/bin/file'
4934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4937 lt_cv_file_magic_cmd='/bin/file'
4938 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4939 lt_cv_file_magic_test_file=/lib/libc.so
4942 lt_cv_deplibs_check_method=pass_all
4945 lt_cv_deplibs_check_method=pass_all
4950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4951 lt_cv_deplibs_check_method=pass_all
4956 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4957 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4958 file_magic_cmd=$lt_cv_file_magic_cmd
4959 deplibs_check_method=$lt_cv_deplibs_check_method
4960 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4965 # If no C compiler was specified, use CC.
4968 # If no C compiler flags were specified, use CFLAGS.
4969 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4971 # Allow CC to be a program name with arguments.
4974 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4975 if test "${enable_libtool_lock+set}" = set; then
4976 enableval="$enable_libtool_lock"
4979 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4981 # Some flags need to be propagated to the compiler or linker for good
4985 # Find out which ABI we are using.
4986 echo 'int i;' > conftest.$ac_ext
4987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4988 (eval $ac_compile) 2>&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; then
4992 case `/usr/bin/file conftest.$ac_objext` in
5004 # Find out which ABI we are using.
5005 echo '#line 5005 "configure"' > conftest.$ac_ext
5006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5007 (eval $ac_compile) 2>&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; then
5011 if test "$lt_cv_prog_gnu_ld" = yes; then
5012 case `/usr/bin/file conftest.$ac_objext` in
5014 LD="${LD-ld} -melf32bsmip"
5017 LD="${LD-ld} -melf32bmipn32"
5020 LD="${LD-ld} -melf64bmip"
5024 case `/usr/bin/file conftest.$ac_objext` in
5040 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5041 # Find out which ABI we are using.
5042 echo 'int i;' > conftest.$ac_ext
5043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5044 (eval $ac_compile) 2>&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; then
5048 case `/usr/bin/file conftest.o` in
5052 LD="${LD-ld} -m elf_i386"
5054 ppc64-*linux*|powerpc64-*linux*)
5055 LD="${LD-ld} -m elf32ppclinux"
5058 LD="${LD-ld} -m elf_s390"
5061 LD="${LD-ld} -m elf32_sparc"
5068 LD="${LD-ld} -m elf_x86_64"
5070 ppc*-*linux*|powerpc*-*linux*)
5071 LD="${LD-ld} -m elf64ppc"
5074 LD="${LD-ld} -m elf64_s390"
5077 LD="${LD-ld} -m elf64_sparc"
5087 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5088 SAVE_CFLAGS="$CFLAGS"
5089 CFLAGS="$CFLAGS -belf"
5090 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5091 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5092 if test "${lt_cv_cc_needs_belf+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 ac_cpp='$CPP $CPPFLAGS'
5097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5101 cat >conftest.$ac_ext <<_ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5116 rm -f conftest.$ac_objext conftest$ac_exeext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5118 (eval $ac_link) 2>conftest.er1
5120 grep -v '^ *+' conftest.er1 >conftest.err
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } &&
5125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; } &&
5131 { ac_try='test -s conftest$ac_exeext'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; }; then
5137 lt_cv_cc_needs_belf=yes
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5142 lt_cv_cc_needs_belf=no
5144 rm -f conftest.err conftest.$ac_objext \
5145 conftest$ac_exeext conftest.$ac_ext
5147 ac_cpp='$CPP $CPPFLAGS'
5148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5153 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5154 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5155 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5156 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5157 CFLAGS="$SAVE_CFLAGS"
5161 # Find out which ABI we are using.
5162 echo 'int i;' > conftest.$ac_ext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5164 (eval $ac_compile) 2>&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; then
5168 case `/usr/bin/file conftest.o` in
5170 case $lt_cv_prog_gnu_ld in
5171 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5172 *) LD="${LD-ld} -64" ;;
5183 need_locks="$enable_libtool_lock"
5187 for ac_header in dlfcn.h
5189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5191 echo "$as_me:$LINENO: checking for $ac_header" >&5
5192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5199 # Is the header compilable?
5200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5202 cat >conftest.$ac_ext <<_ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5208 $ac_includes_default
5209 #include <$ac_header>
5211 rm -f conftest.$ac_objext
5212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5213 (eval $ac_compile) 2>conftest.er1
5215 grep -v '^ *+' conftest.er1 >conftest.err
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } &&
5220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; } &&
5226 { ac_try='test -s conftest.$ac_objext'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5232 ac_header_compiler=yes
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5237 ac_header_compiler=no
5239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5241 echo "${ECHO_T}$ac_header_compiler" >&6
5243 # Is the header present?
5244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5246 cat >conftest.$ac_ext <<_ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h. */
5252 #include <$ac_header>
5254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5257 grep -v '^ *+' conftest.er1 >conftest.err
5259 cat conftest.err >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } >/dev/null; then
5262 if test -s conftest.err; then
5263 ac_cpp_err=$ac_c_preproc_warn_flag
5264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5271 if test -z "$ac_cpp_err"; then
5272 ac_header_preproc=yes
5274 echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5277 ac_header_preproc=no
5279 rm -f conftest.err conftest.$ac_ext
5280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5281 echo "${ECHO_T}$ac_header_preproc" >&6
5283 # So? What about this header?
5284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5290 ac_header_preproc=yes
5293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5300 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5307 ## --------------------------------------- ##
5308 ## Report this to michael@metaparadigm.com ##
5309 ## --------------------------------------- ##
5312 sed "s/^/$as_me: WARNING: /" >&2
5315 echo "$as_me:$LINENO: checking for $ac_header" >&5
5316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 eval "$as_ac_Header=\$ac_header_preproc"
5322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5327 cat >>confdefs.h <<_ACEOF
5328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5336 ac_cpp='$CXXCPP $CPPFLAGS'
5337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5340 if test -n "$ac_tool_prefix"; then
5341 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5345 echo "$as_me:$LINENO: checking for $ac_word" >&5
5346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5347 if test "${ac_cv_prog_CXX+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 if test -n "$CXX"; then
5351 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 if test -n "$CXX"; then
5371 echo "$as_me:$LINENO: result: $CXX" >&5
5372 echo "${ECHO_T}$CXX" >&6
5374 echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5378 test -n "$CXX" && break
5381 if test -z "$CXX"; then
5383 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5385 # Extract the first word of "$ac_prog", so it can be a program name with args.
5386 set dummy $ac_prog; ac_word=$2
5387 echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5389 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 if test -n "$ac_ct_CXX"; then
5393 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402 ac_cv_prog_ac_ct_CXX="$ac_prog"
5403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5412 if test -n "$ac_ct_CXX"; then
5413 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5414 echo "${ECHO_T}$ac_ct_CXX" >&6
5416 echo "$as_me:$LINENO: result: no" >&5
5417 echo "${ECHO_T}no" >&6
5420 test -n "$ac_ct_CXX" && break
5422 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5428 # Provide some information about the compiler.
5429 echo "$as_me:$LINENO:" \
5430 "checking for C++ compiler version" >&5
5431 ac_compiler=`set X $ac_compile; echo $2`
5432 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5433 (eval $ac_compiler --version </dev/null >&5) 2>&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }
5437 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5438 (eval $ac_compiler -v </dev/null >&5) 2>&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }
5442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5443 (eval $ac_compiler -V </dev/null >&5) 2>&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }
5448 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5449 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5450 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 cat >conftest.$ac_ext <<_ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5471 rm -f conftest.$ac_objext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473 (eval $ac_compile) 2>conftest.er1
5475 grep -v '^ *+' conftest.er1 >conftest.err
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; } &&
5486 { ac_try='test -s conftest.$ac_objext'
5487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }; }; then
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5500 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5503 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5504 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5505 GXX=`test $ac_compiler_gnu = yes && echo yes`
5506 ac_test_CXXFLAGS=${CXXFLAGS+set}
5507 ac_save_CXXFLAGS=$CXXFLAGS
5509 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5510 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5511 if test "${ac_cv_prog_cxx_g+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 cat >conftest.$ac_ext <<_ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5529 rm -f conftest.$ac_objext
5530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5531 (eval $ac_compile) 2>conftest.er1
5533 grep -v '^ *+' conftest.er1 >conftest.err
5535 cat conftest.err >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } &&
5538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; } &&
5544 { ac_try='test -s conftest.$ac_objext'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; }; then
5550 ac_cv_prog_cxx_g=yes
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5559 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5560 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5561 if test "$ac_test_CXXFLAGS" = set; then
5562 CXXFLAGS=$ac_save_CXXFLAGS
5563 elif test $ac_cv_prog_cxx_g = yes; then
5564 if test "$GXX" = yes; then
5570 if test "$GXX" = yes; then
5576 for ac_declaration in \
5578 'extern "C" void std::exit (int) throw (); using std::exit;' \
5579 'extern "C" void std::exit (int); using std::exit;' \
5580 'extern "C" void exit (int) throw ();' \
5581 'extern "C" void exit (int);' \
5584 cat >conftest.$ac_ext <<_ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5600 rm -f conftest.$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>conftest.er1
5604 grep -v '^ *+' conftest.er1 >conftest.err
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; } &&
5615 { ac_try='test -s conftest.$ac_objext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5629 cat >conftest.$ac_ext <<_ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5644 rm -f conftest.$ac_objext
5645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646 (eval $ac_compile) 2>conftest.er1
5648 grep -v '^ *+' conftest.er1 >conftest.err
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } &&
5653 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }; } &&
5659 { ac_try='test -s conftest.$ac_objext'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; }; then
5667 echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5674 if test -n "$ac_declaration"; then
5675 echo '#ifdef __cplusplus' >>confdefs.h
5676 echo $ac_declaration >>confdefs.h
5677 echo '#endif' >>confdefs.h
5681 ac_cpp='$CXXCPP $CPPFLAGS'
5682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5688 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5689 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5690 (test "X$CXX" != "Xg++"))) ; then
5692 ac_cpp='$CXXCPP $CPPFLAGS'
5693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5696 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5697 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5698 if test -z "$CXXCPP"; then
5699 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 # Double quotes because CXXCPP needs to be expanded
5703 for CXXCPP in "$CXX -E" "/lib/cpp"
5706 for ac_cxx_preproc_warn_flag in '' yes
5708 # Use a header file that comes with gcc, so configuring glibc
5709 # with a fresh cross-compiler works.
5710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5711 # <limits.h> exists even on freestanding compilers.
5712 # On the NeXT, cc -E runs the code through the compiler's parser,
5713 # not just through cpp. "Syntax error" is here to catch this case.
5714 cat >conftest.$ac_ext <<_ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5721 # include <limits.h>
5723 # include <assert.h>
5727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5730 grep -v '^ *+' conftest.er1 >conftest.err
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } >/dev/null; then
5735 if test -s conftest.err; then
5736 ac_cpp_err=$ac_cxx_preproc_warn_flag
5737 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5744 if test -z "$ac_cpp_err"; then
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5750 # Broken: fails on valid input.
5753 rm -f conftest.err conftest.$ac_ext
5755 # OK, works on sane cases. Now check whether non-existent headers
5756 # can be detected and how.
5757 cat >conftest.$ac_ext <<_ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 #include <ac_nonexistent.h>
5765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5768 grep -v '^ *+' conftest.er1 >conftest.err
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } >/dev/null; then
5773 if test -s conftest.err; then
5774 ac_cpp_err=$ac_cxx_preproc_warn_flag
5775 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5782 if test -z "$ac_cpp_err"; then
5783 # Broken: success on invalid input.
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5789 # Passes both tests.
5793 rm -f conftest.err conftest.$ac_ext
5796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5797 rm -f conftest.err conftest.$ac_ext
5798 if $ac_preproc_ok; then
5803 ac_cv_prog_CXXCPP=$CXXCPP
5806 CXXCPP=$ac_cv_prog_CXXCPP
5808 ac_cv_prog_CXXCPP=$CXXCPP
5810 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5811 echo "${ECHO_T}$CXXCPP" >&6
5813 for ac_cxx_preproc_warn_flag in '' yes
5815 # Use a header file that comes with gcc, so configuring glibc
5816 # with a fresh cross-compiler works.
5817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5818 # <limits.h> exists even on freestanding compilers.
5819 # On the NeXT, cc -E runs the code through the compiler's parser,
5820 # not just through cpp. "Syntax error" is here to catch this case.
5821 cat >conftest.$ac_ext <<_ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5828 # include <limits.h>
5830 # include <assert.h>
5834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5837 grep -v '^ *+' conftest.er1 >conftest.err
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } >/dev/null; then
5842 if test -s conftest.err; then
5843 ac_cpp_err=$ac_cxx_preproc_warn_flag
5844 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5851 if test -z "$ac_cpp_err"; then
5854 echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5857 # Broken: fails on valid input.
5860 rm -f conftest.err conftest.$ac_ext
5862 # OK, works on sane cases. Now check whether non-existent headers
5863 # can be detected and how.
5864 cat >conftest.$ac_ext <<_ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5870 #include <ac_nonexistent.h>
5872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5875 grep -v '^ *+' conftest.er1 >conftest.err
5877 cat conftest.err >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } >/dev/null; then
5880 if test -s conftest.err; then
5881 ac_cpp_err=$ac_cxx_preproc_warn_flag
5882 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5889 if test -z "$ac_cpp_err"; then
5890 # Broken: success on invalid input.
5893 echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5896 # Passes both tests.
5900 rm -f conftest.err conftest.$ac_ext
5903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5904 rm -f conftest.err conftest.$ac_ext
5905 if $ac_preproc_ok; then
5908 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5909 See \`config.log' for more details." >&5
5910 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5911 See \`config.log' for more details." >&2;}
5912 { (exit 1); exit 1; }; }
5916 ac_cpp='$CXXCPP $CPPFLAGS'
5917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5925 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5926 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5927 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5928 if test -n "$ac_tool_prefix"; then
5929 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5933 echo "$as_me:$LINENO: checking for $ac_word" >&5
5934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5935 if test "${ac_cv_prog_F77+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 if test -n "$F77"; then
5939 ac_cv_prog_F77="$F77" # Let the user override the test.
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 if test -n "$F77"; then
5959 echo "$as_me:$LINENO: result: $F77" >&5
5960 echo "${ECHO_T}$F77" >&6
5962 echo "$as_me:$LINENO: result: no" >&5
5963 echo "${ECHO_T}no" >&6
5966 test -n "$F77" && break
5969 if test -z "$F77"; then
5971 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5973 # Extract the first word of "$ac_prog", so it can be a program name with args.
5974 set dummy $ac_prog; ac_word=$2
5975 echo "$as_me:$LINENO: checking for $ac_word" >&5
5976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5977 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 if test -n "$ac_ct_F77"; then
5981 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5990 ac_cv_prog_ac_ct_F77="$ac_prog"
5991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5999 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6000 if test -n "$ac_ct_F77"; then
6001 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6002 echo "${ECHO_T}$ac_ct_F77" >&6
6004 echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6
6008 test -n "$ac_ct_F77" && break
6015 # Provide some information about the compiler.
6016 echo "$as_me:6016:" \
6017 "checking for Fortran 77 compiler version" >&5
6018 ac_compiler=`set X $ac_compile; echo $2`
6019 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6020 (eval $ac_compiler --version </dev/null >&5) 2>&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }
6024 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6025 (eval $ac_compiler -v </dev/null >&5) 2>&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }
6029 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6030 (eval $ac_compiler -V </dev/null >&5) 2>&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }
6036 # If we don't use `.F' as extension, the preprocessor is not run on the
6037 # input file. (Note that this only needs to work for GNU compilers.)
6040 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6041 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6042 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 cat >conftest.$ac_ext <<_ACEOF
6053 rm -f conftest.$ac_objext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6055 (eval $ac_compile) 2>conftest.er1
6057 grep -v '^ *+' conftest.er1 >conftest.err
6059 cat conftest.err >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } &&
6062 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; } &&
6068 { ac_try='test -s conftest.$ac_objext'
6069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; }; then
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6082 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6085 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6086 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6088 ac_test_FFLAGS=${FFLAGS+set}
6089 ac_save_FFLAGS=$FFLAGS
6091 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6092 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6093 if test "${ac_cv_prog_f77_g+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 cat >conftest.$ac_ext <<_ACEOF
6102 rm -f conftest.$ac_objext
6103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6104 (eval $ac_compile) 2>conftest.er1
6106 grep -v '^ *+' conftest.er1 >conftest.err
6108 cat conftest.err >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } &&
6111 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; } &&
6117 { ac_try='test -s conftest.$ac_objext'
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; }; then
6123 ac_cv_prog_f77_g=yes
6125 echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6133 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6134 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6135 if test "$ac_test_FFLAGS" = set; then
6136 FFLAGS=$ac_save_FFLAGS
6137 elif test $ac_cv_prog_f77_g = yes; then
6138 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6144 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6151 G77=`test $ac_compiler_gnu = yes && echo yes`
6153 ac_cpp='$CPP $CPPFLAGS'
6154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6160 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6162 # find the maximum length of command line arguments
6163 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6164 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6165 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 # On DJGPP, this test can blow up pretty badly due to problems in libc
6174 # (any single argument exceeding 2000 bytes causes a buffer overrun
6175 # during glob expansion). Even if it were fixed, the result of this
6176 # check would be larger than it should be.
6177 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6181 # Under GNU Hurd, this test is not required because there is
6182 # no limit to the length of command line arguments.
6183 # Libtool will interpret -1 as no limit whatsoever
6184 lt_cv_sys_max_cmd_len=-1;
6188 # On Win9x/ME, this test blows up -- it succeeds, but takes
6189 # about 5 minutes as the teststring grows exponentially.
6190 # Worse, since 9x/ME are not pre-emptively multitasking,
6191 # you end up with a "frozen" computer, even though with patience
6192 # the test eventually succeeds (with a max line length of 256k).
6193 # Instead, let's just punt: use the minimum linelength reported by
6194 # all of the supported platforms: 8192 (on NT/2K/XP).
6195 lt_cv_sys_max_cmd_len=8192;
6199 # On AmigaOS with pdksh, this test takes hours, literally.
6200 # So we just punt and use a minimum line length of 8192.
6201 lt_cv_sys_max_cmd_len=8192;
6204 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6205 # This has been around since 386BSD, at least. Likely further.
6206 if test -x /sbin/sysctl; then
6207 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6208 elif test -x /usr/sbin/sysctl; then
6209 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6211 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6213 # And add a safety zone
6214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6219 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6220 lt_cv_sys_max_cmd_len=196608
6224 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6225 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6226 # nice to cause kernel panics so lets avoid the loop below.
6227 # First set a reasonable default.
6228 lt_cv_sys_max_cmd_len=16384
6230 if test -x /sbin/sysconfig; then
6231 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6232 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6237 lt_cv_sys_max_cmd_len=102400
6239 sysv5* | sco5v6* | sysv4.2uw2*)
6240 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6241 if test -n "$kargmax"; then
6242 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6244 lt_cv_sys_max_cmd_len=32768
6248 # If test is not a shell built-in, we'll probably end up computing a
6249 # maximum length that is only half of the actual maximum length, but
6251 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6252 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6253 = "XX$teststring") >/dev/null 2>&1 &&
6254 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6255 lt_cv_sys_max_cmd_len=$new_result &&
6256 test $i != 17 # 1/2 MB should be enough
6259 teststring=$teststring$teststring
6262 # Add a significant safety factor because C++ compilers can tack on massive
6263 # amounts of additional arguments before passing them to the linker.
6264 # It appears as though 1/2 is a usable value.
6265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6271 if test -n $lt_cv_sys_max_cmd_len ; then
6272 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6273 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6275 echo "$as_me:$LINENO: result: none" >&5
6276 echo "${ECHO_T}none" >&6
6282 # Check for command to grab the raw symbol name followed by C symbol from nm.
6283 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6284 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6285 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 # These are sane defaults that work on at least a few old systems.
6290 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6292 # Character class describing NM global symbol codes.
6293 symcode='[BCDEGRST]'
6295 # Regexp to match symbols that can be accessed directly from C.
6296 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6298 # Transform an extracted symbol line into a proper C declaration
6299 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6301 # Transform an extracted symbol line into symbol name and symbol address
6302 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'"
6304 # Define system-specific variables.
6309 cygwin* | mingw* | pw32*)
6310 symcode='[ABCDGISTW]'
6312 hpux*) # Its linker distinguishes data from code symbols
6313 if test "$host_cpu" = ia64; then
6314 symcode='[ABCDEGRST]'
6316 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6317 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'"
6320 if test "$host_cpu" = ia64; then
6321 symcode='[ABCDGIRSTW]'
6322 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6323 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'"
6327 symcode='[BCDEGRST]'
6330 symcode='[BCDEGQRST]'
6341 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6349 # Handle CRLF in mingw tool chain
6353 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6357 # If we're using GNU nm, then use its standard symbol codes.
6358 case `$NM -V 2>&1` in
6359 *GNU* | *'with BFD'*)
6360 symcode='[ABCDGIRSTW]' ;;
6363 # Try without a prefix undercore, then with it.
6364 for ac_symprfx in "" "_"; do
6366 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6367 symxfrm="\\1 $ac_symprfx\\2 \\2"
6369 # Write the raw and C identifiers.
6370 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6372 # Check to see that the pipe works correctly.
6376 cat > conftest.$ac_ext <<EOF
6381 void nm_test_func(){}
6385 int main(){nm_test_var='a';nm_test_func();return(0);}
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; then
6393 # Now try to grab the symbols.
6395 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6396 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } && test -s "$nlist"; then
6400 # Try sorting and uniquifying the output.
6401 if sort "$nlist" | uniq > "$nlist"T; then
6402 mv -f "$nlist"T "$nlist"
6407 # Make sure that we snagged all the symbols we need.
6408 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6409 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6410 cat <<EOF > conftest.$ac_ext
6416 # Now generate the symbol file.
6417 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6419 cat <<EOF >> conftest.$ac_ext
6420 #if defined (__STDC__) && __STDC__
6421 # define lt_ptr_t void *
6423 # define lt_ptr_t char *
6427 /* The mapping between symbol names and symbols. */
6432 lt_preloaded_symbols[] =
6435 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6436 cat <<\EOF >> conftest.$ac_ext
6444 # Now try linking the two files.
6445 mv conftest.$ac_objext conftstm.$ac_objext
6446 lt_save_LIBS="$LIBS"
6447 lt_save_CFLAGS="$CFLAGS"
6448 LIBS="conftstm.$ac_objext"
6449 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451 (eval $ac_link) 2>&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6457 LIBS="$lt_save_LIBS"
6458 CFLAGS="$lt_save_CFLAGS"
6460 echo "cannot find nm_test_func in $nlist" >&5
6463 echo "cannot find nm_test_var in $nlist" >&5
6466 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6469 echo "$progname: failed program was:" >&5
6470 cat conftest.$ac_ext >&5
6472 rm -f conftest* conftst*
6474 # Do not use the global_symbol_pipe unless it works.
6475 if test "$pipe_works" = yes; then
6478 lt_cv_sys_global_symbol_pipe=
6484 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6485 lt_cv_sys_global_symbol_to_cdecl=
6487 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6488 echo "$as_me:$LINENO: result: failed" >&5
6489 echo "${ECHO_T}failed" >&6
6491 echo "$as_me:$LINENO: result: ok" >&5
6492 echo "${ECHO_T}ok" >&6
6495 echo "$as_me:$LINENO: checking for objdir" >&5
6496 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6497 if test "${lt_cv_objdir+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6500 rm -f .libs 2>/dev/null
6501 mkdir .libs 2>/dev/null
6502 if test -d .libs; then
6505 # MS-DOS does not allow filenames that begin with a dot.
6508 rmdir .libs 2>/dev/null
6510 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6511 echo "${ECHO_T}$lt_cv_objdir" >&6
6512 objdir=$lt_cv_objdir
6520 # AIX sometimes has problems with the GCC collect2 program. For some
6521 # reason, if we set the COLLECT_NAMES environment variable, the problems
6522 # vanish in a puff of smoke.
6523 if test "X${COLLECT_NAMES+set}" != Xset; then
6525 export COLLECT_NAMES
6530 # Sed substitution that helps us do robust quoting. It backslashifies
6531 # metacharacters that are still active within double-quoted strings.
6532 Xsed='sed -e 1s/^X//'
6533 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6535 # Same as above, but do not quote variable references.
6536 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6538 # Sed substitution to delay expansion of an escaped shell variable in a
6539 # double_quote_subst'ed string.
6540 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6542 # Sed substitution to avoid accidental globbing in evaled expressions
6543 no_glob_subst='s/\*/\\\*/g'
6549 default_ofile=libtool
6550 can_build_shared=yes
6552 # All known linkers require a `.a' archive for static linking (except MSVC,
6553 # which needs '.lib').
6555 ltmain="$ac_aux_dir/ltmain.sh"
6556 ofile="$default_ofile"
6557 with_gnu_ld="$lt_cv_prog_gnu_ld"
6559 if test -n "$ac_tool_prefix"; then
6560 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6561 set dummy ${ac_tool_prefix}ar; ac_word=$2
6562 echo "$as_me:$LINENO: checking for $ac_word" >&5
6563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6564 if test "${ac_cv_prog_AR+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 if test -n "$AR"; then
6568 ac_cv_prog_AR="$AR" # Let the user override the test.
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6577 ac_cv_prog_AR="${ac_tool_prefix}ar"
6578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 if test -n "$AR"; then
6588 echo "$as_me:$LINENO: result: $AR" >&5
6589 echo "${ECHO_T}$AR" >&6
6591 echo "$as_me:$LINENO: result: no" >&5
6592 echo "${ECHO_T}no" >&6
6596 if test -z "$ac_cv_prog_AR"; then
6598 # Extract the first word of "ar", so it can be a program name with args.
6599 set dummy ar; ac_word=$2
6600 echo "$as_me:$LINENO: checking for $ac_word" >&5
6601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6602 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 if test -n "$ac_ct_AR"; then
6606 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6615 ac_cv_prog_ac_ct_AR="ar"
6616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6625 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6626 if test -n "$ac_ct_AR"; then
6627 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6628 echo "${ECHO_T}$ac_ct_AR" >&6
6630 echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6
6639 if test -n "$ac_tool_prefix"; then
6640 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6641 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6642 echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6644 if test "${ac_cv_prog_RANLIB+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6647 if test -n "$RANLIB"; then
6648 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6657 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 RANLIB=$ac_cv_prog_RANLIB
6667 if test -n "$RANLIB"; then
6668 echo "$as_me:$LINENO: result: $RANLIB" >&5
6669 echo "${ECHO_T}$RANLIB" >&6
6671 echo "$as_me:$LINENO: result: no" >&5
6672 echo "${ECHO_T}no" >&6
6676 if test -z "$ac_cv_prog_RANLIB"; then
6677 ac_ct_RANLIB=$RANLIB
6678 # Extract the first word of "ranlib", so it can be a program name with args.
6679 set dummy ranlib; ac_word=$2
6680 echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6682 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 if test -n "$ac_ct_RANLIB"; then
6686 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695 ac_cv_prog_ac_ct_RANLIB="ranlib"
6696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6705 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6706 if test -n "$ac_ct_RANLIB"; then
6707 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6708 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6710 echo "$as_me:$LINENO: result: no" >&5
6711 echo "${ECHO_T}no" >&6
6714 RANLIB=$ac_ct_RANLIB
6716 RANLIB="$ac_cv_prog_RANLIB"
6719 if test -n "$ac_tool_prefix"; then
6720 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6721 set dummy ${ac_tool_prefix}strip; ac_word=$2
6722 echo "$as_me:$LINENO: checking for $ac_word" >&5
6723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6724 if test "${ac_cv_prog_STRIP+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 if test -n "$STRIP"; then
6728 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6737 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 STRIP=$ac_cv_prog_STRIP
6747 if test -n "$STRIP"; then
6748 echo "$as_me:$LINENO: result: $STRIP" >&5
6749 echo "${ECHO_T}$STRIP" >&6
6751 echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6
6756 if test -z "$ac_cv_prog_STRIP"; then
6758 # Extract the first word of "strip", so it can be a program name with args.
6759 set dummy strip; ac_word=$2
6760 echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6762 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 if test -n "$ac_ct_STRIP"; then
6766 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775 ac_cv_prog_ac_ct_STRIP="strip"
6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6785 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6786 if test -n "$ac_ct_STRIP"; then
6787 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6788 echo "${ECHO_T}$ac_ct_STRIP" >&6
6790 echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6
6796 STRIP="$ac_cv_prog_STRIP"
6801 old_CFLAGS="$CFLAGS"
6803 # Set sane defaults for various variables
6804 test -z "$AR" && AR=ar
6805 test -z "$AR_FLAGS" && AR_FLAGS=cru
6806 test -z "$AS" && AS=as
6807 test -z "$CC" && CC=cc
6808 test -z "$LTCC" && LTCC=$CC
6809 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6810 test -z "$DLLTOOL" && DLLTOOL=dlltool
6811 test -z "$LD" && LD=ld
6812 test -z "$LN_S" && LN_S="ln -s"
6813 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6814 test -z "$NM" && NM=nm
6815 test -z "$SED" && SED=sed
6816 test -z "$OBJDUMP" && OBJDUMP=objdump
6817 test -z "$RANLIB" && RANLIB=:
6818 test -z "$STRIP" && STRIP=:
6819 test -z "$ac_objext" && ac_objext=o
6821 # Determine commands to create old-style static archives.
6822 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6823 old_postinstall_cmds='chmod 644 $oldlib'
6824 old_postuninstall_cmds=
6826 if test -n "$RANLIB"; then
6829 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6832 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6835 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6838 for cc_temp in $compiler""; do
6840 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6841 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6846 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6849 # Only perform the check for file, if the check method requires it
6850 case $deplibs_check_method in
6852 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6853 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6854 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6855 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6863 lt_save_MAGIC_CMD="$MAGIC_CMD"
6864 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6865 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6866 for ac_dir in $ac_dummy; do
6868 test -z "$ac_dir" && ac_dir=.
6869 if test -f $ac_dir/${ac_tool_prefix}file; then
6870 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6871 if test -n "$file_magic_test_file"; then
6872 case $deplibs_check_method in
6874 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6875 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6876 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6877 $EGREP "$file_magic_regex" > /dev/null; then
6882 *** Warning: the command libtool uses to detect shared libraries,
6883 *** $file_magic_cmd, produces output that libtool cannot recognize.
6884 *** The result is that libtool may fail to recognize shared libraries
6885 *** as such. This will affect the creation of libtool libraries that
6886 *** depend on shared libraries, but programs linked with such libtool
6887 *** libraries will work regardless of this problem. Nevertheless, you
6888 *** may want to report the problem to your system manager and/or to
6889 *** bug-libtool@gnu.org
6899 MAGIC_CMD="$lt_save_MAGIC_CMD"
6904 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6905 if test -n "$MAGIC_CMD"; then
6906 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6907 echo "${ECHO_T}$MAGIC_CMD" >&6
6909 echo "$as_me:$LINENO: result: no" >&5
6910 echo "${ECHO_T}no" >&6
6913 if test -z "$lt_cv_path_MAGIC_CMD"; then
6914 if test -n "$ac_tool_prefix"; then
6915 echo "$as_me:$LINENO: checking for file" >&5
6916 echo $ECHO_N "checking for file... $ECHO_C" >&6
6917 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6922 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6925 lt_save_MAGIC_CMD="$MAGIC_CMD"
6926 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6927 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6928 for ac_dir in $ac_dummy; do
6930 test -z "$ac_dir" && ac_dir=.
6931 if test -f $ac_dir/file; then
6932 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6933 if test -n "$file_magic_test_file"; then
6934 case $deplibs_check_method in
6936 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6938 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6939 $EGREP "$file_magic_regex" > /dev/null; then
6944 *** Warning: the command libtool uses to detect shared libraries,
6945 *** $file_magic_cmd, produces output that libtool cannot recognize.
6946 *** The result is that libtool may fail to recognize shared libraries
6947 *** as such. This will affect the creation of libtool libraries that
6948 *** depend on shared libraries, but programs linked with such libtool
6949 *** libraries will work regardless of this problem. Nevertheless, you
6950 *** may want to report the problem to your system manager and/or to
6951 *** bug-libtool@gnu.org
6961 MAGIC_CMD="$lt_save_MAGIC_CMD"
6966 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6967 if test -n "$MAGIC_CMD"; then
6968 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6969 echo "${ECHO_T}$MAGIC_CMD" >&6
6971 echo "$as_me:$LINENO: result: no" >&5
6972 echo "${ECHO_T}no" >&6
6987 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6988 if test "${enable_libtool_lock+set}" = set; then
6989 enableval="$enable_libtool_lock"
6992 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6995 # Check whether --with-pic or --without-pic was given.
6996 if test "${with_pic+set}" = set; then
7002 test -z "$pic_mode" && pic_mode=default
7004 # Use C for the default configuration in the libtool script
7008 ac_cpp='$CPP $CPPFLAGS'
7009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7014 # Source file extension for C test sources.
7017 # Object file extension for compiled C test sources.
7021 # Code to be used in simple compile tests
7022 lt_simple_compile_test_code="int some_variable = 0;\n"
7024 # Code to be used in simple link tests
7025 lt_simple_link_test_code='int main(){return(0);}\n'
7028 # If no C compiler was specified, use CC.
7031 # If no C compiler flags were specified, use CFLAGS.
7032 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7034 # Allow CC to be a program name with arguments.
7038 # save warnings/boilerplate of simple test code
7039 ac_outfile=conftest.$ac_objext
7040 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7041 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7042 _lt_compiler_boilerplate=`cat conftest.err`
7045 ac_outfile=conftest.$ac_objext
7046 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7047 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7048 _lt_linker_boilerplate=`cat conftest.err`
7053 lt_prog_compiler_no_builtin_flag=
7055 if test "$GCC" = yes; then
7056 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7059 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7060 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7061 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 lt_cv_prog_compiler_rtti_exceptions=no
7065 ac_outfile=conftest.$ac_objext
7066 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7067 lt_compiler_flag="-fno-rtti -fno-exceptions"
7068 # Insert the option either (1) after the last *FLAGS variable, or
7069 # (2) before a word containing "conftest.", or (3) at the end.
7070 # Note that $ac_compile itself does not contain backslashes and begins
7071 # with a dollar sign (not a hyphen), so the echo should work correctly.
7072 # The option is referenced via a variable to avoid confusing sed.
7073 lt_compile=`echo "$ac_compile" | $SED \
7074 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7075 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7076 -e 's:$: $lt_compiler_flag:'`
7077 (eval echo "\"\$as_me:7077: $lt_compile\"" >&5)
7078 (eval "$lt_compile" 2>conftest.err)
7080 cat conftest.err >&5
7081 echo "$as_me:7081: \$? = $ac_status" >&5
7082 if (exit $ac_status) && test -s "$ac_outfile"; then
7083 # The compiler can only warn and ignore the option if not recognized
7084 # So say no if there are warnings other than the usual output.
7085 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7087 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7088 lt_cv_prog_compiler_rtti_exceptions=yes
7094 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7095 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7097 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7098 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7105 lt_prog_compiler_wl=
7106 lt_prog_compiler_pic=
7107 lt_prog_compiler_static=
7109 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7110 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7112 if test "$GCC" = yes; then
7113 lt_prog_compiler_wl='-Wl,'
7114 lt_prog_compiler_static='-static'
7118 # All AIX code is PIC.
7119 if test "$host_cpu" = ia64; then
7120 # AIX 5 now supports IA64 processor
7121 lt_prog_compiler_static='-Bstatic'
7126 # FIXME: we need at least 68020 code to build shared libraries, but
7127 # adding the `-m68020' flag to GCC prevents building anything better,
7129 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7132 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7133 # PIC is the default for these OSes.
7136 mingw* | pw32* | os2*)
7137 # This hack is so that the source file can tell whether it is being
7138 # built for inclusion in a dll (and should export symbols for example).
7139 lt_prog_compiler_pic='-DDLL_EXPORT'
7142 darwin* | rhapsody*)
7143 # PIC is the default on this platform
7144 # Common symbols not allowed in MH_DYLIB files
7145 lt_prog_compiler_pic='-fno-common'
7149 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7150 # Instead, we relocate shared libraries at runtime.
7154 # Just because we use GCC doesn't mean we suddenly get shared libraries
7155 # on systems that don't support them.
7156 lt_prog_compiler_can_build_shared=no
7161 if test -d /usr/nec; then
7162 lt_prog_compiler_pic=-Kconform_pic
7167 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7174 lt_prog_compiler_pic='-fPIC'
7180 lt_prog_compiler_pic='-fPIC'
7184 # PORTME Check for flag to pass linker flags through the system compiler.
7187 lt_prog_compiler_wl='-Wl,'
7188 if test "$host_cpu" = ia64; then
7189 # AIX 5 now supports IA64 processor
7190 lt_prog_compiler_static='-Bstatic'
7192 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7196 # PIC is the default on this platform
7197 # Common symbols not allowed in MH_DYLIB files
7198 case $cc_basename in
7200 lt_prog_compiler_pic='-qnocommon'
7201 lt_prog_compiler_wl='-Wl,'
7206 mingw* | pw32* | os2*)
7207 # This hack is so that the source file can tell whether it is being
7208 # built for inclusion in a dll (and should export symbols for example).
7209 lt_prog_compiler_pic='-DDLL_EXPORT'
7212 hpux9* | hpux10* | hpux11*)
7213 lt_prog_compiler_wl='-Wl,'
7214 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7221 lt_prog_compiler_pic='+Z'
7224 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7225 lt_prog_compiler_static='${wl}-a ${wl}archive'
7228 irix5* | irix6* | nonstopux*)
7229 lt_prog_compiler_wl='-Wl,'
7230 # PIC (with -KPIC) is the default.
7231 lt_prog_compiler_static='-non_shared'
7235 lt_prog_compiler_pic='-KPIC'
7236 lt_prog_compiler_static='-Bstatic'
7240 case $cc_basename in
7242 lt_prog_compiler_wl='-Wl,'
7243 lt_prog_compiler_pic='-KPIC'
7244 lt_prog_compiler_static='-static'
7246 pgcc* | pgf77* | pgf90* | pgf95*)
7247 # Portland Group compilers (*not* the Pentium gcc compiler,
7248 # which looks to be a dead project)
7249 lt_prog_compiler_wl='-Wl,'
7250 lt_prog_compiler_pic='-fpic'
7251 lt_prog_compiler_static='-Bstatic'
7254 lt_prog_compiler_wl='-Wl,'
7255 # All Alpha code is PIC.
7256 lt_prog_compiler_static='-non_shared'
7261 osf3* | osf4* | osf5*)
7262 lt_prog_compiler_wl='-Wl,'
7263 # All OSF/1 code is PIC.
7264 lt_prog_compiler_static='-non_shared'
7268 lt_prog_compiler_pic='-KPIC'
7269 lt_prog_compiler_static='-Bstatic'
7270 case $cc_basename in
7272 lt_prog_compiler_wl='-Qoption ld ';;
7274 lt_prog_compiler_wl='-Wl,';;
7279 lt_prog_compiler_wl='-Qoption ld '
7280 lt_prog_compiler_pic='-PIC'
7281 lt_prog_compiler_static='-Bstatic'
7284 sysv4 | sysv4.2uw2* | sysv4.3*)
7285 lt_prog_compiler_wl='-Wl,'
7286 lt_prog_compiler_pic='-KPIC'
7287 lt_prog_compiler_static='-Bstatic'
7291 if test -d /usr/nec ;then
7292 lt_prog_compiler_pic='-Kconform_pic'
7293 lt_prog_compiler_static='-Bstatic'
7297 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7298 lt_prog_compiler_wl='-Wl,'
7299 lt_prog_compiler_pic='-KPIC'
7300 lt_prog_compiler_static='-Bstatic'
7304 lt_prog_compiler_wl='-Wl,'
7305 lt_prog_compiler_can_build_shared=no
7309 lt_prog_compiler_pic='-pic'
7310 lt_prog_compiler_static='-Bstatic'
7314 lt_prog_compiler_can_build_shared=no
7319 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7320 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7323 # Check to make sure the PIC flag actually works.
7325 if test -n "$lt_prog_compiler_pic"; then
7327 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7328 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7329 if test "${lt_prog_compiler_pic_works+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 lt_prog_compiler_pic_works=no
7333 ac_outfile=conftest.$ac_objext
7334 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7335 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7336 # Insert the option either (1) after the last *FLAGS variable, or
7337 # (2) before a word containing "conftest.", or (3) at the end.
7338 # Note that $ac_compile itself does not contain backslashes and begins
7339 # with a dollar sign (not a hyphen), so the echo should work correctly.
7340 # The option is referenced via a variable to avoid confusing sed.
7341 lt_compile=`echo "$ac_compile" | $SED \
7342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7344 -e 's:$: $lt_compiler_flag:'`
7345 (eval echo "\"\$as_me:7345: $lt_compile\"" >&5)
7346 (eval "$lt_compile" 2>conftest.err)
7348 cat conftest.err >&5
7349 echo "$as_me:7349: \$? = $ac_status" >&5
7350 if (exit $ac_status) && test -s "$ac_outfile"; then
7351 # The compiler can only warn and ignore the option if not recognized
7352 # So say no if there are warnings other than the usual output.
7353 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7355 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7356 lt_prog_compiler_pic_works=yes
7362 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7363 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7365 if test x"$lt_prog_compiler_pic_works" = xyes; then
7366 case $lt_prog_compiler_pic in
7368 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7371 lt_prog_compiler_pic=
7372 lt_prog_compiler_can_build_shared=no
7377 # For platforms which do not support PIC, -DPIC is meaningless:
7379 lt_prog_compiler_pic=
7382 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7387 # Check to make sure the static flag actually works.
7389 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7390 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7391 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7392 if test "${lt_prog_compiler_static_works+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 lt_prog_compiler_static_works=no
7396 save_LDFLAGS="$LDFLAGS"
7397 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7398 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7399 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7400 # The linker can only warn and ignore the option if not recognized
7401 # So say no if there are warnings
7402 if test -s conftest.err; then
7403 # Append any errors to the config.log.
7404 cat conftest.err 1>&5
7405 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7406 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7407 if diff conftest.exp conftest.er2 >/dev/null; then
7408 lt_prog_compiler_static_works=yes
7411 lt_prog_compiler_static_works=yes
7415 LDFLAGS="$save_LDFLAGS"
7418 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7419 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7421 if test x"$lt_prog_compiler_static_works" = xyes; then
7424 lt_prog_compiler_static=
7428 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7429 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7430 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 lt_cv_prog_compiler_c_o=no
7434 $rm -r conftest 2>/dev/null
7438 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7440 lt_compiler_flag="-o out/conftest2.$ac_objext"
7441 # Insert the option either (1) after the last *FLAGS variable, or
7442 # (2) before a word containing "conftest.", or (3) at the end.
7443 # Note that $ac_compile itself does not contain backslashes and begins
7444 # with a dollar sign (not a hyphen), so the echo should work correctly.
7445 lt_compile=`echo "$ac_compile" | $SED \
7446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7448 -e 's:$: $lt_compiler_flag:'`
7449 (eval echo "\"\$as_me:7449: $lt_compile\"" >&5)
7450 (eval "$lt_compile" 2>out/conftest.err)
7452 cat out/conftest.err >&5
7453 echo "$as_me:7453: \$? = $ac_status" >&5
7454 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7456 # The compiler can only warn and ignore the option if not recognized
7457 # So say no if there are warnings
7458 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7459 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7460 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7461 lt_cv_prog_compiler_c_o=yes
7466 # SGI C++ compiler will create directory out/ii_files/ for
7467 # template instantiation
7468 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7469 $rm out/* && rmdir out
7475 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7476 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7479 hard_links="nottested"
7480 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7481 # do not overwrite the value of need_locks provided by the user
7482 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7483 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7486 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7488 ln conftest.a conftest.b 2>&5 || hard_links=no
7489 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7490 echo "$as_me:$LINENO: result: $hard_links" >&5
7491 echo "${ECHO_T}$hard_links" >&6
7492 if test "$hard_links" = no; then
7493 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7494 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7501 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7502 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7505 allow_undefined_flag=
7506 enable_shared_with_static_runtimes=no
7508 archive_expsym_cmds=
7509 old_archive_From_new_cmds=
7510 old_archive_from_expsyms_cmds=
7511 export_dynamic_flag_spec=
7512 whole_archive_flag_spec=
7513 thread_safe_flag_spec=
7514 hardcode_libdir_flag_spec=
7515 hardcode_libdir_flag_spec_ld=
7516 hardcode_libdir_separator=
7519 hardcode_shlibpath_var=unsupported
7520 link_all_deplibs=unknown
7521 hardcode_automatic=no
7524 always_export_symbols=no
7525 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7526 # include_expsyms should be a list of space-separated symbols to be *always*
7527 # included in the symbol list
7529 # exclude_expsyms can be an extended regexp of symbols to exclude
7530 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7531 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7532 # as well as any symbol that contains `d'.
7533 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7534 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7535 # platforms (ab)use it in PIC code, but their linkers get confused if
7536 # the symbol is explicitly referenced. Since portable code cannot
7537 # rely on this symbol name, it's probably fine to never include it in
7538 # preloaded symbol tables.
7539 extract_expsyms_cmds=
7540 # Just being paranoid about ensuring that cc_basename is set.
7541 for cc_temp in $compiler""; do
7543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7549 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7552 cygwin* | mingw* | pw32*)
7553 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7554 # When not using gcc, we currently assume that we are using
7555 # Microsoft Visual C++.
7556 if test "$GCC" != yes; then
7561 # we just hope/assume this is gcc and not c89 (= MSVC++)
7570 if test "$with_gnu_ld" = yes; then
7571 # If archive_cmds runs LD, not CC, wlarc should be empty
7574 # Set some defaults for GNU ld with shared library support. These
7575 # are reset later if shared libraries are not supported. Putting them
7576 # here allows them to be overridden if necessary.
7577 runpath_var=LD_RUN_PATH
7578 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7579 export_dynamic_flag_spec='${wl}--export-dynamic'
7580 # ancient GNU ld didn't support --whole-archive et. al.
7581 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7582 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7584 whole_archive_flag_spec=
7586 supports_anon_versioning=no
7587 case `$LD -v 2>/dev/null` in
7588 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7589 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7590 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7591 *\ 2.11.*) ;; # other 2.11 versions
7592 *) supports_anon_versioning=yes ;;
7595 # See if GNU ld supports shared libraries.
7597 aix3* | aix4* | aix5*)
7598 # On AIX/PPC, the GNU linker is very broken
7599 if test "$host_cpu" != ia64; then
7603 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7604 *** to be unable to reliably create shared libraries on AIX.
7605 *** Therefore, libtool is disabling shared libraries support. If you
7606 *** really care for shared libraries, you may want to modify your PATH
7607 *** so that a non-GNU linker is found, and then restart.
7614 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)'
7615 hardcode_libdir_flag_spec='-L$libdir'
7616 hardcode_minus_L=yes
7618 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7619 # that the semantics of dynamic libraries on AmigaOS, at least up
7620 # to version 4, is to share data among multiple programs linked
7621 # with the same dynamic library. Since this doesn't match the
7622 # behavior of shared libraries on other platforms, we can't use
7628 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7629 allow_undefined_flag=unsupported
7630 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7631 # support --undefined. This deserves some investigation. FIXME
7632 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7638 cygwin* | mingw* | pw32*)
7639 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7640 # as there is no search path for DLLs.
7641 hardcode_libdir_flag_spec='-L$libdir'
7642 allow_undefined_flag=unsupported
7643 always_export_symbols=no
7644 enable_shared_with_static_runtimes=yes
7645 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7647 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7649 # If the export-symbols file already is a .def file (1st line
7650 # is EXPORTS), use it as is; otherwise, prepend...
7651 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7652 cp $export_symbols $output_objdir/$soname.def;
7654 echo EXPORTS > $output_objdir/$soname.def;
7655 cat $export_symbols >> $output_objdir/$soname.def;
7657 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7665 hardcode_shlibpath_var=no
7666 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7667 export_dynamic_flag_spec='${wl}-E'
7668 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7669 # Instead, shared libraries are loaded at an image base (0x10000000 by
7670 # default) and relocated if they conflict, which is a slow very memory
7671 # consuming and fragmenting process. To avoid this, we pick a random,
7672 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7673 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7674 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7675 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'
7679 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7681 case $cc_basename,$host_cpu in
7682 pgcc*) # Portland Group C compiler
7683 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'
7684 tmp_addflag=' $pic_flag'
7686 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7687 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'
7688 tmp_addflag=' $pic_flag -Mnomain' ;;
7689 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7690 tmp_addflag=' -i_dynamic' ;;
7691 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7692 tmp_addflag=' -i_dynamic -nofor_main' ;;
7693 ifc* | ifort*) # Intel Fortran compiler
7694 tmp_addflag=' -nofor_main' ;;
7696 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7698 if test $supports_anon_versioning = yes; then
7699 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7700 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7701 $echo "local: *; };" >> $output_objdir/$libname.ver~
7702 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7710 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7711 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7712 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7716 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7721 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7725 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7726 *** create shared libraries on Solaris systems. Therefore, libtool
7727 *** is disabling shared libraries support. We urge you to upgrade GNU
7728 *** binutils to release 2.9.1 or newer. Another option is to modify
7729 *** your PATH or compiler configuration so that the native linker is
7730 *** used, and then restart.
7733 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7735 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7741 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7742 case `$LD -v 2>&1` in
7743 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7747 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7748 *** reliably create shared libraries on SCO systems. Therefore, libtool
7749 *** is disabling shared libraries support. We urge you to upgrade GNU
7750 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7751 *** your PATH or compiler configuration so that the native linker is
7752 *** used, and then restart.
7757 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7758 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7760 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7769 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7772 hardcode_shlibpath_var=no
7776 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7785 if test "$ld_shlibs" = no; then
7787 hardcode_libdir_flag_spec=
7788 export_dynamic_flag_spec=
7789 whole_archive_flag_spec=
7792 # PORTME fill in a description of your system's linker (not GNU ld)
7795 allow_undefined_flag=unsupported
7796 always_export_symbols=yes
7797 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'
7798 # Note: this linker hardcodes the directories in LIBPATH if there
7799 # are no directories specified by -L.
7800 hardcode_minus_L=yes
7801 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7802 # Neither direct hardcoding nor static linking is supported with a
7804 hardcode_direct=unsupported
7809 if test "$host_cpu" = ia64; then
7810 # On IA64, the linker does run time linking by default, so we don't
7811 # have to do anything special.
7812 aix_use_runtimelinking=no
7813 exp_sym_flag='-Bexport'
7816 # If we're using GNU nm, then we don't want the "-C" option.
7817 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7818 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7819 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'
7821 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'
7823 aix_use_runtimelinking=no
7825 # Test if we are trying to use run time linking or normal
7826 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7827 # need to do runtime linking.
7828 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7829 for ld_flag in $LDFLAGS; do
7830 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7831 aix_use_runtimelinking=yes
7838 exp_sym_flag='-bexport'
7839 no_entry_flag='-bnoentry'
7842 # When large executables or shared objects are built, AIX ld can
7843 # have problems creating the table of contents. If linking a library
7844 # or program results in "error TOC overflow" add -mminimal-toc to
7845 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7846 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7850 hardcode_libdir_separator=':'
7851 link_all_deplibs=yes
7853 if test "$GCC" = yes; then
7854 case $host_os in aix4.[012]|aix4.[012].*)
7855 # We only want to do this on AIX 4.2 and lower, the check
7856 # below for broken collect2 doesn't work under 4.3+
7857 collect2name=`${CC} -print-prog-name=collect2`
7858 if test -f "$collect2name" && \
7859 strings "$collect2name" | grep resolve_lib_name >/dev/null
7861 # We have reworked collect2
7864 # We have old collect2
7865 hardcode_direct=unsupported
7866 # It fails to find uninstalled libraries when the uninstalled
7867 # path is not listed in the libpath. Setting hardcode_minus_L
7868 # to unsupported forces relinking
7869 hardcode_minus_L=yes
7870 hardcode_libdir_flag_spec='-L$libdir'
7871 hardcode_libdir_separator=
7875 shared_flag='-shared'
7876 if test "$aix_use_runtimelinking" = yes; then
7877 shared_flag="$shared_flag "'${wl}-G'
7881 if test "$host_cpu" = ia64; then
7882 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7883 # chokes on -Wl,-G. The following line is correct:
7886 if test "$aix_use_runtimelinking" = yes; then
7887 shared_flag='${wl}-G'
7889 shared_flag='${wl}-bM:SRE'
7894 # It seems that -bexpall does not export symbols beginning with
7895 # underscore (_), so it is better to generate a list of symbols to export.
7896 always_export_symbols=yes
7897 if test "$aix_use_runtimelinking" = yes; then
7898 # Warning - without using the other runtime loading flags (-brtl),
7899 # -berok will link without error, but may produce a broken library.
7900 allow_undefined_flag='-berok'
7901 # Determine the default libpath from the value encoded in an empty executable.
7902 cat >conftest.$ac_ext <<_ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7917 rm -f conftest.$ac_objext conftest$ac_exeext
7918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7919 (eval $ac_link) 2>conftest.er1
7921 grep -v '^ *+' conftest.er1 >conftest.err
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } &&
7926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); }; } &&
7932 { ac_try='test -s conftest$ac_exeext'
7933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; }; then
7939 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7941 # Check for a 64-bit object if we didn't find anything.
7942 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; }
7945 echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7949 rm -f conftest.err conftest.$ac_objext \
7950 conftest$ac_exeext conftest.$ac_ext
7951 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7953 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7954 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"
7956 if test "$host_cpu" = ia64; then
7957 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7958 allow_undefined_flag="-z nodefs"
7959 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"
7961 # Determine the default libpath from the value encoded in an empty executable.
7962 cat >conftest.$ac_ext <<_ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7977 rm -f conftest.$ac_objext conftest$ac_exeext
7978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7979 (eval $ac_link) 2>conftest.er1
7981 grep -v '^ *+' conftest.er1 >conftest.err
7983 cat conftest.err >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } &&
7986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; } &&
7992 { ac_try='test -s conftest$ac_exeext'
7993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; }; then
7999 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8001 # Check for a 64-bit object if we didn't find anything.
8002 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; }
8005 echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8009 rm -f conftest.err conftest.$ac_objext \
8010 conftest$ac_exeext conftest.$ac_ext
8011 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8013 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8014 # Warning - without using the other run time loading flags,
8015 # -berok will link without error, but may produce a broken library.
8016 no_undefined_flag=' ${wl}-bernotok'
8017 allow_undefined_flag=' ${wl}-berok'
8018 # Exported symbols can be pulled into shared objects from archives
8019 whole_archive_flag_spec='$convenience'
8020 archive_cmds_need_lc=yes
8021 # This is similar to how AIX traditionally builds its shared libraries.
8022 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'
8028 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)'
8029 hardcode_libdir_flag_spec='-L$libdir'
8030 hardcode_minus_L=yes
8031 # see comment about different semantics on the GNU ld section
8036 export_dynamic_flag_spec=-rdynamic
8039 cygwin* | mingw* | pw32*)
8040 # When not using gcc, we currently assume that we are using
8041 # Microsoft Visual C++.
8042 # hardcode_libdir_flag_spec is actually meaningless, as there is
8043 # no search path for DLLs.
8044 hardcode_libdir_flag_spec=' '
8045 allow_undefined_flag=unsupported
8046 # Tell ltmain to make .lib files, not .a files.
8048 # Tell ltmain to make .dll files, not .so files.
8050 # FIXME: Setting linknames here is a bad hack.
8051 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8052 # The linker will automatically build a .lib file if we build a DLL.
8053 old_archive_From_new_cmds='true'
8054 # FIXME: Should let the user specify the lib program.
8055 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8056 fix_srcfile_path='`cygpath -w "$srcfile"`'
8057 enable_shared_with_static_runtimes=yes
8060 darwin* | rhapsody*)
8062 rhapsody* | darwin1.[012])
8063 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8066 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8067 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8069 case ${MACOSX_DEPLOYMENT_TARGET} in
8071 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8074 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8080 archive_cmds_need_lc=no
8082 hardcode_automatic=yes
8083 hardcode_shlibpath_var=unsupported
8084 whole_archive_flag_spec=''
8085 link_all_deplibs=yes
8086 if test "$GCC" = yes ; then
8087 output_verbose_link_cmd='echo'
8088 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8089 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8090 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8091 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}'
8092 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}'
8094 case $cc_basename in
8096 output_verbose_link_cmd='echo'
8097 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8098 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8099 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8100 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}'
8101 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}'
8111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8112 hardcode_libdir_flag_spec='-L$libdir'
8113 hardcode_shlibpath_var=no
8120 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8121 # support. Future versions do this automatically, but an explicit c++rt0.o
8122 # does not break anything, and helps significantly (at the cost of a little
8125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8126 hardcode_libdir_flag_spec='-R$libdir'
8128 hardcode_shlibpath_var=no
8131 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8133 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8135 hardcode_minus_L=yes
8136 hardcode_shlibpath_var=no
8139 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8140 freebsd* | dragonfly*)
8141 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8142 hardcode_libdir_flag_spec='-R$libdir'
8144 hardcode_shlibpath_var=no
8147 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
8149 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8150 hardcode_libdir_flag_spec='-R$libdir'
8152 hardcode_shlibpath_var=no
8157 if test "$GCC" = yes; then
8158 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'
8160 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'
8162 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8163 hardcode_libdir_separator=:
8166 # hardcode_minus_L: Not really in the search PATH,
8167 # but as the default location of the library.
8168 hardcode_minus_L=yes
8169 export_dynamic_flag_spec='${wl}-E'
8173 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8174 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8176 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8178 if test "$with_gnu_ld" = no; then
8179 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8180 hardcode_libdir_separator=:
8183 export_dynamic_flag_spec='${wl}-E'
8185 # hardcode_minus_L: Not really in the search PATH,
8186 # but as the default location of the library.
8187 hardcode_minus_L=yes
8192 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8195 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8198 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8201 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8207 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8210 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8213 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8217 if test "$with_gnu_ld" = no; then
8218 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8219 hardcode_libdir_separator=:
8223 hardcode_libdir_flag_spec_ld='+b $libdir'
8225 hardcode_shlibpath_var=no
8229 export_dynamic_flag_spec='${wl}-E'
8231 # hardcode_minus_L: Not really in the search PATH,
8232 # but as the default location of the library.
8233 hardcode_minus_L=yes
8239 irix5* | irix6* | nonstopux*)
8240 if test "$GCC" = yes; then
8241 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'
8243 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'
8244 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8247 hardcode_libdir_separator=:
8248 link_all_deplibs=yes
8251 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8252 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8253 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8255 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8257 hardcode_libdir_flag_spec='-R$libdir'
8259 hardcode_shlibpath_var=no
8263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8266 hardcode_libdir_separator=:
8267 hardcode_shlibpath_var=no
8272 hardcode_shlibpath_var=no
8273 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8274 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8275 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8276 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8277 export_dynamic_flag_spec='${wl}-E'
8280 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8282 hardcode_libdir_flag_spec='-R$libdir'
8285 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8293 hardcode_libdir_flag_spec='-L$libdir'
8294 hardcode_minus_L=yes
8295 allow_undefined_flag=unsupported
8296 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'
8297 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8301 if test "$GCC" = yes; then
8302 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8303 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'
8305 allow_undefined_flag=' -expect_unresolved \*'
8306 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'
8308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8309 hardcode_libdir_separator=:
8312 osf4* | osf5*) # as osf3* with the addition of -msym flag
8313 if test "$GCC" = yes; then
8314 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8315 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'
8316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8318 allow_undefined_flag=' -expect_unresolved \*'
8319 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'
8320 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8321 $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'
8323 # Both c and cxx compiler support -rpath directly
8324 hardcode_libdir_flag_spec='-rpath $libdir'
8326 hardcode_libdir_separator=:
8330 no_undefined_flag=' -z text'
8331 if test "$GCC" = yes; then
8333 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8334 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8335 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8338 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8339 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8340 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8342 hardcode_libdir_flag_spec='-R$libdir'
8343 hardcode_shlibpath_var=no
8345 solaris2.[0-5] | solaris2.[0-5].*) ;;
8347 # The compiler driver will combine linker options so we
8348 # cannot just pass the convience library names through
8349 # without $wl, iff we do not link with $LD.
8350 # Luckily, gcc supports the same syntax we need for Sun Studio.
8351 # Supported since Solaris 2.6 (maybe 2.5.1?)
8354 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8356 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' ;;
8359 link_all_deplibs=yes
8363 if test "x$host_vendor" = xsequent; then
8364 # Use $CC to link under sequent, because it throws in some extra .o
8365 # files that make .init and .fini sections work.
8366 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8368 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8370 hardcode_libdir_flag_spec='-L$libdir'
8372 hardcode_minus_L=yes
8373 hardcode_shlibpath_var=no
8377 case $host_vendor in
8379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8380 hardcode_direct=yes # is this really true???
8383 ## LD is ld it makes a PLAMLIB
8384 ## CC just makes a GrossModule.
8385 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8386 reload_cmds='$CC -r -o $output$reload_objs'
8390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8391 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8394 runpath_var='LD_RUN_PATH'
8395 hardcode_shlibpath_var=no
8399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8400 hardcode_shlibpath_var=no
8401 export_dynamic_flag_spec='-Bexport'
8405 if test -d /usr/nec; then
8406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8407 hardcode_shlibpath_var=no
8408 runpath_var=LD_RUN_PATH
8409 hardcode_runpath_var=yes
8414 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8415 no_undefined_flag='${wl}-z,text'
8416 archive_cmds_need_lc=no
8417 hardcode_shlibpath_var=no
8418 runpath_var='LD_RUN_PATH'
8420 if test "$GCC" = yes; then
8421 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8422 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8424 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8425 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8429 sysv5* | sco3.2v5* | sco5v6*)
8430 # Note: We can NOT use -z defs as we might desire, because we do not
8431 # link with -lc, and that would cause any symbols used from libc to
8432 # always be unresolved, which means just about no library would
8433 # ever link correctly. If we're not using GNU ld we use -z text
8434 # though, which does catch some bad symbols but isn't as heavy-handed
8436 no_undefined_flag='${wl}-z,text'
8437 allow_undefined_flag='${wl}-z,nodefs'
8438 archive_cmds_need_lc=no
8439 hardcode_shlibpath_var=no
8440 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8441 hardcode_libdir_separator=':'
8442 link_all_deplibs=yes
8443 export_dynamic_flag_spec='${wl}-Bexport'
8444 runpath_var='LD_RUN_PATH'
8446 if test "$GCC" = yes; then
8447 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8448 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8450 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8451 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8457 hardcode_libdir_flag_spec='-L$libdir'
8458 hardcode_shlibpath_var=no
8467 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8468 echo "${ECHO_T}$ld_shlibs" >&6
8469 test "$ld_shlibs" = no && can_build_shared=no
8472 # Do we need to explicitly link libc?
8474 case "x$archive_cmds_need_lc" in
8476 # Assume -lc should be added
8477 archive_cmds_need_lc=yes
8479 if test "$enable_shared" = yes && test "$GCC" = yes; then
8480 case $archive_cmds in
8482 # FIXME: we may have to deal with multi-command sequences.
8485 # Test whether the compiler implicitly links with -lc since on some
8486 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8487 # to ld, don't add -lc before -lgcc.
8488 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8489 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8491 printf "$lt_simple_compile_test_code" > 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); } 2>conftest.err; then
8500 libobjs=conftest.$ac_objext
8502 wl=$lt_prog_compiler_wl
8503 pic_flag=$lt_prog_compiler_pic
8509 lt_save_allow_undefined_flag=$allow_undefined_flag
8510 allow_undefined_flag=
8511 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8512 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }
8517 archive_cmds_need_lc=no
8519 archive_cmds_need_lc=yes
8521 allow_undefined_flag=$lt_save_allow_undefined_flag
8523 cat conftest.err 1>&5
8526 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8527 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8534 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8535 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8537 libname_spec='lib$name'
8545 shlibpath_overrides_runpath=unknown
8547 dynamic_linker="$host_os ld.so"
8548 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8549 if test "$GCC" = yes; then
8550 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8551 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8552 # if the path contains ";" then we assume it to be the separator
8553 # otherwise default to the standard path separator (i.e. ":") - it is
8554 # assumed that no part of a normal pathname contains ";" but that should
8555 # okay in the real world where ";" in dirpaths is itself problematic.
8556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8561 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8563 need_lib_prefix=unknown
8564 hardcode_into_libs=no
8566 # when you set need_version to no, make sure it does not cause -set_version
8567 # flags to be left without arguments
8568 need_version=unknown
8573 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8574 shlibpath_var=LIBPATH
8576 # AIX 3 has no versioning support, so we append a major version to the name.
8577 soname_spec='${libname}${release}${shared_ext}$major'
8584 hardcode_into_libs=yes
8585 if test "$host_cpu" = ia64; then
8586 # AIX 5 supports IA64
8587 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8588 shlibpath_var=LD_LIBRARY_PATH
8590 # With GCC up to 2.95.x, collect2 would create an import file
8591 # for dependence libraries. The import file would start with
8592 # the line `#! .'. This would cause the generated library to
8593 # depend on `.', always an invalid library. This was fixed in
8594 # development snapshots of GCC prior to 3.0.
8596 aix4 | aix4.[01] | aix4.[01].*)
8597 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8599 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8606 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8607 # soname into executable. Probably we can add versioning support to
8608 # collect2, so additional links can be useful in future.
8609 if test "$aix_use_runtimelinking" = yes; then
8610 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8611 # instead of lib<name>.a to let people know that these are not
8612 # typical AIX shared libraries.
8613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8615 # We preserve .a as extension for shared libraries through AIX4.2
8616 # and later when we are not doing run time linking.
8617 library_names_spec='${libname}${release}.a $libname.a'
8618 soname_spec='${libname}${release}${shared_ext}$major'
8620 shlibpath_var=LIBPATH
8625 library_names_spec='$libname.ixlibrary $libname.a'
8626 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8627 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'
8631 library_names_spec='${libname}${shared_ext}'
8632 dynamic_linker="$host_os ld.so"
8633 shlibpath_var=LIBRARY_PATH
8639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8640 soname_spec='${libname}${release}${shared_ext}$major'
8641 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8642 shlibpath_var=LD_LIBRARY_PATH
8643 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8644 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8645 # the default ld.so.conf also contains /usr/contrib/lib and
8646 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8647 # libtool to hard-code these into programs
8650 cygwin* | mingw* | pw32*)
8651 version_type=windows
8656 case $GCC,$host_os in
8657 yes,cygwin* | yes,mingw* | yes,pw32*)
8658 library_names_spec='$libname.dll.a'
8659 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8660 postinstall_cmds='base_file=`basename \${file}`~
8661 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8662 dldir=$destdir/`dirname \$dlpath`~
8663 test -d \$dldir || mkdir -p \$dldir~
8664 $install_prog $dir/$dlname \$dldir/$dlname~
8665 chmod a+x \$dldir/$dlname'
8666 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8667 dlpath=$dir/\$dldll~
8669 shlibpath_overrides_runpath=yes
8673 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8674 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8675 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8678 # MinGW DLLs use traditional 'lib' prefix
8679 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8680 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8681 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8682 # It is most probably a Windows format PATH printed by
8683 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8684 # path with ; separators, and with drive letters. We can handle the
8685 # drive letters (cygwin fileutils understands them), so leave them,
8686 # especially as we might pass files found there to a mingw objdump,
8687 # which wouldn't understand a cygwinified path. Ahh.
8688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8694 # pw32 DLLs use 'pw' prefix rather than 'lib'
8695 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8701 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8704 dynamic_linker='Win32 ld.exe'
8705 # FIXME: first we should search . and the directory the executable is in
8709 darwin* | rhapsody*)
8710 dynamic_linker="$host_os dyld"
8714 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8715 soname_spec='${libname}${release}${major}$shared_ext'
8716 shlibpath_overrides_runpath=yes
8717 shlibpath_var=DYLD_LIBRARY_PATH
8718 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8719 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8720 if test "$GCC" = yes; then
8721 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"`
8723 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8725 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8733 soname_spec='${libname}${release}${shared_ext}$major'
8734 shlibpath_var=LD_LIBRARY_PATH
8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8746 soname_spec='${libname}${release}${shared_ext}$major'
8747 shlibpath_var=LD_LIBRARY_PATH
8748 shlibpath_overrides_runpath=no
8749 hardcode_into_libs=yes
8750 dynamic_linker='GNU ld.so'
8753 freebsd* | dragonfly*)
8754 # DragonFly does not have aout. When/if they implement a new
8755 # versioning mechanism, adjust this.
8756 if test -x /usr/bin/objformat; then
8757 objformat=`/usr/bin/objformat`
8760 freebsd[123]*) objformat=aout ;;
8764 version_type=freebsd-$objformat
8765 case $version_type in
8767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8772 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8776 shlibpath_var=LD_LIBRARY_PATH
8779 shlibpath_overrides_runpath=yes
8781 freebsd3.[01]* | freebsdelf3.[01]*)
8782 shlibpath_overrides_runpath=yes
8783 hardcode_into_libs=yes
8785 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8786 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8787 shlibpath_overrides_runpath=no
8788 hardcode_into_libs=yes
8790 freebsd*) # from 4.6 on
8791 shlibpath_overrides_runpath=yes
8792 hardcode_into_libs=yes
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8802 soname_spec='${libname}${release}${shared_ext}$major'
8803 shlibpath_var=LD_LIBRARY_PATH
8804 hardcode_into_libs=yes
8807 hpux9* | hpux10* | hpux11*)
8808 # Give a soname corresponding to the major version so that dld.sl refuses to
8809 # link against other versions.
8816 hardcode_into_libs=yes
8817 dynamic_linker="$host_os dld.so"
8818 shlibpath_var=LD_LIBRARY_PATH
8819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8821 soname_spec='${libname}${release}${shared_ext}$major'
8822 if test "X$HPUX_IA64_MODE" = X32; then
8823 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8825 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8827 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8831 hardcode_into_libs=yes
8832 dynamic_linker="$host_os dld.sl"
8833 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8836 soname_spec='${libname}${release}${shared_ext}$major'
8837 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8842 dynamic_linker="$host_os dld.sl"
8843 shlibpath_var=SHLIB_PATH
8844 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846 soname_spec='${libname}${release}${shared_ext}$major'
8849 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8850 postinstall_cmds='chmod 555 $lib'
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8858 soname_spec='${libname}${release}${shared_ext}$major'
8859 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8860 shlibpath_var=LD_LIBRARY_PATH
8861 shlibpath_overrides_runpath=no
8862 hardcode_into_libs=yes
8865 irix5* | irix6* | nonstopux*)
8867 nonstopux*) version_type=nonstopux ;;
8869 if test "$lt_cv_prog_gnu_ld" = yes; then
8877 soname_spec='${libname}${release}${shared_ext}$major'
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8880 irix5* | nonstopux*)
8884 case $LD in # libtool.m4 will add one of these switches to LD
8885 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8886 libsuff= shlibsuff= libmagic=32-bit;;
8887 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8888 libsuff=32 shlibsuff=N32 libmagic=N32;;
8889 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8890 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8891 *) libsuff= shlibsuff= libmagic=never-match;;
8895 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8896 shlibpath_overrides_runpath=no
8897 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8898 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8899 hardcode_into_libs=yes
8902 # No shared lib support for Linux oldld, aout, or coff.
8903 linux*oldld* | linux*aout* | linux*coff*)
8907 # This must be Linux ELF.
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8915 shlibpath_var=LD_LIBRARY_PATH
8916 shlibpath_overrides_runpath=no
8917 # This implies no fast_install, which is unacceptable.
8918 # Some rework will be needed to allow for fast_install
8919 # before this can be enabled.
8920 hardcode_into_libs=yes
8922 # Append ld.so.conf contents to the search path
8923 if test -f /etc/ld.so.conf; then
8924 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8925 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8928 # We used to test for /lib/ld.so.1 and disable shared libraries on
8929 # powerpc, because MkLinux only supported shared libraries with the
8930 # GNU dynamic linker. Since this was broken with cross compilers,
8931 # most powerpc-linux boxes support dynamic linking these days and
8932 # people can always --disable-shared, the test was removed, and we
8933 # assume the GNU/Linux dynamic linker is in use.
8934 dynamic_linker='GNU/Linux ld.so'
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8942 soname_spec='${libname}${release}${shared_ext}$major'
8943 shlibpath_var=LD_LIBRARY_PATH
8944 shlibpath_overrides_runpath=no
8945 hardcode_into_libs=yes
8946 dynamic_linker='NetBSD ld.elf_so'
8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8954 soname_spec='${libname}${release}${shared_ext}$major'
8955 shlibpath_var=LD_LIBRARY_PATH
8956 shlibpath_overrides_runpath=no
8957 hardcode_into_libs=yes
8958 dynamic_linker='GNU ld.so'
8965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8968 dynamic_linker='NetBSD (a.out) ld.so'
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8971 soname_spec='${libname}${release}${shared_ext}$major'
8972 dynamic_linker='NetBSD ld.elf_so'
8974 shlibpath_var=LD_LIBRARY_PATH
8975 shlibpath_overrides_runpath=yes
8976 hardcode_into_libs=yes
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982 shlibpath_var=LD_LIBRARY_PATH
8983 shlibpath_overrides_runpath=yes
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8991 soname_spec='${libname}${release}${shared_ext}$major'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 shlibpath_overrides_runpath=yes
8998 sys_lib_dlsearch_path_spec="/usr/lib"
9000 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9002 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9003 *) need_version=no ;;
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9007 shlibpath_var=LD_LIBRARY_PATH
9008 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9010 openbsd2.[89] | openbsd2.[89].*)
9011 shlibpath_overrides_runpath=no
9014 shlibpath_overrides_runpath=yes
9018 shlibpath_overrides_runpath=yes
9023 libname_spec='$name'
9026 library_names_spec='$libname${shared_ext} $libname.a'
9027 dynamic_linker='OS/2 ld.exe'
9028 shlibpath_var=LIBPATH
9031 osf3* | osf4* | osf5*)
9035 soname_spec='${libname}${release}${shared_ext}$major'
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037 shlibpath_var=LD_LIBRARY_PATH
9038 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9039 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047 soname_spec='${libname}${release}${shared_ext}$major'
9048 shlibpath_var=LD_LIBRARY_PATH
9049 shlibpath_overrides_runpath=yes
9050 hardcode_into_libs=yes
9051 # ldd complains unless libraries are executable
9052 postinstall_cmds='chmod +x $lib'
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9058 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9059 shlibpath_var=LD_LIBRARY_PATH
9060 shlibpath_overrides_runpath=yes
9061 if test "$with_gnu_ld" = yes; then
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9070 soname_spec='${libname}${release}${shared_ext}$major'
9071 shlibpath_var=LD_LIBRARY_PATH
9072 case $host_vendor in
9074 shlibpath_overrides_runpath=no
9076 export_dynamic_flag_spec='${wl}-Blargedynsym'
9077 runpath_var=LD_RUN_PATH
9085 shlibpath_overrides_runpath=no
9086 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9092 if test -d /usr/nec ;then
9094 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9095 soname_spec='$libname${shared_ext}.$major'
9096 shlibpath_var=LD_LIBRARY_PATH
9100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9101 version_type=freebsd-elf
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9105 soname_spec='${libname}${release}${shared_ext}$major'
9106 shlibpath_var=LD_LIBRARY_PATH
9107 hardcode_into_libs=yes
9108 if test "$with_gnu_ld" = yes; then
9109 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9110 shlibpath_overrides_runpath=no
9112 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9113 shlibpath_overrides_runpath=yes
9116 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9120 sys_lib_dlsearch_path_spec='/usr/lib'
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 shlibpath_var=LD_LIBRARY_PATH
9134 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9135 echo "${ECHO_T}$dynamic_linker" >&6
9136 test "$dynamic_linker" = no && can_build_shared=no
9138 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9139 if test "$GCC" = yes; then
9140 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9143 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9144 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9146 if test -n "$hardcode_libdir_flag_spec" || \
9147 test -n "$runpath_var" || \
9148 test "X$hardcode_automatic" = "Xyes" ; then
9150 # We can hardcode non-existant directories.
9151 if test "$hardcode_direct" != no &&
9152 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9153 # have to relink, otherwise we might link with an installed library
9154 # when we should be linking with a yet-to-be-installed one
9155 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9156 test "$hardcode_minus_L" != no; then
9157 # Linking always hardcodes the temporary library directory.
9158 hardcode_action=relink
9160 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9161 hardcode_action=immediate
9164 # We cannot hardcode anything, or else we can only hardcode existing
9166 hardcode_action=unsupported
9168 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9169 echo "${ECHO_T}$hardcode_action" >&6
9171 if test "$hardcode_action" = relink; then
9172 # Fast installation is not supported
9173 enable_fast_install=no
9174 elif test "$shlibpath_overrides_runpath" = yes ||
9175 test "$enable_shared" = no; then
9176 # Fast installation is not necessary
9177 enable_fast_install=needless
9182 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9183 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9184 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9185 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9186 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9187 echo "$as_me:$LINENO: result: yes" >&5
9188 echo "${ECHO_T}yes" >&6
9190 # FIXME - insert some real tests, host_os isn't really good enough
9193 if test -n "$STRIP" ; then
9194 striplib="$STRIP -x"
9195 echo "$as_me:$LINENO: result: yes" >&5
9196 echo "${ECHO_T}yes" >&6
9198 echo "$as_me:$LINENO: result: no" >&5
9199 echo "${ECHO_T}no" >&6
9203 echo "$as_me:$LINENO: result: no" >&5
9204 echo "${ECHO_T}no" >&6
9209 if test "x$enable_dlopen" != xyes; then
9210 enable_dlopen=unknown
9211 enable_dlopen_self=unknown
9212 enable_dlopen_self_static=unknown
9219 lt_cv_dlopen="load_add_on"
9221 lt_cv_dlopen_self=yes
9225 lt_cv_dlopen="LoadLibrary"
9230 lt_cv_dlopen="dlopen"
9235 # if libdl is installed we need to link against it
9236 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9237 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9238 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 ac_check_lib_save_LIBS=$LIBS
9243 cat >conftest.$ac_ext <<_ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9250 /* Override any gcc2 internal prototype to avoid an error. */
9254 /* We use char because int might match the return type of a gcc2
9255 builtin and then its argument prototype would still apply. */
9265 rm -f conftest.$ac_objext conftest$ac_exeext
9266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9267 (eval $ac_link) 2>conftest.er1
9269 grep -v '^ *+' conftest.er1 >conftest.err
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } &&
9274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }; } &&
9280 { ac_try='test -s conftest$ac_exeext'
9281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); }; }; then
9286 ac_cv_lib_dl_dlopen=yes
9288 echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9291 ac_cv_lib_dl_dlopen=no
9293 rm -f conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
9295 LIBS=$ac_check_lib_save_LIBS
9297 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9298 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9299 if test $ac_cv_lib_dl_dlopen = yes; then
9300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9305 lt_cv_dlopen_self=yes
9312 echo "$as_me:$LINENO: checking for shl_load" >&5
9313 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9314 if test "${ac_cv_func_shl_load+set}" = set; then
9315 echo $ECHO_N "(cached) $ECHO_C" >&6
9317 cat >conftest.$ac_ext <<_ACEOF
9320 cat confdefs.h >>conftest.$ac_ext
9321 cat >>conftest.$ac_ext <<_ACEOF
9322 /* end confdefs.h. */
9323 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9325 #define shl_load innocuous_shl_load
9327 /* System header to define __stub macros and hopefully few prototypes,
9328 which can conflict with char shl_load (); below.
9329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9330 <limits.h> exists even on freestanding compilers. */
9333 # include <limits.h>
9335 # include <assert.h>
9340 /* Override any gcc2 internal prototype to avoid an error. */
9345 /* We use char because int might match the return type of a gcc2
9346 builtin and then its argument prototype would still apply. */
9348 /* The GNU C library defines this for functions which it implements
9349 to always fail with ENOSYS. Some functions are actually named
9350 something starting with __ and the normal name is an alias. */
9351 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9354 char (*f) () = shl_load;
9363 return f != shl_load;
9368 rm -f conftest.$ac_objext conftest$ac_exeext
9369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9370 (eval $ac_link) 2>conftest.er1
9372 grep -v '^ *+' conftest.er1 >conftest.err
9374 cat conftest.err >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } &&
9377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; } &&
9383 { ac_try='test -s conftest$ac_exeext'
9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; }; then
9389 ac_cv_func_shl_load=yes
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9394 ac_cv_func_shl_load=no
9396 rm -f conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9399 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9400 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9401 if test $ac_cv_func_shl_load = yes; then
9402 lt_cv_dlopen="shl_load"
9404 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9405 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9406 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9409 ac_check_lib_save_LIBS=$LIBS
9411 cat >conftest.$ac_ext <<_ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h. */
9418 /* Override any gcc2 internal prototype to avoid an error. */
9422 /* We use char because int might match the return type of a gcc2
9423 builtin and then its argument prototype would still apply. */
9433 rm -f conftest.$ac_objext conftest$ac_exeext
9434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9435 (eval $ac_link) 2>conftest.er1
9437 grep -v '^ *+' conftest.er1 >conftest.err
9439 cat conftest.err >&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } &&
9442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; } &&
9448 { ac_try='test -s conftest$ac_exeext'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; }; then
9454 ac_cv_lib_dld_shl_load=yes
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9459 ac_cv_lib_dld_shl_load=no
9461 rm -f conftest.err conftest.$ac_objext \
9462 conftest$ac_exeext conftest.$ac_ext
9463 LIBS=$ac_check_lib_save_LIBS
9465 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9466 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9467 if test $ac_cv_lib_dld_shl_load = yes; then
9468 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9470 echo "$as_me:$LINENO: checking for dlopen" >&5
9471 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9472 if test "${ac_cv_func_dlopen+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 cat >conftest.$ac_ext <<_ACEOF
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h. */
9481 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9483 #define dlopen innocuous_dlopen
9485 /* System header to define __stub macros and hopefully few prototypes,
9486 which can conflict with char dlopen (); below.
9487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9488 <limits.h> exists even on freestanding compilers. */
9491 # include <limits.h>
9493 # include <assert.h>
9498 /* Override any gcc2 internal prototype to avoid an error. */
9503 /* We use char because int might match the return type of a gcc2
9504 builtin and then its argument prototype would still apply. */
9506 /* The GNU C library defines this for functions which it implements
9507 to always fail with ENOSYS. Some functions are actually named
9508 something starting with __ and the normal name is an alias. */
9509 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9512 char (*f) () = dlopen;
9526 rm -f conftest.$ac_objext conftest$ac_exeext
9527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9528 (eval $ac_link) 2>conftest.er1
9530 grep -v '^ *+' conftest.er1 >conftest.err
9532 cat conftest.err >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } &&
9535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; } &&
9541 { ac_try='test -s conftest$ac_exeext'
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; }; then
9547 ac_cv_func_dlopen=yes
9549 echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9552 ac_cv_func_dlopen=no
9554 rm -f conftest.err conftest.$ac_objext \
9555 conftest$ac_exeext conftest.$ac_ext
9557 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9558 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9559 if test $ac_cv_func_dlopen = yes; then
9560 lt_cv_dlopen="dlopen"
9562 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9563 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9564 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9567 ac_check_lib_save_LIBS=$LIBS
9569 cat >conftest.$ac_ext <<_ACEOF
9572 cat confdefs.h >>conftest.$ac_ext
9573 cat >>conftest.$ac_ext <<_ACEOF
9574 /* end confdefs.h. */
9576 /* Override any gcc2 internal prototype to avoid an error. */
9580 /* We use char because int might match the return type of a gcc2
9581 builtin and then its argument prototype would still apply. */
9591 rm -f conftest.$ac_objext conftest$ac_exeext
9592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9593 (eval $ac_link) 2>conftest.er1
9595 grep -v '^ *+' conftest.er1 >conftest.err
9597 cat conftest.err >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); } &&
9600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; } &&
9606 { ac_try='test -s conftest$ac_exeext'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; }; then
9612 ac_cv_lib_dl_dlopen=yes
9614 echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9617 ac_cv_lib_dl_dlopen=no
9619 rm -f conftest.err conftest.$ac_objext \
9620 conftest$ac_exeext conftest.$ac_ext
9621 LIBS=$ac_check_lib_save_LIBS
9623 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9624 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9625 if test $ac_cv_lib_dl_dlopen = yes; then
9626 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9628 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9629 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9630 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 ac_check_lib_save_LIBS=$LIBS
9635 cat >conftest.$ac_ext <<_ACEOF
9638 cat confdefs.h >>conftest.$ac_ext
9639 cat >>conftest.$ac_ext <<_ACEOF
9640 /* end confdefs.h. */
9642 /* Override any gcc2 internal prototype to avoid an error. */
9646 /* We use char because int might match the return type of a gcc2
9647 builtin and then its argument prototype would still apply. */
9657 rm -f conftest.$ac_objext conftest$ac_exeext
9658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9659 (eval $ac_link) 2>conftest.er1
9661 grep -v '^ *+' conftest.er1 >conftest.err
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } &&
9666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; } &&
9672 { ac_try='test -s conftest$ac_exeext'
9673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); }; }; then
9678 ac_cv_lib_svld_dlopen=yes
9680 echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9683 ac_cv_lib_svld_dlopen=no
9685 rm -f conftest.err conftest.$ac_objext \
9686 conftest$ac_exeext conftest.$ac_ext
9687 LIBS=$ac_check_lib_save_LIBS
9689 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9690 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9691 if test $ac_cv_lib_svld_dlopen = yes; then
9692 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9694 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9695 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9696 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 ac_check_lib_save_LIBS=$LIBS
9701 cat >conftest.$ac_ext <<_ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9708 /* Override any gcc2 internal prototype to avoid an error. */
9712 /* We use char because int might match the return type of a gcc2
9713 builtin and then its argument prototype would still apply. */
9723 rm -f conftest.$ac_objext conftest$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725 (eval $ac_link) 2>conftest.er1
9727 grep -v '^ *+' conftest.er1 >conftest.err
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } &&
9732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; } &&
9738 { ac_try='test -s conftest$ac_exeext'
9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; }; then
9744 ac_cv_lib_dld_dld_link=yes
9746 echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9749 ac_cv_lib_dld_dld_link=no
9751 rm -f conftest.err conftest.$ac_objext \
9752 conftest$ac_exeext conftest.$ac_ext
9753 LIBS=$ac_check_lib_save_LIBS
9755 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9756 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9757 if test $ac_cv_lib_dld_dld_link = yes; then
9758 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9779 if test "x$lt_cv_dlopen" != xno; then
9785 case $lt_cv_dlopen in
9787 save_CPPFLAGS="$CPPFLAGS"
9788 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9790 save_LDFLAGS="$LDFLAGS"
9791 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9794 LIBS="$lt_cv_dlopen_libs $LIBS"
9796 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9797 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9798 if test "${lt_cv_dlopen_self+set}" = set; then
9799 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 if test "$cross_compiling" = yes; then :
9802 lt_cv_dlopen_self=cross
9804 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9805 lt_status=$lt_dlunknown
9806 cat > conftest.$ac_ext <<EOF
9807 #line 9807 "configure"
9808 #include "confdefs.h"
9817 # define LT_DLGLOBAL RTLD_GLOBAL
9820 # define LT_DLGLOBAL DL_GLOBAL
9822 # define LT_DLGLOBAL 0
9826 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9827 find out it does not work in some platform. */
9828 #ifndef LT_DLLAZY_OR_NOW
9830 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9833 # define LT_DLLAZY_OR_NOW DL_LAZY
9836 # define LT_DLLAZY_OR_NOW RTLD_NOW
9839 # define LT_DLLAZY_OR_NOW DL_NOW
9841 # define LT_DLLAZY_OR_NOW 0
9849 extern "C" void exit (int);
9852 void fnord() { int i=42;}
9855 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9856 int status = $lt_dlunknown;
9860 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9861 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9862 /* dlclose (self); */
9870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9871 (eval $ac_link) 2>&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9875 (./conftest; exit; ) >&5 2>/dev/null
9878 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9879 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9880 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9883 # compilation failed
9884 lt_cv_dlopen_self=no
9891 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9892 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9894 if test "x$lt_cv_dlopen_self" = xyes; then
9895 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9896 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9897 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9898 if test "${lt_cv_dlopen_self_static+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 if test "$cross_compiling" = yes; then :
9902 lt_cv_dlopen_self_static=cross
9904 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9905 lt_status=$lt_dlunknown
9906 cat > conftest.$ac_ext <<EOF
9907 #line 9907 "configure"
9908 #include "confdefs.h"
9917 # define LT_DLGLOBAL RTLD_GLOBAL
9920 # define LT_DLGLOBAL DL_GLOBAL
9922 # define LT_DLGLOBAL 0
9926 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9927 find out it does not work in some platform. */
9928 #ifndef LT_DLLAZY_OR_NOW
9930 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9933 # define LT_DLLAZY_OR_NOW DL_LAZY
9936 # define LT_DLLAZY_OR_NOW RTLD_NOW
9939 # define LT_DLLAZY_OR_NOW DL_NOW
9941 # define LT_DLLAZY_OR_NOW 0
9949 extern "C" void exit (int);
9952 void fnord() { int i=42;}
9955 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9956 int status = $lt_dlunknown;
9960 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9961 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9962 /* dlclose (self); */
9970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9971 (eval $ac_link) 2>&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9975 (./conftest; exit; ) >&5 2>/dev/null
9978 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9979 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9980 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9983 # compilation failed
9984 lt_cv_dlopen_self_static=no
9991 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9992 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9995 CPPFLAGS="$save_CPPFLAGS"
9996 LDFLAGS="$save_LDFLAGS"
10001 case $lt_cv_dlopen_self in
10002 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10003 *) enable_dlopen_self=unknown ;;
10006 case $lt_cv_dlopen_self_static in
10007 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10008 *) enable_dlopen_self_static=unknown ;;
10013 # Report which library types will actually be built
10014 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10015 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10016 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10017 echo "${ECHO_T}$can_build_shared" >&6
10019 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10020 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10021 test "$can_build_shared" = "no" && enable_shared=no
10023 # On AIX, shared libraries and static libraries use the same namespace, and
10024 # are all built from PIC.
10027 test "$enable_shared" = yes && enable_static=no
10028 if test -n "$RANLIB"; then
10029 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10030 postinstall_cmds='$RANLIB $lib'
10035 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10036 test "$enable_shared" = yes && enable_static=no
10040 echo "$as_me:$LINENO: result: $enable_shared" >&5
10041 echo "${ECHO_T}$enable_shared" >&6
10043 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10044 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10045 # Make sure either enable_shared or enable_static is yes.
10046 test "$enable_shared" = yes || enable_static=yes
10047 echo "$as_me:$LINENO: result: $enable_static" >&5
10048 echo "${ECHO_T}$enable_static" >&6
10050 # The else clause should only fire when bootstrapping the
10051 # libtool distribution, otherwise you forgot to ship ltmain.sh
10052 # with your package, and you will get complaints that there are
10053 # no rules to generate ltmain.sh.
10054 if test -f "$ltmain"; then
10055 # See if we are running on zsh, and set the options which allow our commands through
10056 # without removal of \ escapes.
10057 if test -n "${ZSH_VERSION+set}" ; then
10058 setopt NO_GLOB_SUBST
10060 # Now quote all the things that may contain metacharacters while being
10061 # careful not to overquote the AC_SUBSTed values. We take copies of the
10062 # variables and quote the copies for generation of the libtool script.
10063 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10065 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10066 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10067 deplibs_check_method reload_flag reload_cmds need_locks \
10068 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10069 lt_cv_sys_global_symbol_to_c_name_address \
10070 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10071 old_postinstall_cmds old_postuninstall_cmds \
10075 lt_prog_compiler_wl \
10076 lt_prog_compiler_pic \
10077 lt_prog_compiler_static \
10078 lt_prog_compiler_no_builtin_flag \
10079 export_dynamic_flag_spec \
10080 thread_safe_flag_spec \
10081 whole_archive_flag_spec \
10082 enable_shared_with_static_runtimes \
10084 old_archive_from_new_cmds \
10089 compiler_lib_search_path \
10091 archive_expsym_cmds \
10093 postuninstall_cmds \
10094 old_archive_from_expsyms_cmds \
10095 allow_undefined_flag \
10096 no_undefined_flag \
10097 export_symbols_cmds \
10098 hardcode_libdir_flag_spec \
10099 hardcode_libdir_flag_spec_ld \
10100 hardcode_libdir_separator \
10101 hardcode_automatic \
10103 module_expsym_cmds \
10104 lt_cv_prog_compiler_c_o \
10106 include_expsyms; do
10109 old_archive_cmds | \
10110 old_archive_from_new_cmds | \
10112 archive_expsym_cmds | \
10114 module_expsym_cmds | \
10115 old_archive_from_expsyms_cmds | \
10116 export_symbols_cmds | \
10117 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10118 postinstall_cmds | postuninstall_cmds | \
10119 old_postinstall_cmds | old_postuninstall_cmds | \
10120 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10121 # Double-quote double-evaled strings.
10122 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10125 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10131 *'\$0 --fallback-echo"')
10132 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10136 cfgfile="${ofile}T"
10137 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10139 { echo "$as_me:$LINENO: creating $ofile" >&5
10140 echo "$as_me: creating $ofile" >&6;}
10142 cat <<__EOF__ >> "$cfgfile"
10145 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10146 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10147 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10149 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10150 # Free Software Foundation, Inc.
10152 # This file is part of GNU Libtool:
10153 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10155 # This program is free software; you can redistribute it and/or modify
10156 # it under the terms of the GNU General Public License as published by
10157 # the Free Software Foundation; either version 3 of the License, or
10158 # (at your option) any later version.
10160 # This program is distributed in the hope that it will be useful, but
10161 # WITHOUT ANY WARRANTY; without even the implied warranty of
10162 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10163 # General Public License for more details.
10165 # You should have received a copy of the GNU General Public License
10166 # along with this program; if not, see <http://www.gnu.org/licenses/>.
10168 # As a special exception to the GNU General Public License, if you
10169 # distribute this file as part of a program that contains a
10170 # configuration script generated by Autoconf, you may include it under
10171 # the same distribution terms that you use for the rest of that program.
10173 # A sed program that does not truncate output.
10176 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10177 Xsed="$SED -e 1s/^X//"
10179 # The HP-UX ksh and POSIX shell print the target directory to stdout
10180 # if CDPATH is set.
10181 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10183 # The names of the tagged configurations supported by this script.
10186 # ### BEGIN LIBTOOL CONFIG
10188 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10190 # Shell to use when invoking shell scripts.
10193 # Whether or not to build shared libraries.
10194 build_libtool_libs=$enable_shared
10196 # Whether or not to build static libraries.
10197 build_old_libs=$enable_static
10199 # Whether or not to add -lc for building shared libraries.
10200 build_libtool_need_lc=$archive_cmds_need_lc
10202 # Whether or not to disallow shared libs when runtime libs are static
10203 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10205 # Whether or not to optimize for fast installation.
10206 fast_install=$enable_fast_install
10209 host_alias=$host_alias
10213 # The build system.
10214 build_alias=$build_alias
10218 # An echo program that does not interpret backslashes.
10223 AR_FLAGS=$lt_AR_FLAGS
10228 # LTCC compiler flags.
10229 LTCFLAGS=$lt_LTCFLAGS
10231 # A language-specific compiler.
10234 # Is the compiler the GNU C compiler?
10240 # The linker used to build libraries.
10243 # Whether we need hard or soft links.
10246 # A BSD-compatible nm program.
10249 # A symbol stripping program
10252 # Used to examine libraries when file_magic_cmd begins "file"
10253 MAGIC_CMD=$MAGIC_CMD
10255 # Used on cygwin: DLL creation program.
10258 # Used on cygwin: object dumper.
10261 # Used on cygwin: assembler.
10264 # The name of the directory that contains temporary libtool files.
10267 # How to create reloadable object files.
10268 reload_flag=$lt_reload_flag
10269 reload_cmds=$lt_reload_cmds
10271 # How to pass a linker flag through the compiler.
10272 wl=$lt_lt_prog_compiler_wl
10274 # Object file suffix (normally "o").
10275 objext="$ac_objext"
10277 # Old archive suffix (normally "a").
10280 # Shared library suffix (normally ".so").
10281 shrext_cmds='$shrext_cmds'
10283 # Executable file suffix (normally "").
10286 # Additional compiler flags for building library objects.
10287 pic_flag=$lt_lt_prog_compiler_pic
10290 # What is the maximum length of a command?
10291 max_cmd_len=$lt_cv_sys_max_cmd_len
10293 # Does compiler simultaneously support -c and -o options?
10294 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10296 # Must we lock files when doing compilation?
10297 need_locks=$lt_need_locks
10299 # Do we need the lib prefix for modules?
10300 need_lib_prefix=$need_lib_prefix
10302 # Do we need a version for libraries?
10303 need_version=$need_version
10305 # Whether dlopen is supported.
10306 dlopen_support=$enable_dlopen
10308 # Whether dlopen of programs is supported.
10309 dlopen_self=$enable_dlopen_self
10311 # Whether dlopen of statically linked programs is supported.
10312 dlopen_self_static=$enable_dlopen_self_static
10314 # Compiler flag to prevent dynamic linking.
10315 link_static_flag=$lt_lt_prog_compiler_static
10317 # Compiler flag to turn off builtin functions.
10318 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10320 # Compiler flag to allow reflexive dlopens.
10321 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10323 # Compiler flag to generate shared objects directly from archives.
10324 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10326 # Compiler flag to generate thread-safe objects.
10327 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10329 # Library versioning type.
10330 version_type=$version_type
10332 # Format of library name prefix.
10333 libname_spec=$lt_libname_spec
10335 # List of archive names. First name is the real one, the rest are links.
10336 # The last name is the one that the linker finds with -lNAME.
10337 library_names_spec=$lt_library_names_spec
10339 # The coded name of the library, if different from the real name.
10340 soname_spec=$lt_soname_spec
10342 # Commands used to build and install an old-style archive.
10344 old_archive_cmds=$lt_old_archive_cmds
10345 old_postinstall_cmds=$lt_old_postinstall_cmds
10346 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10348 # Create an old-style archive from a shared archive.
10349 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10351 # Create a temporary old-style archive to link instead of a shared archive.
10352 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10354 # Commands used to build and install a shared archive.
10355 archive_cmds=$lt_archive_cmds
10356 archive_expsym_cmds=$lt_archive_expsym_cmds
10357 postinstall_cmds=$lt_postinstall_cmds
10358 postuninstall_cmds=$lt_postuninstall_cmds
10360 # Commands used to build a loadable module (assumed same as above if empty)
10361 module_cmds=$lt_module_cmds
10362 module_expsym_cmds=$lt_module_expsym_cmds
10364 # Commands to strip libraries.
10365 old_striplib=$lt_old_striplib
10366 striplib=$lt_striplib
10368 # Dependencies to place before the objects being linked to create a
10370 predep_objects=$lt_predep_objects
10372 # Dependencies to place after the objects being linked to create a
10374 postdep_objects=$lt_postdep_objects
10376 # Dependencies to place before the objects being linked to create a
10378 predeps=$lt_predeps
10380 # Dependencies to place after the objects being linked to create a
10382 postdeps=$lt_postdeps
10384 # The library search path used internally by the compiler when linking
10385 # a shared library.
10386 compiler_lib_search_path=$lt_compiler_lib_search_path
10388 # Method to check whether dependent libraries are shared objects.
10389 deplibs_check_method=$lt_deplibs_check_method
10391 # Command to use when deplibs_check_method == file_magic.
10392 file_magic_cmd=$lt_file_magic_cmd
10394 # Flag that allows shared libraries with undefined symbols to be built.
10395 allow_undefined_flag=$lt_allow_undefined_flag
10397 # Flag that forces no undefined symbols.
10398 no_undefined_flag=$lt_no_undefined_flag
10400 # Commands used to finish a libtool library installation in a directory.
10401 finish_cmds=$lt_finish_cmds
10403 # Same as above, but a single script fragment to be evaled but not shown.
10404 finish_eval=$lt_finish_eval
10406 # Take the output of nm and produce a listing of raw symbols and C names.
10407 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10409 # Transform the output of nm in a proper C declaration
10410 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10412 # Transform the output of nm in a C name address pair
10413 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10415 # This is the shared library runtime path variable.
10416 runpath_var=$runpath_var
10418 # This is the shared library path variable.
10419 shlibpath_var=$shlibpath_var
10421 # Is shlibpath searched before the hard-coded library search path?
10422 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10424 # How to hardcode a shared library path into an executable.
10425 hardcode_action=$hardcode_action
10427 # Whether we should hardcode library paths into libraries.
10428 hardcode_into_libs=$hardcode_into_libs
10430 # Flag to hardcode \$libdir into a binary during linking.
10431 # This must work even if \$libdir does not exist.
10432 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10434 # If ld is used when linking, flag to hardcode \$libdir into
10435 # a binary during linking. This must work even if \$libdir does
10437 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10439 # Whether we need a single -rpath flag with a separated argument.
10440 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10442 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10443 # resulting binary.
10444 hardcode_direct=$hardcode_direct
10446 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10447 # resulting binary.
10448 hardcode_minus_L=$hardcode_minus_L
10450 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10451 # the resulting binary.
10452 hardcode_shlibpath_var=$hardcode_shlibpath_var
10454 # Set to yes if building a shared library automatically hardcodes DIR into the library
10455 # and all subsequent libraries and executables linked against it.
10456 hardcode_automatic=$hardcode_automatic
10458 # Variables whose values should be saved in libtool wrapper scripts and
10459 # restored at relink time.
10460 variables_saved_for_relink="$variables_saved_for_relink"
10462 # Whether libtool must link a program against all its dependency libraries.
10463 link_all_deplibs=$link_all_deplibs
10465 # Compile-time system search path for libraries
10466 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10468 # Run-time system search path for libraries
10469 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10471 # Fix the shell variable \$srcfile for the compiler.
10472 fix_srcfile_path="$fix_srcfile_path"
10474 # Set to yes if exported symbols are required.
10475 always_export_symbols=$always_export_symbols
10477 # The commands to list exported symbols.
10478 export_symbols_cmds=$lt_export_symbols_cmds
10480 # The commands to extract the exported symbol list from a shared archive.
10481 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10483 # Symbols that should not be listed in the preloaded symbols.
10484 exclude_expsyms=$lt_exclude_expsyms
10486 # Symbols that must always be exported.
10487 include_expsyms=$lt_include_expsyms
10489 # ### END LIBTOOL CONFIG
10496 cat <<\EOF >> "$cfgfile"
10498 # AIX sometimes has problems with the GCC collect2 program. For some
10499 # reason, if we set the COLLECT_NAMES environment variable, the problems
10500 # vanish in a puff of smoke.
10501 if test "X${COLLECT_NAMES+set}" != Xset; then
10503 export COLLECT_NAMES
10509 # We use sed instead of cat because bash on DJGPP gets confused if
10510 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10511 # text mode, it properly converts lines to CR/LF. This bash problem
10512 # is reportedly fixed, but why not run on old versions too?
10513 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10515 mv -f "$cfgfile" "$ofile" || \
10516 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10520 # If there is no Makefile yet, we rely on a make rule to execute
10521 # `config.status --recheck' to rerun these tests and create the
10522 # libtool script then.
10523 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10524 if test -f "$ltmain_in"; then
10525 test -f Makefile && make "$ltmain"
10531 ac_cpp='$CPP $CPPFLAGS'
10532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10539 # Check whether --with-tags or --without-tags was given.
10540 if test "${with_tags+set}" = set; then
10541 withval="$with_tags"
10542 tagnames="$withval"
10545 if test -f "$ltmain" && test -n "$tagnames"; then
10546 if test ! -f "${ofile}"; then
10547 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10548 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10551 if test -z "$LTCC"; then
10552 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10553 if test -z "$LTCC"; then
10554 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10555 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10557 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10558 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10561 if test -z "$LTCFLAGS"; then
10562 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10565 # Extract list of available tagged configurations in $ofile.
10566 # Note that this assumes the entire list is on one line.
10567 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10569 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10570 for tagname in $tagnames; do
10572 # Check whether tagname contains only valid characters
10573 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10575 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10576 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10577 { (exit 1); exit 1; }; }
10581 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10583 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10584 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10585 { (exit 1); exit 1; }; }
10588 # Update the list of available tags.
10589 if test -n "$tagname"; then
10590 echo appending configuration tag \"$tagname\" to $ofile
10594 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10595 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10596 (test "X$CXX" != "Xg++"))) ; then
10598 ac_cpp='$CXXCPP $CPPFLAGS'
10599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10606 archive_cmds_need_lc_CXX=no
10607 allow_undefined_flag_CXX=
10608 always_export_symbols_CXX=no
10609 archive_expsym_cmds_CXX=
10610 export_dynamic_flag_spec_CXX=
10611 hardcode_direct_CXX=no
10612 hardcode_libdir_flag_spec_CXX=
10613 hardcode_libdir_flag_spec_ld_CXX=
10614 hardcode_libdir_separator_CXX=
10615 hardcode_minus_L_CXX=no
10616 hardcode_shlibpath_var_CXX=unsupported
10617 hardcode_automatic_CXX=no
10619 module_expsym_cmds_CXX=
10620 link_all_deplibs_CXX=unknown
10621 old_archive_cmds_CXX=$old_archive_cmds
10622 no_undefined_flag_CXX=
10623 whole_archive_flag_spec_CXX=
10624 enable_shared_with_static_runtimes_CXX=no
10626 # Dependencies to place before and after the object being linked:
10627 predep_objects_CXX=
10628 postdep_objects_CXX=
10631 compiler_lib_search_path_CXX=
10633 # Source file extension for C++ test sources.
10636 # Object file extension for compiled C++ test sources.
10640 # Code to be used in simple compile tests
10641 lt_simple_compile_test_code="int some_variable = 0;\n"
10643 # Code to be used in simple link tests
10644 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10646 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10648 # If no C compiler was specified, use CC.
10651 # If no C compiler flags were specified, use CFLAGS.
10652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10654 # Allow CC to be a program name with arguments.
10658 # save warnings/boilerplate of simple test code
10659 ac_outfile=conftest.$ac_objext
10660 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10662 _lt_compiler_boilerplate=`cat conftest.err`
10665 ac_outfile=conftest.$ac_objext
10666 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10668 _lt_linker_boilerplate=`cat conftest.err`
10672 # Allow CC to be a program name with arguments.
10677 lt_save_with_gnu_ld=$with_gnu_ld
10678 lt_save_path_LD=$lt_cv_path_LD
10679 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10680 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10682 $as_unset lt_cv_prog_gnu_ld
10684 if test -n "${lt_cv_path_LDCXX+set}"; then
10685 lt_cv_path_LD=$lt_cv_path_LDCXX
10687 $as_unset lt_cv_path_LD
10689 test -z "${LDCXX+set}" || LD=$LDCXX
10693 for cc_temp in $compiler""; do
10695 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10696 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10701 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10704 # We don't want -fno-exception wen compiling C++ code, so set the
10705 # no_builtin_flag separately
10706 if test "$GXX" = yes; then
10707 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10709 lt_prog_compiler_no_builtin_flag_CXX=
10712 if test "$GXX" = yes; then
10713 # Set up default GNU C++ configuration
10716 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10717 if test "${with_gnu_ld+set}" = set; then
10718 withval="$with_gnu_ld"
10719 test "$withval" = no || with_gnu_ld=yes
10724 if test "$GCC" = yes; then
10725 # Check if gcc -print-prog-name=ld gives a path.
10726 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10727 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10730 # gcc leaves a trailing carriage return which upsets mingw
10731 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10733 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10736 # Accept absolute paths.
10738 re_direlt='/[^/][^/]*/\.\./'
10739 # Canonicalize the pathname of ld
10740 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10741 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10742 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10744 test -z "$LD" && LD="$ac_prog"
10747 # If it fails, then pretend we aren't using GCC.
10751 # If it is relative, then search for the first ld in PATH.
10752 with_gnu_ld=unknown
10755 elif test "$with_gnu_ld" = yes; then
10756 echo "$as_me:$LINENO: checking for GNU ld" >&5
10757 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10759 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10760 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10762 if test "${lt_cv_path_LD+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10765 if test -z "$LD"; then
10766 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10767 for ac_dir in $PATH; do
10769 test -z "$ac_dir" && ac_dir=.
10770 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10771 lt_cv_path_LD="$ac_dir/$ac_prog"
10772 # Check to see if the program is GNU ld. I'd rather use --version,
10773 # but apparently some variants of GNU ld only accept -v.
10774 # Break only if it was the GNU/non-GNU ld that we prefer.
10775 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10776 *GNU* | *'with BFD'*)
10777 test "$with_gnu_ld" != no && break
10780 test "$with_gnu_ld" != yes && break
10787 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10791 LD="$lt_cv_path_LD"
10792 if test -n "$LD"; then
10793 echo "$as_me:$LINENO: result: $LD" >&5
10794 echo "${ECHO_T}$LD" >&6
10796 echo "$as_me:$LINENO: result: no" >&5
10797 echo "${ECHO_T}no" >&6
10799 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10800 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10801 { (exit 1); exit 1; }; }
10802 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10803 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10804 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10808 case `$LD -v 2>&1 </dev/null` in
10809 *GNU* | *'with BFD'*)
10810 lt_cv_prog_gnu_ld=yes
10813 lt_cv_prog_gnu_ld=no
10817 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10818 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10819 with_gnu_ld=$lt_cv_prog_gnu_ld
10823 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10824 # archiving commands below assume that GNU ld is being used.
10825 if test "$with_gnu_ld" = yes; then
10826 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10827 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'
10829 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10830 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10832 # If archive_cmds runs LD, not CC, wlarc should be empty
10833 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10834 # investigate it a little bit more. (MM)
10837 # ancient GNU ld didn't support --whole-archive et. al.
10838 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10839 grep 'no-whole-archive' > /dev/null; then
10840 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10842 whole_archive_flag_spec_CXX=
10848 # A generic and very simple default shared library creation
10849 # command for GNU C++ for the case where it uses the native
10850 # linker, instead of GNU ld. If possible, this setting should
10851 # overridden to take advantage of the native linker features on
10852 # the platform it is being used on.
10853 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10856 # Commands to make compiler produce verbose output that lists
10857 # what "hidden" libraries, object files and flags are used when
10858 # linking a shared library.
10859 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10867 # PORTME: fill in a description of your system's C++ link characteristics
10868 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10869 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10873 # FIXME: insert proper C++ library support
10877 if test "$host_cpu" = ia64; then
10878 # On IA64, the linker does run time linking by default, so we don't
10879 # have to do anything special.
10880 aix_use_runtimelinking=no
10881 exp_sym_flag='-Bexport'
10884 aix_use_runtimelinking=no
10886 # Test if we are trying to use run time linking or normal
10887 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10888 # need to do runtime linking.
10889 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10890 for ld_flag in $LDFLAGS; do
10893 aix_use_runtimelinking=yes
10901 exp_sym_flag='-bexport'
10902 no_entry_flag='-bnoentry'
10905 # When large executables or shared objects are built, AIX ld can
10906 # have problems creating the table of contents. If linking a library
10907 # or program results in "error TOC overflow" add -mminimal-toc to
10908 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10909 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10911 archive_cmds_CXX=''
10912 hardcode_direct_CXX=yes
10913 hardcode_libdir_separator_CXX=':'
10914 link_all_deplibs_CXX=yes
10916 if test "$GXX" = yes; then
10917 case $host_os in aix4.[012]|aix4.[012].*)
10918 # We only want to do this on AIX 4.2 and lower, the check
10919 # below for broken collect2 doesn't work under 4.3+
10920 collect2name=`${CC} -print-prog-name=collect2`
10921 if test -f "$collect2name" && \
10922 strings "$collect2name" | grep resolve_lib_name >/dev/null
10924 # We have reworked collect2
10925 hardcode_direct_CXX=yes
10927 # We have old collect2
10928 hardcode_direct_CXX=unsupported
10929 # It fails to find uninstalled libraries when the uninstalled
10930 # path is not listed in the libpath. Setting hardcode_minus_L
10931 # to unsupported forces relinking
10932 hardcode_minus_L_CXX=yes
10933 hardcode_libdir_flag_spec_CXX='-L$libdir'
10934 hardcode_libdir_separator_CXX=
10938 shared_flag='-shared'
10939 if test "$aix_use_runtimelinking" = yes; then
10940 shared_flag="$shared_flag "'${wl}-G'
10944 if test "$host_cpu" = ia64; then
10945 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10946 # chokes on -Wl,-G. The following line is correct:
10949 if test "$aix_use_runtimelinking" = yes; then
10950 shared_flag='${wl}-G'
10952 shared_flag='${wl}-bM:SRE'
10957 # It seems that -bexpall does not export symbols beginning with
10958 # underscore (_), so it is better to generate a list of symbols to export.
10959 always_export_symbols_CXX=yes
10960 if test "$aix_use_runtimelinking" = yes; then
10961 # Warning - without using the other runtime loading flags (-brtl),
10962 # -berok will link without error, but may produce a broken library.
10963 allow_undefined_flag_CXX='-berok'
10964 # Determine the default libpath from the value encoded in an empty executable.
10965 cat >conftest.$ac_ext <<_ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10980 rm -f conftest.$ac_objext conftest$ac_exeext
10981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10982 (eval $ac_link) 2>conftest.er1
10984 grep -v '^ *+' conftest.er1 >conftest.err
10986 cat conftest.err >&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); } &&
10989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10991 (eval $ac_try) 2>&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); }; } &&
10995 { ac_try='test -s conftest$ac_exeext'
10996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; }; then
11002 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11004 # Check for a 64-bit object if we didn't find anything.
11005 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; }
11008 echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11012 rm -f conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
11014 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11016 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11018 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"
11020 if test "$host_cpu" = ia64; then
11021 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11022 allow_undefined_flag_CXX="-z nodefs"
11023 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"
11025 # Determine the default libpath from the value encoded in an empty executable.
11026 cat >conftest.$ac_ext <<_ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
11041 rm -f conftest.$ac_objext conftest$ac_exeext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11043 (eval $ac_link) 2>conftest.er1
11045 grep -v '^ *+' conftest.er1 >conftest.err
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
11050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; } &&
11056 { ac_try='test -s conftest$ac_exeext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11063 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11065 # Check for a 64-bit object if we didn't find anything.
11066 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; }
11069 echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11073 rm -f conftest.err conftest.$ac_objext \
11074 conftest$ac_exeext conftest.$ac_ext
11075 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11077 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11078 # Warning - without using the other run time loading flags,
11079 # -berok will link without error, but may produce a broken library.
11080 no_undefined_flag_CXX=' ${wl}-bernotok'
11081 allow_undefined_flag_CXX=' ${wl}-berok'
11082 # Exported symbols can be pulled into shared objects from archives
11083 whole_archive_flag_spec_CXX='$convenience'
11084 archive_cmds_need_lc_CXX=yes
11085 # This is similar to how AIX traditionally builds its shared libraries.
11086 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'
11092 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11093 allow_undefined_flag_CXX=unsupported
11094 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11095 # support --undefined. This deserves some investigation. FIXME
11096 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11103 case $cc_basename in
11105 # FIXME: insert proper C++ library support
11111 cygwin* | mingw* | pw32*)
11112 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11113 # as there is no search path for DLLs.
11114 hardcode_libdir_flag_spec_CXX='-L$libdir'
11115 allow_undefined_flag_CXX=unsupported
11116 always_export_symbols_CXX=no
11117 enable_shared_with_static_runtimes_CXX=yes
11119 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11120 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'
11121 # If the export-symbols file already is a .def file (1st line
11122 # is EXPORTS), use it as is; otherwise, prepend...
11123 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11124 cp $export_symbols $output_objdir/$soname.def;
11126 echo EXPORTS > $output_objdir/$soname.def;
11127 cat $export_symbols >> $output_objdir/$soname.def;
11129 $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'
11134 darwin* | rhapsody*)
11136 rhapsody* | darwin1.[012])
11137 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11140 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11141 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11143 case ${MACOSX_DEPLOYMENT_TARGET} in
11145 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11148 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11154 archive_cmds_need_lc_CXX=no
11155 hardcode_direct_CXX=no
11156 hardcode_automatic_CXX=yes
11157 hardcode_shlibpath_var_CXX=unsupported
11158 whole_archive_flag_spec_CXX=''
11159 link_all_deplibs_CXX=yes
11161 if test "$GXX" = yes ; then
11162 lt_int_apple_cc_single_mod=no
11163 output_verbose_link_cmd='echo'
11164 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11165 lt_int_apple_cc_single_mod=yes
11167 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11168 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11170 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'
11172 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11173 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11174 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11175 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}'
11177 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}'
11179 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}'
11181 case $cc_basename in
11183 output_verbose_link_cmd='echo'
11184 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'
11185 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11186 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11187 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}'
11188 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}'
11198 case $cc_basename in
11200 # FIXME: insert proper C++ library support
11204 # Green Hills C++ Compiler
11205 # FIXME: insert proper C++ library support
11209 # FIXME: insert proper C++ library support
11215 # C++ shared libraries reported to be fairly broken before switch to ELF
11219 archive_cmds_need_lc_CXX=no
11221 freebsd* | kfreebsd*-gnu | dragonfly*)
11222 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11229 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11230 hardcode_libdir_separator_CXX=:
11231 export_dynamic_flag_spec_CXX='${wl}-E'
11232 hardcode_direct_CXX=yes
11233 hardcode_minus_L_CXX=yes # Not in the search PATH,
11234 # but as the default
11235 # location of the library.
11237 case $cc_basename in
11239 # FIXME: insert proper C++ library support
11243 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'
11244 # Commands to make compiler produce verbose output that lists
11245 # what "hidden" libraries, object files and flags are used when
11246 # linking a shared library.
11248 # There doesn't appear to be a way to prevent this compiler from
11249 # explicitly linking system object files so we need to strip them
11250 # from the output so that they don't get included in the library
11252 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'
11255 if test "$GXX" = yes; then
11256 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'
11258 # FIXME: insert proper C++ library support
11265 if test $with_gnu_ld = no; then
11266 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11267 hardcode_libdir_separator_CXX=:
11271 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11274 export_dynamic_flag_spec_CXX='${wl}-E'
11280 hardcode_direct_CXX=no
11281 hardcode_shlibpath_var_CXX=no
11284 hardcode_direct_CXX=yes
11285 hardcode_minus_L_CXX=yes # Not in the search PATH,
11286 # but as the default
11287 # location of the library.
11291 case $cc_basename in
11293 # FIXME: insert proper C++ library support
11299 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11302 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11305 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11308 # Commands to make compiler produce verbose output that lists
11309 # what "hidden" libraries, object files and flags are used when
11310 # linking a shared library.
11312 # There doesn't appear to be a way to prevent this compiler from
11313 # explicitly linking system object files so we need to strip them
11314 # from the output so that they don't get included in the library
11316 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'
11319 if test "$GXX" = yes; then
11320 if test $with_gnu_ld = no; then
11323 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11326 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11329 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'
11334 # FIXME: insert proper C++ library support
11341 hardcode_direct_CXX=no
11342 hardcode_shlibpath_var_CXX=no
11343 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11344 export_dynamic_flag_spec_CXX='${wl}-E'
11345 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11346 # Instead, shared libraries are loaded at an image base (0x10000000 by
11347 # default) and relocated if they conflict, which is a slow very memory
11348 # consuming and fragmenting process. To avoid this, we pick a random,
11349 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11350 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11351 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'
11352 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'
11355 case $cc_basename in
11358 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'
11360 # Archives containing C++ object files must be created using
11361 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11362 # necessary to make sure instantiated templates are included
11364 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11367 if test "$GXX" = yes; then
11368 if test "$with_gnu_ld" = no; then
11369 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'
11371 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'
11374 link_all_deplibs_CXX=yes
11377 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11378 hardcode_libdir_separator_CXX=:
11381 case $cc_basename in
11383 # Kuck and Associates, Inc. (KAI) C++ Compiler
11385 # KCC will only create a shared library if the output file
11386 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11387 # to its proper name (with version) after linking.
11388 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'
11389 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'
11390 # Commands to make compiler produce verbose output that lists
11391 # what "hidden" libraries, object files and flags are used when
11392 # linking a shared library.
11394 # There doesn't appear to be a way to prevent this compiler from
11395 # explicitly linking system object files so we need to strip them
11396 # from the output so that they don't get included in the library
11398 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'
11400 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11401 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11403 # Archives containing C++ object files must be created using
11404 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11405 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11410 # version 8.0 and above of icpc choke on multiply defined symbols
11411 # if we add $predep_objects and $postdep_objects, however 7.1 and
11412 # earlier do not add the objects themselves.
11413 case `$CC -V 2>&1` in
11415 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11416 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'
11418 *) # Version 8.0 or newer
11421 ia64*) tmp_idyn=' -i_dynamic';;
11423 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11424 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'
11427 archive_cmds_need_lc_CXX=no
11428 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11429 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11430 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11433 # Portland Group C++ compiler
11434 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11435 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'
11437 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11438 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11439 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'
11443 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11444 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'
11446 runpath_var=LD_RUN_PATH
11447 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11448 hardcode_libdir_separator_CXX=:
11450 # Commands to make compiler produce verbose output that lists
11451 # what "hidden" libraries, object files and flags are used when
11452 # linking a shared library.
11454 # There doesn't appear to be a way to prevent this compiler from
11455 # explicitly linking system object files so we need to strip them
11456 # from the output so that they don't get included in the library
11458 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'
11463 # FIXME: insert proper C++ library support
11467 # FIXME: insert proper C++ library support
11471 case $cc_basename in
11473 # FIXME: insert proper C++ library support
11477 # FIXME: insert proper C++ library support
11482 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11483 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11484 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11486 hardcode_libdir_flag_spec_CXX='-R$libdir'
11487 hardcode_direct_CXX=yes
11488 hardcode_shlibpath_var_CXX=no
11490 # Workaround some broken pre-1.5 toolchains
11491 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11494 # C++ shared libraries are fairly broken
11498 hardcode_direct_CXX=yes
11499 hardcode_shlibpath_var_CXX=no
11500 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11501 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11502 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11503 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11504 export_dynamic_flag_spec_CXX='${wl}-E'
11505 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11507 output_verbose_link_cmd='echo'
11510 case $cc_basename in
11512 # Kuck and Associates, Inc. (KAI) C++ Compiler
11514 # KCC will only create a shared library if the output file
11515 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11516 # to its proper name (with version) after linking.
11517 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'
11519 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11520 hardcode_libdir_separator_CXX=:
11522 # Archives containing C++ object files must be created using
11523 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11524 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11528 # Rational C++ 2.4.1
11529 # FIXME: insert proper C++ library support
11533 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11534 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'
11536 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11537 hardcode_libdir_separator_CXX=:
11539 # Commands to make compiler produce verbose output that lists
11540 # what "hidden" libraries, object files and flags are used when
11541 # linking a shared library.
11543 # There doesn't appear to be a way to prevent this compiler from
11544 # explicitly linking system object files so we need to strip them
11545 # from the output so that they don't get included in the library
11547 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'
11550 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11551 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11552 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'
11554 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11555 hardcode_libdir_separator_CXX=:
11557 # Commands to make compiler produce verbose output that lists
11558 # what "hidden" libraries, object files and flags are used when
11559 # linking a shared library.
11560 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11563 # FIXME: insert proper C++ library support
11570 case $cc_basename in
11572 # Kuck and Associates, Inc. (KAI) C++ Compiler
11574 # KCC will only create a shared library if the output file
11575 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11576 # to its proper name (with version) after linking.
11577 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'
11579 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11580 hardcode_libdir_separator_CXX=:
11582 # Archives containing C++ object files must be created using
11583 # the KAI C++ compiler.
11584 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11587 # Rational C++ 2.4.1
11588 # FIXME: insert proper C++ library support
11592 allow_undefined_flag_CXX=' -expect_unresolved \*'
11593 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'
11594 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11595 echo "-hidden">> $lib.exp~
11596 $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~
11599 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11600 hardcode_libdir_separator_CXX=:
11602 # Commands to make compiler produce verbose output that lists
11603 # what "hidden" libraries, object files and flags are used when
11604 # linking a shared library.
11606 # There doesn't appear to be a way to prevent this compiler from
11607 # explicitly linking system object files so we need to strip them
11608 # from the output so that they don't get included in the library
11610 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'
11613 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11614 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11615 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'
11617 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11618 hardcode_libdir_separator_CXX=:
11620 # Commands to make compiler produce verbose output that lists
11621 # what "hidden" libraries, object files and flags are used when
11622 # linking a shared library.
11623 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11626 # FIXME: insert proper C++ library support
11633 # FIXME: insert proper C++ library support
11637 case $cc_basename in
11640 # FIXME: insert proper C++ library support
11645 # FIXME: insert proper C++ library support
11649 # FIXME: insert proper C++ library support
11655 case $cc_basename in
11657 # Sun C++ 4.2, 5.x and Centerline C++
11658 archive_cmds_need_lc_CXX=yes
11659 no_undefined_flag_CXX=' -zdefs'
11660 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11661 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11662 $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'
11664 hardcode_libdir_flag_spec_CXX='-R$libdir'
11665 hardcode_shlibpath_var_CXX=no
11667 solaris2.[0-5] | solaris2.[0-5].*) ;;
11669 # The C++ compiler is used as linker so we must use $wl
11670 # flag to pass the commands to the underlying system
11671 # linker. We must also pass each convience library through
11672 # to the system linker between allextract/defaultextract.
11673 # The C++ compiler will combine linker options so we
11674 # cannot just pass the convience library names through
11676 # Supported since Solaris 2.6 (maybe 2.5.1?)
11677 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'
11680 link_all_deplibs_CXX=yes
11682 output_verbose_link_cmd='echo'
11684 # Archives containing C++ object files must be created using
11685 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11686 # necessary to make sure instantiated templates are included
11688 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11691 # Green Hills C++ Compiler
11692 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11694 # The C++ compiler must be used to create the archive.
11695 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11698 # GNU C++ compiler with Solaris linker
11699 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11700 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11701 if $CC --version | grep -v '^2\.7' > /dev/null; then
11702 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11703 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11704 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11706 # Commands to make compiler produce verbose output that lists
11707 # what "hidden" libraries, object files and flags are used when
11708 # linking a shared library.
11709 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11711 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11713 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11714 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11715 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11717 # Commands to make compiler produce verbose output that lists
11718 # what "hidden" libraries, object files and flags are used when
11719 # linking a shared library.
11720 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11723 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11728 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11729 no_undefined_flag_CXX='${wl}-z,text'
11730 archive_cmds_need_lc_CXX=no
11731 hardcode_shlibpath_var_CXX=no
11732 runpath_var='LD_RUN_PATH'
11734 case $cc_basename in
11736 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11737 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11740 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11741 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11745 sysv5* | sco3.2v5* | sco5v6*)
11746 # Note: We can NOT use -z defs as we might desire, because we do not
11747 # link with -lc, and that would cause any symbols used from libc to
11748 # always be unresolved, which means just about no library would
11749 # ever link correctly. If we're not using GNU ld we use -z text
11750 # though, which does catch some bad symbols but isn't as heavy-handed
11752 # For security reasons, it is highly recommended that you always
11753 # use absolute paths for naming shared libraries, and exclude the
11754 # DT_RUNPATH tag from executables and libraries. But doing so
11755 # requires that you compile everything twice, which is a pain.
11756 # So that behaviour is only enabled if SCOABSPATH is set to a
11757 # non-empty value in the environment. Most likely only useful for
11758 # creating official distributions of packages.
11759 # This is a hack until libtool officially supports absolute path
11760 # names for shared libraries.
11761 no_undefined_flag_CXX='${wl}-z,text'
11762 allow_undefined_flag_CXX='${wl}-z,nodefs'
11763 archive_cmds_need_lc_CXX=no
11764 hardcode_shlibpath_var_CXX=no
11765 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11766 hardcode_libdir_separator_CXX=':'
11767 link_all_deplibs_CXX=yes
11768 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11769 runpath_var='LD_RUN_PATH'
11771 case $cc_basename in
11773 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11774 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11777 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11778 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11783 case $cc_basename in
11785 # NonStop-UX NCC 3.20
11786 # FIXME: insert proper C++ library support
11790 # FIXME: insert proper C++ library support
11796 # FIXME: insert proper C++ library support
11800 # FIXME: insert proper C++ library support
11804 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11805 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11806 test "$ld_shlibs_CXX" = no && can_build_shared=no
11812 cat > conftest.$ac_ext <<EOF
11816 Foo (void) { a = 0; }
11822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11823 (eval $ac_compile) 2>&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; then
11827 # Parse the compiler output and extract the necessary
11828 # objects, libraries and library flags.
11830 # Sentinel used to keep track of whether or not we are before
11831 # the conftest object file.
11832 pre_test_object_deps_done=no
11834 # The `*' in the case matches for architectures that use `case' in
11835 # $output_verbose_cmd can trigger glob expansion during the loop
11836 # eval without this substitution.
11837 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11839 for p in `eval $output_verbose_link_cmd`; do
11843 # Some compilers place space between "-{L,R}" and the path.
11844 # Remove the space.
11845 if test $p = "-L" \
11846 || test $p = "-R"; then
11853 if test "$pre_test_object_deps_done" = no; then
11856 # Internal compiler library paths should come after those
11857 # provided the user. The postdeps already come after the
11858 # user supplied libs so there is no need to process them.
11859 if test -z "$compiler_lib_search_path_CXX"; then
11860 compiler_lib_search_path_CXX="${prev}${p}"
11862 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11865 # The "-l" case would never come before the object being
11866 # linked, so don't bother handling this case.
11869 if test -z "$postdeps_CXX"; then
11870 postdeps_CXX="${prev}${p}"
11872 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11878 # This assumes that the test object file only shows up
11879 # once in the compiler output.
11880 if test "$p" = "conftest.$objext"; then
11881 pre_test_object_deps_done=yes
11885 if test "$pre_test_object_deps_done" = no; then
11886 if test -z "$predep_objects_CXX"; then
11887 predep_objects_CXX="$p"
11889 predep_objects_CXX="$predep_objects_CXX $p"
11892 if test -z "$postdep_objects_CXX"; then
11893 postdep_objects_CXX="$p"
11895 postdep_objects_CXX="$postdep_objects_CXX $p"
11900 *) ;; # Ignore the rest.
11908 echo "libtool.m4: error: problem compiling CXX test program"
11911 $rm -f confest.$objext
11913 # PORTME: override above test on systems where it is broken
11916 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11917 # hack all around it, let's just trust "g++" to DTRT.
11918 predep_objects_CXX=
11919 postdep_objects_CXX=
11924 case $cc_basename in
11926 # Adding this requires a known-good setup of shared libraries for
11927 # Sun compiler versions before 5.6, else PIC objects from an old
11928 # archive will be linked into the output, leading to subtle bugs.
11929 postdeps_CXX='-lCstd -lCrun'
11936 case " $postdeps_CXX " in
11937 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11940 lt_prog_compiler_wl_CXX=
11941 lt_prog_compiler_pic_CXX=
11942 lt_prog_compiler_static_CXX=
11944 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11945 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11947 # C++ specific cases for pic, static, wl, etc.
11948 if test "$GXX" = yes; then
11949 lt_prog_compiler_wl_CXX='-Wl,'
11950 lt_prog_compiler_static_CXX='-static'
11954 # All AIX code is PIC.
11955 if test "$host_cpu" = ia64; then
11956 # AIX 5 now supports IA64 processor
11957 lt_prog_compiler_static_CXX='-Bstatic'
11961 # FIXME: we need at least 68020 code to build shared libraries, but
11962 # adding the `-m68020' flag to GCC prevents building anything better,
11964 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11966 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11967 # PIC is the default for these OSes.
11969 mingw* | os2* | pw32*)
11970 # This hack is so that the source file can tell whether it is being
11971 # built for inclusion in a dll (and should export symbols for example).
11972 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11974 darwin* | rhapsody*)
11975 # PIC is the default on this platform
11976 # Common symbols not allowed in MH_DYLIB files
11977 lt_prog_compiler_pic_CXX='-fno-common'
11980 # DJGPP does not support shared libraries at all
11981 lt_prog_compiler_pic_CXX=
11984 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11985 # Instead, we relocate shared libraries at runtime.
11988 if test -d /usr/nec; then
11989 lt_prog_compiler_pic_CXX=-Kconform_pic
11993 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11994 # not for PA HP-UX.
11999 lt_prog_compiler_pic_CXX='-fPIC'
12004 lt_prog_compiler_pic_CXX='-fPIC'
12010 # All AIX code is PIC.
12011 if test "$host_cpu" = ia64; then
12012 # AIX 5 now supports IA64 processor
12013 lt_prog_compiler_static_CXX='-Bstatic'
12015 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12019 case $cc_basename in
12021 # Green Hills C++ Compiler
12022 # _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"
12027 # PIC is the default on this platform
12028 # Common symbols not allowed in MH_DYLIB files
12029 case $cc_basename in
12031 lt_prog_compiler_pic_CXX='-qnocommon'
12032 lt_prog_compiler_wl_CXX='-Wl,'
12037 case $cc_basename in
12039 lt_prog_compiler_pic_CXX='-KPIC'
12042 # Green Hills C++ Compiler
12043 lt_prog_compiler_pic_CXX='-pic'
12049 freebsd* | kfreebsd*-gnu | dragonfly*)
12050 # FreeBSD uses GNU C++
12052 hpux9* | hpux10* | hpux11*)
12053 case $cc_basename in
12055 lt_prog_compiler_wl_CXX='-Wl,'
12056 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12057 if test "$host_cpu" != ia64; then
12058 lt_prog_compiler_pic_CXX='+Z'
12062 lt_prog_compiler_wl_CXX='-Wl,'
12063 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12069 lt_prog_compiler_pic_CXX='+Z'
12078 # This is c89, which is MS Visual C++ (no shared libs)
12079 # Anyone wants to do a port?
12081 irix5* | irix6* | nonstopux*)
12082 case $cc_basename in
12084 lt_prog_compiler_wl_CXX='-Wl,'
12085 lt_prog_compiler_static_CXX='-non_shared'
12086 # CC pic flag -KPIC is the default.
12093 case $cc_basename in
12096 lt_prog_compiler_wl_CXX='--backend -Wl,'
12097 lt_prog_compiler_pic_CXX='-fPIC'
12101 lt_prog_compiler_wl_CXX='-Wl,'
12102 lt_prog_compiler_pic_CXX='-KPIC'
12103 lt_prog_compiler_static_CXX='-static'
12106 # Portland Group C++ compiler.
12107 lt_prog_compiler_wl_CXX='-Wl,'
12108 lt_prog_compiler_pic_CXX='-fpic'
12109 lt_prog_compiler_static_CXX='-Bstatic'
12113 # Make sure the PIC flag is empty. It appears that all Alpha
12114 # Linux and Compaq Tru64 Unix objects are PIC.
12115 lt_prog_compiler_pic_CXX=
12116 lt_prog_compiler_static_CXX='-non_shared'
12127 case $cc_basename in
12129 lt_prog_compiler_pic_CXX='-W c,exportall'
12135 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12137 osf3* | osf4* | osf5*)
12138 case $cc_basename in
12140 lt_prog_compiler_wl_CXX='--backend -Wl,'
12143 # Rational C++ 2.4.1
12144 lt_prog_compiler_pic_CXX='-pic'
12147 # Digital/Compaq C++
12148 lt_prog_compiler_wl_CXX='-Wl,'
12149 # Make sure the PIC flag is empty. It appears that all Alpha
12150 # Linux and Compaq Tru64 Unix objects are PIC.
12151 lt_prog_compiler_pic_CXX=
12152 lt_prog_compiler_static_CXX='-non_shared'
12161 case $cc_basename in
12163 # Sun C++ 4.2, 5.x and Centerline C++
12164 lt_prog_compiler_pic_CXX='-KPIC'
12165 lt_prog_compiler_static_CXX='-Bstatic'
12166 lt_prog_compiler_wl_CXX='-Qoption ld '
12169 # Green Hills C++ Compiler
12170 lt_prog_compiler_pic_CXX='-PIC'
12177 case $cc_basename in
12180 lt_prog_compiler_pic_CXX='-pic'
12181 lt_prog_compiler_static_CXX='-Bstatic'
12185 lt_prog_compiler_pic_CXX='-pic'
12192 case $cc_basename in
12194 # NonStop-UX NCC 3.20
12195 lt_prog_compiler_pic_CXX='-KPIC'
12201 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12202 case $cc_basename in
12204 lt_prog_compiler_wl_CXX='-Wl,'
12205 lt_prog_compiler_pic_CXX='-KPIC'
12206 lt_prog_compiler_static_CXX='-Bstatic'
12213 lt_prog_compiler_can_build_shared_CXX=no
12218 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12219 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12222 # Check to make sure the PIC flag actually works.
12224 if test -n "$lt_prog_compiler_pic_CXX"; then
12226 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12227 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12228 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12231 lt_prog_compiler_pic_works_CXX=no
12232 ac_outfile=conftest.$ac_objext
12233 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12234 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12235 # Insert the option either (1) after the last *FLAGS variable, or
12236 # (2) before a word containing "conftest.", or (3) at the end.
12237 # Note that $ac_compile itself does not contain backslashes and begins
12238 # with a dollar sign (not a hyphen), so the echo should work correctly.
12239 # The option is referenced via a variable to avoid confusing sed.
12240 lt_compile=`echo "$ac_compile" | $SED \
12241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12243 -e 's:$: $lt_compiler_flag:'`
12244 (eval echo "\"\$as_me:12245: $lt_compile\"" >&5)
12245 (eval "$lt_compile" 2>conftest.err)
12247 cat conftest.err >&5
12248 echo "$as_me:12249: \$? = $ac_status" >&5
12249 if (exit $ac_status) && test -s "$ac_outfile"; then
12250 # The compiler can only warn and ignore the option if not recognized
12251 # So say no if there are warnings other than the usual output.
12252 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12254 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12255 lt_prog_compiler_pic_works_CXX=yes
12261 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12262 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12264 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12265 case $lt_prog_compiler_pic_CXX in
12267 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12270 lt_prog_compiler_pic_CXX=
12271 lt_prog_compiler_can_build_shared_CXX=no
12276 # For platforms which do not support PIC, -DPIC is meaningless:
12278 lt_prog_compiler_pic_CXX=
12281 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12286 # Check to make sure the static flag actually works.
12288 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12289 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12290 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12291 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12292 echo $ECHO_N "(cached) $ECHO_C" >&6
12294 lt_prog_compiler_static_works_CXX=no
12295 save_LDFLAGS="$LDFLAGS"
12296 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12297 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12298 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12299 # The linker can only warn and ignore the option if not recognized
12300 # So say no if there are warnings
12301 if test -s conftest.err; then
12302 # Append any errors to the config.log.
12303 cat conftest.err 1>&5
12304 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12305 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12306 if diff conftest.exp conftest.er2 >/dev/null; then
12307 lt_prog_compiler_static_works_CXX=yes
12310 lt_prog_compiler_static_works_CXX=yes
12314 LDFLAGS="$save_LDFLAGS"
12317 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12318 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12320 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12323 lt_prog_compiler_static_CXX=
12327 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12328 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12329 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12330 echo $ECHO_N "(cached) $ECHO_C" >&6
12332 lt_cv_prog_compiler_c_o_CXX=no
12333 $rm -r conftest 2>/dev/null
12337 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12339 lt_compiler_flag="-o out/conftest2.$ac_objext"
12340 # Insert the option either (1) after the last *FLAGS variable, or
12341 # (2) before a word containing "conftest.", or (3) at the end.
12342 # Note that $ac_compile itself does not contain backslashes and begins
12343 # with a dollar sign (not a hyphen), so the echo should work correctly.
12344 lt_compile=`echo "$ac_compile" | $SED \
12345 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12347 -e 's:$: $lt_compiler_flag:'`
12348 (eval echo "\"\$as_me:12349: $lt_compile\"" >&5)
12349 (eval "$lt_compile" 2>out/conftest.err)
12351 cat out/conftest.err >&5
12352 echo "$as_me:12353: \$? = $ac_status" >&5
12353 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12355 # The compiler can only warn and ignore the option if not recognized
12356 # So say no if there are warnings
12357 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12358 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12359 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12360 lt_cv_prog_compiler_c_o_CXX=yes
12365 # SGI C++ compiler will create directory out/ii_files/ for
12366 # template instantiation
12367 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12368 $rm out/* && rmdir out
12374 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12375 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12378 hard_links="nottested"
12379 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12380 # do not overwrite the value of need_locks provided by the user
12381 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12382 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12385 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12387 ln conftest.a conftest.b 2>&5 || hard_links=no
12388 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12389 echo "$as_me:$LINENO: result: $hard_links" >&5
12390 echo "${ECHO_T}$hard_links" >&6
12391 if test "$hard_links" = no; then
12392 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12393 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12400 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12401 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12403 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12406 # If we're using GNU nm, then we don't want the "-C" option.
12407 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12408 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12409 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'
12411 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'
12415 export_symbols_cmds_CXX="$ltdll_cmds"
12418 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'
12421 link_all_deplibs_CXX=no
12424 link_all_deplibs_CXX=no
12427 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12431 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12432 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12433 test "$ld_shlibs_CXX" = no && can_build_shared=no
12436 # Do we need to explicitly link libc?
12438 case "x$archive_cmds_need_lc_CXX" in
12440 # Assume -lc should be added
12441 archive_cmds_need_lc_CXX=yes
12443 if test "$enable_shared" = yes && test "$GCC" = yes; then
12444 case $archive_cmds_CXX in
12446 # FIXME: we may have to deal with multi-command sequences.
12449 # Test whether the compiler implicitly links with -lc since on some
12450 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12451 # to ld, don't add -lc before -lgcc.
12452 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12453 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12455 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12458 (eval $ac_compile) 2>&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } 2>conftest.err; then
12464 libobjs=conftest.$ac_objext
12466 wl=$lt_prog_compiler_wl_CXX
12467 pic_flag=$lt_prog_compiler_pic_CXX
12473 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12474 allow_undefined_flag_CXX=
12475 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12476 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }
12481 archive_cmds_need_lc_CXX=no
12483 archive_cmds_need_lc_CXX=yes
12485 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12487 cat conftest.err 1>&5
12490 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12491 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12498 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12499 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12500 library_names_spec=
12501 libname_spec='lib$name'
12505 postuninstall_cmds=
12509 shlibpath_overrides_runpath=unknown
12511 dynamic_linker="$host_os ld.so"
12512 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12513 if test "$GCC" = yes; then
12514 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12515 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12516 # if the path contains ";" then we assume it to be the separator
12517 # otherwise default to the standard path separator (i.e. ":") - it is
12518 # assumed that no part of a normal pathname contains ";" but that should
12519 # okay in the real world where ";" in dirpaths is itself problematic.
12520 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12522 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12525 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12527 need_lib_prefix=unknown
12528 hardcode_into_libs=no
12530 # when you set need_version to no, make sure it does not cause -set_version
12531 # flags to be left without arguments
12532 need_version=unknown
12537 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12538 shlibpath_var=LIBPATH
12540 # AIX 3 has no versioning support, so we append a major version to the name.
12541 soname_spec='${libname}${release}${shared_ext}$major'
12548 hardcode_into_libs=yes
12549 if test "$host_cpu" = ia64; then
12550 # AIX 5 supports IA64
12551 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12552 shlibpath_var=LD_LIBRARY_PATH
12554 # With GCC up to 2.95.x, collect2 would create an import file
12555 # for dependence libraries. The import file would start with
12556 # the line `#! .'. This would cause the generated library to
12557 # depend on `.', always an invalid library. This was fixed in
12558 # development snapshots of GCC prior to 3.0.
12560 aix4 | aix4.[01] | aix4.[01].*)
12561 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12563 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12566 can_build_shared=no
12570 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12571 # soname into executable. Probably we can add versioning support to
12572 # collect2, so additional links can be useful in future.
12573 if test "$aix_use_runtimelinking" = yes; then
12574 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12575 # instead of lib<name>.a to let people know that these are not
12576 # typical AIX shared libraries.
12577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12579 # We preserve .a as extension for shared libraries through AIX4.2
12580 # and later when we are not doing run time linking.
12581 library_names_spec='${libname}${release}.a $libname.a'
12582 soname_spec='${libname}${release}${shared_ext}$major'
12584 shlibpath_var=LIBPATH
12589 library_names_spec='$libname.ixlibrary $libname.a'
12590 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12591 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'
12595 library_names_spec='${libname}${shared_ext}'
12596 dynamic_linker="$host_os ld.so"
12597 shlibpath_var=LIBRARY_PATH
12603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12604 soname_spec='${libname}${release}${shared_ext}$major'
12605 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12606 shlibpath_var=LD_LIBRARY_PATH
12607 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12608 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12609 # the default ld.so.conf also contains /usr/contrib/lib and
12610 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12611 # libtool to hard-code these into programs
12614 cygwin* | mingw* | pw32*)
12615 version_type=windows
12620 case $GCC,$host_os in
12621 yes,cygwin* | yes,mingw* | yes,pw32*)
12622 library_names_spec='$libname.dll.a'
12623 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12624 postinstall_cmds='base_file=`basename \${file}`~
12625 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12626 dldir=$destdir/`dirname \$dlpath`~
12627 test -d \$dldir || mkdir -p \$dldir~
12628 $install_prog $dir/$dlname \$dldir/$dlname~
12629 chmod a+x \$dldir/$dlname'
12630 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12631 dlpath=$dir/\$dldll~
12633 shlibpath_overrides_runpath=yes
12637 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12638 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12639 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12642 # MinGW DLLs use traditional 'lib' prefix
12643 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12644 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12645 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12646 # It is most probably a Windows format PATH printed by
12647 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12648 # path with ; separators, and with drive letters. We can handle the
12649 # drive letters (cygwin fileutils understands them), so leave them,
12650 # especially as we might pass files found there to a mingw objdump,
12651 # which wouldn't understand a cygwinified path. Ahh.
12652 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12658 # pw32 DLLs use 'pw' prefix rather than 'lib'
12659 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12665 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12668 dynamic_linker='Win32 ld.exe'
12669 # FIXME: first we should search . and the directory the executable is in
12673 darwin* | rhapsody*)
12674 dynamic_linker="$host_os dyld"
12675 version_type=darwin
12678 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12679 soname_spec='${libname}${release}${major}$shared_ext'
12680 shlibpath_overrides_runpath=yes
12681 shlibpath_var=DYLD_LIBRARY_PATH
12682 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12683 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12684 if test "$GCC" = yes; then
12685 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"`
12687 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12689 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12697 soname_spec='${libname}${release}${shared_ext}$major'
12698 shlibpath_var=LD_LIBRARY_PATH
12709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12710 soname_spec='${libname}${release}${shared_ext}$major'
12711 shlibpath_var=LD_LIBRARY_PATH
12712 shlibpath_overrides_runpath=no
12713 hardcode_into_libs=yes
12714 dynamic_linker='GNU ld.so'
12717 freebsd* | dragonfly*)
12718 # DragonFly does not have aout. When/if they implement a new
12719 # versioning mechanism, adjust this.
12720 if test -x /usr/bin/objformat; then
12721 objformat=`/usr/bin/objformat`
12724 freebsd[123]*) objformat=aout ;;
12725 *) objformat=elf ;;
12728 version_type=freebsd-$objformat
12729 case $version_type in
12731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12736 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12740 shlibpath_var=LD_LIBRARY_PATH
12743 shlibpath_overrides_runpath=yes
12745 freebsd3.[01]* | freebsdelf3.[01]*)
12746 shlibpath_overrides_runpath=yes
12747 hardcode_into_libs=yes
12749 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12750 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12751 shlibpath_overrides_runpath=no
12752 hardcode_into_libs=yes
12754 freebsd*) # from 4.6 on
12755 shlibpath_overrides_runpath=yes
12756 hardcode_into_libs=yes
12765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12766 soname_spec='${libname}${release}${shared_ext}$major'
12767 shlibpath_var=LD_LIBRARY_PATH
12768 hardcode_into_libs=yes
12771 hpux9* | hpux10* | hpux11*)
12772 # Give a soname corresponding to the major version so that dld.sl refuses to
12773 # link against other versions.
12780 hardcode_into_libs=yes
12781 dynamic_linker="$host_os dld.so"
12782 shlibpath_var=LD_LIBRARY_PATH
12783 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12785 soname_spec='${libname}${release}${shared_ext}$major'
12786 if test "X$HPUX_IA64_MODE" = X32; then
12787 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12789 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12795 hardcode_into_libs=yes
12796 dynamic_linker="$host_os dld.sl"
12797 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12798 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12800 soname_spec='${libname}${release}${shared_ext}$major'
12801 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12802 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12806 dynamic_linker="$host_os dld.sl"
12807 shlibpath_var=SHLIB_PATH
12808 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12810 soname_spec='${libname}${release}${shared_ext}$major'
12813 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12814 postinstall_cmds='chmod 555 $lib'
12821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12822 soname_spec='${libname}${release}${shared_ext}$major'
12823 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12824 shlibpath_var=LD_LIBRARY_PATH
12825 shlibpath_overrides_runpath=no
12826 hardcode_into_libs=yes
12829 irix5* | irix6* | nonstopux*)
12831 nonstopux*) version_type=nonstopux ;;
12833 if test "$lt_cv_prog_gnu_ld" = yes; then
12841 soname_spec='${libname}${release}${shared_ext}$major'
12842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12844 irix5* | nonstopux*)
12845 libsuff= shlibsuff=
12848 case $LD in # libtool.m4 will add one of these switches to LD
12849 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12850 libsuff= shlibsuff= libmagic=32-bit;;
12851 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12852 libsuff=32 shlibsuff=N32 libmagic=N32;;
12853 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12854 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12855 *) libsuff= shlibsuff= libmagic=never-match;;
12859 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12860 shlibpath_overrides_runpath=no
12861 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12862 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12863 hardcode_into_libs=yes
12866 # No shared lib support for Linux oldld, aout, or coff.
12867 linux*oldld* | linux*aout* | linux*coff*)
12871 # This must be Linux ELF.
12876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12877 soname_spec='${libname}${release}${shared_ext}$major'
12878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12879 shlibpath_var=LD_LIBRARY_PATH
12880 shlibpath_overrides_runpath=no
12881 # This implies no fast_install, which is unacceptable.
12882 # Some rework will be needed to allow for fast_install
12883 # before this can be enabled.
12884 hardcode_into_libs=yes
12886 # Append ld.so.conf contents to the search path
12887 if test -f /etc/ld.so.conf; then
12888 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12889 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12892 # We used to test for /lib/ld.so.1 and disable shared libraries on
12893 # powerpc, because MkLinux only supported shared libraries with the
12894 # GNU dynamic linker. Since this was broken with cross compilers,
12895 # most powerpc-linux boxes support dynamic linking these days and
12896 # people can always --disable-shared, the test was removed, and we
12897 # assume the GNU/Linux dynamic linker is in use.
12898 dynamic_linker='GNU/Linux ld.so'
12905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12906 soname_spec='${libname}${release}${shared_ext}$major'
12907 shlibpath_var=LD_LIBRARY_PATH
12908 shlibpath_overrides_runpath=no
12909 hardcode_into_libs=yes
12910 dynamic_linker='NetBSD ld.elf_so'
12917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12918 soname_spec='${libname}${release}${shared_ext}$major'
12919 shlibpath_var=LD_LIBRARY_PATH
12920 shlibpath_overrides_runpath=no
12921 hardcode_into_libs=yes
12922 dynamic_linker='GNU ld.so'
12929 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12932 dynamic_linker='NetBSD (a.out) ld.so'
12934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12935 soname_spec='${libname}${release}${shared_ext}$major'
12936 dynamic_linker='NetBSD ld.elf_so'
12938 shlibpath_var=LD_LIBRARY_PATH
12939 shlibpath_overrides_runpath=yes
12940 hardcode_into_libs=yes
12945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12946 shlibpath_var=LD_LIBRARY_PATH
12947 shlibpath_overrides_runpath=yes
12954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12955 soname_spec='${libname}${release}${shared_ext}$major'
12956 shlibpath_var=LD_LIBRARY_PATH
12957 shlibpath_overrides_runpath=yes
12962 sys_lib_dlsearch_path_spec="/usr/lib"
12964 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12966 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12967 *) need_version=no ;;
12969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12971 shlibpath_var=LD_LIBRARY_PATH
12972 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12974 openbsd2.[89] | openbsd2.[89].*)
12975 shlibpath_overrides_runpath=no
12978 shlibpath_overrides_runpath=yes
12982 shlibpath_overrides_runpath=yes
12987 libname_spec='$name'
12990 library_names_spec='$libname${shared_ext} $libname.a'
12991 dynamic_linker='OS/2 ld.exe'
12992 shlibpath_var=LIBPATH
12995 osf3* | osf4* | osf5*)
12999 soname_spec='${libname}${release}${shared_ext}$major'
13000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13001 shlibpath_var=LD_LIBRARY_PATH
13002 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13003 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13011 soname_spec='${libname}${release}${shared_ext}$major'
13012 shlibpath_var=LD_LIBRARY_PATH
13013 shlibpath_overrides_runpath=yes
13014 hardcode_into_libs=yes
13015 # ldd complains unless libraries are executable
13016 postinstall_cmds='chmod +x $lib'
13021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13022 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13023 shlibpath_var=LD_LIBRARY_PATH
13024 shlibpath_overrides_runpath=yes
13025 if test "$with_gnu_ld" = yes; then
13033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13034 soname_spec='${libname}${release}${shared_ext}$major'
13035 shlibpath_var=LD_LIBRARY_PATH
13036 case $host_vendor in
13038 shlibpath_overrides_runpath=no
13040 export_dynamic_flag_spec='${wl}-Blargedynsym'
13041 runpath_var=LD_RUN_PATH
13049 shlibpath_overrides_runpath=no
13050 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13056 if test -d /usr/nec ;then
13058 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13059 soname_spec='$libname${shared_ext}.$major'
13060 shlibpath_var=LD_LIBRARY_PATH
13064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13065 version_type=freebsd-elf
13068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13069 soname_spec='${libname}${release}${shared_ext}$major'
13070 shlibpath_var=LD_LIBRARY_PATH
13071 hardcode_into_libs=yes
13072 if test "$with_gnu_ld" = yes; then
13073 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13074 shlibpath_overrides_runpath=no
13076 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13077 shlibpath_overrides_runpath=yes
13080 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13084 sys_lib_dlsearch_path_spec='/usr/lib'
13089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13090 soname_spec='${libname}${release}${shared_ext}$major'
13091 shlibpath_var=LD_LIBRARY_PATH
13098 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13099 echo "${ECHO_T}$dynamic_linker" >&6
13100 test "$dynamic_linker" = no && can_build_shared=no
13102 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13103 if test "$GCC" = yes; then
13104 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13107 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13108 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13109 hardcode_action_CXX=
13110 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13111 test -n "$runpath_var_CXX" || \
13112 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13114 # We can hardcode non-existant directories.
13115 if test "$hardcode_direct_CXX" != no &&
13116 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13117 # have to relink, otherwise we might link with an installed library
13118 # when we should be linking with a yet-to-be-installed one
13119 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13120 test "$hardcode_minus_L_CXX" != no; then
13121 # Linking always hardcodes the temporary library directory.
13122 hardcode_action_CXX=relink
13124 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13125 hardcode_action_CXX=immediate
13128 # We cannot hardcode anything, or else we can only hardcode existing
13130 hardcode_action_CXX=unsupported
13132 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13133 echo "${ECHO_T}$hardcode_action_CXX" >&6
13135 if test "$hardcode_action_CXX" = relink; then
13136 # Fast installation is not supported
13137 enable_fast_install=no
13138 elif test "$shlibpath_overrides_runpath" = yes ||
13139 test "$enable_shared" = no; then
13140 # Fast installation is not necessary
13141 enable_fast_install=needless
13145 # The else clause should only fire when bootstrapping the
13146 # libtool distribution, otherwise you forgot to ship ltmain.sh
13147 # with your package, and you will get complaints that there are
13148 # no rules to generate ltmain.sh.
13149 if test -f "$ltmain"; then
13150 # See if we are running on zsh, and set the options which allow our commands through
13151 # without removal of \ escapes.
13152 if test -n "${ZSH_VERSION+set}" ; then
13153 setopt NO_GLOB_SUBST
13155 # Now quote all the things that may contain metacharacters while being
13156 # careful not to overquote the AC_SUBSTed values. We take copies of the
13157 # variables and quote the copies for generation of the libtool script.
13158 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13160 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13161 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13162 deplibs_check_method reload_flag reload_cmds need_locks \
13163 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13164 lt_cv_sys_global_symbol_to_c_name_address \
13165 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13166 old_postinstall_cmds old_postuninstall_cmds \
13170 lt_prog_compiler_wl_CXX \
13171 lt_prog_compiler_pic_CXX \
13172 lt_prog_compiler_static_CXX \
13173 lt_prog_compiler_no_builtin_flag_CXX \
13174 export_dynamic_flag_spec_CXX \
13175 thread_safe_flag_spec_CXX \
13176 whole_archive_flag_spec_CXX \
13177 enable_shared_with_static_runtimes_CXX \
13178 old_archive_cmds_CXX \
13179 old_archive_from_new_cmds_CXX \
13180 predep_objects_CXX \
13181 postdep_objects_CXX \
13184 compiler_lib_search_path_CXX \
13186 archive_expsym_cmds_CXX \
13187 postinstall_cmds_CXX \
13188 postuninstall_cmds_CXX \
13189 old_archive_from_expsyms_cmds_CXX \
13190 allow_undefined_flag_CXX \
13191 no_undefined_flag_CXX \
13192 export_symbols_cmds_CXX \
13193 hardcode_libdir_flag_spec_CXX \
13194 hardcode_libdir_flag_spec_ld_CXX \
13195 hardcode_libdir_separator_CXX \
13196 hardcode_automatic_CXX \
13198 module_expsym_cmds_CXX \
13199 lt_cv_prog_compiler_c_o_CXX \
13200 exclude_expsyms_CXX \
13201 include_expsyms_CXX; do
13204 old_archive_cmds_CXX | \
13205 old_archive_from_new_cmds_CXX | \
13206 archive_cmds_CXX | \
13207 archive_expsym_cmds_CXX | \
13208 module_cmds_CXX | \
13209 module_expsym_cmds_CXX | \
13210 old_archive_from_expsyms_cmds_CXX | \
13211 export_symbols_cmds_CXX | \
13212 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13213 postinstall_cmds | postuninstall_cmds | \
13214 old_postinstall_cmds | old_postuninstall_cmds | \
13215 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13216 # Double-quote double-evaled strings.
13217 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13220 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13226 *'\$0 --fallback-echo"')
13227 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13233 cat <<__EOF__ >> "$cfgfile"
13234 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13236 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13238 # Shell to use when invoking shell scripts.
13241 # Whether or not to build shared libraries.
13242 build_libtool_libs=$enable_shared
13244 # Whether or not to build static libraries.
13245 build_old_libs=$enable_static
13247 # Whether or not to add -lc for building shared libraries.
13248 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13250 # Whether or not to disallow shared libs when runtime libs are static
13251 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13253 # Whether or not to optimize for fast installation.
13254 fast_install=$enable_fast_install
13257 host_alias=$host_alias
13261 # The build system.
13262 build_alias=$build_alias
13266 # An echo program that does not interpret backslashes.
13271 AR_FLAGS=$lt_AR_FLAGS
13276 # LTCC compiler flags.
13277 LTCFLAGS=$lt_LTCFLAGS
13279 # A language-specific compiler.
13280 CC=$lt_compiler_CXX
13282 # Is the compiler the GNU C compiler?
13288 # The linker used to build libraries.
13291 # Whether we need hard or soft links.
13294 # A BSD-compatible nm program.
13297 # A symbol stripping program
13300 # Used to examine libraries when file_magic_cmd begins "file"
13301 MAGIC_CMD=$MAGIC_CMD
13303 # Used on cygwin: DLL creation program.
13306 # Used on cygwin: object dumper.
13309 # Used on cygwin: assembler.
13312 # The name of the directory that contains temporary libtool files.
13315 # How to create reloadable object files.
13316 reload_flag=$lt_reload_flag
13317 reload_cmds=$lt_reload_cmds
13319 # How to pass a linker flag through the compiler.
13320 wl=$lt_lt_prog_compiler_wl_CXX
13322 # Object file suffix (normally "o").
13323 objext="$ac_objext"
13325 # Old archive suffix (normally "a").
13328 # Shared library suffix (normally ".so").
13329 shrext_cmds='$shrext_cmds'
13331 # Executable file suffix (normally "").
13334 # Additional compiler flags for building library objects.
13335 pic_flag=$lt_lt_prog_compiler_pic_CXX
13338 # What is the maximum length of a command?
13339 max_cmd_len=$lt_cv_sys_max_cmd_len
13341 # Does compiler simultaneously support -c and -o options?
13342 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13344 # Must we lock files when doing compilation?
13345 need_locks=$lt_need_locks
13347 # Do we need the lib prefix for modules?
13348 need_lib_prefix=$need_lib_prefix
13350 # Do we need a version for libraries?
13351 need_version=$need_version
13353 # Whether dlopen is supported.
13354 dlopen_support=$enable_dlopen
13356 # Whether dlopen of programs is supported.
13357 dlopen_self=$enable_dlopen_self
13359 # Whether dlopen of statically linked programs is supported.
13360 dlopen_self_static=$enable_dlopen_self_static
13362 # Compiler flag to prevent dynamic linking.
13363 link_static_flag=$lt_lt_prog_compiler_static_CXX
13365 # Compiler flag to turn off builtin functions.
13366 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13368 # Compiler flag to allow reflexive dlopens.
13369 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13371 # Compiler flag to generate shared objects directly from archives.
13372 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13374 # Compiler flag to generate thread-safe objects.
13375 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13377 # Library versioning type.
13378 version_type=$version_type
13380 # Format of library name prefix.
13381 libname_spec=$lt_libname_spec
13383 # List of archive names. First name is the real one, the rest are links.
13384 # The last name is the one that the linker finds with -lNAME.
13385 library_names_spec=$lt_library_names_spec
13387 # The coded name of the library, if different from the real name.
13388 soname_spec=$lt_soname_spec
13390 # Commands used to build and install an old-style archive.
13392 old_archive_cmds=$lt_old_archive_cmds_CXX
13393 old_postinstall_cmds=$lt_old_postinstall_cmds
13394 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13396 # Create an old-style archive from a shared archive.
13397 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13399 # Create a temporary old-style archive to link instead of a shared archive.
13400 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13402 # Commands used to build and install a shared archive.
13403 archive_cmds=$lt_archive_cmds_CXX
13404 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13405 postinstall_cmds=$lt_postinstall_cmds
13406 postuninstall_cmds=$lt_postuninstall_cmds
13408 # Commands used to build a loadable module (assumed same as above if empty)
13409 module_cmds=$lt_module_cmds_CXX
13410 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13412 # Commands to strip libraries.
13413 old_striplib=$lt_old_striplib
13414 striplib=$lt_striplib
13416 # Dependencies to place before the objects being linked to create a
13418 predep_objects=$lt_predep_objects_CXX
13420 # Dependencies to place after the objects being linked to create a
13422 postdep_objects=$lt_postdep_objects_CXX
13424 # Dependencies to place before the objects being linked to create a
13426 predeps=$lt_predeps_CXX
13428 # Dependencies to place after the objects being linked to create a
13430 postdeps=$lt_postdeps_CXX
13432 # The library search path used internally by the compiler when linking
13433 # a shared library.
13434 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13436 # Method to check whether dependent libraries are shared objects.
13437 deplibs_check_method=$lt_deplibs_check_method
13439 # Command to use when deplibs_check_method == file_magic.
13440 file_magic_cmd=$lt_file_magic_cmd
13442 # Flag that allows shared libraries with undefined symbols to be built.
13443 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13445 # Flag that forces no undefined symbols.
13446 no_undefined_flag=$lt_no_undefined_flag_CXX
13448 # Commands used to finish a libtool library installation in a directory.
13449 finish_cmds=$lt_finish_cmds
13451 # Same as above, but a single script fragment to be evaled but not shown.
13452 finish_eval=$lt_finish_eval
13454 # Take the output of nm and produce a listing of raw symbols and C names.
13455 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13457 # Transform the output of nm in a proper C declaration
13458 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13460 # Transform the output of nm in a C name address pair
13461 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13463 # This is the shared library runtime path variable.
13464 runpath_var=$runpath_var
13466 # This is the shared library path variable.
13467 shlibpath_var=$shlibpath_var
13469 # Is shlibpath searched before the hard-coded library search path?
13470 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13472 # How to hardcode a shared library path into an executable.
13473 hardcode_action=$hardcode_action_CXX
13475 # Whether we should hardcode library paths into libraries.
13476 hardcode_into_libs=$hardcode_into_libs
13478 # Flag to hardcode \$libdir into a binary during linking.
13479 # This must work even if \$libdir does not exist.
13480 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13482 # If ld is used when linking, flag to hardcode \$libdir into
13483 # a binary during linking. This must work even if \$libdir does
13485 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13487 # Whether we need a single -rpath flag with a separated argument.
13488 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13490 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13491 # resulting binary.
13492 hardcode_direct=$hardcode_direct_CXX
13494 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13495 # resulting binary.
13496 hardcode_minus_L=$hardcode_minus_L_CXX
13498 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13499 # the resulting binary.
13500 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13502 # Set to yes if building a shared library automatically hardcodes DIR into the library
13503 # and all subsequent libraries and executables linked against it.
13504 hardcode_automatic=$hardcode_automatic_CXX
13506 # Variables whose values should be saved in libtool wrapper scripts and
13507 # restored at relink time.
13508 variables_saved_for_relink="$variables_saved_for_relink"
13510 # Whether libtool must link a program against all its dependency libraries.
13511 link_all_deplibs=$link_all_deplibs_CXX
13513 # Compile-time system search path for libraries
13514 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13516 # Run-time system search path for libraries
13517 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13519 # Fix the shell variable \$srcfile for the compiler.
13520 fix_srcfile_path="$fix_srcfile_path_CXX"
13522 # Set to yes if exported symbols are required.
13523 always_export_symbols=$always_export_symbols_CXX
13525 # The commands to list exported symbols.
13526 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13528 # The commands to extract the exported symbol list from a shared archive.
13529 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13531 # Symbols that should not be listed in the preloaded symbols.
13532 exclude_expsyms=$lt_exclude_expsyms_CXX
13534 # Symbols that must always be exported.
13535 include_expsyms=$lt_include_expsyms_CXX
13537 # ### END LIBTOOL TAG CONFIG: $tagname
13543 # If there is no Makefile yet, we rely on a make rule to execute
13544 # `config.status --recheck' to rerun these tests and create the
13545 # libtool script then.
13546 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13547 if test -f "$ltmain_in"; then
13548 test -f Makefile && make "$ltmain"
13554 ac_cpp='$CPP $CPPFLAGS'
13555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13563 with_gnu_ldcxx=$with_gnu_ld
13564 with_gnu_ld=$lt_save_with_gnu_ld
13565 lt_cv_path_LDCXX=$lt_cv_path_LD
13566 lt_cv_path_LD=$lt_save_path_LD
13567 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13568 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13576 if test -n "$F77" && test "X$F77" != "Xno"; then
13579 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13580 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13581 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13584 archive_cmds_need_lc_F77=no
13585 allow_undefined_flag_F77=
13586 always_export_symbols_F77=no
13587 archive_expsym_cmds_F77=
13588 export_dynamic_flag_spec_F77=
13589 hardcode_direct_F77=no
13590 hardcode_libdir_flag_spec_F77=
13591 hardcode_libdir_flag_spec_ld_F77=
13592 hardcode_libdir_separator_F77=
13593 hardcode_minus_L_F77=no
13594 hardcode_automatic_F77=no
13596 module_expsym_cmds_F77=
13597 link_all_deplibs_F77=unknown
13598 old_archive_cmds_F77=$old_archive_cmds
13599 no_undefined_flag_F77=
13600 whole_archive_flag_spec_F77=
13601 enable_shared_with_static_runtimes_F77=no
13603 # Source file extension for f77 test sources.
13606 # Object file extension for compiled f77 test sources.
13610 # Code to be used in simple compile tests
13611 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13613 # Code to be used in simple link tests
13614 lt_simple_link_test_code=" program t\n end\n"
13616 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13618 # If no C compiler was specified, use CC.
13621 # If no C compiler flags were specified, use CFLAGS.
13622 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13624 # Allow CC to be a program name with arguments.
13628 # save warnings/boilerplate of simple test code
13629 ac_outfile=conftest.$ac_objext
13630 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13631 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13632 _lt_compiler_boilerplate=`cat conftest.err`
13635 ac_outfile=conftest.$ac_objext
13636 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13637 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13638 _lt_linker_boilerplate=`cat conftest.err`
13642 # Allow CC to be a program name with arguments.
13647 for cc_temp in $compiler""; do
13649 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13650 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13655 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13658 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13659 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13660 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13661 echo "${ECHO_T}$can_build_shared" >&6
13663 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13664 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13665 test "$can_build_shared" = "no" && enable_shared=no
13667 # On AIX, shared libraries and static libraries use the same namespace, and
13668 # are all built from PIC.
13671 test "$enable_shared" = yes && enable_static=no
13672 if test -n "$RANLIB"; then
13673 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13674 postinstall_cmds='$RANLIB $lib'
13678 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13679 test "$enable_shared" = yes && enable_static=no
13683 echo "$as_me:$LINENO: result: $enable_shared" >&5
13684 echo "${ECHO_T}$enable_shared" >&6
13686 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13687 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13688 # Make sure either enable_shared or enable_static is yes.
13689 test "$enable_shared" = yes || enable_static=yes
13690 echo "$as_me:$LINENO: result: $enable_static" >&5
13691 echo "${ECHO_T}$enable_static" >&6
13696 lt_prog_compiler_wl_F77=
13697 lt_prog_compiler_pic_F77=
13698 lt_prog_compiler_static_F77=
13700 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13701 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13703 if test "$GCC" = yes; then
13704 lt_prog_compiler_wl_F77='-Wl,'
13705 lt_prog_compiler_static_F77='-static'
13709 # All AIX code is PIC.
13710 if test "$host_cpu" = ia64; then
13711 # AIX 5 now supports IA64 processor
13712 lt_prog_compiler_static_F77='-Bstatic'
13717 # FIXME: we need at least 68020 code to build shared libraries, but
13718 # adding the `-m68020' flag to GCC prevents building anything better,
13720 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13723 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13724 # PIC is the default for these OSes.
13727 mingw* | pw32* | os2*)
13728 # This hack is so that the source file can tell whether it is being
13729 # built for inclusion in a dll (and should export symbols for example).
13730 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13733 darwin* | rhapsody*)
13734 # PIC is the default on this platform
13735 # Common symbols not allowed in MH_DYLIB files
13736 lt_prog_compiler_pic_F77='-fno-common'
13740 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13741 # Instead, we relocate shared libraries at runtime.
13745 # Just because we use GCC doesn't mean we suddenly get shared libraries
13746 # on systems that don't support them.
13747 lt_prog_compiler_can_build_shared_F77=no
13752 if test -d /usr/nec; then
13753 lt_prog_compiler_pic_F77=-Kconform_pic
13758 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13759 # not for PA HP-UX.
13765 lt_prog_compiler_pic_F77='-fPIC'
13771 lt_prog_compiler_pic_F77='-fPIC'
13775 # PORTME Check for flag to pass linker flags through the system compiler.
13778 lt_prog_compiler_wl_F77='-Wl,'
13779 if test "$host_cpu" = ia64; then
13780 # AIX 5 now supports IA64 processor
13781 lt_prog_compiler_static_F77='-Bstatic'
13783 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13787 # PIC is the default on this platform
13788 # Common symbols not allowed in MH_DYLIB files
13789 case $cc_basename in
13791 lt_prog_compiler_pic_F77='-qnocommon'
13792 lt_prog_compiler_wl_F77='-Wl,'
13797 mingw* | pw32* | os2*)
13798 # This hack is so that the source file can tell whether it is being
13799 # built for inclusion in a dll (and should export symbols for example).
13800 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13803 hpux9* | hpux10* | hpux11*)
13804 lt_prog_compiler_wl_F77='-Wl,'
13805 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13806 # not for PA HP-UX.
13812 lt_prog_compiler_pic_F77='+Z'
13815 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13816 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13819 irix5* | irix6* | nonstopux*)
13820 lt_prog_compiler_wl_F77='-Wl,'
13821 # PIC (with -KPIC) is the default.
13822 lt_prog_compiler_static_F77='-non_shared'
13826 lt_prog_compiler_pic_F77='-KPIC'
13827 lt_prog_compiler_static_F77='-Bstatic'
13831 case $cc_basename in
13833 lt_prog_compiler_wl_F77='-Wl,'
13834 lt_prog_compiler_pic_F77='-KPIC'
13835 lt_prog_compiler_static_F77='-static'
13837 pgcc* | pgf77* | pgf90* | pgf95*)
13838 # Portland Group compilers (*not* the Pentium gcc compiler,
13839 # which looks to be a dead project)
13840 lt_prog_compiler_wl_F77='-Wl,'
13841 lt_prog_compiler_pic_F77='-fpic'
13842 lt_prog_compiler_static_F77='-Bstatic'
13845 lt_prog_compiler_wl_F77='-Wl,'
13846 # All Alpha code is PIC.
13847 lt_prog_compiler_static_F77='-non_shared'
13852 osf3* | osf4* | osf5*)
13853 lt_prog_compiler_wl_F77='-Wl,'
13854 # All OSF/1 code is PIC.
13855 lt_prog_compiler_static_F77='-non_shared'
13859 lt_prog_compiler_pic_F77='-KPIC'
13860 lt_prog_compiler_static_F77='-Bstatic'
13861 case $cc_basename in
13862 f77* | f90* | f95*)
13863 lt_prog_compiler_wl_F77='-Qoption ld ';;
13865 lt_prog_compiler_wl_F77='-Wl,';;
13870 lt_prog_compiler_wl_F77='-Qoption ld '
13871 lt_prog_compiler_pic_F77='-PIC'
13872 lt_prog_compiler_static_F77='-Bstatic'
13875 sysv4 | sysv4.2uw2* | sysv4.3*)
13876 lt_prog_compiler_wl_F77='-Wl,'
13877 lt_prog_compiler_pic_F77='-KPIC'
13878 lt_prog_compiler_static_F77='-Bstatic'
13882 if test -d /usr/nec ;then
13883 lt_prog_compiler_pic_F77='-Kconform_pic'
13884 lt_prog_compiler_static_F77='-Bstatic'
13888 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13889 lt_prog_compiler_wl_F77='-Wl,'
13890 lt_prog_compiler_pic_F77='-KPIC'
13891 lt_prog_compiler_static_F77='-Bstatic'
13895 lt_prog_compiler_wl_F77='-Wl,'
13896 lt_prog_compiler_can_build_shared_F77=no
13900 lt_prog_compiler_pic_F77='-pic'
13901 lt_prog_compiler_static_F77='-Bstatic'
13905 lt_prog_compiler_can_build_shared_F77=no
13910 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13911 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13914 # Check to make sure the PIC flag actually works.
13916 if test -n "$lt_prog_compiler_pic_F77"; then
13918 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13919 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13920 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13923 lt_prog_compiler_pic_works_F77=no
13924 ac_outfile=conftest.$ac_objext
13925 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13926 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13927 # Insert the option either (1) after the last *FLAGS variable, or
13928 # (2) before a word containing "conftest.", or (3) at the end.
13929 # Note that $ac_compile itself does not contain backslashes and begins
13930 # with a dollar sign (not a hyphen), so the echo should work correctly.
13931 # The option is referenced via a variable to avoid confusing sed.
13932 lt_compile=`echo "$ac_compile" | $SED \
13933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13935 -e 's:$: $lt_compiler_flag:'`
13936 (eval echo "\"\$as_me:13937: $lt_compile\"" >&5)
13937 (eval "$lt_compile" 2>conftest.err)
13939 cat conftest.err >&5
13940 echo "$as_me:13941: \$? = $ac_status" >&5
13941 if (exit $ac_status) && test -s "$ac_outfile"; then
13942 # The compiler can only warn and ignore the option if not recognized
13943 # So say no if there are warnings other than the usual output.
13944 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13946 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13947 lt_prog_compiler_pic_works_F77=yes
13953 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13954 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13956 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13957 case $lt_prog_compiler_pic_F77 in
13959 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13962 lt_prog_compiler_pic_F77=
13963 lt_prog_compiler_can_build_shared_F77=no
13968 # For platforms which do not support PIC, -DPIC is meaningless:
13970 lt_prog_compiler_pic_F77=
13973 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13978 # Check to make sure the static flag actually works.
13980 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13981 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13982 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13983 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13986 lt_prog_compiler_static_works_F77=no
13987 save_LDFLAGS="$LDFLAGS"
13988 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13989 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13990 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13991 # The linker can only warn and ignore the option if not recognized
13992 # So say no if there are warnings
13993 if test -s conftest.err; then
13994 # Append any errors to the config.log.
13995 cat conftest.err 1>&5
13996 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13997 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13998 if diff conftest.exp conftest.er2 >/dev/null; then
13999 lt_prog_compiler_static_works_F77=yes
14002 lt_prog_compiler_static_works_F77=yes
14006 LDFLAGS="$save_LDFLAGS"
14009 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14010 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14012 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14015 lt_prog_compiler_static_F77=
14019 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14020 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14021 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14022 echo $ECHO_N "(cached) $ECHO_C" >&6
14024 lt_cv_prog_compiler_c_o_F77=no
14025 $rm -r conftest 2>/dev/null
14029 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14031 lt_compiler_flag="-o out/conftest2.$ac_objext"
14032 # Insert the option either (1) after the last *FLAGS variable, or
14033 # (2) before a word containing "conftest.", or (3) at the end.
14034 # Note that $ac_compile itself does not contain backslashes and begins
14035 # with a dollar sign (not a hyphen), so the echo should work correctly.
14036 lt_compile=`echo "$ac_compile" | $SED \
14037 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14038 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14039 -e 's:$: $lt_compiler_flag:'`
14040 (eval echo "\"\$as_me:14041: $lt_compile\"" >&5)
14041 (eval "$lt_compile" 2>out/conftest.err)
14043 cat out/conftest.err >&5
14044 echo "$as_me:14045: \$? = $ac_status" >&5
14045 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14047 # The compiler can only warn and ignore the option if not recognized
14048 # So say no if there are warnings
14049 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14050 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14051 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14052 lt_cv_prog_compiler_c_o_F77=yes
14057 # SGI C++ compiler will create directory out/ii_files/ for
14058 # template instantiation
14059 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14060 $rm out/* && rmdir out
14066 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14067 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14070 hard_links="nottested"
14071 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14072 # do not overwrite the value of need_locks provided by the user
14073 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14074 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14077 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14079 ln conftest.a conftest.b 2>&5 || hard_links=no
14080 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14081 echo "$as_me:$LINENO: result: $hard_links" >&5
14082 echo "${ECHO_T}$hard_links" >&6
14083 if test "$hard_links" = no; then
14084 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14085 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14092 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14093 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14096 allow_undefined_flag_F77=
14097 enable_shared_with_static_runtimes_F77=no
14099 archive_expsym_cmds_F77=
14100 old_archive_From_new_cmds_F77=
14101 old_archive_from_expsyms_cmds_F77=
14102 export_dynamic_flag_spec_F77=
14103 whole_archive_flag_spec_F77=
14104 thread_safe_flag_spec_F77=
14105 hardcode_libdir_flag_spec_F77=
14106 hardcode_libdir_flag_spec_ld_F77=
14107 hardcode_libdir_separator_F77=
14108 hardcode_direct_F77=no
14109 hardcode_minus_L_F77=no
14110 hardcode_shlibpath_var_F77=unsupported
14111 link_all_deplibs_F77=unknown
14112 hardcode_automatic_F77=no
14114 module_expsym_cmds_F77=
14115 always_export_symbols_F77=no
14116 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14117 # include_expsyms should be a list of space-separated symbols to be *always*
14118 # included in the symbol list
14119 include_expsyms_F77=
14120 # exclude_expsyms can be an extended regexp of symbols to exclude
14121 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14122 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14123 # as well as any symbol that contains `d'.
14124 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14125 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14126 # platforms (ab)use it in PIC code, but their linkers get confused if
14127 # the symbol is explicitly referenced. Since portable code cannot
14128 # rely on this symbol name, it's probably fine to never include it in
14129 # preloaded symbol tables.
14130 extract_expsyms_cmds=
14131 # Just being paranoid about ensuring that cc_basename is set.
14132 for cc_temp in $compiler""; do
14134 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14135 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14140 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14143 cygwin* | mingw* | pw32*)
14144 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14145 # When not using gcc, we currently assume that we are using
14146 # Microsoft Visual C++.
14147 if test "$GCC" != yes; then
14152 # we just hope/assume this is gcc and not c89 (= MSVC++)
14161 if test "$with_gnu_ld" = yes; then
14162 # If archive_cmds runs LD, not CC, wlarc should be empty
14165 # Set some defaults for GNU ld with shared library support. These
14166 # are reset later if shared libraries are not supported. Putting them
14167 # here allows them to be overridden if necessary.
14168 runpath_var=LD_RUN_PATH
14169 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14170 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14171 # ancient GNU ld didn't support --whole-archive et. al.
14172 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14173 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14175 whole_archive_flag_spec_F77=
14177 supports_anon_versioning=no
14178 case `$LD -v 2>/dev/null` in
14179 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14180 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14181 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14182 *\ 2.11.*) ;; # other 2.11 versions
14183 *) supports_anon_versioning=yes ;;
14186 # See if GNU ld supports shared libraries.
14188 aix3* | aix4* | aix5*)
14189 # On AIX/PPC, the GNU linker is very broken
14190 if test "$host_cpu" != ia64; then
14194 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14195 *** to be unable to reliably create shared libraries on AIX.
14196 *** Therefore, libtool is disabling shared libraries support. If you
14197 *** really care for shared libraries, you may want to modify your PATH
14198 *** so that a non-GNU linker is found, and then restart.
14205 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)'
14206 hardcode_libdir_flag_spec_F77='-L$libdir'
14207 hardcode_minus_L_F77=yes
14209 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14210 # that the semantics of dynamic libraries on AmigaOS, at least up
14211 # to version 4, is to share data among multiple programs linked
14212 # with the same dynamic library. Since this doesn't match the
14213 # behavior of shared libraries on other platforms, we can't use
14219 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14220 allow_undefined_flag_F77=unsupported
14221 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14222 # support --undefined. This deserves some investigation. FIXME
14223 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14229 cygwin* | mingw* | pw32*)
14230 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14231 # as there is no search path for DLLs.
14232 hardcode_libdir_flag_spec_F77='-L$libdir'
14233 allow_undefined_flag_F77=unsupported
14234 always_export_symbols_F77=no
14235 enable_shared_with_static_runtimes_F77=yes
14236 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14238 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14239 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14240 # If the export-symbols file already is a .def file (1st line
14241 # is EXPORTS), use it as is; otherwise, prepend...
14242 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14243 cp $export_symbols $output_objdir/$soname.def;
14245 echo EXPORTS > $output_objdir/$soname.def;
14246 cat $export_symbols >> $output_objdir/$soname.def;
14248 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14255 hardcode_direct_F77=no
14256 hardcode_shlibpath_var_F77=no
14257 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14258 export_dynamic_flag_spec_F77='${wl}-E'
14259 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14260 # Instead, shared libraries are loaded at an image base (0x10000000 by
14261 # default) and relocated if they conflict, which is a slow very memory
14262 # consuming and fragmenting process. To avoid this, we pick a random,
14263 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14264 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14265 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'
14266 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'
14270 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14272 case $cc_basename,$host_cpu in
14273 pgcc*) # Portland Group C compiler
14274 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'
14275 tmp_addflag=' $pic_flag'
14277 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14278 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'
14279 tmp_addflag=' $pic_flag -Mnomain' ;;
14280 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14281 tmp_addflag=' -i_dynamic' ;;
14282 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14283 tmp_addflag=' -i_dynamic -nofor_main' ;;
14284 ifc* | ifort*) # Intel Fortran compiler
14285 tmp_addflag=' -nofor_main' ;;
14287 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14289 if test $supports_anon_versioning = yes; then
14290 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14291 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14292 $echo "local: *; };" >> $output_objdir/$libname.ver~
14293 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14295 link_all_deplibs_F77=no
14301 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14302 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14303 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14306 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14307 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14312 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14316 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14317 *** create shared libraries on Solaris systems. Therefore, libtool
14318 *** is disabling shared libraries support. We urge you to upgrade GNU
14319 *** binutils to release 2.9.1 or newer. Another option is to modify
14320 *** your PATH or compiler configuration so that the native linker is
14321 *** used, and then restart.
14324 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14325 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14326 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14332 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14333 case `$LD -v 2>&1` in
14334 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14338 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14339 *** reliably create shared libraries on SCO systems. Therefore, libtool
14340 *** is disabling shared libraries support. We urge you to upgrade GNU
14341 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14342 *** your PATH or compiler configuration so that the native linker is
14343 *** used, and then restart.
14348 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14349 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14350 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14351 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14360 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14362 hardcode_direct_F77=yes
14363 hardcode_shlibpath_var_F77=no
14367 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14368 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14369 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14376 if test "$ld_shlibs_F77" = no; then
14378 hardcode_libdir_flag_spec_F77=
14379 export_dynamic_flag_spec_F77=
14380 whole_archive_flag_spec_F77=
14383 # PORTME fill in a description of your system's linker (not GNU ld)
14386 allow_undefined_flag_F77=unsupported
14387 always_export_symbols_F77=yes
14388 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'
14389 # Note: this linker hardcodes the directories in LIBPATH if there
14390 # are no directories specified by -L.
14391 hardcode_minus_L_F77=yes
14392 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14393 # Neither direct hardcoding nor static linking is supported with a
14395 hardcode_direct_F77=unsupported
14400 if test "$host_cpu" = ia64; then
14401 # On IA64, the linker does run time linking by default, so we don't
14402 # have to do anything special.
14403 aix_use_runtimelinking=no
14404 exp_sym_flag='-Bexport'
14407 # If we're using GNU nm, then we don't want the "-C" option.
14408 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14409 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14410 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'
14412 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'
14414 aix_use_runtimelinking=no
14416 # Test if we are trying to use run time linking or normal
14417 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14418 # need to do runtime linking.
14419 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14420 for ld_flag in $LDFLAGS; do
14421 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14422 aix_use_runtimelinking=yes
14429 exp_sym_flag='-bexport'
14430 no_entry_flag='-bnoentry'
14433 # When large executables or shared objects are built, AIX ld can
14434 # have problems creating the table of contents. If linking a library
14435 # or program results in "error TOC overflow" add -mminimal-toc to
14436 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14437 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14439 archive_cmds_F77=''
14440 hardcode_direct_F77=yes
14441 hardcode_libdir_separator_F77=':'
14442 link_all_deplibs_F77=yes
14444 if test "$GCC" = yes; then
14445 case $host_os in aix4.[012]|aix4.[012].*)
14446 # We only want to do this on AIX 4.2 and lower, the check
14447 # below for broken collect2 doesn't work under 4.3+
14448 collect2name=`${CC} -print-prog-name=collect2`
14449 if test -f "$collect2name" && \
14450 strings "$collect2name" | grep resolve_lib_name >/dev/null
14452 # We have reworked collect2
14453 hardcode_direct_F77=yes
14455 # We have old collect2
14456 hardcode_direct_F77=unsupported
14457 # It fails to find uninstalled libraries when the uninstalled
14458 # path is not listed in the libpath. Setting hardcode_minus_L
14459 # to unsupported forces relinking
14460 hardcode_minus_L_F77=yes
14461 hardcode_libdir_flag_spec_F77='-L$libdir'
14462 hardcode_libdir_separator_F77=
14466 shared_flag='-shared'
14467 if test "$aix_use_runtimelinking" = yes; then
14468 shared_flag="$shared_flag "'${wl}-G'
14472 if test "$host_cpu" = ia64; then
14473 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14474 # chokes on -Wl,-G. The following line is correct:
14477 if test "$aix_use_runtimelinking" = yes; then
14478 shared_flag='${wl}-G'
14480 shared_flag='${wl}-bM:SRE'
14485 # It seems that -bexpall does not export symbols beginning with
14486 # underscore (_), so it is better to generate a list of symbols to export.
14487 always_export_symbols_F77=yes
14488 if test "$aix_use_runtimelinking" = yes; then
14489 # Warning - without using the other runtime loading flags (-brtl),
14490 # -berok will link without error, but may produce a broken library.
14491 allow_undefined_flag_F77='-berok'
14492 # Determine the default libpath from the value encoded in an empty executable.
14493 cat >conftest.$ac_ext <<_ACEOF
14498 rm -f conftest.$ac_objext conftest$ac_exeext
14499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14500 (eval $ac_link) 2>conftest.er1
14502 grep -v '^ *+' conftest.er1 >conftest.err
14504 cat conftest.err >&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); } &&
14507 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; } &&
14513 { ac_try='test -s conftest$ac_exeext'
14514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515 (eval $ac_try) 2>&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; }; then
14520 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14522 # Check for a 64-bit object if we didn't find anything.
14523 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; }
14526 echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14530 rm -f conftest.err conftest.$ac_objext \
14531 conftest$ac_exeext conftest.$ac_ext
14532 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14534 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14535 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"
14537 if test "$host_cpu" = ia64; then
14538 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14539 allow_undefined_flag_F77="-z nodefs"
14540 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"
14542 # Determine the default libpath from the value encoded in an empty executable.
14543 cat >conftest.$ac_ext <<_ACEOF
14548 rm -f conftest.$ac_objext conftest$ac_exeext
14549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14550 (eval $ac_link) 2>conftest.er1
14552 grep -v '^ *+' conftest.er1 >conftest.err
14554 cat conftest.err >&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); } &&
14557 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; } &&
14563 { ac_try='test -s conftest$ac_exeext'
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; }; then
14570 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14572 # Check for a 64-bit object if we didn't find anything.
14573 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; }
14576 echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14580 rm -f conftest.err conftest.$ac_objext \
14581 conftest$ac_exeext conftest.$ac_ext
14582 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14584 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14585 # Warning - without using the other run time loading flags,
14586 # -berok will link without error, but may produce a broken library.
14587 no_undefined_flag_F77=' ${wl}-bernotok'
14588 allow_undefined_flag_F77=' ${wl}-berok'
14589 # Exported symbols can be pulled into shared objects from archives
14590 whole_archive_flag_spec_F77='$convenience'
14591 archive_cmds_need_lc_F77=yes
14592 # This is similar to how AIX traditionally builds its shared libraries.
14593 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'
14599 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)'
14600 hardcode_libdir_flag_spec_F77='-L$libdir'
14601 hardcode_minus_L_F77=yes
14602 # see comment about different semantics on the GNU ld section
14607 export_dynamic_flag_spec_F77=-rdynamic
14610 cygwin* | mingw* | pw32*)
14611 # When not using gcc, we currently assume that we are using
14612 # Microsoft Visual C++.
14613 # hardcode_libdir_flag_spec is actually meaningless, as there is
14614 # no search path for DLLs.
14615 hardcode_libdir_flag_spec_F77=' '
14616 allow_undefined_flag_F77=unsupported
14617 # Tell ltmain to make .lib files, not .a files.
14619 # Tell ltmain to make .dll files, not .so files.
14621 # FIXME: Setting linknames here is a bad hack.
14622 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14623 # The linker will automatically build a .lib file if we build a DLL.
14624 old_archive_From_new_cmds_F77='true'
14625 # FIXME: Should let the user specify the lib program.
14626 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14627 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14628 enable_shared_with_static_runtimes_F77=yes
14631 darwin* | rhapsody*)
14633 rhapsody* | darwin1.[012])
14634 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14637 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14638 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14640 case ${MACOSX_DEPLOYMENT_TARGET} in
14642 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14645 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14651 archive_cmds_need_lc_F77=no
14652 hardcode_direct_F77=no
14653 hardcode_automatic_F77=yes
14654 hardcode_shlibpath_var_F77=unsupported
14655 whole_archive_flag_spec_F77=''
14656 link_all_deplibs_F77=yes
14657 if test "$GCC" = yes ; then
14658 output_verbose_link_cmd='echo'
14659 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14660 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14661 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14662 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}'
14663 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}'
14665 case $cc_basename in
14667 output_verbose_link_cmd='echo'
14668 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14669 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14670 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14671 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}'
14672 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}'
14682 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14683 hardcode_libdir_flag_spec_F77='-L$libdir'
14684 hardcode_shlibpath_var_F77=no
14691 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14692 # support. Future versions do this automatically, but an explicit c++rt0.o
14693 # does not break anything, and helps significantly (at the cost of a little
14696 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14697 hardcode_libdir_flag_spec_F77='-R$libdir'
14698 hardcode_direct_F77=yes
14699 hardcode_shlibpath_var_F77=no
14702 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14704 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14705 hardcode_direct_F77=yes
14706 hardcode_minus_L_F77=yes
14707 hardcode_shlibpath_var_F77=no
14710 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14711 freebsd* | dragonfly*)
14712 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14713 hardcode_libdir_flag_spec_F77='-R$libdir'
14714 hardcode_direct_F77=yes
14715 hardcode_shlibpath_var_F77=no
14718 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
14720 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14721 hardcode_libdir_flag_spec_F77='-R$libdir'
14722 hardcode_direct_F77=yes
14723 hardcode_shlibpath_var_F77=no
14724 link_all_deplibs_F77=no
14728 if test "$GCC" = yes; then
14729 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'
14731 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'
14733 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14734 hardcode_libdir_separator_F77=:
14735 hardcode_direct_F77=yes
14737 # hardcode_minus_L: Not really in the search PATH,
14738 # but as the default location of the library.
14739 hardcode_minus_L_F77=yes
14740 export_dynamic_flag_spec_F77='${wl}-E'
14744 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14745 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14747 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14749 if test "$with_gnu_ld" = no; then
14750 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14751 hardcode_libdir_separator_F77=:
14753 hardcode_direct_F77=yes
14754 export_dynamic_flag_spec_F77='${wl}-E'
14756 # hardcode_minus_L: Not really in the search PATH,
14757 # but as the default location of the library.
14758 hardcode_minus_L_F77=yes
14763 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14766 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14769 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14772 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14778 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14781 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14784 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14788 if test "$with_gnu_ld" = no; then
14789 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14790 hardcode_libdir_separator_F77=:
14794 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14795 hardcode_direct_F77=no
14796 hardcode_shlibpath_var_F77=no
14799 hardcode_direct_F77=yes
14800 export_dynamic_flag_spec_F77='${wl}-E'
14802 # hardcode_minus_L: Not really in the search PATH,
14803 # but as the default location of the library.
14804 hardcode_minus_L_F77=yes
14810 irix5* | irix6* | nonstopux*)
14811 if test "$GCC" = yes; then
14812 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'
14814 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'
14815 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14817 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14818 hardcode_libdir_separator_F77=:
14819 link_all_deplibs_F77=yes
14822 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14823 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14824 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14826 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14828 hardcode_libdir_flag_spec_F77='-R$libdir'
14829 hardcode_direct_F77=yes
14830 hardcode_shlibpath_var_F77=no
14834 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14835 hardcode_direct_F77=yes
14836 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14837 hardcode_libdir_separator_F77=:
14838 hardcode_shlibpath_var_F77=no
14842 hardcode_direct_F77=yes
14843 hardcode_shlibpath_var_F77=no
14844 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14845 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14846 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14847 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14848 export_dynamic_flag_spec_F77='${wl}-E'
14851 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14852 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14853 hardcode_libdir_flag_spec_F77='-R$libdir'
14856 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14857 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14864 hardcode_libdir_flag_spec_F77='-L$libdir'
14865 hardcode_minus_L_F77=yes
14866 allow_undefined_flag_F77=unsupported
14867 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'
14868 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14872 if test "$GCC" = yes; then
14873 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14874 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'
14876 allow_undefined_flag_F77=' -expect_unresolved \*'
14877 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'
14879 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14880 hardcode_libdir_separator_F77=:
14883 osf4* | osf5*) # as osf3* with the addition of -msym flag
14884 if test "$GCC" = yes; then
14885 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14886 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'
14887 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14889 allow_undefined_flag_F77=' -expect_unresolved \*'
14890 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'
14891 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~
14892 $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'
14894 # Both c and cxx compiler support -rpath directly
14895 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14897 hardcode_libdir_separator_F77=:
14901 no_undefined_flag_F77=' -z text'
14902 if test "$GCC" = yes; then
14904 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14905 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14906 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14909 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14910 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14911 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14913 hardcode_libdir_flag_spec_F77='-R$libdir'
14914 hardcode_shlibpath_var_F77=no
14916 solaris2.[0-5] | solaris2.[0-5].*) ;;
14918 # The compiler driver will combine linker options so we
14919 # cannot just pass the convience library names through
14920 # without $wl, iff we do not link with $LD.
14921 # Luckily, gcc supports the same syntax we need for Sun Studio.
14922 # Supported since Solaris 2.6 (maybe 2.5.1?)
14925 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14927 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' ;;
14930 link_all_deplibs_F77=yes
14934 if test "x$host_vendor" = xsequent; then
14935 # Use $CC to link under sequent, because it throws in some extra .o
14936 # files that make .init and .fini sections work.
14937 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14939 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14941 hardcode_libdir_flag_spec_F77='-L$libdir'
14942 hardcode_direct_F77=yes
14943 hardcode_minus_L_F77=yes
14944 hardcode_shlibpath_var_F77=no
14948 case $host_vendor in
14950 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14951 hardcode_direct_F77=yes # is this really true???
14954 ## LD is ld it makes a PLAMLIB
14955 ## CC just makes a GrossModule.
14956 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14957 reload_cmds_F77='$CC -r -o $output$reload_objs'
14958 hardcode_direct_F77=no
14961 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14962 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14965 runpath_var='LD_RUN_PATH'
14966 hardcode_shlibpath_var_F77=no
14970 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14971 hardcode_shlibpath_var_F77=no
14972 export_dynamic_flag_spec_F77='-Bexport'
14976 if test -d /usr/nec; then
14977 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14978 hardcode_shlibpath_var_F77=no
14979 runpath_var=LD_RUN_PATH
14980 hardcode_runpath_var=yes
14985 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14986 no_undefined_flag_F77='${wl}-z,text'
14987 archive_cmds_need_lc_F77=no
14988 hardcode_shlibpath_var_F77=no
14989 runpath_var='LD_RUN_PATH'
14991 if test "$GCC" = yes; then
14992 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14993 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14995 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14996 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15000 sysv5* | sco3.2v5* | sco5v6*)
15001 # Note: We can NOT use -z defs as we might desire, because we do not
15002 # link with -lc, and that would cause any symbols used from libc to
15003 # always be unresolved, which means just about no library would
15004 # ever link correctly. If we're not using GNU ld we use -z text
15005 # though, which does catch some bad symbols but isn't as heavy-handed
15007 no_undefined_flag_F77='${wl}-z,text'
15008 allow_undefined_flag_F77='${wl}-z,nodefs'
15009 archive_cmds_need_lc_F77=no
15010 hardcode_shlibpath_var_F77=no
15011 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15012 hardcode_libdir_separator_F77=':'
15013 link_all_deplibs_F77=yes
15014 export_dynamic_flag_spec_F77='${wl}-Bexport'
15015 runpath_var='LD_RUN_PATH'
15017 if test "$GCC" = yes; then
15018 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15019 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15021 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15022 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15027 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15028 hardcode_libdir_flag_spec_F77='-L$libdir'
15029 hardcode_shlibpath_var_F77=no
15038 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15039 echo "${ECHO_T}$ld_shlibs_F77" >&6
15040 test "$ld_shlibs_F77" = no && can_build_shared=no
15043 # Do we need to explicitly link libc?
15045 case "x$archive_cmds_need_lc_F77" in
15047 # Assume -lc should be added
15048 archive_cmds_need_lc_F77=yes
15050 if test "$enable_shared" = yes && test "$GCC" = yes; then
15051 case $archive_cmds_F77 in
15053 # FIXME: we may have to deal with multi-command sequences.
15056 # Test whether the compiler implicitly links with -lc since on some
15057 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15058 # to ld, don't add -lc before -lgcc.
15059 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15060 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15062 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15065 (eval $ac_compile) 2>&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } 2>conftest.err; then
15071 libobjs=conftest.$ac_objext
15073 wl=$lt_prog_compiler_wl_F77
15074 pic_flag=$lt_prog_compiler_pic_F77
15080 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15081 allow_undefined_flag_F77=
15082 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15083 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }
15088 archive_cmds_need_lc_F77=no
15090 archive_cmds_need_lc_F77=yes
15092 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15094 cat conftest.err 1>&5
15097 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15098 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15105 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15106 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15107 library_names_spec=
15108 libname_spec='lib$name'
15112 postuninstall_cmds=
15116 shlibpath_overrides_runpath=unknown
15118 dynamic_linker="$host_os ld.so"
15119 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15120 if test "$GCC" = yes; then
15121 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15122 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15123 # if the path contains ";" then we assume it to be the separator
15124 # otherwise default to the standard path separator (i.e. ":") - it is
15125 # assumed that no part of a normal pathname contains ";" but that should
15126 # okay in the real world where ";" in dirpaths is itself problematic.
15127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15132 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15134 need_lib_prefix=unknown
15135 hardcode_into_libs=no
15137 # when you set need_version to no, make sure it does not cause -set_version
15138 # flags to be left without arguments
15139 need_version=unknown
15144 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15145 shlibpath_var=LIBPATH
15147 # AIX 3 has no versioning support, so we append a major version to the name.
15148 soname_spec='${libname}${release}${shared_ext}$major'
15155 hardcode_into_libs=yes
15156 if test "$host_cpu" = ia64; then
15157 # AIX 5 supports IA64
15158 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15159 shlibpath_var=LD_LIBRARY_PATH
15161 # With GCC up to 2.95.x, collect2 would create an import file
15162 # for dependence libraries. The import file would start with
15163 # the line `#! .'. This would cause the generated library to
15164 # depend on `.', always an invalid library. This was fixed in
15165 # development snapshots of GCC prior to 3.0.
15167 aix4 | aix4.[01] | aix4.[01].*)
15168 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15170 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15173 can_build_shared=no
15177 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15178 # soname into executable. Probably we can add versioning support to
15179 # collect2, so additional links can be useful in future.
15180 if test "$aix_use_runtimelinking" = yes; then
15181 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15182 # instead of lib<name>.a to let people know that these are not
15183 # typical AIX shared libraries.
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15186 # We preserve .a as extension for shared libraries through AIX4.2
15187 # and later when we are not doing run time linking.
15188 library_names_spec='${libname}${release}.a $libname.a'
15189 soname_spec='${libname}${release}${shared_ext}$major'
15191 shlibpath_var=LIBPATH
15196 library_names_spec='$libname.ixlibrary $libname.a'
15197 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15198 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'
15202 library_names_spec='${libname}${shared_ext}'
15203 dynamic_linker="$host_os ld.so"
15204 shlibpath_var=LIBRARY_PATH
15210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211 soname_spec='${libname}${release}${shared_ext}$major'
15212 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15213 shlibpath_var=LD_LIBRARY_PATH
15214 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15215 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15216 # the default ld.so.conf also contains /usr/contrib/lib and
15217 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15218 # libtool to hard-code these into programs
15221 cygwin* | mingw* | pw32*)
15222 version_type=windows
15227 case $GCC,$host_os in
15228 yes,cygwin* | yes,mingw* | yes,pw32*)
15229 library_names_spec='$libname.dll.a'
15230 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15231 postinstall_cmds='base_file=`basename \${file}`~
15232 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15233 dldir=$destdir/`dirname \$dlpath`~
15234 test -d \$dldir || mkdir -p \$dldir~
15235 $install_prog $dir/$dlname \$dldir/$dlname~
15236 chmod a+x \$dldir/$dlname'
15237 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15238 dlpath=$dir/\$dldll~
15240 shlibpath_overrides_runpath=yes
15244 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15245 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15246 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15249 # MinGW DLLs use traditional 'lib' prefix
15250 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15251 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15252 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15253 # It is most probably a Windows format PATH printed by
15254 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15255 # path with ; separators, and with drive letters. We can handle the
15256 # drive letters (cygwin fileutils understands them), so leave them,
15257 # especially as we might pass files found there to a mingw objdump,
15258 # which wouldn't understand a cygwinified path. Ahh.
15259 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15261 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15265 # pw32 DLLs use 'pw' prefix rather than 'lib'
15266 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15272 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15275 dynamic_linker='Win32 ld.exe'
15276 # FIXME: first we should search . and the directory the executable is in
15280 darwin* | rhapsody*)
15281 dynamic_linker="$host_os dyld"
15282 version_type=darwin
15285 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15286 soname_spec='${libname}${release}${major}$shared_ext'
15287 shlibpath_overrides_runpath=yes
15288 shlibpath_var=DYLD_LIBRARY_PATH
15289 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15290 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15291 if test "$GCC" = yes; then
15292 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"`
15294 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15296 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15304 soname_spec='${libname}${release}${shared_ext}$major'
15305 shlibpath_var=LD_LIBRARY_PATH
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15317 soname_spec='${libname}${release}${shared_ext}$major'
15318 shlibpath_var=LD_LIBRARY_PATH
15319 shlibpath_overrides_runpath=no
15320 hardcode_into_libs=yes
15321 dynamic_linker='GNU ld.so'
15324 freebsd* | dragonfly*)
15325 # DragonFly does not have aout. When/if they implement a new
15326 # versioning mechanism, adjust this.
15327 if test -x /usr/bin/objformat; then
15328 objformat=`/usr/bin/objformat`
15331 freebsd[123]*) objformat=aout ;;
15332 *) objformat=elf ;;
15335 version_type=freebsd-$objformat
15336 case $version_type in
15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15343 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15347 shlibpath_var=LD_LIBRARY_PATH
15350 shlibpath_overrides_runpath=yes
15352 freebsd3.[01]* | freebsdelf3.[01]*)
15353 shlibpath_overrides_runpath=yes
15354 hardcode_into_libs=yes
15356 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15357 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15358 shlibpath_overrides_runpath=no
15359 hardcode_into_libs=yes
15361 freebsd*) # from 4.6 on
15362 shlibpath_overrides_runpath=yes
15363 hardcode_into_libs=yes
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15373 soname_spec='${libname}${release}${shared_ext}$major'
15374 shlibpath_var=LD_LIBRARY_PATH
15375 hardcode_into_libs=yes
15378 hpux9* | hpux10* | hpux11*)
15379 # Give a soname corresponding to the major version so that dld.sl refuses to
15380 # link against other versions.
15387 hardcode_into_libs=yes
15388 dynamic_linker="$host_os dld.so"
15389 shlibpath_var=LD_LIBRARY_PATH
15390 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392 soname_spec='${libname}${release}${shared_ext}$major'
15393 if test "X$HPUX_IA64_MODE" = X32; then
15394 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15396 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15398 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15402 hardcode_into_libs=yes
15403 dynamic_linker="$host_os dld.sl"
15404 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15405 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15407 soname_spec='${libname}${release}${shared_ext}$major'
15408 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15409 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15413 dynamic_linker="$host_os dld.sl"
15414 shlibpath_var=SHLIB_PATH
15415 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15417 soname_spec='${libname}${release}${shared_ext}$major'
15420 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15421 postinstall_cmds='chmod 555 $lib'
15428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15429 soname_spec='${libname}${release}${shared_ext}$major'
15430 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15431 shlibpath_var=LD_LIBRARY_PATH
15432 shlibpath_overrides_runpath=no
15433 hardcode_into_libs=yes
15436 irix5* | irix6* | nonstopux*)
15438 nonstopux*) version_type=nonstopux ;;
15440 if test "$lt_cv_prog_gnu_ld" = yes; then
15448 soname_spec='${libname}${release}${shared_ext}$major'
15449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15451 irix5* | nonstopux*)
15452 libsuff= shlibsuff=
15455 case $LD in # libtool.m4 will add one of these switches to LD
15456 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15457 libsuff= shlibsuff= libmagic=32-bit;;
15458 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15459 libsuff=32 shlibsuff=N32 libmagic=N32;;
15460 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15461 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15462 *) libsuff= shlibsuff= libmagic=never-match;;
15466 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15467 shlibpath_overrides_runpath=no
15468 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15469 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15470 hardcode_into_libs=yes
15473 # No shared lib support for Linux oldld, aout, or coff.
15474 linux*oldld* | linux*aout* | linux*coff*)
15478 # This must be Linux ELF.
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484 soname_spec='${libname}${release}${shared_ext}$major'
15485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15486 shlibpath_var=LD_LIBRARY_PATH
15487 shlibpath_overrides_runpath=no
15488 # This implies no fast_install, which is unacceptable.
15489 # Some rework will be needed to allow for fast_install
15490 # before this can be enabled.
15491 hardcode_into_libs=yes
15493 # Append ld.so.conf contents to the search path
15494 if test -f /etc/ld.so.conf; then
15495 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15496 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15499 # We used to test for /lib/ld.so.1 and disable shared libraries on
15500 # powerpc, because MkLinux only supported shared libraries with the
15501 # GNU dynamic linker. Since this was broken with cross compilers,
15502 # most powerpc-linux boxes support dynamic linking these days and
15503 # people can always --disable-shared, the test was removed, and we
15504 # assume the GNU/Linux dynamic linker is in use.
15505 dynamic_linker='GNU/Linux ld.so'
15512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15513 soname_spec='${libname}${release}${shared_ext}$major'
15514 shlibpath_var=LD_LIBRARY_PATH
15515 shlibpath_overrides_runpath=no
15516 hardcode_into_libs=yes
15517 dynamic_linker='NetBSD ld.elf_so'
15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15525 soname_spec='${libname}${release}${shared_ext}$major'
15526 shlibpath_var=LD_LIBRARY_PATH
15527 shlibpath_overrides_runpath=no
15528 hardcode_into_libs=yes
15529 dynamic_linker='GNU ld.so'
15536 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15539 dynamic_linker='NetBSD (a.out) ld.so'
15541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15542 soname_spec='${libname}${release}${shared_ext}$major'
15543 dynamic_linker='NetBSD ld.elf_so'
15545 shlibpath_var=LD_LIBRARY_PATH
15546 shlibpath_overrides_runpath=yes
15547 hardcode_into_libs=yes
15552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15553 shlibpath_var=LD_LIBRARY_PATH
15554 shlibpath_overrides_runpath=yes
15561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15562 soname_spec='${libname}${release}${shared_ext}$major'
15563 shlibpath_var=LD_LIBRARY_PATH
15564 shlibpath_overrides_runpath=yes
15569 sys_lib_dlsearch_path_spec="/usr/lib"
15571 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15573 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15574 *) need_version=no ;;
15576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15578 shlibpath_var=LD_LIBRARY_PATH
15579 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15581 openbsd2.[89] | openbsd2.[89].*)
15582 shlibpath_overrides_runpath=no
15585 shlibpath_overrides_runpath=yes
15589 shlibpath_overrides_runpath=yes
15594 libname_spec='$name'
15597 library_names_spec='$libname${shared_ext} $libname.a'
15598 dynamic_linker='OS/2 ld.exe'
15599 shlibpath_var=LIBPATH
15602 osf3* | osf4* | osf5*)
15606 soname_spec='${libname}${release}${shared_ext}$major'
15607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15608 shlibpath_var=LD_LIBRARY_PATH
15609 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15610 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618 soname_spec='${libname}${release}${shared_ext}$major'
15619 shlibpath_var=LD_LIBRARY_PATH
15620 shlibpath_overrides_runpath=yes
15621 hardcode_into_libs=yes
15622 # ldd complains unless libraries are executable
15623 postinstall_cmds='chmod +x $lib'
15628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15629 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15630 shlibpath_var=LD_LIBRARY_PATH
15631 shlibpath_overrides_runpath=yes
15632 if test "$with_gnu_ld" = yes; then
15640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15641 soname_spec='${libname}${release}${shared_ext}$major'
15642 shlibpath_var=LD_LIBRARY_PATH
15643 case $host_vendor in
15645 shlibpath_overrides_runpath=no
15647 export_dynamic_flag_spec='${wl}-Blargedynsym'
15648 runpath_var=LD_RUN_PATH
15656 shlibpath_overrides_runpath=no
15657 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15663 if test -d /usr/nec ;then
15665 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15666 soname_spec='$libname${shared_ext}.$major'
15667 shlibpath_var=LD_LIBRARY_PATH
15671 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15672 version_type=freebsd-elf
15675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15676 soname_spec='${libname}${release}${shared_ext}$major'
15677 shlibpath_var=LD_LIBRARY_PATH
15678 hardcode_into_libs=yes
15679 if test "$with_gnu_ld" = yes; then
15680 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15681 shlibpath_overrides_runpath=no
15683 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15684 shlibpath_overrides_runpath=yes
15687 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15691 sys_lib_dlsearch_path_spec='/usr/lib'
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697 soname_spec='${libname}${release}${shared_ext}$major'
15698 shlibpath_var=LD_LIBRARY_PATH
15705 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15706 echo "${ECHO_T}$dynamic_linker" >&6
15707 test "$dynamic_linker" = no && can_build_shared=no
15709 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15710 if test "$GCC" = yes; then
15711 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15714 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15715 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15716 hardcode_action_F77=
15717 if test -n "$hardcode_libdir_flag_spec_F77" || \
15718 test -n "$runpath_var_F77" || \
15719 test "X$hardcode_automatic_F77" = "Xyes" ; then
15721 # We can hardcode non-existant directories.
15722 if test "$hardcode_direct_F77" != no &&
15723 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15724 # have to relink, otherwise we might link with an installed library
15725 # when we should be linking with a yet-to-be-installed one
15726 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15727 test "$hardcode_minus_L_F77" != no; then
15728 # Linking always hardcodes the temporary library directory.
15729 hardcode_action_F77=relink
15731 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15732 hardcode_action_F77=immediate
15735 # We cannot hardcode anything, or else we can only hardcode existing
15737 hardcode_action_F77=unsupported
15739 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15740 echo "${ECHO_T}$hardcode_action_F77" >&6
15742 if test "$hardcode_action_F77" = relink; then
15743 # Fast installation is not supported
15744 enable_fast_install=no
15745 elif test "$shlibpath_overrides_runpath" = yes ||
15746 test "$enable_shared" = no; then
15747 # Fast installation is not necessary
15748 enable_fast_install=needless
15752 # The else clause should only fire when bootstrapping the
15753 # libtool distribution, otherwise you forgot to ship ltmain.sh
15754 # with your package, and you will get complaints that there are
15755 # no rules to generate ltmain.sh.
15756 if test -f "$ltmain"; then
15757 # See if we are running on zsh, and set the options which allow our commands through
15758 # without removal of \ escapes.
15759 if test -n "${ZSH_VERSION+set}" ; then
15760 setopt NO_GLOB_SUBST
15762 # Now quote all the things that may contain metacharacters while being
15763 # careful not to overquote the AC_SUBSTed values. We take copies of the
15764 # variables and quote the copies for generation of the libtool script.
15765 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15767 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15768 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15769 deplibs_check_method reload_flag reload_cmds need_locks \
15770 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15771 lt_cv_sys_global_symbol_to_c_name_address \
15772 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15773 old_postinstall_cmds old_postuninstall_cmds \
15777 lt_prog_compiler_wl_F77 \
15778 lt_prog_compiler_pic_F77 \
15779 lt_prog_compiler_static_F77 \
15780 lt_prog_compiler_no_builtin_flag_F77 \
15781 export_dynamic_flag_spec_F77 \
15782 thread_safe_flag_spec_F77 \
15783 whole_archive_flag_spec_F77 \
15784 enable_shared_with_static_runtimes_F77 \
15785 old_archive_cmds_F77 \
15786 old_archive_from_new_cmds_F77 \
15787 predep_objects_F77 \
15788 postdep_objects_F77 \
15791 compiler_lib_search_path_F77 \
15793 archive_expsym_cmds_F77 \
15794 postinstall_cmds_F77 \
15795 postuninstall_cmds_F77 \
15796 old_archive_from_expsyms_cmds_F77 \
15797 allow_undefined_flag_F77 \
15798 no_undefined_flag_F77 \
15799 export_symbols_cmds_F77 \
15800 hardcode_libdir_flag_spec_F77 \
15801 hardcode_libdir_flag_spec_ld_F77 \
15802 hardcode_libdir_separator_F77 \
15803 hardcode_automatic_F77 \
15805 module_expsym_cmds_F77 \
15806 lt_cv_prog_compiler_c_o_F77 \
15807 exclude_expsyms_F77 \
15808 include_expsyms_F77; do
15811 old_archive_cmds_F77 | \
15812 old_archive_from_new_cmds_F77 | \
15813 archive_cmds_F77 | \
15814 archive_expsym_cmds_F77 | \
15815 module_cmds_F77 | \
15816 module_expsym_cmds_F77 | \
15817 old_archive_from_expsyms_cmds_F77 | \
15818 export_symbols_cmds_F77 | \
15819 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15820 postinstall_cmds | postuninstall_cmds | \
15821 old_postinstall_cmds | old_postuninstall_cmds | \
15822 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15823 # Double-quote double-evaled strings.
15824 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15827 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15833 *'\$0 --fallback-echo"')
15834 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15840 cat <<__EOF__ >> "$cfgfile"
15841 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15843 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15845 # Shell to use when invoking shell scripts.
15848 # Whether or not to build shared libraries.
15849 build_libtool_libs=$enable_shared
15851 # Whether or not to build static libraries.
15852 build_old_libs=$enable_static
15854 # Whether or not to add -lc for building shared libraries.
15855 build_libtool_need_lc=$archive_cmds_need_lc_F77
15857 # Whether or not to disallow shared libs when runtime libs are static
15858 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15860 # Whether or not to optimize for fast installation.
15861 fast_install=$enable_fast_install
15864 host_alias=$host_alias
15868 # The build system.
15869 build_alias=$build_alias
15873 # An echo program that does not interpret backslashes.
15878 AR_FLAGS=$lt_AR_FLAGS
15883 # LTCC compiler flags.
15884 LTCFLAGS=$lt_LTCFLAGS
15886 # A language-specific compiler.
15887 CC=$lt_compiler_F77
15889 # Is the compiler the GNU C compiler?
15895 # The linker used to build libraries.
15898 # Whether we need hard or soft links.
15901 # A BSD-compatible nm program.
15904 # A symbol stripping program
15907 # Used to examine libraries when file_magic_cmd begins "file"
15908 MAGIC_CMD=$MAGIC_CMD
15910 # Used on cygwin: DLL creation program.
15913 # Used on cygwin: object dumper.
15916 # Used on cygwin: assembler.
15919 # The name of the directory that contains temporary libtool files.
15922 # How to create reloadable object files.
15923 reload_flag=$lt_reload_flag
15924 reload_cmds=$lt_reload_cmds
15926 # How to pass a linker flag through the compiler.
15927 wl=$lt_lt_prog_compiler_wl_F77
15929 # Object file suffix (normally "o").
15930 objext="$ac_objext"
15932 # Old archive suffix (normally "a").
15935 # Shared library suffix (normally ".so").
15936 shrext_cmds='$shrext_cmds'
15938 # Executable file suffix (normally "").
15941 # Additional compiler flags for building library objects.
15942 pic_flag=$lt_lt_prog_compiler_pic_F77
15945 # What is the maximum length of a command?
15946 max_cmd_len=$lt_cv_sys_max_cmd_len
15948 # Does compiler simultaneously support -c and -o options?
15949 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15951 # Must we lock files when doing compilation?
15952 need_locks=$lt_need_locks
15954 # Do we need the lib prefix for modules?
15955 need_lib_prefix=$need_lib_prefix
15957 # Do we need a version for libraries?
15958 need_version=$need_version
15960 # Whether dlopen is supported.
15961 dlopen_support=$enable_dlopen
15963 # Whether dlopen of programs is supported.
15964 dlopen_self=$enable_dlopen_self
15966 # Whether dlopen of statically linked programs is supported.
15967 dlopen_self_static=$enable_dlopen_self_static
15969 # Compiler flag to prevent dynamic linking.
15970 link_static_flag=$lt_lt_prog_compiler_static_F77
15972 # Compiler flag to turn off builtin functions.
15973 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15975 # Compiler flag to allow reflexive dlopens.
15976 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15978 # Compiler flag to generate shared objects directly from archives.
15979 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15981 # Compiler flag to generate thread-safe objects.
15982 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15984 # Library versioning type.
15985 version_type=$version_type
15987 # Format of library name prefix.
15988 libname_spec=$lt_libname_spec
15990 # List of archive names. First name is the real one, the rest are links.
15991 # The last name is the one that the linker finds with -lNAME.
15992 library_names_spec=$lt_library_names_spec
15994 # The coded name of the library, if different from the real name.
15995 soname_spec=$lt_soname_spec
15997 # Commands used to build and install an old-style archive.
15999 old_archive_cmds=$lt_old_archive_cmds_F77
16000 old_postinstall_cmds=$lt_old_postinstall_cmds
16001 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16003 # Create an old-style archive from a shared archive.
16004 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16006 # Create a temporary old-style archive to link instead of a shared archive.
16007 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16009 # Commands used to build and install a shared archive.
16010 archive_cmds=$lt_archive_cmds_F77
16011 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16012 postinstall_cmds=$lt_postinstall_cmds
16013 postuninstall_cmds=$lt_postuninstall_cmds
16015 # Commands used to build a loadable module (assumed same as above if empty)
16016 module_cmds=$lt_module_cmds_F77
16017 module_expsym_cmds=$lt_module_expsym_cmds_F77
16019 # Commands to strip libraries.
16020 old_striplib=$lt_old_striplib
16021 striplib=$lt_striplib
16023 # Dependencies to place before the objects being linked to create a
16025 predep_objects=$lt_predep_objects_F77
16027 # Dependencies to place after the objects being linked to create a
16029 postdep_objects=$lt_postdep_objects_F77
16031 # Dependencies to place before the objects being linked to create a
16033 predeps=$lt_predeps_F77
16035 # Dependencies to place after the objects being linked to create a
16037 postdeps=$lt_postdeps_F77
16039 # The library search path used internally by the compiler when linking
16040 # a shared library.
16041 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16043 # Method to check whether dependent libraries are shared objects.
16044 deplibs_check_method=$lt_deplibs_check_method
16046 # Command to use when deplibs_check_method == file_magic.
16047 file_magic_cmd=$lt_file_magic_cmd
16049 # Flag that allows shared libraries with undefined symbols to be built.
16050 allow_undefined_flag=$lt_allow_undefined_flag_F77
16052 # Flag that forces no undefined symbols.
16053 no_undefined_flag=$lt_no_undefined_flag_F77
16055 # Commands used to finish a libtool library installation in a directory.
16056 finish_cmds=$lt_finish_cmds
16058 # Same as above, but a single script fragment to be evaled but not shown.
16059 finish_eval=$lt_finish_eval
16061 # Take the output of nm and produce a listing of raw symbols and C names.
16062 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16064 # Transform the output of nm in a proper C declaration
16065 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16067 # Transform the output of nm in a C name address pair
16068 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16070 # This is the shared library runtime path variable.
16071 runpath_var=$runpath_var
16073 # This is the shared library path variable.
16074 shlibpath_var=$shlibpath_var
16076 # Is shlibpath searched before the hard-coded library search path?
16077 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16079 # How to hardcode a shared library path into an executable.
16080 hardcode_action=$hardcode_action_F77
16082 # Whether we should hardcode library paths into libraries.
16083 hardcode_into_libs=$hardcode_into_libs
16085 # Flag to hardcode \$libdir into a binary during linking.
16086 # This must work even if \$libdir does not exist.
16087 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16089 # If ld is used when linking, flag to hardcode \$libdir into
16090 # a binary during linking. This must work even if \$libdir does
16092 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16094 # Whether we need a single -rpath flag with a separated argument.
16095 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16097 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16098 # resulting binary.
16099 hardcode_direct=$hardcode_direct_F77
16101 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16102 # resulting binary.
16103 hardcode_minus_L=$hardcode_minus_L_F77
16105 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16106 # the resulting binary.
16107 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16109 # Set to yes if building a shared library automatically hardcodes DIR into the library
16110 # and all subsequent libraries and executables linked against it.
16111 hardcode_automatic=$hardcode_automatic_F77
16113 # Variables whose values should be saved in libtool wrapper scripts and
16114 # restored at relink time.
16115 variables_saved_for_relink="$variables_saved_for_relink"
16117 # Whether libtool must link a program against all its dependency libraries.
16118 link_all_deplibs=$link_all_deplibs_F77
16120 # Compile-time system search path for libraries
16121 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16123 # Run-time system search path for libraries
16124 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16126 # Fix the shell variable \$srcfile for the compiler.
16127 fix_srcfile_path="$fix_srcfile_path_F77"
16129 # Set to yes if exported symbols are required.
16130 always_export_symbols=$always_export_symbols_F77
16132 # The commands to list exported symbols.
16133 export_symbols_cmds=$lt_export_symbols_cmds_F77
16135 # The commands to extract the exported symbol list from a shared archive.
16136 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16138 # Symbols that should not be listed in the preloaded symbols.
16139 exclude_expsyms=$lt_exclude_expsyms_F77
16141 # Symbols that must always be exported.
16142 include_expsyms=$lt_include_expsyms_F77
16144 # ### END LIBTOOL TAG CONFIG: $tagname
16150 # If there is no Makefile yet, we rely on a make rule to execute
16151 # `config.status --recheck' to rerun these tests and create the
16152 # libtool script then.
16153 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16154 if test -f "$ltmain_in"; then
16155 test -f Makefile && make "$ltmain"
16161 ac_cpp='$CPP $CPPFLAGS'
16162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16174 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16178 # Source file extension for Java test sources.
16181 # Object file extension for compiled Java test sources.
16185 # Code to be used in simple compile tests
16186 lt_simple_compile_test_code="class foo {}\n"
16188 # Code to be used in simple link tests
16189 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16191 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16193 # If no C compiler was specified, use CC.
16196 # If no C compiler flags were specified, use CFLAGS.
16197 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16199 # Allow CC to be a program name with arguments.
16203 # save warnings/boilerplate of simple test code
16204 ac_outfile=conftest.$ac_objext
16205 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16206 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16207 _lt_compiler_boilerplate=`cat conftest.err`
16210 ac_outfile=conftest.$ac_objext
16211 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16212 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16213 _lt_linker_boilerplate=`cat conftest.err`
16217 # Allow CC to be a program name with arguments.
16222 for cc_temp in $compiler""; do
16224 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16225 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16230 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16233 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16234 archive_cmds_need_lc_GCJ=no
16236 old_archive_cmds_GCJ=$old_archive_cmds
16239 lt_prog_compiler_no_builtin_flag_GCJ=
16241 if test "$GCC" = yes; then
16242 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16245 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16246 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16247 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16250 lt_cv_prog_compiler_rtti_exceptions=no
16251 ac_outfile=conftest.$ac_objext
16252 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16253 lt_compiler_flag="-fno-rtti -fno-exceptions"
16254 # Insert the option either (1) after the last *FLAGS variable, or
16255 # (2) before a word containing "conftest.", or (3) at the end.
16256 # Note that $ac_compile itself does not contain backslashes and begins
16257 # with a dollar sign (not a hyphen), so the echo should work correctly.
16258 # The option is referenced via a variable to avoid confusing sed.
16259 lt_compile=`echo "$ac_compile" | $SED \
16260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16262 -e 's:$: $lt_compiler_flag:'`
16263 (eval echo "\"\$as_me:16264: $lt_compile\"" >&5)
16264 (eval "$lt_compile" 2>conftest.err)
16266 cat conftest.err >&5
16267 echo "$as_me:16268: \$? = $ac_status" >&5
16268 if (exit $ac_status) && test -s "$ac_outfile"; then
16269 # The compiler can only warn and ignore the option if not recognized
16270 # So say no if there are warnings other than the usual output.
16271 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16272 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16273 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16274 lt_cv_prog_compiler_rtti_exceptions=yes
16280 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16281 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16283 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16284 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16291 lt_prog_compiler_wl_GCJ=
16292 lt_prog_compiler_pic_GCJ=
16293 lt_prog_compiler_static_GCJ=
16295 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16296 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16298 if test "$GCC" = yes; then
16299 lt_prog_compiler_wl_GCJ='-Wl,'
16300 lt_prog_compiler_static_GCJ='-static'
16304 # All AIX code is PIC.
16305 if test "$host_cpu" = ia64; then
16306 # AIX 5 now supports IA64 processor
16307 lt_prog_compiler_static_GCJ='-Bstatic'
16312 # FIXME: we need at least 68020 code to build shared libraries, but
16313 # adding the `-m68020' flag to GCC prevents building anything better,
16315 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16318 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16319 # PIC is the default for these OSes.
16322 mingw* | pw32* | os2*)
16323 # This hack is so that the source file can tell whether it is being
16324 # built for inclusion in a dll (and should export symbols for example).
16325 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16328 darwin* | rhapsody*)
16329 # PIC is the default on this platform
16330 # Common symbols not allowed in MH_DYLIB files
16331 lt_prog_compiler_pic_GCJ='-fno-common'
16335 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16336 # Instead, we relocate shared libraries at runtime.
16340 # Just because we use GCC doesn't mean we suddenly get shared libraries
16341 # on systems that don't support them.
16342 lt_prog_compiler_can_build_shared_GCJ=no
16347 if test -d /usr/nec; then
16348 lt_prog_compiler_pic_GCJ=-Kconform_pic
16353 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16354 # not for PA HP-UX.
16360 lt_prog_compiler_pic_GCJ='-fPIC'
16366 lt_prog_compiler_pic_GCJ='-fPIC'
16370 # PORTME Check for flag to pass linker flags through the system compiler.
16373 lt_prog_compiler_wl_GCJ='-Wl,'
16374 if test "$host_cpu" = ia64; then
16375 # AIX 5 now supports IA64 processor
16376 lt_prog_compiler_static_GCJ='-Bstatic'
16378 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16382 # PIC is the default on this platform
16383 # Common symbols not allowed in MH_DYLIB files
16384 case $cc_basename in
16386 lt_prog_compiler_pic_GCJ='-qnocommon'
16387 lt_prog_compiler_wl_GCJ='-Wl,'
16392 mingw* | pw32* | os2*)
16393 # This hack is so that the source file can tell whether it is being
16394 # built for inclusion in a dll (and should export symbols for example).
16395 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16398 hpux9* | hpux10* | hpux11*)
16399 lt_prog_compiler_wl_GCJ='-Wl,'
16400 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16401 # not for PA HP-UX.
16407 lt_prog_compiler_pic_GCJ='+Z'
16410 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16411 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16414 irix5* | irix6* | nonstopux*)
16415 lt_prog_compiler_wl_GCJ='-Wl,'
16416 # PIC (with -KPIC) is the default.
16417 lt_prog_compiler_static_GCJ='-non_shared'
16421 lt_prog_compiler_pic_GCJ='-KPIC'
16422 lt_prog_compiler_static_GCJ='-Bstatic'
16426 case $cc_basename in
16428 lt_prog_compiler_wl_GCJ='-Wl,'
16429 lt_prog_compiler_pic_GCJ='-KPIC'
16430 lt_prog_compiler_static_GCJ='-static'
16432 pgcc* | pgf77* | pgf90* | pgf95*)
16433 # Portland Group compilers (*not* the Pentium gcc compiler,
16434 # which looks to be a dead project)
16435 lt_prog_compiler_wl_GCJ='-Wl,'
16436 lt_prog_compiler_pic_GCJ='-fpic'
16437 lt_prog_compiler_static_GCJ='-Bstatic'
16440 lt_prog_compiler_wl_GCJ='-Wl,'
16441 # All Alpha code is PIC.
16442 lt_prog_compiler_static_GCJ='-non_shared'
16447 osf3* | osf4* | osf5*)
16448 lt_prog_compiler_wl_GCJ='-Wl,'
16449 # All OSF/1 code is PIC.
16450 lt_prog_compiler_static_GCJ='-non_shared'
16454 lt_prog_compiler_pic_GCJ='-KPIC'
16455 lt_prog_compiler_static_GCJ='-Bstatic'
16456 case $cc_basename in
16457 f77* | f90* | f95*)
16458 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16460 lt_prog_compiler_wl_GCJ='-Wl,';;
16465 lt_prog_compiler_wl_GCJ='-Qoption ld '
16466 lt_prog_compiler_pic_GCJ='-PIC'
16467 lt_prog_compiler_static_GCJ='-Bstatic'
16470 sysv4 | sysv4.2uw2* | sysv4.3*)
16471 lt_prog_compiler_wl_GCJ='-Wl,'
16472 lt_prog_compiler_pic_GCJ='-KPIC'
16473 lt_prog_compiler_static_GCJ='-Bstatic'
16477 if test -d /usr/nec ;then
16478 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16479 lt_prog_compiler_static_GCJ='-Bstatic'
16483 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16484 lt_prog_compiler_wl_GCJ='-Wl,'
16485 lt_prog_compiler_pic_GCJ='-KPIC'
16486 lt_prog_compiler_static_GCJ='-Bstatic'
16490 lt_prog_compiler_wl_GCJ='-Wl,'
16491 lt_prog_compiler_can_build_shared_GCJ=no
16495 lt_prog_compiler_pic_GCJ='-pic'
16496 lt_prog_compiler_static_GCJ='-Bstatic'
16500 lt_prog_compiler_can_build_shared_GCJ=no
16505 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16506 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16509 # Check to make sure the PIC flag actually works.
16511 if test -n "$lt_prog_compiler_pic_GCJ"; then
16513 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16514 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16515 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16516 echo $ECHO_N "(cached) $ECHO_C" >&6
16518 lt_prog_compiler_pic_works_GCJ=no
16519 ac_outfile=conftest.$ac_objext
16520 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16521 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16522 # Insert the option either (1) after the last *FLAGS variable, or
16523 # (2) before a word containing "conftest.", or (3) at the end.
16524 # Note that $ac_compile itself does not contain backslashes and begins
16525 # with a dollar sign (not a hyphen), so the echo should work correctly.
16526 # The option is referenced via a variable to avoid confusing sed.
16527 lt_compile=`echo "$ac_compile" | $SED \
16528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16530 -e 's:$: $lt_compiler_flag:'`
16531 (eval echo "\"\$as_me:16532: $lt_compile\"" >&5)
16532 (eval "$lt_compile" 2>conftest.err)
16534 cat conftest.err >&5
16535 echo "$as_me:16536: \$? = $ac_status" >&5
16536 if (exit $ac_status) && test -s "$ac_outfile"; then
16537 # The compiler can only warn and ignore the option if not recognized
16538 # So say no if there are warnings other than the usual output.
16539 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16540 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16541 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16542 lt_prog_compiler_pic_works_GCJ=yes
16548 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16549 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16551 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16552 case $lt_prog_compiler_pic_GCJ in
16554 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16557 lt_prog_compiler_pic_GCJ=
16558 lt_prog_compiler_can_build_shared_GCJ=no
16563 # For platforms which do not support PIC, -DPIC is meaningless:
16565 lt_prog_compiler_pic_GCJ=
16568 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16573 # Check to make sure the static flag actually works.
16575 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16576 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16577 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16578 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16579 echo $ECHO_N "(cached) $ECHO_C" >&6
16581 lt_prog_compiler_static_works_GCJ=no
16582 save_LDFLAGS="$LDFLAGS"
16583 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16584 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16585 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16586 # The linker can only warn and ignore the option if not recognized
16587 # So say no if there are warnings
16588 if test -s conftest.err; then
16589 # Append any errors to the config.log.
16590 cat conftest.err 1>&5
16591 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16593 if diff conftest.exp conftest.er2 >/dev/null; then
16594 lt_prog_compiler_static_works_GCJ=yes
16597 lt_prog_compiler_static_works_GCJ=yes
16601 LDFLAGS="$save_LDFLAGS"
16604 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16605 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16607 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16610 lt_prog_compiler_static_GCJ=
16614 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16615 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16616 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16617 echo $ECHO_N "(cached) $ECHO_C" >&6
16619 lt_cv_prog_compiler_c_o_GCJ=no
16620 $rm -r conftest 2>/dev/null
16624 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16626 lt_compiler_flag="-o out/conftest2.$ac_objext"
16627 # Insert the option either (1) after the last *FLAGS variable, or
16628 # (2) before a word containing "conftest.", or (3) at the end.
16629 # Note that $ac_compile itself does not contain backslashes and begins
16630 # with a dollar sign (not a hyphen), so the echo should work correctly.
16631 lt_compile=`echo "$ac_compile" | $SED \
16632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16634 -e 's:$: $lt_compiler_flag:'`
16635 (eval echo "\"\$as_me:16636: $lt_compile\"" >&5)
16636 (eval "$lt_compile" 2>out/conftest.err)
16638 cat out/conftest.err >&5
16639 echo "$as_me:16640: \$? = $ac_status" >&5
16640 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16642 # The compiler can only warn and ignore the option if not recognized
16643 # So say no if there are warnings
16644 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16645 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16646 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16647 lt_cv_prog_compiler_c_o_GCJ=yes
16652 # SGI C++ compiler will create directory out/ii_files/ for
16653 # template instantiation
16654 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16655 $rm out/* && rmdir out
16661 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16662 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16665 hard_links="nottested"
16666 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16667 # do not overwrite the value of need_locks provided by the user
16668 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16669 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16672 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16674 ln conftest.a conftest.b 2>&5 || hard_links=no
16675 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16676 echo "$as_me:$LINENO: result: $hard_links" >&5
16677 echo "${ECHO_T}$hard_links" >&6
16678 if test "$hard_links" = no; then
16679 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16680 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16687 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16688 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16691 allow_undefined_flag_GCJ=
16692 enable_shared_with_static_runtimes_GCJ=no
16694 archive_expsym_cmds_GCJ=
16695 old_archive_From_new_cmds_GCJ=
16696 old_archive_from_expsyms_cmds_GCJ=
16697 export_dynamic_flag_spec_GCJ=
16698 whole_archive_flag_spec_GCJ=
16699 thread_safe_flag_spec_GCJ=
16700 hardcode_libdir_flag_spec_GCJ=
16701 hardcode_libdir_flag_spec_ld_GCJ=
16702 hardcode_libdir_separator_GCJ=
16703 hardcode_direct_GCJ=no
16704 hardcode_minus_L_GCJ=no
16705 hardcode_shlibpath_var_GCJ=unsupported
16706 link_all_deplibs_GCJ=unknown
16707 hardcode_automatic_GCJ=no
16709 module_expsym_cmds_GCJ=
16710 always_export_symbols_GCJ=no
16711 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16712 # include_expsyms should be a list of space-separated symbols to be *always*
16713 # included in the symbol list
16714 include_expsyms_GCJ=
16715 # exclude_expsyms can be an extended regexp of symbols to exclude
16716 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16717 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16718 # as well as any symbol that contains `d'.
16719 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16720 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16721 # platforms (ab)use it in PIC code, but their linkers get confused if
16722 # the symbol is explicitly referenced. Since portable code cannot
16723 # rely on this symbol name, it's probably fine to never include it in
16724 # preloaded symbol tables.
16725 extract_expsyms_cmds=
16726 # Just being paranoid about ensuring that cc_basename is set.
16727 for cc_temp in $compiler""; do
16729 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16730 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16735 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16738 cygwin* | mingw* | pw32*)
16739 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16740 # When not using gcc, we currently assume that we are using
16741 # Microsoft Visual C++.
16742 if test "$GCC" != yes; then
16747 # we just hope/assume this is gcc and not c89 (= MSVC++)
16756 if test "$with_gnu_ld" = yes; then
16757 # If archive_cmds runs LD, not CC, wlarc should be empty
16760 # Set some defaults for GNU ld with shared library support. These
16761 # are reset later if shared libraries are not supported. Putting them
16762 # here allows them to be overridden if necessary.
16763 runpath_var=LD_RUN_PATH
16764 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16765 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16766 # ancient GNU ld didn't support --whole-archive et. al.
16767 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16768 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16770 whole_archive_flag_spec_GCJ=
16772 supports_anon_versioning=no
16773 case `$LD -v 2>/dev/null` in
16774 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16775 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16776 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16777 *\ 2.11.*) ;; # other 2.11 versions
16778 *) supports_anon_versioning=yes ;;
16781 # See if GNU ld supports shared libraries.
16783 aix3* | aix4* | aix5*)
16784 # On AIX/PPC, the GNU linker is very broken
16785 if test "$host_cpu" != ia64; then
16789 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16790 *** to be unable to reliably create shared libraries on AIX.
16791 *** Therefore, libtool is disabling shared libraries support. If you
16792 *** really care for shared libraries, you may want to modify your PATH
16793 *** so that a non-GNU linker is found, and then restart.
16800 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)'
16801 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16802 hardcode_minus_L_GCJ=yes
16804 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16805 # that the semantics of dynamic libraries on AmigaOS, at least up
16806 # to version 4, is to share data among multiple programs linked
16807 # with the same dynamic library. Since this doesn't match the
16808 # behavior of shared libraries on other platforms, we can't use
16814 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16815 allow_undefined_flag_GCJ=unsupported
16816 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16817 # support --undefined. This deserves some investigation. FIXME
16818 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16824 cygwin* | mingw* | pw32*)
16825 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16826 # as there is no search path for DLLs.
16827 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16828 allow_undefined_flag_GCJ=unsupported
16829 always_export_symbols_GCJ=no
16830 enable_shared_with_static_runtimes_GCJ=yes
16831 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16833 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16834 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16835 # If the export-symbols file already is a .def file (1st line
16836 # is EXPORTS), use it as is; otherwise, prepend...
16837 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16838 cp $export_symbols $output_objdir/$soname.def;
16840 echo EXPORTS > $output_objdir/$soname.def;
16841 cat $export_symbols >> $output_objdir/$soname.def;
16843 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16850 hardcode_direct_GCJ=no
16851 hardcode_shlibpath_var_GCJ=no
16852 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16853 export_dynamic_flag_spec_GCJ='${wl}-E'
16854 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16855 # Instead, shared libraries are loaded at an image base (0x10000000 by
16856 # default) and relocated if they conflict, which is a slow very memory
16857 # consuming and fragmenting process. To avoid this, we pick a random,
16858 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16859 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16860 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'
16861 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'
16865 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16867 case $cc_basename,$host_cpu in
16868 pgcc*) # Portland Group C compiler
16869 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'
16870 tmp_addflag=' $pic_flag'
16872 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16873 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'
16874 tmp_addflag=' $pic_flag -Mnomain' ;;
16875 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16876 tmp_addflag=' -i_dynamic' ;;
16877 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16878 tmp_addflag=' -i_dynamic -nofor_main' ;;
16879 ifc* | ifort*) # Intel Fortran compiler
16880 tmp_addflag=' -nofor_main' ;;
16882 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16884 if test $supports_anon_versioning = yes; then
16885 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16886 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16887 $echo "local: *; };" >> $output_objdir/$libname.ver~
16888 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16890 link_all_deplibs_GCJ=no
16896 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16897 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16898 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16901 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16902 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16907 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16911 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16912 *** create shared libraries on Solaris systems. Therefore, libtool
16913 *** is disabling shared libraries support. We urge you to upgrade GNU
16914 *** binutils to release 2.9.1 or newer. Another option is to modify
16915 *** your PATH or compiler configuration so that the native linker is
16916 *** used, and then restart.
16919 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16920 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16921 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16927 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16928 case `$LD -v 2>&1` in
16929 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16933 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16934 *** reliably create shared libraries on SCO systems. Therefore, libtool
16935 *** is disabling shared libraries support. We urge you to upgrade GNU
16936 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16937 *** your PATH or compiler configuration so that the native linker is
16938 *** used, and then restart.
16943 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16944 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16945 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16946 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16955 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16957 hardcode_direct_GCJ=yes
16958 hardcode_shlibpath_var_GCJ=no
16962 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16963 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16964 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16971 if test "$ld_shlibs_GCJ" = no; then
16973 hardcode_libdir_flag_spec_GCJ=
16974 export_dynamic_flag_spec_GCJ=
16975 whole_archive_flag_spec_GCJ=
16978 # PORTME fill in a description of your system's linker (not GNU ld)
16981 allow_undefined_flag_GCJ=unsupported
16982 always_export_symbols_GCJ=yes
16983 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'
16984 # Note: this linker hardcodes the directories in LIBPATH if there
16985 # are no directories specified by -L.
16986 hardcode_minus_L_GCJ=yes
16987 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16988 # Neither direct hardcoding nor static linking is supported with a
16990 hardcode_direct_GCJ=unsupported
16995 if test "$host_cpu" = ia64; then
16996 # On IA64, the linker does run time linking by default, so we don't
16997 # have to do anything special.
16998 aix_use_runtimelinking=no
16999 exp_sym_flag='-Bexport'
17002 # If we're using GNU nm, then we don't want the "-C" option.
17003 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17004 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17005 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'
17007 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'
17009 aix_use_runtimelinking=no
17011 # Test if we are trying to use run time linking or normal
17012 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17013 # need to do runtime linking.
17014 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17015 for ld_flag in $LDFLAGS; do
17016 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17017 aix_use_runtimelinking=yes
17024 exp_sym_flag='-bexport'
17025 no_entry_flag='-bnoentry'
17028 # When large executables or shared objects are built, AIX ld can
17029 # have problems creating the table of contents. If linking a library
17030 # or program results in "error TOC overflow" add -mminimal-toc to
17031 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17032 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17034 archive_cmds_GCJ=''
17035 hardcode_direct_GCJ=yes
17036 hardcode_libdir_separator_GCJ=':'
17037 link_all_deplibs_GCJ=yes
17039 if test "$GCC" = yes; then
17040 case $host_os in aix4.[012]|aix4.[012].*)
17041 # We only want to do this on AIX 4.2 and lower, the check
17042 # below for broken collect2 doesn't work under 4.3+
17043 collect2name=`${CC} -print-prog-name=collect2`
17044 if test -f "$collect2name" && \
17045 strings "$collect2name" | grep resolve_lib_name >/dev/null
17047 # We have reworked collect2
17048 hardcode_direct_GCJ=yes
17050 # We have old collect2
17051 hardcode_direct_GCJ=unsupported
17052 # It fails to find uninstalled libraries when the uninstalled
17053 # path is not listed in the libpath. Setting hardcode_minus_L
17054 # to unsupported forces relinking
17055 hardcode_minus_L_GCJ=yes
17056 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17057 hardcode_libdir_separator_GCJ=
17061 shared_flag='-shared'
17062 if test "$aix_use_runtimelinking" = yes; then
17063 shared_flag="$shared_flag "'${wl}-G'
17067 if test "$host_cpu" = ia64; then
17068 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17069 # chokes on -Wl,-G. The following line is correct:
17072 if test "$aix_use_runtimelinking" = yes; then
17073 shared_flag='${wl}-G'
17075 shared_flag='${wl}-bM:SRE'
17080 # It seems that -bexpall does not export symbols beginning with
17081 # underscore (_), so it is better to generate a list of symbols to export.
17082 always_export_symbols_GCJ=yes
17083 if test "$aix_use_runtimelinking" = yes; then
17084 # Warning - without using the other runtime loading flags (-brtl),
17085 # -berok will link without error, but may produce a broken library.
17086 allow_undefined_flag_GCJ='-berok'
17087 # Determine the default libpath from the value encoded in an empty executable.
17088 cat >conftest.$ac_ext <<_ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h. */
17103 rm -f conftest.$ac_objext conftest$ac_exeext
17104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17105 (eval $ac_link) 2>conftest.er1
17107 grep -v '^ *+' conftest.er1 >conftest.err
17109 cat conftest.err >&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); } &&
17112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; } &&
17118 { ac_try='test -s conftest$ac_exeext'
17119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17120 (eval $ac_try) 2>&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; }; then
17125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17127 # Check for a 64-bit object if we didn't find anything.
17128 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; }
17131 echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17135 rm -f conftest.err conftest.$ac_objext \
17136 conftest$ac_exeext conftest.$ac_ext
17137 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17139 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17140 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"
17142 if test "$host_cpu" = ia64; then
17143 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17144 allow_undefined_flag_GCJ="-z nodefs"
17145 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"
17147 # Determine the default libpath from the value encoded in an empty executable.
17148 cat >conftest.$ac_ext <<_ACEOF
17151 cat confdefs.h >>conftest.$ac_ext
17152 cat >>conftest.$ac_ext <<_ACEOF
17153 /* end confdefs.h. */
17163 rm -f conftest.$ac_objext conftest$ac_exeext
17164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17165 (eval $ac_link) 2>conftest.er1
17167 grep -v '^ *+' conftest.er1 >conftest.err
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } &&
17172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174 (eval $ac_try) 2>&5
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; } &&
17178 { ac_try='test -s conftest$ac_exeext'
17179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17180 (eval $ac_try) 2>&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; }; then
17185 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17187 # Check for a 64-bit object if we didn't find anything.
17188 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; }
17191 echo "$as_me: failed program was:" >&5
17192 sed 's/^/| /' conftest.$ac_ext >&5
17195 rm -f conftest.err conftest.$ac_objext \
17196 conftest$ac_exeext conftest.$ac_ext
17197 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17199 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17200 # Warning - without using the other run time loading flags,
17201 # -berok will link without error, but may produce a broken library.
17202 no_undefined_flag_GCJ=' ${wl}-bernotok'
17203 allow_undefined_flag_GCJ=' ${wl}-berok'
17204 # Exported symbols can be pulled into shared objects from archives
17205 whole_archive_flag_spec_GCJ='$convenience'
17206 archive_cmds_need_lc_GCJ=yes
17207 # This is similar to how AIX traditionally builds its shared libraries.
17208 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'
17214 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)'
17215 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17216 hardcode_minus_L_GCJ=yes
17217 # see comment about different semantics on the GNU ld section
17222 export_dynamic_flag_spec_GCJ=-rdynamic
17225 cygwin* | mingw* | pw32*)
17226 # When not using gcc, we currently assume that we are using
17227 # Microsoft Visual C++.
17228 # hardcode_libdir_flag_spec is actually meaningless, as there is
17229 # no search path for DLLs.
17230 hardcode_libdir_flag_spec_GCJ=' '
17231 allow_undefined_flag_GCJ=unsupported
17232 # Tell ltmain to make .lib files, not .a files.
17234 # Tell ltmain to make .dll files, not .so files.
17236 # FIXME: Setting linknames here is a bad hack.
17237 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17238 # The linker will automatically build a .lib file if we build a DLL.
17239 old_archive_From_new_cmds_GCJ='true'
17240 # FIXME: Should let the user specify the lib program.
17241 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17242 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17243 enable_shared_with_static_runtimes_GCJ=yes
17246 darwin* | rhapsody*)
17248 rhapsody* | darwin1.[012])
17249 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17252 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17253 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17255 case ${MACOSX_DEPLOYMENT_TARGET} in
17257 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17260 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17266 archive_cmds_need_lc_GCJ=no
17267 hardcode_direct_GCJ=no
17268 hardcode_automatic_GCJ=yes
17269 hardcode_shlibpath_var_GCJ=unsupported
17270 whole_archive_flag_spec_GCJ=''
17271 link_all_deplibs_GCJ=yes
17272 if test "$GCC" = yes ; then
17273 output_verbose_link_cmd='echo'
17274 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17275 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17276 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17277 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}'
17278 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}'
17280 case $cc_basename in
17282 output_verbose_link_cmd='echo'
17283 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17284 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17285 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17286 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}'
17287 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}'
17297 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17298 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17299 hardcode_shlibpath_var_GCJ=no
17306 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17307 # support. Future versions do this automatically, but an explicit c++rt0.o
17308 # does not break anything, and helps significantly (at the cost of a little
17311 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17312 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17313 hardcode_direct_GCJ=yes
17314 hardcode_shlibpath_var_GCJ=no
17317 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17319 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17320 hardcode_direct_GCJ=yes
17321 hardcode_minus_L_GCJ=yes
17322 hardcode_shlibpath_var_GCJ=no
17325 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17326 freebsd* | dragonfly*)
17327 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17328 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17329 hardcode_direct_GCJ=yes
17330 hardcode_shlibpath_var_GCJ=no
17333 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
17335 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17336 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17337 hardcode_direct_GCJ=yes
17338 hardcode_shlibpath_var_GCJ=no
17339 link_all_deplibs_GCJ=no
17343 if test "$GCC" = yes; then
17344 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'
17346 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'
17348 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17349 hardcode_libdir_separator_GCJ=:
17350 hardcode_direct_GCJ=yes
17352 # hardcode_minus_L: Not really in the search PATH,
17353 # but as the default location of the library.
17354 hardcode_minus_L_GCJ=yes
17355 export_dynamic_flag_spec_GCJ='${wl}-E'
17359 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17360 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17362 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17364 if test "$with_gnu_ld" = no; then
17365 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17366 hardcode_libdir_separator_GCJ=:
17368 hardcode_direct_GCJ=yes
17369 export_dynamic_flag_spec_GCJ='${wl}-E'
17371 # hardcode_minus_L: Not really in the search PATH,
17372 # but as the default location of the library.
17373 hardcode_minus_L_GCJ=yes
17378 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17381 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17384 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17387 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17393 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17396 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17399 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17403 if test "$with_gnu_ld" = no; then
17404 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17405 hardcode_libdir_separator_GCJ=:
17409 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17410 hardcode_direct_GCJ=no
17411 hardcode_shlibpath_var_GCJ=no
17414 hardcode_direct_GCJ=yes
17415 export_dynamic_flag_spec_GCJ='${wl}-E'
17417 # hardcode_minus_L: Not really in the search PATH,
17418 # but as the default location of the library.
17419 hardcode_minus_L_GCJ=yes
17425 irix5* | irix6* | nonstopux*)
17426 if test "$GCC" = yes; then
17427 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'
17429 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'
17430 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17432 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17433 hardcode_libdir_separator_GCJ=:
17434 link_all_deplibs_GCJ=yes
17437 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17438 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17439 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17441 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17443 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17444 hardcode_direct_GCJ=yes
17445 hardcode_shlibpath_var_GCJ=no
17449 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17450 hardcode_direct_GCJ=yes
17451 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17452 hardcode_libdir_separator_GCJ=:
17453 hardcode_shlibpath_var_GCJ=no
17457 hardcode_direct_GCJ=yes
17458 hardcode_shlibpath_var_GCJ=no
17459 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17460 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17461 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17462 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17463 export_dynamic_flag_spec_GCJ='${wl}-E'
17466 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17467 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17468 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17471 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17472 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17479 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17480 hardcode_minus_L_GCJ=yes
17481 allow_undefined_flag_GCJ=unsupported
17482 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'
17483 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17487 if test "$GCC" = yes; then
17488 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17489 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'
17491 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17492 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'
17494 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17495 hardcode_libdir_separator_GCJ=:
17498 osf4* | osf5*) # as osf3* with the addition of -msym flag
17499 if test "$GCC" = yes; then
17500 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17501 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'
17502 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17504 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17505 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'
17506 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~
17507 $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'
17509 # Both c and cxx compiler support -rpath directly
17510 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17512 hardcode_libdir_separator_GCJ=:
17516 no_undefined_flag_GCJ=' -z text'
17517 if test "$GCC" = yes; then
17519 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17520 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17521 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17524 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17525 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17526 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17528 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17529 hardcode_shlibpath_var_GCJ=no
17531 solaris2.[0-5] | solaris2.[0-5].*) ;;
17533 # The compiler driver will combine linker options so we
17534 # cannot just pass the convience library names through
17535 # without $wl, iff we do not link with $LD.
17536 # Luckily, gcc supports the same syntax we need for Sun Studio.
17537 # Supported since Solaris 2.6 (maybe 2.5.1?)
17540 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17542 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' ;;
17545 link_all_deplibs_GCJ=yes
17549 if test "x$host_vendor" = xsequent; then
17550 # Use $CC to link under sequent, because it throws in some extra .o
17551 # files that make .init and .fini sections work.
17552 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17554 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17556 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17557 hardcode_direct_GCJ=yes
17558 hardcode_minus_L_GCJ=yes
17559 hardcode_shlibpath_var_GCJ=no
17563 case $host_vendor in
17565 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17566 hardcode_direct_GCJ=yes # is this really true???
17569 ## LD is ld it makes a PLAMLIB
17570 ## CC just makes a GrossModule.
17571 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17572 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17573 hardcode_direct_GCJ=no
17576 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17577 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17580 runpath_var='LD_RUN_PATH'
17581 hardcode_shlibpath_var_GCJ=no
17585 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17586 hardcode_shlibpath_var_GCJ=no
17587 export_dynamic_flag_spec_GCJ='-Bexport'
17591 if test -d /usr/nec; then
17592 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17593 hardcode_shlibpath_var_GCJ=no
17594 runpath_var=LD_RUN_PATH
17595 hardcode_runpath_var=yes
17600 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17601 no_undefined_flag_GCJ='${wl}-z,text'
17602 archive_cmds_need_lc_GCJ=no
17603 hardcode_shlibpath_var_GCJ=no
17604 runpath_var='LD_RUN_PATH'
17606 if test "$GCC" = yes; then
17607 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17608 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17610 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17611 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17615 sysv5* | sco3.2v5* | sco5v6*)
17616 # Note: We can NOT use -z defs as we might desire, because we do not
17617 # link with -lc, and that would cause any symbols used from libc to
17618 # always be unresolved, which means just about no library would
17619 # ever link correctly. If we're not using GNU ld we use -z text
17620 # though, which does catch some bad symbols but isn't as heavy-handed
17622 no_undefined_flag_GCJ='${wl}-z,text'
17623 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17624 archive_cmds_need_lc_GCJ=no
17625 hardcode_shlibpath_var_GCJ=no
17626 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17627 hardcode_libdir_separator_GCJ=':'
17628 link_all_deplibs_GCJ=yes
17629 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17630 runpath_var='LD_RUN_PATH'
17632 if test "$GCC" = yes; then
17633 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17634 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17636 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17637 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17642 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17643 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17644 hardcode_shlibpath_var_GCJ=no
17653 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17654 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17655 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17658 # Do we need to explicitly link libc?
17660 case "x$archive_cmds_need_lc_GCJ" in
17662 # Assume -lc should be added
17663 archive_cmds_need_lc_GCJ=yes
17665 if test "$enable_shared" = yes && test "$GCC" = yes; then
17666 case $archive_cmds_GCJ in
17668 # FIXME: we may have to deal with multi-command sequences.
17671 # Test whether the compiler implicitly links with -lc since on some
17672 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17673 # to ld, don't add -lc before -lgcc.
17674 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17675 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17677 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17680 (eval $ac_compile) 2>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } 2>conftest.err; then
17686 libobjs=conftest.$ac_objext
17688 wl=$lt_prog_compiler_wl_GCJ
17689 pic_flag=$lt_prog_compiler_pic_GCJ
17695 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17696 allow_undefined_flag_GCJ=
17697 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17698 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }
17703 archive_cmds_need_lc_GCJ=no
17705 archive_cmds_need_lc_GCJ=yes
17707 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17709 cat conftest.err 1>&5
17712 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17713 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17720 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17721 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17722 library_names_spec=
17723 libname_spec='lib$name'
17727 postuninstall_cmds=
17731 shlibpath_overrides_runpath=unknown
17733 dynamic_linker="$host_os ld.so"
17734 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17735 if test "$GCC" = yes; then
17736 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17737 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17738 # if the path contains ";" then we assume it to be the separator
17739 # otherwise default to the standard path separator (i.e. ":") - it is
17740 # assumed that no part of a normal pathname contains ";" but that should
17741 # okay in the real world where ";" in dirpaths is itself problematic.
17742 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17747 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17749 need_lib_prefix=unknown
17750 hardcode_into_libs=no
17752 # when you set need_version to no, make sure it does not cause -set_version
17753 # flags to be left without arguments
17754 need_version=unknown
17759 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17760 shlibpath_var=LIBPATH
17762 # AIX 3 has no versioning support, so we append a major version to the name.
17763 soname_spec='${libname}${release}${shared_ext}$major'
17770 hardcode_into_libs=yes
17771 if test "$host_cpu" = ia64; then
17772 # AIX 5 supports IA64
17773 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17774 shlibpath_var=LD_LIBRARY_PATH
17776 # With GCC up to 2.95.x, collect2 would create an import file
17777 # for dependence libraries. The import file would start with
17778 # the line `#! .'. This would cause the generated library to
17779 # depend on `.', always an invalid library. This was fixed in
17780 # development snapshots of GCC prior to 3.0.
17782 aix4 | aix4.[01] | aix4.[01].*)
17783 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17785 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17788 can_build_shared=no
17792 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17793 # soname into executable. Probably we can add versioning support to
17794 # collect2, so additional links can be useful in future.
17795 if test "$aix_use_runtimelinking" = yes; then
17796 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17797 # instead of lib<name>.a to let people know that these are not
17798 # typical AIX shared libraries.
17799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17801 # We preserve .a as extension for shared libraries through AIX4.2
17802 # and later when we are not doing run time linking.
17803 library_names_spec='${libname}${release}.a $libname.a'
17804 soname_spec='${libname}${release}${shared_ext}$major'
17806 shlibpath_var=LIBPATH
17811 library_names_spec='$libname.ixlibrary $libname.a'
17812 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17813 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'
17817 library_names_spec='${libname}${shared_ext}'
17818 dynamic_linker="$host_os ld.so"
17819 shlibpath_var=LIBRARY_PATH
17825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17826 soname_spec='${libname}${release}${shared_ext}$major'
17827 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17828 shlibpath_var=LD_LIBRARY_PATH
17829 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17830 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17831 # the default ld.so.conf also contains /usr/contrib/lib and
17832 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17833 # libtool to hard-code these into programs
17836 cygwin* | mingw* | pw32*)
17837 version_type=windows
17842 case $GCC,$host_os in
17843 yes,cygwin* | yes,mingw* | yes,pw32*)
17844 library_names_spec='$libname.dll.a'
17845 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17846 postinstall_cmds='base_file=`basename \${file}`~
17847 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17848 dldir=$destdir/`dirname \$dlpath`~
17849 test -d \$dldir || mkdir -p \$dldir~
17850 $install_prog $dir/$dlname \$dldir/$dlname~
17851 chmod a+x \$dldir/$dlname'
17852 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17853 dlpath=$dir/\$dldll~
17855 shlibpath_overrides_runpath=yes
17859 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17860 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17861 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17864 # MinGW DLLs use traditional 'lib' prefix
17865 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17866 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17867 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17868 # It is most probably a Windows format PATH printed by
17869 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17870 # path with ; separators, and with drive letters. We can handle the
17871 # drive letters (cygwin fileutils understands them), so leave them,
17872 # especially as we might pass files found there to a mingw objdump,
17873 # which wouldn't understand a cygwinified path. Ahh.
17874 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17876 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17880 # pw32 DLLs use 'pw' prefix rather than 'lib'
17881 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17887 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17890 dynamic_linker='Win32 ld.exe'
17891 # FIXME: first we should search . and the directory the executable is in
17895 darwin* | rhapsody*)
17896 dynamic_linker="$host_os dyld"
17897 version_type=darwin
17900 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17901 soname_spec='${libname}${release}${major}$shared_ext'
17902 shlibpath_overrides_runpath=yes
17903 shlibpath_var=DYLD_LIBRARY_PATH
17904 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17905 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17906 if test "$GCC" = yes; then
17907 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"`
17909 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17911 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17919 soname_spec='${libname}${release}${shared_ext}$major'
17920 shlibpath_var=LD_LIBRARY_PATH
17931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17932 soname_spec='${libname}${release}${shared_ext}$major'
17933 shlibpath_var=LD_LIBRARY_PATH
17934 shlibpath_overrides_runpath=no
17935 hardcode_into_libs=yes
17936 dynamic_linker='GNU ld.so'
17939 freebsd* | dragonfly*)
17940 # DragonFly does not have aout. When/if they implement a new
17941 # versioning mechanism, adjust this.
17942 if test -x /usr/bin/objformat; then
17943 objformat=`/usr/bin/objformat`
17946 freebsd[123]*) objformat=aout ;;
17947 *) objformat=elf ;;
17950 version_type=freebsd-$objformat
17951 case $version_type in
17953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17962 shlibpath_var=LD_LIBRARY_PATH
17965 shlibpath_overrides_runpath=yes
17967 freebsd3.[01]* | freebsdelf3.[01]*)
17968 shlibpath_overrides_runpath=yes
17969 hardcode_into_libs=yes
17971 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17972 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17973 shlibpath_overrides_runpath=no
17974 hardcode_into_libs=yes
17976 freebsd*) # from 4.6 on
17977 shlibpath_overrides_runpath=yes
17978 hardcode_into_libs=yes
17987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17988 soname_spec='${libname}${release}${shared_ext}$major'
17989 shlibpath_var=LD_LIBRARY_PATH
17990 hardcode_into_libs=yes
17993 hpux9* | hpux10* | hpux11*)
17994 # Give a soname corresponding to the major version so that dld.sl refuses to
17995 # link against other versions.
18002 hardcode_into_libs=yes
18003 dynamic_linker="$host_os dld.so"
18004 shlibpath_var=LD_LIBRARY_PATH
18005 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18007 soname_spec='${libname}${release}${shared_ext}$major'
18008 if test "X$HPUX_IA64_MODE" = X32; then
18009 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18011 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18013 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18017 hardcode_into_libs=yes
18018 dynamic_linker="$host_os dld.sl"
18019 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18020 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18022 soname_spec='${libname}${release}${shared_ext}$major'
18023 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18024 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18028 dynamic_linker="$host_os dld.sl"
18029 shlibpath_var=SHLIB_PATH
18030 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18032 soname_spec='${libname}${release}${shared_ext}$major'
18035 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18036 postinstall_cmds='chmod 555 $lib'
18043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18044 soname_spec='${libname}${release}${shared_ext}$major'
18045 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18046 shlibpath_var=LD_LIBRARY_PATH
18047 shlibpath_overrides_runpath=no
18048 hardcode_into_libs=yes
18051 irix5* | irix6* | nonstopux*)
18053 nonstopux*) version_type=nonstopux ;;
18055 if test "$lt_cv_prog_gnu_ld" = yes; then
18063 soname_spec='${libname}${release}${shared_ext}$major'
18064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18066 irix5* | nonstopux*)
18067 libsuff= shlibsuff=
18070 case $LD in # libtool.m4 will add one of these switches to LD
18071 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18072 libsuff= shlibsuff= libmagic=32-bit;;
18073 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18074 libsuff=32 shlibsuff=N32 libmagic=N32;;
18075 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18076 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18077 *) libsuff= shlibsuff= libmagic=never-match;;
18081 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18082 shlibpath_overrides_runpath=no
18083 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18084 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18085 hardcode_into_libs=yes
18088 # No shared lib support for Linux oldld, aout, or coff.
18089 linux*oldld* | linux*aout* | linux*coff*)
18093 # This must be Linux ELF.
18098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18099 soname_spec='${libname}${release}${shared_ext}$major'
18100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18101 shlibpath_var=LD_LIBRARY_PATH
18102 shlibpath_overrides_runpath=no
18103 # This implies no fast_install, which is unacceptable.
18104 # Some rework will be needed to allow for fast_install
18105 # before this can be enabled.
18106 hardcode_into_libs=yes
18108 # Append ld.so.conf contents to the search path
18109 if test -f /etc/ld.so.conf; then
18110 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18111 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18114 # We used to test for /lib/ld.so.1 and disable shared libraries on
18115 # powerpc, because MkLinux only supported shared libraries with the
18116 # GNU dynamic linker. Since this was broken with cross compilers,
18117 # most powerpc-linux boxes support dynamic linking these days and
18118 # people can always --disable-shared, the test was removed, and we
18119 # assume the GNU/Linux dynamic linker is in use.
18120 dynamic_linker='GNU/Linux ld.so'
18127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18128 soname_spec='${libname}${release}${shared_ext}$major'
18129 shlibpath_var=LD_LIBRARY_PATH
18130 shlibpath_overrides_runpath=no
18131 hardcode_into_libs=yes
18132 dynamic_linker='NetBSD ld.elf_so'
18139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18140 soname_spec='${libname}${release}${shared_ext}$major'
18141 shlibpath_var=LD_LIBRARY_PATH
18142 shlibpath_overrides_runpath=no
18143 hardcode_into_libs=yes
18144 dynamic_linker='GNU ld.so'
18151 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18153 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18154 dynamic_linker='NetBSD (a.out) ld.so'
18156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18157 soname_spec='${libname}${release}${shared_ext}$major'
18158 dynamic_linker='NetBSD ld.elf_so'
18160 shlibpath_var=LD_LIBRARY_PATH
18161 shlibpath_overrides_runpath=yes
18162 hardcode_into_libs=yes
18167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18168 shlibpath_var=LD_LIBRARY_PATH
18169 shlibpath_overrides_runpath=yes
18176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18177 soname_spec='${libname}${release}${shared_ext}$major'
18178 shlibpath_var=LD_LIBRARY_PATH
18179 shlibpath_overrides_runpath=yes
18184 sys_lib_dlsearch_path_spec="/usr/lib"
18186 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18188 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18189 *) need_version=no ;;
18191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18193 shlibpath_var=LD_LIBRARY_PATH
18194 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18196 openbsd2.[89] | openbsd2.[89].*)
18197 shlibpath_overrides_runpath=no
18200 shlibpath_overrides_runpath=yes
18204 shlibpath_overrides_runpath=yes
18209 libname_spec='$name'
18212 library_names_spec='$libname${shared_ext} $libname.a'
18213 dynamic_linker='OS/2 ld.exe'
18214 shlibpath_var=LIBPATH
18217 osf3* | osf4* | osf5*)
18221 soname_spec='${libname}${release}${shared_ext}$major'
18222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18223 shlibpath_var=LD_LIBRARY_PATH
18224 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18225 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18233 soname_spec='${libname}${release}${shared_ext}$major'
18234 shlibpath_var=LD_LIBRARY_PATH
18235 shlibpath_overrides_runpath=yes
18236 hardcode_into_libs=yes
18237 # ldd complains unless libraries are executable
18238 postinstall_cmds='chmod +x $lib'
18243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18244 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18245 shlibpath_var=LD_LIBRARY_PATH
18246 shlibpath_overrides_runpath=yes
18247 if test "$with_gnu_ld" = yes; then
18255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18256 soname_spec='${libname}${release}${shared_ext}$major'
18257 shlibpath_var=LD_LIBRARY_PATH
18258 case $host_vendor in
18260 shlibpath_overrides_runpath=no
18262 export_dynamic_flag_spec='${wl}-Blargedynsym'
18263 runpath_var=LD_RUN_PATH
18271 shlibpath_overrides_runpath=no
18272 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18278 if test -d /usr/nec ;then
18280 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18281 soname_spec='$libname${shared_ext}.$major'
18282 shlibpath_var=LD_LIBRARY_PATH
18286 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18287 version_type=freebsd-elf
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18291 soname_spec='${libname}${release}${shared_ext}$major'
18292 shlibpath_var=LD_LIBRARY_PATH
18293 hardcode_into_libs=yes
18294 if test "$with_gnu_ld" = yes; then
18295 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18296 shlibpath_overrides_runpath=no
18298 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18299 shlibpath_overrides_runpath=yes
18302 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18306 sys_lib_dlsearch_path_spec='/usr/lib'
18311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18312 soname_spec='${libname}${release}${shared_ext}$major'
18313 shlibpath_var=LD_LIBRARY_PATH
18320 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18321 echo "${ECHO_T}$dynamic_linker" >&6
18322 test "$dynamic_linker" = no && can_build_shared=no
18324 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18325 if test "$GCC" = yes; then
18326 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18329 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18330 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18331 hardcode_action_GCJ=
18332 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18333 test -n "$runpath_var_GCJ" || \
18334 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18336 # We can hardcode non-existant directories.
18337 if test "$hardcode_direct_GCJ" != no &&
18338 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18339 # have to relink, otherwise we might link with an installed library
18340 # when we should be linking with a yet-to-be-installed one
18341 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18342 test "$hardcode_minus_L_GCJ" != no; then
18343 # Linking always hardcodes the temporary library directory.
18344 hardcode_action_GCJ=relink
18346 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18347 hardcode_action_GCJ=immediate
18350 # We cannot hardcode anything, or else we can only hardcode existing
18352 hardcode_action_GCJ=unsupported
18354 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18355 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18357 if test "$hardcode_action_GCJ" = relink; then
18358 # Fast installation is not supported
18359 enable_fast_install=no
18360 elif test "$shlibpath_overrides_runpath" = yes ||
18361 test "$enable_shared" = no; then
18362 # Fast installation is not necessary
18363 enable_fast_install=needless
18367 # The else clause should only fire when bootstrapping the
18368 # libtool distribution, otherwise you forgot to ship ltmain.sh
18369 # with your package, and you will get complaints that there are
18370 # no rules to generate ltmain.sh.
18371 if test -f "$ltmain"; then
18372 # See if we are running on zsh, and set the options which allow our commands through
18373 # without removal of \ escapes.
18374 if test -n "${ZSH_VERSION+set}" ; then
18375 setopt NO_GLOB_SUBST
18377 # Now quote all the things that may contain metacharacters while being
18378 # careful not to overquote the AC_SUBSTed values. We take copies of the
18379 # variables and quote the copies for generation of the libtool script.
18380 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18382 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18383 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18384 deplibs_check_method reload_flag reload_cmds need_locks \
18385 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18386 lt_cv_sys_global_symbol_to_c_name_address \
18387 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18388 old_postinstall_cmds old_postuninstall_cmds \
18392 lt_prog_compiler_wl_GCJ \
18393 lt_prog_compiler_pic_GCJ \
18394 lt_prog_compiler_static_GCJ \
18395 lt_prog_compiler_no_builtin_flag_GCJ \
18396 export_dynamic_flag_spec_GCJ \
18397 thread_safe_flag_spec_GCJ \
18398 whole_archive_flag_spec_GCJ \
18399 enable_shared_with_static_runtimes_GCJ \
18400 old_archive_cmds_GCJ \
18401 old_archive_from_new_cmds_GCJ \
18402 predep_objects_GCJ \
18403 postdep_objects_GCJ \
18406 compiler_lib_search_path_GCJ \
18408 archive_expsym_cmds_GCJ \
18409 postinstall_cmds_GCJ \
18410 postuninstall_cmds_GCJ \
18411 old_archive_from_expsyms_cmds_GCJ \
18412 allow_undefined_flag_GCJ \
18413 no_undefined_flag_GCJ \
18414 export_symbols_cmds_GCJ \
18415 hardcode_libdir_flag_spec_GCJ \
18416 hardcode_libdir_flag_spec_ld_GCJ \
18417 hardcode_libdir_separator_GCJ \
18418 hardcode_automatic_GCJ \
18420 module_expsym_cmds_GCJ \
18421 lt_cv_prog_compiler_c_o_GCJ \
18422 exclude_expsyms_GCJ \
18423 include_expsyms_GCJ; do
18426 old_archive_cmds_GCJ | \
18427 old_archive_from_new_cmds_GCJ | \
18428 archive_cmds_GCJ | \
18429 archive_expsym_cmds_GCJ | \
18430 module_cmds_GCJ | \
18431 module_expsym_cmds_GCJ | \
18432 old_archive_from_expsyms_cmds_GCJ | \
18433 export_symbols_cmds_GCJ | \
18434 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18435 postinstall_cmds | postuninstall_cmds | \
18436 old_postinstall_cmds | old_postuninstall_cmds | \
18437 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18438 # Double-quote double-evaled strings.
18439 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18442 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18448 *'\$0 --fallback-echo"')
18449 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18455 cat <<__EOF__ >> "$cfgfile"
18456 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18458 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18460 # Shell to use when invoking shell scripts.
18463 # Whether or not to build shared libraries.
18464 build_libtool_libs=$enable_shared
18466 # Whether or not to build static libraries.
18467 build_old_libs=$enable_static
18469 # Whether or not to add -lc for building shared libraries.
18470 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18472 # Whether or not to disallow shared libs when runtime libs are static
18473 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18475 # Whether or not to optimize for fast installation.
18476 fast_install=$enable_fast_install
18479 host_alias=$host_alias
18483 # The build system.
18484 build_alias=$build_alias
18488 # An echo program that does not interpret backslashes.
18493 AR_FLAGS=$lt_AR_FLAGS
18498 # LTCC compiler flags.
18499 LTCFLAGS=$lt_LTCFLAGS
18501 # A language-specific compiler.
18502 CC=$lt_compiler_GCJ
18504 # Is the compiler the GNU C compiler?
18510 # The linker used to build libraries.
18513 # Whether we need hard or soft links.
18516 # A BSD-compatible nm program.
18519 # A symbol stripping program
18522 # Used to examine libraries when file_magic_cmd begins "file"
18523 MAGIC_CMD=$MAGIC_CMD
18525 # Used on cygwin: DLL creation program.
18528 # Used on cygwin: object dumper.
18531 # Used on cygwin: assembler.
18534 # The name of the directory that contains temporary libtool files.
18537 # How to create reloadable object files.
18538 reload_flag=$lt_reload_flag
18539 reload_cmds=$lt_reload_cmds
18541 # How to pass a linker flag through the compiler.
18542 wl=$lt_lt_prog_compiler_wl_GCJ
18544 # Object file suffix (normally "o").
18545 objext="$ac_objext"
18547 # Old archive suffix (normally "a").
18550 # Shared library suffix (normally ".so").
18551 shrext_cmds='$shrext_cmds'
18553 # Executable file suffix (normally "").
18556 # Additional compiler flags for building library objects.
18557 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18560 # What is the maximum length of a command?
18561 max_cmd_len=$lt_cv_sys_max_cmd_len
18563 # Does compiler simultaneously support -c and -o options?
18564 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18566 # Must we lock files when doing compilation?
18567 need_locks=$lt_need_locks
18569 # Do we need the lib prefix for modules?
18570 need_lib_prefix=$need_lib_prefix
18572 # Do we need a version for libraries?
18573 need_version=$need_version
18575 # Whether dlopen is supported.
18576 dlopen_support=$enable_dlopen
18578 # Whether dlopen of programs is supported.
18579 dlopen_self=$enable_dlopen_self
18581 # Whether dlopen of statically linked programs is supported.
18582 dlopen_self_static=$enable_dlopen_self_static
18584 # Compiler flag to prevent dynamic linking.
18585 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18587 # Compiler flag to turn off builtin functions.
18588 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18590 # Compiler flag to allow reflexive dlopens.
18591 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18593 # Compiler flag to generate shared objects directly from archives.
18594 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18596 # Compiler flag to generate thread-safe objects.
18597 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18599 # Library versioning type.
18600 version_type=$version_type
18602 # Format of library name prefix.
18603 libname_spec=$lt_libname_spec
18605 # List of archive names. First name is the real one, the rest are links.
18606 # The last name is the one that the linker finds with -lNAME.
18607 library_names_spec=$lt_library_names_spec
18609 # The coded name of the library, if different from the real name.
18610 soname_spec=$lt_soname_spec
18612 # Commands used to build and install an old-style archive.
18614 old_archive_cmds=$lt_old_archive_cmds_GCJ
18615 old_postinstall_cmds=$lt_old_postinstall_cmds
18616 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18618 # Create an old-style archive from a shared archive.
18619 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18621 # Create a temporary old-style archive to link instead of a shared archive.
18622 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18624 # Commands used to build and install a shared archive.
18625 archive_cmds=$lt_archive_cmds_GCJ
18626 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18627 postinstall_cmds=$lt_postinstall_cmds
18628 postuninstall_cmds=$lt_postuninstall_cmds
18630 # Commands used to build a loadable module (assumed same as above if empty)
18631 module_cmds=$lt_module_cmds_GCJ
18632 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18634 # Commands to strip libraries.
18635 old_striplib=$lt_old_striplib
18636 striplib=$lt_striplib
18638 # Dependencies to place before the objects being linked to create a
18640 predep_objects=$lt_predep_objects_GCJ
18642 # Dependencies to place after the objects being linked to create a
18644 postdep_objects=$lt_postdep_objects_GCJ
18646 # Dependencies to place before the objects being linked to create a
18648 predeps=$lt_predeps_GCJ
18650 # Dependencies to place after the objects being linked to create a
18652 postdeps=$lt_postdeps_GCJ
18654 # The library search path used internally by the compiler when linking
18655 # a shared library.
18656 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18658 # Method to check whether dependent libraries are shared objects.
18659 deplibs_check_method=$lt_deplibs_check_method
18661 # Command to use when deplibs_check_method == file_magic.
18662 file_magic_cmd=$lt_file_magic_cmd
18664 # Flag that allows shared libraries with undefined symbols to be built.
18665 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18667 # Flag that forces no undefined symbols.
18668 no_undefined_flag=$lt_no_undefined_flag_GCJ
18670 # Commands used to finish a libtool library installation in a directory.
18671 finish_cmds=$lt_finish_cmds
18673 # Same as above, but a single script fragment to be evaled but not shown.
18674 finish_eval=$lt_finish_eval
18676 # Take the output of nm and produce a listing of raw symbols and C names.
18677 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18679 # Transform the output of nm in a proper C declaration
18680 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18682 # Transform the output of nm in a C name address pair
18683 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18685 # This is the shared library runtime path variable.
18686 runpath_var=$runpath_var
18688 # This is the shared library path variable.
18689 shlibpath_var=$shlibpath_var
18691 # Is shlibpath searched before the hard-coded library search path?
18692 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18694 # How to hardcode a shared library path into an executable.
18695 hardcode_action=$hardcode_action_GCJ
18697 # Whether we should hardcode library paths into libraries.
18698 hardcode_into_libs=$hardcode_into_libs
18700 # Flag to hardcode \$libdir into a binary during linking.
18701 # This must work even if \$libdir does not exist.
18702 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18704 # If ld is used when linking, flag to hardcode \$libdir into
18705 # a binary during linking. This must work even if \$libdir does
18707 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18709 # Whether we need a single -rpath flag with a separated argument.
18710 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18712 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18713 # resulting binary.
18714 hardcode_direct=$hardcode_direct_GCJ
18716 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18717 # resulting binary.
18718 hardcode_minus_L=$hardcode_minus_L_GCJ
18720 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18721 # the resulting binary.
18722 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18724 # Set to yes if building a shared library automatically hardcodes DIR into the library
18725 # and all subsequent libraries and executables linked against it.
18726 hardcode_automatic=$hardcode_automatic_GCJ
18728 # Variables whose values should be saved in libtool wrapper scripts and
18729 # restored at relink time.
18730 variables_saved_for_relink="$variables_saved_for_relink"
18732 # Whether libtool must link a program against all its dependency libraries.
18733 link_all_deplibs=$link_all_deplibs_GCJ
18735 # Compile-time system search path for libraries
18736 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18738 # Run-time system search path for libraries
18739 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18741 # Fix the shell variable \$srcfile for the compiler.
18742 fix_srcfile_path="$fix_srcfile_path_GCJ"
18744 # Set to yes if exported symbols are required.
18745 always_export_symbols=$always_export_symbols_GCJ
18747 # The commands to list exported symbols.
18748 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18750 # The commands to extract the exported symbol list from a shared archive.
18751 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18753 # Symbols that should not be listed in the preloaded symbols.
18754 exclude_expsyms=$lt_exclude_expsyms_GCJ
18756 # Symbols that must always be exported.
18757 include_expsyms=$lt_include_expsyms_GCJ
18759 # ### END LIBTOOL TAG CONFIG: $tagname
18765 # If there is no Makefile yet, we rely on a make rule to execute
18766 # `config.status --recheck' to rerun these tests and create the
18767 # libtool script then.
18768 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18769 if test -f "$ltmain_in"; then
18770 test -f Makefile && make "$ltmain"
18776 ac_cpp='$CPP $CPPFLAGS'
18777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18792 # Source file extension for RC test sources.
18795 # Object file extension for compiled RC test sources.
18799 # Code to be used in simple compile tests
18800 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18802 # Code to be used in simple link tests
18803 lt_simple_link_test_code="$lt_simple_compile_test_code"
18805 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18807 # If no C compiler was specified, use CC.
18810 # If no C compiler flags were specified, use CFLAGS.
18811 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18813 # Allow CC to be a program name with arguments.
18817 # save warnings/boilerplate of simple test code
18818 ac_outfile=conftest.$ac_objext
18819 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18820 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18821 _lt_compiler_boilerplate=`cat conftest.err`
18824 ac_outfile=conftest.$ac_objext
18825 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18826 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18827 _lt_linker_boilerplate=`cat conftest.err`
18831 # Allow CC to be a program name with arguments.
18836 for cc_temp in $compiler""; do
18838 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18839 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18844 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18846 lt_cv_prog_compiler_c_o_RC=yes
18848 # The else clause should only fire when bootstrapping the
18849 # libtool distribution, otherwise you forgot to ship ltmain.sh
18850 # with your package, and you will get complaints that there are
18851 # no rules to generate ltmain.sh.
18852 if test -f "$ltmain"; then
18853 # See if we are running on zsh, and set the options which allow our commands through
18854 # without removal of \ escapes.
18855 if test -n "${ZSH_VERSION+set}" ; then
18856 setopt NO_GLOB_SUBST
18858 # Now quote all the things that may contain metacharacters while being
18859 # careful not to overquote the AC_SUBSTed values. We take copies of the
18860 # variables and quote the copies for generation of the libtool script.
18861 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18863 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18864 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18865 deplibs_check_method reload_flag reload_cmds need_locks \
18866 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18867 lt_cv_sys_global_symbol_to_c_name_address \
18868 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18869 old_postinstall_cmds old_postuninstall_cmds \
18873 lt_prog_compiler_wl_RC \
18874 lt_prog_compiler_pic_RC \
18875 lt_prog_compiler_static_RC \
18876 lt_prog_compiler_no_builtin_flag_RC \
18877 export_dynamic_flag_spec_RC \
18878 thread_safe_flag_spec_RC \
18879 whole_archive_flag_spec_RC \
18880 enable_shared_with_static_runtimes_RC \
18881 old_archive_cmds_RC \
18882 old_archive_from_new_cmds_RC \
18883 predep_objects_RC \
18884 postdep_objects_RC \
18887 compiler_lib_search_path_RC \
18889 archive_expsym_cmds_RC \
18890 postinstall_cmds_RC \
18891 postuninstall_cmds_RC \
18892 old_archive_from_expsyms_cmds_RC \
18893 allow_undefined_flag_RC \
18894 no_undefined_flag_RC \
18895 export_symbols_cmds_RC \
18896 hardcode_libdir_flag_spec_RC \
18897 hardcode_libdir_flag_spec_ld_RC \
18898 hardcode_libdir_separator_RC \
18899 hardcode_automatic_RC \
18901 module_expsym_cmds_RC \
18902 lt_cv_prog_compiler_c_o_RC \
18903 exclude_expsyms_RC \
18904 include_expsyms_RC; do
18907 old_archive_cmds_RC | \
18908 old_archive_from_new_cmds_RC | \
18909 archive_cmds_RC | \
18910 archive_expsym_cmds_RC | \
18912 module_expsym_cmds_RC | \
18913 old_archive_from_expsyms_cmds_RC | \
18914 export_symbols_cmds_RC | \
18915 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18916 postinstall_cmds | postuninstall_cmds | \
18917 old_postinstall_cmds | old_postuninstall_cmds | \
18918 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18919 # Double-quote double-evaled strings.
18920 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18923 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18929 *'\$0 --fallback-echo"')
18930 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18936 cat <<__EOF__ >> "$cfgfile"
18937 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18939 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18941 # Shell to use when invoking shell scripts.
18944 # Whether or not to build shared libraries.
18945 build_libtool_libs=$enable_shared
18947 # Whether or not to build static libraries.
18948 build_old_libs=$enable_static
18950 # Whether or not to add -lc for building shared libraries.
18951 build_libtool_need_lc=$archive_cmds_need_lc_RC
18953 # Whether or not to disallow shared libs when runtime libs are static
18954 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18956 # Whether or not to optimize for fast installation.
18957 fast_install=$enable_fast_install
18960 host_alias=$host_alias
18964 # The build system.
18965 build_alias=$build_alias
18969 # An echo program that does not interpret backslashes.
18974 AR_FLAGS=$lt_AR_FLAGS
18979 # LTCC compiler flags.
18980 LTCFLAGS=$lt_LTCFLAGS
18982 # A language-specific compiler.
18985 # Is the compiler the GNU C compiler?
18991 # The linker used to build libraries.
18994 # Whether we need hard or soft links.
18997 # A BSD-compatible nm program.
19000 # A symbol stripping program
19003 # Used to examine libraries when file_magic_cmd begins "file"
19004 MAGIC_CMD=$MAGIC_CMD
19006 # Used on cygwin: DLL creation program.
19009 # Used on cygwin: object dumper.
19012 # Used on cygwin: assembler.
19015 # The name of the directory that contains temporary libtool files.
19018 # How to create reloadable object files.
19019 reload_flag=$lt_reload_flag
19020 reload_cmds=$lt_reload_cmds
19022 # How to pass a linker flag through the compiler.
19023 wl=$lt_lt_prog_compiler_wl_RC
19025 # Object file suffix (normally "o").
19026 objext="$ac_objext"
19028 # Old archive suffix (normally "a").
19031 # Shared library suffix (normally ".so").
19032 shrext_cmds='$shrext_cmds'
19034 # Executable file suffix (normally "").
19037 # Additional compiler flags for building library objects.
19038 pic_flag=$lt_lt_prog_compiler_pic_RC
19041 # What is the maximum length of a command?
19042 max_cmd_len=$lt_cv_sys_max_cmd_len
19044 # Does compiler simultaneously support -c and -o options?
19045 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19047 # Must we lock files when doing compilation?
19048 need_locks=$lt_need_locks
19050 # Do we need the lib prefix for modules?
19051 need_lib_prefix=$need_lib_prefix
19053 # Do we need a version for libraries?
19054 need_version=$need_version
19056 # Whether dlopen is supported.
19057 dlopen_support=$enable_dlopen
19059 # Whether dlopen of programs is supported.
19060 dlopen_self=$enable_dlopen_self
19062 # Whether dlopen of statically linked programs is supported.
19063 dlopen_self_static=$enable_dlopen_self_static
19065 # Compiler flag to prevent dynamic linking.
19066 link_static_flag=$lt_lt_prog_compiler_static_RC
19068 # Compiler flag to turn off builtin functions.
19069 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19071 # Compiler flag to allow reflexive dlopens.
19072 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19074 # Compiler flag to generate shared objects directly from archives.
19075 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19077 # Compiler flag to generate thread-safe objects.
19078 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19080 # Library versioning type.
19081 version_type=$version_type
19083 # Format of library name prefix.
19084 libname_spec=$lt_libname_spec
19086 # List of archive names. First name is the real one, the rest are links.
19087 # The last name is the one that the linker finds with -lNAME.
19088 library_names_spec=$lt_library_names_spec
19090 # The coded name of the library, if different from the real name.
19091 soname_spec=$lt_soname_spec
19093 # Commands used to build and install an old-style archive.
19095 old_archive_cmds=$lt_old_archive_cmds_RC
19096 old_postinstall_cmds=$lt_old_postinstall_cmds
19097 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19099 # Create an old-style archive from a shared archive.
19100 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19102 # Create a temporary old-style archive to link instead of a shared archive.
19103 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19105 # Commands used to build and install a shared archive.
19106 archive_cmds=$lt_archive_cmds_RC
19107 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19108 postinstall_cmds=$lt_postinstall_cmds
19109 postuninstall_cmds=$lt_postuninstall_cmds
19111 # Commands used to build a loadable module (assumed same as above if empty)
19112 module_cmds=$lt_module_cmds_RC
19113 module_expsym_cmds=$lt_module_expsym_cmds_RC
19115 # Commands to strip libraries.
19116 old_striplib=$lt_old_striplib
19117 striplib=$lt_striplib
19119 # Dependencies to place before the objects being linked to create a
19121 predep_objects=$lt_predep_objects_RC
19123 # Dependencies to place after the objects being linked to create a
19125 postdep_objects=$lt_postdep_objects_RC
19127 # Dependencies to place before the objects being linked to create a
19129 predeps=$lt_predeps_RC
19131 # Dependencies to place after the objects being linked to create a
19133 postdeps=$lt_postdeps_RC
19135 # The library search path used internally by the compiler when linking
19136 # a shared library.
19137 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19139 # Method to check whether dependent libraries are shared objects.
19140 deplibs_check_method=$lt_deplibs_check_method
19142 # Command to use when deplibs_check_method == file_magic.
19143 file_magic_cmd=$lt_file_magic_cmd
19145 # Flag that allows shared libraries with undefined symbols to be built.
19146 allow_undefined_flag=$lt_allow_undefined_flag_RC
19148 # Flag that forces no undefined symbols.
19149 no_undefined_flag=$lt_no_undefined_flag_RC
19151 # Commands used to finish a libtool library installation in a directory.
19152 finish_cmds=$lt_finish_cmds
19154 # Same as above, but a single script fragment to be evaled but not shown.
19155 finish_eval=$lt_finish_eval
19157 # Take the output of nm and produce a listing of raw symbols and C names.
19158 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19160 # Transform the output of nm in a proper C declaration
19161 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19163 # Transform the output of nm in a C name address pair
19164 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19166 # This is the shared library runtime path variable.
19167 runpath_var=$runpath_var
19169 # This is the shared library path variable.
19170 shlibpath_var=$shlibpath_var
19172 # Is shlibpath searched before the hard-coded library search path?
19173 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19175 # How to hardcode a shared library path into an executable.
19176 hardcode_action=$hardcode_action_RC
19178 # Whether we should hardcode library paths into libraries.
19179 hardcode_into_libs=$hardcode_into_libs
19181 # Flag to hardcode \$libdir into a binary during linking.
19182 # This must work even if \$libdir does not exist.
19183 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19185 # If ld is used when linking, flag to hardcode \$libdir into
19186 # a binary during linking. This must work even if \$libdir does
19188 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19190 # Whether we need a single -rpath flag with a separated argument.
19191 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19193 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19194 # resulting binary.
19195 hardcode_direct=$hardcode_direct_RC
19197 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19198 # resulting binary.
19199 hardcode_minus_L=$hardcode_minus_L_RC
19201 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19202 # the resulting binary.
19203 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19205 # Set to yes if building a shared library automatically hardcodes DIR into the library
19206 # and all subsequent libraries and executables linked against it.
19207 hardcode_automatic=$hardcode_automatic_RC
19209 # Variables whose values should be saved in libtool wrapper scripts and
19210 # restored at relink time.
19211 variables_saved_for_relink="$variables_saved_for_relink"
19213 # Whether libtool must link a program against all its dependency libraries.
19214 link_all_deplibs=$link_all_deplibs_RC
19216 # Compile-time system search path for libraries
19217 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19219 # Run-time system search path for libraries
19220 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19222 # Fix the shell variable \$srcfile for the compiler.
19223 fix_srcfile_path="$fix_srcfile_path_RC"
19225 # Set to yes if exported symbols are required.
19226 always_export_symbols=$always_export_symbols_RC
19228 # The commands to list exported symbols.
19229 export_symbols_cmds=$lt_export_symbols_cmds_RC
19231 # The commands to extract the exported symbol list from a shared archive.
19232 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19234 # Symbols that should not be listed in the preloaded symbols.
19235 exclude_expsyms=$lt_exclude_expsyms_RC
19237 # Symbols that must always be exported.
19238 include_expsyms=$lt_include_expsyms_RC
19240 # ### END LIBTOOL TAG CONFIG: $tagname
19246 # If there is no Makefile yet, we rely on a make rule to execute
19247 # `config.status --recheck' to rerun these tests and create the
19248 # libtool script then.
19249 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19250 if test -f "$ltmain_in"; then
19251 test -f Makefile && make "$ltmain"
19257 ac_cpp='$CPP $CPPFLAGS'
19258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19267 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19268 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19269 { (exit 1); exit 1; }; }
19273 # Append the new tag name to the list of available tags.
19274 if test -n "$tagname" ; then
19275 available_tags="$available_tags $tagname"
19281 # Now substitute the updated list of available tags.
19282 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19283 mv "${ofile}T" "$ofile"
19287 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19288 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19289 { (exit 1); exit 1; }; }
19295 # This can be used to rebuild libtool when needed
19296 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19298 # Always use our own libtool.
19299 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19301 # Prevent multiple expansion
19323 ac_config_files="$ac_config_files Makefile json.pc"
19324 cat >confcache <<\_ACEOF
19325 # This file is a shell script that caches the results of configure
19326 # tests run on this system so they can be shared between configure
19327 # scripts and configure runs, see configure's option --config-cache.
19328 # It is not useful on other systems. If it contains results you don't
19329 # want to keep, you may remove or edit it.
19331 # config.status only pays attention to the cache file if you give it
19332 # the --recheck option to rerun configure.
19334 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19335 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19336 # following values.
19340 # The following way of writing the cache mishandles newlines in values,
19341 # but we know of no workaround that is simple, portable, and efficient.
19342 # So, don't put newlines in cache variables' values.
19343 # Ultrix sh set writes to stderr and can't be redirected directly,
19344 # and sets the high bit in the cache file unless we assign to the vars.
19347 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19349 # `set' does not quote correctly, so add quotes (double-quote
19350 # substitution turns \\\\ into \\, and sed turns \\ into \).
19353 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19356 # `set' quotes correctly as required by POSIX, so do not add quotes.
19358 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19365 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19367 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19369 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19370 if test -w $cache_file; then
19371 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19372 cat confcache >$cache_file
19374 echo "not updating unwritable cache $cache_file"
19379 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19380 # Let make expand exec_prefix.
19381 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19383 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19384 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19385 # trailing colons and then remove the whole line if VPATH becomes empty
19386 # (actually we leave an empty line to preserve line numbers).
19387 if test "x$srcdir" = x.; then
19388 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19389 s/:*\$(srcdir):*/:/;
19390 s/:*\${srcdir}:*/:/;
19392 s/^\([^=]*=[ ]*\):*/\1/;
19398 DEFS=-DHAVE_CONFIG_H
19402 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19403 # 1. Remove the extension, and $U if already installed.
19404 ac_i=`echo "$ac_i" |
19405 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19407 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19408 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19410 LIBOBJS=$ac_libobjs
19412 LTLIBOBJS=$ac_ltlibobjs
19416 : ${CONFIG_STATUS=./config.status}
19417 ac_clean_files_save=$ac_clean_files
19418 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19419 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19420 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19421 cat >$CONFIG_STATUS <<_ACEOF
19423 # Generated by $as_me.
19424 # Run this file to recreate the current configuration.
19425 # Compiler output produced by configure, useful for debugging
19426 # configure, is in config.log if it exists.
19429 ac_cs_recheck=false
19431 SHELL=\${CONFIG_SHELL-$SHELL}
19434 cat >>$CONFIG_STATUS <<\_ACEOF
19435 ## --------------------- ##
19436 ## M4sh Initialization. ##
19437 ## --------------------- ##
19439 # Be Bourne compatible
19440 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19443 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19444 # is contrary to our usage. Disable this feature.
19445 alias -g '${1+"$@"}'='"$@"'
19446 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19449 DUALCASE=1; export DUALCASE # for MKS sh
19451 # Support unset when possible.
19452 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19459 # Work around bugs in pre-3.0 UWIN ksh.
19460 $as_unset ENV MAIL MAILPATH
19467 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19468 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19469 LC_TELEPHONE LC_TIME
19471 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19472 eval $as_var=C; export $as_var
19478 # Required to use basename.
19479 if expr a : '\(a\)' >/dev/null 2>&1; then
19485 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19486 as_basename=basename
19492 # Name of the executable.
19493 as_me=`$as_basename "$0" ||
19494 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19495 X"$0" : 'X\(//\)$' \| \
19496 X"$0" : 'X\(/\)$' \| \
19497 . : '\(.\)' 2>/dev/null ||
19499 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19500 /^X\/\(\/\/\)$/{ s//\1/; q; }
19501 /^X\/\(\/\).*/{ s//\1/; q; }
19505 # PATH needs CR, and LINENO needs CR and PATH.
19506 # Avoid depending upon Character Ranges.
19507 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19508 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19509 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19510 as_cr_digits='0123456789'
19511 as_cr_alnum=$as_cr_Letters$as_cr_digits
19513 # The user is always right.
19514 if test "${PATH_SEPARATOR+set}" != set; then
19515 echo "#! /bin/sh" >conf$$.sh
19516 echo "exit 0" >>conf$$.sh
19518 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19527 as_lineno_1=$LINENO
19528 as_lineno_2=$LINENO
19529 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19530 test "x$as_lineno_1" != "x$as_lineno_2" &&
19531 test "x$as_lineno_3" = "x$as_lineno_2" || {
19532 # Find who we are. Look in the path if we contain no path at all
19535 *[\\/]* ) as_myself=$0 ;;
19536 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19537 for as_dir in $PATH
19540 test -z "$as_dir" && as_dir=.
19541 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19546 # We did not find ourselves, most probably we were run as `sh COMMAND'
19547 # in which case we are not to be found in the path.
19548 if test "x$as_myself" = x; then
19551 if test ! -f "$as_myself"; then
19552 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19553 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19554 { (exit 1); exit 1; }; }
19556 case $CONFIG_SHELL in
19558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19559 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19562 test -z "$as_dir" && as_dir=.
19563 for as_base in sh bash ksh sh5; do
19566 if ("$as_dir/$as_base" -c '
19567 as_lineno_1=$LINENO
19568 as_lineno_2=$LINENO
19569 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19570 test "x$as_lineno_1" != "x$as_lineno_2" &&
19571 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19572 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19573 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19574 CONFIG_SHELL=$as_dir/$as_base
19575 export CONFIG_SHELL
19576 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19584 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19585 # uniformly replaced by the line number. The first 'sed' inserts a
19586 # line-number line before each line; the second 'sed' does the real
19587 # work. The second script uses 'N' to pair each line-number line
19588 # with the numbered line, and appends trailing '-' during
19589 # substitution so that $LINENO is not a special case at line end.
19590 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19591 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19592 sed '=' <$as_myself |
19597 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19600 s,^['$as_cr_digits']*\n,,
19601 ' >$as_me.lineno &&
19602 chmod +x $as_me.lineno ||
19603 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19604 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19605 { (exit 1); exit 1; }; }
19607 # Don't try to exec as it changes $[0], causing all sort of problems
19608 # (the dirname of $[0] is not the place where we might find the
19609 # original and so on. Autoconf is especially sensible to this).
19611 # Exit status is that of the last command.
19616 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19617 *c*,-n*) ECHO_N= ECHO_C='
19619 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19620 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19623 if expr a : '\(a\)' >/dev/null 2>&1; then
19629 rm -f conf$$ conf$$.exe conf$$.file
19631 if ln -s conf$$.file conf$$ 2>/dev/null; then
19632 # We could just check for DJGPP; but this test a) works b) is more generic
19633 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19634 if test -f conf$$.exe; then
19635 # Don't use ln at all; we don't have any links
19640 elif ln conf$$.file conf$$ 2>/dev/null; then
19645 rm -f conf$$ conf$$.exe conf$$.file
19647 if mkdir -p . 2>/dev/null; then
19650 test -d ./-p && rmdir ./-p
19654 as_executable_p="test -f"
19656 # Sed expression to map a string onto a valid CPP name.
19657 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19659 # Sed expression to map a string onto a valid variable name.
19660 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19664 # We need space, tab and new line, in precisely that order.
19674 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19675 # report actual input values of CONFIG_FILES etc. instead of their
19676 # values after options handling. Logging --version etc. is OK.
19680 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19681 ## Running $as_me. ##
19686 This file was extended by JSON C Library $as_me 0.3, which was
19687 generated by GNU Autoconf 2.59. Invocation command line was
19689 CONFIG_FILES = $CONFIG_FILES
19690 CONFIG_HEADERS = $CONFIG_HEADERS
19691 CONFIG_LINKS = $CONFIG_LINKS
19692 CONFIG_COMMANDS = $CONFIG_COMMANDS
19696 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19700 # Files that config.status was made for.
19701 if test -n "$ac_config_files"; then
19702 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19705 if test -n "$ac_config_headers"; then
19706 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19709 if test -n "$ac_config_links"; then
19710 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19713 if test -n "$ac_config_commands"; then
19714 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19717 cat >>$CONFIG_STATUS <<\_ACEOF
19720 \`$as_me' instantiates files from templates according to the
19721 current configuration.
19723 Usage: $0 [OPTIONS] [FILE]...
19725 -h, --help print this help, then exit
19726 -V, --version print version number, then exit
19727 -q, --quiet do not print progress messages
19728 -d, --debug don't remove temporary files
19729 --recheck update $as_me by reconfiguring in the same conditions
19730 --file=FILE[:TEMPLATE]
19731 instantiate the configuration file FILE
19732 --header=FILE[:TEMPLATE]
19733 instantiate the configuration header FILE
19735 Configuration files:
19738 Configuration headers:
19741 Configuration commands:
19744 Report bugs to <bug-autoconf@gnu.org>."
19747 cat >>$CONFIG_STATUS <<_ACEOF
19749 JSON C Library config.status 0.3
19750 configured by $0, generated by GNU Autoconf 2.59,
19751 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19753 Copyright (C) 2003 Free Software Foundation, Inc.
19754 This config.status script is free software; the Free Software Foundation
19755 gives unlimited permission to copy, distribute and modify it."
19760 cat >>$CONFIG_STATUS <<\_ACEOF
19761 # If no file are specified by the user, then we need to provide default
19762 # value. By we need to know if files were specified by the user.
19768 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19769 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19777 *) # This is not an option, so the user has probably given explicit
19780 ac_need_defaults=false;;
19784 # Handling of the options.
19786 cat >>$CONFIG_STATUS <<\_ACEOF
19787 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19789 --version | --vers* | -V )
19790 echo "$ac_cs_version"; exit 0 ;;
19792 # Conflict between --help and --header
19793 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19794 Try \`$0 --help' for more information." >&5
19795 echo "$as_me: error: ambiguous option: $1
19796 Try \`$0 --help' for more information." >&2;}
19797 { (exit 1); exit 1; }; };;
19798 --help | --hel | -h )
19799 echo "$ac_cs_usage"; exit 0 ;;
19800 --debug | --d* | -d )
19802 --file | --fil | --fi | --f )
19804 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19805 ac_need_defaults=false;;
19806 --header | --heade | --head | --hea )
19808 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19809 ac_need_defaults=false;;
19810 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19811 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19814 # This is an error.
19815 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19816 Try \`$0 --help' for more information." >&5
19817 echo "$as_me: error: unrecognized option: $1
19818 Try \`$0 --help' for more information." >&2;}
19819 { (exit 1); exit 1; }; } ;;
19821 *) ac_config_targets="$ac_config_targets $1" ;;
19827 ac_configure_extra_args=
19829 if $ac_cs_silent; then
19831 ac_configure_extra_args="$ac_configure_extra_args --silent"
19835 cat >>$CONFIG_STATUS <<_ACEOF
19836 if \$ac_cs_recheck; then
19837 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19838 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19843 cat >>$CONFIG_STATUS <<_ACEOF
19845 # INIT-COMMANDS section.
19854 cat >>$CONFIG_STATUS <<\_ACEOF
19855 for ac_config_target in $ac_config_targets
19857 case "$ac_config_target" in
19858 # Handling of arguments.
19859 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19860 "json.pc" ) CONFIG_FILES="$CONFIG_FILES json.pc" ;;
19861 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19862 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19863 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19864 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19865 { (exit 1); exit 1; }; };;
19869 # If the user did not use the arguments to specify the items to instantiate,
19870 # then the envvar interface is used. Set only those that are not.
19871 # We use the long form for the default assignment because of an extremely
19872 # bizarre bug on SunOS 4.1.3.
19873 if $ac_need_defaults; then
19874 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19875 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19876 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19879 # Have a temporary directory for convenience. Make it in the build tree
19880 # simply because there is no reason to put it here, and in addition,
19881 # creating and moving files from /tmp can sometimes cause problems.
19882 # Create a temporary directory, and hook for its removal unless debugging.
19885 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19886 trap '{ (exit 1); exit 1; }' 1 2 13 15
19889 # Create a (secure) tmp directory for tmp files.
19892 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19893 test -n "$tmp" && test -d "$tmp"
19896 tmp=./confstat$$-$RANDOM
19897 (umask 077 && mkdir $tmp)
19900 echo "$me: cannot create a temporary directory in ." >&2
19901 { (exit 1); exit 1; }
19906 cat >>$CONFIG_STATUS <<_ACEOF
19909 # CONFIG_FILES section.
19912 # No need to generate the scripts if there are no CONFIG_FILES.
19913 # This happens for instance when ./config.status config.h
19914 if test -n "\$CONFIG_FILES"; then
19915 # Protect against being on the right side of a sed subst in config.status.
19916 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19917 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19918 s,@SHELL@,$SHELL,;t t
19919 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19920 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19921 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19922 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19923 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19924 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19925 s,@exec_prefix@,$exec_prefix,;t t
19926 s,@prefix@,$prefix,;t t
19927 s,@program_transform_name@,$program_transform_name,;t t
19928 s,@bindir@,$bindir,;t t
19929 s,@sbindir@,$sbindir,;t t
19930 s,@libexecdir@,$libexecdir,;t t
19931 s,@datadir@,$datadir,;t t
19932 s,@sysconfdir@,$sysconfdir,;t t
19933 s,@sharedstatedir@,$sharedstatedir,;t t
19934 s,@localstatedir@,$localstatedir,;t t
19935 s,@libdir@,$libdir,;t t
19936 s,@includedir@,$includedir,;t t
19937 s,@oldincludedir@,$oldincludedir,;t t
19938 s,@infodir@,$infodir,;t t
19939 s,@mandir@,$mandir,;t t
19940 s,@build_alias@,$build_alias,;t t
19941 s,@host_alias@,$host_alias,;t t
19942 s,@target_alias@,$target_alias,;t t
19943 s,@DEFS@,$DEFS,;t t
19944 s,@ECHO_C@,$ECHO_C,;t t
19945 s,@ECHO_N@,$ECHO_N,;t t
19946 s,@ECHO_T@,$ECHO_T,;t t
19947 s,@LIBS@,$LIBS,;t t
19948 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19949 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19950 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19951 s,@PACKAGE@,$PACKAGE,;t t
19952 s,@VERSION@,$VERSION,;t t
19953 s,@ACLOCAL@,$ACLOCAL,;t t
19954 s,@AUTOCONF@,$AUTOCONF,;t t
19955 s,@AUTOMAKE@,$AUTOMAKE,;t t
19956 s,@AUTOHEADER@,$AUTOHEADER,;t t
19957 s,@MAKEINFO@,$MAKEINFO,;t t
19958 s,@SET_MAKE@,$SET_MAKE,;t t
19960 s,@CFLAGS@,$CFLAGS,;t t
19961 s,@LDFLAGS@,$LDFLAGS,;t t
19962 s,@CPPFLAGS@,$CPPFLAGS,;t t
19963 s,@ac_ct_CC@,$ac_ct_CC,;t t
19964 s,@EXEEXT@,$EXEEXT,;t t
19965 s,@OBJEXT@,$OBJEXT,;t t
19967 s,@EGREP@,$EGREP,;t t
19968 s,@LIBOBJS@,$LIBOBJS,;t t
19969 s,@build@,$build,;t t
19970 s,@build_cpu@,$build_cpu,;t t
19971 s,@build_vendor@,$build_vendor,;t t
19972 s,@build_os@,$build_os,;t t
19973 s,@host@,$host,;t t
19974 s,@host_cpu@,$host_cpu,;t t
19975 s,@host_vendor@,$host_vendor,;t t
19976 s,@host_os@,$host_os,;t t
19977 s,@LN_S@,$LN_S,;t t
19978 s,@ECHO@,$ECHO,;t t
19980 s,@ac_ct_AR@,$ac_ct_AR,;t t
19981 s,@RANLIB@,$RANLIB,;t t
19982 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19983 s,@STRIP@,$STRIP,;t t
19984 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19986 s,@CXXFLAGS@,$CXXFLAGS,;t t
19987 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19988 s,@CXXCPP@,$CXXCPP,;t t
19990 s,@FFLAGS@,$FFLAGS,;t t
19991 s,@ac_ct_F77@,$ac_ct_F77,;t t
19992 s,@LIBTOOL@,$LIBTOOL,;t t
19993 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19998 cat >>$CONFIG_STATUS <<\_ACEOF
19999 # Split the substitutions into bite-sized pieces for seds with
20000 # small command number limits, like on Digital OSF/1 and HP-UX.
20001 ac_max_sed_lines=48
20002 ac_sed_frag=1 # Number of current file.
20003 ac_beg=1 # First line for current file.
20004 ac_end=$ac_max_sed_lines # Line after last line for current file.
20007 while $ac_more_lines; do
20008 if test $ac_beg -gt 1; then
20009 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20011 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20013 if test ! -s $tmp/subs.frag; then
20014 ac_more_lines=false
20016 # The purpose of the label and of the branching condition is to
20017 # speed up the sed processing (if there are no `@' at all, there
20018 # is no need to browse any of the substitutions).
20019 # These are the two extra sed commands mentioned above.
20021 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20022 if test -z "$ac_sed_cmds"; then
20023 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20025 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20027 ac_sed_frag=`expr $ac_sed_frag + 1`
20029 ac_end=`expr $ac_end + $ac_max_sed_lines`
20032 if test -z "$ac_sed_cmds"; then
20035 fi # test -n "$CONFIG_FILES"
20038 cat >>$CONFIG_STATUS <<\_ACEOF
20039 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20040 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20042 - | *:- | *:-:* ) # input from stdin
20044 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20045 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20046 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20047 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20048 * ) ac_file_in=$ac_file.in ;;
20051 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20052 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20053 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20054 X"$ac_file" : 'X\(//\)[^/]' \| \
20055 X"$ac_file" : 'X\(//\)$' \| \
20056 X"$ac_file" : 'X\(/\)' \| \
20057 . : '\(.\)' 2>/dev/null ||
20059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20060 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20061 /^X\(\/\/\)$/{ s//\1/; q; }
20062 /^X\(\/\).*/{ s//\1/; q; }
20064 { if $as_mkdir_p; then
20069 while test ! -d "$as_dir"; do
20070 as_dirs="$as_dir $as_dirs"
20071 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20072 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20073 X"$as_dir" : 'X\(//\)[^/]' \| \
20074 X"$as_dir" : 'X\(//\)$' \| \
20075 X"$as_dir" : 'X\(/\)' \| \
20076 . : '\(.\)' 2>/dev/null ||
20078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20079 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20080 /^X\(\/\/\)$/{ s//\1/; q; }
20081 /^X\(\/\).*/{ s//\1/; q; }
20084 test ! -n "$as_dirs" || mkdir $as_dirs
20085 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20086 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20087 { (exit 1); exit 1; }; }; }
20091 if test "$ac_dir" != .; then
20092 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20093 # A "../" for each directory in $ac_dir_suffix.
20094 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20096 ac_dir_suffix= ac_top_builddir=
20100 .) # No --srcdir option. We are building in place.
20102 if test -z "$ac_top_builddir"; then
20105 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20107 [\\/]* | ?:[\\/]* ) # Absolute path.
20108 ac_srcdir=$srcdir$ac_dir_suffix;
20109 ac_top_srcdir=$srcdir ;;
20110 *) # Relative path.
20111 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20112 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20115 # Do not use `cd foo && pwd` to compute absolute paths, because
20116 # the directories may not exist.
20118 .) ac_abs_builddir="$ac_dir";;
20121 .) ac_abs_builddir=`pwd`;;
20122 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20123 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20126 case $ac_abs_builddir in
20127 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20129 case ${ac_top_builddir}. in
20130 .) ac_abs_top_builddir=$ac_abs_builddir;;
20131 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20132 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20135 case $ac_abs_builddir in
20136 .) ac_abs_srcdir=$ac_srcdir;;
20139 .) ac_abs_srcdir=$ac_abs_builddir;;
20140 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20141 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20144 case $ac_abs_builddir in
20145 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20147 case $ac_top_srcdir in
20148 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20149 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20150 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20156 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20157 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20160 # Let's still pretend it is `configure' which instantiates (i.e., don't
20161 # use $as_me), people would be surprised to read:
20162 # /* config.h. Generated by config.status. */
20163 if test x"$ac_file" = x-; then
20166 configure_input="$ac_file. "
20168 configure_input=$configure_input"Generated from `echo $ac_file_in |
20169 sed 's,.*/,,'` by configure."
20171 # First look for the input files in the build tree, otherwise in the
20173 ac_file_inputs=`IFS=:
20174 for f in $ac_file_in; do
20176 -) echo $tmp/stdin ;;
20178 # Absolute (can't be DOS-style, as IFS=:)
20179 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20180 echo "$as_me: error: cannot find input file: $f" >&2;}
20181 { (exit 1); exit 1; }; }
20184 if test -f "$f"; then
20187 elif test -f "$srcdir/$f"; then
20192 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20193 echo "$as_me: error: cannot find input file: $f" >&2;}
20194 { (exit 1); exit 1; }; }
20197 done` || { (exit 1); exit 1; }
20199 if test x"$ac_file" != x-; then
20200 { echo "$as_me:$LINENO: creating $ac_file" >&5
20201 echo "$as_me: creating $ac_file" >&6;}
20205 cat >>$CONFIG_STATUS <<_ACEOF
20209 cat >>$CONFIG_STATUS <<\_ACEOF
20211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20212 s,@configure_input@,$configure_input,;t t
20213 s,@srcdir@,$ac_srcdir,;t t
20214 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20215 s,@top_srcdir@,$ac_top_srcdir,;t t
20216 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20217 s,@builddir@,$ac_builddir,;t t
20218 s,@abs_builddir@,$ac_abs_builddir,;t t
20219 s,@top_builddir@,$ac_top_builddir,;t t
20220 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20221 s,@INSTALL@,$ac_INSTALL,;t t
20222 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20224 if test x"$ac_file" != x-; then
20225 mv $tmp/out $ac_file
20233 cat >>$CONFIG_STATUS <<\_ACEOF
20236 # CONFIG_HEADER section.
20239 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20240 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20242 # ac_d sets the value in "#define NAME VALUE" lines.
20243 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20244 ac_dB='[ ].*$,\1#\2'
20247 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20248 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20249 ac_uB='$,\1#\2define\3'
20253 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20254 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20256 - | *:- | *:-:* ) # input from stdin
20258 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20259 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20260 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20261 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20262 * ) ac_file_in=$ac_file.in ;;
20265 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20266 echo "$as_me: creating $ac_file" >&6;}
20268 # First look for the input files in the build tree, otherwise in the
20270 ac_file_inputs=`IFS=:
20271 for f in $ac_file_in; do
20273 -) echo $tmp/stdin ;;
20275 # Absolute (can't be DOS-style, as IFS=:)
20276 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20277 echo "$as_me: error: cannot find input file: $f" >&2;}
20278 { (exit 1); exit 1; }; }
20279 # Do quote $f, to prevent DOS paths from being IFS'd.
20282 if test -f "$f"; then
20285 elif test -f "$srcdir/$f"; then
20290 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20291 echo "$as_me: error: cannot find input file: $f" >&2;}
20292 { (exit 1); exit 1; }; }
20295 done` || { (exit 1); exit 1; }
20296 # Remove the trailing spaces.
20297 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20301 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20302 # `conftest.undefs', that substitutes the proper values into
20303 # config.h.in to produce config.h. The first handles `#define'
20304 # templates, and the second `#undef' templates.
20305 # And first: Protect against being on the right side of a sed subst in
20306 # config.status. Protect against being in an unquoted here document
20307 # in config.status.
20308 rm -f conftest.defines conftest.undefs
20309 # Using a here document instead of a string reduces the quoting nightmare.
20310 # Putting comments in sed scripts is not portable.
20312 # `end' is used to avoid that the second main sed command (meant for
20313 # 0-ary CPP macros) applies to n-ary macro definitions.
20314 # See the Autoconf documentation for `clear'.
20315 cat >confdef2sed.sed <<\_ACEOF
20320 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20322 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20325 # If some macros were called several times there might be several times
20326 # the same #defines, which is useless. Nevertheless, we may not want to
20327 # sort them, since we want the *last* AC-DEFINE to be honored.
20328 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20329 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20330 rm -f confdef2sed.sed
20332 # This sed command replaces #undef with comments. This is necessary, for
20333 # example, in the case of _POSIX_SOURCE, which is predefined and required
20334 # on some systems where configure will not decide to define it.
20335 cat >>conftest.undefs <<\_ACEOF
20336 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20339 # Break up conftest.defines because some shells have a limit on the size
20340 # of here documents, and old seds have small limits too (100 cmds).
20341 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20342 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20343 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20344 echo ' :' >>$CONFIG_STATUS
20345 rm -f conftest.tail
20346 while grep . conftest.defines >/dev/null
20348 # Write a limited-size here document to $tmp/defines.sed.
20349 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20350 # Speed up: don't consider the non `#define' lines.
20351 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20352 # Work around the forget-to-reset-the-flag bug.
20353 echo 't clr' >>$CONFIG_STATUS
20354 echo ': clr' >>$CONFIG_STATUS
20355 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20357 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20359 mv $tmp/out $tmp/in
20361 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20362 rm -f conftest.defines
20363 mv conftest.tail conftest.defines
20365 rm -f conftest.defines
20366 echo ' fi # grep' >>$CONFIG_STATUS
20367 echo >>$CONFIG_STATUS
20369 # Break up conftest.undefs because some shells have a limit on the size
20370 # of here documents, and old seds have small limits too (100 cmds).
20371 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20372 rm -f conftest.tail
20373 while grep . conftest.undefs >/dev/null
20375 # Write a limited-size here document to $tmp/undefs.sed.
20376 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20377 # Speed up: don't consider the non `#undef'
20378 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20379 # Work around the forget-to-reset-the-flag bug.
20380 echo 't clr' >>$CONFIG_STATUS
20381 echo ': clr' >>$CONFIG_STATUS
20382 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20384 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20386 mv $tmp/out $tmp/in
20388 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20389 rm -f conftest.undefs
20390 mv conftest.tail conftest.undefs
20392 rm -f conftest.undefs
20394 cat >>$CONFIG_STATUS <<\_ACEOF
20395 # Let's still pretend it is `configure' which instantiates (i.e., don't
20396 # use $as_me), people would be surprised to read:
20397 # /* config.h. Generated by config.status. */
20398 if test x"$ac_file" = x-; then
20399 echo "/* Generated by configure. */" >$tmp/config.h
20401 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20403 cat $tmp/in >>$tmp/config.h
20405 if test x"$ac_file" != x-; then
20406 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20407 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20408 echo "$as_me: $ac_file is unchanged" >&6;}
20410 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20412 X"$ac_file" : 'X\(//\)[^/]' \| \
20413 X"$ac_file" : 'X\(//\)$' \| \
20414 X"$ac_file" : 'X\(/\)' \| \
20415 . : '\(.\)' 2>/dev/null ||
20417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20418 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20419 /^X\(\/\/\)$/{ s//\1/; q; }
20420 /^X\(\/\).*/{ s//\1/; q; }
20422 { if $as_mkdir_p; then
20427 while test ! -d "$as_dir"; do
20428 as_dirs="$as_dir $as_dirs"
20429 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20431 X"$as_dir" : 'X\(//\)[^/]' \| \
20432 X"$as_dir" : 'X\(//\)$' \| \
20433 X"$as_dir" : 'X\(/\)' \| \
20434 . : '\(.\)' 2>/dev/null ||
20436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20438 /^X\(\/\/\)$/{ s//\1/; q; }
20439 /^X\(\/\).*/{ s//\1/; q; }
20442 test ! -n "$as_dirs" || mkdir $as_dirs
20443 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20444 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20445 { (exit 1); exit 1; }; }; }
20448 mv $tmp/config.h $ac_file
20452 rm -f $tmp/config.h
20456 cat >>$CONFIG_STATUS <<\_ACEOF
20459 # CONFIG_COMMANDS section.
20461 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20462 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20463 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20464 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20465 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20466 X"$ac_dest" : 'X\(//\)[^/]' \| \
20467 X"$ac_dest" : 'X\(//\)$' \| \
20468 X"$ac_dest" : 'X\(/\)' \| \
20469 . : '\(.\)' 2>/dev/null ||
20471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20473 /^X\(\/\/\)$/{ s//\1/; q; }
20474 /^X\(\/\).*/{ s//\1/; q; }
20476 { if $as_mkdir_p; then
20481 while test ! -d "$as_dir"; do
20482 as_dirs="$as_dir $as_dirs"
20483 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20484 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20485 X"$as_dir" : 'X\(//\)[^/]' \| \
20486 X"$as_dir" : 'X\(//\)$' \| \
20487 X"$as_dir" : 'X\(/\)' \| \
20488 . : '\(.\)' 2>/dev/null ||
20490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20492 /^X\(\/\/\)$/{ s//\1/; q; }
20493 /^X\(\/\).*/{ s//\1/; q; }
20496 test ! -n "$as_dirs" || mkdir $as_dirs
20497 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20498 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20499 { (exit 1); exit 1; }; }; }
20503 if test "$ac_dir" != .; then
20504 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20505 # A "../" for each directory in $ac_dir_suffix.
20506 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20508 ac_dir_suffix= ac_top_builddir=
20512 .) # No --srcdir option. We are building in place.
20514 if test -z "$ac_top_builddir"; then
20517 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20519 [\\/]* | ?:[\\/]* ) # Absolute path.
20520 ac_srcdir=$srcdir$ac_dir_suffix;
20521 ac_top_srcdir=$srcdir ;;
20522 *) # Relative path.
20523 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20524 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20527 # Do not use `cd foo && pwd` to compute absolute paths, because
20528 # the directories may not exist.
20530 .) ac_abs_builddir="$ac_dir";;
20533 .) ac_abs_builddir=`pwd`;;
20534 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20535 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20538 case $ac_abs_builddir in
20539 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20541 case ${ac_top_builddir}. in
20542 .) ac_abs_top_builddir=$ac_abs_builddir;;
20543 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20544 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20547 case $ac_abs_builddir in
20548 .) ac_abs_srcdir=$ac_srcdir;;
20551 .) ac_abs_srcdir=$ac_abs_builddir;;
20552 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20553 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20556 case $ac_abs_builddir in
20557 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20559 case $ac_top_srcdir in
20560 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20561 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20562 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20567 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20568 echo "$as_me: executing $ac_dest commands" >&6;}
20570 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
20575 cat >>$CONFIG_STATUS <<\_ACEOF
20577 { (exit 0); exit 0; }
20579 chmod +x $CONFIG_STATUS
20580 ac_clean_files=$ac_clean_files_save
20583 # configure is writing to config.log, and then calls config.status.
20584 # config.status does its own redirection, appending to config.log.
20585 # Unfortunately, on DOS this fails, as config.log is still kept open
20586 # by configure, so config.status won't be able to write to it; its
20587 # output is simply discarded. So we exec the FD to /dev/null,
20588 # effectively closing config.log, so it can be properly (re)opened and
20589 # appended to by config.status. When coming back to configure, we
20590 # need to make the FD available again.
20591 if test "$no_create" != yes; then
20593 ac_config_status_args=
20594 test "$silent" = yes &&
20595 ac_config_status_args="$ac_config_status_args --quiet"
20597 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20599 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20600 # would make configure fail if this is the last instruction.
20601 $ac_cs_success || { (exit 1); exit 1; }