2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libchise 0.2.1.
5 # Report bugs to <chise-en@m17n.org>.
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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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='libchise'
425 PACKAGE_TARNAME='libchise'
426 PACKAGE_VERSION='0.2.1'
427 PACKAGE_STRING='libchise 0.2.1'
428 PACKAGE_BUGREPORT='chise-en@m17n.org'
430 ac_unique_file="chise.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ALLOCA LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures libchise 0.2.1 to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --build=BUILD configure for building on BUILD [guessed]
1012 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1013 --target=TARGET configure for building compilers for TARGET [HOST]
1017 if test -n "$ac_init_help"; then
1018 case $ac_init_help in
1019 short | recursive ) echo "Configuration of libchise 0.2.1:";;
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared[=PKGS]
1027 build shared libraries [default=yes]
1028 --enable-static[=PKGS]
1029 build static libraries [default=yes]
1030 --enable-fast-install[=PKGS]
1031 optimize for fast installation [default=yes]
1032 --disable-libtool-lock avoid locking (might break parallel builds)
1035 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1036 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1037 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1038 --with-pic try to use only PIC/non-PIC objects [default=use
1041 include additional configurations [automatic]
1043 Some influential environment variables:
1044 CC C compiler command
1045 CFLAGS C compiler flags
1046 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1047 nonstandard directory <lib dir>
1048 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1049 headers in a nonstandard directory <include dir>
1051 CXX C++ compiler command
1052 CXXFLAGS C++ compiler flags
1053 CXXCPP C++ preprocessor
1054 F77 Fortran 77 compiler command
1055 FFLAGS Fortran 77 compiler flags
1057 Use these variables to override the choices made by `configure' or to help
1058 it to find libraries and programs with nonstandard names/locations.
1060 Report bugs to <chise-en@m17n.org>.
1064 if test "$ac_init_help" = "recursive"; then
1065 # If there are subdirs, report their specific --help.
1067 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1068 test -d $ac_dir || continue
1071 if test "$ac_dir" != .; then
1072 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1073 # A "../" for each directory in $ac_dir_suffix.
1074 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1076 ac_dir_suffix= ac_top_builddir=
1080 .) # No --srcdir option. We are building in place.
1082 if test -z "$ac_top_builddir"; then
1085 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1087 [\\/]* | ?:[\\/]* ) # Absolute path.
1088 ac_srcdir=$srcdir$ac_dir_suffix;
1089 ac_top_srcdir=$srcdir ;;
1091 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1092 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1095 # Do not use `cd foo && pwd` to compute absolute paths, because
1096 # the directories may not exist.
1098 .) ac_abs_builddir="$ac_dir";;
1101 .) ac_abs_builddir=`pwd`;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1103 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1106 case $ac_abs_builddir in
1107 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1109 case ${ac_top_builddir}. in
1110 .) ac_abs_top_builddir=$ac_abs_builddir;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1112 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1115 case $ac_abs_builddir in
1116 .) ac_abs_srcdir=$ac_srcdir;;
1119 .) ac_abs_srcdir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1121 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1127 case $ac_top_srcdir in
1128 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1130 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1135 # Check for guested configure; otherwise get Cygnus style configure.
1136 if test -f $ac_srcdir/configure.gnu; then
1138 $SHELL $ac_srcdir/configure.gnu --help=recursive
1139 elif test -f $ac_srcdir/configure; then
1141 $SHELL $ac_srcdir/configure --help=recursive
1142 elif test -f $ac_srcdir/configure.ac ||
1143 test -f $ac_srcdir/configure.in; then
1145 $ac_configure --help
1147 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1153 test -n "$ac_init_help" && exit 0
1154 if $ac_init_version; then
1156 libchise configure 0.2.1
1157 generated by GNU Autoconf 2.59
1159 Copyright (C) 2003 Free Software Foundation, Inc.
1160 This configure script is free software; the Free Software Foundation
1161 gives unlimited permission to copy, distribute and modify it.
1167 This file contains any messages produced by compilers while
1168 running configure, to aid debugging if configure makes a mistake.
1170 It was created by libchise $as_me 0.2.1, which was
1171 generated by GNU Autoconf 2.59. Invocation command line was
1182 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1183 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1184 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1185 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1186 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1188 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1189 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1191 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1192 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1193 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1194 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1195 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1196 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1197 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1205 test -z "$as_dir" && as_dir=.
1206 echo "PATH: $as_dir"
1221 # Keep a trace of the command line.
1222 # Strip out --no-create and --no-recursion so they do not pile up.
1223 # Strip out --silent because we don't want to record it for future runs.
1224 # Also quote any args containing shell meta-characters.
1225 # Make two passes to allow for proper duplicate-argument suppression.
1230 ac_must_keep_next=false
1236 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238 | -silent | --silent | --silen | --sile | --sil)
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1244 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1246 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1247 if test $ac_must_keep_next = true; then
1248 ac_must_keep_next=false # Got value, back to normal.
1251 *=* | --config-cache | -C | -disable-* | --disable-* \
1252 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1253 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1254 | -with-* | --with-* | -without-* | --without-* | --x)
1255 case "$ac_configure_args0 " in
1256 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1259 -* ) ac_must_keep_next=true ;;
1262 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1263 # Get rid of the leading space.
1269 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1270 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1272 # When interrupted or exit'd, cleanup temporary files, and complete
1273 # config.log. We remove comments because anyway the quotes in there
1274 # would cause problems or look ugly.
1275 # WARNING: Be sure not to use single quotes in there, as some shells,
1276 # such as our DU 5.0 friend, will then `close' the trap.
1277 trap 'exit_status=$?
1278 # Save into config.log some information that might help in debugging.
1283 ## ---------------- ##
1284 ## Cache variables. ##
1285 ## ---------------- ##
1288 # The following way of writing the cache mishandles newlines in values,
1291 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1294 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1299 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1306 ## ----------------- ##
1307 ## Output variables. ##
1308 ## ----------------- ##
1311 for ac_var in $ac_subst_vars
1313 eval ac_val=$`echo $ac_var`
1314 echo "$ac_var='"'"'$ac_val'"'"'"
1318 if test -n "$ac_subst_files"; then
1325 for ac_var in $ac_subst_files
1327 eval ac_val=$`echo $ac_var`
1328 echo "$ac_var='"'"'$ac_val'"'"'"
1333 if test -s confdefs.h; then
1340 sed "/^$/d" confdefs.h | sort
1343 test "$ac_signal" != 0 &&
1344 echo "$as_me: caught signal $ac_signal"
1345 echo "$as_me: exit $exit_status"
1347 rm -f core *.core &&
1348 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1351 for ac_signal in 1 2 13 15; do
1352 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1356 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1357 rm -rf conftest* confdefs.h
1358 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1361 # Predefined preprocessor variables.
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_NAME "$PACKAGE_NAME"
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_STRING "$PACKAGE_STRING"
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1388 # Let the site file select an alternate cache file if it wants to.
1389 # Prefer explicitly selected file to automatically selected ones.
1390 if test -z "$CONFIG_SITE"; then
1391 if test "x$prefix" != xNONE; then
1392 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1394 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1397 for ac_site_file in $CONFIG_SITE; do
1398 if test -r "$ac_site_file"; then
1399 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1400 echo "$as_me: loading site script $ac_site_file" >&6;}
1401 sed 's/^/| /' "$ac_site_file" >&5
1406 if test -r "$cache_file"; then
1407 # Some versions of bash will fail to source /dev/null (special
1408 # files actually), so we avoid doing that.
1409 if test -f "$cache_file"; then
1410 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1411 echo "$as_me: loading cache $cache_file" >&6;}
1413 [\\/]* | ?:[\\/]* ) . $cache_file;;
1414 *) . ./$cache_file;;
1418 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1419 echo "$as_me: creating cache $cache_file" >&6;}
1423 # Check that the precious variables saved in the cache have kept the same
1425 ac_cache_corrupted=false
1426 for ac_var in `(set) 2>&1 |
1427 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1428 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1429 eval ac_new_set=\$ac_env_${ac_var}_set
1430 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1431 eval ac_new_val="\$ac_env_${ac_var}_value"
1432 case $ac_old_set,$ac_new_set in
1434 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1435 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1436 ac_cache_corrupted=: ;;
1438 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1439 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1440 ac_cache_corrupted=: ;;
1443 if test "x$ac_old_val" != "x$ac_new_val"; then
1444 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1445 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1446 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1447 echo "$as_me: former value: $ac_old_val" >&2;}
1448 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1449 echo "$as_me: current value: $ac_new_val" >&2;}
1450 ac_cache_corrupted=:
1453 # Pass precious variables to config.status.
1454 if test "$ac_new_set" = set; then
1456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1457 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1458 *) ac_arg=$ac_var=$ac_new_val ;;
1460 case " $ac_configure_args " in
1461 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1462 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1466 if $ac_cache_corrupted; then
1467 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1468 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1469 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1470 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1471 { (exit 1); exit 1; }; }
1475 ac_cpp='$CPP $CPPFLAGS'
1476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1507 ac_config_headers="$ac_config_headers config.h"
1511 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1512 if test -f $ac_dir/install-sh; then
1514 ac_install_sh="$ac_aux_dir/install-sh -c"
1516 elif test -f $ac_dir/install.sh; then
1518 ac_install_sh="$ac_aux_dir/install.sh -c"
1520 elif test -f $ac_dir/shtool; then
1522 ac_install_sh="$ac_aux_dir/shtool install -c"
1526 if test -z "$ac_aux_dir"; then
1527 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1528 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1529 { (exit 1); exit 1; }; }
1531 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1532 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1533 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1535 # Make sure we can run config.sub.
1536 $ac_config_sub sun4 >/dev/null 2>&1 ||
1537 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1538 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1539 { (exit 1); exit 1; }; }
1541 echo "$as_me:$LINENO: checking build system type" >&5
1542 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1543 if test "${ac_cv_build+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
1546 ac_cv_build_alias=$build_alias
1547 test -z "$ac_cv_build_alias" &&
1548 ac_cv_build_alias=`$ac_config_guess`
1549 test -z "$ac_cv_build_alias" &&
1550 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1551 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1552 { (exit 1); exit 1; }; }
1553 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1554 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1555 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1556 { (exit 1); exit 1; }; }
1559 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1560 echo "${ECHO_T}$ac_cv_build" >&6
1562 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567 echo "$as_me:$LINENO: checking host system type" >&5
1568 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1569 if test "${ac_cv_host+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1572 ac_cv_host_alias=$host_alias
1573 test -z "$ac_cv_host_alias" &&
1574 ac_cv_host_alias=$ac_cv_build_alias
1575 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1576 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1577 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1578 { (exit 1); exit 1; }; }
1581 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1582 echo "${ECHO_T}$ac_cv_host" >&6
1584 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1589 echo "$as_me:$LINENO: checking target system type" >&5
1590 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1591 if test "${ac_cv_target+set}" = set; then
1592 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 ac_cv_target_alias=$target_alias
1595 test "x$ac_cv_target_alias" = "x" &&
1596 ac_cv_target_alias=$ac_cv_host_alias
1597 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1598 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1599 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1600 { (exit 1); exit 1; }; }
1603 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1604 echo "${ECHO_T}$ac_cv_target" >&6
1605 target=$ac_cv_target
1606 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1611 # The aliases save the names the user supplied, while $host etc.
1612 # will get canonicalized.
1613 test -n "$target_alias" &&
1614 test "$program_prefix$program_suffix$program_transform_name" = \
1616 program_prefix=${target_alias}-
1618 # Checks for programs.
1620 ac_cpp='$CPP $CPPFLAGS'
1621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1624 if test -n "$ac_tool_prefix"; then
1625 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1626 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1627 echo "$as_me:$LINENO: checking for $ac_word" >&5
1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629 if test "${ac_cv_prog_CC+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 if test -n "$CC"; then
1633 ac_cv_prog_CC="$CC" # Let the user override the test.
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652 if test -n "$CC"; then
1653 echo "$as_me:$LINENO: result: $CC" >&5
1654 echo "${ECHO_T}$CC" >&6
1656 echo "$as_me:$LINENO: result: no" >&5
1657 echo "${ECHO_T}no" >&6
1661 if test -z "$ac_cv_prog_CC"; then
1663 # Extract the first word of "gcc", so it can be a program name with args.
1664 set dummy gcc; ac_word=$2
1665 echo "$as_me:$LINENO: checking for $ac_word" >&5
1666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 if test -n "$ac_ct_CC"; then
1671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677 test -z "$as_dir" && as_dir=.
1678 for ac_exec_ext in '' $ac_executable_extensions; do
1679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680 ac_cv_prog_ac_ct_CC="gcc"
1681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1690 if test -n "$ac_ct_CC"; then
1691 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1692 echo "${ECHO_T}$ac_ct_CC" >&6
1694 echo "$as_me:$LINENO: result: no" >&5
1695 echo "${ECHO_T}no" >&6
1703 if test -z "$CC"; then
1704 if test -n "$ac_tool_prefix"; then
1705 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1706 set dummy ${ac_tool_prefix}cc; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_CC+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 if test -n "$CC"; then
1713 ac_cv_prog_CC="$CC" # Let the user override the test.
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 test -z "$as_dir" && as_dir=.
1720 for ac_exec_ext in '' $ac_executable_extensions; do
1721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722 ac_cv_prog_CC="${ac_tool_prefix}cc"
1723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732 if test -n "$CC"; then
1733 echo "$as_me:$LINENO: result: $CC" >&5
1734 echo "${ECHO_T}$CC" >&6
1736 echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1741 if test -z "$ac_cv_prog_CC"; then
1743 # Extract the first word of "cc", so it can be a program name with args.
1744 set dummy cc; ac_word=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1750 if test -n "$ac_ct_CC"; then
1751 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 test -z "$as_dir" && as_dir=.
1758 for ac_exec_ext in '' $ac_executable_extensions; do
1759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760 ac_cv_prog_ac_ct_CC="cc"
1761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1770 if test -n "$ac_ct_CC"; then
1771 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1772 echo "${ECHO_T}$ac_ct_CC" >&6
1774 echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1784 if test -z "$CC"; then
1785 # Extract the first word of "cc", so it can be a program name with args.
1786 set dummy cc; ac_word=$2
1787 echo "$as_me:$LINENO: checking for $ac_word" >&5
1788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789 if test "${ac_cv_prog_CC+set}" = set; then
1790 echo $ECHO_N "(cached) $ECHO_C" >&6
1792 if test -n "$CC"; then
1793 ac_cv_prog_CC="$CC" # Let the user override the test.
1796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800 test -z "$as_dir" && as_dir=.
1801 for ac_exec_ext in '' $ac_executable_extensions; do
1802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1804 ac_prog_rejected=yes
1808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814 if test $ac_prog_rejected = yes; then
1815 # We found a bogon in the path, so make sure we never use it.
1816 set dummy $ac_cv_prog_CC
1818 if test $# != 0; then
1819 # We chose a different compiler from the bogus one.
1820 # However, it has the same basename, so the bogon will be chosen
1821 # first if we set CC to just the basename; use the full file name.
1823 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1829 if test -n "$CC"; then
1830 echo "$as_me:$LINENO: result: $CC" >&5
1831 echo "${ECHO_T}$CC" >&6
1833 echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1838 if test -z "$CC"; then
1839 if test -n "$ac_tool_prefix"; then
1842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_CC+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 if test -n "$CC"; then
1850 ac_cv_prog_CC="$CC" # Let the user override the test.
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 if test -n "$CC"; then
1870 echo "$as_me:$LINENO: result: $CC" >&5
1871 echo "${ECHO_T}$CC" >&6
1873 echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1877 test -n "$CC" && break
1880 if test -z "$CC"; then
1884 # Extract the first word of "$ac_prog", so it can be a program name with args.
1885 set dummy $ac_prog; ac_word=$2
1886 echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1891 if test -n "$ac_ct_CC"; then
1892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 test -z "$as_dir" && as_dir=.
1899 for ac_exec_ext in '' $ac_executable_extensions; do
1900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901 ac_cv_prog_ac_ct_CC="$ac_prog"
1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1911 if test -n "$ac_ct_CC"; then
1912 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1913 echo "${ECHO_T}$ac_ct_CC" >&6
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1919 test -n "$ac_ct_CC" && break
1928 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1929 See \`config.log' for more details." >&5
1930 echo "$as_me: error: no acceptable C compiler found in \$PATH
1931 See \`config.log' for more details." >&2;}
1932 { (exit 1); exit 1; }; }
1934 # Provide some information about the compiler.
1935 echo "$as_me:$LINENO:" \
1936 "checking for C compiler version" >&5
1937 ac_compiler=`set X $ac_compile; echo $2`
1938 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1939 (eval $ac_compiler --version </dev/null >&5) 2>&5
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }
1943 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1944 (eval $ac_compiler -v </dev/null >&5) 2>&5
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }
1948 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1949 (eval $ac_compiler -V </dev/null >&5) 2>&5
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }
1954 cat >conftest.$ac_ext <<_ACEOF
1957 cat confdefs.h >>conftest.$ac_ext
1958 cat >>conftest.$ac_ext <<_ACEOF
1959 /* end confdefs.h. */
1969 ac_clean_files_save=$ac_clean_files
1970 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1971 # Try to create an executable without -o first, disregard a.out.
1972 # It will help us diagnose broken compilers, and finding out an intuition
1974 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1975 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1976 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1977 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1978 (eval $ac_link_default) 2>&5
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); }; then
1982 # Find the output, starting from the most likely. This scheme is
1983 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1986 # Be careful to initialize this variable, since it used to be cached.
1987 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1989 # b.out is created by i960 compilers.
1990 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1992 test -f "$ac_file" || continue
1994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1997 # This is the source file.
2000 # We found the default executable, but exeext='' is most
2004 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2005 # FIXME: I believe we export ac_cv_exeext for Libtool,
2006 # but it would be cool to find out if it's true. Does anybody
2007 # maintain Libtool? --akim.
2015 echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2018 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2019 See \`config.log' for more details." >&5
2020 echo "$as_me: error: C compiler cannot create executables
2021 See \`config.log' for more details." >&2;}
2022 { (exit 77); exit 77; }; }
2025 ac_exeext=$ac_cv_exeext
2026 echo "$as_me:$LINENO: result: $ac_file" >&5
2027 echo "${ECHO_T}$ac_file" >&6
2029 # Check the compiler produces executables we can run. If not, either
2030 # the compiler is broken, or we cross compile.
2031 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2032 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2033 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2034 # If not cross compiling, check that we can run a simple program.
2035 if test "$cross_compiling" != yes; then
2036 if { ac_try='./$ac_file'
2037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; }; then
2044 if test "$cross_compiling" = maybe; then
2047 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2048 If you meant to cross compile, use \`--host'.
2049 See \`config.log' for more details." >&5
2050 echo "$as_me: error: cannot run C compiled programs.
2051 If you meant to cross compile, use \`--host'.
2052 See \`config.log' for more details." >&2;}
2053 { (exit 1); exit 1; }; }
2057 echo "$as_me:$LINENO: result: yes" >&5
2058 echo "${ECHO_T}yes" >&6
2060 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2061 ac_clean_files=$ac_clean_files_save
2062 # Check the compiler produces executables we can run. If not, either
2063 # the compiler is broken, or we cross compile.
2064 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2065 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2066 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2067 echo "${ECHO_T}$cross_compiling" >&6
2069 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2070 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2072 (eval $ac_link) 2>&5
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }; then
2076 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2077 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2078 # work properly (i.e., refer to `conftest.exe'), while it won't with
2080 for ac_file in conftest.exe conftest conftest.*; do
2081 test -f "$ac_file" || continue
2083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2084 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2091 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2094 See \`config.log' for more details." >&2;}
2095 { (exit 1); exit 1; }; }
2098 rm -f conftest$ac_cv_exeext
2099 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2100 echo "${ECHO_T}$ac_cv_exeext" >&6
2102 rm -f conftest.$ac_ext
2103 EXEEXT=$ac_cv_exeext
2105 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2106 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2107 if test "${ac_cv_objext+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 cat >conftest.$ac_ext <<_ACEOF
2113 cat confdefs.h >>conftest.$ac_ext
2114 cat >>conftest.$ac_ext <<_ACEOF
2115 /* end confdefs.h. */
2125 rm -f conftest.o conftest.obj
2126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2127 (eval $ac_compile) 2>&5
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; then
2131 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2134 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2139 echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2142 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2143 See \`config.log' for more details." >&5
2144 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2145 See \`config.log' for more details." >&2;}
2146 { (exit 1); exit 1; }; }
2149 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2151 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2152 echo "${ECHO_T}$ac_cv_objext" >&6
2153 OBJEXT=$ac_cv_objext
2155 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2156 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2157 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 cat >conftest.$ac_ext <<_ACEOF
2163 cat confdefs.h >>conftest.$ac_ext
2164 cat >>conftest.$ac_ext <<_ACEOF
2165 /* end confdefs.h. */
2178 rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180 (eval $ac_compile) 2>conftest.er1
2182 grep -v '^ *+' conftest.er1 >conftest.err
2184 cat conftest.err >&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); } &&
2187 { ac_try='test -z "$ac_c_werror_flag"
2188 || test ! -s conftest.err'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; } &&
2194 { ac_try='test -s conftest.$ac_objext'
2195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; }; then
2202 echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2208 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2211 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2212 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2213 GCC=`test $ac_compiler_gnu = yes && echo yes`
2214 ac_test_CFLAGS=${CFLAGS+set}
2215 ac_save_CFLAGS=$CFLAGS
2217 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2218 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2219 if test "${ac_cv_prog_cc_g+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 cat >conftest.$ac_ext <<_ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h. */
2237 rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>conftest.er1
2241 grep -v '^ *+' conftest.er1 >conftest.err
2243 cat conftest.err >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } &&
2246 { ac_try='test -z "$ac_c_werror_flag"
2247 || test ! -s conftest.err'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; } &&
2253 { ac_try='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2261 echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2268 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2269 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2270 if test "$ac_test_CFLAGS" = set; then
2271 CFLAGS=$ac_save_CFLAGS
2272 elif test $ac_cv_prog_cc_g = yes; then
2273 if test "$GCC" = yes; then
2279 if test "$GCC" = yes; then
2285 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2286 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2287 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 ac_cv_prog_cc_stdc=no
2292 cat >conftest.$ac_ext <<_ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2300 #include <sys/types.h>
2301 #include <sys/stat.h>
2302 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2303 struct buf { int x; };
2304 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2305 static char *e (p, i)
2311 static char *f (char * (*g) (char **, int), char **p, ...)
2316 s = g (p, va_arg (v,int));
2321 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2322 function prototypes and stuff, but not '\xHH' hex character constants.
2323 These don't provoke an error unfortunately, instead are silently treated
2324 as 'x'. The following induces an error, until -std1 is added to get
2325 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2326 array size at least. It's necessary to write '\x00'==0 to get something
2327 that's true only with -std1. */
2328 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2330 int test (int i, double x);
2331 struct s1 {int (*f) (int a);};
2332 struct s2 {int (*f) (double a);};
2333 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2339 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2344 # Don't try gcc -ansi; that turns off useful extensions and
2345 # breaks some systems' header files.
2346 # AIX -qlanglvl=ansi
2347 # Ultrix and OSF/1 -std1
2348 # HP-UX 10.20 and later -Ae
2349 # HP-UX older versions -Aa -D_HPUX_SOURCE
2350 # SVR4 -Xc -D__EXTENSIONS__
2351 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2353 CC="$ac_save_CC $ac_arg"
2354 rm -f conftest.$ac_objext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356 (eval $ac_compile) 2>conftest.er1
2358 grep -v '^ *+' conftest.er1 >conftest.err
2360 cat conftest.err >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try='test -z "$ac_c_werror_flag"
2364 || test ! -s conftest.err'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; } &&
2370 { ac_try='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2376 ac_cv_prog_cc_stdc=$ac_arg
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2383 rm -f conftest.err conftest.$ac_objext
2385 rm -f conftest.$ac_ext conftest.$ac_objext
2390 case "x$ac_cv_prog_cc_stdc" in
2392 echo "$as_me:$LINENO: result: none needed" >&5
2393 echo "${ECHO_T}none needed" >&6 ;;
2395 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2396 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2397 CC="$CC $ac_cv_prog_cc_stdc" ;;
2400 # Some people use a C++ compiler to compile C. Since we use `exit',
2401 # in C++ we need to declare it. In case someone uses the same compiler
2402 # for both compiling C and C++ we need to have the C++ compiler decide
2403 # the declaration of exit, since it's the most demanding environment.
2404 cat >conftest.$ac_ext <<_ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>conftest.er1
2413 grep -v '^ *+' conftest.er1 >conftest.err
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -z "$ac_c_werror_flag"
2419 || test ! -s conftest.err'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; } &&
2425 { ac_try='test -s conftest.$ac_objext'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2431 for ac_declaration in \
2433 'extern "C" void std::exit (int) throw (); using std::exit;' \
2434 'extern "C" void std::exit (int); using std::exit;' \
2435 'extern "C" void exit (int) throw ();' \
2436 'extern "C" void exit (int);' \
2439 cat >conftest.$ac_ext <<_ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2455 rm -f conftest.$ac_objext
2456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457 (eval $ac_compile) 2>conftest.er1
2459 grep -v '^ *+' conftest.er1 >conftest.err
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try='test -z "$ac_c_werror_flag"
2465 || test ! -s conftest.err'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2479 echo "$as_me: failed program was:" >&5
2480 sed 's/^/| /' conftest.$ac_ext >&5
2484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485 cat >conftest.$ac_ext <<_ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2504 grep -v '^ *+' conftest.er1 >conftest.err
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2531 if test -n "$ac_declaration"; then
2532 echo '#ifdef __cplusplus' >>confdefs.h
2533 echo $ac_declaration >>confdefs.h
2534 echo '#endif' >>confdefs.h
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2544 ac_cpp='$CPP $CPPFLAGS'
2545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2549 # Check whether --enable-shared or --disable-shared was given.
2550 if test "${enable_shared+set}" = set; then
2551 enableval="$enable_shared"
2552 p=${PACKAGE-default}
2554 yes) enable_shared=yes ;;
2555 no) enable_shared=no ;;
2558 # Look at the argument we got. We use all the common list separators.
2559 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2560 for pkg in $enableval; do
2562 if test "X$pkg" = "X$p"; then
2573 # Check whether --enable-static or --disable-static was given.
2574 if test "${enable_static+set}" = set; then
2575 enableval="$enable_static"
2576 p=${PACKAGE-default}
2578 yes) enable_static=yes ;;
2579 no) enable_static=no ;;
2582 # Look at the argument we got. We use all the common list separators.
2583 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2584 for pkg in $enableval; do
2586 if test "X$pkg" = "X$p"; then
2597 # Check whether --enable-fast-install or --disable-fast-install was given.
2598 if test "${enable_fast_install+set}" = set; then
2599 enableval="$enable_fast_install"
2600 p=${PACKAGE-default}
2602 yes) enable_fast_install=yes ;;
2603 no) enable_fast_install=no ;;
2605 enable_fast_install=no
2606 # Look at the argument we got. We use all the common list separators.
2607 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2608 for pkg in $enableval; do
2610 if test "X$pkg" = "X$p"; then
2611 enable_fast_install=yes
2618 enable_fast_install=yes
2621 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2622 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2623 if test "${lt_cv_path_SED+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 # Loop through the user's path and test for sed and gsed.
2627 # Then use that list of sed's as ones to test for truncation.
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 test -z "$as_dir" && as_dir=.
2633 for lt_ac_prog in sed gsed; do
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2636 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2643 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2644 # along with /bin/sed that truncates output.
2645 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2646 test ! -f $lt_ac_sed && break
2647 cat /dev/null > conftest.in
2649 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2650 # Check for GNU sed and select it if it is found.
2651 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2652 lt_cv_path_SED=$lt_ac_sed
2656 cat conftest.in conftest.in >conftest.tmp
2657 mv conftest.tmp conftest.in
2658 cp conftest.in conftest.nl
2660 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2661 cmp -s conftest.out conftest.nl || break
2662 # 10000 chars as input seems more than enough
2663 test $lt_ac_count -gt 10 && break
2664 lt_ac_count=`expr $lt_ac_count + 1`
2665 if test $lt_ac_count -gt $lt_ac_max; then
2666 lt_ac_max=$lt_ac_count
2667 lt_cv_path_SED=$lt_ac_sed
2675 echo "$as_me:$LINENO: result: $SED" >&5
2676 echo "${ECHO_T}$SED" >&6
2678 echo "$as_me:$LINENO: checking for egrep" >&5
2679 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2680 if test "${ac_cv_prog_egrep+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2684 then ac_cv_prog_egrep='grep -E'
2685 else ac_cv_prog_egrep='egrep'
2688 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2689 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2690 EGREP=$ac_cv_prog_egrep
2694 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2695 if test "${with_gnu_ld+set}" = set; then
2696 withval="$with_gnu_ld"
2697 test "$withval" = no || with_gnu_ld=yes
2702 if test "$GCC" = yes; then
2703 # Check if gcc -print-prog-name=ld gives a path.
2704 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2705 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2708 # gcc leaves a trailing carriage return which upsets mingw
2709 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2711 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2714 # Accept absolute paths.
2716 re_direlt='/[^/][^/]*/\.\./'
2717 # Canonicalize the pathname of ld
2718 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2719 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2720 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2722 test -z "$LD" && LD="$ac_prog"
2725 # If it fails, then pretend we aren't using GCC.
2729 # If it is relative, then search for the first ld in PATH.
2733 elif test "$with_gnu_ld" = yes; then
2734 echo "$as_me:$LINENO: checking for GNU ld" >&5
2735 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2737 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2738 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2740 if test "${lt_cv_path_LD+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 if test -z "$LD"; then
2744 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2745 for ac_dir in $PATH; do
2747 test -z "$ac_dir" && ac_dir=.
2748 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2749 lt_cv_path_LD="$ac_dir/$ac_prog"
2750 # Check to see if the program is GNU ld. I'd rather use --version,
2751 # but apparently some GNU ld's only accept -v.
2752 # Break only if it was the GNU/non-GNU ld that we prefer.
2753 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2754 *GNU* | *'with BFD'*)
2755 test "$with_gnu_ld" != no && break
2758 test "$with_gnu_ld" != yes && break
2765 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2770 if test -n "$LD"; then
2771 echo "$as_me:$LINENO: result: $LD" >&5
2772 echo "${ECHO_T}$LD" >&6
2774 echo "$as_me:$LINENO: result: no" >&5
2775 echo "${ECHO_T}no" >&6
2777 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2778 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2779 { (exit 1); exit 1; }; }
2780 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2781 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2782 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2786 case `$LD -v 2>&1 </dev/null` in
2787 *GNU* | *'with BFD'*)
2788 lt_cv_prog_gnu_ld=yes
2791 lt_cv_prog_gnu_ld=no
2795 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2796 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2797 with_gnu_ld=$lt_cv_prog_gnu_ld
2800 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2801 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2802 if test "${lt_cv_ld_reload_flag+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 lt_cv_ld_reload_flag='-r'
2807 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2808 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2809 reload_flag=$lt_cv_ld_reload_flag
2810 case $reload_flag in
2812 *) reload_flag=" $reload_flag" ;;
2814 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2816 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2817 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2818 if test "${lt_cv_path_NM+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 if test -n "$NM"; then
2822 # Let the user override the test.
2825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2826 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2828 test -z "$ac_dir" && ac_dir=.
2829 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2830 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2831 # Check to see if the nm accepts a BSD-compat flag.
2832 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2833 # nm: unknown option "B" ignored
2834 # Tru64's nm complains that /dev/null is an invalid object file
2835 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2836 */dev/null* | *'Invalid file or object type'*)
2837 lt_cv_path_NM="$tmp_nm -B"
2841 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2843 lt_cv_path_NM="$tmp_nm -p"
2847 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2848 continue # so that we can try to find one that supports BSD flags
2855 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2858 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2859 echo "${ECHO_T}$lt_cv_path_NM" >&6
2862 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2863 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2865 if test "$LN_S" = "ln -s"; then
2866 echo "$as_me:$LINENO: result: yes" >&5
2867 echo "${ECHO_T}yes" >&6
2869 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2870 echo "${ECHO_T}no, using $LN_S" >&6
2873 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2874 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2875 if test "${lt_cv_deplibs_check_method+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 lt_cv_file_magic_cmd='$MAGIC_CMD'
2879 lt_cv_file_magic_test_file=
2880 lt_cv_deplibs_check_method='unknown'
2881 # Need to set the preceding variable on all platforms that support
2882 # interlibrary dependencies.
2883 # 'none' -- dependencies not supported.
2884 # `unknown' -- same as none, but documents that we really don't know.
2885 # 'pass_all' -- all dependencies passed with no checks.
2886 # 'test_compile' -- check by making test program.
2887 # 'file_magic [[regex]]' -- check by looking for files in library path
2888 # which responds to the $file_magic_cmd with a given extended regex.
2889 # If you have `file' or equivalent on your system and you're not sure
2890 # whether `pass_all' will *always* work, you probably want this one.
2894 lt_cv_deplibs_check_method=pass_all
2898 lt_cv_deplibs_check_method=pass_all
2902 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2903 lt_cv_file_magic_cmd='/usr/bin/file -L'
2904 lt_cv_file_magic_test_file=/shlib/libc.so
2907 cygwin* | mingw* | pw32*)
2908 # win32_libid is a shell function defined in ltmain.sh
2909 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2910 lt_cv_file_magic_cmd='win32_libid'
2913 darwin* | rhapsody*)
2914 # this will be overwritten by pass_all, but leave it in just in case
2915 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2916 lt_cv_file_magic_cmd='/usr/bin/file -L'
2918 rhapsody* | darwin1.[012])
2919 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
2922 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2925 lt_cv_deplibs_check_method=pass_all
2928 freebsd* | kfreebsd*-gnu)
2929 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2932 # Not sure whether the presence of OpenBSD here was a mistake.
2933 # Let's accept both of them until this is cleared up.
2934 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2935 lt_cv_file_magic_cmd=/usr/bin/file
2936 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2940 lt_cv_deplibs_check_method=pass_all
2945 lt_cv_deplibs_check_method=pass_all
2948 hpux10.20* | hpux11*)
2949 lt_cv_file_magic_cmd=/usr/bin/file
2952 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2953 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2956 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]'
2957 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2960 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2961 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2966 irix5* | irix6* | nonstopux*)
2968 irix5* | nonstopux*)
2969 # this will be overridden with pass_all, but let us keep it just in case
2970 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2974 *-32|*"-32 ") libmagic=32-bit;;
2975 *-n32|*"-n32 ") libmagic=N32;;
2976 *-64|*"-64 ") libmagic=64-bit;;
2977 *) libmagic=never-match;;
2979 # this will be overridden with pass_all, but let us keep it just in case
2980 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2983 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2984 lt_cv_deplibs_check_method=pass_all
2987 # This must be Linux ELF.
2989 # linux always uses pass_all now, this code is the old way (tm)
2991 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
2992 lt_cv_deplibs_check_method=pass_all ;;
2994 # glibc up to 2.1.1 does not perform some relocations on ARM
2995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2997 lt_cv_deplibs_check_method=pass_all
2998 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3002 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3011 lt_cv_file_magic_cmd=/usr/bin/file
3012 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3016 lt_cv_deplibs_check_method=unknown
3020 lt_cv_file_magic_cmd=/usr/bin/file
3021 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3022 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3025 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3029 osf3* | osf4* | osf5*)
3030 # this will be overridden with pass_all, but let us keep it just in case
3031 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3032 lt_cv_file_magic_test_file=/shlib/libc.so
3033 lt_cv_deplibs_check_method=pass_all
3037 lt_cv_deplibs_check_method=pass_all
3041 lt_cv_deplibs_check_method=pass_all
3042 lt_cv_file_magic_test_file=/lib/libc.so
3045 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3046 case $host_vendor in
3048 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]'
3049 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3052 lt_cv_deplibs_check_method=pass_all
3055 lt_cv_file_magic_cmd='/bin/file'
3056 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3059 lt_cv_file_magic_cmd='/bin/file'
3060 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3061 lt_cv_file_magic_test_file=/lib/libc.so
3064 lt_cv_deplibs_check_method=pass_all
3069 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3070 lt_cv_deplibs_check_method=pass_all
3075 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3076 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3077 file_magic_cmd=$lt_cv_file_magic_cmd
3078 deplibs_check_method=$lt_cv_deplibs_check_method
3079 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3084 # If no C compiler was specified, use CC.
3087 # Allow CC to be a program name with arguments.
3091 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3092 if test "${enable_libtool_lock+set}" = set; then
3093 enableval="$enable_libtool_lock"
3096 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3098 # Some flags need to be propagated to the compiler or linker for good
3102 # Find out which ABI we are using.
3103 echo 'int i;' > conftest.$ac_ext
3104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105 (eval $ac_compile) 2>&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; then
3109 case `/usr/bin/file conftest.$ac_objext` in
3121 # Find out which ABI we are using.
3122 echo '#line 3122 "configure"' > conftest.$ac_ext
3123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3124 (eval $ac_compile) 2>&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; then
3128 if test "$lt_cv_prog_gnu_ld" = yes; then
3129 case `/usr/bin/file conftest.$ac_objext` in
3131 LD="${LD-ld} -melf32bsmip"
3134 LD="${LD-ld} -melf32bmipn32"
3137 LD="${LD-ld} -melf64bmip"
3141 case `/usr/bin/file conftest.$ac_objext` in
3157 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3158 # Find out which ABI we are using.
3159 echo 'int i;' > conftest.$ac_ext
3160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3161 (eval $ac_compile) 2>&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; then
3165 case "`/usr/bin/file conftest.o`" in
3169 LD="${LD-ld} -m elf_i386"
3171 ppc64-*linux*|powerpc64-*linux*)
3172 LD="${LD-ld} -m elf32ppclinux"
3175 LD="${LD-ld} -m elf_s390"
3178 LD="${LD-ld} -m elf32_sparc"
3185 LD="${LD-ld} -m elf_x86_64"
3187 ppc*-*linux*|powerpc*-*linux*)
3188 LD="${LD-ld} -m elf64ppc"
3191 LD="${LD-ld} -m elf64_s390"
3194 LD="${LD-ld} -m elf64_sparc"
3204 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3205 SAVE_CFLAGS="$CFLAGS"
3206 CFLAGS="$CFLAGS -belf"
3207 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3208 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3209 if test "${lt_cv_cc_needs_belf+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 ac_cpp='$CPP $CPPFLAGS'
3214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218 cat >conftest.$ac_ext <<_ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3233 rm -f conftest.$ac_objext conftest$ac_exeext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3235 (eval $ac_link) 2>conftest.er1
3237 grep -v '^ *+' conftest.er1 >conftest.err
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag"
3243 || test ! -s conftest.err'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; } &&
3249 { ac_try='test -s conftest$ac_exeext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 lt_cv_cc_needs_belf=yes
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 lt_cv_cc_needs_belf=no
3262 rm -f conftest.err conftest.$ac_objext \
3263 conftest$ac_exeext conftest.$ac_ext
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3272 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3273 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3274 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3275 CFLAGS="$SAVE_CFLAGS"
3281 need_locks="$enable_libtool_lock"
3285 ac_cpp='$CPP $CPPFLAGS'
3286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3289 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3290 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3291 # On Suns, sometimes $CPP names a directory.
3292 if test -n "$CPP" && test -d "$CPP"; then
3295 if test -z "$CPP"; then
3296 if test "${ac_cv_prog_CPP+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 # Double quotes because CPP needs to be expanded
3300 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3303 for ac_c_preproc_warn_flag in '' yes
3305 # Use a header file that comes with gcc, so configuring glibc
3306 # with a fresh cross-compiler works.
3307 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3308 # <limits.h> exists even on freestanding compilers.
3309 # On the NeXT, cc -E runs the code through the compiler's parser,
3310 # not just through cpp. "Syntax error" is here to catch this case.
3311 cat >conftest.$ac_ext <<_ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h. */
3318 # include <limits.h>
3320 # include <assert.h>
3324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3327 grep -v '^ *+' conftest.er1 >conftest.err
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } >/dev/null; then
3332 if test -s conftest.err; then
3333 ac_cpp_err=$ac_c_preproc_warn_flag
3334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3341 if test -z "$ac_cpp_err"; then
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3347 # Broken: fails on valid input.
3350 rm -f conftest.err conftest.$ac_ext
3352 # OK, works on sane cases. Now check whether non-existent headers
3353 # can be detected and how.
3354 cat >conftest.$ac_ext <<_ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360 #include <ac_nonexistent.h>
3362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3365 grep -v '^ *+' conftest.er1 >conftest.err
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } >/dev/null; then
3370 if test -s conftest.err; then
3371 ac_cpp_err=$ac_c_preproc_warn_flag
3372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3379 if test -z "$ac_cpp_err"; then
3380 # Broken: success on invalid input.
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3386 # Passes both tests.
3390 rm -f conftest.err conftest.$ac_ext
3393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3394 rm -f conftest.err conftest.$ac_ext
3395 if $ac_preproc_ok; then
3407 echo "$as_me:$LINENO: result: $CPP" >&5
3408 echo "${ECHO_T}$CPP" >&6
3410 for ac_c_preproc_warn_flag in '' yes
3412 # Use a header file that comes with gcc, so configuring glibc
3413 # with a fresh cross-compiler works.
3414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3415 # <limits.h> exists even on freestanding compilers.
3416 # On the NeXT, cc -E runs the code through the compiler's parser,
3417 # not just through cpp. "Syntax error" is here to catch this case.
3418 cat >conftest.$ac_ext <<_ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3425 # include <limits.h>
3427 # include <assert.h>
3431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3434 grep -v '^ *+' conftest.er1 >conftest.err
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } >/dev/null; then
3439 if test -s conftest.err; then
3440 ac_cpp_err=$ac_c_preproc_warn_flag
3441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448 if test -z "$ac_cpp_err"; then
3451 echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3454 # Broken: fails on valid input.
3457 rm -f conftest.err conftest.$ac_ext
3459 # OK, works on sane cases. Now check whether non-existent headers
3460 # can be detected and how.
3461 cat >conftest.$ac_ext <<_ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h. */
3467 #include <ac_nonexistent.h>
3469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3472 grep -v '^ *+' conftest.er1 >conftest.err
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } >/dev/null; then
3477 if test -s conftest.err; then
3478 ac_cpp_err=$ac_c_preproc_warn_flag
3479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3486 if test -z "$ac_cpp_err"; then
3487 # Broken: success on invalid input.
3490 echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3493 # Passes both tests.
3497 rm -f conftest.err conftest.$ac_ext
3500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3501 rm -f conftest.err conftest.$ac_ext
3502 if $ac_preproc_ok; then
3505 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3506 See \`config.log' for more details." >&5
3507 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3508 See \`config.log' for more details." >&2;}
3509 { (exit 1); exit 1; }; }
3513 ac_cpp='$CPP $CPPFLAGS'
3514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3520 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3521 if test "${ac_cv_header_stdc+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 cat >conftest.$ac_ext <<_ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3543 rm -f conftest.$ac_objext
3544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3545 (eval $ac_compile) 2>conftest.er1
3547 grep -v '^ *+' conftest.er1 >conftest.err
3549 cat conftest.err >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } &&
3552 { ac_try='test -z "$ac_c_werror_flag"
3553 || test ! -s conftest.err'
3554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; } &&
3559 { ac_try='test -s conftest.$ac_objext'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; }; then
3565 ac_cv_header_stdc=yes
3567 echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3570 ac_cv_header_stdc=no
3572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3574 if test $ac_cv_header_stdc = yes; then
3575 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3576 cat >conftest.$ac_ext <<_ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3586 $EGREP "memchr" >/dev/null 2>&1; then
3589 ac_cv_header_stdc=no
3595 if test $ac_cv_header_stdc = yes; then
3596 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3597 cat >conftest.$ac_ext <<_ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3607 $EGREP "free" >/dev/null 2>&1; then
3610 ac_cv_header_stdc=no
3616 if test $ac_cv_header_stdc = yes; then
3617 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3618 if test "$cross_compiling" = yes; then
3621 cat >conftest.$ac_ext <<_ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3628 #if ((' ' & 0x0FF) == 0x020)
3629 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3630 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3632 # define ISLOWER(c) \
3633 (('a' <= (c) && (c) <= 'i') \
3634 || ('j' <= (c) && (c) <= 'r') \
3635 || ('s' <= (c) && (c) <= 'z'))
3636 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3639 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3644 for (i = 0; i < 256; i++)
3645 if (XOR (islower (i), ISLOWER (i))
3646 || toupper (i) != TOUPPER (i))
3651 rm -f conftest$ac_exeext
3652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3653 (eval $ac_link) 2>&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; }; then
3664 echo "$as_me: program exited with status $ac_status" >&5
3665 echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3669 ac_cv_header_stdc=no
3671 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3675 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3676 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3677 if test $ac_cv_header_stdc = yes; then
3679 cat >>confdefs.h <<\_ACEOF
3680 #define STDC_HEADERS 1
3685 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3695 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3696 inttypes.h stdint.h unistd.h
3698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3699 echo "$as_me:$LINENO: checking for $ac_header" >&5
3700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 cat >conftest.$ac_ext <<_ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3710 $ac_includes_default
3712 #include <$ac_header>
3714 rm -f conftest.$ac_objext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3716 (eval $ac_compile) 2>conftest.er1
3718 grep -v '^ *+' conftest.er1 >conftest.err
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } &&
3723 { ac_try='test -z "$ac_c_werror_flag"
3724 || test ! -s conftest.err'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; } &&
3730 { ac_try='test -s conftest.$ac_objext'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; }; then
3736 eval "$as_ac_Header=yes"
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3741 eval "$as_ac_Header=no"
3743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3748 cat >>confdefs.h <<_ACEOF
3749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3758 for ac_header in dlfcn.h
3760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3762 echo "$as_me:$LINENO: checking for $ac_header" >&5
3763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3770 # Is the header compilable?
3771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3773 cat >conftest.$ac_ext <<_ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3779 $ac_includes_default
3780 #include <$ac_header>
3782 rm -f conftest.$ac_objext
3783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3784 (eval $ac_compile) 2>conftest.er1
3786 grep -v '^ *+' conftest.er1 >conftest.err
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } &&
3791 { ac_try='test -z "$ac_c_werror_flag"
3792 || test ! -s conftest.err'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; } &&
3798 { ac_try='test -s conftest.$ac_objext'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; }; then
3804 ac_header_compiler=yes
3806 echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3809 ac_header_compiler=no
3811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3813 echo "${ECHO_T}$ac_header_compiler" >&6
3815 # Is the header present?
3816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3818 cat >conftest.$ac_ext <<_ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3824 #include <$ac_header>
3826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3829 grep -v '^ *+' conftest.er1 >conftest.err
3831 cat conftest.err >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } >/dev/null; then
3834 if test -s conftest.err; then
3835 ac_cpp_err=$ac_c_preproc_warn_flag
3836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3843 if test -z "$ac_cpp_err"; then
3844 ac_header_preproc=yes
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3849 ac_header_preproc=no
3851 rm -f conftest.err conftest.$ac_ext
3852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3853 echo "${ECHO_T}$ac_header_preproc" >&6
3855 # So? What about this header?
3856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3862 ac_header_preproc=yes
3865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3879 ## -------------------------------- ##
3880 ## Report this to chise-en@m17n.org ##
3881 ## -------------------------------- ##
3884 sed "s/^/$as_me: WARNING: /" >&2
3887 echo "$as_me:$LINENO: checking for $ac_header" >&5
3888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 eval "$as_ac_Header=\$ac_header_preproc"
3894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3899 cat >>confdefs.h <<_ACEOF
3900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3908 ac_cpp='$CXXCPP $CPPFLAGS'
3909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3912 if test -n "$ac_tool_prefix"; then
3913 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3917 echo "$as_me:$LINENO: checking for $ac_word" >&5
3918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919 if test "${ac_cv_prog_CXX+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 if test -n "$CXX"; then
3923 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 if test -n "$CXX"; then
3943 echo "$as_me:$LINENO: result: $CXX" >&5
3944 echo "${ECHO_T}$CXX" >&6
3946 echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3950 test -n "$CXX" && break
3953 if test -z "$CXX"; then
3955 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3957 # Extract the first word of "$ac_prog", so it can be a program name with args.
3958 set dummy $ac_prog; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 if test -n "$ac_ct_CXX"; then
3965 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_CXX="$ac_prog"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3984 if test -n "$ac_ct_CXX"; then
3985 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3986 echo "${ECHO_T}$ac_ct_CXX" >&6
3988 echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3992 test -n "$ac_ct_CXX" && break
3994 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4000 # Provide some information about the compiler.
4001 echo "$as_me:$LINENO:" \
4002 "checking for C++ compiler version" >&5
4003 ac_compiler=`set X $ac_compile; echo $2`
4004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4005 (eval $ac_compiler --version </dev/null >&5) 2>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }
4009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4010 (eval $ac_compiler -v </dev/null >&5) 2>&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }
4014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4015 (eval $ac_compiler -V </dev/null >&5) 2>&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }
4020 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4021 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4022 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 cat >conftest.$ac_ext <<_ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4043 rm -f conftest.$ac_objext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045 (eval $ac_compile) 2>conftest.er1
4047 grep -v '^ *+' conftest.er1 >conftest.err
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } &&
4052 { ac_try='test -z "$ac_cxx_werror_flag"
4053 || test ! -s conftest.err'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; } &&
4059 { ac_try='test -s conftest.$ac_objext'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4076 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4077 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4078 GXX=`test $ac_compiler_gnu = yes && echo yes`
4079 ac_test_CXXFLAGS=${CXXFLAGS+set}
4080 ac_save_CXXFLAGS=$CXXFLAGS
4082 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4083 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4084 if test "${ac_cv_prog_cxx_g+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 cat >conftest.$ac_ext <<_ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>conftest.er1
4106 grep -v '^ *+' conftest.er1 >conftest.err
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_cxx_werror_flag"
4112 || test ! -s conftest.err'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 ac_cv_prog_cxx_g=yes
4126 echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4133 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4134 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4135 if test "$ac_test_CXXFLAGS" = set; then
4136 CXXFLAGS=$ac_save_CXXFLAGS
4137 elif test $ac_cv_prog_cxx_g = yes; then
4138 if test "$GXX" = yes; then
4144 if test "$GXX" = yes; then
4150 for ac_declaration in \
4152 'extern "C" void std::exit (int) throw (); using std::exit;' \
4153 'extern "C" void std::exit (int); using std::exit;' \
4154 'extern "C" void exit (int) throw ();' \
4155 'extern "C" void exit (int);' \
4158 cat >conftest.$ac_ext <<_ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4174 rm -f conftest.$ac_objext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>conftest.er1
4178 grep -v '^ *+' conftest.er1 >conftest.err
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -z "$ac_cxx_werror_flag"
4184 || test ! -s conftest.err'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4204 cat >conftest.$ac_ext <<_ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4219 rm -f conftest.$ac_objext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221 (eval $ac_compile) 2>conftest.er1
4223 grep -v '^ *+' conftest.er1 >conftest.err
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -z "$ac_cxx_werror_flag"
4229 || test ! -s conftest.err'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; } &&
4235 { ac_try='test -s conftest.$ac_objext'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4243 echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4250 if test -n "$ac_declaration"; then
4251 echo '#ifdef __cplusplus' >>confdefs.h
4252 echo $ac_declaration >>confdefs.h
4253 echo '#endif' >>confdefs.h
4257 ac_cpp='$CXXCPP $CPPFLAGS'
4258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4263 ac_cpp='$CXXCPP $CPPFLAGS'
4264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4267 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4268 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4269 if test -z "$CXXCPP"; then
4270 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 # Double quotes because CXXCPP needs to be expanded
4274 for CXXCPP in "$CXX -E" "/lib/cpp"
4277 for ac_cxx_preproc_warn_flag in '' yes
4279 # Use a header file that comes with gcc, so configuring glibc
4280 # with a fresh cross-compiler works.
4281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4282 # <limits.h> exists even on freestanding compilers.
4283 # On the NeXT, cc -E runs the code through the compiler's parser,
4284 # not just through cpp. "Syntax error" is here to catch this case.
4285 cat >conftest.$ac_ext <<_ACEOF
4288 cat confdefs.h >>conftest.$ac_ext
4289 cat >>conftest.$ac_ext <<_ACEOF
4290 /* end confdefs.h. */
4292 # include <limits.h>
4294 # include <assert.h>
4298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4301 grep -v '^ *+' conftest.er1 >conftest.err
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } >/dev/null; then
4306 if test -s conftest.err; then
4307 ac_cpp_err=$ac_cxx_preproc_warn_flag
4308 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4315 if test -z "$ac_cpp_err"; then
4318 echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4321 # Broken: fails on valid input.
4324 rm -f conftest.err conftest.$ac_ext
4326 # OK, works on sane cases. Now check whether non-existent headers
4327 # can be detected and how.
4328 cat >conftest.$ac_ext <<_ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4334 #include <ac_nonexistent.h>
4336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4339 grep -v '^ *+' conftest.er1 >conftest.err
4341 cat conftest.err >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } >/dev/null; then
4344 if test -s conftest.err; then
4345 ac_cpp_err=$ac_cxx_preproc_warn_flag
4346 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4353 if test -z "$ac_cpp_err"; then
4354 # Broken: success on invalid input.
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4360 # Passes both tests.
4364 rm -f conftest.err conftest.$ac_ext
4367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4368 rm -f conftest.err conftest.$ac_ext
4369 if $ac_preproc_ok; then
4374 ac_cv_prog_CXXCPP=$CXXCPP
4377 CXXCPP=$ac_cv_prog_CXXCPP
4379 ac_cv_prog_CXXCPP=$CXXCPP
4381 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4382 echo "${ECHO_T}$CXXCPP" >&6
4384 for ac_cxx_preproc_warn_flag in '' yes
4386 # Use a header file that comes with gcc, so configuring glibc
4387 # with a fresh cross-compiler works.
4388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4389 # <limits.h> exists even on freestanding compilers.
4390 # On the NeXT, cc -E runs the code through the compiler's parser,
4391 # not just through cpp. "Syntax error" is here to catch this case.
4392 cat >conftest.$ac_ext <<_ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4399 # include <limits.h>
4401 # include <assert.h>
4405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4408 grep -v '^ *+' conftest.er1 >conftest.err
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } >/dev/null; then
4413 if test -s conftest.err; then
4414 ac_cpp_err=$ac_cxx_preproc_warn_flag
4415 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4422 if test -z "$ac_cpp_err"; then
4425 echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.$ac_ext >&5
4428 # Broken: fails on valid input.
4431 rm -f conftest.err conftest.$ac_ext
4433 # OK, works on sane cases. Now check whether non-existent headers
4434 # can be detected and how.
4435 cat >conftest.$ac_ext <<_ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4441 #include <ac_nonexistent.h>
4443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4446 grep -v '^ *+' conftest.er1 >conftest.err
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } >/dev/null; then
4451 if test -s conftest.err; then
4452 ac_cpp_err=$ac_cxx_preproc_warn_flag
4453 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4460 if test -z "$ac_cpp_err"; then
4461 # Broken: success on invalid input.
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4467 # Passes both tests.
4471 rm -f conftest.err conftest.$ac_ext
4474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4475 rm -f conftest.err conftest.$ac_ext
4476 if $ac_preproc_ok; then
4479 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4480 See \`config.log' for more details." >&5
4481 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4482 See \`config.log' for more details." >&2;}
4483 { (exit 1); exit 1; }; }
4487 ac_cpp='$CXXCPP $CPPFLAGS'
4488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4494 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4495 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4497 if test -n "$ac_tool_prefix"; then
4498 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4502 echo "$as_me:$LINENO: checking for $ac_word" >&5
4503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4504 if test "${ac_cv_prog_F77+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 if test -n "$F77"; then
4508 ac_cv_prog_F77="$F77" # Let the user override the test.
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 if test -n "$F77"; then
4528 echo "$as_me:$LINENO: result: $F77" >&5
4529 echo "${ECHO_T}$F77" >&6
4531 echo "$as_me:$LINENO: result: no" >&5
4532 echo "${ECHO_T}no" >&6
4535 test -n "$F77" && break
4538 if test -z "$F77"; then
4540 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4542 # Extract the first word of "$ac_prog", so it can be a program name with args.
4543 set dummy $ac_prog; ac_word=$2
4544 echo "$as_me:$LINENO: checking for $ac_word" >&5
4545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4546 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 if test -n "$ac_ct_F77"; then
4550 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559 ac_cv_prog_ac_ct_F77="$ac_prog"
4560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4569 if test -n "$ac_ct_F77"; then
4570 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4571 echo "${ECHO_T}$ac_ct_F77" >&6
4573 echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6
4577 test -n "$ac_ct_F77" && break
4584 # Provide some information about the compiler.
4585 echo "$as_me:4585:" \
4586 "checking for Fortran 77 compiler version" >&5
4587 ac_compiler=`set X $ac_compile; echo $2`
4588 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4589 (eval $ac_compiler --version </dev/null >&5) 2>&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }
4593 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4594 (eval $ac_compiler -v </dev/null >&5) 2>&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }
4598 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4599 (eval $ac_compiler -V </dev/null >&5) 2>&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }
4605 # If we don't use `.F' as extension, the preprocessor is not run on the
4606 # input file. (Note that this only needs to work for GNU compilers.)
4609 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4610 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4611 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 cat >conftest.$ac_ext <<_ACEOF
4622 rm -f conftest.$ac_objext
4623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4624 (eval $ac_compile) 2>conftest.er1
4626 grep -v '^ *+' conftest.er1 >conftest.err
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } &&
4631 { ac_try='test -z "$ac_f77_werror_flag"
4632 || test ! -s conftest.err'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; } &&
4638 { ac_try='test -s conftest.$ac_objext'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4646 echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4652 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4655 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4656 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4658 ac_test_FFLAGS=${FFLAGS+set}
4659 ac_save_FFLAGS=$FFLAGS
4661 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4662 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4663 if test "${ac_cv_prog_f77_g+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 cat >conftest.$ac_ext <<_ACEOF
4672 rm -f conftest.$ac_objext
4673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4674 (eval $ac_compile) 2>conftest.er1
4676 grep -v '^ *+' conftest.er1 >conftest.err
4678 cat conftest.err >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); } &&
4681 { ac_try='test -z "$ac_f77_werror_flag"
4682 || test ! -s conftest.err'
4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; } &&
4688 { ac_try='test -s conftest.$ac_objext'
4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; }; then
4694 ac_cv_prog_f77_g=yes
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4704 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4705 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4706 if test "$ac_test_FFLAGS" = set; then
4707 FFLAGS=$ac_save_FFLAGS
4708 elif test $ac_cv_prog_f77_g = yes; then
4709 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4715 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4722 G77=`test $ac_compiler_gnu = yes && echo yes`
4724 ac_cpp='$CPP $CPPFLAGS'
4725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4731 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4733 # find the maximum length of command line arguments
4734 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4735 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4736 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 # On DJGPP, this test can blow up pretty badly due to problems in libc
4745 # (any single argument exceeding 2000 bytes causes a buffer overrun
4746 # during glob expansion). Even if it were fixed, the result of this
4747 # check would be larger than it should be.
4748 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4752 # Under GNU Hurd, this test is not required because there is
4753 # no limit to the length of command line arguments.
4754 # Libtool will interpret -1 as no limit whatsoever
4755 lt_cv_sys_max_cmd_len=-1;
4759 # On Win9x/ME, this test blows up -- it succeeds, but takes
4760 # about 5 minutes as the teststring grows exponentially.
4761 # Worse, since 9x/ME are not pre-emptively multitasking,
4762 # you end up with a "frozen" computer, even though with patience
4763 # the test eventually succeeds (with a max line length of 256k).
4764 # Instead, let's just punt: use the minimum linelength reported by
4765 # all of the supported platforms: 8192 (on NT/2K/XP).
4766 lt_cv_sys_max_cmd_len=8192;
4770 # On AmigaOS with pdksh, this test takes hours, literally.
4771 # So we just punt and use a minimum line length of 8192.
4772 lt_cv_sys_max_cmd_len=8192;
4776 # If test is not a shell built-in, we'll probably end up computing a
4777 # maximum length that is only half of the actual maximum length, but
4779 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4780 = "XX$testring") >/dev/null 2>&1 &&
4781 new_result=`expr "X$testring" : ".*" 2>&1` &&
4782 lt_cv_sys_max_cmd_len=$new_result &&
4783 test $i != 17 # 1/2 MB should be enough
4786 testring=$testring$testring
4789 # Add a significant safety factor because C++ compilers can tack on massive
4790 # amounts of additional arguments before passing them to the linker.
4791 # It appears as though 1/2 is a usable value.
4792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4798 if test -n $lt_cv_sys_max_cmd_len ; then
4799 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4800 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4802 echo "$as_me:$LINENO: result: none" >&5
4803 echo "${ECHO_T}none" >&6
4809 # Check for command to grab the raw symbol name followed by C symbol from nm.
4810 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4811 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4812 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 # These are sane defaults that work on at least a few old systems.
4817 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4819 # Character class describing NM global symbol codes.
4820 symcode='[BCDEGRST]'
4822 # Regexp to match symbols that can be accessed directly from C.
4823 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4825 # Transform the above into a raw symbol and a C symbol.
4826 symxfrm='\1 \2\3 \3'
4828 # Transform an extracted symbol line into a proper C declaration
4829 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4831 # Transform an extracted symbol line into symbol name and symbol address
4832 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'"
4834 # Define system-specific variables.
4839 cygwin* | mingw* | pw32*)
4840 symcode='[ABCDGISTW]'
4842 hpux*) # Its linker distinguishes data from code symbols
4843 if test "$host_cpu" = ia64; then
4844 symcode='[ABCDEGRST]'
4846 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4847 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'"
4850 symcode='[BCDEGRST]'
4853 symcode='[BCDEGQRST]'
4863 # Handle CRLF in mingw tool chain
4867 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4871 # If we're using GNU nm, then use its standard symbol codes.
4872 case `$NM -V 2>&1` in
4873 *GNU* | *'with BFD'*)
4874 symcode='[ABCDGIRSTW]' ;;
4877 # Try without a prefix undercore, then with it.
4878 for ac_symprfx in "" "_"; do
4880 # Write the raw and C identifiers.
4881 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4883 # Check to see that the pipe works correctly.
4887 cat > conftest.$ac_ext <<EOF
4892 void nm_test_func(){}
4896 int main(){nm_test_var='a';nm_test_func();return(0);}
4899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4900 (eval $ac_compile) 2>&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; then
4904 # Now try to grab the symbols.
4906 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4907 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } && test -s "$nlist"; then
4911 # Try sorting and uniquifying the output.
4912 if sort "$nlist" | uniq > "$nlist"T; then
4913 mv -f "$nlist"T "$nlist"
4918 # Make sure that we snagged all the symbols we need.
4919 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4920 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4921 cat <<EOF > conftest.$ac_ext
4927 # Now generate the symbol file.
4928 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4930 cat <<EOF >> conftest.$ac_ext
4931 #if defined (__STDC__) && __STDC__
4932 # define lt_ptr_t void *
4934 # define lt_ptr_t char *
4938 /* The mapping between symbol names and symbols. */
4943 lt_preloaded_symbols[] =
4946 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4947 cat <<\EOF >> conftest.$ac_ext
4955 # Now try linking the two files.
4956 mv conftest.$ac_objext conftstm.$ac_objext
4957 lt_save_LIBS="$LIBS"
4958 lt_save_CFLAGS="$CFLAGS"
4959 LIBS="conftstm.$ac_objext"
4960 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4962 (eval $ac_link) 2>&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4968 LIBS="$lt_save_LIBS"
4969 CFLAGS="$lt_save_CFLAGS"
4971 echo "cannot find nm_test_func in $nlist" >&5
4974 echo "cannot find nm_test_var in $nlist" >&5
4977 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4980 echo "$progname: failed program was:" >&5
4981 cat conftest.$ac_ext >&5
4983 rm -f conftest* conftst*
4985 # Do not use the global_symbol_pipe unless it works.
4986 if test "$pipe_works" = yes; then
4989 lt_cv_sys_global_symbol_pipe=
4995 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4996 lt_cv_sys_global_symbol_to_cdecl=
4998 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4999 echo "$as_me:$LINENO: result: failed" >&5
5000 echo "${ECHO_T}failed" >&6
5002 echo "$as_me:$LINENO: result: ok" >&5
5003 echo "${ECHO_T}ok" >&6
5006 echo "$as_me:$LINENO: checking for objdir" >&5
5007 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5008 if test "${lt_cv_objdir+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 rm -f .libs 2>/dev/null
5012 mkdir .libs 2>/dev/null
5013 if test -d .libs; then
5016 # MS-DOS does not allow filenames that begin with a dot.
5019 rmdir .libs 2>/dev/null
5021 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5022 echo "${ECHO_T}$lt_cv_objdir" >&6
5023 objdir=$lt_cv_objdir
5031 # AIX sometimes has problems with the GCC collect2 program. For some
5032 # reason, if we set the COLLECT_NAMES environment variable, the problems
5033 # vanish in a puff of smoke.
5034 if test "X${COLLECT_NAMES+set}" != Xset; then
5036 export COLLECT_NAMES
5041 # Sed substitution that helps us do robust quoting. It backslashifies
5042 # metacharacters that are still active within double-quoted strings.
5043 Xsed='sed -e s/^X//'
5044 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5046 # Same as above, but do not quote variable references.
5047 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5049 # Sed substitution to delay expansion of an escaped shell variable in a
5050 # double_quote_subst'ed string.
5051 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5053 # Sed substitution to avoid accidental globbing in evaled expressions
5054 no_glob_subst='s/\*/\\\*/g'
5060 default_ofile=libtool
5061 can_build_shared=yes
5063 # All known linkers require a `.a' archive for static linking (except M$VC,
5064 # which needs '.lib').
5066 ltmain="$ac_aux_dir/ltmain.sh"
5067 ofile="$default_ofile"
5068 with_gnu_ld="$lt_cv_prog_gnu_ld"
5070 if test -n "$ac_tool_prefix"; then
5071 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5072 set dummy ${ac_tool_prefix}ar; ac_word=$2
5073 echo "$as_me:$LINENO: checking for $ac_word" >&5
5074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5075 if test "${ac_cv_prog_AR+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 if test -n "$AR"; then
5079 ac_cv_prog_AR="$AR" # Let the user override the test.
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088 ac_cv_prog_AR="${ac_tool_prefix}ar"
5089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 if test -n "$AR"; then
5099 echo "$as_me:$LINENO: result: $AR" >&5
5100 echo "${ECHO_T}$AR" >&6
5102 echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6
5107 if test -z "$ac_cv_prog_AR"; then
5109 # Extract the first word of "ar", so it can be a program name with args.
5110 set dummy ar; ac_word=$2
5111 echo "$as_me:$LINENO: checking for $ac_word" >&5
5112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5113 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5116 if test -n "$ac_ct_AR"; then
5117 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5126 ac_cv_prog_ac_ct_AR="ar"
5127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5136 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5137 if test -n "$ac_ct_AR"; then
5138 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5139 echo "${ECHO_T}$ac_ct_AR" >&6
5141 echo "$as_me:$LINENO: result: no" >&5
5142 echo "${ECHO_T}no" >&6
5150 if test -n "$ac_tool_prefix"; then
5151 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5152 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5153 echo "$as_me:$LINENO: checking for $ac_word" >&5
5154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5155 if test "${ac_cv_prog_RANLIB+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 if test -n "$RANLIB"; then
5159 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 RANLIB=$ac_cv_prog_RANLIB
5178 if test -n "$RANLIB"; then
5179 echo "$as_me:$LINENO: result: $RANLIB" >&5
5180 echo "${ECHO_T}$RANLIB" >&6
5182 echo "$as_me:$LINENO: result: no" >&5
5183 echo "${ECHO_T}no" >&6
5187 if test -z "$ac_cv_prog_RANLIB"; then
5188 ac_ct_RANLIB=$RANLIB
5189 # Extract the first word of "ranlib", so it can be a program name with args.
5190 set dummy ranlib; ac_word=$2
5191 echo "$as_me:$LINENO: checking for $ac_word" >&5
5192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5193 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 if test -n "$ac_ct_RANLIB"; then
5197 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5206 ac_cv_prog_ac_ct_RANLIB="ranlib"
5207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5216 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5217 if test -n "$ac_ct_RANLIB"; then
5218 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5219 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5221 echo "$as_me:$LINENO: result: no" >&5
5222 echo "${ECHO_T}no" >&6
5225 RANLIB=$ac_ct_RANLIB
5227 RANLIB="$ac_cv_prog_RANLIB"
5230 if test -n "$ac_tool_prefix"; then
5231 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5232 set dummy ${ac_tool_prefix}strip; ac_word=$2
5233 echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5235 if test "${ac_cv_prog_STRIP+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 if test -n "$STRIP"; then
5239 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 test -z "$as_dir" && as_dir=.
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5248 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 STRIP=$ac_cv_prog_STRIP
5258 if test -n "$STRIP"; then
5259 echo "$as_me:$LINENO: result: $STRIP" >&5
5260 echo "${ECHO_T}$STRIP" >&6
5262 echo "$as_me:$LINENO: result: no" >&5
5263 echo "${ECHO_T}no" >&6
5267 if test -z "$ac_cv_prog_STRIP"; then
5269 # Extract the first word of "strip", so it can be a program name with args.
5270 set dummy strip; ac_word=$2
5271 echo "$as_me:$LINENO: checking for $ac_word" >&5
5272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5273 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 if test -n "$ac_ct_STRIP"; then
5277 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5286 ac_cv_prog_ac_ct_STRIP="strip"
5287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5296 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5297 if test -n "$ac_ct_STRIP"; then
5298 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5299 echo "${ECHO_T}$ac_ct_STRIP" >&6
5301 echo "$as_me:$LINENO: result: no" >&5
5302 echo "${ECHO_T}no" >&6
5307 STRIP="$ac_cv_prog_STRIP"
5312 old_CFLAGS="$CFLAGS"
5314 # Set sane defaults for various variables
5315 test -z "$AR" && AR=ar
5316 test -z "$AR_FLAGS" && AR_FLAGS=cru
5317 test -z "$AS" && AS=as
5318 test -z "$CC" && CC=cc
5319 test -z "$LTCC" && LTCC=$CC
5320 test -z "$DLLTOOL" && DLLTOOL=dlltool
5321 test -z "$LD" && LD=ld
5322 test -z "$LN_S" && LN_S="ln -s"
5323 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5324 test -z "$NM" && NM=nm
5325 test -z "$SED" && SED=sed
5326 test -z "$OBJDUMP" && OBJDUMP=objdump
5327 test -z "$RANLIB" && RANLIB=:
5328 test -z "$STRIP" && STRIP=:
5329 test -z "$ac_objext" && ac_objext=o
5331 # Determine commands to create old-style static archives.
5332 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5333 old_postinstall_cmds='chmod 644 $oldlib'
5334 old_postuninstall_cmds=
5336 if test -n "$RANLIB"; then
5339 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5342 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5345 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5348 # Only perform the check for file, if the check method requires it
5349 case $deplibs_check_method in
5351 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5352 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5353 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5354 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5362 lt_save_MAGIC_CMD="$MAGIC_CMD"
5363 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5364 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5365 for ac_dir in $ac_dummy; do
5367 test -z "$ac_dir" && ac_dir=.
5368 if test -f $ac_dir/${ac_tool_prefix}file; then
5369 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5370 if test -n "$file_magic_test_file"; then
5371 case $deplibs_check_method in
5373 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5374 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5375 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5376 $EGREP "$file_magic_regex" > /dev/null; then
5381 *** Warning: the command libtool uses to detect shared libraries,
5382 *** $file_magic_cmd, produces output that libtool cannot recognize.
5383 *** The result is that libtool may fail to recognize shared libraries
5384 *** as such. This will affect the creation of libtool libraries that
5385 *** depend on shared libraries, but programs linked with such libtool
5386 *** libraries will work regardless of this problem. Nevertheless, you
5387 *** may want to report the problem to your system manager and/or to
5388 *** bug-libtool@gnu.org
5398 MAGIC_CMD="$lt_save_MAGIC_CMD"
5403 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5404 if test -n "$MAGIC_CMD"; then
5405 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5406 echo "${ECHO_T}$MAGIC_CMD" >&6
5408 echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6
5412 if test -z "$lt_cv_path_MAGIC_CMD"; then
5413 if test -n "$ac_tool_prefix"; then
5414 echo "$as_me:$LINENO: checking for file" >&5
5415 echo $ECHO_N "checking for file... $ECHO_C" >&6
5416 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5421 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5424 lt_save_MAGIC_CMD="$MAGIC_CMD"
5425 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5426 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5427 for ac_dir in $ac_dummy; do
5429 test -z "$ac_dir" && ac_dir=.
5430 if test -f $ac_dir/file; then
5431 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5432 if test -n "$file_magic_test_file"; then
5433 case $deplibs_check_method in
5435 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5436 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5437 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5438 $EGREP "$file_magic_regex" > /dev/null; then
5443 *** Warning: the command libtool uses to detect shared libraries,
5444 *** $file_magic_cmd, produces output that libtool cannot recognize.
5445 *** The result is that libtool may fail to recognize shared libraries
5446 *** as such. This will affect the creation of libtool libraries that
5447 *** depend on shared libraries, but programs linked with such libtool
5448 *** libraries will work regardless of this problem. Nevertheless, you
5449 *** may want to report the problem to your system manager and/or to
5450 *** bug-libtool@gnu.org
5460 MAGIC_CMD="$lt_save_MAGIC_CMD"
5465 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5466 if test -n "$MAGIC_CMD"; then
5467 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5468 echo "${ECHO_T}$MAGIC_CMD" >&6
5470 echo "$as_me:$LINENO: result: no" >&5
5471 echo "${ECHO_T}no" >&6
5486 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5487 if test "${enable_libtool_lock+set}" = set; then
5488 enableval="$enable_libtool_lock"
5491 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5494 # Check whether --with-pic or --without-pic was given.
5495 if test "${with_pic+set}" = set; then
5501 test -z "$pic_mode" && pic_mode=default
5503 # Use C for the default configuration in the libtool script
5507 ac_cpp='$CPP $CPPFLAGS'
5508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5513 # Source file extension for C test sources.
5516 # Object file extension for compiled C test sources.
5520 # Code to be used in simple compile tests
5521 lt_simple_compile_test_code="int some_variable = 0;\n"
5523 # Code to be used in simple link tests
5524 lt_simple_link_test_code='int main(){return(0);}\n'
5527 # If no C compiler was specified, use CC.
5530 # Allow CC to be a program name with arguments.
5535 # Check for any special shared library compilation flags.
5538 if test "$GCC" = no; then
5541 lt_prog_cc_shlib='-belf'
5545 if test -n "$lt_prog_cc_shlib"; then
5546 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5547 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5548 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5550 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5551 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5552 lt_cv_prog_cc_can_build_shared=no
5558 # Check to make sure the static flag actually works.
5560 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5561 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5562 if test "${lt_prog_compiler_static_works+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 lt_prog_compiler_static_works=no
5566 save_LDFLAGS="$LDFLAGS"
5567 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5568 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5569 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5570 # The compiler can only warn and ignore the option if not recognized
5571 # So say no if there are warnings
5572 if test -s conftest.err; then
5573 # Append any errors to the config.log.
5574 cat conftest.err 1>&5
5576 lt_prog_compiler_static_works=yes
5580 LDFLAGS="$save_LDFLAGS"
5583 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5584 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5586 if test x"$lt_prog_compiler_static_works" = xyes; then
5589 lt_prog_compiler_static=
5595 ## There is no encapsulation within the following macros, do not change
5596 ## the running order or otherwise move them around unless you know exactly
5597 ## what you are doing...
5599 lt_prog_compiler_no_builtin_flag=
5601 if test "$GCC" = yes; then
5602 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5605 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5606 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5607 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 lt_cv_prog_compiler_rtti_exceptions=no
5611 ac_outfile=conftest.$ac_objext
5612 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5613 lt_compiler_flag="-fno-rtti -fno-exceptions"
5614 # Insert the option either (1) after the last *FLAGS variable, or
5615 # (2) before a word containing "conftest.", or (3) at the end.
5616 # Note that $ac_compile itself does not contain backslashes and begins
5617 # with a dollar sign (not a hyphen), so the echo should work correctly.
5618 # The option is referenced via a variable to avoid confusing sed.
5619 lt_compile=`echo "$ac_compile" | $SED \
5620 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5622 -e 's:$: $lt_compiler_flag:'`
5623 (eval echo "\"\$as_me:5623: $lt_compile\"" >&5)
5624 (eval "$lt_compile" 2>conftest.err)
5626 cat conftest.err >&5
5627 echo "$as_me:5627: \$? = $ac_status" >&5
5628 if (exit $ac_status) && test -s "$ac_outfile"; then
5629 # The compiler can only warn and ignore the option if not recognized
5630 # So say no if there are warnings
5631 if test ! -s conftest.err; then
5632 lt_cv_prog_compiler_rtti_exceptions=yes
5638 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5639 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5641 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5642 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5649 lt_prog_compiler_wl=
5650 lt_prog_compiler_pic=
5651 lt_prog_compiler_static=
5653 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5654 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5656 if test "$GCC" = yes; then
5657 lt_prog_compiler_wl='-Wl,'
5658 lt_prog_compiler_static='-static'
5662 # All AIX code is PIC.
5663 if test "$host_cpu" = ia64; then
5664 # AIX 5 now supports IA64 processor
5665 lt_prog_compiler_static='-Bstatic'
5670 # FIXME: we need at least 68020 code to build shared libraries, but
5671 # adding the `-m68020' flag to GCC prevents building anything better,
5673 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5676 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5677 # PIC is the default for these OSes.
5680 mingw* | pw32* | os2*)
5681 # This hack is so that the source file can tell whether it is being
5682 # built for inclusion in a dll (and should export symbols for example).
5683 lt_prog_compiler_pic='-DDLL_EXPORT'
5686 darwin* | rhapsody*)
5687 # PIC is the default on this platform
5688 # Common symbols not allowed in MH_DYLIB files
5689 lt_prog_compiler_pic='-fno-common'
5693 # Just because we use GCC doesn't mean we suddenly get shared libraries
5694 # on systems that don't support them.
5695 lt_prog_compiler_can_build_shared=no
5700 if test -d /usr/nec; then
5701 lt_prog_compiler_pic=-Kconform_pic
5706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5713 lt_prog_compiler_pic='-fPIC'
5719 lt_prog_compiler_pic='-fPIC'
5723 # PORTME Check for flag to pass linker flags through the system compiler.
5726 lt_prog_compiler_wl='-Wl,'
5727 if test "$host_cpu" = ia64; then
5728 # AIX 5 now supports IA64 processor
5729 lt_prog_compiler_static='-Bstatic'
5731 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5735 mingw* | pw32* | os2*)
5736 # This hack is so that the source file can tell whether it is being
5737 # built for inclusion in a dll (and should export symbols for example).
5738 lt_prog_compiler_pic='-DDLL_EXPORT'
5741 hpux9* | hpux10* | hpux11*)
5742 lt_prog_compiler_wl='-Wl,'
5743 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5750 lt_prog_compiler_pic='+Z'
5753 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5754 lt_prog_compiler_static='${wl}-a ${wl}archive'
5757 irix5* | irix6* | nonstopux*)
5758 lt_prog_compiler_wl='-Wl,'
5759 # PIC (with -KPIC) is the default.
5760 lt_prog_compiler_static='-non_shared'
5764 lt_prog_compiler_pic='-KPIC'
5765 lt_prog_compiler_static='-Bstatic'
5771 lt_prog_compiler_wl='-Wl,'
5772 lt_prog_compiler_pic='-KPIC'
5773 lt_prog_compiler_static='-static'
5776 lt_prog_compiler_wl='-Wl,'
5777 # All Alpha code is PIC.
5778 lt_prog_compiler_static='-non_shared'
5783 osf3* | osf4* | osf5*)
5784 lt_prog_compiler_wl='-Wl,'
5785 # All OSF/1 code is PIC.
5786 lt_prog_compiler_static='-non_shared'
5790 lt_prog_compiler_pic='-Kpic'
5791 lt_prog_compiler_static='-dn'
5795 lt_prog_compiler_wl='-Wl,'
5796 lt_prog_compiler_pic='-KPIC'
5797 lt_prog_compiler_static='-Bstatic'
5801 lt_prog_compiler_wl='-Qoption ld '
5802 lt_prog_compiler_pic='-PIC'
5803 lt_prog_compiler_static='-Bstatic'
5806 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5807 lt_prog_compiler_wl='-Wl,'
5808 lt_prog_compiler_pic='-KPIC'
5809 lt_prog_compiler_static='-Bstatic'
5813 if test -d /usr/nec ;then
5814 lt_prog_compiler_pic='-Kconform_pic'
5815 lt_prog_compiler_static='-Bstatic'
5820 lt_prog_compiler_pic='-pic'
5821 lt_prog_compiler_static='-Bstatic'
5825 lt_prog_compiler_can_build_shared=no
5830 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5831 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5834 # Check to make sure the PIC flag actually works.
5836 if test -n "$lt_prog_compiler_pic"; then
5838 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5839 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5840 if test "${lt_prog_compiler_pic_works+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 lt_prog_compiler_pic_works=no
5844 ac_outfile=conftest.$ac_objext
5845 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5846 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5847 # Insert the option either (1) after the last *FLAGS variable, or
5848 # (2) before a word containing "conftest.", or (3) at the end.
5849 # Note that $ac_compile itself does not contain backslashes and begins
5850 # with a dollar sign (not a hyphen), so the echo should work correctly.
5851 # The option is referenced via a variable to avoid confusing sed.
5852 lt_compile=`echo "$ac_compile" | $SED \
5853 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5855 -e 's:$: $lt_compiler_flag:'`
5856 (eval echo "\"\$as_me:5856: $lt_compile\"" >&5)
5857 (eval "$lt_compile" 2>conftest.err)
5859 cat conftest.err >&5
5860 echo "$as_me:5860: \$? = $ac_status" >&5
5861 if (exit $ac_status) && test -s "$ac_outfile"; then
5862 # The compiler can only warn and ignore the option if not recognized
5863 # So say no if there are warnings
5864 if test ! -s conftest.err; then
5865 lt_prog_compiler_pic_works=yes
5871 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5872 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5874 if test x"$lt_prog_compiler_pic_works" = xyes; then
5875 case $lt_prog_compiler_pic in
5877 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5880 lt_prog_compiler_pic=
5881 lt_prog_compiler_can_build_shared=no
5886 # For platforms which do not support PIC, -DPIC is meaningless:
5888 lt_prog_compiler_pic=
5891 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5895 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5896 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5897 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 lt_cv_prog_compiler_c_o=no
5901 $rm -r conftest 2>/dev/null
5905 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5907 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5908 # that will create temporary files in the current directory regardless of
5909 # the output directory. Thus, making CWD read-only will cause this test
5910 # to fail, enabling locking or at least warning the user not to do parallel
5914 lt_compiler_flag="-o out/conftest2.$ac_objext"
5915 # Insert the option either (1) after the last *FLAGS variable, or
5916 # (2) before a word containing "conftest.", or (3) at the end.
5917 # Note that $ac_compile itself does not contain backslashes and begins
5918 # with a dollar sign (not a hyphen), so the echo should work correctly.
5919 lt_compile=`echo "$ac_compile" | $SED \
5920 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5922 -e 's:$: $lt_compiler_flag:'`
5923 (eval echo "\"\$as_me:5923: $lt_compile\"" >&5)
5924 (eval "$lt_compile" 2>out/conftest.err)
5926 cat out/conftest.err >&5
5927 echo "$as_me:5927: \$? = $ac_status" >&5
5928 if (exit $ac_status) && test -s out/conftest2.$ac_objext
5930 # The compiler can only warn and ignore the option if not recognized
5931 # So say no if there are warnings
5932 if test ! -s out/conftest.err; then
5933 lt_cv_prog_compiler_c_o=yes
5938 # SGI C++ compiler will create directory out/ii_files/ for
5939 # template instantiation
5940 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
5941 $rm out/* && rmdir out
5947 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5948 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5951 hard_links="nottested"
5952 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
5953 # do not overwrite the value of need_locks provided by the user
5954 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5955 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5960 ln conftest.a conftest.b 2>&5 || hard_links=no
5961 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5962 echo "$as_me:$LINENO: result: $hard_links" >&5
5963 echo "${ECHO_T}$hard_links" >&6
5964 if test "$hard_links" = no; then
5965 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5966 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5973 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5974 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5977 allow_undefined_flag=
5978 enable_shared_with_static_runtimes=no
5980 archive_expsym_cmds=
5981 old_archive_From_new_cmds=
5982 old_archive_from_expsyms_cmds=
5983 export_dynamic_flag_spec=
5984 whole_archive_flag_spec=
5985 thread_safe_flag_spec=
5986 hardcode_libdir_flag_spec=
5987 hardcode_libdir_flag_spec_ld=
5988 hardcode_libdir_separator=
5991 hardcode_shlibpath_var=unsupported
5992 link_all_deplibs=unknown
5993 hardcode_automatic=no
5996 always_export_symbols=no
5997 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5998 # include_expsyms should be a list of space-separated symbols to be *always*
5999 # included in the symbol list
6001 # exclude_expsyms can be an extended regexp of symbols to exclude
6002 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6003 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6004 # as well as any symbol that contains `d'.
6005 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6006 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6007 # platforms (ab)use it in PIC code, but their linkers get confused if
6008 # the symbol is explicitly referenced. Since portable code cannot
6009 # rely on this symbol name, it's probably fine to never include it in
6010 # preloaded symbol tables.
6011 extract_expsyms_cmds=
6014 cygwin* | mingw* | pw32*)
6015 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6016 # When not using gcc, we currently assume that we are using
6017 # Microsoft Visual C++.
6018 if test "$GCC" != yes; then
6028 if test "$with_gnu_ld" = yes; then
6029 # If archive_cmds runs LD, not CC, wlarc should be empty
6032 # See if GNU ld supports shared libraries.
6034 aix3* | aix4* | aix5*)
6035 # On AIX/PPC, the GNU linker is very broken
6036 if test "$host_cpu" != ia64; then
6040 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6041 *** to be unable to reliably create shared libraries on AIX.
6042 *** Therefore, libtool is disabling shared libraries support. If you
6043 *** really care for shared libraries, you may want to modify your PATH
6044 *** so that a non-GNU linker is found, and then restart.
6051 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)'
6052 hardcode_libdir_flag_spec='-L$libdir'
6053 hardcode_minus_L=yes
6055 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6056 # that the semantics of dynamic libraries on AmigaOS, at least up
6057 # to version 4, is to share data among multiple programs linked
6058 # with the same dynamic library. Since this doesn't match the
6059 # behavior of shared libraries on other platforms, we can't use
6065 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6066 allow_undefined_flag=unsupported
6067 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6068 # support --undefined. This deserves some investigation. FIXME
6069 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6075 cygwin* | mingw* | pw32*)
6076 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6077 # as there is no search path for DLLs.
6078 hardcode_libdir_flag_spec='-L$libdir'
6079 allow_undefined_flag=unsupported
6080 always_export_symbols=no
6081 enable_shared_with_static_runtimes=yes
6082 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6084 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6086 # If the export-symbols file already is a .def file (1st line
6087 # is EXPORTS), use it as is; otherwise, prepend...
6088 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6089 cp $export_symbols $output_objdir/$soname.def;
6091 echo EXPORTS > $output_objdir/$soname.def;
6092 cat $export_symbols >> $output_objdir/$soname.def;
6094 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6101 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6102 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6106 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6111 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6115 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6116 *** create shared libraries on Solaris systems. Therefore, libtool
6117 *** is disabling shared libraries support. We urge you to upgrade GNU
6118 *** binutils to release 2.9.1 or newer. Another option is to modify
6119 *** your PATH or compiler configuration so that the native linker is
6120 *** used, and then restart.
6123 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6125 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6132 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6135 hardcode_shlibpath_var=no
6139 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6140 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6141 archive_cmds="$tmp_archive_cmds"
6142 supports_anon_versioning=no
6143 case `$LD -v 2>/dev/null` in
6144 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6145 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6146 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6147 *\ 2.11.*) ;; # other 2.11 versions
6148 *) supports_anon_versioning=yes ;;
6150 if test $supports_anon_versioning = yes; then
6151 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6152 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6153 $echo "local: *; };" >> $output_objdir/$libname.ver~
6154 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6156 archive_expsym_cmds="$tmp_archive_cmds"
6164 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6166 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6173 if test "$ld_shlibs" = yes; then
6174 runpath_var=LD_RUN_PATH
6175 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6176 export_dynamic_flag_spec='${wl}--export-dynamic'
6177 # ancient GNU ld didn't support --whole-archive et. al.
6178 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6179 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6181 whole_archive_flag_spec=
6185 # PORTME fill in a description of your system's linker (not GNU ld)
6188 allow_undefined_flag=unsupported
6189 always_export_symbols=yes
6190 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'
6191 # Note: this linker hardcodes the directories in LIBPATH if there
6192 # are no directories specified by -L.
6193 hardcode_minus_L=yes
6194 if test "$GCC" = yes && test -z "$link_static_flag"; then
6195 # Neither direct hardcoding nor static linking is supported with a
6197 hardcode_direct=unsupported
6202 if test "$host_cpu" = ia64; then
6203 # On IA64, the linker does run time linking by default, so we don't
6204 # have to do anything special.
6205 aix_use_runtimelinking=no
6206 exp_sym_flag='-Bexport'
6209 # If we're using GNU nm, then we don't want the "-C" option.
6210 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6211 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6212 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'
6214 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'
6216 aix_use_runtimelinking=no
6218 # Test if we are trying to use run time linking or normal
6219 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6220 # need to do runtime linking.
6221 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6222 for ld_flag in $LDFLAGS; do
6223 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6224 aix_use_runtimelinking=yes
6230 exp_sym_flag='-bexport'
6231 no_entry_flag='-bnoentry'
6234 # When large executables or shared objects are built, AIX ld can
6235 # have problems creating the table of contents. If linking a library
6236 # or program results in "error TOC overflow" add -mminimal-toc to
6237 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6238 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6242 hardcode_libdir_separator=':'
6243 link_all_deplibs=yes
6245 if test "$GCC" = yes; then
6246 case $host_os in aix4.012|aix4.012.*)
6247 # We only want to do this on AIX 4.2 and lower, the check
6248 # below for broken collect2 doesn't work under 4.3+
6249 collect2name=`${CC} -print-prog-name=collect2`
6250 if test -f "$collect2name" && \
6251 strings "$collect2name" | grep resolve_lib_name >/dev/null
6253 # We have reworked collect2
6256 # We have old collect2
6257 hardcode_direct=unsupported
6258 # It fails to find uninstalled libraries when the uninstalled
6259 # path is not listed in the libpath. Setting hardcode_minus_L
6260 # to unsupported forces relinking
6261 hardcode_minus_L=yes
6262 hardcode_libdir_flag_spec='-L$libdir'
6263 hardcode_libdir_separator=
6266 shared_flag='-shared'
6269 if test "$host_cpu" = ia64; then
6270 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6271 # chokes on -Wl,-G. The following line is correct:
6274 if test "$aix_use_runtimelinking" = yes; then
6275 shared_flag='${wl}-G'
6277 shared_flag='${wl}-bM:SRE'
6282 # It seems that -bexpall does not export symbols beginning with
6283 # underscore (_), so it is better to generate a list of symbols to export.
6284 always_export_symbols=yes
6285 if test "$aix_use_runtimelinking" = yes; then
6286 # Warning - without using the other runtime loading flags (-brtl),
6287 # -berok will link without error, but may produce a broken library.
6288 allow_undefined_flag='-berok'
6289 # Determine the default libpath from the value encoded in an empty executable.
6290 cat >conftest.$ac_ext <<_ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6305 rm -f conftest.$ac_objext conftest$ac_exeext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6307 (eval $ac_link) 2>conftest.er1
6309 grep -v '^ *+' conftest.er1 >conftest.err
6311 cat conftest.err >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
6314 { ac_try='test -z "$ac_c_werror_flag"
6315 || test ! -s conftest.err'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; } &&
6321 { ac_try='test -s conftest$ac_exeext'
6322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
6328 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6330 # Check for a 64-bit object if we didn't find anything.
6331 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; }
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6338 rm -f conftest.err conftest.$ac_objext \
6339 conftest$ac_exeext conftest.$ac_ext
6340 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6342 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6343 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6345 if test "$host_cpu" = ia64; then
6346 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6347 allow_undefined_flag="-z nodefs"
6348 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6350 # Determine the default libpath from the value encoded in an empty executable.
6351 cat >conftest.$ac_ext <<_ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6366 rm -f conftest.$ac_objext conftest$ac_exeext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6368 (eval $ac_link) 2>conftest.er1
6370 grep -v '^ *+' conftest.er1 >conftest.err
6372 cat conftest.err >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try='test -z "$ac_c_werror_flag"
6376 || test ! -s conftest.err'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; } &&
6382 { ac_try='test -s conftest$ac_exeext'
6383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; }; then
6389 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6391 # Check for a 64-bit object if we didn't find anything.
6392 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; }
6395 echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6399 rm -f conftest.err conftest.$ac_objext \
6400 conftest$ac_exeext conftest.$ac_ext
6401 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6403 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6404 # Warning - without using the other run time loading flags,
6405 # -berok will link without error, but may produce a broken library.
6406 no_undefined_flag=' ${wl}-bernotok'
6407 allow_undefined_flag=' ${wl}-berok'
6408 # -bexpall does not export symbols beginning with underscore (_)
6409 always_export_symbols=yes
6410 # Exported symbols can be pulled into shared objects from archives
6411 whole_archive_flag_spec=' '
6412 archive_cmds_need_lc=yes
6413 # This is similar to how AIX traditionally builds it's shared libraries.
6414 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6420 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)'
6421 hardcode_libdir_flag_spec='-L$libdir'
6422 hardcode_minus_L=yes
6423 # see comment about different semantics on the GNU ld section
6428 export_dynamic_flag_spec=-rdynamic
6431 cygwin* | mingw* | pw32*)
6432 # When not using gcc, we currently assume that we are using
6433 # Microsoft Visual C++.
6434 # hardcode_libdir_flag_spec is actually meaningless, as there is
6435 # no search path for DLLs.
6436 hardcode_libdir_flag_spec=' '
6437 allow_undefined_flag=unsupported
6438 # Tell ltmain to make .lib files, not .a files.
6440 # Tell ltmain to make .dll files, not .so files.
6442 # FIXME: Setting linknames here is a bad hack.
6443 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6444 # The linker will automatically build a .lib file if we build a DLL.
6445 old_archive_From_new_cmds='true'
6446 # FIXME: Should let the user specify the lib program.
6447 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6448 fix_srcfile_path='`cygpath -w "$srcfile"`'
6449 enable_shared_with_static_runtimes=yes
6452 darwin* | rhapsody*)
6453 if test "$GXX" = yes ; then
6454 archive_cmds_need_lc=no
6456 rhapsody* | darwin1.[012])
6457 allow_undefined_flag='-undefined suppress'
6460 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6461 allow_undefined_flag='-flat_namespace -undefined suppress'
6463 case ${MACOSX_DEPLOYMENT_TARGET} in
6465 allow_undefined_flag='-flat_namespace -undefined suppress'
6468 allow_undefined_flag='-undefined dynamic_lookup'
6474 lt_int_apple_cc_single_mod=no
6475 output_verbose_link_cmd='echo'
6476 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6477 lt_int_apple_cc_single_mod=yes
6479 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6480 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6482 archive_cmds='$CC -r ${wl}-bind_at_load -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'
6484 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6485 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6486 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6487 archive_expsym_cmds='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}'
6489 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
6491 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}'
6493 hardcode_automatic=yes
6494 hardcode_shlibpath_var=unsupported
6495 whole_archive_flag_spec='-all_load $convenience'
6496 link_all_deplibs=yes
6503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6504 hardcode_libdir_flag_spec='-L$libdir'
6505 hardcode_shlibpath_var=no
6512 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6513 # support. Future versions do this automatically, but an explicit c++rt0.o
6514 # does not break anything, and helps significantly (at the cost of a little
6517 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6518 hardcode_libdir_flag_spec='-R$libdir'
6520 hardcode_shlibpath_var=no
6523 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6527 hardcode_minus_L=yes
6528 hardcode_shlibpath_var=no
6531 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6532 freebsd* | kfreebsd*-gnu)
6533 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6534 hardcode_libdir_flag_spec='-R$libdir'
6536 hardcode_shlibpath_var=no
6540 if test "$GCC" = yes; then
6541 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'
6543 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'
6545 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6546 hardcode_libdir_separator=:
6549 # hardcode_minus_L: Not really in the search PATH,
6550 # but as the default location of the library.
6551 hardcode_minus_L=yes
6552 export_dynamic_flag_spec='${wl}-E'
6556 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6559 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6562 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6568 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6571 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6575 if test "$with_gnu_ld" = no; then
6578 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6579 hardcode_libdir_flag_spec_ld='+b $libdir'
6580 hardcode_libdir_separator=:
6582 hardcode_shlibpath_var=no
6585 hardcode_libdir_flag_spec='-L$libdir'
6587 hardcode_shlibpath_var=no
6589 # hardcode_minus_L: Not really in the search PATH,
6590 # but as the default location of the library.
6591 hardcode_minus_L=yes
6594 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6595 hardcode_libdir_separator=:
6597 export_dynamic_flag_spec='${wl}-E'
6599 # hardcode_minus_L: Not really in the search PATH,
6600 # but as the default location of the library.
6601 hardcode_minus_L=yes
6607 irix5* | irix6* | nonstopux*)
6608 if test "$GCC" = yes; then
6609 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'
6611 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'
6612 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6615 hardcode_libdir_separator=:
6616 link_all_deplibs=yes
6620 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6623 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6625 hardcode_libdir_flag_spec='-R$libdir'
6627 hardcode_shlibpath_var=no
6631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6634 hardcode_libdir_separator=:
6635 hardcode_shlibpath_var=no
6640 hardcode_shlibpath_var=no
6641 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6642 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6643 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6644 export_dynamic_flag_spec='${wl}-E'
6647 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6648 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6649 hardcode_libdir_flag_spec='-R$libdir'
6652 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6653 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6660 hardcode_libdir_flag_spec='-L$libdir'
6661 hardcode_minus_L=yes
6662 allow_undefined_flag=unsupported
6663 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'
6664 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6668 if test "$GCC" = yes; then
6669 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6670 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'
6672 allow_undefined_flag=' -expect_unresolved \*'
6673 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'
6675 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6676 hardcode_libdir_separator=:
6679 osf4* | osf5*) # as osf3* with the addition of -msym flag
6680 if test "$GCC" = yes; then
6681 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6682 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'
6683 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6685 allow_undefined_flag=' -expect_unresolved \*'
6686 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'
6687 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6688 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6690 # Both c and cxx compiler support -rpath directly
6691 hardcode_libdir_flag_spec='-rpath $libdir'
6693 hardcode_libdir_separator=:
6697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6698 hardcode_shlibpath_var=no
6699 export_dynamic_flag_spec='${wl}-Bexport'
6700 runpath_var=LD_RUN_PATH
6701 hardcode_runpath_var=yes
6705 no_undefined_flag=' -z text'
6706 if test "$GCC" = yes; then
6707 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6708 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6709 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6711 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6712 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6713 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6715 hardcode_libdir_flag_spec='-R$libdir'
6716 hardcode_shlibpath_var=no
6718 solaris2.[0-5] | solaris2.[0-5].*) ;;
6719 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6720 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6722 link_all_deplibs=yes
6726 if test "x$host_vendor" = xsequent; then
6727 # Use $CC to link under sequent, because it throws in some extra .o
6728 # files that make .init and .fini sections work.
6729 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6731 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6733 hardcode_libdir_flag_spec='-L$libdir'
6735 hardcode_minus_L=yes
6736 hardcode_shlibpath_var=no
6740 case $host_vendor in
6742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6743 hardcode_direct=yes # is this really true???
6746 ## LD is ld it makes a PLAMLIB
6747 ## CC just makes a GrossModule.
6748 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6749 reload_cmds='$CC -r -o $output$reload_objs'
6753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6754 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6757 runpath_var='LD_RUN_PATH'
6758 hardcode_shlibpath_var=no
6762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6763 hardcode_shlibpath_var=no
6764 export_dynamic_flag_spec='-Bexport'
6768 if test -d /usr/nec; then
6769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6770 hardcode_shlibpath_var=no
6771 runpath_var=LD_RUN_PATH
6772 hardcode_runpath_var=yes
6778 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6781 hardcode_shlibpath_var=no
6782 hardcode_runpath_var=yes
6783 runpath_var=LD_RUN_PATH
6786 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6787 no_undefined_flag='${wl}-z ${wl}text'
6788 if test "$GCC" = yes; then
6789 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6791 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6793 runpath_var='LD_RUN_PATH'
6794 hardcode_shlibpath_var=no
6798 no_undefined_flag=' -z text'
6799 # $CC -shared without GNU ld will not create a library from C++
6800 # object files and a static libstdc++, better avoid it by now
6801 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6802 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6803 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6804 hardcode_libdir_flag_spec=
6805 hardcode_shlibpath_var=no
6806 runpath_var='LD_RUN_PATH'
6810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6811 hardcode_libdir_flag_spec='-L$libdir'
6812 hardcode_shlibpath_var=no
6821 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6822 echo "${ECHO_T}$ld_shlibs" >&6
6823 test "$ld_shlibs" = no && can_build_shared=no
6825 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6826 if test "$GCC" = yes; then
6827 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6831 # Do we need to explicitly link libc?
6833 case "x$archive_cmds_need_lc" in
6835 # Assume -lc should be added
6836 archive_cmds_need_lc=yes
6838 if test "$enable_shared" = yes && test "$GCC" = yes; then
6839 case $archive_cmds in
6841 # FIXME: we may have to deal with multi-command sequences.
6844 # Test whether the compiler implicitly links with -lc since on some
6845 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6846 # to ld, don't add -lc before -lgcc.
6847 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6848 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6850 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6853 (eval $ac_compile) 2>&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } 2>conftest.err; then
6859 libobjs=conftest.$ac_objext
6861 wl=$lt_prog_compiler_wl
6867 lt_save_allow_undefined_flag=$allow_undefined_flag
6868 allow_undefined_flag=
6869 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6870 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }
6875 archive_cmds_need_lc=no
6877 archive_cmds_need_lc=yes
6879 allow_undefined_flag=$lt_save_allow_undefined_flag
6881 cat conftest.err 1>&5
6884 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6885 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6892 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6893 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6895 libname_spec='lib$name'
6903 shlibpath_overrides_runpath=unknown
6905 dynamic_linker="$host_os ld.so"
6906 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6907 if test "$GCC" = yes; then
6908 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6909 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6910 # if the path contains ";" then we assume it to be the separator
6911 # otherwise default to the standard path separator (i.e. ":") - it is
6912 # assumed that no part of a normal pathname contains ";" but that should
6913 # okay in the real world where ";" in dirpaths is itself problematic.
6914 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6916 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6919 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6921 need_lib_prefix=unknown
6922 hardcode_into_libs=no
6924 # when you set need_version to no, make sure it does not cause -set_version
6925 # flags to be left without arguments
6926 need_version=unknown
6931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6932 shlibpath_var=LIBPATH
6934 # AIX 3 has no versioning support, so we append a major version to the name.
6935 soname_spec='${libname}${release}${shared_ext}$major'
6942 hardcode_into_libs=yes
6943 if test "$host_cpu" = ia64; then
6944 # AIX 5 supports IA64
6945 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6946 shlibpath_var=LD_LIBRARY_PATH
6948 # With GCC up to 2.95.x, collect2 would create an import file
6949 # for dependence libraries. The import file would start with
6950 # the line `#! .'. This would cause the generated library to
6951 # depend on `.', always an invalid library. This was fixed in
6952 # development snapshots of GCC prior to 3.0.
6954 aix4 | aix4.[01] | aix4.[01].*)
6955 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6957 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6964 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6965 # soname into executable. Probably we can add versioning support to
6966 # collect2, so additional links can be useful in future.
6967 if test "$aix_use_runtimelinking" = yes; then
6968 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6969 # instead of lib<name>.a to let people know that these are not
6970 # typical AIX shared libraries.
6971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6973 # We preserve .a as extension for shared libraries through AIX4.2
6974 # and later when we are not doing run time linking.
6975 library_names_spec='${libname}${release}.a $libname.a'
6976 soname_spec='${libname}${release}${shared_ext}$major'
6978 shlibpath_var=LIBPATH
6983 library_names_spec='$libname.ixlibrary $libname.a'
6984 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6985 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'
6989 library_names_spec='${libname}${shared_ext}'
6990 dynamic_linker="$host_os ld.so"
6991 shlibpath_var=LIBRARY_PATH
6997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6998 soname_spec='${libname}${release}${shared_ext}$major'
6999 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7000 shlibpath_var=LD_LIBRARY_PATH
7001 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7002 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7003 # the default ld.so.conf also contains /usr/contrib/lib and
7004 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7005 # libtool to hard-code these into programs
7008 cygwin* | mingw* | pw32*)
7009 version_type=windows
7014 case $GCC,$host_os in
7015 yes,cygwin* | yes,mingw* | yes,pw32*)
7016 library_names_spec='$libname.dll.a'
7017 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7018 postinstall_cmds='base_file=`basename \${file}`~
7019 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7020 dldir=$destdir/`dirname \$dlpath`~
7021 test -d \$dldir || mkdir -p \$dldir~
7022 $install_prog $dir/$dlname \$dldir/$dlname'
7023 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7024 dlpath=$dir/\$dldll~
7026 shlibpath_overrides_runpath=yes
7030 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7031 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7032 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7035 # MinGW DLLs use traditional 'lib' prefix
7036 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7037 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7038 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7039 # It is most probably a Windows format PATH printed by
7040 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7041 # path with ; separators, and with drive letters. We can handle the
7042 # drive letters (cygwin fileutils understands them), so leave them,
7043 # especially as we might pass files found there to a mingw objdump,
7044 # which wouldn't understand a cygwinified path. Ahh.
7045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7051 # pw32 DLLs use 'pw' prefix rather than 'lib'
7052 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7058 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7061 dynamic_linker='Win32 ld.exe'
7062 # FIXME: first we should search . and the directory the executable is in
7066 darwin* | rhapsody*)
7067 dynamic_linker="$host_os dyld"
7071 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7072 soname_spec='${libname}${release}${major}$shared_ext'
7073 shlibpath_overrides_runpath=yes
7074 shlibpath_var=DYLD_LIBRARY_PATH
7075 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7076 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7077 if test "$GCC" = yes; then
7078 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"`
7080 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7082 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7090 soname_spec='${libname}${release}${shared_ext}$major'
7091 shlibpath_var=LD_LIBRARY_PATH
7102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7103 soname_spec='${libname}${release}${shared_ext}$major'
7104 shlibpath_var=LD_LIBRARY_PATH
7105 shlibpath_overrides_runpath=no
7106 hardcode_into_libs=yes
7107 dynamic_linker='GNU ld.so'
7111 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7112 version_type=freebsd-$objformat
7113 case $version_type in
7115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7120 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7124 shlibpath_var=LD_LIBRARY_PATH
7127 shlibpath_overrides_runpath=yes
7129 freebsd3.01* | freebsdelf3.01*)
7130 shlibpath_overrides_runpath=yes
7131 hardcode_into_libs=yes
7134 shlibpath_overrides_runpath=no
7135 hardcode_into_libs=yes
7144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7145 soname_spec='${libname}${release}${shared_ext}$major'
7146 shlibpath_var=LD_LIBRARY_PATH
7147 hardcode_into_libs=yes
7150 hpux9* | hpux10* | hpux11*)
7151 # Give a soname corresponding to the major version so that dld.sl refuses to
7152 # link against other versions.
7159 hardcode_into_libs=yes
7160 dynamic_linker="$host_os dld.so"
7161 shlibpath_var=LD_LIBRARY_PATH
7162 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7164 soname_spec='${libname}${release}${shared_ext}$major'
7165 if test "X$HPUX_IA64_MODE" = X32; then
7166 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7168 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7170 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7174 hardcode_into_libs=yes
7175 dynamic_linker="$host_os dld.sl"
7176 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7177 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7179 soname_spec='${libname}${release}${shared_ext}$major'
7180 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7181 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7185 dynamic_linker="$host_os dld.sl"
7186 shlibpath_var=SHLIB_PATH
7187 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7189 soname_spec='${libname}${release}${shared_ext}$major'
7192 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7193 postinstall_cmds='chmod 555 $lib'
7196 irix5* | irix6* | nonstopux*)
7198 nonstopux*) version_type=nonstopux ;;
7200 if test "$lt_cv_prog_gnu_ld" = yes; then
7208 soname_spec='${libname}${release}${shared_ext}$major'
7209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7211 irix5* | nonstopux*)
7215 case $LD in # libtool.m4 will add one of these switches to LD
7216 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7217 libsuff= shlibsuff= libmagic=32-bit;;
7218 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7219 libsuff=32 shlibsuff=N32 libmagic=N32;;
7220 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7221 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7222 *) libsuff= shlibsuff= libmagic=never-match;;
7226 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7227 shlibpath_overrides_runpath=no
7228 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7229 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7230 hardcode_into_libs=yes
7233 # No shared lib support for Linux oldld, aout, or coff.
7234 linux*oldld* | linux*aout* | linux*coff*)
7238 # This must be Linux ELF.
7243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7244 soname_spec='${libname}${release}${shared_ext}$major'
7245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7246 shlibpath_var=LD_LIBRARY_PATH
7247 shlibpath_overrides_runpath=no
7248 # This implies no fast_install, which is unacceptable.
7249 # Some rework will be needed to allow for fast_install
7250 # before this can be enabled.
7251 hardcode_into_libs=yes
7253 # We used to test for /lib/ld.so.1 and disable shared libraries on
7254 # powerpc, because MkLinux only supported shared libraries with the
7255 # GNU dynamic linker. Since this was broken with cross compilers,
7256 # most powerpc-linux boxes support dynamic linking these days and
7257 # people can always --disable-shared, the test was removed, and we
7258 # assume the GNU/Linux dynamic linker is in use.
7259 dynamic_linker='GNU/Linux ld.so'
7266 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7269 dynamic_linker='NetBSD (a.out) ld.so'
7271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7272 soname_spec='${libname}${release}${shared_ext}$major'
7273 dynamic_linker='NetBSD ld.elf_so'
7275 shlibpath_var=LD_LIBRARY_PATH
7276 shlibpath_overrides_runpath=yes
7277 hardcode_into_libs=yes
7282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7283 shlibpath_var=LD_LIBRARY_PATH
7284 shlibpath_overrides_runpath=yes
7291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7292 soname_spec='${libname}${release}${shared_ext}$major'
7293 shlibpath_var=LD_LIBRARY_PATH
7294 shlibpath_overrides_runpath=yes
7301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7303 shlibpath_var=LD_LIBRARY_PATH
7304 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7306 openbsd2.[89] | openbsd2.[89].*)
7307 shlibpath_overrides_runpath=no
7310 shlibpath_overrides_runpath=yes
7314 shlibpath_overrides_runpath=yes
7319 libname_spec='$name'
7322 library_names_spec='$libname${shared_ext} $libname.a'
7323 dynamic_linker='OS/2 ld.exe'
7324 shlibpath_var=LIBPATH
7327 osf3* | osf4* | osf5*)
7331 soname_spec='${libname}${release}${shared_ext}$major'
7332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7333 shlibpath_var=LD_LIBRARY_PATH
7334 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7335 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7340 soname_spec='${libname}${release}${shared_ext}$major'
7341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7342 shlibpath_var=LD_LIBRARY_PATH
7349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7350 soname_spec='${libname}${release}${shared_ext}$major'
7351 shlibpath_var=LD_LIBRARY_PATH
7352 shlibpath_overrides_runpath=yes
7353 hardcode_into_libs=yes
7354 # ldd complains unless libraries are executable
7355 postinstall_cmds='chmod +x $lib'
7360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7361 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7362 shlibpath_var=LD_LIBRARY_PATH
7363 shlibpath_overrides_runpath=yes
7364 if test "$with_gnu_ld" = yes; then
7370 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7373 soname_spec='${libname}${release}${shared_ext}$major'
7374 shlibpath_var=LD_LIBRARY_PATH
7375 case $host_vendor in
7377 shlibpath_overrides_runpath=no
7379 export_dynamic_flag_spec='${wl}-Blargedynsym'
7380 runpath_var=LD_RUN_PATH
7388 shlibpath_overrides_runpath=no
7389 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7395 if test -d /usr/nec ;then
7397 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7398 soname_spec='$libname${shared_ext}.$major'
7399 shlibpath_var=LD_LIBRARY_PATH
7405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7406 soname_spec='${libname}${release}${shared_ext}$major'
7407 shlibpath_var=LD_LIBRARY_PATH
7414 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7415 echo "${ECHO_T}$dynamic_linker" >&6
7416 test "$dynamic_linker" = no && can_build_shared=no
7418 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7419 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7421 if test -n "$hardcode_libdir_flag_spec" || \
7422 test -n "$runpath_var " || \
7423 test "X$hardcode_automatic"="Xyes" ; then
7425 # We can hardcode non-existant directories.
7426 if test "$hardcode_direct" != no &&
7427 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7428 # have to relink, otherwise we might link with an installed library
7429 # when we should be linking with a yet-to-be-installed one
7430 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7431 test "$hardcode_minus_L" != no; then
7432 # Linking always hardcodes the temporary library directory.
7433 hardcode_action=relink
7435 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7436 hardcode_action=immediate
7439 # We cannot hardcode anything, or else we can only hardcode existing
7441 hardcode_action=unsupported
7443 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7444 echo "${ECHO_T}$hardcode_action" >&6
7446 if test "$hardcode_action" = relink; then
7447 # Fast installation is not supported
7448 enable_fast_install=no
7449 elif test "$shlibpath_overrides_runpath" = yes ||
7450 test "$enable_shared" = no; then
7451 # Fast installation is not necessary
7452 enable_fast_install=needless
7457 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7458 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7459 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7460 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7461 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7462 echo "$as_me:$LINENO: result: yes" >&5
7463 echo "${ECHO_T}yes" >&6
7465 # FIXME - insert some real tests, host_os isn't really good enough
7468 if test -n "$STRIP" ; then
7469 striplib="$STRIP -x"
7470 echo "$as_me:$LINENO: result: yes" >&5
7471 echo "${ECHO_T}yes" >&6
7473 echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6
7478 echo "$as_me:$LINENO: result: no" >&5
7479 echo "${ECHO_T}no" >&6
7484 if test "x$enable_dlopen" != xyes; then
7485 enable_dlopen=unknown
7486 enable_dlopen_self=unknown
7487 enable_dlopen_self_static=unknown
7494 lt_cv_dlopen="load_add_on"
7496 lt_cv_dlopen_self=yes
7500 lt_cv_dlopen="LoadLibrary"
7505 lt_cv_dlopen="dlopen"
7510 # if libdl is installed we need to link against it
7511 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7512 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7513 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 ac_check_lib_save_LIBS=$LIBS
7518 cat >conftest.$ac_ext <<_ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7525 /* Override any gcc2 internal prototype to avoid an error. */
7529 /* We use char because int might match the return type of a gcc2
7530 builtin and then its argument prototype would still apply. */
7540 rm -f conftest.$ac_objext conftest$ac_exeext
7541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7542 (eval $ac_link) 2>conftest.er1
7544 grep -v '^ *+' conftest.er1 >conftest.err
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } &&
7549 { ac_try='test -z "$ac_c_werror_flag"
7550 || test ! -s conftest.err'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; } &&
7556 { ac_try='test -s conftest$ac_exeext'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; }; then
7562 ac_cv_lib_dl_dlopen=yes
7564 echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7567 ac_cv_lib_dl_dlopen=no
7569 rm -f conftest.err conftest.$ac_objext \
7570 conftest$ac_exeext conftest.$ac_ext
7571 LIBS=$ac_check_lib_save_LIBS
7573 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7574 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7575 if test $ac_cv_lib_dl_dlopen = yes; then
7576 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7581 lt_cv_dlopen_self=yes
7588 echo "$as_me:$LINENO: checking for shl_load" >&5
7589 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7590 if test "${ac_cv_func_shl_load+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 cat >conftest.$ac_ext <<_ACEOF
7596 cat confdefs.h >>conftest.$ac_ext
7597 cat >>conftest.$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7599 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7601 #define shl_load innocuous_shl_load
7603 /* System header to define __stub macros and hopefully few prototypes,
7604 which can conflict with char shl_load (); below.
7605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7606 <limits.h> exists even on freestanding compilers. */
7609 # include <limits.h>
7611 # include <assert.h>
7616 /* Override any gcc2 internal prototype to avoid an error. */
7621 /* We use char because int might match the return type of a gcc2
7622 builtin and then its argument prototype would still apply. */
7624 /* The GNU C library defines this for functions which it implements
7625 to always fail with ENOSYS. Some functions are actually named
7626 something starting with __ and the normal name is an alias. */
7627 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7630 char (*f) () = shl_load;
7639 return f != shl_load;
7644 rm -f conftest.$ac_objext conftest$ac_exeext
7645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7646 (eval $ac_link) 2>conftest.er1
7648 grep -v '^ *+' conftest.er1 >conftest.err
7650 cat conftest.err >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); } &&
7653 { ac_try='test -z "$ac_c_werror_flag"
7654 || test ! -s conftest.err'
7655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); }; } &&
7660 { ac_try='test -s conftest$ac_exeext'
7661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }; }; then
7666 ac_cv_func_shl_load=yes
7668 echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7671 ac_cv_func_shl_load=no
7673 rm -f conftest.err conftest.$ac_objext \
7674 conftest$ac_exeext conftest.$ac_ext
7676 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7677 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7678 if test $ac_cv_func_shl_load = yes; then
7679 lt_cv_dlopen="shl_load"
7681 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7682 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7683 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7686 ac_check_lib_save_LIBS=$LIBS
7688 cat >conftest.$ac_ext <<_ACEOF
7691 cat confdefs.h >>conftest.$ac_ext
7692 cat >>conftest.$ac_ext <<_ACEOF
7693 /* end confdefs.h. */
7695 /* Override any gcc2 internal prototype to avoid an error. */
7699 /* We use char because int might match the return type of a gcc2
7700 builtin and then its argument prototype would still apply. */
7710 rm -f conftest.$ac_objext conftest$ac_exeext
7711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7712 (eval $ac_link) 2>conftest.er1
7714 grep -v '^ *+' conftest.er1 >conftest.err
7716 cat conftest.err >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } &&
7719 { ac_try='test -z "$ac_c_werror_flag"
7720 || test ! -s conftest.err'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; } &&
7726 { ac_try='test -s conftest$ac_exeext'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; }; then
7732 ac_cv_lib_dld_shl_load=yes
7734 echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.$ac_ext >&5
7737 ac_cv_lib_dld_shl_load=no
7739 rm -f conftest.err conftest.$ac_objext \
7740 conftest$ac_exeext conftest.$ac_ext
7741 LIBS=$ac_check_lib_save_LIBS
7743 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7744 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7745 if test $ac_cv_lib_dld_shl_load = yes; then
7746 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7748 echo "$as_me:$LINENO: checking for dlopen" >&5
7749 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7750 if test "${ac_cv_func_dlopen+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 cat >conftest.$ac_ext <<_ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7759 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7761 #define dlopen innocuous_dlopen
7763 /* System header to define __stub macros and hopefully few prototypes,
7764 which can conflict with char dlopen (); below.
7765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7766 <limits.h> exists even on freestanding compilers. */
7769 # include <limits.h>
7771 # include <assert.h>
7776 /* Override any gcc2 internal prototype to avoid an error. */
7781 /* We use char because int might match the return type of a gcc2
7782 builtin and then its argument prototype would still apply. */
7784 /* The GNU C library defines this for functions which it implements
7785 to always fail with ENOSYS. Some functions are actually named
7786 something starting with __ and the normal name is an alias. */
7787 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7790 char (*f) () = dlopen;
7804 rm -f conftest.$ac_objext conftest$ac_exeext
7805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7806 (eval $ac_link) 2>conftest.er1
7808 grep -v '^ *+' conftest.er1 >conftest.err
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try='test -z "$ac_c_werror_flag"
7814 || test ! -s conftest.err'
7815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); }; } &&
7820 { ac_try='test -s conftest$ac_exeext'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7826 ac_cv_func_dlopen=yes
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7831 ac_cv_func_dlopen=no
7833 rm -f conftest.err conftest.$ac_objext \
7834 conftest$ac_exeext conftest.$ac_ext
7836 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7837 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7838 if test $ac_cv_func_dlopen = yes; then
7839 lt_cv_dlopen="dlopen"
7841 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7842 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7843 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 ac_check_lib_save_LIBS=$LIBS
7848 cat >conftest.$ac_ext <<_ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7855 /* Override any gcc2 internal prototype to avoid an error. */
7859 /* We use char because int might match the return type of a gcc2
7860 builtin and then its argument prototype would still apply. */
7870 rm -f conftest.$ac_objext conftest$ac_exeext
7871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7872 (eval $ac_link) 2>conftest.er1
7874 grep -v '^ *+' conftest.er1 >conftest.err
7876 cat conftest.err >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } &&
7879 { ac_try='test -z "$ac_c_werror_flag"
7880 || test ! -s conftest.err'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; } &&
7886 { ac_try='test -s conftest$ac_exeext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 ac_cv_lib_dl_dlopen=yes
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7897 ac_cv_lib_dl_dlopen=no
7899 rm -f conftest.err conftest.$ac_objext \
7900 conftest$ac_exeext conftest.$ac_ext
7901 LIBS=$ac_check_lib_save_LIBS
7903 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7904 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7905 if test $ac_cv_lib_dl_dlopen = yes; then
7906 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7908 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7909 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7910 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 ac_check_lib_save_LIBS=$LIBS
7915 cat >conftest.$ac_ext <<_ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7922 /* Override any gcc2 internal prototype to avoid an error. */
7926 /* We use char because int might match the return type of a gcc2
7927 builtin and then its argument prototype would still apply. */
7937 rm -f conftest.$ac_objext conftest$ac_exeext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7939 (eval $ac_link) 2>conftest.er1
7941 grep -v '^ *+' conftest.er1 >conftest.err
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try='test -z "$ac_c_werror_flag"
7947 || test ! -s conftest.err'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; } &&
7953 { ac_try='test -s conftest$ac_exeext'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; }; then
7959 ac_cv_lib_svld_dlopen=yes
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7964 ac_cv_lib_svld_dlopen=no
7966 rm -f conftest.err conftest.$ac_objext \
7967 conftest$ac_exeext conftest.$ac_ext
7968 LIBS=$ac_check_lib_save_LIBS
7970 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7971 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7972 if test $ac_cv_lib_svld_dlopen = yes; then
7973 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7975 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7976 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7977 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 ac_check_lib_save_LIBS=$LIBS
7982 cat >conftest.$ac_ext <<_ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7989 /* Override any gcc2 internal prototype to avoid an error. */
7993 /* We use char because int might match the return type of a gcc2
7994 builtin and then its argument prototype would still apply. */
8004 rm -f conftest.$ac_objext conftest$ac_exeext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8006 (eval $ac_link) 2>conftest.er1
8008 grep -v '^ *+' conftest.er1 >conftest.err
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try='test -z "$ac_c_werror_flag"
8014 || test ! -s conftest.err'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; } &&
8020 { ac_try='test -s conftest$ac_exeext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_cv_lib_dld_dld_link=yes
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8031 ac_cv_lib_dld_dld_link=no
8033 rm -f conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8035 LIBS=$ac_check_lib_save_LIBS
8037 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8038 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8039 if test $ac_cv_lib_dld_dld_link = yes; then
8040 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8061 if test "x$lt_cv_dlopen" != xno; then
8067 case $lt_cv_dlopen in
8069 save_CPPFLAGS="$CPPFLAGS"
8070 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8072 save_LDFLAGS="$LDFLAGS"
8073 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8076 LIBS="$lt_cv_dlopen_libs $LIBS"
8078 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8079 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8080 if test "${lt_cv_dlopen_self+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8083 if test "$cross_compiling" = yes; then :
8084 lt_cv_dlopen_self=cross
8086 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8087 lt_status=$lt_dlunknown
8088 cat > conftest.$ac_ext <<EOF
8089 #line 8089 "configure"
8090 #include "confdefs.h"
8099 # define LT_DLGLOBAL RTLD_GLOBAL
8102 # define LT_DLGLOBAL DL_GLOBAL
8104 # define LT_DLGLOBAL 0
8108 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8109 find out it does not work in some platform. */
8110 #ifndef LT_DLLAZY_OR_NOW
8112 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8115 # define LT_DLLAZY_OR_NOW DL_LAZY
8118 # define LT_DLLAZY_OR_NOW RTLD_NOW
8121 # define LT_DLLAZY_OR_NOW DL_NOW
8123 # define LT_DLLAZY_OR_NOW 0
8131 extern "C" void exit (int);
8134 void fnord() { int i=42;}
8137 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8138 int status = $lt_dlunknown;
8142 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8143 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8144 /* dlclose (self); */
8150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8151 (eval $ac_link) 2>&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8155 (./conftest; exit; ) 2>/dev/null
8158 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8159 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8160 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8163 # compilation failed
8164 lt_cv_dlopen_self=no
8171 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8172 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8174 if test "x$lt_cv_dlopen_self" = xyes; then
8175 LDFLAGS="$LDFLAGS $link_static_flag"
8176 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8177 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8178 if test "${lt_cv_dlopen_self_static+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8181 if test "$cross_compiling" = yes; then :
8182 lt_cv_dlopen_self_static=cross
8184 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8185 lt_status=$lt_dlunknown
8186 cat > conftest.$ac_ext <<EOF
8187 #line 8187 "configure"
8188 #include "confdefs.h"
8197 # define LT_DLGLOBAL RTLD_GLOBAL
8200 # define LT_DLGLOBAL DL_GLOBAL
8202 # define LT_DLGLOBAL 0
8206 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8207 find out it does not work in some platform. */
8208 #ifndef LT_DLLAZY_OR_NOW
8210 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8213 # define LT_DLLAZY_OR_NOW DL_LAZY
8216 # define LT_DLLAZY_OR_NOW RTLD_NOW
8219 # define LT_DLLAZY_OR_NOW DL_NOW
8221 # define LT_DLLAZY_OR_NOW 0
8229 extern "C" void exit (int);
8232 void fnord() { int i=42;}
8235 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8236 int status = $lt_dlunknown;
8240 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8241 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8242 /* dlclose (self); */
8248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8249 (eval $ac_link) 2>&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8253 (./conftest; exit; ) 2>/dev/null
8256 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8257 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8258 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8261 # compilation failed
8262 lt_cv_dlopen_self_static=no
8269 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8270 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8273 CPPFLAGS="$save_CPPFLAGS"
8274 LDFLAGS="$save_LDFLAGS"
8279 case $lt_cv_dlopen_self in
8280 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8281 *) enable_dlopen_self=unknown ;;
8284 case $lt_cv_dlopen_self_static in
8285 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8286 *) enable_dlopen_self_static=unknown ;;
8291 # Report which librarie types wil actually be built
8292 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8293 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8294 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8295 echo "${ECHO_T}$can_build_shared" >&6
8297 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8298 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8299 test "$can_build_shared" = "no" && enable_shared=no
8301 # On AIX, shared libraries and static libraries use the same namespace, and
8302 # are all built from PIC.
8305 test "$enable_shared" = yes && enable_static=no
8306 if test -n "$RANLIB"; then
8307 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8308 postinstall_cmds='$RANLIB $lib'
8313 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8314 test "$enable_shared" = yes && enable_static=no
8317 darwin* | rhapsody*)
8318 if test "$GCC" = yes; then
8319 archive_cmds_need_lc=no
8321 rhapsody* | darwin1.[012])
8322 allow_undefined_flag='-undefined suppress'
8325 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8326 allow_undefined_flag='-flat_namespace -undefined suppress'
8328 case ${MACOSX_DEPLOYMENT_TARGET} in
8330 allow_undefined_flag='-flat_namespace -undefined suppress'
8333 allow_undefined_flag='-undefined dynamic_lookup'
8339 output_verbose_link_cmd='echo'
8340 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8341 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8342 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8343 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}'
8344 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}'
8346 hardcode_automatic=yes
8347 hardcode_shlibpath_var=unsupported
8348 whole_archive_flag_spec='-all_load $convenience'
8349 link_all_deplibs=yes
8355 echo "$as_me:$LINENO: result: $enable_shared" >&5
8356 echo "${ECHO_T}$enable_shared" >&6
8358 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8359 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8360 # Make sure either enable_shared or enable_static is yes.
8361 test "$enable_shared" = yes || enable_static=yes
8362 echo "$as_me:$LINENO: result: $enable_static" >&5
8363 echo "${ECHO_T}$enable_static" >&6
8365 # The else clause should only fire when bootstrapping the
8366 # libtool distribution, otherwise you forgot to ship ltmain.sh
8367 # with your package, and you will get complaints that there are
8368 # no rules to generate ltmain.sh.
8369 if test -f "$ltmain"; then
8370 # See if we are running on zsh, and set the options which allow our commands through
8371 # without removal of \ escapes.
8372 if test -n "${ZSH_VERSION+set}" ; then
8373 setopt NO_GLOB_SUBST
8375 # Now quote all the things that may contain metacharacters while being
8376 # careful not to overquote the AC_SUBSTed values. We take copies of the
8377 # variables and quote the copies for generation of the libtool script.
8378 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8380 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8381 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8382 deplibs_check_method reload_flag reload_cmds need_locks \
8383 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8384 lt_cv_sys_global_symbol_to_c_name_address \
8385 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8386 old_postinstall_cmds old_postuninstall_cmds \
8390 lt_prog_compiler_wl \
8391 lt_prog_compiler_pic \
8392 lt_prog_compiler_static \
8393 lt_prog_compiler_no_builtin_flag \
8394 export_dynamic_flag_spec \
8395 thread_safe_flag_spec \
8396 whole_archive_flag_spec \
8397 enable_shared_with_static_runtimes \
8399 old_archive_from_new_cmds \
8404 compiler_lib_search_path \
8406 archive_expsym_cmds \
8408 postuninstall_cmds \
8409 old_archive_from_expsyms_cmds \
8410 allow_undefined_flag \
8412 export_symbols_cmds \
8413 hardcode_libdir_flag_spec \
8414 hardcode_libdir_flag_spec_ld \
8415 hardcode_libdir_separator \
8416 hardcode_automatic \
8418 module_expsym_cmds \
8419 lt_cv_prog_compiler_c_o \
8424 old_archive_cmds | \
8425 old_archive_from_new_cmds | \
8427 archive_expsym_cmds | \
8429 module_expsym_cmds | \
8430 old_archive_from_expsyms_cmds | \
8431 export_symbols_cmds | \
8432 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8433 postinstall_cmds | postuninstall_cmds | \
8434 old_postinstall_cmds | old_postuninstall_cmds | \
8435 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8436 # Double-quote double-evaled strings.
8437 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8440 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8446 *'\$0 --fallback-echo"')
8447 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8452 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8454 { echo "$as_me:$LINENO: creating $ofile" >&5
8455 echo "$as_me: creating $ofile" >&6;}
8457 cat <<__EOF__ >> "$cfgfile"
8460 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8461 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8462 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8464 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8465 # Free Software Foundation, Inc.
8467 # This file is part of GNU Libtool:
8468 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8470 # This program is free software; you can redistribute it and/or modify
8471 # it under the terms of the GNU General Public License as published by
8472 # the Free Software Foundation; either version 2 of the License, or
8473 # (at your option) any later version.
8475 # This program is distributed in the hope that it will be useful, but
8476 # WITHOUT ANY WARRANTY; without even the implied warranty of
8477 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8478 # General Public License for more details.
8480 # You should have received a copy of the GNU General Public License
8481 # along with this program; if not, write to the Free Software
8482 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8484 # As a special exception to the GNU General Public License, if you
8485 # distribute this file as part of a program that contains a
8486 # configuration script generated by Autoconf, you may include it under
8487 # the same distribution terms that you use for the rest of that program.
8489 # A sed program that does not truncate output.
8492 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8493 Xsed="$SED -e s/^X//"
8495 # The HP-UX ksh and POSIX shell print the target directory to stdout
8497 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8499 # The names of the tagged configurations supported by this script.
8502 # ### BEGIN LIBTOOL CONFIG
8504 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8506 # Shell to use when invoking shell scripts.
8509 # Whether or not to build shared libraries.
8510 build_libtool_libs=$enable_shared
8512 # Whether or not to build static libraries.
8513 build_old_libs=$enable_static
8515 # Whether or not to add -lc for building shared libraries.
8516 build_libtool_need_lc=$archive_cmds_need_lc
8518 # Whether or not to disallow shared libs when runtime libs are static
8519 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8521 # Whether or not to optimize for fast installation.
8522 fast_install=$enable_fast_install
8525 host_alias=$host_alias
8528 # An echo program that does not interpret backslashes.
8533 AR_FLAGS=$lt_AR_FLAGS
8538 # A language-specific compiler.
8541 # Is the compiler the GNU C compiler?
8547 # The linker used to build libraries.
8550 # Whether we need hard or soft links.
8553 # A BSD-compatible nm program.
8556 # A symbol stripping program
8559 # Used to examine libraries when file_magic_cmd begins "file"
8560 MAGIC_CMD=$MAGIC_CMD
8562 # Used on cygwin: DLL creation program.
8565 # Used on cygwin: object dumper.
8568 # Used on cygwin: assembler.
8571 # The name of the directory that contains temporary libtool files.
8574 # How to create reloadable object files.
8575 reload_flag=$lt_reload_flag
8576 reload_cmds=$lt_reload_cmds
8578 # How to pass a linker flag through the compiler.
8579 wl=$lt_lt_prog_compiler_wl
8581 # Object file suffix (normally "o").
8584 # Old archive suffix (normally "a").
8587 # Shared library suffix (normally ".so").
8590 # Executable file suffix (normally "").
8593 # Additional compiler flags for building library objects.
8594 pic_flag=$lt_lt_prog_compiler_pic
8597 # What is the maximum length of a command?
8598 max_cmd_len=$lt_cv_sys_max_cmd_len
8600 # Does compiler simultaneously support -c and -o options?
8601 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8603 # Must we lock files when doing compilation ?
8604 need_locks=$lt_need_locks
8606 # Do we need the lib prefix for modules?
8607 need_lib_prefix=$need_lib_prefix
8609 # Do we need a version for libraries?
8610 need_version=$need_version
8612 # Whether dlopen is supported.
8613 dlopen_support=$enable_dlopen
8615 # Whether dlopen of programs is supported.
8616 dlopen_self=$enable_dlopen_self
8618 # Whether dlopen of statically linked programs is supported.
8619 dlopen_self_static=$enable_dlopen_self_static
8621 # Compiler flag to prevent dynamic linking.
8622 link_static_flag=$lt_lt_prog_compiler_static
8624 # Compiler flag to turn off builtin functions.
8625 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8627 # Compiler flag to allow reflexive dlopens.
8628 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8630 # Compiler flag to generate shared objects directly from archives.
8631 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8633 # Compiler flag to generate thread-safe objects.
8634 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8636 # Library versioning type.
8637 version_type=$version_type
8639 # Format of library name prefix.
8640 libname_spec=$lt_libname_spec
8642 # List of archive names. First name is the real one, the rest are links.
8643 # The last name is the one that the linker finds with -lNAME.
8644 library_names_spec=$lt_library_names_spec
8646 # The coded name of the library, if different from the real name.
8647 soname_spec=$lt_soname_spec
8649 # Commands used to build and install an old-style archive.
8651 old_archive_cmds=$lt_old_archive_cmds
8652 old_postinstall_cmds=$lt_old_postinstall_cmds
8653 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8655 # Create an old-style archive from a shared archive.
8656 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8658 # Create a temporary old-style archive to link instead of a shared archive.
8659 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8661 # Commands used to build and install a shared archive.
8662 archive_cmds=$lt_archive_cmds
8663 archive_expsym_cmds=$lt_archive_expsym_cmds
8664 postinstall_cmds=$lt_postinstall_cmds
8665 postuninstall_cmds=$lt_postuninstall_cmds
8667 # Commands used to build a loadable module (assumed same as above if empty)
8668 module_cmds=$lt_module_cmds
8669 module_expsym_cmds=$lt_module_expsym_cmds
8671 # Commands to strip libraries.
8672 old_striplib=$lt_old_striplib
8673 striplib=$lt_striplib
8675 # Dependencies to place before the objects being linked to create a
8677 predep_objects=$lt_predep_objects
8679 # Dependencies to place after the objects being linked to create a
8681 postdep_objects=$lt_postdep_objects
8683 # Dependencies to place before the objects being linked to create a
8687 # Dependencies to place after the objects being linked to create a
8689 postdeps=$lt_postdeps
8691 # The library search path used internally by the compiler when linking
8693 compiler_lib_search_path=$lt_compiler_lib_search_path
8695 # Method to check whether dependent libraries are shared objects.
8696 deplibs_check_method=$lt_deplibs_check_method
8698 # Command to use when deplibs_check_method == file_magic.
8699 file_magic_cmd=$lt_file_magic_cmd
8701 # Flag that allows shared libraries with undefined symbols to be built.
8702 allow_undefined_flag=$lt_allow_undefined_flag
8704 # Flag that forces no undefined symbols.
8705 no_undefined_flag=$lt_no_undefined_flag
8707 # Commands used to finish a libtool library installation in a directory.
8708 finish_cmds=$lt_finish_cmds
8710 # Same as above, but a single script fragment to be evaled but not shown.
8711 finish_eval=$lt_finish_eval
8713 # Take the output of nm and produce a listing of raw symbols and C names.
8714 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8716 # Transform the output of nm in a proper C declaration
8717 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8719 # Transform the output of nm in a C name address pair
8720 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8722 # This is the shared library runtime path variable.
8723 runpath_var=$runpath_var
8725 # This is the shared library path variable.
8726 shlibpath_var=$shlibpath_var
8728 # Is shlibpath searched before the hard-coded library search path?
8729 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8731 # How to hardcode a shared library path into an executable.
8732 hardcode_action=$hardcode_action
8734 # Whether we should hardcode library paths into libraries.
8735 hardcode_into_libs=$hardcode_into_libs
8737 # Flag to hardcode \$libdir into a binary during linking.
8738 # This must work even if \$libdir does not exist.
8739 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8741 # If ld is used when linking, flag to hardcode \$libdir into
8742 # a binary during linking. This must work even if \$libdir does
8744 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8746 # Whether we need a single -rpath flag with a separated argument.
8747 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8749 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8751 hardcode_direct=$hardcode_direct
8753 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8755 hardcode_minus_L=$hardcode_minus_L
8757 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8758 # the resulting binary.
8759 hardcode_shlibpath_var=$hardcode_shlibpath_var
8761 # Set to yes if building a shared library automatically hardcodes DIR into the library
8762 # and all subsequent libraries and executables linked against it.
8763 hardcode_automatic=$hardcode_automatic
8765 # Variables whose values should be saved in libtool wrapper scripts and
8766 # restored at relink time.
8767 variables_saved_for_relink="$variables_saved_for_relink"
8769 # Whether libtool must link a program against all its dependency libraries.
8770 link_all_deplibs=$link_all_deplibs
8772 # Compile-time system search path for libraries
8773 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8775 # Run-time system search path for libraries
8776 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8778 # Fix the shell variable \$srcfile for the compiler.
8779 fix_srcfile_path="$fix_srcfile_path"
8781 # Set to yes if exported symbols are required.
8782 always_export_symbols=$always_export_symbols
8784 # The commands to list exported symbols.
8785 export_symbols_cmds=$lt_export_symbols_cmds
8787 # The commands to extract the exported symbol list from a shared archive.
8788 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8790 # Symbols that should not be listed in the preloaded symbols.
8791 exclude_expsyms=$lt_exclude_expsyms
8793 # Symbols that must always be exported.
8794 include_expsyms=$lt_include_expsyms
8796 # ### END LIBTOOL CONFIG
8803 cat <<\EOF >> "$cfgfile"
8805 # AIX sometimes has problems with the GCC collect2 program. For some
8806 # reason, if we set the COLLECT_NAMES environment variable, the problems
8807 # vanish in a puff of smoke.
8808 if test "X${COLLECT_NAMES+set}" != Xset; then
8810 export COLLECT_NAMES
8816 # We use sed instead of cat because bash on DJGPP gets confused if
8817 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8818 # text mode, it properly converts lines to CR/LF. This bash problem
8819 # is reportedly fixed, but why not run on old versions too?
8820 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8822 mv -f "$cfgfile" "$ofile" || \
8823 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8827 # If there is no Makefile yet, we rely on a make rule to execute
8828 # `config.status --recheck' to rerun these tests and create the
8829 # libtool script then.
8830 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8831 if test -f "$ltmain_in"; then
8832 test -f Makefile && make "$ltmain"
8838 ac_cpp='$CPP $CPPFLAGS'
8839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8846 # Check whether --with-tags or --without-tags was given.
8847 if test "${with_tags+set}" = set; then
8848 withval="$with_tags"
8852 if test -f "$ltmain" && test -n "$tagnames"; then
8853 if test ! -f "${ofile}"; then
8854 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8855 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8858 if test -z "$LTCC"; then
8859 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8860 if test -z "$LTCC"; then
8861 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8862 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8864 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8865 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8869 # Extract list of available tagged configurations in $ofile.
8870 # Note that this assumes the entire list is on one line.
8871 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8873 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8874 for tagname in $tagnames; do
8876 # Check whether tagname contains only valid characters
8877 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8879 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8880 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8881 { (exit 1); exit 1; }; }
8885 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8887 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8888 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8889 { (exit 1); exit 1; }; }
8892 # Update the list of available tags.
8893 if test -n "$tagname"; then
8894 echo appending configuration tag \"$tagname\" to $ofile
8898 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8900 ac_cpp='$CXXCPP $CPPFLAGS'
8901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8908 archive_cmds_need_lc_CXX=no
8909 allow_undefined_flag_CXX=
8910 always_export_symbols_CXX=no
8911 archive_expsym_cmds_CXX=
8912 export_dynamic_flag_spec_CXX=
8913 hardcode_direct_CXX=no
8914 hardcode_libdir_flag_spec_CXX=
8915 hardcode_libdir_flag_spec_ld_CXX=
8916 hardcode_libdir_separator_CXX=
8917 hardcode_minus_L_CXX=no
8918 hardcode_automatic_CXX=no
8920 module_expsym_cmds_CXX=
8921 link_all_deplibs_CXX=unknown
8922 old_archive_cmds_CXX=$old_archive_cmds
8923 no_undefined_flag_CXX=
8924 whole_archive_flag_spec_CXX=
8925 enable_shared_with_static_runtimes_CXX=no
8927 # Dependencies to place before and after the object being linked:
8929 postdep_objects_CXX=
8932 compiler_lib_search_path_CXX=
8934 # Source file extension for C++ test sources.
8937 # Object file extension for compiled C++ test sources.
8941 # Code to be used in simple compile tests
8942 lt_simple_compile_test_code="int some_variable = 0;\n"
8944 # Code to be used in simple link tests
8945 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8947 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8949 # If no C compiler was specified, use CC.
8952 # Allow CC to be a program name with arguments.
8956 # Allow CC to be a program name with arguments.
8961 lt_save_with_gnu_ld=$with_gnu_ld
8962 lt_save_path_LD=$lt_cv_path_LD
8963 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8964 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8966 unset lt_cv_prog_gnu_ld
8968 if test -n "${lt_cv_path_LDCXX+set}"; then
8969 lt_cv_path_LD=$lt_cv_path_LDCXX
8973 test -z "${LDCXX+set}" || LD=$LDCXX
8977 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8979 # We don't want -fno-exception wen compiling C++ code, so set the
8980 # no_builtin_flag separately
8981 if test "$GXX" = yes; then
8982 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8984 lt_prog_compiler_no_builtin_flag_CXX=
8987 if test "$GXX" = yes; then
8988 # Set up default GNU C++ configuration
8991 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8992 if test "${with_gnu_ld+set}" = set; then
8993 withval="$with_gnu_ld"
8994 test "$withval" = no || with_gnu_ld=yes
8999 if test "$GCC" = yes; then
9000 # Check if gcc -print-prog-name=ld gives a path.
9001 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9002 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9005 # gcc leaves a trailing carriage return which upsets mingw
9006 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9008 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9011 # Accept absolute paths.
9013 re_direlt='/[^/][^/]*/\.\./'
9014 # Canonicalize the pathname of ld
9015 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9016 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9017 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9019 test -z "$LD" && LD="$ac_prog"
9022 # If it fails, then pretend we aren't using GCC.
9026 # If it is relative, then search for the first ld in PATH.
9030 elif test "$with_gnu_ld" = yes; then
9031 echo "$as_me:$LINENO: checking for GNU ld" >&5
9032 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9034 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9035 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9037 if test "${lt_cv_path_LD+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9040 if test -z "$LD"; then
9041 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9042 for ac_dir in $PATH; do
9044 test -z "$ac_dir" && ac_dir=.
9045 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9046 lt_cv_path_LD="$ac_dir/$ac_prog"
9047 # Check to see if the program is GNU ld. I'd rather use --version,
9048 # but apparently some GNU ld's only accept -v.
9049 # Break only if it was the GNU/non-GNU ld that we prefer.
9050 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9051 *GNU* | *'with BFD'*)
9052 test "$with_gnu_ld" != no && break
9055 test "$with_gnu_ld" != yes && break
9062 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9067 if test -n "$LD"; then
9068 echo "$as_me:$LINENO: result: $LD" >&5
9069 echo "${ECHO_T}$LD" >&6
9071 echo "$as_me:$LINENO: result: no" >&5
9072 echo "${ECHO_T}no" >&6
9074 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9075 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9076 { (exit 1); exit 1; }; }
9077 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9078 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9079 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9082 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9083 case `$LD -v 2>&1 </dev/null` in
9084 *GNU* | *'with BFD'*)
9085 lt_cv_prog_gnu_ld=yes
9088 lt_cv_prog_gnu_ld=no
9092 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9093 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9094 with_gnu_ld=$lt_cv_prog_gnu_ld
9098 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9099 # archiving commands below assume that GNU ld is being used.
9100 if test "$with_gnu_ld" = yes; then
9101 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9102 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'
9104 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9105 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9107 # If archive_cmds runs LD, not CC, wlarc should be empty
9108 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9109 # investigate it a little bit more. (MM)
9112 # ancient GNU ld didn't support --whole-archive et. al.
9113 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9114 grep 'no-whole-archive' > /dev/null; then
9115 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9117 whole_archive_flag_spec_CXX=
9123 # A generic and very simple default shared library creation
9124 # command for GNU C++ for the case where it uses the native
9125 # linker, instead of GNU ld. If possible, this setting should
9126 # overridden to take advantage of the native linker features on
9127 # the platform it is being used on.
9128 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9131 # Commands to make compiler produce verbose output that lists
9132 # what "hidden" libraries, object files and flags are used when
9133 # linking a shared library.
9134 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9142 # PORTME: fill in a description of your system's C++ link characteristics
9143 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9144 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9148 # FIXME: insert proper C++ library support
9152 if test "$host_cpu" = ia64; then
9153 # On IA64, the linker does run time linking by default, so we don't
9154 # have to do anything special.
9155 aix_use_runtimelinking=no
9156 exp_sym_flag='-Bexport'
9159 aix_use_runtimelinking=no
9161 # Test if we are trying to use run time linking or normal
9162 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9163 # need to do runtime linking.
9164 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9165 for ld_flag in $LDFLAGS; do
9168 aix_use_runtimelinking=yes
9175 exp_sym_flag='-bexport'
9176 no_entry_flag='-bnoentry'
9179 # When large executables or shared objects are built, AIX ld can
9180 # have problems creating the table of contents. If linking a library
9181 # or program results in "error TOC overflow" add -mminimal-toc to
9182 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9183 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9186 hardcode_direct_CXX=yes
9187 hardcode_libdir_separator_CXX=':'
9188 link_all_deplibs_CXX=yes
9190 if test "$GXX" = yes; then
9191 case $host_os in aix4.012|aix4.012.*)
9192 # We only want to do this on AIX 4.2 and lower, the check
9193 # below for broken collect2 doesn't work under 4.3+
9194 collect2name=`${CC} -print-prog-name=collect2`
9195 if test -f "$collect2name" && \
9196 strings "$collect2name" | grep resolve_lib_name >/dev/null
9198 # We have reworked collect2
9199 hardcode_direct_CXX=yes
9201 # We have old collect2
9202 hardcode_direct_CXX=unsupported
9203 # It fails to find uninstalled libraries when the uninstalled
9204 # path is not listed in the libpath. Setting hardcode_minus_L
9205 # to unsupported forces relinking
9206 hardcode_minus_L_CXX=yes
9207 hardcode_libdir_flag_spec_CXX='-L$libdir'
9208 hardcode_libdir_separator_CXX=
9211 shared_flag='-shared'
9214 if test "$host_cpu" = ia64; then
9215 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9216 # chokes on -Wl,-G. The following line is correct:
9219 if test "$aix_use_runtimelinking" = yes; then
9220 shared_flag='${wl}-G'
9222 shared_flag='${wl}-bM:SRE'
9227 # It seems that -bexpall does not export symbols beginning with
9228 # underscore (_), so it is better to generate a list of symbols to export.
9229 always_export_symbols_CXX=yes
9230 if test "$aix_use_runtimelinking" = yes; then
9231 # Warning - without using the other runtime loading flags (-brtl),
9232 # -berok will link without error, but may produce a broken library.
9233 allow_undefined_flag_CXX='-berok'
9234 # Determine the default libpath from the value encoded in an empty executable.
9235 cat >conftest.$ac_ext <<_ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9250 rm -f conftest.$ac_objext conftest$ac_exeext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9252 (eval $ac_link) 2>conftest.er1
9254 grep -v '^ *+' conftest.er1 >conftest.err
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
9259 { ac_try='test -z "$ac_cxx_werror_flag"
9260 || test ! -s conftest.err'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; } &&
9266 { ac_try='test -s conftest$ac_exeext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9275 # Check for a 64-bit object if we didn't find anything.
9276 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; }
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9283 rm -f conftest.err conftest.$ac_objext \
9284 conftest$ac_exeext conftest.$ac_ext
9285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9287 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9289 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9291 if test "$host_cpu" = ia64; then
9292 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9293 allow_undefined_flag_CXX="-z nodefs"
9294 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9296 # Determine the default libpath from the value encoded in an empty executable.
9297 cat >conftest.$ac_ext <<_ACEOF
9300 cat confdefs.h >>conftest.$ac_ext
9301 cat >>conftest.$ac_ext <<_ACEOF
9302 /* end confdefs.h. */
9312 rm -f conftest.$ac_objext conftest$ac_exeext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9314 (eval $ac_link) 2>conftest.er1
9316 grep -v '^ *+' conftest.er1 >conftest.err
9318 cat conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } &&
9321 { ac_try='test -z "$ac_cxx_werror_flag"
9322 || test ! -s conftest.err'
9323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); }; } &&
9328 { ac_try='test -s conftest$ac_exeext'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; }; then
9335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9337 # Check for a 64-bit object if we didn't find anything.
9338 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; }
9341 echo "$as_me: failed program was:" >&5
9342 sed 's/^/| /' conftest.$ac_ext >&5
9345 rm -f conftest.err conftest.$ac_objext \
9346 conftest$ac_exeext conftest.$ac_ext
9347 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9349 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9350 # Warning - without using the other run time loading flags,
9351 # -berok will link without error, but may produce a broken library.
9352 no_undefined_flag_CXX=' ${wl}-bernotok'
9353 allow_undefined_flag_CXX=' ${wl}-berok'
9354 # -bexpall does not export symbols beginning with underscore (_)
9355 always_export_symbols_CXX=yes
9356 # Exported symbols can be pulled into shared objects from archives
9357 whole_archive_flag_spec_CXX=' '
9358 archive_cmds_need_lc_CXX=yes
9359 # This is similar to how AIX traditionally builds it's shared libraries.
9360 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9365 case $cc_basename in
9367 # FIXME: insert proper C++ library support
9373 cygwin* | mingw* | pw32*)
9374 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9375 # as there is no search path for DLLs.
9376 hardcode_libdir_flag_spec_CXX='-L$libdir'
9377 allow_undefined_flag_CXX=unsupported
9378 always_export_symbols_CXX=no
9379 enable_shared_with_static_runtimes_CXX=yes
9381 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9382 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9383 # If the export-symbols file already is a .def file (1st line
9384 # is EXPORTS), use it as is; otherwise, prepend...
9385 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9386 cp $export_symbols $output_objdir/$soname.def;
9388 echo EXPORTS > $output_objdir/$soname.def;
9389 cat $export_symbols >> $output_objdir/$soname.def;
9391 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9397 darwin* | rhapsody*)
9398 if test "$GXX" = yes; then
9399 archive_cmds_need_lc_CXX=no
9401 rhapsody* | darwin1.[012])
9402 allow_undefined_flag_CXX='-undefined suppress'
9405 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9406 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9408 case ${MACOSX_DEPLOYMENT_TARGET} in
9410 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9413 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9419 lt_int_apple_cc_single_mod=no
9420 output_verbose_link_cmd='echo'
9421 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9422 lt_int_apple_cc_single_mod=yes
9424 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9425 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9427 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9429 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9431 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9432 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9433 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}'
9435 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
9437 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}'
9438 hardcode_direct_CXX=no
9439 hardcode_automatic_CXX=yes
9440 hardcode_shlibpath_var_CXX=unsupported
9441 whole_archive_flag_spec_CXX='-all_load $convenience'
9442 link_all_deplibs_CXX=yes
9449 case $cc_basename in
9451 # FIXME: insert proper C++ library support
9455 # Green Hills C++ Compiler
9456 # FIXME: insert proper C++ library support
9460 # FIXME: insert proper C++ library support
9466 # C++ shared libraries reported to be fairly broken before switch to ELF
9470 archive_cmds_need_lc_CXX=no
9472 freebsd* | kfreebsd*-gnu)
9473 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9480 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9481 hardcode_libdir_separator_CXX=:
9482 export_dynamic_flag_spec_CXX='${wl}-E'
9483 hardcode_direct_CXX=yes
9484 hardcode_minus_L_CXX=yes # Not in the search PATH,
9485 # but as the default
9486 # location of the library.
9488 case $cc_basename in
9490 # FIXME: insert proper C++ library support
9494 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'
9495 # Commands to make compiler produce verbose output that lists
9496 # what "hidden" libraries, object files and flags are used when
9497 # linking a shared library.
9499 # There doesn't appear to be a way to prevent this compiler from
9500 # explicitly linking system object files so we need to strip them
9501 # from the output so that they don't get included in the library
9503 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9506 if test "$GXX" = yes; then
9507 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'
9509 # FIXME: insert proper C++ library support
9516 if test $with_gnu_ld = no; then
9519 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9520 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9521 hardcode_libdir_separator_CXX=:
9524 hardcode_libdir_flag_spec_CXX='-L$libdir'
9527 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9528 hardcode_libdir_separator_CXX=:
9529 export_dynamic_flag_spec_CXX='${wl}-E'
9535 hardcode_direct_CXX=no
9536 hardcode_shlibpath_var_CXX=no
9539 hardcode_direct_CXX=no
9540 hardcode_shlibpath_var_CXX=no
9541 hardcode_minus_L_CXX=yes # Not in the search PATH,
9542 # but as the default
9543 # location of the library.
9546 hardcode_direct_CXX=yes
9547 hardcode_minus_L_CXX=yes # Not in the search PATH,
9548 # but as the default
9549 # location of the library.
9553 case $cc_basename in
9555 # FIXME: insert proper C++ library support
9561 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9564 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9567 # Commands to make compiler produce verbose output that lists
9568 # what "hidden" libraries, object files and flags are used when
9569 # linking a shared library.
9571 # There doesn't appear to be a way to prevent this compiler from
9572 # explicitly linking system object files so we need to strip them
9573 # from the output so that they don't get included in the library
9575 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'
9578 if test "$GXX" = yes; then
9579 if test $with_gnu_ld = no; then
9582 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9585 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'
9590 # FIXME: insert proper C++ library support
9597 case $cc_basename in
9600 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9602 # Archives containing C++ object files must be created using
9603 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9604 # necessary to make sure instantiated templates are included
9606 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9609 if test "$GXX" = yes; then
9610 if test "$with_gnu_ld" = no; then
9611 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9613 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'
9616 link_all_deplibs_CXX=yes
9619 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9620 hardcode_libdir_separator_CXX=:
9623 case $cc_basename in
9625 # Kuck and Associates, Inc. (KAI) C++ Compiler
9627 # KCC will only create a shared library if the output file
9628 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9629 # to its proper name (with version) after linking.
9630 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'
9631 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'
9632 # Commands to make compiler produce verbose output that lists
9633 # what "hidden" libraries, object files and flags are used when
9634 # linking a shared library.
9636 # There doesn't appear to be a way to prevent this compiler from
9637 # explicitly linking system object files so we need to strip them
9638 # from the output so that they don't get included in the library
9640 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'
9642 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9643 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9645 # Archives containing C++ object files must be created using
9646 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9647 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9652 archive_cmds_need_lc_CXX=no
9653 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9654 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'
9655 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9656 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9657 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9661 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9662 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'
9664 runpath_var=LD_RUN_PATH
9665 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9666 hardcode_libdir_separator_CXX=:
9668 # Commands to make compiler produce verbose output that lists
9669 # what "hidden" libraries, object files and flags are used when
9670 # linking a shared library.
9672 # There doesn't appear to be a way to prevent this compiler from
9673 # explicitly linking system object files so we need to strip them
9674 # from the output so that they don't get included in the library
9676 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'
9681 # FIXME: insert proper C++ library support
9685 # FIXME: insert proper C++ library support
9689 case $cc_basename in
9691 # FIXME: insert proper C++ library support
9695 # FIXME: insert proper C++ library support
9701 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9702 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9704 hardcode_libdir_flag_spec_CXX='-R$libdir'
9705 hardcode_direct_CXX=yes
9706 hardcode_shlibpath_var_CXX=no
9708 # Workaround some broken pre-1.5 toolchains
9709 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9712 case $cc_basename in
9714 # Kuck and Associates, Inc. (KAI) C++ Compiler
9716 # KCC will only create a shared library if the output file
9717 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9718 # to its proper name (with version) after linking.
9719 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'
9721 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9722 hardcode_libdir_separator_CXX=:
9724 # Archives containing C++ object files must be created using
9725 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9726 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9730 # Rational C++ 2.4.1
9731 # FIXME: insert proper C++ library support
9735 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9736 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9738 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9739 hardcode_libdir_separator_CXX=:
9741 # Commands to make compiler produce verbose output that lists
9742 # what "hidden" libraries, object files and flags are used when
9743 # linking a shared library.
9745 # There doesn't appear to be a way to prevent this compiler from
9746 # explicitly linking system object files so we need to strip them
9747 # from the output so that they don't get included in the library
9749 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'
9752 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9753 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9754 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9756 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9757 hardcode_libdir_separator_CXX=:
9759 # Commands to make compiler produce verbose output that lists
9760 # what "hidden" libraries, object files and flags are used when
9761 # linking a shared library.
9762 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9765 # FIXME: insert proper C++ library support
9772 case $cc_basename in
9774 # Kuck and Associates, Inc. (KAI) C++ Compiler
9776 # KCC will only create a shared library if the output file
9777 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9778 # to its proper name (with version) after linking.
9779 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'
9781 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9782 hardcode_libdir_separator_CXX=:
9784 # Archives containing C++ object files must be created using
9785 # the KAI C++ compiler.
9786 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9789 # Rational C++ 2.4.1
9790 # FIXME: insert proper C++ library support
9794 allow_undefined_flag_CXX=' -expect_unresolved \*'
9795 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9796 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9797 echo "-hidden">> $lib.exp~
9798 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
9801 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9802 hardcode_libdir_separator_CXX=:
9804 # Commands to make compiler produce verbose output that lists
9805 # what "hidden" libraries, object files and flags are used when
9806 # linking a shared library.
9808 # There doesn't appear to be a way to prevent this compiler from
9809 # explicitly linking system object files so we need to strip them
9810 # from the output so that they don't get included in the library
9812 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'
9815 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9816 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9817 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9819 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9820 hardcode_libdir_separator_CXX=:
9822 # Commands to make compiler produce verbose output that lists
9823 # what "hidden" libraries, object files and flags are used when
9824 # linking a shared library.
9825 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9828 # FIXME: insert proper C++ library support
9835 # FIXME: insert proper C++ library support
9839 archive_cmds_need_lc_CXX=no
9840 case $cc_basename in
9842 # FIXME: insert proper C++ library support
9846 # FIXME: insert proper C++ library support
9852 case $cc_basename in
9855 # FIXME: insert proper C++ library support
9860 # FIXME: insert proper C++ library support
9864 # FIXME: insert proper C++ library support
9870 case $cc_basename in
9872 # Sun C++ 4.2, 5.x and Centerline C++
9873 no_undefined_flag_CXX=' -zdefs'
9874 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9875 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9876 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9878 hardcode_libdir_flag_spec_CXX='-R$libdir'
9879 hardcode_shlibpath_var_CXX=no
9881 solaris2.0-5 | solaris2.0-5.*) ;;
9883 # The C++ compiler is used as linker so we must use $wl
9884 # flag to pass the commands to the underlying system
9886 # Supported since Solaris 2.6 (maybe 2.5.1?)
9887 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9890 link_all_deplibs_CXX=yes
9892 # Commands to make compiler produce verbose output that lists
9893 # what "hidden" libraries, object files and flags are used when
9894 # linking a shared library.
9896 # There doesn't appear to be a way to prevent this compiler from
9897 # explicitly linking system object files so we need to strip them
9898 # from the output so that they don't get included in the library
9900 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9902 # Archives containing C++ object files must be created using
9903 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9904 # necessary to make sure instantiated templates are included
9906 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9909 # Green Hills C++ Compiler
9910 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9912 # The C++ compiler must be used to create the archive.
9913 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9916 # GNU C++ compiler with Solaris linker
9917 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9918 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9919 if $CC --version | grep -v '^2\.7' > /dev/null; then
9920 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9921 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9922 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9924 # Commands to make compiler produce verbose output that lists
9925 # what "hidden" libraries, object files and flags are used when
9926 # linking a shared library.
9927 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9929 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9931 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9932 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9933 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9935 # Commands to make compiler produce verbose output that lists
9936 # what "hidden" libraries, object files and flags are used when
9937 # linking a shared library.
9938 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9941 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9946 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9947 archive_cmds_need_lc_CXX=no
9950 case $cc_basename in
9952 # NonStop-UX NCC 3.20
9953 # FIXME: insert proper C++ library support
9957 # FIXME: insert proper C++ library support
9963 # FIXME: insert proper C++ library support
9967 # FIXME: insert proper C++ library support
9971 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9972 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9973 test "$ld_shlibs_CXX" = no && can_build_shared=no
9979 ## There is no encapsulation within the following macros, do not change
9980 ## the running order or otherwise move them around unless you know exactly
9981 ## what you are doing...
9983 cat > conftest.$ac_ext <<EOF
9987 Foo (void) { a = 0; }
9993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9994 (eval $ac_compile) 2>&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; then
9998 # Parse the compiler output and extract the necessary
9999 # objects, libraries and library flags.
10001 # Sentinel used to keep track of whether or not we are before
10002 # the conftest object file.
10003 pre_test_object_deps_done=no
10005 # The `*' in the case matches for architectures that use `case' in
10006 # $output_verbose_cmd can trigger glob expansion during the loop
10007 # eval without this substitution.
10008 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10010 for p in `eval $output_verbose_link_cmd`; do
10014 # Some compilers place space between "-{L,R}" and the path.
10015 # Remove the space.
10016 if test $p = "-L" \
10017 || test $p = "-R"; then
10024 if test "$pre_test_object_deps_done" = no; then
10027 # Internal compiler library paths should come after those
10028 # provided the user. The postdeps already come after the
10029 # user supplied libs so there is no need to process them.
10030 if test -z "$compiler_lib_search_path_CXX"; then
10031 compiler_lib_search_path_CXX="${prev}${p}"
10033 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10036 # The "-l" case would never come before the object being
10037 # linked, so don't bother handling this case.
10040 if test -z "$postdeps_CXX"; then
10041 postdeps_CXX="${prev}${p}"
10043 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10049 # This assumes that the test object file only shows up
10050 # once in the compiler output.
10051 if test "$p" = "conftest.$objext"; then
10052 pre_test_object_deps_done=yes
10056 if test "$pre_test_object_deps_done" = no; then
10057 if test -z "$predep_objects_CXX"; then
10058 predep_objects_CXX="$p"
10060 predep_objects_CXX="$predep_objects_CXX $p"
10063 if test -z "$postdep_objects_CXX"; then
10064 postdep_objects_CXX="$p"
10066 postdep_objects_CXX="$postdep_objects_CXX $p"
10071 *) ;; # Ignore the rest.
10079 echo "libtool.m4: error: problem compiling CXX test program"
10082 $rm -f confest.$objext
10084 case " $postdeps_CXX " in
10085 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10088 lt_prog_compiler_wl_CXX=
10089 lt_prog_compiler_pic_CXX=
10090 lt_prog_compiler_static_CXX=
10092 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10093 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10095 # C++ specific cases for pic, static, wl, etc.
10096 if test "$GXX" = yes; then
10097 lt_prog_compiler_wl_CXX='-Wl,'
10098 lt_prog_compiler_static_CXX='-static'
10102 # All AIX code is PIC.
10103 if test "$host_cpu" = ia64; then
10104 # AIX 5 now supports IA64 processor
10105 lt_prog_compiler_static_CXX='-Bstatic'
10109 # FIXME: we need at least 68020 code to build shared libraries, but
10110 # adding the `-m68020' flag to GCC prevents building anything better,
10112 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10114 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10115 # PIC is the default for these OSes.
10117 mingw* | os2* | pw32*)
10118 # This hack is so that the source file can tell whether it is being
10119 # built for inclusion in a dll (and should export symbols for example).
10120 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10122 darwin* | rhapsody*)
10123 # PIC is the default on this platform
10124 # Common symbols not allowed in MH_DYLIB files
10125 lt_prog_compiler_pic_CXX='-fno-common'
10128 # DJGPP does not support shared libraries at all
10129 lt_prog_compiler_pic_CXX=
10132 if test -d /usr/nec; then
10133 lt_prog_compiler_pic_CXX=-Kconform_pic
10137 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10138 # not for PA HP-UX.
10139 case "$host_cpu" in
10143 lt_prog_compiler_pic_CXX='-fPIC'
10148 lt_prog_compiler_pic_CXX='-fPIC'
10154 # All AIX code is PIC.
10155 if test "$host_cpu" = ia64; then
10156 # AIX 5 now supports IA64 processor
10157 lt_prog_compiler_static_CXX='-Bstatic'
10159 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10163 case $cc_basename in
10165 # Green Hills C++ Compiler
10166 # _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"
10171 case $cc_basename in
10173 lt_prog_compiler_pic_CXX='-KPIC'
10176 # Green Hills C++ Compiler
10177 lt_prog_compiler_pic_CXX='-pic'
10183 freebsd* | kfreebsd*-gnu)
10184 # FreeBSD uses GNU C++
10186 hpux9* | hpux10* | hpux11*)
10187 case $cc_basename in
10189 lt_prog_compiler_wl_CXX='-Wl,'
10190 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10191 if test "$host_cpu" != ia64; then
10192 lt_prog_compiler_pic_CXX='+Z'
10196 lt_prog_compiler_wl_CXX='-Wl,'
10197 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10198 case "$host_cpu" in
10203 lt_prog_compiler_pic_CXX='+Z'
10211 irix5* | irix6* | nonstopux*)
10212 case $cc_basename in
10214 lt_prog_compiler_wl_CXX='-Wl,'
10215 lt_prog_compiler_static_CXX='-non_shared'
10216 # CC pic flag -KPIC is the default.
10223 case $cc_basename in
10226 lt_prog_compiler_wl_CXX='--backend -Wl,'
10227 lt_prog_compiler_pic_CXX='-fPIC'
10231 lt_prog_compiler_wl_CXX='-Wl,'
10232 lt_prog_compiler_pic_CXX='-KPIC'
10233 lt_prog_compiler_static_CXX='-static'
10237 # Make sure the PIC flag is empty. It appears that all Alpha
10238 # Linux and Compaq Tru64 Unix objects are PIC.
10239 lt_prog_compiler_pic_CXX=
10240 lt_prog_compiler_static_CXX='-non_shared'
10251 case $cc_basename in
10253 lt_prog_compiler_pic_CXX='-W c,exportall'
10261 osf3* | osf4* | osf5*)
10262 case $cc_basename in
10264 lt_prog_compiler_wl_CXX='--backend -Wl,'
10267 # Rational C++ 2.4.1
10268 lt_prog_compiler_pic_CXX='-pic'
10271 # Digital/Compaq C++
10272 lt_prog_compiler_wl_CXX='-Wl,'
10273 # Make sure the PIC flag is empty. It appears that all Alpha
10274 # Linux and Compaq Tru64 Unix objects are PIC.
10275 lt_prog_compiler_pic_CXX=
10276 lt_prog_compiler_static_CXX='-non_shared'
10285 case $cc_basename in
10287 lt_prog_compiler_pic_CXX='-fPIC'
10294 case $cc_basename in
10296 # Sun C++ 4.2, 5.x and Centerline C++
10297 lt_prog_compiler_pic_CXX='-KPIC'
10298 lt_prog_compiler_static_CXX='-Bstatic'
10299 lt_prog_compiler_wl_CXX='-Qoption ld '
10302 # Green Hills C++ Compiler
10303 lt_prog_compiler_pic_CXX='-PIC'
10310 case $cc_basename in
10313 lt_prog_compiler_pic_CXX='-pic'
10314 lt_prog_compiler_static_CXX='-Bstatic'
10318 lt_prog_compiler_pic_CXX='-pic'
10325 case $cc_basename in
10327 # NonStop-UX NCC 3.20
10328 lt_prog_compiler_pic_CXX='-KPIC'
10339 lt_prog_compiler_can_build_shared_CXX=no
10344 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10345 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10348 # Check to make sure the PIC flag actually works.
10350 if test -n "$lt_prog_compiler_pic_CXX"; then
10352 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10353 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10354 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10357 lt_prog_compiler_pic_works_CXX=no
10358 ac_outfile=conftest.$ac_objext
10359 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10360 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10361 # Insert the option either (1) after the last *FLAGS variable, or
10362 # (2) before a word containing "conftest.", or (3) at the end.
10363 # Note that $ac_compile itself does not contain backslashes and begins
10364 # with a dollar sign (not a hyphen), so the echo should work correctly.
10365 # The option is referenced via a variable to avoid confusing sed.
10366 lt_compile=`echo "$ac_compile" | $SED \
10367 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10369 -e 's:$: $lt_compiler_flag:'`
10370 (eval echo "\"\$as_me:10370: $lt_compile\"" >&5)
10371 (eval "$lt_compile" 2>conftest.err)
10373 cat conftest.err >&5
10374 echo "$as_me:10374: \$? = $ac_status" >&5
10375 if (exit $ac_status) && test -s "$ac_outfile"; then
10376 # The compiler can only warn and ignore the option if not recognized
10377 # So say no if there are warnings
10378 if test ! -s conftest.err; then
10379 lt_prog_compiler_pic_works_CXX=yes
10385 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10386 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10388 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10389 case $lt_prog_compiler_pic_CXX in
10391 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10394 lt_prog_compiler_pic_CXX=
10395 lt_prog_compiler_can_build_shared_CXX=no
10400 # For platforms which do not support PIC, -DPIC is meaningless:
10402 lt_prog_compiler_pic_CXX=
10405 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10409 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10410 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10411 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 lt_cv_prog_compiler_c_o_CXX=no
10415 $rm -r conftest 2>/dev/null
10419 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10421 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10422 # that will create temporary files in the current directory regardless of
10423 # the output directory. Thus, making CWD read-only will cause this test
10424 # to fail, enabling locking or at least warning the user not to do parallel
10428 lt_compiler_flag="-o out/conftest2.$ac_objext"
10429 # Insert the option either (1) after the last *FLAGS variable, or
10430 # (2) before a word containing "conftest.", or (3) at the end.
10431 # Note that $ac_compile itself does not contain backslashes and begins
10432 # with a dollar sign (not a hyphen), so the echo should work correctly.
10433 lt_compile=`echo "$ac_compile" | $SED \
10434 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10436 -e 's:$: $lt_compiler_flag:'`
10437 (eval echo "\"\$as_me:10437: $lt_compile\"" >&5)
10438 (eval "$lt_compile" 2>out/conftest.err)
10440 cat out/conftest.err >&5
10441 echo "$as_me:10441: \$? = $ac_status" >&5
10442 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10444 # The compiler can only warn and ignore the option if not recognized
10445 # So say no if there are warnings
10446 if test ! -s out/conftest.err; then
10447 lt_cv_prog_compiler_c_o_CXX=yes
10452 # SGI C++ compiler will create directory out/ii_files/ for
10453 # template instantiation
10454 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10455 $rm out/* && rmdir out
10461 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10462 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10465 hard_links="nottested"
10466 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10467 # do not overwrite the value of need_locks provided by the user
10468 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10469 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10472 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10474 ln conftest.a conftest.b 2>&5 || hard_links=no
10475 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10476 echo "$as_me:$LINENO: result: $hard_links" >&5
10477 echo "${ECHO_T}$hard_links" >&6
10478 if test "$hard_links" = no; then
10479 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10480 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10487 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10488 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10490 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10493 # If we're using GNU nm, then we don't want the "-C" option.
10494 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10495 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10496 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'
10498 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'
10502 export_symbols_cmds_CXX="$ltdll_cmds"
10505 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10508 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10512 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10513 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10514 test "$ld_shlibs_CXX" = no && can_build_shared=no
10516 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10517 if test "$GCC" = yes; then
10518 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10522 # Do we need to explicitly link libc?
10524 case "x$archive_cmds_need_lc_CXX" in
10526 # Assume -lc should be added
10527 archive_cmds_need_lc_CXX=yes
10529 if test "$enable_shared" = yes && test "$GCC" = yes; then
10530 case $archive_cmds_CXX in
10532 # FIXME: we may have to deal with multi-command sequences.
10535 # Test whether the compiler implicitly links with -lc since on some
10536 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10537 # to ld, don't add -lc before -lgcc.
10538 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10539 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10541 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10544 (eval $ac_compile) 2>&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } 2>conftest.err; then
10550 libobjs=conftest.$ac_objext
10552 wl=$lt_prog_compiler_wl_CXX
10558 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10559 allow_undefined_flag_CXX=
10560 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10561 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }
10566 archive_cmds_need_lc_CXX=no
10568 archive_cmds_need_lc_CXX=yes
10570 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10572 cat conftest.err 1>&5
10575 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10576 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10583 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10584 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10585 library_names_spec=
10586 libname_spec='lib$name'
10590 postuninstall_cmds=
10594 shlibpath_overrides_runpath=unknown
10596 dynamic_linker="$host_os ld.so"
10597 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10598 if test "$GCC" = yes; then
10599 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10600 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10601 # if the path contains ";" then we assume it to be the separator
10602 # otherwise default to the standard path separator (i.e. ":") - it is
10603 # assumed that no part of a normal pathname contains ";" but that should
10604 # okay in the real world where ";" in dirpaths is itself problematic.
10605 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10607 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10610 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10612 need_lib_prefix=unknown
10613 hardcode_into_libs=no
10615 # when you set need_version to no, make sure it does not cause -set_version
10616 # flags to be left without arguments
10617 need_version=unknown
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10623 shlibpath_var=LIBPATH
10625 # AIX 3 has no versioning support, so we append a major version to the name.
10626 soname_spec='${libname}${release}${shared_ext}$major'
10633 hardcode_into_libs=yes
10634 if test "$host_cpu" = ia64; then
10635 # AIX 5 supports IA64
10636 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10637 shlibpath_var=LD_LIBRARY_PATH
10639 # With GCC up to 2.95.x, collect2 would create an import file
10640 # for dependence libraries. The import file would start with
10641 # the line `#! .'. This would cause the generated library to
10642 # depend on `.', always an invalid library. This was fixed in
10643 # development snapshots of GCC prior to 3.0.
10645 aix4 | aix4.[01] | aix4.[01].*)
10646 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10648 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10651 can_build_shared=no
10655 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10656 # soname into executable. Probably we can add versioning support to
10657 # collect2, so additional links can be useful in future.
10658 if test "$aix_use_runtimelinking" = yes; then
10659 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10660 # instead of lib<name>.a to let people know that these are not
10661 # typical AIX shared libraries.
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664 # We preserve .a as extension for shared libraries through AIX4.2
10665 # and later when we are not doing run time linking.
10666 library_names_spec='${libname}${release}.a $libname.a'
10667 soname_spec='${libname}${release}${shared_ext}$major'
10669 shlibpath_var=LIBPATH
10674 library_names_spec='$libname.ixlibrary $libname.a'
10675 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10676 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'
10680 library_names_spec='${libname}${shared_ext}'
10681 dynamic_linker="$host_os ld.so"
10682 shlibpath_var=LIBRARY_PATH
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689 soname_spec='${libname}${release}${shared_ext}$major'
10690 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10691 shlibpath_var=LD_LIBRARY_PATH
10692 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10693 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10694 # the default ld.so.conf also contains /usr/contrib/lib and
10695 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10696 # libtool to hard-code these into programs
10699 cygwin* | mingw* | pw32*)
10700 version_type=windows
10705 case $GCC,$host_os in
10706 yes,cygwin* | yes,mingw* | yes,pw32*)
10707 library_names_spec='$libname.dll.a'
10708 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10709 postinstall_cmds='base_file=`basename \${file}`~
10710 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10711 dldir=$destdir/`dirname \$dlpath`~
10712 test -d \$dldir || mkdir -p \$dldir~
10713 $install_prog $dir/$dlname \$dldir/$dlname'
10714 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10715 dlpath=$dir/\$dldll~
10717 shlibpath_overrides_runpath=yes
10721 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10722 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10723 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10726 # MinGW DLLs use traditional 'lib' prefix
10727 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10728 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10729 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10730 # It is most probably a Windows format PATH printed by
10731 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10732 # path with ; separators, and with drive letters. We can handle the
10733 # drive letters (cygwin fileutils understands them), so leave them,
10734 # especially as we might pass files found there to a mingw objdump,
10735 # which wouldn't understand a cygwinified path. Ahh.
10736 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10742 # pw32 DLLs use 'pw' prefix rather than 'lib'
10743 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10749 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10752 dynamic_linker='Win32 ld.exe'
10753 # FIXME: first we should search . and the directory the executable is in
10757 darwin* | rhapsody*)
10758 dynamic_linker="$host_os dyld"
10759 version_type=darwin
10762 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10763 soname_spec='${libname}${release}${major}$shared_ext'
10764 shlibpath_overrides_runpath=yes
10765 shlibpath_var=DYLD_LIBRARY_PATH
10766 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10767 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10768 if test "$GCC" = yes; then
10769 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"`
10771 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10773 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10781 soname_spec='${libname}${release}${shared_ext}$major'
10782 shlibpath_var=LD_LIBRARY_PATH
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10794 soname_spec='${libname}${release}${shared_ext}$major'
10795 shlibpath_var=LD_LIBRARY_PATH
10796 shlibpath_overrides_runpath=no
10797 hardcode_into_libs=yes
10798 dynamic_linker='GNU ld.so'
10802 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10803 version_type=freebsd-$objformat
10804 case $version_type in
10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10815 shlibpath_var=LD_LIBRARY_PATH
10818 shlibpath_overrides_runpath=yes
10820 freebsd3.01* | freebsdelf3.01*)
10821 shlibpath_overrides_runpath=yes
10822 hardcode_into_libs=yes
10825 shlibpath_overrides_runpath=no
10826 hardcode_into_libs=yes
10835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10836 soname_spec='${libname}${release}${shared_ext}$major'
10837 shlibpath_var=LD_LIBRARY_PATH
10838 hardcode_into_libs=yes
10841 hpux9* | hpux10* | hpux11*)
10842 # Give a soname corresponding to the major version so that dld.sl refuses to
10843 # link against other versions.
10847 case "$host_cpu" in
10850 hardcode_into_libs=yes
10851 dynamic_linker="$host_os dld.so"
10852 shlibpath_var=LD_LIBRARY_PATH
10853 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10855 soname_spec='${libname}${release}${shared_ext}$major'
10856 if test "X$HPUX_IA64_MODE" = X32; then
10857 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10859 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10865 hardcode_into_libs=yes
10866 dynamic_linker="$host_os dld.sl"
10867 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10868 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10870 soname_spec='${libname}${release}${shared_ext}$major'
10871 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10876 dynamic_linker="$host_os dld.sl"
10877 shlibpath_var=SHLIB_PATH
10878 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880 soname_spec='${libname}${release}${shared_ext}$major'
10883 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10884 postinstall_cmds='chmod 555 $lib'
10887 irix5* | irix6* | nonstopux*)
10889 nonstopux*) version_type=nonstopux ;;
10891 if test "$lt_cv_prog_gnu_ld" = yes; then
10899 soname_spec='${libname}${release}${shared_ext}$major'
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10902 irix5* | nonstopux*)
10903 libsuff= shlibsuff=
10906 case $LD in # libtool.m4 will add one of these switches to LD
10907 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10908 libsuff= shlibsuff= libmagic=32-bit;;
10909 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10910 libsuff=32 shlibsuff=N32 libmagic=N32;;
10911 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10912 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10913 *) libsuff= shlibsuff= libmagic=never-match;;
10917 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10918 shlibpath_overrides_runpath=no
10919 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10920 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10921 hardcode_into_libs=yes
10924 # No shared lib support for Linux oldld, aout, or coff.
10925 linux*oldld* | linux*aout* | linux*coff*)
10929 # This must be Linux ELF.
10934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10935 soname_spec='${libname}${release}${shared_ext}$major'
10936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10937 shlibpath_var=LD_LIBRARY_PATH
10938 shlibpath_overrides_runpath=no
10939 # This implies no fast_install, which is unacceptable.
10940 # Some rework will be needed to allow for fast_install
10941 # before this can be enabled.
10942 hardcode_into_libs=yes
10944 # We used to test for /lib/ld.so.1 and disable shared libraries on
10945 # powerpc, because MkLinux only supported shared libraries with the
10946 # GNU dynamic linker. Since this was broken with cross compilers,
10947 # most powerpc-linux boxes support dynamic linking these days and
10948 # people can always --disable-shared, the test was removed, and we
10949 # assume the GNU/Linux dynamic linker is in use.
10950 dynamic_linker='GNU/Linux ld.so'
10957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10960 dynamic_linker='NetBSD (a.out) ld.so'
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 dynamic_linker='NetBSD ld.elf_so'
10966 shlibpath_var=LD_LIBRARY_PATH
10967 shlibpath_overrides_runpath=yes
10968 hardcode_into_libs=yes
10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=yes
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 shlibpath_overrides_runpath=yes
10992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10994 shlibpath_var=LD_LIBRARY_PATH
10995 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10997 openbsd2.[89] | openbsd2.[89].*)
10998 shlibpath_overrides_runpath=no
11001 shlibpath_overrides_runpath=yes
11005 shlibpath_overrides_runpath=yes
11010 libname_spec='$name'
11013 library_names_spec='$libname${shared_ext} $libname.a'
11014 dynamic_linker='OS/2 ld.exe'
11015 shlibpath_var=LIBPATH
11018 osf3* | osf4* | osf5*)
11022 soname_spec='${libname}${release}${shared_ext}$major'
11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11024 shlibpath_var=LD_LIBRARY_PATH
11025 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11026 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11031 soname_spec='${libname}${release}${shared_ext}$major'
11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11033 shlibpath_var=LD_LIBRARY_PATH
11040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11041 soname_spec='${libname}${release}${shared_ext}$major'
11042 shlibpath_var=LD_LIBRARY_PATH
11043 shlibpath_overrides_runpath=yes
11044 hardcode_into_libs=yes
11045 # ldd complains unless libraries are executable
11046 postinstall_cmds='chmod +x $lib'
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11053 shlibpath_var=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath=yes
11055 if test "$with_gnu_ld" = yes; then
11061 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11064 soname_spec='${libname}${release}${shared_ext}$major'
11065 shlibpath_var=LD_LIBRARY_PATH
11066 case $host_vendor in
11068 shlibpath_overrides_runpath=no
11070 export_dynamic_flag_spec='${wl}-Blargedynsym'
11071 runpath_var=LD_RUN_PATH
11079 shlibpath_overrides_runpath=no
11080 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11086 if test -d /usr/nec ;then
11088 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11089 soname_spec='$libname${shared_ext}.$major'
11090 shlibpath_var=LD_LIBRARY_PATH
11096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11097 soname_spec='${libname}${release}${shared_ext}$major'
11098 shlibpath_var=LD_LIBRARY_PATH
11105 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11106 echo "${ECHO_T}$dynamic_linker" >&6
11107 test "$dynamic_linker" = no && can_build_shared=no
11109 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11110 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11111 hardcode_action_CXX=
11112 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11113 test -n "$runpath_var CXX" || \
11114 test "X$hardcode_automatic_CXX"="Xyes" ; then
11116 # We can hardcode non-existant directories.
11117 if test "$hardcode_direct_CXX" != no &&
11118 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11119 # have to relink, otherwise we might link with an installed library
11120 # when we should be linking with a yet-to-be-installed one
11121 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11122 test "$hardcode_minus_L_CXX" != no; then
11123 # Linking always hardcodes the temporary library directory.
11124 hardcode_action_CXX=relink
11126 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11127 hardcode_action_CXX=immediate
11130 # We cannot hardcode anything, or else we can only hardcode existing
11132 hardcode_action_CXX=unsupported
11134 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11135 echo "${ECHO_T}$hardcode_action_CXX" >&6
11137 if test "$hardcode_action_CXX" = relink; then
11138 # Fast installation is not supported
11139 enable_fast_install=no
11140 elif test "$shlibpath_overrides_runpath" = yes ||
11141 test "$enable_shared" = no; then
11142 # Fast installation is not necessary
11143 enable_fast_install=needless
11148 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11149 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11150 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11151 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11152 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11153 echo "$as_me:$LINENO: result: yes" >&5
11154 echo "${ECHO_T}yes" >&6
11156 # FIXME - insert some real tests, host_os isn't really good enough
11159 if test -n "$STRIP" ; then
11160 striplib="$STRIP -x"
11161 echo "$as_me:$LINENO: result: yes" >&5
11162 echo "${ECHO_T}yes" >&6
11164 echo "$as_me:$LINENO: result: no" >&5
11165 echo "${ECHO_T}no" >&6
11169 echo "$as_me:$LINENO: result: no" >&5
11170 echo "${ECHO_T}no" >&6
11175 if test "x$enable_dlopen" != xyes; then
11176 enable_dlopen=unknown
11177 enable_dlopen_self=unknown
11178 enable_dlopen_self_static=unknown
11185 lt_cv_dlopen="load_add_on"
11187 lt_cv_dlopen_self=yes
11191 lt_cv_dlopen="LoadLibrary"
11196 lt_cv_dlopen="dlopen"
11201 # if libdl is installed we need to link against it
11202 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11203 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11204 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11207 ac_check_lib_save_LIBS=$LIBS
11209 cat >conftest.$ac_ext <<_ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h. */
11216 /* Override any gcc2 internal prototype to avoid an error. */
11220 /* We use char because int might match the return type of a gcc2
11221 builtin and then its argument prototype would still apply. */
11231 rm -f conftest.$ac_objext conftest$ac_exeext
11232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11233 (eval $ac_link) 2>conftest.er1
11235 grep -v '^ *+' conftest.er1 >conftest.err
11237 cat conftest.err >&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } &&
11240 { ac_try='test -z "$ac_cxx_werror_flag"
11241 || test ! -s conftest.err'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; } &&
11247 { ac_try='test -s conftest$ac_exeext'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11253 ac_cv_lib_dl_dlopen=yes
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11258 ac_cv_lib_dl_dlopen=no
11260 rm -f conftest.err conftest.$ac_objext \
11261 conftest$ac_exeext conftest.$ac_ext
11262 LIBS=$ac_check_lib_save_LIBS
11264 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11265 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11266 if test $ac_cv_lib_dl_dlopen = yes; then
11267 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11270 lt_cv_dlopen="dyld"
11272 lt_cv_dlopen_self=yes
11279 echo "$as_me:$LINENO: checking for shl_load" >&5
11280 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11281 if test "${ac_cv_func_shl_load+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 cat >conftest.$ac_ext <<_ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11290 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11292 #define shl_load innocuous_shl_load
11294 /* System header to define __stub macros and hopefully few prototypes,
11295 which can conflict with char shl_load (); below.
11296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11297 <limits.h> exists even on freestanding compilers. */
11300 # include <limits.h>
11302 # include <assert.h>
11307 /* Override any gcc2 internal prototype to avoid an error. */
11312 /* We use char because int might match the return type of a gcc2
11313 builtin and then its argument prototype would still apply. */
11315 /* The GNU C library defines this for functions which it implements
11316 to always fail with ENOSYS. Some functions are actually named
11317 something starting with __ and the normal name is an alias. */
11318 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11321 char (*f) () = shl_load;
11330 return f != shl_load;
11335 rm -f conftest.$ac_objext conftest$ac_exeext
11336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11337 (eval $ac_link) 2>conftest.er1
11339 grep -v '^ *+' conftest.er1 >conftest.err
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } &&
11344 { ac_try='test -z "$ac_cxx_werror_flag"
11345 || test ! -s conftest.err'
11346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347 (eval $ac_try) 2>&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; } &&
11351 { ac_try='test -s conftest$ac_exeext'
11352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11353 (eval $ac_try) 2>&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); }; }; then
11357 ac_cv_func_shl_load=yes
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11362 ac_cv_func_shl_load=no
11364 rm -f conftest.err conftest.$ac_objext \
11365 conftest$ac_exeext conftest.$ac_ext
11367 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11368 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11369 if test $ac_cv_func_shl_load = yes; then
11370 lt_cv_dlopen="shl_load"
11372 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11373 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11374 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 ac_check_lib_save_LIBS=$LIBS
11379 cat >conftest.$ac_ext <<_ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h. */
11386 /* Override any gcc2 internal prototype to avoid an error. */
11390 /* We use char because int might match the return type of a gcc2
11391 builtin and then its argument prototype would still apply. */
11401 rm -f conftest.$ac_objext conftest$ac_exeext
11402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11403 (eval $ac_link) 2>conftest.er1
11405 grep -v '^ *+' conftest.er1 >conftest.err
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } &&
11410 { ac_try='test -z "$ac_cxx_werror_flag"
11411 || test ! -s conftest.err'
11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413 (eval $ac_try) 2>&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; } &&
11417 { ac_try='test -s conftest$ac_exeext'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; }; then
11423 ac_cv_lib_dld_shl_load=yes
11425 echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11428 ac_cv_lib_dld_shl_load=no
11430 rm -f conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
11432 LIBS=$ac_check_lib_save_LIBS
11434 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11435 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11436 if test $ac_cv_lib_dld_shl_load = yes; then
11437 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11439 echo "$as_me:$LINENO: checking for dlopen" >&5
11440 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11441 if test "${ac_cv_func_dlopen+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 cat >conftest.$ac_ext <<_ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11450 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11452 #define dlopen innocuous_dlopen
11454 /* System header to define __stub macros and hopefully few prototypes,
11455 which can conflict with char dlopen (); below.
11456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11457 <limits.h> exists even on freestanding compilers. */
11460 # include <limits.h>
11462 # include <assert.h>
11467 /* Override any gcc2 internal prototype to avoid an error. */
11472 /* We use char because int might match the return type of a gcc2
11473 builtin and then its argument prototype would still apply. */
11475 /* The GNU C library defines this for functions which it implements
11476 to always fail with ENOSYS. Some functions are actually named
11477 something starting with __ and the normal name is an alias. */
11478 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11481 char (*f) () = dlopen;
11490 return f != dlopen;
11495 rm -f conftest.$ac_objext conftest$ac_exeext
11496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11497 (eval $ac_link) 2>conftest.er1
11499 grep -v '^ *+' conftest.er1 >conftest.err
11501 cat conftest.err >&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } &&
11504 { ac_try='test -z "$ac_cxx_werror_flag"
11505 || test ! -s conftest.err'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; } &&
11511 { ac_try='test -s conftest$ac_exeext'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; }; then
11517 ac_cv_func_dlopen=yes
11519 echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11522 ac_cv_func_dlopen=no
11524 rm -f conftest.err conftest.$ac_objext \
11525 conftest$ac_exeext conftest.$ac_ext
11527 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11528 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11529 if test $ac_cv_func_dlopen = yes; then
11530 lt_cv_dlopen="dlopen"
11532 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11533 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11534 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11537 ac_check_lib_save_LIBS=$LIBS
11539 cat >conftest.$ac_ext <<_ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11546 /* Override any gcc2 internal prototype to avoid an error. */
11550 /* We use char because int might match the return type of a gcc2
11551 builtin and then its argument prototype would still apply. */
11561 rm -f conftest.$ac_objext conftest$ac_exeext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11563 (eval $ac_link) 2>conftest.er1
11565 grep -v '^ *+' conftest.er1 >conftest.err
11567 cat conftest.err >&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try='test -z "$ac_cxx_werror_flag"
11571 || test ! -s conftest.err'
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try='test -s conftest$ac_exeext'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 ac_cv_lib_dl_dlopen=yes
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11588 ac_cv_lib_dl_dlopen=no
11590 rm -f conftest.err conftest.$ac_objext \
11591 conftest$ac_exeext conftest.$ac_ext
11592 LIBS=$ac_check_lib_save_LIBS
11594 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11595 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11596 if test $ac_cv_lib_dl_dlopen = yes; then
11597 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11599 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11600 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11601 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 ac_check_lib_save_LIBS=$LIBS
11605 LIBS="-lsvld $LIBS"
11606 cat >conftest.$ac_ext <<_ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11613 /* Override any gcc2 internal prototype to avoid an error. */
11617 /* We use char because int might match the return type of a gcc2
11618 builtin and then its argument prototype would still apply. */
11628 rm -f conftest.$ac_objext conftest$ac_exeext
11629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11630 (eval $ac_link) 2>conftest.er1
11632 grep -v '^ *+' conftest.er1 >conftest.err
11634 cat conftest.err >&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } &&
11637 { ac_try='test -z "$ac_cxx_werror_flag"
11638 || test ! -s conftest.err'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; } &&
11644 { ac_try='test -s conftest$ac_exeext'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; }; then
11650 ac_cv_lib_svld_dlopen=yes
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11655 ac_cv_lib_svld_dlopen=no
11657 rm -f conftest.err conftest.$ac_objext \
11658 conftest$ac_exeext conftest.$ac_ext
11659 LIBS=$ac_check_lib_save_LIBS
11661 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11662 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11663 if test $ac_cv_lib_svld_dlopen = yes; then
11664 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11666 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11667 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11668 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 ac_check_lib_save_LIBS=$LIBS
11673 cat >conftest.$ac_ext <<_ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11680 /* Override any gcc2 internal prototype to avoid an error. */
11684 /* We use char because int might match the return type of a gcc2
11685 builtin and then its argument prototype would still apply. */
11695 rm -f conftest.$ac_objext conftest$ac_exeext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11697 (eval $ac_link) 2>conftest.er1
11699 grep -v '^ *+' conftest.er1 >conftest.err
11701 cat conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } &&
11704 { ac_try='test -z "$ac_cxx_werror_flag"
11705 || test ! -s conftest.err'
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; } &&
11711 { ac_try='test -s conftest$ac_exeext'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; }; then
11717 ac_cv_lib_dld_dld_link=yes
11719 echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11722 ac_cv_lib_dld_dld_link=no
11724 rm -f conftest.err conftest.$ac_objext \
11725 conftest$ac_exeext conftest.$ac_ext
11726 LIBS=$ac_check_lib_save_LIBS
11728 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11729 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11730 if test $ac_cv_lib_dld_dld_link = yes; then
11731 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11752 if test "x$lt_cv_dlopen" != xno; then
11758 case $lt_cv_dlopen in
11760 save_CPPFLAGS="$CPPFLAGS"
11761 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11763 save_LDFLAGS="$LDFLAGS"
11764 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11767 LIBS="$lt_cv_dlopen_libs $LIBS"
11769 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11770 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11771 if test "${lt_cv_dlopen_self+set}" = set; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11774 if test "$cross_compiling" = yes; then :
11775 lt_cv_dlopen_self=cross
11777 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11778 lt_status=$lt_dlunknown
11779 cat > conftest.$ac_ext <<EOF
11780 #line 11780 "configure"
11781 #include "confdefs.h"
11790 # define LT_DLGLOBAL RTLD_GLOBAL
11793 # define LT_DLGLOBAL DL_GLOBAL
11795 # define LT_DLGLOBAL 0
11799 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11800 find out it does not work in some platform. */
11801 #ifndef LT_DLLAZY_OR_NOW
11803 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11806 # define LT_DLLAZY_OR_NOW DL_LAZY
11809 # define LT_DLLAZY_OR_NOW RTLD_NOW
11812 # define LT_DLLAZY_OR_NOW DL_NOW
11814 # define LT_DLLAZY_OR_NOW 0
11822 extern "C" void exit (int);
11825 void fnord() { int i=42;}
11828 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11829 int status = $lt_dlunknown;
11833 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11834 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11835 /* dlclose (self); */
11841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11842 (eval $ac_link) 2>&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11846 (./conftest; exit; ) 2>/dev/null
11848 case x$lt_status in
11849 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11850 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11851 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11854 # compilation failed
11855 lt_cv_dlopen_self=no
11862 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11863 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11865 if test "x$lt_cv_dlopen_self" = xyes; then
11866 LDFLAGS="$LDFLAGS $link_static_flag"
11867 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11868 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11869 if test "${lt_cv_dlopen_self_static+set}" = set; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 if test "$cross_compiling" = yes; then :
11873 lt_cv_dlopen_self_static=cross
11875 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11876 lt_status=$lt_dlunknown
11877 cat > conftest.$ac_ext <<EOF
11878 #line 11878 "configure"
11879 #include "confdefs.h"
11888 # define LT_DLGLOBAL RTLD_GLOBAL
11891 # define LT_DLGLOBAL DL_GLOBAL
11893 # define LT_DLGLOBAL 0
11897 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11898 find out it does not work in some platform. */
11899 #ifndef LT_DLLAZY_OR_NOW
11901 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11904 # define LT_DLLAZY_OR_NOW DL_LAZY
11907 # define LT_DLLAZY_OR_NOW RTLD_NOW
11910 # define LT_DLLAZY_OR_NOW DL_NOW
11912 # define LT_DLLAZY_OR_NOW 0
11920 extern "C" void exit (int);
11923 void fnord() { int i=42;}
11926 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11927 int status = $lt_dlunknown;
11931 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11932 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11933 /* dlclose (self); */
11939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11940 (eval $ac_link) 2>&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11944 (./conftest; exit; ) 2>/dev/null
11946 case x$lt_status in
11947 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11948 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11949 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11952 # compilation failed
11953 lt_cv_dlopen_self_static=no
11960 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11961 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11964 CPPFLAGS="$save_CPPFLAGS"
11965 LDFLAGS="$save_LDFLAGS"
11970 case $lt_cv_dlopen_self in
11971 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11972 *) enable_dlopen_self=unknown ;;
11975 case $lt_cv_dlopen_self_static in
11976 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11977 *) enable_dlopen_self_static=unknown ;;
11982 # The else clause should only fire when bootstrapping the
11983 # libtool distribution, otherwise you forgot to ship ltmain.sh
11984 # with your package, and you will get complaints that there are
11985 # no rules to generate ltmain.sh.
11986 if test -f "$ltmain"; then
11987 # See if we are running on zsh, and set the options which allow our commands through
11988 # without removal of \ escapes.
11989 if test -n "${ZSH_VERSION+set}" ; then
11990 setopt NO_GLOB_SUBST
11992 # Now quote all the things that may contain metacharacters while being
11993 # careful not to overquote the AC_SUBSTed values. We take copies of the
11994 # variables and quote the copies for generation of the libtool script.
11995 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11997 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11998 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11999 deplibs_check_method reload_flag reload_cmds need_locks \
12000 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12001 lt_cv_sys_global_symbol_to_c_name_address \
12002 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12003 old_postinstall_cmds old_postuninstall_cmds \
12007 lt_prog_compiler_wl_CXX \
12008 lt_prog_compiler_pic_CXX \
12009 lt_prog_compiler_static_CXX \
12010 lt_prog_compiler_no_builtin_flag_CXX \
12011 export_dynamic_flag_spec_CXX \
12012 thread_safe_flag_spec_CXX \
12013 whole_archive_flag_spec_CXX \
12014 enable_shared_with_static_runtimes_CXX \
12015 old_archive_cmds_CXX \
12016 old_archive_from_new_cmds_CXX \
12017 predep_objects_CXX \
12018 postdep_objects_CXX \
12021 compiler_lib_search_path_CXX \
12023 archive_expsym_cmds_CXX \
12024 postinstall_cmds_CXX \
12025 postuninstall_cmds_CXX \
12026 old_archive_from_expsyms_cmds_CXX \
12027 allow_undefined_flag_CXX \
12028 no_undefined_flag_CXX \
12029 export_symbols_cmds_CXX \
12030 hardcode_libdir_flag_spec_CXX \
12031 hardcode_libdir_flag_spec_ld_CXX \
12032 hardcode_libdir_separator_CXX \
12033 hardcode_automatic_CXX \
12035 module_expsym_cmds_CXX \
12036 lt_cv_prog_compiler_c_o_CXX \
12037 exclude_expsyms_CXX \
12038 include_expsyms_CXX; do
12041 old_archive_cmds_CXX | \
12042 old_archive_from_new_cmds_CXX | \
12043 archive_cmds_CXX | \
12044 archive_expsym_cmds_CXX | \
12045 module_cmds_CXX | \
12046 module_expsym_cmds_CXX | \
12047 old_archive_from_expsyms_cmds_CXX | \
12048 export_symbols_cmds_CXX | \
12049 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12050 postinstall_cmds | postuninstall_cmds | \
12051 old_postinstall_cmds | old_postuninstall_cmds | \
12052 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12053 # Double-quote double-evaled strings.
12054 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12057 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12063 *'\$0 --fallback-echo"')
12064 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12070 cat <<__EOF__ >> "$cfgfile"
12071 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12073 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12075 # Shell to use when invoking shell scripts.
12078 # Whether or not to build shared libraries.
12079 build_libtool_libs=$enable_shared
12081 # Whether or not to build static libraries.
12082 build_old_libs=$enable_static
12084 # Whether or not to add -lc for building shared libraries.
12085 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12087 # Whether or not to disallow shared libs when runtime libs are static
12088 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12090 # Whether or not to optimize for fast installation.
12091 fast_install=$enable_fast_install
12094 host_alias=$host_alias
12097 # An echo program that does not interpret backslashes.
12102 AR_FLAGS=$lt_AR_FLAGS
12107 # A language-specific compiler.
12108 CC=$lt_compiler_CXX
12110 # Is the compiler the GNU C compiler?
12116 # The linker used to build libraries.
12119 # Whether we need hard or soft links.
12122 # A BSD-compatible nm program.
12125 # A symbol stripping program
12128 # Used to examine libraries when file_magic_cmd begins "file"
12129 MAGIC_CMD=$MAGIC_CMD
12131 # Used on cygwin: DLL creation program.
12134 # Used on cygwin: object dumper.
12137 # Used on cygwin: assembler.
12140 # The name of the directory that contains temporary libtool files.
12143 # How to create reloadable object files.
12144 reload_flag=$lt_reload_flag
12145 reload_cmds=$lt_reload_cmds
12147 # How to pass a linker flag through the compiler.
12148 wl=$lt_lt_prog_compiler_wl_CXX
12150 # Object file suffix (normally "o").
12151 objext="$ac_objext"
12153 # Old archive suffix (normally "a").
12156 # Shared library suffix (normally ".so").
12159 # Executable file suffix (normally "").
12162 # Additional compiler flags for building library objects.
12163 pic_flag=$lt_lt_prog_compiler_pic_CXX
12166 # What is the maximum length of a command?
12167 max_cmd_len=$lt_cv_sys_max_cmd_len
12169 # Does compiler simultaneously support -c and -o options?
12170 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12172 # Must we lock files when doing compilation ?
12173 need_locks=$lt_need_locks
12175 # Do we need the lib prefix for modules?
12176 need_lib_prefix=$need_lib_prefix
12178 # Do we need a version for libraries?
12179 need_version=$need_version
12181 # Whether dlopen is supported.
12182 dlopen_support=$enable_dlopen
12184 # Whether dlopen of programs is supported.
12185 dlopen_self=$enable_dlopen_self
12187 # Whether dlopen of statically linked programs is supported.
12188 dlopen_self_static=$enable_dlopen_self_static
12190 # Compiler flag to prevent dynamic linking.
12191 link_static_flag=$lt_lt_prog_compiler_static_CXX
12193 # Compiler flag to turn off builtin functions.
12194 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12196 # Compiler flag to allow reflexive dlopens.
12197 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12199 # Compiler flag to generate shared objects directly from archives.
12200 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12202 # Compiler flag to generate thread-safe objects.
12203 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12205 # Library versioning type.
12206 version_type=$version_type
12208 # Format of library name prefix.
12209 libname_spec=$lt_libname_spec
12211 # List of archive names. First name is the real one, the rest are links.
12212 # The last name is the one that the linker finds with -lNAME.
12213 library_names_spec=$lt_library_names_spec
12215 # The coded name of the library, if different from the real name.
12216 soname_spec=$lt_soname_spec
12218 # Commands used to build and install an old-style archive.
12220 old_archive_cmds=$lt_old_archive_cmds_CXX
12221 old_postinstall_cmds=$lt_old_postinstall_cmds
12222 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12224 # Create an old-style archive from a shared archive.
12225 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12227 # Create a temporary old-style archive to link instead of a shared archive.
12228 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12230 # Commands used to build and install a shared archive.
12231 archive_cmds=$lt_archive_cmds_CXX
12232 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12233 postinstall_cmds=$lt_postinstall_cmds
12234 postuninstall_cmds=$lt_postuninstall_cmds
12236 # Commands used to build a loadable module (assumed same as above if empty)
12237 module_cmds=$lt_module_cmds_CXX
12238 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12240 # Commands to strip libraries.
12241 old_striplib=$lt_old_striplib
12242 striplib=$lt_striplib
12244 # Dependencies to place before the objects being linked to create a
12246 predep_objects=$lt_predep_objects_CXX
12248 # Dependencies to place after the objects being linked to create a
12250 postdep_objects=$lt_postdep_objects_CXX
12252 # Dependencies to place before the objects being linked to create a
12254 predeps=$lt_predeps_CXX
12256 # Dependencies to place after the objects being linked to create a
12258 postdeps=$lt_postdeps_CXX
12260 # The library search path used internally by the compiler when linking
12261 # a shared library.
12262 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12264 # Method to check whether dependent libraries are shared objects.
12265 deplibs_check_method=$lt_deplibs_check_method
12267 # Command to use when deplibs_check_method == file_magic.
12268 file_magic_cmd=$lt_file_magic_cmd
12270 # Flag that allows shared libraries with undefined symbols to be built.
12271 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12273 # Flag that forces no undefined symbols.
12274 no_undefined_flag=$lt_no_undefined_flag_CXX
12276 # Commands used to finish a libtool library installation in a directory.
12277 finish_cmds=$lt_finish_cmds
12279 # Same as above, but a single script fragment to be evaled but not shown.
12280 finish_eval=$lt_finish_eval
12282 # Take the output of nm and produce a listing of raw symbols and C names.
12283 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12285 # Transform the output of nm in a proper C declaration
12286 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12288 # Transform the output of nm in a C name address pair
12289 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12291 # This is the shared library runtime path variable.
12292 runpath_var=$runpath_var
12294 # This is the shared library path variable.
12295 shlibpath_var=$shlibpath_var
12297 # Is shlibpath searched before the hard-coded library search path?
12298 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12300 # How to hardcode a shared library path into an executable.
12301 hardcode_action=$hardcode_action_CXX
12303 # Whether we should hardcode library paths into libraries.
12304 hardcode_into_libs=$hardcode_into_libs
12306 # Flag to hardcode \$libdir into a binary during linking.
12307 # This must work even if \$libdir does not exist.
12308 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12310 # If ld is used when linking, flag to hardcode \$libdir into
12311 # a binary during linking. This must work even if \$libdir does
12313 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12315 # Whether we need a single -rpath flag with a separated argument.
12316 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12318 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12319 # resulting binary.
12320 hardcode_direct=$hardcode_direct_CXX
12322 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12323 # resulting binary.
12324 hardcode_minus_L=$hardcode_minus_L_CXX
12326 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12327 # the resulting binary.
12328 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12330 # Set to yes if building a shared library automatically hardcodes DIR into the library
12331 # and all subsequent libraries and executables linked against it.
12332 hardcode_automatic=$hardcode_automatic_CXX
12334 # Variables whose values should be saved in libtool wrapper scripts and
12335 # restored at relink time.
12336 variables_saved_for_relink="$variables_saved_for_relink"
12338 # Whether libtool must link a program against all its dependency libraries.
12339 link_all_deplibs=$link_all_deplibs_CXX
12341 # Compile-time system search path for libraries
12342 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12344 # Run-time system search path for libraries
12345 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12347 # Fix the shell variable \$srcfile for the compiler.
12348 fix_srcfile_path="$fix_srcfile_path_CXX"
12350 # Set to yes if exported symbols are required.
12351 always_export_symbols=$always_export_symbols_CXX
12353 # The commands to list exported symbols.
12354 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12356 # The commands to extract the exported symbol list from a shared archive.
12357 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12359 # Symbols that should not be listed in the preloaded symbols.
12360 exclude_expsyms=$lt_exclude_expsyms_CXX
12362 # Symbols that must always be exported.
12363 include_expsyms=$lt_include_expsyms_CXX
12365 # ### END LIBTOOL TAG CONFIG: $tagname
12371 # If there is no Makefile yet, we rely on a make rule to execute
12372 # `config.status --recheck' to rerun these tests and create the
12373 # libtool script then.
12374 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12375 if test -f "$ltmain_in"; then
12376 test -f Makefile && make "$ltmain"
12382 ac_cpp='$CPP $CPPFLAGS'
12383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12391 with_gnu_ldcxx=$with_gnu_ld
12392 with_gnu_ld=$lt_save_with_gnu_ld
12393 lt_cv_path_LDCXX=$lt_cv_path_LD
12394 lt_cv_path_LD=$lt_save_path_LD
12395 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12396 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12404 if test -n "$F77" && test "X$F77" != "Xno"; then
12407 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12408 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12409 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12412 archive_cmds_need_lc_F77=no
12413 allow_undefined_flag_F77=
12414 always_export_symbols_F77=no
12415 archive_expsym_cmds_F77=
12416 export_dynamic_flag_spec_F77=
12417 hardcode_direct_F77=no
12418 hardcode_libdir_flag_spec_F77=
12419 hardcode_libdir_flag_spec_ld_F77=
12420 hardcode_libdir_separator_F77=
12421 hardcode_minus_L_F77=no
12422 hardcode_automatic_F77=no
12424 module_expsym_cmds_F77=
12425 link_all_deplibs_F77=unknown
12426 old_archive_cmds_F77=$old_archive_cmds
12427 no_undefined_flag_F77=
12428 whole_archive_flag_spec_F77=
12429 enable_shared_with_static_runtimes_F77=no
12431 # Source file extension for f77 test sources.
12434 # Object file extension for compiled f77 test sources.
12438 # Code to be used in simple compile tests
12439 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12441 # Code to be used in simple link tests
12442 lt_simple_link_test_code=" program t\n end\n"
12444 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12446 # If no C compiler was specified, use CC.
12449 # Allow CC to be a program name with arguments.
12453 # Allow CC to be a program name with arguments.
12458 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12460 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12461 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12462 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12463 echo "${ECHO_T}$can_build_shared" >&6
12465 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12466 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12467 test "$can_build_shared" = "no" && enable_shared=no
12469 # On AIX, shared libraries and static libraries use the same namespace, and
12470 # are all built from PIC.
12473 test "$enable_shared" = yes && enable_static=no
12474 if test -n "$RANLIB"; then
12475 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12476 postinstall_cmds='$RANLIB $lib'
12480 test "$enable_shared" = yes && enable_static=no
12483 echo "$as_me:$LINENO: result: $enable_shared" >&5
12484 echo "${ECHO_T}$enable_shared" >&6
12486 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12487 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12488 # Make sure either enable_shared or enable_static is yes.
12489 test "$enable_shared" = yes || enable_static=yes
12490 echo "$as_me:$LINENO: result: $enable_static" >&5
12491 echo "${ECHO_T}$enable_static" >&6
12493 test "$ld_shlibs_F77" = no && can_build_shared=no
12498 lt_prog_compiler_wl_F77=
12499 lt_prog_compiler_pic_F77=
12500 lt_prog_compiler_static_F77=
12502 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12503 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12505 if test "$GCC" = yes; then
12506 lt_prog_compiler_wl_F77='-Wl,'
12507 lt_prog_compiler_static_F77='-static'
12511 # All AIX code is PIC.
12512 if test "$host_cpu" = ia64; then
12513 # AIX 5 now supports IA64 processor
12514 lt_prog_compiler_static_F77='-Bstatic'
12519 # FIXME: we need at least 68020 code to build shared libraries, but
12520 # adding the `-m68020' flag to GCC prevents building anything better,
12522 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12525 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12526 # PIC is the default for these OSes.
12529 mingw* | pw32* | os2*)
12530 # This hack is so that the source file can tell whether it is being
12531 # built for inclusion in a dll (and should export symbols for example).
12532 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12535 darwin* | rhapsody*)
12536 # PIC is the default on this platform
12537 # Common symbols not allowed in MH_DYLIB files
12538 lt_prog_compiler_pic_F77='-fno-common'
12542 # Just because we use GCC doesn't mean we suddenly get shared libraries
12543 # on systems that don't support them.
12544 lt_prog_compiler_can_build_shared_F77=no
12549 if test -d /usr/nec; then
12550 lt_prog_compiler_pic_F77=-Kconform_pic
12555 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12556 # not for PA HP-UX.
12557 case "$host_cpu" in
12562 lt_prog_compiler_pic_F77='-fPIC'
12568 lt_prog_compiler_pic_F77='-fPIC'
12572 # PORTME Check for flag to pass linker flags through the system compiler.
12575 lt_prog_compiler_wl_F77='-Wl,'
12576 if test "$host_cpu" = ia64; then
12577 # AIX 5 now supports IA64 processor
12578 lt_prog_compiler_static_F77='-Bstatic'
12580 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12584 mingw* | pw32* | os2*)
12585 # This hack is so that the source file can tell whether it is being
12586 # built for inclusion in a dll (and should export symbols for example).
12587 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12590 hpux9* | hpux10* | hpux11*)
12591 lt_prog_compiler_wl_F77='-Wl,'
12592 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12593 # not for PA HP-UX.
12594 case "$host_cpu" in
12599 lt_prog_compiler_pic_F77='+Z'
12602 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12603 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12606 irix5* | irix6* | nonstopux*)
12607 lt_prog_compiler_wl_F77='-Wl,'
12608 # PIC (with -KPIC) is the default.
12609 lt_prog_compiler_static_F77='-non_shared'
12613 lt_prog_compiler_pic_F77='-KPIC'
12614 lt_prog_compiler_static_F77='-Bstatic'
12620 lt_prog_compiler_wl_F77='-Wl,'
12621 lt_prog_compiler_pic_F77='-KPIC'
12622 lt_prog_compiler_static_F77='-static'
12625 lt_prog_compiler_wl_F77='-Wl,'
12626 # All Alpha code is PIC.
12627 lt_prog_compiler_static_F77='-non_shared'
12632 osf3* | osf4* | osf5*)
12633 lt_prog_compiler_wl_F77='-Wl,'
12634 # All OSF/1 code is PIC.
12635 lt_prog_compiler_static_F77='-non_shared'
12639 lt_prog_compiler_pic_F77='-Kpic'
12640 lt_prog_compiler_static_F77='-dn'
12644 lt_prog_compiler_wl_F77='-Wl,'
12645 lt_prog_compiler_pic_F77='-KPIC'
12646 lt_prog_compiler_static_F77='-Bstatic'
12650 lt_prog_compiler_wl_F77='-Qoption ld '
12651 lt_prog_compiler_pic_F77='-PIC'
12652 lt_prog_compiler_static_F77='-Bstatic'
12655 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12656 lt_prog_compiler_wl_F77='-Wl,'
12657 lt_prog_compiler_pic_F77='-KPIC'
12658 lt_prog_compiler_static_F77='-Bstatic'
12662 if test -d /usr/nec ;then
12663 lt_prog_compiler_pic_F77='-Kconform_pic'
12664 lt_prog_compiler_static_F77='-Bstatic'
12669 lt_prog_compiler_pic_F77='-pic'
12670 lt_prog_compiler_static_F77='-Bstatic'
12674 lt_prog_compiler_can_build_shared_F77=no
12679 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12680 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12683 # Check to make sure the PIC flag actually works.
12685 if test -n "$lt_prog_compiler_pic_F77"; then
12687 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12688 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12689 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12692 lt_prog_compiler_pic_works_F77=no
12693 ac_outfile=conftest.$ac_objext
12694 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12695 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12696 # Insert the option either (1) after the last *FLAGS variable, or
12697 # (2) before a word containing "conftest.", or (3) at the end.
12698 # Note that $ac_compile itself does not contain backslashes and begins
12699 # with a dollar sign (not a hyphen), so the echo should work correctly.
12700 # The option is referenced via a variable to avoid confusing sed.
12701 lt_compile=`echo "$ac_compile" | $SED \
12702 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12704 -e 's:$: $lt_compiler_flag:'`
12705 (eval echo "\"\$as_me:12705: $lt_compile\"" >&5)
12706 (eval "$lt_compile" 2>conftest.err)
12708 cat conftest.err >&5
12709 echo "$as_me:12709: \$? = $ac_status" >&5
12710 if (exit $ac_status) && test -s "$ac_outfile"; then
12711 # The compiler can only warn and ignore the option if not recognized
12712 # So say no if there are warnings
12713 if test ! -s conftest.err; then
12714 lt_prog_compiler_pic_works_F77=yes
12720 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12721 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12723 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12724 case $lt_prog_compiler_pic_F77 in
12726 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12729 lt_prog_compiler_pic_F77=
12730 lt_prog_compiler_can_build_shared_F77=no
12735 # For platforms which do not support PIC, -DPIC is meaningless:
12737 lt_prog_compiler_pic_F77=
12740 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12744 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12745 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12746 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12749 lt_cv_prog_compiler_c_o_F77=no
12750 $rm -r conftest 2>/dev/null
12754 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12756 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12757 # that will create temporary files in the current directory regardless of
12758 # the output directory. Thus, making CWD read-only will cause this test
12759 # to fail, enabling locking or at least warning the user not to do parallel
12763 lt_compiler_flag="-o out/conftest2.$ac_objext"
12764 # Insert the option either (1) after the last *FLAGS variable, or
12765 # (2) before a word containing "conftest.", or (3) at the end.
12766 # Note that $ac_compile itself does not contain backslashes and begins
12767 # with a dollar sign (not a hyphen), so the echo should work correctly.
12768 lt_compile=`echo "$ac_compile" | $SED \
12769 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12771 -e 's:$: $lt_compiler_flag:'`
12772 (eval echo "\"\$as_me:12772: $lt_compile\"" >&5)
12773 (eval "$lt_compile" 2>out/conftest.err)
12775 cat out/conftest.err >&5
12776 echo "$as_me:12776: \$? = $ac_status" >&5
12777 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12779 # The compiler can only warn and ignore the option if not recognized
12780 # So say no if there are warnings
12781 if test ! -s out/conftest.err; then
12782 lt_cv_prog_compiler_c_o_F77=yes
12787 # SGI C++ compiler will create directory out/ii_files/ for
12788 # template instantiation
12789 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12790 $rm out/* && rmdir out
12796 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12797 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12800 hard_links="nottested"
12801 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12802 # do not overwrite the value of need_locks provided by the user
12803 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12804 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12807 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12809 ln conftest.a conftest.b 2>&5 || hard_links=no
12810 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12811 echo "$as_me:$LINENO: result: $hard_links" >&5
12812 echo "${ECHO_T}$hard_links" >&6
12813 if test "$hard_links" = no; then
12814 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12815 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12822 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12823 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12826 allow_undefined_flag_F77=
12827 enable_shared_with_static_runtimes_F77=no
12829 archive_expsym_cmds_F77=
12830 old_archive_From_new_cmds_F77=
12831 old_archive_from_expsyms_cmds_F77=
12832 export_dynamic_flag_spec_F77=
12833 whole_archive_flag_spec_F77=
12834 thread_safe_flag_spec_F77=
12835 hardcode_libdir_flag_spec_F77=
12836 hardcode_libdir_flag_spec_ld_F77=
12837 hardcode_libdir_separator_F77=
12838 hardcode_direct_F77=no
12839 hardcode_minus_L_F77=no
12840 hardcode_shlibpath_var_F77=unsupported
12841 link_all_deplibs_F77=unknown
12842 hardcode_automatic_F77=no
12844 module_expsym_cmds_F77=
12845 always_export_symbols_F77=no
12846 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12847 # include_expsyms should be a list of space-separated symbols to be *always*
12848 # included in the symbol list
12849 include_expsyms_F77=
12850 # exclude_expsyms can be an extended regexp of symbols to exclude
12851 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12852 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12853 # as well as any symbol that contains `d'.
12854 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12855 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12856 # platforms (ab)use it in PIC code, but their linkers get confused if
12857 # the symbol is explicitly referenced. Since portable code cannot
12858 # rely on this symbol name, it's probably fine to never include it in
12859 # preloaded symbol tables.
12860 extract_expsyms_cmds=
12863 cygwin* | mingw* | pw32*)
12864 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12865 # When not using gcc, we currently assume that we are using
12866 # Microsoft Visual C++.
12867 if test "$GCC" != yes; then
12877 if test "$with_gnu_ld" = yes; then
12878 # If archive_cmds runs LD, not CC, wlarc should be empty
12881 # See if GNU ld supports shared libraries.
12883 aix3* | aix4* | aix5*)
12884 # On AIX/PPC, the GNU linker is very broken
12885 if test "$host_cpu" != ia64; then
12889 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12890 *** to be unable to reliably create shared libraries on AIX.
12891 *** Therefore, libtool is disabling shared libraries support. If you
12892 *** really care for shared libraries, you may want to modify your PATH
12893 *** so that a non-GNU linker is found, and then restart.
12900 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)'
12901 hardcode_libdir_flag_spec_F77='-L$libdir'
12902 hardcode_minus_L_F77=yes
12904 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12905 # that the semantics of dynamic libraries on AmigaOS, at least up
12906 # to version 4, is to share data among multiple programs linked
12907 # with the same dynamic library. Since this doesn't match the
12908 # behavior of shared libraries on other platforms, we can't use
12914 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12915 allow_undefined_flag_F77=unsupported
12916 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12917 # support --undefined. This deserves some investigation. FIXME
12918 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12924 cygwin* | mingw* | pw32*)
12925 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12926 # as there is no search path for DLLs.
12927 hardcode_libdir_flag_spec_F77='-L$libdir'
12928 allow_undefined_flag_F77=unsupported
12929 always_export_symbols_F77=no
12930 enable_shared_with_static_runtimes_F77=yes
12931 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12933 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12934 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12935 # If the export-symbols file already is a .def file (1st line
12936 # is EXPORTS), use it as is; otherwise, prepend...
12937 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12938 cp $export_symbols $output_objdir/$soname.def;
12940 echo EXPORTS > $output_objdir/$soname.def;
12941 cat $export_symbols >> $output_objdir/$soname.def;
12943 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12950 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12951 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12954 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12955 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12960 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12964 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12965 *** create shared libraries on Solaris systems. Therefore, libtool
12966 *** is disabling shared libraries support. We urge you to upgrade GNU
12967 *** binutils to release 2.9.1 or newer. Another option is to modify
12968 *** your PATH or compiler configuration so that the native linker is
12969 *** used, and then restart.
12972 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12973 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12974 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12981 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12983 hardcode_direct_F77=yes
12984 hardcode_shlibpath_var_F77=no
12988 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12989 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12990 archive_cmds_F77="$tmp_archive_cmds"
12991 supports_anon_versioning=no
12992 case `$LD -v 2>/dev/null` in
12993 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12994 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12995 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12996 *\ 2.11.*) ;; # other 2.11 versions
12997 *) supports_anon_versioning=yes ;;
12999 if test $supports_anon_versioning = yes; then
13000 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13001 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13002 $echo "local: *; };" >> $output_objdir/$libname.ver~
13003 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13005 archive_expsym_cmds_F77="$tmp_archive_cmds"
13013 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13014 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13015 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13022 if test "$ld_shlibs_F77" = yes; then
13023 runpath_var=LD_RUN_PATH
13024 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13025 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13026 # ancient GNU ld didn't support --whole-archive et. al.
13027 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13028 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13030 whole_archive_flag_spec_F77=
13034 # PORTME fill in a description of your system's linker (not GNU ld)
13037 allow_undefined_flag_F77=unsupported
13038 always_export_symbols_F77=yes
13039 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'
13040 # Note: this linker hardcodes the directories in LIBPATH if there
13041 # are no directories specified by -L.
13042 hardcode_minus_L_F77=yes
13043 if test "$GCC" = yes && test -z "$link_static_flag"; then
13044 # Neither direct hardcoding nor static linking is supported with a
13046 hardcode_direct_F77=unsupported
13051 if test "$host_cpu" = ia64; then
13052 # On IA64, the linker does run time linking by default, so we don't
13053 # have to do anything special.
13054 aix_use_runtimelinking=no
13055 exp_sym_flag='-Bexport'
13058 # If we're using GNU nm, then we don't want the "-C" option.
13059 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13060 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13061 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'
13063 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'
13065 aix_use_runtimelinking=no
13067 # Test if we are trying to use run time linking or normal
13068 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13069 # need to do runtime linking.
13070 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13071 for ld_flag in $LDFLAGS; do
13072 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13073 aix_use_runtimelinking=yes
13079 exp_sym_flag='-bexport'
13080 no_entry_flag='-bnoentry'
13083 # When large executables or shared objects are built, AIX ld can
13084 # have problems creating the table of contents. If linking a library
13085 # or program results in "error TOC overflow" add -mminimal-toc to
13086 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13087 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13089 archive_cmds_F77=''
13090 hardcode_direct_F77=yes
13091 hardcode_libdir_separator_F77=':'
13092 link_all_deplibs_F77=yes
13094 if test "$GCC" = yes; then
13095 case $host_os in aix4.012|aix4.012.*)
13096 # We only want to do this on AIX 4.2 and lower, the check
13097 # below for broken collect2 doesn't work under 4.3+
13098 collect2name=`${CC} -print-prog-name=collect2`
13099 if test -f "$collect2name" && \
13100 strings "$collect2name" | grep resolve_lib_name >/dev/null
13102 # We have reworked collect2
13103 hardcode_direct_F77=yes
13105 # We have old collect2
13106 hardcode_direct_F77=unsupported
13107 # It fails to find uninstalled libraries when the uninstalled
13108 # path is not listed in the libpath. Setting hardcode_minus_L
13109 # to unsupported forces relinking
13110 hardcode_minus_L_F77=yes
13111 hardcode_libdir_flag_spec_F77='-L$libdir'
13112 hardcode_libdir_separator_F77=
13115 shared_flag='-shared'
13118 if test "$host_cpu" = ia64; then
13119 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13120 # chokes on -Wl,-G. The following line is correct:
13123 if test "$aix_use_runtimelinking" = yes; then
13124 shared_flag='${wl}-G'
13126 shared_flag='${wl}-bM:SRE'
13131 # It seems that -bexpall does not export symbols beginning with
13132 # underscore (_), so it is better to generate a list of symbols to export.
13133 always_export_symbols_F77=yes
13134 if test "$aix_use_runtimelinking" = yes; then
13135 # Warning - without using the other runtime loading flags (-brtl),
13136 # -berok will link without error, but may produce a broken library.
13137 allow_undefined_flag_F77='-berok'
13138 # Determine the default libpath from the value encoded in an empty executable.
13139 cat >conftest.$ac_ext <<_ACEOF
13144 rm -f conftest.$ac_objext conftest$ac_exeext
13145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13146 (eval $ac_link) 2>conftest.er1
13148 grep -v '^ *+' conftest.er1 >conftest.err
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } &&
13153 { ac_try='test -z "$ac_f77_werror_flag"
13154 || test ! -s conftest.err'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; } &&
13160 { ac_try='test -s conftest$ac_exeext'
13161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13162 (eval $ac_try) 2>&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; }; then
13167 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13169 # Check for a 64-bit object if we didn't find anything.
13170 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; }
13173 echo "$as_me: failed program was:" >&5
13174 sed 's/^/| /' conftest.$ac_ext >&5
13177 rm -f conftest.err conftest.$ac_objext \
13178 conftest$ac_exeext conftest.$ac_ext
13179 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13181 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13182 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13184 if test "$host_cpu" = ia64; then
13185 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13186 allow_undefined_flag_F77="-z nodefs"
13187 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13189 # Determine the default libpath from the value encoded in an empty executable.
13190 cat >conftest.$ac_ext <<_ACEOF
13195 rm -f conftest.$ac_objext conftest$ac_exeext
13196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13197 (eval $ac_link) 2>conftest.er1
13199 grep -v '^ *+' conftest.er1 >conftest.err
13201 cat conftest.err >&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
13204 { ac_try='test -z "$ac_f77_werror_flag"
13205 || test ! -s conftest.err'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; } &&
13211 { ac_try='test -s conftest$ac_exeext'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13218 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13220 # Check for a 64-bit object if we didn't find anything.
13221 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; }
13224 echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13228 rm -f conftest.err conftest.$ac_objext \
13229 conftest$ac_exeext conftest.$ac_ext
13230 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13232 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13233 # Warning - without using the other run time loading flags,
13234 # -berok will link without error, but may produce a broken library.
13235 no_undefined_flag_F77=' ${wl}-bernotok'
13236 allow_undefined_flag_F77=' ${wl}-berok'
13237 # -bexpall does not export symbols beginning with underscore (_)
13238 always_export_symbols_F77=yes
13239 # Exported symbols can be pulled into shared objects from archives
13240 whole_archive_flag_spec_F77=' '
13241 archive_cmds_need_lc_F77=yes
13242 # This is similar to how AIX traditionally builds it's shared libraries.
13243 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13249 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)'
13250 hardcode_libdir_flag_spec_F77='-L$libdir'
13251 hardcode_minus_L_F77=yes
13252 # see comment about different semantics on the GNU ld section
13257 export_dynamic_flag_spec_F77=-rdynamic
13260 cygwin* | mingw* | pw32*)
13261 # When not using gcc, we currently assume that we are using
13262 # Microsoft Visual C++.
13263 # hardcode_libdir_flag_spec is actually meaningless, as there is
13264 # no search path for DLLs.
13265 hardcode_libdir_flag_spec_F77=' '
13266 allow_undefined_flag_F77=unsupported
13267 # Tell ltmain to make .lib files, not .a files.
13269 # Tell ltmain to make .dll files, not .so files.
13271 # FIXME: Setting linknames here is a bad hack.
13272 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13273 # The linker will automatically build a .lib file if we build a DLL.
13274 old_archive_From_new_cmds_F77='true'
13275 # FIXME: Should let the user specify the lib program.
13276 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13277 fix_srcfile_path='`cygpath -w "$srcfile"`'
13278 enable_shared_with_static_runtimes_F77=yes
13281 darwin* | rhapsody*)
13282 if test "$GXX" = yes ; then
13283 archive_cmds_need_lc_F77=no
13285 rhapsody* | darwin1.[012])
13286 allow_undefined_flag_F77='-undefined suppress'
13289 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13290 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13292 case ${MACOSX_DEPLOYMENT_TARGET} in
13294 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13297 allow_undefined_flag_F77='-undefined dynamic_lookup'
13303 lt_int_apple_cc_single_mod=no
13304 output_verbose_link_cmd='echo'
13305 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13306 lt_int_apple_cc_single_mod=yes
13308 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13309 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13311 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13313 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13314 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13315 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13316 archive_expsym_cmds_F77='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}'
13318 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13320 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}'
13321 hardcode_direct_F77=no
13322 hardcode_automatic_F77=yes
13323 hardcode_shlibpath_var_F77=unsupported
13324 whole_archive_flag_spec_F77='-all_load $convenience'
13325 link_all_deplibs_F77=yes
13332 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13333 hardcode_libdir_flag_spec_F77='-L$libdir'
13334 hardcode_shlibpath_var_F77=no
13341 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13342 # support. Future versions do this automatically, but an explicit c++rt0.o
13343 # does not break anything, and helps significantly (at the cost of a little
13346 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13347 hardcode_libdir_flag_spec_F77='-R$libdir'
13348 hardcode_direct_F77=yes
13349 hardcode_shlibpath_var_F77=no
13352 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13354 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13355 hardcode_direct_F77=yes
13356 hardcode_minus_L_F77=yes
13357 hardcode_shlibpath_var_F77=no
13360 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13361 freebsd* | kfreebsd*-gnu)
13362 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13363 hardcode_libdir_flag_spec_F77='-R$libdir'
13364 hardcode_direct_F77=yes
13365 hardcode_shlibpath_var_F77=no
13369 if test "$GCC" = yes; then
13370 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'
13372 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'
13374 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13375 hardcode_libdir_separator_F77=:
13376 hardcode_direct_F77=yes
13378 # hardcode_minus_L: Not really in the search PATH,
13379 # but as the default location of the library.
13380 hardcode_minus_L_F77=yes
13381 export_dynamic_flag_spec_F77='${wl}-E'
13385 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13386 case "$host_cpu" in
13388 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13391 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13395 case "$host_cpu" in
13397 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13400 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13404 if test "$with_gnu_ld" = no; then
13405 case "$host_cpu" in
13407 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13408 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13409 hardcode_libdir_separator_F77=:
13410 hardcode_direct_F77=no
13411 hardcode_shlibpath_var_F77=no
13414 hardcode_libdir_flag_spec_F77='-L$libdir'
13415 hardcode_direct_F77=no
13416 hardcode_shlibpath_var_F77=no
13418 # hardcode_minus_L: Not really in the search PATH,
13419 # but as the default location of the library.
13420 hardcode_minus_L_F77=yes
13423 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13424 hardcode_libdir_separator_F77=:
13425 hardcode_direct_F77=yes
13426 export_dynamic_flag_spec_F77='${wl}-E'
13428 # hardcode_minus_L: Not really in the search PATH,
13429 # but as the default location of the library.
13430 hardcode_minus_L_F77=yes
13436 irix5* | irix6* | nonstopux*)
13437 if test "$GCC" = yes; then
13438 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'
13440 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'
13441 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13443 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13444 hardcode_libdir_separator_F77=:
13445 link_all_deplibs_F77=yes
13449 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13450 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13452 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13454 hardcode_libdir_flag_spec_F77='-R$libdir'
13455 hardcode_direct_F77=yes
13456 hardcode_shlibpath_var_F77=no
13460 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13461 hardcode_direct_F77=yes
13462 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13463 hardcode_libdir_separator_F77=:
13464 hardcode_shlibpath_var_F77=no
13468 hardcode_direct_F77=yes
13469 hardcode_shlibpath_var_F77=no
13470 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13471 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13472 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13473 export_dynamic_flag_spec_F77='${wl}-E'
13476 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13477 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13478 hardcode_libdir_flag_spec_F77='-R$libdir'
13481 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13482 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13489 hardcode_libdir_flag_spec_F77='-L$libdir'
13490 hardcode_minus_L_F77=yes
13491 allow_undefined_flag_F77=unsupported
13492 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'
13493 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13497 if test "$GCC" = yes; then
13498 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13499 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'
13501 allow_undefined_flag_F77=' -expect_unresolved \*'
13502 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'
13504 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13505 hardcode_libdir_separator_F77=:
13508 osf4* | osf5*) # as osf3* with the addition of -msym flag
13509 if test "$GCC" = yes; then
13510 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13511 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'
13512 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13514 allow_undefined_flag_F77=' -expect_unresolved \*'
13515 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'
13516 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~
13517 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13519 # Both c and cxx compiler support -rpath directly
13520 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13522 hardcode_libdir_separator_F77=:
13526 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13527 hardcode_shlibpath_var_F77=no
13528 export_dynamic_flag_spec_F77='${wl}-Bexport'
13529 runpath_var=LD_RUN_PATH
13530 hardcode_runpath_var=yes
13534 no_undefined_flag_F77=' -z text'
13535 if test "$GCC" = yes; then
13536 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13537 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13538 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13540 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13541 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13542 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13544 hardcode_libdir_flag_spec_F77='-R$libdir'
13545 hardcode_shlibpath_var_F77=no
13547 solaris2.[0-5] | solaris2.[0-5].*) ;;
13548 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13549 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13551 link_all_deplibs_F77=yes
13555 if test "x$host_vendor" = xsequent; then
13556 # Use $CC to link under sequent, because it throws in some extra .o
13557 # files that make .init and .fini sections work.
13558 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13560 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13562 hardcode_libdir_flag_spec_F77='-L$libdir'
13563 hardcode_direct_F77=yes
13564 hardcode_minus_L_F77=yes
13565 hardcode_shlibpath_var_F77=no
13569 case $host_vendor in
13571 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13572 hardcode_direct_F77=yes # is this really true???
13575 ## LD is ld it makes a PLAMLIB
13576 ## CC just makes a GrossModule.
13577 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13578 reload_cmds_F77='$CC -r -o $output$reload_objs'
13579 hardcode_direct_F77=no
13582 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13583 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13586 runpath_var='LD_RUN_PATH'
13587 hardcode_shlibpath_var_F77=no
13591 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13592 hardcode_shlibpath_var_F77=no
13593 export_dynamic_flag_spec_F77='-Bexport'
13597 if test -d /usr/nec; then
13598 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13599 hardcode_shlibpath_var_F77=no
13600 runpath_var=LD_RUN_PATH
13601 hardcode_runpath_var=yes
13607 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13608 hardcode_direct_F77=yes
13609 hardcode_minus_L_F77=no
13610 hardcode_shlibpath_var_F77=no
13611 hardcode_runpath_var=yes
13612 runpath_var=LD_RUN_PATH
13615 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13616 no_undefined_flag_F77='${wl}-z ${wl}text'
13617 if test "$GCC" = yes; then
13618 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13620 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13622 runpath_var='LD_RUN_PATH'
13623 hardcode_shlibpath_var_F77=no
13627 no_undefined_flag_F77=' -z text'
13628 # $CC -shared without GNU ld will not create a library from C++
13629 # object files and a static libstdc++, better avoid it by now
13630 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13631 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13632 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13633 hardcode_libdir_flag_spec_F77=
13634 hardcode_shlibpath_var_F77=no
13635 runpath_var='LD_RUN_PATH'
13639 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13640 hardcode_libdir_flag_spec_F77='-L$libdir'
13641 hardcode_shlibpath_var_F77=no
13650 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13651 echo "${ECHO_T}$ld_shlibs_F77" >&6
13652 test "$ld_shlibs_F77" = no && can_build_shared=no
13654 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13655 if test "$GCC" = yes; then
13656 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13660 # Do we need to explicitly link libc?
13662 case "x$archive_cmds_need_lc_F77" in
13664 # Assume -lc should be added
13665 archive_cmds_need_lc_F77=yes
13667 if test "$enable_shared" = yes && test "$GCC" = yes; then
13668 case $archive_cmds_F77 in
13670 # FIXME: we may have to deal with multi-command sequences.
13673 # Test whether the compiler implicitly links with -lc since on some
13674 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13675 # to ld, don't add -lc before -lgcc.
13676 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13677 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13679 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13682 (eval $ac_compile) 2>&5
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); } 2>conftest.err; then
13688 libobjs=conftest.$ac_objext
13690 wl=$lt_prog_compiler_wl_F77
13696 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13697 allow_undefined_flag_F77=
13698 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13699 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }
13704 archive_cmds_need_lc_F77=no
13706 archive_cmds_need_lc_F77=yes
13708 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13710 cat conftest.err 1>&5
13713 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13714 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13721 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13722 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13723 library_names_spec=
13724 libname_spec='lib$name'
13728 postuninstall_cmds=
13732 shlibpath_overrides_runpath=unknown
13734 dynamic_linker="$host_os ld.so"
13735 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13736 if test "$GCC" = yes; then
13737 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13738 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13739 # if the path contains ";" then we assume it to be the separator
13740 # otherwise default to the standard path separator (i.e. ":") - it is
13741 # assumed that no part of a normal pathname contains ";" but that should
13742 # okay in the real world where ";" in dirpaths is itself problematic.
13743 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13745 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13748 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13750 need_lib_prefix=unknown
13751 hardcode_into_libs=no
13753 # when you set need_version to no, make sure it does not cause -set_version
13754 # flags to be left without arguments
13755 need_version=unknown
13760 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13761 shlibpath_var=LIBPATH
13763 # AIX 3 has no versioning support, so we append a major version to the name.
13764 soname_spec='${libname}${release}${shared_ext}$major'
13771 hardcode_into_libs=yes
13772 if test "$host_cpu" = ia64; then
13773 # AIX 5 supports IA64
13774 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13775 shlibpath_var=LD_LIBRARY_PATH
13777 # With GCC up to 2.95.x, collect2 would create an import file
13778 # for dependence libraries. The import file would start with
13779 # the line `#! .'. This would cause the generated library to
13780 # depend on `.', always an invalid library. This was fixed in
13781 # development snapshots of GCC prior to 3.0.
13783 aix4 | aix4.[01] | aix4.[01].*)
13784 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13786 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13789 can_build_shared=no
13793 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13794 # soname into executable. Probably we can add versioning support to
13795 # collect2, so additional links can be useful in future.
13796 if test "$aix_use_runtimelinking" = yes; then
13797 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13798 # instead of lib<name>.a to let people know that these are not
13799 # typical AIX shared libraries.
13800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13802 # We preserve .a as extension for shared libraries through AIX4.2
13803 # and later when we are not doing run time linking.
13804 library_names_spec='${libname}${release}.a $libname.a'
13805 soname_spec='${libname}${release}${shared_ext}$major'
13807 shlibpath_var=LIBPATH
13812 library_names_spec='$libname.ixlibrary $libname.a'
13813 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13814 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'
13818 library_names_spec='${libname}${shared_ext}'
13819 dynamic_linker="$host_os ld.so"
13820 shlibpath_var=LIBRARY_PATH
13826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13827 soname_spec='${libname}${release}${shared_ext}$major'
13828 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13829 shlibpath_var=LD_LIBRARY_PATH
13830 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13831 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13832 # the default ld.so.conf also contains /usr/contrib/lib and
13833 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13834 # libtool to hard-code these into programs
13837 cygwin* | mingw* | pw32*)
13838 version_type=windows
13843 case $GCC,$host_os in
13844 yes,cygwin* | yes,mingw* | yes,pw32*)
13845 library_names_spec='$libname.dll.a'
13846 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13847 postinstall_cmds='base_file=`basename \${file}`~
13848 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13849 dldir=$destdir/`dirname \$dlpath`~
13850 test -d \$dldir || mkdir -p \$dldir~
13851 $install_prog $dir/$dlname \$dldir/$dlname'
13852 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13853 dlpath=$dir/\$dldll~
13855 shlibpath_overrides_runpath=yes
13859 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13860 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13861 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13864 # MinGW DLLs use traditional 'lib' prefix
13865 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13866 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13867 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13868 # It is most probably a Windows format PATH printed by
13869 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13870 # path with ; separators, and with drive letters. We can handle the
13871 # drive letters (cygwin fileutils understands them), so leave them,
13872 # especially as we might pass files found there to a mingw objdump,
13873 # which wouldn't understand a cygwinified path. Ahh.
13874 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13876 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13880 # pw32 DLLs use 'pw' prefix rather than 'lib'
13881 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13887 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13890 dynamic_linker='Win32 ld.exe'
13891 # FIXME: first we should search . and the directory the executable is in
13895 darwin* | rhapsody*)
13896 dynamic_linker="$host_os dyld"
13897 version_type=darwin
13900 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13901 soname_spec='${libname}${release}${major}$shared_ext'
13902 shlibpath_overrides_runpath=yes
13903 shlibpath_var=DYLD_LIBRARY_PATH
13904 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13905 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13906 if test "$GCC" = yes; then
13907 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"`
13909 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13911 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13919 soname_spec='${libname}${release}${shared_ext}$major'
13920 shlibpath_var=LD_LIBRARY_PATH
13931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13932 soname_spec='${libname}${release}${shared_ext}$major'
13933 shlibpath_var=LD_LIBRARY_PATH
13934 shlibpath_overrides_runpath=no
13935 hardcode_into_libs=yes
13936 dynamic_linker='GNU ld.so'
13940 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13941 version_type=freebsd-$objformat
13942 case $version_type in
13944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13953 shlibpath_var=LD_LIBRARY_PATH
13956 shlibpath_overrides_runpath=yes
13958 freebsd3.01* | freebsdelf3.01*)
13959 shlibpath_overrides_runpath=yes
13960 hardcode_into_libs=yes
13963 shlibpath_overrides_runpath=no
13964 hardcode_into_libs=yes
13973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13974 soname_spec='${libname}${release}${shared_ext}$major'
13975 shlibpath_var=LD_LIBRARY_PATH
13976 hardcode_into_libs=yes
13979 hpux9* | hpux10* | hpux11*)
13980 # Give a soname corresponding to the major version so that dld.sl refuses to
13981 # link against other versions.
13985 case "$host_cpu" in
13988 hardcode_into_libs=yes
13989 dynamic_linker="$host_os dld.so"
13990 shlibpath_var=LD_LIBRARY_PATH
13991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13993 soname_spec='${libname}${release}${shared_ext}$major'
13994 if test "X$HPUX_IA64_MODE" = X32; then
13995 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13997 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14003 hardcode_into_libs=yes
14004 dynamic_linker="$host_os dld.sl"
14005 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14008 soname_spec='${libname}${release}${shared_ext}$major'
14009 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14014 dynamic_linker="$host_os dld.sl"
14015 shlibpath_var=SHLIB_PATH
14016 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14018 soname_spec='${libname}${release}${shared_ext}$major'
14021 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14022 postinstall_cmds='chmod 555 $lib'
14025 irix5* | irix6* | nonstopux*)
14027 nonstopux*) version_type=nonstopux ;;
14029 if test "$lt_cv_prog_gnu_ld" = yes; then
14037 soname_spec='${libname}${release}${shared_ext}$major'
14038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14040 irix5* | nonstopux*)
14041 libsuff= shlibsuff=
14044 case $LD in # libtool.m4 will add one of these switches to LD
14045 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14046 libsuff= shlibsuff= libmagic=32-bit;;
14047 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14048 libsuff=32 shlibsuff=N32 libmagic=N32;;
14049 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14050 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14051 *) libsuff= shlibsuff= libmagic=never-match;;
14055 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14056 shlibpath_overrides_runpath=no
14057 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14058 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14059 hardcode_into_libs=yes
14062 # No shared lib support for Linux oldld, aout, or coff.
14063 linux*oldld* | linux*aout* | linux*coff*)
14067 # This must be Linux ELF.
14072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14073 soname_spec='${libname}${release}${shared_ext}$major'
14074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14075 shlibpath_var=LD_LIBRARY_PATH
14076 shlibpath_overrides_runpath=no
14077 # This implies no fast_install, which is unacceptable.
14078 # Some rework will be needed to allow for fast_install
14079 # before this can be enabled.
14080 hardcode_into_libs=yes
14082 # We used to test for /lib/ld.so.1 and disable shared libraries on
14083 # powerpc, because MkLinux only supported shared libraries with the
14084 # GNU dynamic linker. Since this was broken with cross compilers,
14085 # most powerpc-linux boxes support dynamic linking these days and
14086 # people can always --disable-shared, the test was removed, and we
14087 # assume the GNU/Linux dynamic linker is in use.
14088 dynamic_linker='GNU/Linux ld.so'
14095 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14098 dynamic_linker='NetBSD (a.out) ld.so'
14100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14101 soname_spec='${libname}${release}${shared_ext}$major'
14102 dynamic_linker='NetBSD ld.elf_so'
14104 shlibpath_var=LD_LIBRARY_PATH
14105 shlibpath_overrides_runpath=yes
14106 hardcode_into_libs=yes
14111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14112 shlibpath_var=LD_LIBRARY_PATH
14113 shlibpath_overrides_runpath=yes
14120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14121 soname_spec='${libname}${release}${shared_ext}$major'
14122 shlibpath_var=LD_LIBRARY_PATH
14123 shlibpath_overrides_runpath=yes
14130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14132 shlibpath_var=LD_LIBRARY_PATH
14133 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14135 openbsd2.[89] | openbsd2.[89].*)
14136 shlibpath_overrides_runpath=no
14139 shlibpath_overrides_runpath=yes
14143 shlibpath_overrides_runpath=yes
14148 libname_spec='$name'
14151 library_names_spec='$libname${shared_ext} $libname.a'
14152 dynamic_linker='OS/2 ld.exe'
14153 shlibpath_var=LIBPATH
14156 osf3* | osf4* | osf5*)
14160 soname_spec='${libname}${release}${shared_ext}$major'
14161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14162 shlibpath_var=LD_LIBRARY_PATH
14163 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14164 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14169 soname_spec='${libname}${release}${shared_ext}$major'
14170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14171 shlibpath_var=LD_LIBRARY_PATH
14178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14179 soname_spec='${libname}${release}${shared_ext}$major'
14180 shlibpath_var=LD_LIBRARY_PATH
14181 shlibpath_overrides_runpath=yes
14182 hardcode_into_libs=yes
14183 # ldd complains unless libraries are executable
14184 postinstall_cmds='chmod +x $lib'
14189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14190 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14191 shlibpath_var=LD_LIBRARY_PATH
14192 shlibpath_overrides_runpath=yes
14193 if test "$with_gnu_ld" = yes; then
14199 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14202 soname_spec='${libname}${release}${shared_ext}$major'
14203 shlibpath_var=LD_LIBRARY_PATH
14204 case $host_vendor in
14206 shlibpath_overrides_runpath=no
14208 export_dynamic_flag_spec='${wl}-Blargedynsym'
14209 runpath_var=LD_RUN_PATH
14217 shlibpath_overrides_runpath=no
14218 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14224 if test -d /usr/nec ;then
14226 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14227 soname_spec='$libname${shared_ext}.$major'
14228 shlibpath_var=LD_LIBRARY_PATH
14234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14235 soname_spec='${libname}${release}${shared_ext}$major'
14236 shlibpath_var=LD_LIBRARY_PATH
14243 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14244 echo "${ECHO_T}$dynamic_linker" >&6
14245 test "$dynamic_linker" = no && can_build_shared=no
14247 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14248 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14249 hardcode_action_F77=
14250 if test -n "$hardcode_libdir_flag_spec_F77" || \
14251 test -n "$runpath_var F77" || \
14252 test "X$hardcode_automatic_F77"="Xyes" ; then
14254 # We can hardcode non-existant directories.
14255 if test "$hardcode_direct_F77" != no &&
14256 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14257 # have to relink, otherwise we might link with an installed library
14258 # when we should be linking with a yet-to-be-installed one
14259 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14260 test "$hardcode_minus_L_F77" != no; then
14261 # Linking always hardcodes the temporary library directory.
14262 hardcode_action_F77=relink
14264 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14265 hardcode_action_F77=immediate
14268 # We cannot hardcode anything, or else we can only hardcode existing
14270 hardcode_action_F77=unsupported
14272 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14273 echo "${ECHO_T}$hardcode_action_F77" >&6
14275 if test "$hardcode_action_F77" = relink; then
14276 # Fast installation is not supported
14277 enable_fast_install=no
14278 elif test "$shlibpath_overrides_runpath" = yes ||
14279 test "$enable_shared" = no; then
14280 # Fast installation is not necessary
14281 enable_fast_install=needless
14286 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14287 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14288 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14289 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14290 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14291 echo "$as_me:$LINENO: result: yes" >&5
14292 echo "${ECHO_T}yes" >&6
14294 # FIXME - insert some real tests, host_os isn't really good enough
14297 if test -n "$STRIP" ; then
14298 striplib="$STRIP -x"
14299 echo "$as_me:$LINENO: result: yes" >&5
14300 echo "${ECHO_T}yes" >&6
14302 echo "$as_me:$LINENO: result: no" >&5
14303 echo "${ECHO_T}no" >&6
14307 echo "$as_me:$LINENO: result: no" >&5
14308 echo "${ECHO_T}no" >&6
14315 # The else clause should only fire when bootstrapping the
14316 # libtool distribution, otherwise you forgot to ship ltmain.sh
14317 # with your package, and you will get complaints that there are
14318 # no rules to generate ltmain.sh.
14319 if test -f "$ltmain"; then
14320 # See if we are running on zsh, and set the options which allow our commands through
14321 # without removal of \ escapes.
14322 if test -n "${ZSH_VERSION+set}" ; then
14323 setopt NO_GLOB_SUBST
14325 # Now quote all the things that may contain metacharacters while being
14326 # careful not to overquote the AC_SUBSTed values. We take copies of the
14327 # variables and quote the copies for generation of the libtool script.
14328 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14330 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14331 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14332 deplibs_check_method reload_flag reload_cmds need_locks \
14333 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14334 lt_cv_sys_global_symbol_to_c_name_address \
14335 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14336 old_postinstall_cmds old_postuninstall_cmds \
14340 lt_prog_compiler_wl_F77 \
14341 lt_prog_compiler_pic_F77 \
14342 lt_prog_compiler_static_F77 \
14343 lt_prog_compiler_no_builtin_flag_F77 \
14344 export_dynamic_flag_spec_F77 \
14345 thread_safe_flag_spec_F77 \
14346 whole_archive_flag_spec_F77 \
14347 enable_shared_with_static_runtimes_F77 \
14348 old_archive_cmds_F77 \
14349 old_archive_from_new_cmds_F77 \
14350 predep_objects_F77 \
14351 postdep_objects_F77 \
14354 compiler_lib_search_path_F77 \
14356 archive_expsym_cmds_F77 \
14357 postinstall_cmds_F77 \
14358 postuninstall_cmds_F77 \
14359 old_archive_from_expsyms_cmds_F77 \
14360 allow_undefined_flag_F77 \
14361 no_undefined_flag_F77 \
14362 export_symbols_cmds_F77 \
14363 hardcode_libdir_flag_spec_F77 \
14364 hardcode_libdir_flag_spec_ld_F77 \
14365 hardcode_libdir_separator_F77 \
14366 hardcode_automatic_F77 \
14368 module_expsym_cmds_F77 \
14369 lt_cv_prog_compiler_c_o_F77 \
14370 exclude_expsyms_F77 \
14371 include_expsyms_F77; do
14374 old_archive_cmds_F77 | \
14375 old_archive_from_new_cmds_F77 | \
14376 archive_cmds_F77 | \
14377 archive_expsym_cmds_F77 | \
14378 module_cmds_F77 | \
14379 module_expsym_cmds_F77 | \
14380 old_archive_from_expsyms_cmds_F77 | \
14381 export_symbols_cmds_F77 | \
14382 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14383 postinstall_cmds | postuninstall_cmds | \
14384 old_postinstall_cmds | old_postuninstall_cmds | \
14385 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14386 # Double-quote double-evaled strings.
14387 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14390 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14396 *'\$0 --fallback-echo"')
14397 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14403 cat <<__EOF__ >> "$cfgfile"
14404 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14406 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14408 # Shell to use when invoking shell scripts.
14411 # Whether or not to build shared libraries.
14412 build_libtool_libs=$enable_shared
14414 # Whether or not to build static libraries.
14415 build_old_libs=$enable_static
14417 # Whether or not to add -lc for building shared libraries.
14418 build_libtool_need_lc=$archive_cmds_need_lc_F77
14420 # Whether or not to disallow shared libs when runtime libs are static
14421 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14423 # Whether or not to optimize for fast installation.
14424 fast_install=$enable_fast_install
14427 host_alias=$host_alias
14430 # An echo program that does not interpret backslashes.
14435 AR_FLAGS=$lt_AR_FLAGS
14440 # A language-specific compiler.
14441 CC=$lt_compiler_F77
14443 # Is the compiler the GNU C compiler?
14449 # The linker used to build libraries.
14452 # Whether we need hard or soft links.
14455 # A BSD-compatible nm program.
14458 # A symbol stripping program
14461 # Used to examine libraries when file_magic_cmd begins "file"
14462 MAGIC_CMD=$MAGIC_CMD
14464 # Used on cygwin: DLL creation program.
14467 # Used on cygwin: object dumper.
14470 # Used on cygwin: assembler.
14473 # The name of the directory that contains temporary libtool files.
14476 # How to create reloadable object files.
14477 reload_flag=$lt_reload_flag
14478 reload_cmds=$lt_reload_cmds
14480 # How to pass a linker flag through the compiler.
14481 wl=$lt_lt_prog_compiler_wl_F77
14483 # Object file suffix (normally "o").
14484 objext="$ac_objext"
14486 # Old archive suffix (normally "a").
14489 # Shared library suffix (normally ".so").
14492 # Executable file suffix (normally "").
14495 # Additional compiler flags for building library objects.
14496 pic_flag=$lt_lt_prog_compiler_pic_F77
14499 # What is the maximum length of a command?
14500 max_cmd_len=$lt_cv_sys_max_cmd_len
14502 # Does compiler simultaneously support -c and -o options?
14503 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14505 # Must we lock files when doing compilation ?
14506 need_locks=$lt_need_locks
14508 # Do we need the lib prefix for modules?
14509 need_lib_prefix=$need_lib_prefix
14511 # Do we need a version for libraries?
14512 need_version=$need_version
14514 # Whether dlopen is supported.
14515 dlopen_support=$enable_dlopen
14517 # Whether dlopen of programs is supported.
14518 dlopen_self=$enable_dlopen_self
14520 # Whether dlopen of statically linked programs is supported.
14521 dlopen_self_static=$enable_dlopen_self_static
14523 # Compiler flag to prevent dynamic linking.
14524 link_static_flag=$lt_lt_prog_compiler_static_F77
14526 # Compiler flag to turn off builtin functions.
14527 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14529 # Compiler flag to allow reflexive dlopens.
14530 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14532 # Compiler flag to generate shared objects directly from archives.
14533 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14535 # Compiler flag to generate thread-safe objects.
14536 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14538 # Library versioning type.
14539 version_type=$version_type
14541 # Format of library name prefix.
14542 libname_spec=$lt_libname_spec
14544 # List of archive names. First name is the real one, the rest are links.
14545 # The last name is the one that the linker finds with -lNAME.
14546 library_names_spec=$lt_library_names_spec
14548 # The coded name of the library, if different from the real name.
14549 soname_spec=$lt_soname_spec
14551 # Commands used to build and install an old-style archive.
14553 old_archive_cmds=$lt_old_archive_cmds_F77
14554 old_postinstall_cmds=$lt_old_postinstall_cmds
14555 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14557 # Create an old-style archive from a shared archive.
14558 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14560 # Create a temporary old-style archive to link instead of a shared archive.
14561 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14563 # Commands used to build and install a shared archive.
14564 archive_cmds=$lt_archive_cmds_F77
14565 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14566 postinstall_cmds=$lt_postinstall_cmds
14567 postuninstall_cmds=$lt_postuninstall_cmds
14569 # Commands used to build a loadable module (assumed same as above if empty)
14570 module_cmds=$lt_module_cmds_F77
14571 module_expsym_cmds=$lt_module_expsym_cmds_F77
14573 # Commands to strip libraries.
14574 old_striplib=$lt_old_striplib
14575 striplib=$lt_striplib
14577 # Dependencies to place before the objects being linked to create a
14579 predep_objects=$lt_predep_objects_F77
14581 # Dependencies to place after the objects being linked to create a
14583 postdep_objects=$lt_postdep_objects_F77
14585 # Dependencies to place before the objects being linked to create a
14587 predeps=$lt_predeps_F77
14589 # Dependencies to place after the objects being linked to create a
14591 postdeps=$lt_postdeps_F77
14593 # The library search path used internally by the compiler when linking
14594 # a shared library.
14595 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14597 # Method to check whether dependent libraries are shared objects.
14598 deplibs_check_method=$lt_deplibs_check_method
14600 # Command to use when deplibs_check_method == file_magic.
14601 file_magic_cmd=$lt_file_magic_cmd
14603 # Flag that allows shared libraries with undefined symbols to be built.
14604 allow_undefined_flag=$lt_allow_undefined_flag_F77
14606 # Flag that forces no undefined symbols.
14607 no_undefined_flag=$lt_no_undefined_flag_F77
14609 # Commands used to finish a libtool library installation in a directory.
14610 finish_cmds=$lt_finish_cmds
14612 # Same as above, but a single script fragment to be evaled but not shown.
14613 finish_eval=$lt_finish_eval
14615 # Take the output of nm and produce a listing of raw symbols and C names.
14616 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14618 # Transform the output of nm in a proper C declaration
14619 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14621 # Transform the output of nm in a C name address pair
14622 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14624 # This is the shared library runtime path variable.
14625 runpath_var=$runpath_var
14627 # This is the shared library path variable.
14628 shlibpath_var=$shlibpath_var
14630 # Is shlibpath searched before the hard-coded library search path?
14631 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14633 # How to hardcode a shared library path into an executable.
14634 hardcode_action=$hardcode_action_F77
14636 # Whether we should hardcode library paths into libraries.
14637 hardcode_into_libs=$hardcode_into_libs
14639 # Flag to hardcode \$libdir into a binary during linking.
14640 # This must work even if \$libdir does not exist.
14641 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14643 # If ld is used when linking, flag to hardcode \$libdir into
14644 # a binary during linking. This must work even if \$libdir does
14646 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14648 # Whether we need a single -rpath flag with a separated argument.
14649 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14651 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14652 # resulting binary.
14653 hardcode_direct=$hardcode_direct_F77
14655 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14656 # resulting binary.
14657 hardcode_minus_L=$hardcode_minus_L_F77
14659 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14660 # the resulting binary.
14661 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14663 # Set to yes if building a shared library automatically hardcodes DIR into the library
14664 # and all subsequent libraries and executables linked against it.
14665 hardcode_automatic=$hardcode_automatic_F77
14667 # Variables whose values should be saved in libtool wrapper scripts and
14668 # restored at relink time.
14669 variables_saved_for_relink="$variables_saved_for_relink"
14671 # Whether libtool must link a program against all its dependency libraries.
14672 link_all_deplibs=$link_all_deplibs_F77
14674 # Compile-time system search path for libraries
14675 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14677 # Run-time system search path for libraries
14678 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14680 # Fix the shell variable \$srcfile for the compiler.
14681 fix_srcfile_path="$fix_srcfile_path_F77"
14683 # Set to yes if exported symbols are required.
14684 always_export_symbols=$always_export_symbols_F77
14686 # The commands to list exported symbols.
14687 export_symbols_cmds=$lt_export_symbols_cmds_F77
14689 # The commands to extract the exported symbol list from a shared archive.
14690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14692 # Symbols that should not be listed in the preloaded symbols.
14693 exclude_expsyms=$lt_exclude_expsyms_F77
14695 # Symbols that must always be exported.
14696 include_expsyms=$lt_include_expsyms_F77
14698 # ### END LIBTOOL TAG CONFIG: $tagname
14704 # If there is no Makefile yet, we rely on a make rule to execute
14705 # `config.status --recheck' to rerun these tests and create the
14706 # libtool script then.
14707 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14708 if test -f "$ltmain_in"; then
14709 test -f Makefile && make "$ltmain"
14715 ac_cpp='$CPP $CPPFLAGS'
14716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14728 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14732 # Source file extension for Java test sources.
14735 # Object file extension for compiled Java test sources.
14739 # Code to be used in simple compile tests
14740 lt_simple_compile_test_code="class foo {}\n"
14742 # Code to be used in simple link tests
14743 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14745 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14747 # If no C compiler was specified, use CC.
14750 # Allow CC to be a program name with arguments.
14754 # Allow CC to be a program name with arguments.
14760 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14761 archive_cmds_need_lc_GCJ=no
14764 ## There is no encapsulation within the following macros, do not change
14765 ## the running order or otherwise move them around unless you know exactly
14766 ## what you are doing...
14768 lt_prog_compiler_no_builtin_flag_GCJ=
14770 if test "$GCC" = yes; then
14771 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14774 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14775 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14776 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14777 echo $ECHO_N "(cached) $ECHO_C" >&6
14779 lt_cv_prog_compiler_rtti_exceptions=no
14780 ac_outfile=conftest.$ac_objext
14781 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14782 lt_compiler_flag="-fno-rtti -fno-exceptions"
14783 # Insert the option either (1) after the last *FLAGS variable, or
14784 # (2) before a word containing "conftest.", or (3) at the end.
14785 # Note that $ac_compile itself does not contain backslashes and begins
14786 # with a dollar sign (not a hyphen), so the echo should work correctly.
14787 # The option is referenced via a variable to avoid confusing sed.
14788 lt_compile=`echo "$ac_compile" | $SED \
14789 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14791 -e 's:$: $lt_compiler_flag:'`
14792 (eval echo "\"\$as_me:14792: $lt_compile\"" >&5)
14793 (eval "$lt_compile" 2>conftest.err)
14795 cat conftest.err >&5
14796 echo "$as_me:14796: \$? = $ac_status" >&5
14797 if (exit $ac_status) && test -s "$ac_outfile"; then
14798 # The compiler can only warn and ignore the option if not recognized
14799 # So say no if there are warnings
14800 if test ! -s conftest.err; then
14801 lt_cv_prog_compiler_rtti_exceptions=yes
14807 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14808 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14810 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14811 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14818 lt_prog_compiler_wl_GCJ=
14819 lt_prog_compiler_pic_GCJ=
14820 lt_prog_compiler_static_GCJ=
14822 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14823 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14825 if test "$GCC" = yes; then
14826 lt_prog_compiler_wl_GCJ='-Wl,'
14827 lt_prog_compiler_static_GCJ='-static'
14831 # All AIX code is PIC.
14832 if test "$host_cpu" = ia64; then
14833 # AIX 5 now supports IA64 processor
14834 lt_prog_compiler_static_GCJ='-Bstatic'
14839 # FIXME: we need at least 68020 code to build shared libraries, but
14840 # adding the `-m68020' flag to GCC prevents building anything better,
14842 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14845 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14846 # PIC is the default for these OSes.
14849 mingw* | pw32* | os2*)
14850 # This hack is so that the source file can tell whether it is being
14851 # built for inclusion in a dll (and should export symbols for example).
14852 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14855 darwin* | rhapsody*)
14856 # PIC is the default on this platform
14857 # Common symbols not allowed in MH_DYLIB files
14858 lt_prog_compiler_pic_GCJ='-fno-common'
14862 # Just because we use GCC doesn't mean we suddenly get shared libraries
14863 # on systems that don't support them.
14864 lt_prog_compiler_can_build_shared_GCJ=no
14869 if test -d /usr/nec; then
14870 lt_prog_compiler_pic_GCJ=-Kconform_pic
14875 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14876 # not for PA HP-UX.
14877 case "$host_cpu" in
14882 lt_prog_compiler_pic_GCJ='-fPIC'
14888 lt_prog_compiler_pic_GCJ='-fPIC'
14892 # PORTME Check for flag to pass linker flags through the system compiler.
14895 lt_prog_compiler_wl_GCJ='-Wl,'
14896 if test "$host_cpu" = ia64; then
14897 # AIX 5 now supports IA64 processor
14898 lt_prog_compiler_static_GCJ='-Bstatic'
14900 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14904 mingw* | pw32* | os2*)
14905 # This hack is so that the source file can tell whether it is being
14906 # built for inclusion in a dll (and should export symbols for example).
14907 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14910 hpux9* | hpux10* | hpux11*)
14911 lt_prog_compiler_wl_GCJ='-Wl,'
14912 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14913 # not for PA HP-UX.
14914 case "$host_cpu" in
14919 lt_prog_compiler_pic_GCJ='+Z'
14922 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14923 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14926 irix5* | irix6* | nonstopux*)
14927 lt_prog_compiler_wl_GCJ='-Wl,'
14928 # PIC (with -KPIC) is the default.
14929 lt_prog_compiler_static_GCJ='-non_shared'
14933 lt_prog_compiler_pic_GCJ='-KPIC'
14934 lt_prog_compiler_static_GCJ='-Bstatic'
14940 lt_prog_compiler_wl_GCJ='-Wl,'
14941 lt_prog_compiler_pic_GCJ='-KPIC'
14942 lt_prog_compiler_static_GCJ='-static'
14945 lt_prog_compiler_wl_GCJ='-Wl,'
14946 # All Alpha code is PIC.
14947 lt_prog_compiler_static_GCJ='-non_shared'
14952 osf3* | osf4* | osf5*)
14953 lt_prog_compiler_wl_GCJ='-Wl,'
14954 # All OSF/1 code is PIC.
14955 lt_prog_compiler_static_GCJ='-non_shared'
14959 lt_prog_compiler_pic_GCJ='-Kpic'
14960 lt_prog_compiler_static_GCJ='-dn'
14964 lt_prog_compiler_wl_GCJ='-Wl,'
14965 lt_prog_compiler_pic_GCJ='-KPIC'
14966 lt_prog_compiler_static_GCJ='-Bstatic'
14970 lt_prog_compiler_wl_GCJ='-Qoption ld '
14971 lt_prog_compiler_pic_GCJ='-PIC'
14972 lt_prog_compiler_static_GCJ='-Bstatic'
14975 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14976 lt_prog_compiler_wl_GCJ='-Wl,'
14977 lt_prog_compiler_pic_GCJ='-KPIC'
14978 lt_prog_compiler_static_GCJ='-Bstatic'
14982 if test -d /usr/nec ;then
14983 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14984 lt_prog_compiler_static_GCJ='-Bstatic'
14989 lt_prog_compiler_pic_GCJ='-pic'
14990 lt_prog_compiler_static_GCJ='-Bstatic'
14994 lt_prog_compiler_can_build_shared_GCJ=no
14999 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15000 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15003 # Check to make sure the PIC flag actually works.
15005 if test -n "$lt_prog_compiler_pic_GCJ"; then
15007 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15008 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15009 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15012 lt_prog_compiler_pic_works_GCJ=no
15013 ac_outfile=conftest.$ac_objext
15014 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15015 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15016 # Insert the option either (1) after the last *FLAGS variable, or
15017 # (2) before a word containing "conftest.", or (3) at the end.
15018 # Note that $ac_compile itself does not contain backslashes and begins
15019 # with a dollar sign (not a hyphen), so the echo should work correctly.
15020 # The option is referenced via a variable to avoid confusing sed.
15021 lt_compile=`echo "$ac_compile" | $SED \
15022 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15024 -e 's:$: $lt_compiler_flag:'`
15025 (eval echo "\"\$as_me:15025: $lt_compile\"" >&5)
15026 (eval "$lt_compile" 2>conftest.err)
15028 cat conftest.err >&5
15029 echo "$as_me:15029: \$? = $ac_status" >&5
15030 if (exit $ac_status) && test -s "$ac_outfile"; then
15031 # The compiler can only warn and ignore the option if not recognized
15032 # So say no if there are warnings
15033 if test ! -s conftest.err; then
15034 lt_prog_compiler_pic_works_GCJ=yes
15040 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15041 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15043 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15044 case $lt_prog_compiler_pic_GCJ in
15046 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15049 lt_prog_compiler_pic_GCJ=
15050 lt_prog_compiler_can_build_shared_GCJ=no
15055 # For platforms which do not support PIC, -DPIC is meaningless:
15057 lt_prog_compiler_pic_GCJ=
15060 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15064 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15065 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15066 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15067 echo $ECHO_N "(cached) $ECHO_C" >&6
15069 lt_cv_prog_compiler_c_o_GCJ=no
15070 $rm -r conftest 2>/dev/null
15074 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15076 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15077 # that will create temporary files in the current directory regardless of
15078 # the output directory. Thus, making CWD read-only will cause this test
15079 # to fail, enabling locking or at least warning the user not to do parallel
15083 lt_compiler_flag="-o out/conftest2.$ac_objext"
15084 # Insert the option either (1) after the last *FLAGS variable, or
15085 # (2) before a word containing "conftest.", or (3) at the end.
15086 # Note that $ac_compile itself does not contain backslashes and begins
15087 # with a dollar sign (not a hyphen), so the echo should work correctly.
15088 lt_compile=`echo "$ac_compile" | $SED \
15089 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15091 -e 's:$: $lt_compiler_flag:'`
15092 (eval echo "\"\$as_me:15092: $lt_compile\"" >&5)
15093 (eval "$lt_compile" 2>out/conftest.err)
15095 cat out/conftest.err >&5
15096 echo "$as_me:15096: \$? = $ac_status" >&5
15097 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15099 # The compiler can only warn and ignore the option if not recognized
15100 # So say no if there are warnings
15101 if test ! -s out/conftest.err; then
15102 lt_cv_prog_compiler_c_o_GCJ=yes
15107 # SGI C++ compiler will create directory out/ii_files/ for
15108 # template instantiation
15109 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15110 $rm out/* && rmdir out
15116 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15117 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15120 hard_links="nottested"
15121 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15122 # do not overwrite the value of need_locks provided by the user
15123 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15124 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15129 ln conftest.a conftest.b 2>&5 || hard_links=no
15130 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15131 echo "$as_me:$LINENO: result: $hard_links" >&5
15132 echo "${ECHO_T}$hard_links" >&6
15133 if test "$hard_links" = no; then
15134 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15135 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15142 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15143 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15146 allow_undefined_flag_GCJ=
15147 enable_shared_with_static_runtimes_GCJ=no
15149 archive_expsym_cmds_GCJ=
15150 old_archive_From_new_cmds_GCJ=
15151 old_archive_from_expsyms_cmds_GCJ=
15152 export_dynamic_flag_spec_GCJ=
15153 whole_archive_flag_spec_GCJ=
15154 thread_safe_flag_spec_GCJ=
15155 hardcode_libdir_flag_spec_GCJ=
15156 hardcode_libdir_flag_spec_ld_GCJ=
15157 hardcode_libdir_separator_GCJ=
15158 hardcode_direct_GCJ=no
15159 hardcode_minus_L_GCJ=no
15160 hardcode_shlibpath_var_GCJ=unsupported
15161 link_all_deplibs_GCJ=unknown
15162 hardcode_automatic_GCJ=no
15164 module_expsym_cmds_GCJ=
15165 always_export_symbols_GCJ=no
15166 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15167 # include_expsyms should be a list of space-separated symbols to be *always*
15168 # included in the symbol list
15169 include_expsyms_GCJ=
15170 # exclude_expsyms can be an extended regexp of symbols to exclude
15171 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15172 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15173 # as well as any symbol that contains `d'.
15174 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15175 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15176 # platforms (ab)use it in PIC code, but their linkers get confused if
15177 # the symbol is explicitly referenced. Since portable code cannot
15178 # rely on this symbol name, it's probably fine to never include it in
15179 # preloaded symbol tables.
15180 extract_expsyms_cmds=
15183 cygwin* | mingw* | pw32*)
15184 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15185 # When not using gcc, we currently assume that we are using
15186 # Microsoft Visual C++.
15187 if test "$GCC" != yes; then
15197 if test "$with_gnu_ld" = yes; then
15198 # If archive_cmds runs LD, not CC, wlarc should be empty
15201 # See if GNU ld supports shared libraries.
15203 aix3* | aix4* | aix5*)
15204 # On AIX/PPC, the GNU linker is very broken
15205 if test "$host_cpu" != ia64; then
15209 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15210 *** to be unable to reliably create shared libraries on AIX.
15211 *** Therefore, libtool is disabling shared libraries support. If you
15212 *** really care for shared libraries, you may want to modify your PATH
15213 *** so that a non-GNU linker is found, and then restart.
15220 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)'
15221 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15222 hardcode_minus_L_GCJ=yes
15224 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15225 # that the semantics of dynamic libraries on AmigaOS, at least up
15226 # to version 4, is to share data among multiple programs linked
15227 # with the same dynamic library. Since this doesn't match the
15228 # behavior of shared libraries on other platforms, we can't use
15234 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15235 allow_undefined_flag_GCJ=unsupported
15236 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15237 # support --undefined. This deserves some investigation. FIXME
15238 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15244 cygwin* | mingw* | pw32*)
15245 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15246 # as there is no search path for DLLs.
15247 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15248 allow_undefined_flag_GCJ=unsupported
15249 always_export_symbols_GCJ=no
15250 enable_shared_with_static_runtimes_GCJ=yes
15251 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15253 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15254 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15255 # If the export-symbols file already is a .def file (1st line
15256 # is EXPORTS), use it as is; otherwise, prepend...
15257 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15258 cp $export_symbols $output_objdir/$soname.def;
15260 echo EXPORTS > $output_objdir/$soname.def;
15261 cat $export_symbols >> $output_objdir/$soname.def;
15263 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15270 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15271 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15274 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15275 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15280 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15284 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15285 *** create shared libraries on Solaris systems. Therefore, libtool
15286 *** is disabling shared libraries support. We urge you to upgrade GNU
15287 *** binutils to release 2.9.1 or newer. Another option is to modify
15288 *** your PATH or compiler configuration so that the native linker is
15289 *** used, and then restart.
15292 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15293 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15294 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15301 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15303 hardcode_direct_GCJ=yes
15304 hardcode_shlibpath_var_GCJ=no
15308 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15309 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15310 archive_cmds_GCJ="$tmp_archive_cmds"
15311 supports_anon_versioning=no
15312 case `$LD -v 2>/dev/null` in
15313 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15314 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15315 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15316 *\ 2.11.*) ;; # other 2.11 versions
15317 *) supports_anon_versioning=yes ;;
15319 if test $supports_anon_versioning = yes; then
15320 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15321 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15322 $echo "local: *; };" >> $output_objdir/$libname.ver~
15323 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15325 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15333 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15334 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15335 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15342 if test "$ld_shlibs_GCJ" = yes; then
15343 runpath_var=LD_RUN_PATH
15344 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15345 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15346 # ancient GNU ld didn't support --whole-archive et. al.
15347 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15348 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15350 whole_archive_flag_spec_GCJ=
15354 # PORTME fill in a description of your system's linker (not GNU ld)
15357 allow_undefined_flag_GCJ=unsupported
15358 always_export_symbols_GCJ=yes
15359 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'
15360 # Note: this linker hardcodes the directories in LIBPATH if there
15361 # are no directories specified by -L.
15362 hardcode_minus_L_GCJ=yes
15363 if test "$GCC" = yes && test -z "$link_static_flag"; then
15364 # Neither direct hardcoding nor static linking is supported with a
15366 hardcode_direct_GCJ=unsupported
15371 if test "$host_cpu" = ia64; then
15372 # On IA64, the linker does run time linking by default, so we don't
15373 # have to do anything special.
15374 aix_use_runtimelinking=no
15375 exp_sym_flag='-Bexport'
15378 # If we're using GNU nm, then we don't want the "-C" option.
15379 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15380 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15381 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'
15383 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'
15385 aix_use_runtimelinking=no
15387 # Test if we are trying to use run time linking or normal
15388 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15389 # need to do runtime linking.
15390 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15391 for ld_flag in $LDFLAGS; do
15392 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15393 aix_use_runtimelinking=yes
15399 exp_sym_flag='-bexport'
15400 no_entry_flag='-bnoentry'
15403 # When large executables or shared objects are built, AIX ld can
15404 # have problems creating the table of contents. If linking a library
15405 # or program results in "error TOC overflow" add -mminimal-toc to
15406 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15407 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15409 archive_cmds_GCJ=''
15410 hardcode_direct_GCJ=yes
15411 hardcode_libdir_separator_GCJ=':'
15412 link_all_deplibs_GCJ=yes
15414 if test "$GCC" = yes; then
15415 case $host_os in aix4.012|aix4.012.*)
15416 # We only want to do this on AIX 4.2 and lower, the check
15417 # below for broken collect2 doesn't work under 4.3+
15418 collect2name=`${CC} -print-prog-name=collect2`
15419 if test -f "$collect2name" && \
15420 strings "$collect2name" | grep resolve_lib_name >/dev/null
15422 # We have reworked collect2
15423 hardcode_direct_GCJ=yes
15425 # We have old collect2
15426 hardcode_direct_GCJ=unsupported
15427 # It fails to find uninstalled libraries when the uninstalled
15428 # path is not listed in the libpath. Setting hardcode_minus_L
15429 # to unsupported forces relinking
15430 hardcode_minus_L_GCJ=yes
15431 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15432 hardcode_libdir_separator_GCJ=
15435 shared_flag='-shared'
15438 if test "$host_cpu" = ia64; then
15439 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15440 # chokes on -Wl,-G. The following line is correct:
15443 if test "$aix_use_runtimelinking" = yes; then
15444 shared_flag='${wl}-G'
15446 shared_flag='${wl}-bM:SRE'
15451 # It seems that -bexpall does not export symbols beginning with
15452 # underscore (_), so it is better to generate a list of symbols to export.
15453 always_export_symbols_GCJ=yes
15454 if test "$aix_use_runtimelinking" = yes; then
15455 # Warning - without using the other runtime loading flags (-brtl),
15456 # -berok will link without error, but may produce a broken library.
15457 allow_undefined_flag_GCJ='-berok'
15458 # Determine the default libpath from the value encoded in an empty executable.
15459 cat >conftest.$ac_ext <<_ACEOF
15462 cat confdefs.h >>conftest.$ac_ext
15463 cat >>conftest.$ac_ext <<_ACEOF
15464 /* end confdefs.h. */
15474 rm -f conftest.$ac_objext conftest$ac_exeext
15475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15476 (eval $ac_link) 2>conftest.er1
15478 grep -v '^ *+' conftest.er1 >conftest.err
15480 cat conftest.err >&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } &&
15483 { ac_try='test -z "$ac_c_werror_flag"
15484 || test ! -s conftest.err'
15485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15486 (eval $ac_try) 2>&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); }; } &&
15490 { ac_try='test -s conftest$ac_exeext'
15491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15492 (eval $ac_try) 2>&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); }; }; then
15497 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15499 # Check for a 64-bit object if we didn't find anything.
15500 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; }
15503 echo "$as_me: failed program was:" >&5
15504 sed 's/^/| /' conftest.$ac_ext >&5
15507 rm -f conftest.err conftest.$ac_objext \
15508 conftest$ac_exeext conftest.$ac_ext
15509 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15511 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15512 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15514 if test "$host_cpu" = ia64; then
15515 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15516 allow_undefined_flag_GCJ="-z nodefs"
15517 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15519 # Determine the default libpath from the value encoded in an empty executable.
15520 cat >conftest.$ac_ext <<_ACEOF
15523 cat confdefs.h >>conftest.$ac_ext
15524 cat >>conftest.$ac_ext <<_ACEOF
15525 /* end confdefs.h. */
15535 rm -f conftest.$ac_objext conftest$ac_exeext
15536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15537 (eval $ac_link) 2>conftest.er1
15539 grep -v '^ *+' conftest.er1 >conftest.err
15541 cat conftest.err >&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } &&
15544 { ac_try='test -z "$ac_c_werror_flag"
15545 || test ! -s conftest.err'
15546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547 (eval $ac_try) 2>&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; } &&
15551 { ac_try='test -s conftest$ac_exeext'
15552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553 (eval $ac_try) 2>&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; }; then
15558 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15560 # Check for a 64-bit object if we didn't find anything.
15561 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; }
15564 echo "$as_me: failed program was:" >&5
15565 sed 's/^/| /' conftest.$ac_ext >&5
15568 rm -f conftest.err conftest.$ac_objext \
15569 conftest$ac_exeext conftest.$ac_ext
15570 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15572 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15573 # Warning - without using the other run time loading flags,
15574 # -berok will link without error, but may produce a broken library.
15575 no_undefined_flag_GCJ=' ${wl}-bernotok'
15576 allow_undefined_flag_GCJ=' ${wl}-berok'
15577 # -bexpall does not export symbols beginning with underscore (_)
15578 always_export_symbols_GCJ=yes
15579 # Exported symbols can be pulled into shared objects from archives
15580 whole_archive_flag_spec_GCJ=' '
15581 archive_cmds_need_lc_GCJ=yes
15582 # This is similar to how AIX traditionally builds it's shared libraries.
15583 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15589 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)'
15590 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15591 hardcode_minus_L_GCJ=yes
15592 # see comment about different semantics on the GNU ld section
15597 export_dynamic_flag_spec_GCJ=-rdynamic
15600 cygwin* | mingw* | pw32*)
15601 # When not using gcc, we currently assume that we are using
15602 # Microsoft Visual C++.
15603 # hardcode_libdir_flag_spec is actually meaningless, as there is
15604 # no search path for DLLs.
15605 hardcode_libdir_flag_spec_GCJ=' '
15606 allow_undefined_flag_GCJ=unsupported
15607 # Tell ltmain to make .lib files, not .a files.
15609 # Tell ltmain to make .dll files, not .so files.
15611 # FIXME: Setting linknames here is a bad hack.
15612 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15613 # The linker will automatically build a .lib file if we build a DLL.
15614 old_archive_From_new_cmds_GCJ='true'
15615 # FIXME: Should let the user specify the lib program.
15616 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15617 fix_srcfile_path='`cygpath -w "$srcfile"`'
15618 enable_shared_with_static_runtimes_GCJ=yes
15621 darwin* | rhapsody*)
15622 if test "$GXX" = yes ; then
15623 archive_cmds_need_lc_GCJ=no
15625 rhapsody* | darwin1.[012])
15626 allow_undefined_flag_GCJ='-undefined suppress'
15629 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15630 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15632 case ${MACOSX_DEPLOYMENT_TARGET} in
15634 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15637 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15643 lt_int_apple_cc_single_mod=no
15644 output_verbose_link_cmd='echo'
15645 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15646 lt_int_apple_cc_single_mod=yes
15648 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15649 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15651 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
15653 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15654 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15655 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15656 archive_expsym_cmds_GCJ='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}'
15658 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
15660 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}'
15661 hardcode_direct_GCJ=no
15662 hardcode_automatic_GCJ=yes
15663 hardcode_shlibpath_var_GCJ=unsupported
15664 whole_archive_flag_spec_GCJ='-all_load $convenience'
15665 link_all_deplibs_GCJ=yes
15672 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15673 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15674 hardcode_shlibpath_var_GCJ=no
15681 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15682 # support. Future versions do this automatically, but an explicit c++rt0.o
15683 # does not break anything, and helps significantly (at the cost of a little
15686 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15687 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15688 hardcode_direct_GCJ=yes
15689 hardcode_shlibpath_var_GCJ=no
15692 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15694 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15695 hardcode_direct_GCJ=yes
15696 hardcode_minus_L_GCJ=yes
15697 hardcode_shlibpath_var_GCJ=no
15700 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15701 freebsd* | kfreebsd*-gnu)
15702 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15703 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15704 hardcode_direct_GCJ=yes
15705 hardcode_shlibpath_var_GCJ=no
15709 if test "$GCC" = yes; then
15710 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'
15712 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'
15714 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15715 hardcode_libdir_separator_GCJ=:
15716 hardcode_direct_GCJ=yes
15718 # hardcode_minus_L: Not really in the search PATH,
15719 # but as the default location of the library.
15720 hardcode_minus_L_GCJ=yes
15721 export_dynamic_flag_spec_GCJ='${wl}-E'
15725 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15726 case "$host_cpu" in
15728 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15731 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15735 case "$host_cpu" in
15737 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15740 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15744 if test "$with_gnu_ld" = no; then
15745 case "$host_cpu" in
15747 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15748 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15749 hardcode_libdir_separator_GCJ=:
15750 hardcode_direct_GCJ=no
15751 hardcode_shlibpath_var_GCJ=no
15754 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15755 hardcode_direct_GCJ=no
15756 hardcode_shlibpath_var_GCJ=no
15758 # hardcode_minus_L: Not really in the search PATH,
15759 # but as the default location of the library.
15760 hardcode_minus_L_GCJ=yes
15763 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15764 hardcode_libdir_separator_GCJ=:
15765 hardcode_direct_GCJ=yes
15766 export_dynamic_flag_spec_GCJ='${wl}-E'
15768 # hardcode_minus_L: Not really in the search PATH,
15769 # but as the default location of the library.
15770 hardcode_minus_L_GCJ=yes
15776 irix5* | irix6* | nonstopux*)
15777 if test "$GCC" = yes; then
15778 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'
15780 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'
15781 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15783 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15784 hardcode_libdir_separator_GCJ=:
15785 link_all_deplibs_GCJ=yes
15789 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15790 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15792 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15794 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15795 hardcode_direct_GCJ=yes
15796 hardcode_shlibpath_var_GCJ=no
15800 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15801 hardcode_direct_GCJ=yes
15802 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15803 hardcode_libdir_separator_GCJ=:
15804 hardcode_shlibpath_var_GCJ=no
15808 hardcode_direct_GCJ=yes
15809 hardcode_shlibpath_var_GCJ=no
15810 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15811 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15812 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15813 export_dynamic_flag_spec_GCJ='${wl}-E'
15816 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15817 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15818 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15821 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15822 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15829 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15830 hardcode_minus_L_GCJ=yes
15831 allow_undefined_flag_GCJ=unsupported
15832 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'
15833 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15837 if test "$GCC" = yes; then
15838 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15839 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'
15841 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15842 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'
15844 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15845 hardcode_libdir_separator_GCJ=:
15848 osf4* | osf5*) # as osf3* with the addition of -msym flag
15849 if test "$GCC" = yes; then
15850 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15851 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'
15852 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15854 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15855 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'
15856 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~
15857 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15859 # Both c and cxx compiler support -rpath directly
15860 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15862 hardcode_libdir_separator_GCJ=:
15866 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15867 hardcode_shlibpath_var_GCJ=no
15868 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15869 runpath_var=LD_RUN_PATH
15870 hardcode_runpath_var=yes
15874 no_undefined_flag_GCJ=' -z text'
15875 if test "$GCC" = yes; then
15876 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15877 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15878 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15880 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15881 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15882 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15884 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15885 hardcode_shlibpath_var_GCJ=no
15887 solaris2.[0-5] | solaris2.[0-5].*) ;;
15888 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15889 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15891 link_all_deplibs_GCJ=yes
15895 if test "x$host_vendor" = xsequent; then
15896 # Use $CC to link under sequent, because it throws in some extra .o
15897 # files that make .init and .fini sections work.
15898 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15900 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15902 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15903 hardcode_direct_GCJ=yes
15904 hardcode_minus_L_GCJ=yes
15905 hardcode_shlibpath_var_GCJ=no
15909 case $host_vendor in
15911 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15912 hardcode_direct_GCJ=yes # is this really true???
15915 ## LD is ld it makes a PLAMLIB
15916 ## CC just makes a GrossModule.
15917 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15918 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15919 hardcode_direct_GCJ=no
15922 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15923 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15926 runpath_var='LD_RUN_PATH'
15927 hardcode_shlibpath_var_GCJ=no
15931 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15932 hardcode_shlibpath_var_GCJ=no
15933 export_dynamic_flag_spec_GCJ='-Bexport'
15937 if test -d /usr/nec; then
15938 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15939 hardcode_shlibpath_var_GCJ=no
15940 runpath_var=LD_RUN_PATH
15941 hardcode_runpath_var=yes
15947 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15948 hardcode_direct_GCJ=yes
15949 hardcode_minus_L_GCJ=no
15950 hardcode_shlibpath_var_GCJ=no
15951 hardcode_runpath_var=yes
15952 runpath_var=LD_RUN_PATH
15955 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15956 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15957 if test "$GCC" = yes; then
15958 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15960 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15962 runpath_var='LD_RUN_PATH'
15963 hardcode_shlibpath_var_GCJ=no
15967 no_undefined_flag_GCJ=' -z text'
15968 # $CC -shared without GNU ld will not create a library from C++
15969 # object files and a static libstdc++, better avoid it by now
15970 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15971 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15972 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15973 hardcode_libdir_flag_spec_GCJ=
15974 hardcode_shlibpath_var_GCJ=no
15975 runpath_var='LD_RUN_PATH'
15979 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15980 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15981 hardcode_shlibpath_var_GCJ=no
15990 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15991 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15992 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15994 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15995 if test "$GCC" = yes; then
15996 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16000 # Do we need to explicitly link libc?
16002 case "x$archive_cmds_need_lc_GCJ" in
16004 # Assume -lc should be added
16005 archive_cmds_need_lc_GCJ=yes
16007 if test "$enable_shared" = yes && test "$GCC" = yes; then
16008 case $archive_cmds_GCJ in
16010 # FIXME: we may have to deal with multi-command sequences.
16013 # Test whether the compiler implicitly links with -lc since on some
16014 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16015 # to ld, don't add -lc before -lgcc.
16016 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16017 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16019 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16022 (eval $ac_compile) 2>&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } 2>conftest.err; then
16028 libobjs=conftest.$ac_objext
16030 wl=$lt_prog_compiler_wl_GCJ
16036 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16037 allow_undefined_flag_GCJ=
16038 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16039 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }
16044 archive_cmds_need_lc_GCJ=no
16046 archive_cmds_need_lc_GCJ=yes
16048 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16050 cat conftest.err 1>&5
16053 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16054 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16061 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16062 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16063 library_names_spec=
16064 libname_spec='lib$name'
16068 postuninstall_cmds=
16072 shlibpath_overrides_runpath=unknown
16074 dynamic_linker="$host_os ld.so"
16075 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16076 if test "$GCC" = yes; then
16077 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16078 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16079 # if the path contains ";" then we assume it to be the separator
16080 # otherwise default to the standard path separator (i.e. ":") - it is
16081 # assumed that no part of a normal pathname contains ";" but that should
16082 # okay in the real world where ";" in dirpaths is itself problematic.
16083 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16085 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16088 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16090 need_lib_prefix=unknown
16091 hardcode_into_libs=no
16093 # when you set need_version to no, make sure it does not cause -set_version
16094 # flags to be left without arguments
16095 need_version=unknown
16100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16101 shlibpath_var=LIBPATH
16103 # AIX 3 has no versioning support, so we append a major version to the name.
16104 soname_spec='${libname}${release}${shared_ext}$major'
16111 hardcode_into_libs=yes
16112 if test "$host_cpu" = ia64; then
16113 # AIX 5 supports IA64
16114 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16115 shlibpath_var=LD_LIBRARY_PATH
16117 # With GCC up to 2.95.x, collect2 would create an import file
16118 # for dependence libraries. The import file would start with
16119 # the line `#! .'. This would cause the generated library to
16120 # depend on `.', always an invalid library. This was fixed in
16121 # development snapshots of GCC prior to 3.0.
16123 aix4 | aix4.[01] | aix4.[01].*)
16124 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16126 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16129 can_build_shared=no
16133 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16134 # soname into executable. Probably we can add versioning support to
16135 # collect2, so additional links can be useful in future.
16136 if test "$aix_use_runtimelinking" = yes; then
16137 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16138 # instead of lib<name>.a to let people know that these are not
16139 # typical AIX shared libraries.
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16142 # We preserve .a as extension for shared libraries through AIX4.2
16143 # and later when we are not doing run time linking.
16144 library_names_spec='${libname}${release}.a $libname.a'
16145 soname_spec='${libname}${release}${shared_ext}$major'
16147 shlibpath_var=LIBPATH
16152 library_names_spec='$libname.ixlibrary $libname.a'
16153 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16154 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'
16158 library_names_spec='${libname}${shared_ext}'
16159 dynamic_linker="$host_os ld.so"
16160 shlibpath_var=LIBRARY_PATH
16166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16167 soname_spec='${libname}${release}${shared_ext}$major'
16168 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16169 shlibpath_var=LD_LIBRARY_PATH
16170 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16171 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16172 # the default ld.so.conf also contains /usr/contrib/lib and
16173 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16174 # libtool to hard-code these into programs
16177 cygwin* | mingw* | pw32*)
16178 version_type=windows
16183 case $GCC,$host_os in
16184 yes,cygwin* | yes,mingw* | yes,pw32*)
16185 library_names_spec='$libname.dll.a'
16186 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16187 postinstall_cmds='base_file=`basename \${file}`~
16188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16189 dldir=$destdir/`dirname \$dlpath`~
16190 test -d \$dldir || mkdir -p \$dldir~
16191 $install_prog $dir/$dlname \$dldir/$dlname'
16192 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16193 dlpath=$dir/\$dldll~
16195 shlibpath_overrides_runpath=yes
16199 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16200 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16201 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16204 # MinGW DLLs use traditional 'lib' prefix
16205 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16206 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16207 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16208 # It is most probably a Windows format PATH printed by
16209 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16210 # path with ; separators, and with drive letters. We can handle the
16211 # drive letters (cygwin fileutils understands them), so leave them,
16212 # especially as we might pass files found there to a mingw objdump,
16213 # which wouldn't understand a cygwinified path. Ahh.
16214 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16216 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16220 # pw32 DLLs use 'pw' prefix rather than 'lib'
16221 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16227 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16230 dynamic_linker='Win32 ld.exe'
16231 # FIXME: first we should search . and the directory the executable is in
16235 darwin* | rhapsody*)
16236 dynamic_linker="$host_os dyld"
16237 version_type=darwin
16240 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16241 soname_spec='${libname}${release}${major}$shared_ext'
16242 shlibpath_overrides_runpath=yes
16243 shlibpath_var=DYLD_LIBRARY_PATH
16244 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16245 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16246 if test "$GCC" = yes; then
16247 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"`
16249 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16251 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16259 soname_spec='${libname}${release}${shared_ext}$major'
16260 shlibpath_var=LD_LIBRARY_PATH
16271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16272 soname_spec='${libname}${release}${shared_ext}$major'
16273 shlibpath_var=LD_LIBRARY_PATH
16274 shlibpath_overrides_runpath=no
16275 hardcode_into_libs=yes
16276 dynamic_linker='GNU ld.so'
16280 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16281 version_type=freebsd-$objformat
16282 case $version_type in
16284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16293 shlibpath_var=LD_LIBRARY_PATH
16296 shlibpath_overrides_runpath=yes
16298 freebsd3.01* | freebsdelf3.01*)
16299 shlibpath_overrides_runpath=yes
16300 hardcode_into_libs=yes
16303 shlibpath_overrides_runpath=no
16304 hardcode_into_libs=yes
16313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16314 soname_spec='${libname}${release}${shared_ext}$major'
16315 shlibpath_var=LD_LIBRARY_PATH
16316 hardcode_into_libs=yes
16319 hpux9* | hpux10* | hpux11*)
16320 # Give a soname corresponding to the major version so that dld.sl refuses to
16321 # link against other versions.
16325 case "$host_cpu" in
16328 hardcode_into_libs=yes
16329 dynamic_linker="$host_os dld.so"
16330 shlibpath_var=LD_LIBRARY_PATH
16331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16333 soname_spec='${libname}${release}${shared_ext}$major'
16334 if test "X$HPUX_IA64_MODE" = X32; then
16335 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16337 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16343 hardcode_into_libs=yes
16344 dynamic_linker="$host_os dld.sl"
16345 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16348 soname_spec='${libname}${release}${shared_ext}$major'
16349 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16354 dynamic_linker="$host_os dld.sl"
16355 shlibpath_var=SHLIB_PATH
16356 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358 soname_spec='${libname}${release}${shared_ext}$major'
16361 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16362 postinstall_cmds='chmod 555 $lib'
16365 irix5* | irix6* | nonstopux*)
16367 nonstopux*) version_type=nonstopux ;;
16369 if test "$lt_cv_prog_gnu_ld" = yes; then
16377 soname_spec='${libname}${release}${shared_ext}$major'
16378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16380 irix5* | nonstopux*)
16381 libsuff= shlibsuff=
16384 case $LD in # libtool.m4 will add one of these switches to LD
16385 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16386 libsuff= shlibsuff= libmagic=32-bit;;
16387 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16388 libsuff=32 shlibsuff=N32 libmagic=N32;;
16389 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16390 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16391 *) libsuff= shlibsuff= libmagic=never-match;;
16395 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16396 shlibpath_overrides_runpath=no
16397 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16398 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16399 hardcode_into_libs=yes
16402 # No shared lib support for Linux oldld, aout, or coff.
16403 linux*oldld* | linux*aout* | linux*coff*)
16407 # This must be Linux ELF.
16412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16413 soname_spec='${libname}${release}${shared_ext}$major'
16414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16415 shlibpath_var=LD_LIBRARY_PATH
16416 shlibpath_overrides_runpath=no
16417 # This implies no fast_install, which is unacceptable.
16418 # Some rework will be needed to allow for fast_install
16419 # before this can be enabled.
16420 hardcode_into_libs=yes
16422 # We used to test for /lib/ld.so.1 and disable shared libraries on
16423 # powerpc, because MkLinux only supported shared libraries with the
16424 # GNU dynamic linker. Since this was broken with cross compilers,
16425 # most powerpc-linux boxes support dynamic linking these days and
16426 # people can always --disable-shared, the test was removed, and we
16427 # assume the GNU/Linux dynamic linker is in use.
16428 dynamic_linker='GNU/Linux ld.so'
16435 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16438 dynamic_linker='NetBSD (a.out) ld.so'
16440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16441 soname_spec='${libname}${release}${shared_ext}$major'
16442 dynamic_linker='NetBSD ld.elf_so'
16444 shlibpath_var=LD_LIBRARY_PATH
16445 shlibpath_overrides_runpath=yes
16446 hardcode_into_libs=yes
16451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16452 shlibpath_var=LD_LIBRARY_PATH
16453 shlibpath_overrides_runpath=yes
16460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16461 soname_spec='${libname}${release}${shared_ext}$major'
16462 shlibpath_var=LD_LIBRARY_PATH
16463 shlibpath_overrides_runpath=yes
16470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16472 shlibpath_var=LD_LIBRARY_PATH
16473 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16475 openbsd2.[89] | openbsd2.[89].*)
16476 shlibpath_overrides_runpath=no
16479 shlibpath_overrides_runpath=yes
16483 shlibpath_overrides_runpath=yes
16488 libname_spec='$name'
16491 library_names_spec='$libname${shared_ext} $libname.a'
16492 dynamic_linker='OS/2 ld.exe'
16493 shlibpath_var=LIBPATH
16496 osf3* | osf4* | osf5*)
16500 soname_spec='${libname}${release}${shared_ext}$major'
16501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16502 shlibpath_var=LD_LIBRARY_PATH
16503 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16504 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16509 soname_spec='${libname}${release}${shared_ext}$major'
16510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16511 shlibpath_var=LD_LIBRARY_PATH
16518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16519 soname_spec='${libname}${release}${shared_ext}$major'
16520 shlibpath_var=LD_LIBRARY_PATH
16521 shlibpath_overrides_runpath=yes
16522 hardcode_into_libs=yes
16523 # ldd complains unless libraries are executable
16524 postinstall_cmds='chmod +x $lib'
16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16530 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16531 shlibpath_var=LD_LIBRARY_PATH
16532 shlibpath_overrides_runpath=yes
16533 if test "$with_gnu_ld" = yes; then
16539 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16542 soname_spec='${libname}${release}${shared_ext}$major'
16543 shlibpath_var=LD_LIBRARY_PATH
16544 case $host_vendor in
16546 shlibpath_overrides_runpath=no
16548 export_dynamic_flag_spec='${wl}-Blargedynsym'
16549 runpath_var=LD_RUN_PATH
16557 shlibpath_overrides_runpath=no
16558 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16564 if test -d /usr/nec ;then
16566 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16567 soname_spec='$libname${shared_ext}.$major'
16568 shlibpath_var=LD_LIBRARY_PATH
16574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16575 soname_spec='${libname}${release}${shared_ext}$major'
16576 shlibpath_var=LD_LIBRARY_PATH
16583 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16584 echo "${ECHO_T}$dynamic_linker" >&6
16585 test "$dynamic_linker" = no && can_build_shared=no
16587 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16588 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16589 hardcode_action_GCJ=
16590 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16591 test -n "$runpath_var GCJ" || \
16592 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16594 # We can hardcode non-existant directories.
16595 if test "$hardcode_direct_GCJ" != no &&
16596 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16597 # have to relink, otherwise we might link with an installed library
16598 # when we should be linking with a yet-to-be-installed one
16599 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16600 test "$hardcode_minus_L_GCJ" != no; then
16601 # Linking always hardcodes the temporary library directory.
16602 hardcode_action_GCJ=relink
16604 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16605 hardcode_action_GCJ=immediate
16608 # We cannot hardcode anything, or else we can only hardcode existing
16610 hardcode_action_GCJ=unsupported
16612 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16613 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16615 if test "$hardcode_action_GCJ" = relink; then
16616 # Fast installation is not supported
16617 enable_fast_install=no
16618 elif test "$shlibpath_overrides_runpath" = yes ||
16619 test "$enable_shared" = no; then
16620 # Fast installation is not necessary
16621 enable_fast_install=needless
16626 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16627 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16628 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16629 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16630 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16631 echo "$as_me:$LINENO: result: yes" >&5
16632 echo "${ECHO_T}yes" >&6
16634 # FIXME - insert some real tests, host_os isn't really good enough
16637 if test -n "$STRIP" ; then
16638 striplib="$STRIP -x"
16639 echo "$as_me:$LINENO: result: yes" >&5
16640 echo "${ECHO_T}yes" >&6
16642 echo "$as_me:$LINENO: result: no" >&5
16643 echo "${ECHO_T}no" >&6
16647 echo "$as_me:$LINENO: result: no" >&5
16648 echo "${ECHO_T}no" >&6
16653 if test "x$enable_dlopen" != xyes; then
16654 enable_dlopen=unknown
16655 enable_dlopen_self=unknown
16656 enable_dlopen_self_static=unknown
16663 lt_cv_dlopen="load_add_on"
16665 lt_cv_dlopen_self=yes
16669 lt_cv_dlopen="LoadLibrary"
16674 lt_cv_dlopen="dlopen"
16679 # if libdl is installed we need to link against it
16680 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16681 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16682 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16685 ac_check_lib_save_LIBS=$LIBS
16687 cat >conftest.$ac_ext <<_ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16694 /* Override any gcc2 internal prototype to avoid an error. */
16698 /* We use char because int might match the return type of a gcc2
16699 builtin and then its argument prototype would still apply. */
16709 rm -f conftest.$ac_objext conftest$ac_exeext
16710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16711 (eval $ac_link) 2>conftest.er1
16713 grep -v '^ *+' conftest.er1 >conftest.err
16715 cat conftest.err >&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); } &&
16718 { ac_try='test -z "$ac_c_werror_flag"
16719 || test ! -s conftest.err'
16720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721 (eval $ac_try) 2>&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; } &&
16725 { ac_try='test -s conftest$ac_exeext'
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; }; then
16731 ac_cv_lib_dl_dlopen=yes
16733 echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16736 ac_cv_lib_dl_dlopen=no
16738 rm -f conftest.err conftest.$ac_objext \
16739 conftest$ac_exeext conftest.$ac_ext
16740 LIBS=$ac_check_lib_save_LIBS
16742 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16743 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16744 if test $ac_cv_lib_dl_dlopen = yes; then
16745 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16748 lt_cv_dlopen="dyld"
16750 lt_cv_dlopen_self=yes
16757 echo "$as_me:$LINENO: checking for shl_load" >&5
16758 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16759 if test "${ac_cv_func_shl_load+set}" = set; then
16760 echo $ECHO_N "(cached) $ECHO_C" >&6
16762 cat >conftest.$ac_ext <<_ACEOF
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16768 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16770 #define shl_load innocuous_shl_load
16772 /* System header to define __stub macros and hopefully few prototypes,
16773 which can conflict with char shl_load (); below.
16774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16775 <limits.h> exists even on freestanding compilers. */
16778 # include <limits.h>
16780 # include <assert.h>
16785 /* Override any gcc2 internal prototype to avoid an error. */
16790 /* We use char because int might match the return type of a gcc2
16791 builtin and then its argument prototype would still apply. */
16793 /* The GNU C library defines this for functions which it implements
16794 to always fail with ENOSYS. Some functions are actually named
16795 something starting with __ and the normal name is an alias. */
16796 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16799 char (*f) () = shl_load;
16808 return f != shl_load;
16813 rm -f conftest.$ac_objext conftest$ac_exeext
16814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16815 (eval $ac_link) 2>conftest.er1
16817 grep -v '^ *+' conftest.er1 >conftest.err
16819 cat conftest.err >&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); } &&
16822 { ac_try='test -z "$ac_c_werror_flag"
16823 || test ! -s conftest.err'
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; } &&
16829 { ac_try='test -s conftest$ac_exeext'
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; }; then
16835 ac_cv_func_shl_load=yes
16837 echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16840 ac_cv_func_shl_load=no
16842 rm -f conftest.err conftest.$ac_objext \
16843 conftest$ac_exeext conftest.$ac_ext
16845 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16846 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16847 if test $ac_cv_func_shl_load = yes; then
16848 lt_cv_dlopen="shl_load"
16850 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16851 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16852 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16853 echo $ECHO_N "(cached) $ECHO_C" >&6
16855 ac_check_lib_save_LIBS=$LIBS
16857 cat >conftest.$ac_ext <<_ACEOF
16860 cat confdefs.h >>conftest.$ac_ext
16861 cat >>conftest.$ac_ext <<_ACEOF
16862 /* end confdefs.h. */
16864 /* Override any gcc2 internal prototype to avoid an error. */
16868 /* We use char because int might match the return type of a gcc2
16869 builtin and then its argument prototype would still apply. */
16879 rm -f conftest.$ac_objext conftest$ac_exeext
16880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16881 (eval $ac_link) 2>conftest.er1
16883 grep -v '^ *+' conftest.er1 >conftest.err
16885 cat conftest.err >&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); } &&
16888 { ac_try='test -z "$ac_c_werror_flag"
16889 || test ! -s conftest.err'
16890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16891 (eval $ac_try) 2>&5
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); }; } &&
16895 { ac_try='test -s conftest$ac_exeext'
16896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897 (eval $ac_try) 2>&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); }; }; then
16901 ac_cv_lib_dld_shl_load=yes
16903 echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16906 ac_cv_lib_dld_shl_load=no
16908 rm -f conftest.err conftest.$ac_objext \
16909 conftest$ac_exeext conftest.$ac_ext
16910 LIBS=$ac_check_lib_save_LIBS
16912 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16913 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16914 if test $ac_cv_lib_dld_shl_load = yes; then
16915 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16917 echo "$as_me:$LINENO: checking for dlopen" >&5
16918 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16919 if test "${ac_cv_func_dlopen+set}" = set; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16922 cat >conftest.$ac_ext <<_ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16928 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16930 #define dlopen innocuous_dlopen
16932 /* System header to define __stub macros and hopefully few prototypes,
16933 which can conflict with char dlopen (); below.
16934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16935 <limits.h> exists even on freestanding compilers. */
16938 # include <limits.h>
16940 # include <assert.h>
16945 /* Override any gcc2 internal prototype to avoid an error. */
16950 /* We use char because int might match the return type of a gcc2
16951 builtin and then its argument prototype would still apply. */
16953 /* The GNU C library defines this for functions which it implements
16954 to always fail with ENOSYS. Some functions are actually named
16955 something starting with __ and the normal name is an alias. */
16956 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16959 char (*f) () = dlopen;
16968 return f != dlopen;
16973 rm -f conftest.$ac_objext conftest$ac_exeext
16974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16975 (eval $ac_link) 2>conftest.er1
16977 grep -v '^ *+' conftest.er1 >conftest.err
16979 cat conftest.err >&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } &&
16982 { ac_try='test -z "$ac_c_werror_flag"
16983 || test ! -s conftest.err'
16984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985 (eval $ac_try) 2>&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); }; } &&
16989 { ac_try='test -s conftest$ac_exeext'
16990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991 (eval $ac_try) 2>&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; }; then
16995 ac_cv_func_dlopen=yes
16997 echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
17000 ac_cv_func_dlopen=no
17002 rm -f conftest.err conftest.$ac_objext \
17003 conftest$ac_exeext conftest.$ac_ext
17005 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17006 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17007 if test $ac_cv_func_dlopen = yes; then
17008 lt_cv_dlopen="dlopen"
17010 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17011 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17012 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17013 echo $ECHO_N "(cached) $ECHO_C" >&6
17015 ac_check_lib_save_LIBS=$LIBS
17017 cat >conftest.$ac_ext <<_ACEOF
17020 cat confdefs.h >>conftest.$ac_ext
17021 cat >>conftest.$ac_ext <<_ACEOF
17022 /* end confdefs.h. */
17024 /* Override any gcc2 internal prototype to avoid an error. */
17028 /* We use char because int might match the return type of a gcc2
17029 builtin and then its argument prototype would still apply. */
17039 rm -f conftest.$ac_objext conftest$ac_exeext
17040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17041 (eval $ac_link) 2>conftest.er1
17043 grep -v '^ *+' conftest.er1 >conftest.err
17045 cat conftest.err >&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } &&
17048 { ac_try='test -z "$ac_c_werror_flag"
17049 || test ! -s conftest.err'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; } &&
17055 { ac_try='test -s conftest$ac_exeext'
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; }; then
17061 ac_cv_lib_dl_dlopen=yes
17063 echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17066 ac_cv_lib_dl_dlopen=no
17068 rm -f conftest.err conftest.$ac_objext \
17069 conftest$ac_exeext conftest.$ac_ext
17070 LIBS=$ac_check_lib_save_LIBS
17072 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17073 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17074 if test $ac_cv_lib_dl_dlopen = yes; then
17075 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17077 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17078 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17079 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17080 echo $ECHO_N "(cached) $ECHO_C" >&6
17082 ac_check_lib_save_LIBS=$LIBS
17083 LIBS="-lsvld $LIBS"
17084 cat >conftest.$ac_ext <<_ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h. */
17091 /* Override any gcc2 internal prototype to avoid an error. */
17095 /* We use char because int might match the return type of a gcc2
17096 builtin and then its argument prototype would still apply. */
17106 rm -f conftest.$ac_objext conftest$ac_exeext
17107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17108 (eval $ac_link) 2>conftest.er1
17110 grep -v '^ *+' conftest.er1 >conftest.err
17112 cat conftest.err >&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); } &&
17115 { ac_try='test -z "$ac_c_werror_flag"
17116 || test ! -s conftest.err'
17117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118 (eval $ac_try) 2>&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; } &&
17122 { ac_try='test -s conftest$ac_exeext'
17123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124 (eval $ac_try) 2>&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; }; then
17128 ac_cv_lib_svld_dlopen=yes
17130 echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17133 ac_cv_lib_svld_dlopen=no
17135 rm -f conftest.err conftest.$ac_objext \
17136 conftest$ac_exeext conftest.$ac_ext
17137 LIBS=$ac_check_lib_save_LIBS
17139 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17140 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17141 if test $ac_cv_lib_svld_dlopen = yes; then
17142 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17144 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17145 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17146 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17149 ac_check_lib_save_LIBS=$LIBS
17151 cat >conftest.$ac_ext <<_ACEOF
17154 cat confdefs.h >>conftest.$ac_ext
17155 cat >>conftest.$ac_ext <<_ACEOF
17156 /* end confdefs.h. */
17158 /* Override any gcc2 internal prototype to avoid an error. */
17162 /* We use char because int might match the return type of a gcc2
17163 builtin and then its argument prototype would still apply. */
17173 rm -f conftest.$ac_objext conftest$ac_exeext
17174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17175 (eval $ac_link) 2>conftest.er1
17177 grep -v '^ *+' conftest.er1 >conftest.err
17179 cat conftest.err >&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); } &&
17182 { ac_try='test -z "$ac_c_werror_flag"
17183 || test ! -s conftest.err'
17184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185 (eval $ac_try) 2>&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); }; } &&
17189 { ac_try='test -s conftest$ac_exeext'
17190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17191 (eval $ac_try) 2>&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); }; }; then
17195 ac_cv_lib_dld_dld_link=yes
17197 echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17200 ac_cv_lib_dld_dld_link=no
17202 rm -f conftest.err conftest.$ac_objext \
17203 conftest$ac_exeext conftest.$ac_ext
17204 LIBS=$ac_check_lib_save_LIBS
17206 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17207 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17208 if test $ac_cv_lib_dld_dld_link = yes; then
17209 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17230 if test "x$lt_cv_dlopen" != xno; then
17236 case $lt_cv_dlopen in
17238 save_CPPFLAGS="$CPPFLAGS"
17239 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17241 save_LDFLAGS="$LDFLAGS"
17242 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17245 LIBS="$lt_cv_dlopen_libs $LIBS"
17247 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17248 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17249 if test "${lt_cv_dlopen_self+set}" = set; then
17250 echo $ECHO_N "(cached) $ECHO_C" >&6
17252 if test "$cross_compiling" = yes; then :
17253 lt_cv_dlopen_self=cross
17255 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17256 lt_status=$lt_dlunknown
17257 cat > conftest.$ac_ext <<EOF
17258 #line 17258 "configure"
17259 #include "confdefs.h"
17268 # define LT_DLGLOBAL RTLD_GLOBAL
17271 # define LT_DLGLOBAL DL_GLOBAL
17273 # define LT_DLGLOBAL 0
17277 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17278 find out it does not work in some platform. */
17279 #ifndef LT_DLLAZY_OR_NOW
17281 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17284 # define LT_DLLAZY_OR_NOW DL_LAZY
17287 # define LT_DLLAZY_OR_NOW RTLD_NOW
17290 # define LT_DLLAZY_OR_NOW DL_NOW
17292 # define LT_DLLAZY_OR_NOW 0
17300 extern "C" void exit (int);
17303 void fnord() { int i=42;}
17306 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17307 int status = $lt_dlunknown;
17311 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17312 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17313 /* dlclose (self); */
17319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17320 (eval $ac_link) 2>&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17324 (./conftest; exit; ) 2>/dev/null
17326 case x$lt_status in
17327 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17328 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17329 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17332 # compilation failed
17333 lt_cv_dlopen_self=no
17340 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17341 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17343 if test "x$lt_cv_dlopen_self" = xyes; then
17344 LDFLAGS="$LDFLAGS $link_static_flag"
17345 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17346 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17347 if test "${lt_cv_dlopen_self_static+set}" = set; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17350 if test "$cross_compiling" = yes; then :
17351 lt_cv_dlopen_self_static=cross
17353 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17354 lt_status=$lt_dlunknown
17355 cat > conftest.$ac_ext <<EOF
17356 #line 17356 "configure"
17357 #include "confdefs.h"
17366 # define LT_DLGLOBAL RTLD_GLOBAL
17369 # define LT_DLGLOBAL DL_GLOBAL
17371 # define LT_DLGLOBAL 0
17375 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17376 find out it does not work in some platform. */
17377 #ifndef LT_DLLAZY_OR_NOW
17379 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17382 # define LT_DLLAZY_OR_NOW DL_LAZY
17385 # define LT_DLLAZY_OR_NOW RTLD_NOW
17388 # define LT_DLLAZY_OR_NOW DL_NOW
17390 # define LT_DLLAZY_OR_NOW 0
17398 extern "C" void exit (int);
17401 void fnord() { int i=42;}
17404 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17405 int status = $lt_dlunknown;
17409 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17410 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17411 /* dlclose (self); */
17417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17418 (eval $ac_link) 2>&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17422 (./conftest; exit; ) 2>/dev/null
17424 case x$lt_status in
17425 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17426 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17427 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17430 # compilation failed
17431 lt_cv_dlopen_self_static=no
17438 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17439 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17442 CPPFLAGS="$save_CPPFLAGS"
17443 LDFLAGS="$save_LDFLAGS"
17448 case $lt_cv_dlopen_self in
17449 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17450 *) enable_dlopen_self=unknown ;;
17453 case $lt_cv_dlopen_self_static in
17454 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17455 *) enable_dlopen_self_static=unknown ;;
17460 # The else clause should only fire when bootstrapping the
17461 # libtool distribution, otherwise you forgot to ship ltmain.sh
17462 # with your package, and you will get complaints that there are
17463 # no rules to generate ltmain.sh.
17464 if test -f "$ltmain"; then
17465 # See if we are running on zsh, and set the options which allow our commands through
17466 # without removal of \ escapes.
17467 if test -n "${ZSH_VERSION+set}" ; then
17468 setopt NO_GLOB_SUBST
17470 # Now quote all the things that may contain metacharacters while being
17471 # careful not to overquote the AC_SUBSTed values. We take copies of the
17472 # variables and quote the copies for generation of the libtool script.
17473 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17475 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17476 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17477 deplibs_check_method reload_flag reload_cmds need_locks \
17478 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17479 lt_cv_sys_global_symbol_to_c_name_address \
17480 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17481 old_postinstall_cmds old_postuninstall_cmds \
17485 lt_prog_compiler_wl_GCJ \
17486 lt_prog_compiler_pic_GCJ \
17487 lt_prog_compiler_static_GCJ \
17488 lt_prog_compiler_no_builtin_flag_GCJ \
17489 export_dynamic_flag_spec_GCJ \
17490 thread_safe_flag_spec_GCJ \
17491 whole_archive_flag_spec_GCJ \
17492 enable_shared_with_static_runtimes_GCJ \
17493 old_archive_cmds_GCJ \
17494 old_archive_from_new_cmds_GCJ \
17495 predep_objects_GCJ \
17496 postdep_objects_GCJ \
17499 compiler_lib_search_path_GCJ \
17501 archive_expsym_cmds_GCJ \
17502 postinstall_cmds_GCJ \
17503 postuninstall_cmds_GCJ \
17504 old_archive_from_expsyms_cmds_GCJ \
17505 allow_undefined_flag_GCJ \
17506 no_undefined_flag_GCJ \
17507 export_symbols_cmds_GCJ \
17508 hardcode_libdir_flag_spec_GCJ \
17509 hardcode_libdir_flag_spec_ld_GCJ \
17510 hardcode_libdir_separator_GCJ \
17511 hardcode_automatic_GCJ \
17513 module_expsym_cmds_GCJ \
17514 lt_cv_prog_compiler_c_o_GCJ \
17515 exclude_expsyms_GCJ \
17516 include_expsyms_GCJ; do
17519 old_archive_cmds_GCJ | \
17520 old_archive_from_new_cmds_GCJ | \
17521 archive_cmds_GCJ | \
17522 archive_expsym_cmds_GCJ | \
17523 module_cmds_GCJ | \
17524 module_expsym_cmds_GCJ | \
17525 old_archive_from_expsyms_cmds_GCJ | \
17526 export_symbols_cmds_GCJ | \
17527 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17528 postinstall_cmds | postuninstall_cmds | \
17529 old_postinstall_cmds | old_postuninstall_cmds | \
17530 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17531 # Double-quote double-evaled strings.
17532 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17535 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17541 *'\$0 --fallback-echo"')
17542 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17548 cat <<__EOF__ >> "$cfgfile"
17549 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17551 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17553 # Shell to use when invoking shell scripts.
17556 # Whether or not to build shared libraries.
17557 build_libtool_libs=$enable_shared
17559 # Whether or not to build static libraries.
17560 build_old_libs=$enable_static
17562 # Whether or not to add -lc for building shared libraries.
17563 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17565 # Whether or not to disallow shared libs when runtime libs are static
17566 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17568 # Whether or not to optimize for fast installation.
17569 fast_install=$enable_fast_install
17572 host_alias=$host_alias
17575 # An echo program that does not interpret backslashes.
17580 AR_FLAGS=$lt_AR_FLAGS
17585 # A language-specific compiler.
17586 CC=$lt_compiler_GCJ
17588 # Is the compiler the GNU C compiler?
17594 # The linker used to build libraries.
17597 # Whether we need hard or soft links.
17600 # A BSD-compatible nm program.
17603 # A symbol stripping program
17606 # Used to examine libraries when file_magic_cmd begins "file"
17607 MAGIC_CMD=$MAGIC_CMD
17609 # Used on cygwin: DLL creation program.
17612 # Used on cygwin: object dumper.
17615 # Used on cygwin: assembler.
17618 # The name of the directory that contains temporary libtool files.
17621 # How to create reloadable object files.
17622 reload_flag=$lt_reload_flag
17623 reload_cmds=$lt_reload_cmds
17625 # How to pass a linker flag through the compiler.
17626 wl=$lt_lt_prog_compiler_wl_GCJ
17628 # Object file suffix (normally "o").
17629 objext="$ac_objext"
17631 # Old archive suffix (normally "a").
17634 # Shared library suffix (normally ".so").
17637 # Executable file suffix (normally "").
17640 # Additional compiler flags for building library objects.
17641 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17644 # What is the maximum length of a command?
17645 max_cmd_len=$lt_cv_sys_max_cmd_len
17647 # Does compiler simultaneously support -c and -o options?
17648 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17650 # Must we lock files when doing compilation ?
17651 need_locks=$lt_need_locks
17653 # Do we need the lib prefix for modules?
17654 need_lib_prefix=$need_lib_prefix
17656 # Do we need a version for libraries?
17657 need_version=$need_version
17659 # Whether dlopen is supported.
17660 dlopen_support=$enable_dlopen
17662 # Whether dlopen of programs is supported.
17663 dlopen_self=$enable_dlopen_self
17665 # Whether dlopen of statically linked programs is supported.
17666 dlopen_self_static=$enable_dlopen_self_static
17668 # Compiler flag to prevent dynamic linking.
17669 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17671 # Compiler flag to turn off builtin functions.
17672 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17674 # Compiler flag to allow reflexive dlopens.
17675 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17677 # Compiler flag to generate shared objects directly from archives.
17678 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17680 # Compiler flag to generate thread-safe objects.
17681 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17683 # Library versioning type.
17684 version_type=$version_type
17686 # Format of library name prefix.
17687 libname_spec=$lt_libname_spec
17689 # List of archive names. First name is the real one, the rest are links.
17690 # The last name is the one that the linker finds with -lNAME.
17691 library_names_spec=$lt_library_names_spec
17693 # The coded name of the library, if different from the real name.
17694 soname_spec=$lt_soname_spec
17696 # Commands used to build and install an old-style archive.
17698 old_archive_cmds=$lt_old_archive_cmds_GCJ
17699 old_postinstall_cmds=$lt_old_postinstall_cmds
17700 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17702 # Create an old-style archive from a shared archive.
17703 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17705 # Create a temporary old-style archive to link instead of a shared archive.
17706 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17708 # Commands used to build and install a shared archive.
17709 archive_cmds=$lt_archive_cmds_GCJ
17710 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17711 postinstall_cmds=$lt_postinstall_cmds
17712 postuninstall_cmds=$lt_postuninstall_cmds
17714 # Commands used to build a loadable module (assumed same as above if empty)
17715 module_cmds=$lt_module_cmds_GCJ
17716 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17718 # Commands to strip libraries.
17719 old_striplib=$lt_old_striplib
17720 striplib=$lt_striplib
17722 # Dependencies to place before the objects being linked to create a
17724 predep_objects=$lt_predep_objects_GCJ
17726 # Dependencies to place after the objects being linked to create a
17728 postdep_objects=$lt_postdep_objects_GCJ
17730 # Dependencies to place before the objects being linked to create a
17732 predeps=$lt_predeps_GCJ
17734 # Dependencies to place after the objects being linked to create a
17736 postdeps=$lt_postdeps_GCJ
17738 # The library search path used internally by the compiler when linking
17739 # a shared library.
17740 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17742 # Method to check whether dependent libraries are shared objects.
17743 deplibs_check_method=$lt_deplibs_check_method
17745 # Command to use when deplibs_check_method == file_magic.
17746 file_magic_cmd=$lt_file_magic_cmd
17748 # Flag that allows shared libraries with undefined symbols to be built.
17749 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17751 # Flag that forces no undefined symbols.
17752 no_undefined_flag=$lt_no_undefined_flag_GCJ
17754 # Commands used to finish a libtool library installation in a directory.
17755 finish_cmds=$lt_finish_cmds
17757 # Same as above, but a single script fragment to be evaled but not shown.
17758 finish_eval=$lt_finish_eval
17760 # Take the output of nm and produce a listing of raw symbols and C names.
17761 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17763 # Transform the output of nm in a proper C declaration
17764 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17766 # Transform the output of nm in a C name address pair
17767 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17769 # This is the shared library runtime path variable.
17770 runpath_var=$runpath_var
17772 # This is the shared library path variable.
17773 shlibpath_var=$shlibpath_var
17775 # Is shlibpath searched before the hard-coded library search path?
17776 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17778 # How to hardcode a shared library path into an executable.
17779 hardcode_action=$hardcode_action_GCJ
17781 # Whether we should hardcode library paths into libraries.
17782 hardcode_into_libs=$hardcode_into_libs
17784 # Flag to hardcode \$libdir into a binary during linking.
17785 # This must work even if \$libdir does not exist.
17786 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17788 # If ld is used when linking, flag to hardcode \$libdir into
17789 # a binary during linking. This must work even if \$libdir does
17791 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17793 # Whether we need a single -rpath flag with a separated argument.
17794 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17796 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17797 # resulting binary.
17798 hardcode_direct=$hardcode_direct_GCJ
17800 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17801 # resulting binary.
17802 hardcode_minus_L=$hardcode_minus_L_GCJ
17804 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17805 # the resulting binary.
17806 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17808 # Set to yes if building a shared library automatically hardcodes DIR into the library
17809 # and all subsequent libraries and executables linked against it.
17810 hardcode_automatic=$hardcode_automatic_GCJ
17812 # Variables whose values should be saved in libtool wrapper scripts and
17813 # restored at relink time.
17814 variables_saved_for_relink="$variables_saved_for_relink"
17816 # Whether libtool must link a program against all its dependency libraries.
17817 link_all_deplibs=$link_all_deplibs_GCJ
17819 # Compile-time system search path for libraries
17820 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17822 # Run-time system search path for libraries
17823 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17825 # Fix the shell variable \$srcfile for the compiler.
17826 fix_srcfile_path="$fix_srcfile_path_GCJ"
17828 # Set to yes if exported symbols are required.
17829 always_export_symbols=$always_export_symbols_GCJ
17831 # The commands to list exported symbols.
17832 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17834 # The commands to extract the exported symbol list from a shared archive.
17835 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17837 # Symbols that should not be listed in the preloaded symbols.
17838 exclude_expsyms=$lt_exclude_expsyms_GCJ
17840 # Symbols that must always be exported.
17841 include_expsyms=$lt_include_expsyms_GCJ
17843 # ### END LIBTOOL TAG CONFIG: $tagname
17849 # If there is no Makefile yet, we rely on a make rule to execute
17850 # `config.status --recheck' to rerun these tests and create the
17851 # libtool script then.
17852 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17853 if test -f "$ltmain_in"; then
17854 test -f Makefile && make "$ltmain"
17860 ac_cpp='$CPP $CPPFLAGS'
17861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17876 # Source file extension for RC test sources.
17879 # Object file extension for compiled RC test sources.
17883 # Code to be used in simple compile tests
17884 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17886 # Code to be used in simple link tests
17887 lt_simple_link_test_code="$lt_simple_compile_test_code"
17889 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17891 # If no C compiler was specified, use CC.
17894 # Allow CC to be a program name with arguments.
17898 # Allow CC to be a program name with arguments.
17903 lt_cv_prog_compiler_c_o_RC=yes
17905 # The else clause should only fire when bootstrapping the
17906 # libtool distribution, otherwise you forgot to ship ltmain.sh
17907 # with your package, and you will get complaints that there are
17908 # no rules to generate ltmain.sh.
17909 if test -f "$ltmain"; then
17910 # See if we are running on zsh, and set the options which allow our commands through
17911 # without removal of \ escapes.
17912 if test -n "${ZSH_VERSION+set}" ; then
17913 setopt NO_GLOB_SUBST
17915 # Now quote all the things that may contain metacharacters while being
17916 # careful not to overquote the AC_SUBSTed values. We take copies of the
17917 # variables and quote the copies for generation of the libtool script.
17918 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17920 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17921 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17922 deplibs_check_method reload_flag reload_cmds need_locks \
17923 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17924 lt_cv_sys_global_symbol_to_c_name_address \
17925 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17926 old_postinstall_cmds old_postuninstall_cmds \
17930 lt_prog_compiler_wl_RC \
17931 lt_prog_compiler_pic_RC \
17932 lt_prog_compiler_static_RC \
17933 lt_prog_compiler_no_builtin_flag_RC \
17934 export_dynamic_flag_spec_RC \
17935 thread_safe_flag_spec_RC \
17936 whole_archive_flag_spec_RC \
17937 enable_shared_with_static_runtimes_RC \
17938 old_archive_cmds_RC \
17939 old_archive_from_new_cmds_RC \
17940 predep_objects_RC \
17941 postdep_objects_RC \
17944 compiler_lib_search_path_RC \
17946 archive_expsym_cmds_RC \
17947 postinstall_cmds_RC \
17948 postuninstall_cmds_RC \
17949 old_archive_from_expsyms_cmds_RC \
17950 allow_undefined_flag_RC \
17951 no_undefined_flag_RC \
17952 export_symbols_cmds_RC \
17953 hardcode_libdir_flag_spec_RC \
17954 hardcode_libdir_flag_spec_ld_RC \
17955 hardcode_libdir_separator_RC \
17956 hardcode_automatic_RC \
17958 module_expsym_cmds_RC \
17959 lt_cv_prog_compiler_c_o_RC \
17960 exclude_expsyms_RC \
17961 include_expsyms_RC; do
17964 old_archive_cmds_RC | \
17965 old_archive_from_new_cmds_RC | \
17966 archive_cmds_RC | \
17967 archive_expsym_cmds_RC | \
17969 module_expsym_cmds_RC | \
17970 old_archive_from_expsyms_cmds_RC | \
17971 export_symbols_cmds_RC | \
17972 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17973 postinstall_cmds | postuninstall_cmds | \
17974 old_postinstall_cmds | old_postuninstall_cmds | \
17975 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17976 # Double-quote double-evaled strings.
17977 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17980 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17986 *'\$0 --fallback-echo"')
17987 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17993 cat <<__EOF__ >> "$cfgfile"
17994 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17996 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17998 # Shell to use when invoking shell scripts.
18001 # Whether or not to build shared libraries.
18002 build_libtool_libs=$enable_shared
18004 # Whether or not to build static libraries.
18005 build_old_libs=$enable_static
18007 # Whether or not to add -lc for building shared libraries.
18008 build_libtool_need_lc=$archive_cmds_need_lc_RC
18010 # Whether or not to disallow shared libs when runtime libs are static
18011 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18013 # Whether or not to optimize for fast installation.
18014 fast_install=$enable_fast_install
18017 host_alias=$host_alias
18020 # An echo program that does not interpret backslashes.
18025 AR_FLAGS=$lt_AR_FLAGS
18030 # A language-specific compiler.
18033 # Is the compiler the GNU C compiler?
18039 # The linker used to build libraries.
18042 # Whether we need hard or soft links.
18045 # A BSD-compatible nm program.
18048 # A symbol stripping program
18051 # Used to examine libraries when file_magic_cmd begins "file"
18052 MAGIC_CMD=$MAGIC_CMD
18054 # Used on cygwin: DLL creation program.
18057 # Used on cygwin: object dumper.
18060 # Used on cygwin: assembler.
18063 # The name of the directory that contains temporary libtool files.
18066 # How to create reloadable object files.
18067 reload_flag=$lt_reload_flag
18068 reload_cmds=$lt_reload_cmds
18070 # How to pass a linker flag through the compiler.
18071 wl=$lt_lt_prog_compiler_wl_RC
18073 # Object file suffix (normally "o").
18074 objext="$ac_objext"
18076 # Old archive suffix (normally "a").
18079 # Shared library suffix (normally ".so").
18082 # Executable file suffix (normally "").
18085 # Additional compiler flags for building library objects.
18086 pic_flag=$lt_lt_prog_compiler_pic_RC
18089 # What is the maximum length of a command?
18090 max_cmd_len=$lt_cv_sys_max_cmd_len
18092 # Does compiler simultaneously support -c and -o options?
18093 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18095 # Must we lock files when doing compilation ?
18096 need_locks=$lt_need_locks
18098 # Do we need the lib prefix for modules?
18099 need_lib_prefix=$need_lib_prefix
18101 # Do we need a version for libraries?
18102 need_version=$need_version
18104 # Whether dlopen is supported.
18105 dlopen_support=$enable_dlopen
18107 # Whether dlopen of programs is supported.
18108 dlopen_self=$enable_dlopen_self
18110 # Whether dlopen of statically linked programs is supported.
18111 dlopen_self_static=$enable_dlopen_self_static
18113 # Compiler flag to prevent dynamic linking.
18114 link_static_flag=$lt_lt_prog_compiler_static_RC
18116 # Compiler flag to turn off builtin functions.
18117 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18119 # Compiler flag to allow reflexive dlopens.
18120 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18122 # Compiler flag to generate shared objects directly from archives.
18123 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18125 # Compiler flag to generate thread-safe objects.
18126 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18128 # Library versioning type.
18129 version_type=$version_type
18131 # Format of library name prefix.
18132 libname_spec=$lt_libname_spec
18134 # List of archive names. First name is the real one, the rest are links.
18135 # The last name is the one that the linker finds with -lNAME.
18136 library_names_spec=$lt_library_names_spec
18138 # The coded name of the library, if different from the real name.
18139 soname_spec=$lt_soname_spec
18141 # Commands used to build and install an old-style archive.
18143 old_archive_cmds=$lt_old_archive_cmds_RC
18144 old_postinstall_cmds=$lt_old_postinstall_cmds
18145 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18147 # Create an old-style archive from a shared archive.
18148 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18150 # Create a temporary old-style archive to link instead of a shared archive.
18151 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18153 # Commands used to build and install a shared archive.
18154 archive_cmds=$lt_archive_cmds_RC
18155 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18156 postinstall_cmds=$lt_postinstall_cmds
18157 postuninstall_cmds=$lt_postuninstall_cmds
18159 # Commands used to build a loadable module (assumed same as above if empty)
18160 module_cmds=$lt_module_cmds_RC
18161 module_expsym_cmds=$lt_module_expsym_cmds_RC
18163 # Commands to strip libraries.
18164 old_striplib=$lt_old_striplib
18165 striplib=$lt_striplib
18167 # Dependencies to place before the objects being linked to create a
18169 predep_objects=$lt_predep_objects_RC
18171 # Dependencies to place after the objects being linked to create a
18173 postdep_objects=$lt_postdep_objects_RC
18175 # Dependencies to place before the objects being linked to create a
18177 predeps=$lt_predeps_RC
18179 # Dependencies to place after the objects being linked to create a
18181 postdeps=$lt_postdeps_RC
18183 # The library search path used internally by the compiler when linking
18184 # a shared library.
18185 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18187 # Method to check whether dependent libraries are shared objects.
18188 deplibs_check_method=$lt_deplibs_check_method
18190 # Command to use when deplibs_check_method == file_magic.
18191 file_magic_cmd=$lt_file_magic_cmd
18193 # Flag that allows shared libraries with undefined symbols to be built.
18194 allow_undefined_flag=$lt_allow_undefined_flag_RC
18196 # Flag that forces no undefined symbols.
18197 no_undefined_flag=$lt_no_undefined_flag_RC
18199 # Commands used to finish a libtool library installation in a directory.
18200 finish_cmds=$lt_finish_cmds
18202 # Same as above, but a single script fragment to be evaled but not shown.
18203 finish_eval=$lt_finish_eval
18205 # Take the output of nm and produce a listing of raw symbols and C names.
18206 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18208 # Transform the output of nm in a proper C declaration
18209 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18211 # Transform the output of nm in a C name address pair
18212 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18214 # This is the shared library runtime path variable.
18215 runpath_var=$runpath_var
18217 # This is the shared library path variable.
18218 shlibpath_var=$shlibpath_var
18220 # Is shlibpath searched before the hard-coded library search path?
18221 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18223 # How to hardcode a shared library path into an executable.
18224 hardcode_action=$hardcode_action_RC
18226 # Whether we should hardcode library paths into libraries.
18227 hardcode_into_libs=$hardcode_into_libs
18229 # Flag to hardcode \$libdir into a binary during linking.
18230 # This must work even if \$libdir does not exist.
18231 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18233 # If ld is used when linking, flag to hardcode \$libdir into
18234 # a binary during linking. This must work even if \$libdir does
18236 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18238 # Whether we need a single -rpath flag with a separated argument.
18239 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18241 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18242 # resulting binary.
18243 hardcode_direct=$hardcode_direct_RC
18245 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18246 # resulting binary.
18247 hardcode_minus_L=$hardcode_minus_L_RC
18249 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18250 # the resulting binary.
18251 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18253 # Set to yes if building a shared library automatically hardcodes DIR into the library
18254 # and all subsequent libraries and executables linked against it.
18255 hardcode_automatic=$hardcode_automatic_RC
18257 # Variables whose values should be saved in libtool wrapper scripts and
18258 # restored at relink time.
18259 variables_saved_for_relink="$variables_saved_for_relink"
18261 # Whether libtool must link a program against all its dependency libraries.
18262 link_all_deplibs=$link_all_deplibs_RC
18264 # Compile-time system search path for libraries
18265 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18267 # Run-time system search path for libraries
18268 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18270 # Fix the shell variable \$srcfile for the compiler.
18271 fix_srcfile_path="$fix_srcfile_path_RC"
18273 # Set to yes if exported symbols are required.
18274 always_export_symbols=$always_export_symbols_RC
18276 # The commands to list exported symbols.
18277 export_symbols_cmds=$lt_export_symbols_cmds_RC
18279 # The commands to extract the exported symbol list from a shared archive.
18280 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18282 # Symbols that should not be listed in the preloaded symbols.
18283 exclude_expsyms=$lt_exclude_expsyms_RC
18285 # Symbols that must always be exported.
18286 include_expsyms=$lt_include_expsyms_RC
18288 # ### END LIBTOOL TAG CONFIG: $tagname
18294 # If there is no Makefile yet, we rely on a make rule to execute
18295 # `config.status --recheck' to rerun these tests and create the
18296 # libtool script then.
18297 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18298 if test -f "$ltmain_in"; then
18299 test -f Makefile && make "$ltmain"
18305 ac_cpp='$CPP $CPPFLAGS'
18306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18315 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18316 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18317 { (exit 1); exit 1; }; }
18321 # Append the new tag name to the list of available tags.
18322 if test -n "$tagname" ; then
18323 available_tags="$available_tags $tagname"
18329 # Now substitute the updated list of available tags.
18330 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18331 mv "${ofile}T" "$ofile"
18335 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18336 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18337 { (exit 1); exit 1; }; }
18343 # This can be used to rebuild libtool when needed
18344 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18346 # Always use our own libtool.
18347 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18349 # Prevent multiple expansion
18370 # AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
18371 # /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
18373 # Checks for libraries.
18374 if test -f /sw/include/db3/db.h; then
18375 CFLAGS="-I/sw/include/db3 $CFLAGS"
18376 LIBS="-L/sw/lib -ldb-3 $LIBS"
18377 elif test -f /sw/include/db4/db.h; then
18378 CFLAGS="-I/sw/include/db4 $CFLAGS"
18379 LIBS="-L/sw/lib -ldb-4 $LIBS"
18384 # Checks for header files.
18386 # Checks for typedefs, structures, and compiler characteristics.
18387 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18388 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18389 if test "${ac_cv_c_const+set}" = set; then
18390 echo $ECHO_N "(cached) $ECHO_C" >&6
18392 cat >conftest.$ac_ext <<_ACEOF
18395 cat confdefs.h >>conftest.$ac_ext
18396 cat >>conftest.$ac_ext <<_ACEOF
18397 /* end confdefs.h. */
18402 /* FIXME: Include the comments suggested by Paul. */
18403 #ifndef __cplusplus
18404 /* Ultrix mips cc rejects this. */
18405 typedef int charset[2];
18407 /* SunOS 4.1.1 cc rejects this. */
18408 char const *const *ccp;
18410 /* NEC SVR4.0.2 mips cc rejects this. */
18411 struct point {int x, y;};
18412 static struct point const zero = {0,0};
18413 /* AIX XL C 1.02.0.0 rejects this.
18414 It does not let you subtract one const X* pointer from another in
18415 an arm of an if-expression whose if-part is not a constant
18417 const char *g = "string";
18418 ccp = &g + (g ? g-g : 0);
18419 /* HPUX 7.0 cc rejects these. */
18422 ccp = (char const *const *) p;
18423 { /* SCO 3.2v4 cc rejects this. */
18425 char const *s = 0 ? (char *) 0 : (char const *) 0;
18429 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18430 int x[] = {25, 17};
18431 const int *foo = &x[0];
18434 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18435 typedef const int *iptr;
18439 { /* AIX XL C 1.02.0.0 rejects this saying
18440 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18441 struct s { int j; const int *ap[3]; };
18442 struct s *b; b->j = 5;
18444 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18445 const int foo = 10;
18453 rm -f conftest.$ac_objext
18454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18455 (eval $ac_compile) 2>conftest.er1
18457 grep -v '^ *+' conftest.er1 >conftest.err
18459 cat conftest.err >&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); } &&
18462 { ac_try='test -z "$ac_c_werror_flag"
18463 || test ! -s conftest.err'
18464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; } &&
18469 { ac_try='test -s conftest.$ac_objext'
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; }; then
18477 echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18484 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18485 echo "${ECHO_T}$ac_cv_c_const" >&6
18486 if test $ac_cv_c_const = no; then
18488 cat >>confdefs.h <<\_ACEOF
18494 echo "$as_me:$LINENO: checking for inline" >&5
18495 echo $ECHO_N "checking for inline... $ECHO_C" >&6
18496 if test "${ac_cv_c_inline+set}" = set; then
18497 echo $ECHO_N "(cached) $ECHO_C" >&6
18500 for ac_kw in inline __inline__ __inline; do
18501 cat >conftest.$ac_ext <<_ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18507 #ifndef __cplusplus
18509 static $ac_kw foo_t static_foo () {return 0; }
18510 $ac_kw foo_t foo () {return 0; }
18514 rm -f conftest.$ac_objext
18515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18516 (eval $ac_compile) 2>conftest.er1
18518 grep -v '^ *+' conftest.er1 >conftest.err
18520 cat conftest.err >&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } &&
18523 { ac_try='test -z "$ac_c_werror_flag"
18524 || test ! -s conftest.err'
18525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526 (eval $ac_try) 2>&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; } &&
18530 { ac_try='test -s conftest.$ac_objext'
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; }; then
18536 ac_cv_c_inline=$ac_kw; break
18538 echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18546 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18547 echo "${ECHO_T}$ac_cv_c_inline" >&6
18550 case $ac_cv_c_inline in
18553 case $ac_cv_c_inline in
18555 *) ac_val=$ac_cv_c_inline;;
18557 cat >>confdefs.h <<_ACEOF
18558 #ifndef __cplusplus
18559 #define inline $ac_val
18566 # Checks for library functions.
18567 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18568 # for constant arguments. Useless!
18569 echo "$as_me:$LINENO: checking for working alloca.h" >&5
18570 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
18571 if test "${ac_cv_working_alloca_h+set}" = set; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 cat >conftest.$ac_ext <<_ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h. */
18580 #include <alloca.h>
18584 char *p = (char *) alloca (2 * sizeof (int));
18589 rm -f conftest.$ac_objext conftest$ac_exeext
18590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18591 (eval $ac_link) 2>conftest.er1
18593 grep -v '^ *+' conftest.er1 >conftest.err
18595 cat conftest.err >&5
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); } &&
18598 { ac_try='test -z "$ac_c_werror_flag"
18599 || test ! -s conftest.err'
18600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18601 (eval $ac_try) 2>&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; } &&
18605 { ac_try='test -s conftest$ac_exeext'
18606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607 (eval $ac_try) 2>&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); }; }; then
18611 ac_cv_working_alloca_h=yes
18613 echo "$as_me: failed program was:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18616 ac_cv_working_alloca_h=no
18618 rm -f conftest.err conftest.$ac_objext \
18619 conftest$ac_exeext conftest.$ac_ext
18621 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
18622 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
18623 if test $ac_cv_working_alloca_h = yes; then
18625 cat >>confdefs.h <<\_ACEOF
18626 #define HAVE_ALLOCA_H 1
18631 echo "$as_me:$LINENO: checking for alloca" >&5
18632 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
18633 if test "${ac_cv_func_alloca_works+set}" = set; then
18634 echo $ECHO_N "(cached) $ECHO_C" >&6
18636 cat >conftest.$ac_ext <<_ACEOF
18639 cat confdefs.h >>conftest.$ac_ext
18640 cat >>conftest.$ac_ext <<_ACEOF
18641 /* end confdefs.h. */
18643 # define alloca __builtin_alloca
18646 # include <malloc.h>
18647 # define alloca _alloca
18650 # include <alloca.h>
18655 # ifndef alloca /* predefined by HP cc +Olibcalls */
18666 char *p = (char *) alloca (1);
18671 rm -f conftest.$ac_objext conftest$ac_exeext
18672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18673 (eval $ac_link) 2>conftest.er1
18675 grep -v '^ *+' conftest.er1 >conftest.err
18677 cat conftest.err >&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } &&
18680 { ac_try='test -z "$ac_c_werror_flag"
18681 || test ! -s conftest.err'
18682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683 (eval $ac_try) 2>&5
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; } &&
18687 { ac_try='test -s conftest$ac_exeext'
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; }; then
18693 ac_cv_func_alloca_works=yes
18695 echo "$as_me: failed program was:" >&5
18696 sed 's/^/| /' conftest.$ac_ext >&5
18698 ac_cv_func_alloca_works=no
18700 rm -f conftest.err conftest.$ac_objext \
18701 conftest$ac_exeext conftest.$ac_ext
18703 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
18704 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
18706 if test $ac_cv_func_alloca_works = yes; then
18708 cat >>confdefs.h <<\_ACEOF
18709 #define HAVE_ALLOCA 1
18713 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18714 # that cause trouble. Some versions do not even contain alloca or
18715 # contain a buggy version. If you still want to use their alloca,
18716 # use ar to extract alloca.o from them instead of compiling alloca.c.
18718 ALLOCA=alloca.$ac_objext
18720 cat >>confdefs.h <<\_ACEOF
18725 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
18726 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
18727 if test "${ac_cv_os_cray+set}" = set; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18730 cat >conftest.$ac_ext <<_ACEOF
18733 cat confdefs.h >>conftest.$ac_ext
18734 cat >>conftest.$ac_ext <<_ACEOF
18735 /* end confdefs.h. */
18736 #if defined(CRAY) && ! defined(CRAY2)
18743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18744 $EGREP "webecray" >/dev/null 2>&1; then
18752 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
18753 echo "${ECHO_T}$ac_cv_os_cray" >&6
18754 if test $ac_cv_os_cray = yes; then
18755 for ac_func in _getb67 GETB67 getb67; do
18756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18757 echo "$as_me:$LINENO: checking for $ac_func" >&5
18758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18759 if eval "test \"\${$as_ac_var+set}\" = set"; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18762 cat >conftest.$ac_ext <<_ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h. */
18768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18770 #define $ac_func innocuous_$ac_func
18772 /* System header to define __stub macros and hopefully few prototypes,
18773 which can conflict with char $ac_func (); below.
18774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18775 <limits.h> exists even on freestanding compilers. */
18778 # include <limits.h>
18780 # include <assert.h>
18785 /* Override any gcc2 internal prototype to avoid an error. */
18790 /* We use char because int might match the return type of a gcc2
18791 builtin and then its argument prototype would still apply. */
18793 /* The GNU C library defines this for functions which it implements
18794 to always fail with ENOSYS. Some functions are actually named
18795 something starting with __ and the normal name is an alias. */
18796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18799 char (*f) () = $ac_func;
18808 return f != $ac_func;
18813 rm -f conftest.$ac_objext conftest$ac_exeext
18814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18815 (eval $ac_link) 2>conftest.er1
18817 grep -v '^ *+' conftest.er1 >conftest.err
18819 cat conftest.err >&5
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); } &&
18822 { ac_try='test -z "$ac_c_werror_flag"
18823 || test ! -s conftest.err'
18824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18825 (eval $ac_try) 2>&5
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); }; } &&
18829 { ac_try='test -s conftest$ac_exeext'
18830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831 (eval $ac_try) 2>&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; }; then
18835 eval "$as_ac_var=yes"
18837 echo "$as_me: failed program was:" >&5
18838 sed 's/^/| /' conftest.$ac_ext >&5
18840 eval "$as_ac_var=no"
18842 rm -f conftest.err conftest.$ac_objext \
18843 conftest$ac_exeext conftest.$ac_ext
18845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18847 if test `eval echo '${'$as_ac_var'}'` = yes; then
18849 cat >>confdefs.h <<_ACEOF
18850 #define CRAY_STACKSEG_END $ac_func
18859 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18860 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
18861 if test "${ac_cv_c_stack_direction+set}" = set; then
18862 echo $ECHO_N "(cached) $ECHO_C" >&6
18864 if test "$cross_compiling" = yes; then
18865 ac_cv_c_stack_direction=0
18867 cat >conftest.$ac_ext <<_ACEOF
18870 cat confdefs.h >>conftest.$ac_ext
18871 cat >>conftest.$ac_ext <<_ACEOF
18872 /* end confdefs.h. */
18874 find_stack_direction ()
18876 static char *addr = 0;
18881 return find_stack_direction ();
18884 return (&dummy > addr) ? 1 : -1;
18890 exit (find_stack_direction () < 0);
18893 rm -f conftest$ac_exeext
18894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18895 (eval $ac_link) 2>&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18900 (eval $ac_try) 2>&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; }; then
18904 ac_cv_c_stack_direction=1
18906 echo "$as_me: program exited with status $ac_status" >&5
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18910 ( exit $ac_status )
18911 ac_cv_c_stack_direction=-1
18913 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18916 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18917 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
18919 cat >>confdefs.h <<_ACEOF
18920 #define STACK_DIRECTION $ac_cv_c_stack_direction
18926 echo "$as_me:$LINENO: checking for working strnlen" >&5
18927 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
18928 if test "${ac_cv_func_strnlen_working+set}" = set; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
18931 if test "$cross_compiling" = yes; then
18932 ac_cv_func_strnlen_working=no
18934 cat >conftest.$ac_ext <<_ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18940 $ac_includes_default
18946 #define S_LEN (sizeof S - 1)
18948 /* At least one implementation is buggy: that of AIX 4.3 would
18949 give strnlen (S, 1) == 3. */
18952 for (i = 0; i < S_LEN + 1; ++i)
18954 int expected = i <= S_LEN ? i : S_LEN;
18955 if (strnlen (S, i) != expected)
18964 rm -f conftest$ac_exeext
18965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18966 (eval $ac_link) 2>&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18971 (eval $ac_try) 2>&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); }; }; then
18975 ac_cv_func_strnlen_working=yes
18977 echo "$as_me: program exited with status $ac_status" >&5
18978 echo "$as_me: failed program was:" >&5
18979 sed 's/^/| /' conftest.$ac_ext >&5
18981 ( exit $ac_status )
18982 ac_cv_func_strnlen_working=no
18984 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18987 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
18988 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
18989 test $ac_cv_func_strnlen_working = no && case $LIBOBJS in
18990 "strnlen.$ac_objext" | \
18991 *" strnlen.$ac_objext" | \
18992 "strnlen.$ac_objext "* | \
18993 *" strnlen.$ac_objext "* ) ;;
18994 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" ;;
19000 for ac_func in strnlen
19002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19003 echo "$as_me:$LINENO: checking for $ac_func" >&5
19004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19005 if eval "test \"\${$as_ac_var+set}\" = set"; then
19006 echo $ECHO_N "(cached) $ECHO_C" >&6
19008 cat >conftest.$ac_ext <<_ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h. */
19014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19016 #define $ac_func innocuous_$ac_func
19018 /* System header to define __stub macros and hopefully few prototypes,
19019 which can conflict with char $ac_func (); below.
19020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19021 <limits.h> exists even on freestanding compilers. */
19024 # include <limits.h>
19026 # include <assert.h>
19031 /* Override any gcc2 internal prototype to avoid an error. */
19036 /* We use char because int might match the return type of a gcc2
19037 builtin and then its argument prototype would still apply. */
19039 /* The GNU C library defines this for functions which it implements
19040 to always fail with ENOSYS. Some functions are actually named
19041 something starting with __ and the normal name is an alias. */
19042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19045 char (*f) () = $ac_func;
19054 return f != $ac_func;
19059 rm -f conftest.$ac_objext conftest$ac_exeext
19060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19061 (eval $ac_link) 2>conftest.er1
19063 grep -v '^ *+' conftest.er1 >conftest.err
19065 cat conftest.err >&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } &&
19068 { ac_try='test -z "$ac_c_werror_flag"
19069 || test ! -s conftest.err'
19070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19071 (eval $ac_try) 2>&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; } &&
19075 { ac_try='test -s conftest$ac_exeext'
19076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077 (eval $ac_try) 2>&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; }; then
19081 eval "$as_ac_var=yes"
19083 echo "$as_me: failed program was:" >&5
19084 sed 's/^/| /' conftest.$ac_ext >&5
19086 eval "$as_ac_var=no"
19088 rm -f conftest.err conftest.$ac_objext \
19089 conftest$ac_exeext conftest.$ac_ext
19091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19092 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19093 if test `eval echo '${'$as_ac_var'}'` = yes; then
19094 cat >>confdefs.h <<_ACEOF
19095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19102 ac_config_files="$ac_config_files Makefile"
19104 cat >confcache <<\_ACEOF
19105 # This file is a shell script that caches the results of configure
19106 # tests run on this system so they can be shared between configure
19107 # scripts and configure runs, see configure's option --config-cache.
19108 # It is not useful on other systems. If it contains results you don't
19109 # want to keep, you may remove or edit it.
19111 # config.status only pays attention to the cache file if you give it
19112 # the --recheck option to rerun configure.
19114 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19115 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19116 # following values.
19120 # The following way of writing the cache mishandles newlines in values,
19121 # but we know of no workaround that is simple, portable, and efficient.
19122 # So, don't put newlines in cache variables' values.
19123 # Ultrix sh set writes to stderr and can't be redirected directly,
19124 # and sets the high bit in the cache file unless we assign to the vars.
19127 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19129 # `set' does not quote correctly, so add quotes (double-quote
19130 # substitution turns \\\\ into \\, and sed turns \\ into \).
19133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19136 # `set' quotes correctly as required by POSIX, so do not add quotes.
19138 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19145 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19147 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19149 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19150 if test -w $cache_file; then
19151 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19152 cat confcache >$cache_file
19154 echo "not updating unwritable cache $cache_file"
19159 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19160 # Let make expand exec_prefix.
19161 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19163 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19164 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19165 # trailing colons and then remove the whole line if VPATH becomes empty
19166 # (actually we leave an empty line to preserve line numbers).
19167 if test "x$srcdir" = x.; then
19168 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19169 s/:*\$(srcdir):*/:/;
19170 s/:*\${srcdir}:*/:/;
19172 s/^\([^=]*=[ ]*\):*/\1/;
19178 DEFS=-DHAVE_CONFIG_H
19182 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19183 # 1. Remove the extension, and $U if already installed.
19184 ac_i=`echo "$ac_i" |
19185 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19187 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19188 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19190 LIBOBJS=$ac_libobjs
19192 LTLIBOBJS=$ac_ltlibobjs
19196 : ${CONFIG_STATUS=./config.status}
19197 ac_clean_files_save=$ac_clean_files
19198 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19199 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19200 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19201 cat >$CONFIG_STATUS <<_ACEOF
19203 # Generated by $as_me.
19204 # Run this file to recreate the current configuration.
19205 # Compiler output produced by configure, useful for debugging
19206 # configure, is in config.log if it exists.
19209 ac_cs_recheck=false
19211 SHELL=\${CONFIG_SHELL-$SHELL}
19214 cat >>$CONFIG_STATUS <<\_ACEOF
19215 ## --------------------- ##
19216 ## M4sh Initialization. ##
19217 ## --------------------- ##
19219 # Be Bourne compatible
19220 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19223 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19224 # is contrary to our usage. Disable this feature.
19225 alias -g '${1+"$@"}'='"$@"'
19226 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19229 DUALCASE=1; export DUALCASE # for MKS sh
19231 # Support unset when possible.
19232 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19239 # Work around bugs in pre-3.0 UWIN ksh.
19240 $as_unset ENV MAIL MAILPATH
19247 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19248 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19249 LC_TELEPHONE LC_TIME
19251 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19252 eval $as_var=C; export $as_var
19258 # Required to use basename.
19259 if expr a : '\(a\)' >/dev/null 2>&1; then
19265 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19266 as_basename=basename
19272 # Name of the executable.
19273 as_me=`$as_basename "$0" ||
19274 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19275 X"$0" : 'X\(//\)$' \| \
19276 X"$0" : 'X\(/\)$' \| \
19277 . : '\(.\)' 2>/dev/null ||
19279 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19280 /^X\/\(\/\/\)$/{ s//\1/; q; }
19281 /^X\/\(\/\).*/{ s//\1/; q; }
19285 # PATH needs CR, and LINENO needs CR and PATH.
19286 # Avoid depending upon Character Ranges.
19287 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19288 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19289 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19290 as_cr_digits='0123456789'
19291 as_cr_alnum=$as_cr_Letters$as_cr_digits
19293 # The user is always right.
19294 if test "${PATH_SEPARATOR+set}" != set; then
19295 echo "#! /bin/sh" >conf$$.sh
19296 echo "exit 0" >>conf$$.sh
19298 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19307 as_lineno_1=$LINENO
19308 as_lineno_2=$LINENO
19309 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19310 test "x$as_lineno_1" != "x$as_lineno_2" &&
19311 test "x$as_lineno_3" = "x$as_lineno_2" || {
19312 # Find who we are. Look in the path if we contain no path at all
19315 *[\\/]* ) as_myself=$0 ;;
19316 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19317 for as_dir in $PATH
19320 test -z "$as_dir" && as_dir=.
19321 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19326 # We did not find ourselves, most probably we were run as `sh COMMAND'
19327 # in which case we are not to be found in the path.
19328 if test "x$as_myself" = x; then
19331 if test ! -f "$as_myself"; then
19332 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19333 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19334 { (exit 1); exit 1; }; }
19336 case $CONFIG_SHELL in
19338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19339 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19342 test -z "$as_dir" && as_dir=.
19343 for as_base in sh bash ksh sh5; do
19346 if ("$as_dir/$as_base" -c '
19347 as_lineno_1=$LINENO
19348 as_lineno_2=$LINENO
19349 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19350 test "x$as_lineno_1" != "x$as_lineno_2" &&
19351 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19352 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19353 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19354 CONFIG_SHELL=$as_dir/$as_base
19355 export CONFIG_SHELL
19356 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19364 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19365 # uniformly replaced by the line number. The first 'sed' inserts a
19366 # line-number line before each line; the second 'sed' does the real
19367 # work. The second script uses 'N' to pair each line-number line
19368 # with the numbered line, and appends trailing '-' during
19369 # substitution so that $LINENO is not a special case at line end.
19370 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19371 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19372 sed '=' <$as_myself |
19377 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19380 s,^['$as_cr_digits']*\n,,
19381 ' >$as_me.lineno &&
19382 chmod +x $as_me.lineno ||
19383 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19384 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19385 { (exit 1); exit 1; }; }
19387 # Don't try to exec as it changes $[0], causing all sort of problems
19388 # (the dirname of $[0] is not the place where we might find the
19389 # original and so on. Autoconf is especially sensible to this).
19391 # Exit status is that of the last command.
19396 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19397 *c*,-n*) ECHO_N= ECHO_C='
19399 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19400 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19403 if expr a : '\(a\)' >/dev/null 2>&1; then
19409 rm -f conf$$ conf$$.exe conf$$.file
19411 if ln -s conf$$.file conf$$ 2>/dev/null; then
19412 # We could just check for DJGPP; but this test a) works b) is more generic
19413 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19414 if test -f conf$$.exe; then
19415 # Don't use ln at all; we don't have any links
19420 elif ln conf$$.file conf$$ 2>/dev/null; then
19425 rm -f conf$$ conf$$.exe conf$$.file
19427 if mkdir -p . 2>/dev/null; then
19430 test -d ./-p && rmdir ./-p
19434 as_executable_p="test -f"
19436 # Sed expression to map a string onto a valid CPP name.
19437 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19439 # Sed expression to map a string onto a valid variable name.
19440 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19444 # We need space, tab and new line, in precisely that order.
19454 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19455 # report actual input values of CONFIG_FILES etc. instead of their
19456 # values after options handling. Logging --version etc. is OK.
19460 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19461 ## Running $as_me. ##
19466 This file was extended by libchise $as_me 0.2.1, which was
19467 generated by GNU Autoconf 2.59. Invocation command line was
19469 CONFIG_FILES = $CONFIG_FILES
19470 CONFIG_HEADERS = $CONFIG_HEADERS
19471 CONFIG_LINKS = $CONFIG_LINKS
19472 CONFIG_COMMANDS = $CONFIG_COMMANDS
19476 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19480 # Files that config.status was made for.
19481 if test -n "$ac_config_files"; then
19482 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19485 if test -n "$ac_config_headers"; then
19486 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19489 if test -n "$ac_config_links"; then
19490 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19493 if test -n "$ac_config_commands"; then
19494 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19497 cat >>$CONFIG_STATUS <<\_ACEOF
19500 \`$as_me' instantiates files from templates according to the
19501 current configuration.
19503 Usage: $0 [OPTIONS] [FILE]...
19505 -h, --help print this help, then exit
19506 -V, --version print version number, then exit
19507 -q, --quiet do not print progress messages
19508 -d, --debug don't remove temporary files
19509 --recheck update $as_me by reconfiguring in the same conditions
19510 --file=FILE[:TEMPLATE]
19511 instantiate the configuration file FILE
19512 --header=FILE[:TEMPLATE]
19513 instantiate the configuration header FILE
19515 Configuration files:
19518 Configuration headers:
19521 Report bugs to <bug-autoconf@gnu.org>."
19524 cat >>$CONFIG_STATUS <<_ACEOF
19526 libchise config.status 0.2.1
19527 configured by $0, generated by GNU Autoconf 2.59,
19528 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19530 Copyright (C) 2003 Free Software Foundation, Inc.
19531 This config.status script is free software; the Free Software Foundation
19532 gives unlimited permission to copy, distribute and modify it."
19536 cat >>$CONFIG_STATUS <<\_ACEOF
19537 # If no file are specified by the user, then we need to provide default
19538 # value. By we need to know if files were specified by the user.
19544 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19545 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19553 *) # This is not an option, so the user has probably given explicit
19556 ac_need_defaults=false;;
19560 # Handling of the options.
19562 cat >>$CONFIG_STATUS <<\_ACEOF
19563 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19565 --version | --vers* | -V )
19566 echo "$ac_cs_version"; exit 0 ;;
19568 # Conflict between --help and --header
19569 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19570 Try \`$0 --help' for more information." >&5
19571 echo "$as_me: error: ambiguous option: $1
19572 Try \`$0 --help' for more information." >&2;}
19573 { (exit 1); exit 1; }; };;
19574 --help | --hel | -h )
19575 echo "$ac_cs_usage"; exit 0 ;;
19576 --debug | --d* | -d )
19578 --file | --fil | --fi | --f )
19580 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19581 ac_need_defaults=false;;
19582 --header | --heade | --head | --hea )
19584 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19585 ac_need_defaults=false;;
19586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19587 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19590 # This is an error.
19591 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19592 Try \`$0 --help' for more information." >&5
19593 echo "$as_me: error: unrecognized option: $1
19594 Try \`$0 --help' for more information." >&2;}
19595 { (exit 1); exit 1; }; } ;;
19597 *) ac_config_targets="$ac_config_targets $1" ;;
19603 ac_configure_extra_args=
19605 if $ac_cs_silent; then
19607 ac_configure_extra_args="$ac_configure_extra_args --silent"
19611 cat >>$CONFIG_STATUS <<_ACEOF
19612 if \$ac_cs_recheck; then
19613 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19614 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19623 cat >>$CONFIG_STATUS <<\_ACEOF
19624 for ac_config_target in $ac_config_targets
19626 case "$ac_config_target" in
19627 # Handling of arguments.
19628 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19629 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19630 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19631 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19632 { (exit 1); exit 1; }; };;
19636 # If the user did not use the arguments to specify the items to instantiate,
19637 # then the envvar interface is used. Set only those that are not.
19638 # We use the long form for the default assignment because of an extremely
19639 # bizarre bug on SunOS 4.1.3.
19640 if $ac_need_defaults; then
19641 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19642 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19645 # Have a temporary directory for convenience. Make it in the build tree
19646 # simply because there is no reason to put it here, and in addition,
19647 # creating and moving files from /tmp can sometimes cause problems.
19648 # Create a temporary directory, and hook for its removal unless debugging.
19651 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19652 trap '{ (exit 1); exit 1; }' 1 2 13 15
19655 # Create a (secure) tmp directory for tmp files.
19658 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19659 test -n "$tmp" && test -d "$tmp"
19662 tmp=./confstat$$-$RANDOM
19663 (umask 077 && mkdir $tmp)
19666 echo "$me: cannot create a temporary directory in ." >&2
19667 { (exit 1); exit 1; }
19672 cat >>$CONFIG_STATUS <<_ACEOF
19675 # CONFIG_FILES section.
19678 # No need to generate the scripts if there are no CONFIG_FILES.
19679 # This happens for instance when ./config.status config.h
19680 if test -n "\$CONFIG_FILES"; then
19681 # Protect against being on the right side of a sed subst in config.status.
19682 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19683 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19684 s,@SHELL@,$SHELL,;t t
19685 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19686 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19687 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19688 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19689 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19690 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19691 s,@exec_prefix@,$exec_prefix,;t t
19692 s,@prefix@,$prefix,;t t
19693 s,@program_transform_name@,$program_transform_name,;t t
19694 s,@bindir@,$bindir,;t t
19695 s,@sbindir@,$sbindir,;t t
19696 s,@libexecdir@,$libexecdir,;t t
19697 s,@datadir@,$datadir,;t t
19698 s,@sysconfdir@,$sysconfdir,;t t
19699 s,@sharedstatedir@,$sharedstatedir,;t t
19700 s,@localstatedir@,$localstatedir,;t t
19701 s,@libdir@,$libdir,;t t
19702 s,@includedir@,$includedir,;t t
19703 s,@oldincludedir@,$oldincludedir,;t t
19704 s,@infodir@,$infodir,;t t
19705 s,@mandir@,$mandir,;t t
19706 s,@build_alias@,$build_alias,;t t
19707 s,@host_alias@,$host_alias,;t t
19708 s,@target_alias@,$target_alias,;t t
19709 s,@DEFS@,$DEFS,;t t
19710 s,@ECHO_C@,$ECHO_C,;t t
19711 s,@ECHO_N@,$ECHO_N,;t t
19712 s,@ECHO_T@,$ECHO_T,;t t
19713 s,@LIBS@,$LIBS,;t t
19714 s,@build@,$build,;t t
19715 s,@build_cpu@,$build_cpu,;t t
19716 s,@build_vendor@,$build_vendor,;t t
19717 s,@build_os@,$build_os,;t t
19718 s,@host@,$host,;t t
19719 s,@host_cpu@,$host_cpu,;t t
19720 s,@host_vendor@,$host_vendor,;t t
19721 s,@host_os@,$host_os,;t t
19722 s,@target@,$target,;t t
19723 s,@target_cpu@,$target_cpu,;t t
19724 s,@target_vendor@,$target_vendor,;t t
19725 s,@target_os@,$target_os,;t t
19727 s,@CFLAGS@,$CFLAGS,;t t
19728 s,@LDFLAGS@,$LDFLAGS,;t t
19729 s,@CPPFLAGS@,$CPPFLAGS,;t t
19730 s,@ac_ct_CC@,$ac_ct_CC,;t t
19731 s,@EXEEXT@,$EXEEXT,;t t
19732 s,@OBJEXT@,$OBJEXT,;t t
19733 s,@EGREP@,$EGREP,;t t
19734 s,@LN_S@,$LN_S,;t t
19735 s,@ECHO@,$ECHO,;t t
19737 s,@ac_ct_AR@,$ac_ct_AR,;t t
19738 s,@RANLIB@,$RANLIB,;t t
19739 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19740 s,@STRIP@,$STRIP,;t t
19741 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19744 s,@CXXFLAGS@,$CXXFLAGS,;t t
19745 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19746 s,@CXXCPP@,$CXXCPP,;t t
19748 s,@FFLAGS@,$FFLAGS,;t t
19749 s,@ac_ct_F77@,$ac_ct_F77,;t t
19750 s,@LIBTOOL@,$LIBTOOL,;t t
19751 s,@ALLOCA@,$ALLOCA,;t t
19752 s,@LIBOBJS@,$LIBOBJS,;t t
19753 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19758 cat >>$CONFIG_STATUS <<\_ACEOF
19759 # Split the substitutions into bite-sized pieces for seds with
19760 # small command number limits, like on Digital OSF/1 and HP-UX.
19761 ac_max_sed_lines=48
19762 ac_sed_frag=1 # Number of current file.
19763 ac_beg=1 # First line for current file.
19764 ac_end=$ac_max_sed_lines # Line after last line for current file.
19767 while $ac_more_lines; do
19768 if test $ac_beg -gt 1; then
19769 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19771 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19773 if test ! -s $tmp/subs.frag; then
19774 ac_more_lines=false
19776 # The purpose of the label and of the branching condition is to
19777 # speed up the sed processing (if there are no `@' at all, there
19778 # is no need to browse any of the substitutions).
19779 # These are the two extra sed commands mentioned above.
19781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19782 if test -z "$ac_sed_cmds"; then
19783 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19785 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19787 ac_sed_frag=`expr $ac_sed_frag + 1`
19789 ac_end=`expr $ac_end + $ac_max_sed_lines`
19792 if test -z "$ac_sed_cmds"; then
19795 fi # test -n "$CONFIG_FILES"
19798 cat >>$CONFIG_STATUS <<\_ACEOF
19799 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19800 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19802 - | *:- | *:-:* ) # input from stdin
19804 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19805 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19806 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19807 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19808 * ) ac_file_in=$ac_file.in ;;
19811 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19812 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19813 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19814 X"$ac_file" : 'X\(//\)[^/]' \| \
19815 X"$ac_file" : 'X\(//\)$' \| \
19816 X"$ac_file" : 'X\(/\)' \| \
19817 . : '\(.\)' 2>/dev/null ||
19819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19820 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19821 /^X\(\/\/\)$/{ s//\1/; q; }
19822 /^X\(\/\).*/{ s//\1/; q; }
19824 { if $as_mkdir_p; then
19829 while test ! -d "$as_dir"; do
19830 as_dirs="$as_dir $as_dirs"
19831 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19833 X"$as_dir" : 'X\(//\)[^/]' \| \
19834 X"$as_dir" : 'X\(//\)$' \| \
19835 X"$as_dir" : 'X\(/\)' \| \
19836 . : '\(.\)' 2>/dev/null ||
19838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19839 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19840 /^X\(\/\/\)$/{ s//\1/; q; }
19841 /^X\(\/\).*/{ s//\1/; q; }
19844 test ! -n "$as_dirs" || mkdir $as_dirs
19845 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19846 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19847 { (exit 1); exit 1; }; }; }
19851 if test "$ac_dir" != .; then
19852 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19853 # A "../" for each directory in $ac_dir_suffix.
19854 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19856 ac_dir_suffix= ac_top_builddir=
19860 .) # No --srcdir option. We are building in place.
19862 if test -z "$ac_top_builddir"; then
19865 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19867 [\\/]* | ?:[\\/]* ) # Absolute path.
19868 ac_srcdir=$srcdir$ac_dir_suffix;
19869 ac_top_srcdir=$srcdir ;;
19870 *) # Relative path.
19871 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19872 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19875 # Do not use `cd foo && pwd` to compute absolute paths, because
19876 # the directories may not exist.
19878 .) ac_abs_builddir="$ac_dir";;
19881 .) ac_abs_builddir=`pwd`;;
19882 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19883 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19886 case $ac_abs_builddir in
19887 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19889 case ${ac_top_builddir}. in
19890 .) ac_abs_top_builddir=$ac_abs_builddir;;
19891 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19892 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19895 case $ac_abs_builddir in
19896 .) ac_abs_srcdir=$ac_srcdir;;
19899 .) ac_abs_srcdir=$ac_abs_builddir;;
19900 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19901 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19904 case $ac_abs_builddir in
19905 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19907 case $ac_top_srcdir in
19908 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19909 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19910 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19916 if test x"$ac_file" != x-; then
19917 { echo "$as_me:$LINENO: creating $ac_file" >&5
19918 echo "$as_me: creating $ac_file" >&6;}
19921 # Let's still pretend it is `configure' which instantiates (i.e., don't
19922 # use $as_me), people would be surprised to read:
19923 # /* config.h. Generated by config.status. */
19924 if test x"$ac_file" = x-; then
19927 configure_input="$ac_file. "
19929 configure_input=$configure_input"Generated from `echo $ac_file_in |
19930 sed 's,.*/,,'` by configure."
19932 # First look for the input files in the build tree, otherwise in the
19934 ac_file_inputs=`IFS=:
19935 for f in $ac_file_in; do
19937 -) echo $tmp/stdin ;;
19939 # Absolute (can't be DOS-style, as IFS=:)
19940 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19941 echo "$as_me: error: cannot find input file: $f" >&2;}
19942 { (exit 1); exit 1; }; }
19945 if test -f "$f"; then
19948 elif test -f "$srcdir/$f"; then
19953 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19954 echo "$as_me: error: cannot find input file: $f" >&2;}
19955 { (exit 1); exit 1; }; }
19958 done` || { (exit 1); exit 1; }
19960 cat >>$CONFIG_STATUS <<_ACEOF
19964 cat >>$CONFIG_STATUS <<\_ACEOF
19966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19967 s,@configure_input@,$configure_input,;t t
19968 s,@srcdir@,$ac_srcdir,;t t
19969 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19970 s,@top_srcdir@,$ac_top_srcdir,;t t
19971 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19972 s,@builddir@,$ac_builddir,;t t
19973 s,@abs_builddir@,$ac_abs_builddir,;t t
19974 s,@top_builddir@,$ac_top_builddir,;t t
19975 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19976 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19978 if test x"$ac_file" != x-; then
19979 mv $tmp/out $ac_file
19987 cat >>$CONFIG_STATUS <<\_ACEOF
19990 # CONFIG_HEADER section.
19993 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19994 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19996 # ac_d sets the value in "#define NAME VALUE" lines.
19997 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19998 ac_dB='[ ].*$,\1#\2'
20001 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20002 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20003 ac_uB='$,\1#\2define\3'
20007 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20008 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20010 - | *:- | *:-:* ) # input from stdin
20012 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20013 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20014 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20015 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20016 * ) ac_file_in=$ac_file.in ;;
20019 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20020 echo "$as_me: creating $ac_file" >&6;}
20022 # First look for the input files in the build tree, otherwise in the
20024 ac_file_inputs=`IFS=:
20025 for f in $ac_file_in; do
20027 -) echo $tmp/stdin ;;
20029 # Absolute (can't be DOS-style, as IFS=:)
20030 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20031 echo "$as_me: error: cannot find input file: $f" >&2;}
20032 { (exit 1); exit 1; }; }
20033 # Do quote $f, to prevent DOS paths from being IFS'd.
20036 if test -f "$f"; then
20039 elif test -f "$srcdir/$f"; then
20044 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20045 echo "$as_me: error: cannot find input file: $f" >&2;}
20046 { (exit 1); exit 1; }; }
20049 done` || { (exit 1); exit 1; }
20050 # Remove the trailing spaces.
20051 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20055 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20056 # `conftest.undefs', that substitutes the proper values into
20057 # config.h.in to produce config.h. The first handles `#define'
20058 # templates, and the second `#undef' templates.
20059 # And first: Protect against being on the right side of a sed subst in
20060 # config.status. Protect against being in an unquoted here document
20061 # in config.status.
20062 rm -f conftest.defines conftest.undefs
20063 # Using a here document instead of a string reduces the quoting nightmare.
20064 # Putting comments in sed scripts is not portable.
20066 # `end' is used to avoid that the second main sed command (meant for
20067 # 0-ary CPP macros) applies to n-ary macro definitions.
20068 # See the Autoconf documentation for `clear'.
20069 cat >confdef2sed.sed <<\_ACEOF
20074 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20076 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20079 # If some macros were called several times there might be several times
20080 # the same #defines, which is useless. Nevertheless, we may not want to
20081 # sort them, since we want the *last* AC-DEFINE to be honored.
20082 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20083 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20084 rm -f confdef2sed.sed
20086 # This sed command replaces #undef with comments. This is necessary, for
20087 # example, in the case of _POSIX_SOURCE, which is predefined and required
20088 # on some systems where configure will not decide to define it.
20089 cat >>conftest.undefs <<\_ACEOF
20090 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20093 # Break up conftest.defines because some shells have a limit on the size
20094 # of here documents, and old seds have small limits too (100 cmds).
20095 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20096 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20097 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20098 echo ' :' >>$CONFIG_STATUS
20099 rm -f conftest.tail
20100 while grep . conftest.defines >/dev/null
20102 # Write a limited-size here document to $tmp/defines.sed.
20103 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20104 # Speed up: don't consider the non `#define' lines.
20105 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20106 # Work around the forget-to-reset-the-flag bug.
20107 echo 't clr' >>$CONFIG_STATUS
20108 echo ': clr' >>$CONFIG_STATUS
20109 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20111 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20113 mv $tmp/out $tmp/in
20115 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20116 rm -f conftest.defines
20117 mv conftest.tail conftest.defines
20119 rm -f conftest.defines
20120 echo ' fi # grep' >>$CONFIG_STATUS
20121 echo >>$CONFIG_STATUS
20123 # Break up conftest.undefs because some shells have a limit on the size
20124 # of here documents, and old seds have small limits too (100 cmds).
20125 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20126 rm -f conftest.tail
20127 while grep . conftest.undefs >/dev/null
20129 # Write a limited-size here document to $tmp/undefs.sed.
20130 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20131 # Speed up: don't consider the non `#undef'
20132 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20133 # Work around the forget-to-reset-the-flag bug.
20134 echo 't clr' >>$CONFIG_STATUS
20135 echo ': clr' >>$CONFIG_STATUS
20136 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20138 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20140 mv $tmp/out $tmp/in
20142 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20143 rm -f conftest.undefs
20144 mv conftest.tail conftest.undefs
20146 rm -f conftest.undefs
20148 cat >>$CONFIG_STATUS <<\_ACEOF
20149 # Let's still pretend it is `configure' which instantiates (i.e., don't
20150 # use $as_me), people would be surprised to read:
20151 # /* config.h. Generated by config.status. */
20152 if test x"$ac_file" = x-; then
20153 echo "/* Generated by configure. */" >$tmp/config.h
20155 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20157 cat $tmp/in >>$tmp/config.h
20159 if test x"$ac_file" != x-; then
20160 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20161 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20162 echo "$as_me: $ac_file is unchanged" >&6;}
20164 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20165 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20166 X"$ac_file" : 'X\(//\)[^/]' \| \
20167 X"$ac_file" : 'X\(//\)$' \| \
20168 X"$ac_file" : 'X\(/\)' \| \
20169 . : '\(.\)' 2>/dev/null ||
20171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20172 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20173 /^X\(\/\/\)$/{ s//\1/; q; }
20174 /^X\(\/\).*/{ s//\1/; q; }
20176 { if $as_mkdir_p; then
20181 while test ! -d "$as_dir"; do
20182 as_dirs="$as_dir $as_dirs"
20183 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20184 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20185 X"$as_dir" : 'X\(//\)[^/]' \| \
20186 X"$as_dir" : 'X\(//\)$' \| \
20187 X"$as_dir" : 'X\(/\)' \| \
20188 . : '\(.\)' 2>/dev/null ||
20190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20192 /^X\(\/\/\)$/{ s//\1/; q; }
20193 /^X\(\/\).*/{ s//\1/; q; }
20196 test ! -n "$as_dirs" || mkdir $as_dirs
20197 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20198 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20199 { (exit 1); exit 1; }; }; }
20202 mv $tmp/config.h $ac_file
20206 rm -f $tmp/config.h
20211 cat >>$CONFIG_STATUS <<\_ACEOF
20213 { (exit 0); exit 0; }
20215 chmod +x $CONFIG_STATUS
20216 ac_clean_files=$ac_clean_files_save
20219 # configure is writing to config.log, and then calls config.status.
20220 # config.status does its own redirection, appending to config.log.
20221 # Unfortunately, on DOS this fails, as config.log is still kept open
20222 # by configure, so config.status won't be able to write to it; its
20223 # output is simply discarded. So we exec the FD to /dev/null,
20224 # effectively closing config.log, so it can be properly (re)opened and
20225 # appended to by config.status. When coming back to configure, we
20226 # need to make the FD available again.
20227 if test "$no_create" != yes; then
20229 ac_config_status_args=
20230 test "$silent" = yes &&
20231 ac_config_status_args="$ac_config_status_args --quiet"
20233 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20235 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20236 # would make configure fail if this is the last instruction.
20237 $ac_cs_success || { (exit 1); exit 1; }