2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for zlib 1.2.1.1.
5 # Report bugs to <rpm-list@redhat.com>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 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.
425 PACKAGE_TARNAME='zlib'
426 PACKAGE_VERSION='1.2.1.1'
427 PACKAGE_STRING='zlib 1.2.1.1'
428 PACKAGE_BUGREPORT='rpm-list@redhat.com'
430 ac_unique_file="gzio.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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL 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 zlib 1.2.1.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 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018 --target=TARGET configure for building compilers for TARGET [HOST]
1022 if test -n "$ac_init_help"; then
1023 case $ac_init_help in
1024 short | recursive ) echo "Configuration of zlib 1.2.1.1:";;
1029 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1030 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1031 --disable-dependency-tracking speeds up one-time build
1032 --enable-dependency-tracking do not reject slow dependency extractors
1033 --enable-shared[=PKGS]
1034 build shared libraries [default=yes]
1035 --enable-static[=PKGS]
1036 build static libraries [default=yes]
1037 --enable-fast-install[=PKGS]
1038 optimize for fast installation [default=yes]
1039 --disable-libtool-lock avoid locking (might break parallel builds)
1040 --disable-largefile omit support for large files
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1049 include additional configurations [automatic]
1051 Some influential environment variables:
1052 CC C compiler command
1053 CFLAGS C compiler flags
1054 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1055 nonstandard directory <lib dir>
1056 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057 headers in a nonstandard directory <include dir>
1059 CXX C++ compiler command
1060 CXXFLAGS C++ compiler flags
1061 CXXCPP C++ preprocessor
1062 F77 Fortran 77 compiler command
1063 FFLAGS Fortran 77 compiler flags
1065 Use these variables to override the choices made by `configure' or to help
1066 it to find libraries and programs with nonstandard names/locations.
1068 Report bugs to <rpm-list@redhat.com>.
1072 if test "$ac_init_help" = "recursive"; then
1073 # If there are subdirs, report their specific --help.
1075 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1076 test -d $ac_dir || continue
1079 if test "$ac_dir" != .; then
1080 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1081 # A "../" for each directory in $ac_dir_suffix.
1082 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084 ac_dir_suffix= ac_top_builddir=
1088 .) # No --srcdir option. We are building in place.
1090 if test -z "$ac_top_builddir"; then
1093 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095 [\\/]* | ?:[\\/]* ) # Absolute path.
1096 ac_srcdir=$srcdir$ac_dir_suffix;
1097 ac_top_srcdir=$srcdir ;;
1099 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1100 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103 # Do not use `cd foo && pwd` to compute absolute paths, because
1104 # the directories may not exist.
1106 .) ac_abs_builddir="$ac_dir";;
1109 .) ac_abs_builddir=`pwd`;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1111 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1114 case $ac_abs_builddir in
1115 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1117 case ${ac_top_builddir}. in
1118 .) ac_abs_top_builddir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1123 case $ac_abs_builddir in
1124 .) ac_abs_srcdir=$ac_srcdir;;
1127 .) ac_abs_srcdir=$ac_abs_builddir;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1129 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1132 case $ac_abs_builddir in
1133 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1135 case $ac_top_srcdir in
1136 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143 # Check for guested configure; otherwise get Cygnus style configure.
1144 if test -f $ac_srcdir/configure.gnu; then
1146 $SHELL $ac_srcdir/configure.gnu --help=recursive
1147 elif test -f $ac_srcdir/configure; then
1149 $SHELL $ac_srcdir/configure --help=recursive
1150 elif test -f $ac_srcdir/configure.ac ||
1151 test -f $ac_srcdir/configure.in; then
1153 $ac_configure --help
1155 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1161 test -n "$ac_init_help" && exit 0
1162 if $ac_init_version; then
1164 zlib configure 1.2.1.1
1165 generated by GNU Autoconf 2.59
1167 Copyright (C) 2003 Free Software Foundation, Inc.
1168 This configure script is free software; the Free Software Foundation
1169 gives unlimited permission to copy, distribute and modify it.
1175 This file contains any messages produced by compilers while
1176 running configure, to aid debugging if configure makes a mistake.
1178 It was created by zlib $as_me 1.2.1.1, which was
1179 generated by GNU Autoconf 2.59. Invocation command line was
1190 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1191 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1192 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1193 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1194 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1196 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1197 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1199 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1200 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1201 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1202 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1203 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1204 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1205 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1213 test -z "$as_dir" && as_dir=.
1214 echo "PATH: $as_dir"
1229 # Keep a trace of the command line.
1230 # Strip out --no-create and --no-recursion so they do not pile up.
1231 # Strip out --silent because we don't want to record it for future runs.
1232 # Also quote any args containing shell meta-characters.
1233 # Make two passes to allow for proper duplicate-argument suppression.
1238 ac_must_keep_next=false
1244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246 | -silent | --silent | --silen | --sile | --sil)
1248 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1249 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1254 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1255 if test $ac_must_keep_next = true; then
1256 ac_must_keep_next=false # Got value, back to normal.
1259 *=* | --config-cache | -C | -disable-* | --disable-* \
1260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1262 | -with-* | --with-* | -without-* | --without-* | --x)
1263 case "$ac_configure_args0 " in
1264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267 -* ) ac_must_keep_next=true ;;
1270 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1271 # Get rid of the leading space.
1277 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1278 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1280 # When interrupted or exit'd, cleanup temporary files, and complete
1281 # config.log. We remove comments because anyway the quotes in there
1282 # would cause problems or look ugly.
1283 # WARNING: Be sure not to use single quotes in there, as some shells,
1284 # such as our DU 5.0 friend, will then `close' the trap.
1285 trap 'exit_status=$?
1286 # Save into config.log some information that might help in debugging.
1291 ## ---------------- ##
1292 ## Cache variables. ##
1293 ## ---------------- ##
1296 # The following way of writing the cache mishandles newlines in values,
1299 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1314 ## ----------------- ##
1315 ## Output variables. ##
1316 ## ----------------- ##
1319 for ac_var in $ac_subst_vars
1321 eval ac_val=$`echo $ac_var`
1322 echo "$ac_var='"'"'$ac_val'"'"'"
1326 if test -n "$ac_subst_files"; then
1333 for ac_var in $ac_subst_files
1335 eval ac_val=$`echo $ac_var`
1336 echo "$ac_var='"'"'$ac_val'"'"'"
1341 if test -s confdefs.h; then
1348 sed "/^$/d" confdefs.h | sort
1351 test "$ac_signal" != 0 &&
1352 echo "$as_me: caught signal $ac_signal"
1353 echo "$as_me: exit $exit_status"
1355 rm -f core *.core &&
1356 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1359 for ac_signal in 1 2 13 15; do
1360 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1364 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1365 rm -rf conftest* confdefs.h
1366 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369 # Predefined preprocessor variables.
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_NAME "$PACKAGE_NAME"
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_STRING "$PACKAGE_STRING"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1396 # Let the site file select an alternate cache file if it wants to.
1397 # Prefer explicitly selected file to automatically selected ones.
1398 if test -z "$CONFIG_SITE"; then
1399 if test "x$prefix" != xNONE; then
1400 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1402 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405 for ac_site_file in $CONFIG_SITE; do
1406 if test -r "$ac_site_file"; then
1407 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1408 echo "$as_me: loading site script $ac_site_file" >&6;}
1409 sed 's/^/| /' "$ac_site_file" >&5
1414 if test -r "$cache_file"; then
1415 # Some versions of bash will fail to source /dev/null (special
1416 # files actually), so we avoid doing that.
1417 if test -f "$cache_file"; then
1418 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1419 echo "$as_me: loading cache $cache_file" >&6;}
1421 [\\/]* | ?:[\\/]* ) . $cache_file;;
1422 *) . ./$cache_file;;
1426 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1427 echo "$as_me: creating cache $cache_file" >&6;}
1431 # Check that the precious variables saved in the cache have kept the same
1433 ac_cache_corrupted=false
1434 for ac_var in `(set) 2>&1 |
1435 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1436 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1437 eval ac_new_set=\$ac_env_${ac_var}_set
1438 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1439 eval ac_new_val="\$ac_env_${ac_var}_value"
1440 case $ac_old_set,$ac_new_set in
1442 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1443 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1444 ac_cache_corrupted=: ;;
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1451 if test "x$ac_old_val" != "x$ac_new_val"; then
1452 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1453 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1454 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1455 echo "$as_me: former value: $ac_old_val" >&2;}
1456 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1457 echo "$as_me: current value: $ac_new_val" >&2;}
1458 ac_cache_corrupted=:
1461 # Pass precious variables to config.status.
1462 if test "$ac_new_set" = set; then
1464 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1465 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1466 *) ac_arg=$ac_var=$ac_new_val ;;
1468 case " $ac_configure_args " in
1469 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1470 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1474 if $ac_cache_corrupted; then
1475 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1476 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1477 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1478 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1479 { (exit 1); exit 1; }; }
1483 ac_cpp='$CPP $CPPFLAGS'
1484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1515 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1516 if test -f $ac_dir/install-sh; then
1518 ac_install_sh="$ac_aux_dir/install-sh -c"
1520 elif test -f $ac_dir/install.sh; then
1522 ac_install_sh="$ac_aux_dir/install.sh -c"
1524 elif test -f $ac_dir/shtool; then
1526 ac_install_sh="$ac_aux_dir/shtool install -c"
1530 if test -z "$ac_aux_dir"; then
1531 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1532 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1533 { (exit 1); exit 1; }; }
1535 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1536 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1537 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1539 # Make sure we can run config.sub.
1540 $ac_config_sub sun4 >/dev/null 2>&1 ||
1541 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1542 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1543 { (exit 1); exit 1; }; }
1545 echo "$as_me:$LINENO: checking build system type" >&5
1546 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1547 if test "${ac_cv_build+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 ac_cv_build_alias=$build_alias
1551 test -z "$ac_cv_build_alias" &&
1552 ac_cv_build_alias=`$ac_config_guess`
1553 test -z "$ac_cv_build_alias" &&
1554 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1555 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1556 { (exit 1); exit 1; }; }
1557 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1558 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1559 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1560 { (exit 1); exit 1; }; }
1563 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1564 echo "${ECHO_T}$ac_cv_build" >&6
1566 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1567 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1568 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1571 echo "$as_me:$LINENO: checking host system type" >&5
1572 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1573 if test "${ac_cv_host+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1576 ac_cv_host_alias=$host_alias
1577 test -z "$ac_cv_host_alias" &&
1578 ac_cv_host_alias=$ac_cv_build_alias
1579 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1580 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1581 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1582 { (exit 1); exit 1; }; }
1585 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1586 echo "${ECHO_T}$ac_cv_host" >&6
1588 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1589 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1590 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593 echo "$as_me:$LINENO: checking target system type" >&5
1594 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1595 if test "${ac_cv_target+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 ac_cv_target_alias=$target_alias
1599 test "x$ac_cv_target_alias" = "x" &&
1600 ac_cv_target_alias=$ac_cv_host_alias
1601 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1602 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1603 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1604 { (exit 1); exit 1; }; }
1607 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1608 echo "${ECHO_T}$ac_cv_target" >&6
1609 target=$ac_cv_target
1610 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1611 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1612 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1615 # The aliases save the names the user supplied, while $host etc.
1616 # will get canonicalized.
1617 test -n "$target_alias" &&
1618 test "$program_prefix$program_suffix$program_transform_name" = \
1620 program_prefix=${target_alias}-
1622 ac_config_headers="$ac_config_headers config.h"
1624 am__api_version="1.9"
1625 # Find a good install program. We prefer a C program (faster),
1626 # so one script is as good as another. But avoid the broken or
1627 # incompatible versions:
1628 # SysV /etc/install, /usr/sbin/install
1629 # SunOS /usr/etc/install
1630 # IRIX /sbin/install
1632 # AmigaOS /C/install, which installs bootblocks on floppy discs
1633 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1634 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1635 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1636 # OS/2's system install, which has a completely different semantic
1637 # ./install, which can be erroneously created by make from ./install.sh.
1638 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1639 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1640 if test -z "$INSTALL"; then
1641 if test "${ac_cv_path_install+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 test -z "$as_dir" && as_dir=.
1649 # Account for people who put trailing slashes in PATH elements.
1651 ./ | .// | /cC/* | \
1652 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1653 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1656 # OSF1 and SCO ODT 3.0 have their own names for install.
1657 # Don't use installbsd from OSF since it installs stuff as root
1659 for ac_prog in ginstall scoinst install; do
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1662 if test $ac_prog = install &&
1663 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1664 # AIX install. It has an incompatible calling convention.
1666 elif test $ac_prog = install &&
1667 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1668 # program-specific install script used by HP pwplus--don't use.
1671 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1683 if test "${ac_cv_path_install+set}" = set; then
1684 INSTALL=$ac_cv_path_install
1686 # As a last resort, use the slow shell script. We don't cache a
1687 # path for INSTALL within a source directory, because that will
1688 # break other packages using the cache if that directory is
1689 # removed, or if the path is relative.
1690 INSTALL=$ac_install_sh
1693 echo "$as_me:$LINENO: result: $INSTALL" >&5
1694 echo "${ECHO_T}$INSTALL" >&6
1696 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1697 # It thinks the first close brace ends the variable substitution.
1698 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1700 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1702 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1704 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1705 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1708 echo timestamp > conftest.file
1709 # Do `set' in a subshell so we don't clobber the current shell's
1710 # arguments. Must try -L first in case configure is actually a
1711 # symlink; some systems play weird games with the mod time of symlinks
1712 # (eg FreeBSD returns the mod time of the symlink's containing
1715 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1716 if test "$*" = "X"; then
1718 set X `ls -t $srcdir/configure conftest.file`
1721 if test "$*" != "X $srcdir/configure conftest.file" \
1722 && test "$*" != "X conftest.file $srcdir/configure"; then
1724 # If neither matched, then we have a broken ls. This can happen
1725 # if, for instance, CONFIG_SHELL is bash and it inherits a
1726 # broken ls alias from the environment. This has actually
1727 # happened. Such a system could not be considered "sane".
1728 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1729 alias in your environment" >&5
1730 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1731 alias in your environment" >&2;}
1732 { (exit 1); exit 1; }; }
1735 test "$2" = conftest.file
1741 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1742 Check your system clock" >&5
1743 echo "$as_me: error: newly created file is older than distributed files!
1744 Check your system clock" >&2;}
1745 { (exit 1); exit 1; }; }
1747 echo "$as_me:$LINENO: result: yes" >&5
1748 echo "${ECHO_T}yes" >&6
1749 test "$program_prefix" != NONE &&
1750 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1751 # Use a double $ so make ignores it.
1752 test "$program_suffix" != NONE &&
1753 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1754 # Double any \ or $. echo might interpret backslashes.
1755 # By default was `s,x,x', remove it if useless.
1756 cat <<\_ACEOF >conftest.sed
1757 s/[\\$]/&&/g;s/;s,x,x,$//
1759 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1762 # expand $ac_aux_dir to an absolute path
1763 am_aux_dir=`cd $ac_aux_dir && pwd`
1765 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1766 # Use eval to expand $SHELL
1767 if eval "$MISSING --run true"; then
1768 am_missing_run="$MISSING --run "
1771 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1772 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1775 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1776 # We used to keeping the `.' as first argument, in order to
1777 # allow $(mkdir_p) to be used without argument. As in
1778 # $(mkdir_p) $(somedir)
1779 # where $(somedir) is conditionally defined. However this is wrong
1781 # 1. if the package is installed by a user who cannot write `.'
1782 # make install will fail,
1783 # 2. the above comment should most certainly read
1784 # $(mkdir_p) $(DESTDIR)$(somedir)
1785 # so it does not work when $(somedir) is undefined and
1786 # $(DESTDIR) is not.
1787 # To support the latter case, we have to write
1788 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1789 # so the `.' trick is pointless.
1790 mkdir_p='mkdir -p --'
1792 # On NextStep and OpenStep, the `mkdir' command does not
1793 # recognize any option. It will interpret all options as
1794 # directories to create, and then abort because `.' already
1796 for d in ./-p ./--version;
1798 test -d $d && rmdir $d
1800 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1801 if test -f "$ac_aux_dir/mkinstalldirs"; then
1802 mkdir_p='$(mkinstalldirs)'
1804 mkdir_p='$(install_sh) -d'
1808 for ac_prog in gawk mawk nawk awk
1810 # Extract the first word of "$ac_prog", so it can be a program name with args.
1811 set dummy $ac_prog; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_AWK+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 if test -n "$AWK"; then
1818 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824 test -z "$as_dir" && as_dir=.
1825 for ac_exec_ext in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_AWK="$ac_prog"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837 if test -n "$AWK"; then
1838 echo "$as_me:$LINENO: result: $AWK" >&5
1839 echo "${ECHO_T}$AWK" >&6
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1845 test -n "$AWK" && break
1848 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1849 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1850 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1851 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 cat >conftest.make <<\_ACEOF
1856 @echo 'ac_maketemp="$(MAKE)"'
1858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1859 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1860 if test -n "$ac_maketemp"; then
1861 eval ac_cv_prog_make_${ac_make}_set=yes
1863 eval ac_cv_prog_make_${ac_make}_set=no
1867 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1868 echo "$as_me:$LINENO: result: yes" >&5
1869 echo "${ECHO_T}yes" >&6
1872 echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1874 SET_MAKE="MAKE=${MAKE-make}"
1877 rm -rf .tst 2>/dev/null
1878 mkdir .tst 2>/dev/null
1879 if test -d .tst; then
1884 rmdir .tst 2>/dev/null
1886 # test to see if srcdir already configured
1887 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1888 test -f $srcdir/config.status; then
1889 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1890 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1891 { (exit 1); exit 1; }; }
1894 # test whether we have cygpath
1895 if test -z "$CYGPATH_W"; then
1896 if (cygpath --version) >/dev/null 2>/dev/null; then
1897 CYGPATH_W='cygpath -w'
1904 # Define the identity of the package.
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE "$PACKAGE"
1914 cat >>confdefs.h <<_ACEOF
1915 #define VERSION "$VERSION"
1918 # Some tools Automake needs.
1920 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1923 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1926 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1929 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1932 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1934 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1936 # Installed binaries are usually stripped using `strip' when the user
1937 # run `make install-strip'. However `strip' might not be the right
1938 # tool to use in cross-compilation environments, therefore Automake
1939 # will honor the `STRIP' environment variable to overrule this program.
1940 if test "$cross_compiling" != no; then
1941 if test -n "$ac_tool_prefix"; then
1942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1943 set dummy ${ac_tool_prefix}strip; ac_word=$2
1944 echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946 if test "${ac_cv_prog_STRIP+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 if test -n "$STRIP"; then
1950 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 test -z "$as_dir" && as_dir=.
1957 for ac_exec_ext in '' $ac_executable_extensions; do
1958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968 STRIP=$ac_cv_prog_STRIP
1969 if test -n "$STRIP"; then
1970 echo "$as_me:$LINENO: result: $STRIP" >&5
1971 echo "${ECHO_T}$STRIP" >&6
1973 echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6
1978 if test -z "$ac_cv_prog_STRIP"; then
1980 # Extract the first word of "strip", so it can be a program name with args.
1981 set dummy strip; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 if test -n "$ac_ct_STRIP"; then
1988 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 test -z "$as_dir" && as_dir=.
1995 for ac_exec_ext in '' $ac_executable_extensions; do
1996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1997 ac_cv_prog_ac_ct_STRIP="strip"
1998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2007 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2008 if test -n "$ac_ct_STRIP"; then
2009 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2010 echo "${ECHO_T}$ac_ct_STRIP" >&6
2012 echo "$as_me:$LINENO: result: no" >&5
2013 echo "${ECHO_T}no" >&6
2018 STRIP="$ac_cv_prog_STRIP"
2022 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2024 # We need awk for the "check" target. The system "awk" is bad on
2026 # Always define AMTAR for backward compatibility.
2028 AMTAR=${AMTAR-"${am_missing_run}tar"}
2030 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2038 ac_cpp='$CPP $CPPFLAGS'
2039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2042 if test -n "$ac_tool_prefix"; then
2043 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2044 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2045 echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 if test -n "$CC"; then
2051 ac_cv_prog_CC="$CC" # Let the user override the test.
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 test -z "$as_dir" && as_dir=.
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 if test -n "$CC"; then
2071 echo "$as_me:$LINENO: result: $CC" >&5
2072 echo "${ECHO_T}$CC" >&6
2074 echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2079 if test -z "$ac_cv_prog_CC"; then
2081 # Extract the first word of "gcc", so it can be a program name with args.
2082 set dummy gcc; ac_word=$2
2083 echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 if test -n "$ac_ct_CC"; then
2089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 test -z "$as_dir" && as_dir=.
2096 for ac_exec_ext in '' $ac_executable_extensions; do
2097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098 ac_cv_prog_ac_ct_CC="gcc"
2099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108 if test -n "$ac_ct_CC"; then
2109 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110 echo "${ECHO_T}$ac_ct_CC" >&6
2112 echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6
2121 if test -z "$CC"; then
2122 if test -n "$ac_tool_prefix"; then
2123 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2124 set dummy ${ac_tool_prefix}cc; ac_word=$2
2125 echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127 if test "${ac_cv_prog_CC+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 if test -n "$CC"; then
2131 ac_cv_prog_CC="$CC" # Let the user override the test.
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 test -z "$as_dir" && as_dir=.
2138 for ac_exec_ext in '' $ac_executable_extensions; do
2139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2140 ac_cv_prog_CC="${ac_tool_prefix}cc"
2141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 if test -n "$CC"; then
2151 echo "$as_me:$LINENO: result: $CC" >&5
2152 echo "${ECHO_T}$CC" >&6
2154 echo "$as_me:$LINENO: result: no" >&5
2155 echo "${ECHO_T}no" >&6
2159 if test -z "$ac_cv_prog_CC"; then
2161 # Extract the first word of "cc", so it can be a program name with args.
2162 set dummy cc; ac_word=$2
2163 echo "$as_me:$LINENO: checking for $ac_word" >&5
2164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2165 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 if test -n "$ac_ct_CC"; then
2169 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 test -z "$as_dir" && as_dir=.
2176 for ac_exec_ext in '' $ac_executable_extensions; do
2177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2178 ac_cv_prog_ac_ct_CC="cc"
2179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2188 if test -n "$ac_ct_CC"; then
2189 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2190 echo "${ECHO_T}$ac_ct_CC" >&6
2192 echo "$as_me:$LINENO: result: no" >&5
2193 echo "${ECHO_T}no" >&6
2202 if test -z "$CC"; then
2203 # Extract the first word of "cc", so it can be a program name with args.
2204 set dummy cc; ac_word=$2
2205 echo "$as_me:$LINENO: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2207 if test "${ac_cv_prog_CC+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 if test -n "$CC"; then
2211 ac_cv_prog_CC="$CC" # Let the user override the test.
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 test -z "$as_dir" && as_dir=.
2219 for ac_exec_ext in '' $ac_executable_extensions; do
2220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2221 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2222 ac_prog_rejected=yes
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 if test $ac_prog_rejected = yes; then
2233 # We found a bogon in the path, so make sure we never use it.
2234 set dummy $ac_cv_prog_CC
2236 if test $# != 0; then
2237 # We chose a different compiler from the bogus one.
2238 # However, it has the same basename, so the bogon will be chosen
2239 # first if we set CC to just the basename; use the full file name.
2241 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2247 if test -n "$CC"; then
2248 echo "$as_me:$LINENO: result: $CC" >&5
2249 echo "${ECHO_T}$CC" >&6
2251 echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6
2256 if test -z "$CC"; then
2257 if test -n "$ac_tool_prefix"; then
2260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2262 echo "$as_me:$LINENO: checking for $ac_word" >&5
2263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2264 if test "${ac_cv_prog_CC+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 if test -n "$CC"; then
2268 ac_cv_prog_CC="$CC" # Let the user override the test.
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 test -z "$as_dir" && as_dir=.
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2277 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 if test -n "$CC"; then
2288 echo "$as_me:$LINENO: result: $CC" >&5
2289 echo "${ECHO_T}$CC" >&6
2291 echo "$as_me:$LINENO: result: no" >&5
2292 echo "${ECHO_T}no" >&6
2295 test -n "$CC" && break
2298 if test -z "$CC"; then
2302 # Extract the first word of "$ac_prog", so it can be a program name with args.
2303 set dummy $ac_prog; ac_word=$2
2304 echo "$as_me:$LINENO: checking for $ac_word" >&5
2305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2306 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 if test -n "$ac_ct_CC"; then
2310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 test -z "$as_dir" && as_dir=.
2317 for ac_exec_ext in '' $ac_executable_extensions; do
2318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2319 ac_cv_prog_ac_ct_CC="$ac_prog"
2320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2329 if test -n "$ac_ct_CC"; then
2330 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2331 echo "${ECHO_T}$ac_ct_CC" >&6
2333 echo "$as_me:$LINENO: result: no" >&5
2334 echo "${ECHO_T}no" >&6
2337 test -n "$ac_ct_CC" && break
2346 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: no acceptable C compiler found in \$PATH
2349 See \`config.log' for more details." >&2;}
2350 { (exit 1); exit 1; }; }
2352 # Provide some information about the compiler.
2353 echo "$as_me:$LINENO:" \
2354 "checking for C compiler version" >&5
2355 ac_compiler=`set X $ac_compile; echo $2`
2356 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2357 (eval $ac_compiler --version </dev/null >&5) 2>&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }
2361 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2362 (eval $ac_compiler -v </dev/null >&5) 2>&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }
2366 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2367 (eval $ac_compiler -V </dev/null >&5) 2>&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }
2372 cat >conftest.$ac_ext <<_ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h. */
2387 ac_clean_files_save=$ac_clean_files
2388 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2389 # Try to create an executable without -o first, disregard a.out.
2390 # It will help us diagnose broken compilers, and finding out an intuition
2392 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2393 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2394 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2395 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2396 (eval $ac_link_default) 2>&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; then
2400 # Find the output, starting from the most likely. This scheme is
2401 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2404 # Be careful to initialize this variable, since it used to be cached.
2405 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2407 # b.out is created by i960 compilers.
2408 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2410 test -f "$ac_file" || continue
2412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2415 # This is the source file.
2418 # We found the default executable, but exeext='' is most
2422 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2423 # FIXME: I believe we export ac_cv_exeext for Libtool,
2424 # but it would be cool to find out if it's true. Does anybody
2425 # maintain Libtool? --akim.
2433 echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2436 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2437 See \`config.log' for more details." >&5
2438 echo "$as_me: error: C compiler cannot create executables
2439 See \`config.log' for more details." >&2;}
2440 { (exit 77); exit 77; }; }
2443 ac_exeext=$ac_cv_exeext
2444 echo "$as_me:$LINENO: result: $ac_file" >&5
2445 echo "${ECHO_T}$ac_file" >&6
2447 # Check the compiler produces executables we can run. If not, either
2448 # the compiler is broken, or we cross compile.
2449 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2450 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2451 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2452 # If not cross compiling, check that we can run a simple program.
2453 if test "$cross_compiling" != yes; then
2454 if { ac_try='./$ac_file'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; }; then
2462 if test "$cross_compiling" = maybe; then
2465 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2466 If you meant to cross compile, use \`--host'.
2467 See \`config.log' for more details." >&5
2468 echo "$as_me: error: cannot run C compiled programs.
2469 If you meant to cross compile, use \`--host'.
2470 See \`config.log' for more details." >&2;}
2471 { (exit 1); exit 1; }; }
2475 echo "$as_me:$LINENO: result: yes" >&5
2476 echo "${ECHO_T}yes" >&6
2478 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2479 ac_clean_files=$ac_clean_files_save
2480 # Check the compiler produces executables we can run. If not, either
2481 # the compiler is broken, or we cross compile.
2482 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2483 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2484 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2485 echo "${ECHO_T}$cross_compiling" >&6
2487 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2488 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2490 (eval $ac_link) 2>&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; then
2494 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2495 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2496 # work properly (i.e., refer to `conftest.exe'), while it won't with
2498 for ac_file in conftest.exe conftest conftest.*; do
2499 test -f "$ac_file" || continue
2501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2502 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2509 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2510 See \`config.log' for more details." >&5
2511 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2512 See \`config.log' for more details." >&2;}
2513 { (exit 1); exit 1; }; }
2516 rm -f conftest$ac_cv_exeext
2517 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2518 echo "${ECHO_T}$ac_cv_exeext" >&6
2520 rm -f conftest.$ac_ext
2521 EXEEXT=$ac_cv_exeext
2523 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2524 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2525 if test "${ac_cv_objext+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 cat >conftest.$ac_ext <<_ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2543 rm -f conftest.o conftest.obj
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; then
2549 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2552 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563 See \`config.log' for more details." >&2;}
2564 { (exit 1); exit 1; }; }
2567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2569 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570 echo "${ECHO_T}$ac_cv_objext" >&6
2571 OBJEXT=$ac_cv_objext
2573 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2575 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 cat >conftest.$ac_ext <<_ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598 (eval $ac_compile) 2>conftest.er1
2600 grep -v '^ *+' conftest.er1 >conftest.err
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_c_werror_flag"
2606 || test ! -s conftest.err'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; } &&
2612 { ac_try='test -s conftest.$ac_objext'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2629 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2630 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2631 GCC=`test $ac_compiler_gnu = yes && echo yes`
2632 ac_test_CFLAGS=${CFLAGS+set}
2633 ac_save_CFLAGS=$CFLAGS
2635 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2636 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2637 if test "${ac_cv_prog_cc_g+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 cat >conftest.$ac_ext <<_ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>conftest.er1
2659 grep -v '^ *+' conftest.er1 >conftest.err
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
2664 { ac_try='test -z "$ac_c_werror_flag"
2665 || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2687 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2688 if test "$ac_test_CFLAGS" = set; then
2689 CFLAGS=$ac_save_CFLAGS
2690 elif test $ac_cv_prog_cc_g = yes; then
2691 if test "$GCC" = yes; then
2697 if test "$GCC" = yes; then
2703 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2704 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2705 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 ac_cv_prog_cc_stdc=no
2710 cat >conftest.$ac_ext <<_ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2718 #include <sys/types.h>
2719 #include <sys/stat.h>
2720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2721 struct buf { int x; };
2722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2723 static char *e (p, i)
2729 static char *f (char * (*g) (char **, int), char **p, ...)
2734 s = g (p, va_arg (v,int));
2739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2740 function prototypes and stuff, but not '\xHH' hex character constants.
2741 These don't provoke an error unfortunately, instead are silently treated
2742 as 'x'. The following induces an error, until -std1 is added to get
2743 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2744 array size at least. It's necessary to write '\x00'==0 to get something
2745 that's true only with -std1. */
2746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2748 int test (int i, double x);
2749 struct s1 {int (*f) (int a);};
2750 struct s2 {int (*f) (double a);};
2751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2757 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2762 # Don't try gcc -ansi; that turns off useful extensions and
2763 # breaks some systems' header files.
2764 # AIX -qlanglvl=ansi
2765 # Ultrix and OSF/1 -std1
2766 # HP-UX 10.20 and later -Ae
2767 # HP-UX older versions -Aa -D_HPUX_SOURCE
2768 # SVR4 -Xc -D__EXTENSIONS__
2769 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2771 CC="$ac_save_CC $ac_arg"
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>conftest.er1
2776 grep -v '^ *+' conftest.er1 >conftest.err
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } &&
2781 { ac_try='test -z "$ac_c_werror_flag"
2782 || test ! -s conftest.err'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; } &&
2788 { ac_try='test -s conftest.$ac_objext'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; }; then
2794 ac_cv_prog_cc_stdc=$ac_arg
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2801 rm -f conftest.err conftest.$ac_objext
2803 rm -f conftest.$ac_ext conftest.$ac_objext
2808 case "x$ac_cv_prog_cc_stdc" in
2810 echo "$as_me:$LINENO: result: none needed" >&5
2811 echo "${ECHO_T}none needed" >&6 ;;
2813 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2814 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2815 CC="$CC $ac_cv_prog_cc_stdc" ;;
2818 # Some people use a C++ compiler to compile C. Since we use `exit',
2819 # in C++ we need to declare it. In case someone uses the same compiler
2820 # for both compiling C and C++ we need to have the C++ compiler decide
2821 # the declaration of exit, since it's the most demanding environment.
2822 cat >conftest.$ac_ext <<_ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829 (eval $ac_compile) 2>conftest.er1
2831 grep -v '^ *+' conftest.er1 >conftest.err
2833 cat conftest.err >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } &&
2836 { ac_try='test -z "$ac_c_werror_flag"
2837 || test ! -s conftest.err'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; } &&
2843 { ac_try='test -s conftest.$ac_objext'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2849 for ac_declaration in \
2851 'extern "C" void std::exit (int) throw (); using std::exit;' \
2852 'extern "C" void std::exit (int); using std::exit;' \
2853 'extern "C" void exit (int) throw ();' \
2854 'extern "C" void exit (int);' \
2857 cat >conftest.$ac_ext <<_ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2873 rm -f conftest.$ac_objext
2874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2875 (eval $ac_compile) 2>conftest.er1
2877 grep -v '^ *+' conftest.er1 >conftest.err
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } &&
2882 { ac_try='test -z "$ac_c_werror_flag"
2883 || test ! -s conftest.err'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; } &&
2889 { ac_try='test -s conftest.$ac_objext'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; }; then
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903 cat >conftest.$ac_ext <<_ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920 (eval $ac_compile) 2>conftest.er1
2922 grep -v '^ *+' conftest.er1 >conftest.err
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } &&
2927 { ac_try='test -z "$ac_c_werror_flag"
2928 || test ! -s conftest.err'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2949 if test -n "$ac_declaration"; then
2950 echo '#ifdef __cplusplus' >>confdefs.h
2951 echo $ac_declaration >>confdefs.h
2952 echo '#endif' >>confdefs.h
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2962 ac_cpp='$CPP $CPPFLAGS'
2963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2966 DEPDIR="${am__leading_dot}deps"
2968 ac_config_commands="$ac_config_commands depfiles"
2971 am_make=${MAKE-make}
2972 cat > confinc << 'END'
2977 # If we don't find an include directive, just comment out the code.
2978 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2979 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2983 # First try GNU make style include.
2984 echo "include confinc" > confmf
2985 # We grep out `Entering directory' and `Leaving directory'
2986 # messages which can occur if `w' ends up in MAKEFLAGS.
2987 # In particular we don't look at `^make:' because GNU make might
2988 # be invoked under some other name (usually "gmake"), in which
2989 # case it prints its new name instead of `make'.
2990 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2995 # Now try BSD make style include.
2996 if test "$am__include" = "#"; then
2997 echo '.include "confinc"' > confmf
2998 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2999 am__include=.include
3006 echo "$as_me:$LINENO: result: $_am_result" >&5
3007 echo "${ECHO_T}$_am_result" >&6
3008 rm -f confinc confmf
3010 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3011 if test "${enable_dependency_tracking+set}" = set; then
3012 enableval="$enable_dependency_tracking"
3015 if test "x$enable_dependency_tracking" != xno; then
3016 am_depcomp="$ac_aux_dir/depcomp"
3021 if test "x$enable_dependency_tracking" != xno; then
3032 depcc="$CC" am_compiler_list=
3034 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3035 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3036 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3040 # We make a subdir and do the tests there. Otherwise we can end up
3041 # making bogus files that we don't know about and never remove. For
3042 # instance it was reported that on HP-UX the gcc test will end up
3043 # making a dummy file named `D' -- because `-MD' means `put the output
3046 # Copy depcomp to subdir because otherwise we won't find it if we're
3047 # using a relative directory.
3048 cp "$am_depcomp" conftest.dir
3050 # We will build objects and dependencies in a subdirectory because
3051 # it helps to detect inapplicable dependency modes. For instance
3052 # both Tru64's cc and ICC support -MD to output dependencies as a
3053 # side effect of compilation, but ICC will put the dependencies in
3054 # the current directory while Tru64 will put them in the object
3058 am_cv_CC_dependencies_compiler_type=none
3059 if test "$am_compiler_list" = ""; then
3060 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3062 for depmode in $am_compiler_list; do
3063 # Setup a source with many dependencies, because some compilers
3064 # like to wrap large dependency lists on column 80 (with \), and
3065 # we should not choose a depcomp mode which is confused by this.
3067 # We need to recreate these files for each test, as the compiler may
3068 # overwrite some of them when testing with obscure command lines.
3069 # This happens at least with the AIX C compiler.
3071 for i in 1 2 3 4 5 6; do
3072 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3073 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3074 # Solaris 8's {/usr,}/bin/sh.
3075 touch sub/conftst$i.h
3077 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3081 # after this tag, mechanisms are not by side-effect, so they'll
3082 # only be used when explicitly requested
3083 if test "x$enable_dependency_tracking" = xyes; then
3091 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3092 # mode. It turns out that the SunPro C++ compiler does not properly
3093 # handle `-M -o', and we need to detect this.
3094 if depmode=$depmode \
3095 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3096 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3097 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3098 >/dev/null 2>conftest.err &&
3099 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3100 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3101 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3102 # icc doesn't choke on unknown options, it will just issue warnings
3103 # or remarks (even with -Werror). So we grep stderr for any message
3104 # that says an option was ignored or not supported.
3105 # When given -MP, icc 7.0 and 7.1 complain thusly:
3106 # icc: Command line warning: ignoring option '-M'; no argument required
3107 # The diagnosis changed in icc 8.0:
3108 # icc: Command line remark: option '-MP' not supported
3109 if (grep 'ignoring option' conftest.err ||
3110 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3111 am_cv_CC_dependencies_compiler_type=$depmode
3120 am_cv_CC_dependencies_compiler_type=none
3124 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3125 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3126 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3131 test "x$enable_dependency_tracking" != xno \
3132 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3134 am__fastdepCC_FALSE='#'
3136 am__fastdepCC_TRUE='#'
3137 am__fastdepCC_FALSE=
3141 # Check whether --enable-shared or --disable-shared was given.
3142 if test "${enable_shared+set}" = set; then
3143 enableval="$enable_shared"
3144 p=${PACKAGE-default}
3146 yes) enable_shared=yes ;;
3147 no) enable_shared=no ;;
3150 # Look at the argument we got. We use all the common list separators.
3151 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3152 for pkg in $enableval; do
3154 if test "X$pkg" = "X$p"; then
3165 # Check whether --enable-static or --disable-static was given.
3166 if test "${enable_static+set}" = set; then
3167 enableval="$enable_static"
3168 p=${PACKAGE-default}
3170 yes) enable_static=yes ;;
3171 no) enable_static=no ;;
3174 # Look at the argument we got. We use all the common list separators.
3175 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3176 for pkg in $enableval; do
3178 if test "X$pkg" = "X$p"; then
3189 # Check whether --enable-fast-install or --disable-fast-install was given.
3190 if test "${enable_fast_install+set}" = set; then
3191 enableval="$enable_fast_install"
3192 p=${PACKAGE-default}
3194 yes) enable_fast_install=yes ;;
3195 no) enable_fast_install=no ;;
3197 enable_fast_install=no
3198 # Look at the argument we got. We use all the common list separators.
3199 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3200 for pkg in $enableval; do
3202 if test "X$pkg" = "X$p"; then
3203 enable_fast_install=yes
3210 enable_fast_install=yes
3213 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3214 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3215 if test "${lt_cv_path_SED+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 # Loop through the user's path and test for sed and gsed.
3219 # Then use that list of sed's as ones to test for truncation.
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 test -z "$as_dir" && as_dir=.
3225 for lt_ac_prog in sed gsed; do
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3228 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3235 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3236 # along with /bin/sed that truncates output.
3237 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3238 test ! -f $lt_ac_sed && break
3239 cat /dev/null > conftest.in
3241 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3242 # Check for GNU sed and select it if it is found.
3243 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3244 lt_cv_path_SED=$lt_ac_sed
3248 cat conftest.in conftest.in >conftest.tmp
3249 mv conftest.tmp conftest.in
3250 cp conftest.in conftest.nl
3252 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3253 cmp -s conftest.out conftest.nl || break
3254 # 10000 chars as input seems more than enough
3255 test $lt_ac_count -gt 10 && break
3256 lt_ac_count=`expr $lt_ac_count + 1`
3257 if test $lt_ac_count -gt $lt_ac_max; then
3258 lt_ac_max=$lt_ac_count
3259 lt_cv_path_SED=$lt_ac_sed
3267 echo "$as_me:$LINENO: result: $SED" >&5
3268 echo "${ECHO_T}$SED" >&6
3270 echo "$as_me:$LINENO: checking for egrep" >&5
3271 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3272 if test "${ac_cv_prog_egrep+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3276 then ac_cv_prog_egrep='grep -E'
3277 else ac_cv_prog_egrep='egrep'
3280 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3281 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3282 EGREP=$ac_cv_prog_egrep
3286 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3287 if test "${with_gnu_ld+set}" = set; then
3288 withval="$with_gnu_ld"
3289 test "$withval" = no || with_gnu_ld=yes
3294 if test "$GCC" = yes; then
3295 # Check if gcc -print-prog-name=ld gives a path.
3296 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3297 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3300 # gcc leaves a trailing carriage return which upsets mingw
3301 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3303 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3306 # Accept absolute paths.
3308 re_direlt='/[^/][^/]*/\.\./'
3309 # Canonicalize the pathname of ld
3310 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3311 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3312 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3314 test -z "$LD" && LD="$ac_prog"
3317 # If it fails, then pretend we aren't using GCC.
3321 # If it is relative, then search for the first ld in PATH.
3325 elif test "$with_gnu_ld" = yes; then
3326 echo "$as_me:$LINENO: checking for GNU ld" >&5
3327 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3329 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3330 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3332 if test "${lt_cv_path_LD+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 if test -z "$LD"; then
3336 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3337 for ac_dir in $PATH; do
3339 test -z "$ac_dir" && ac_dir=.
3340 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3341 lt_cv_path_LD="$ac_dir/$ac_prog"
3342 # Check to see if the program is GNU ld. I'd rather use --version,
3343 # but apparently some GNU ld's only accept -v.
3344 # Break only if it was the GNU/non-GNU ld that we prefer.
3345 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3346 *GNU* | *'with BFD'*)
3347 test "$with_gnu_ld" != no && break
3350 test "$with_gnu_ld" != yes && break
3357 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3362 if test -n "$LD"; then
3363 echo "$as_me:$LINENO: result: $LD" >&5
3364 echo "${ECHO_T}$LD" >&6
3366 echo "$as_me:$LINENO: result: no" >&5
3367 echo "${ECHO_T}no" >&6
3369 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3370 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3371 { (exit 1); exit 1; }; }
3372 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3373 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3374 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3378 case `$LD -v 2>&1 </dev/null` in
3379 *GNU* | *'with BFD'*)
3380 lt_cv_prog_gnu_ld=yes
3383 lt_cv_prog_gnu_ld=no
3387 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3388 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3389 with_gnu_ld=$lt_cv_prog_gnu_ld
3392 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3393 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3394 if test "${lt_cv_ld_reload_flag+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 lt_cv_ld_reload_flag='-r'
3399 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3400 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3401 reload_flag=$lt_cv_ld_reload_flag
3402 case $reload_flag in
3404 *) reload_flag=" $reload_flag" ;;
3406 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3408 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3409 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3410 if test "${lt_cv_path_NM+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 if test -n "$NM"; then
3414 # Let the user override the test.
3417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3418 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3420 test -z "$ac_dir" && ac_dir=.
3421 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3422 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3423 # Check to see if the nm accepts a BSD-compat flag.
3424 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3425 # nm: unknown option "B" ignored
3426 # Tru64's nm complains that /dev/null is an invalid object file
3427 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3428 */dev/null* | *'Invalid file or object type'*)
3429 lt_cv_path_NM="$tmp_nm -B"
3433 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3435 lt_cv_path_NM="$tmp_nm -p"
3439 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3440 continue # so that we can try to find one that supports BSD flags
3447 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3450 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3451 echo "${ECHO_T}$lt_cv_path_NM" >&6
3454 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3455 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3457 if test "$LN_S" = "ln -s"; then
3458 echo "$as_me:$LINENO: result: yes" >&5
3459 echo "${ECHO_T}yes" >&6
3461 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3462 echo "${ECHO_T}no, using $LN_S" >&6
3465 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3466 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3467 if test "${lt_cv_deplibs_check_method+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 lt_cv_file_magic_cmd='$MAGIC_CMD'
3471 lt_cv_file_magic_test_file=
3472 lt_cv_deplibs_check_method='unknown'
3473 # Need to set the preceding variable on all platforms that support
3474 # interlibrary dependencies.
3475 # 'none' -- dependencies not supported.
3476 # `unknown' -- same as none, but documents that we really don't know.
3477 # 'pass_all' -- all dependencies passed with no checks.
3478 # 'test_compile' -- check by making test program.
3479 # 'file_magic [[regex]]' -- check by looking for files in library path
3480 # which responds to the $file_magic_cmd with a given extended regex.
3481 # If you have `file' or equivalent on your system and you're not sure
3482 # whether `pass_all' will *always* work, you probably want this one.
3486 lt_cv_deplibs_check_method=pass_all
3490 lt_cv_deplibs_check_method=pass_all
3494 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3495 lt_cv_file_magic_cmd='/usr/bin/file -L'
3496 lt_cv_file_magic_test_file=/shlib/libc.so
3500 # func_win32_libid is a shell function defined in ltmain.sh
3501 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3502 lt_cv_file_magic_cmd='func_win32_libid'
3506 # Base MSYS/MinGW do not provide the 'file' command needed by
3507 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3508 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3509 lt_cv_file_magic_cmd='$OBJDUMP -f'
3512 darwin* | rhapsody*)
3513 lt_cv_deplibs_check_method=pass_all
3516 freebsd* | kfreebsd*-gnu)
3517 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3520 # Not sure whether the presence of OpenBSD here was a mistake.
3521 # Let's accept both of them until this is cleared up.
3522 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3523 lt_cv_file_magic_cmd=/usr/bin/file
3524 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3528 lt_cv_deplibs_check_method=pass_all
3533 lt_cv_deplibs_check_method=pass_all
3536 hpux10.20* | hpux11*)
3537 lt_cv_file_magic_cmd=/usr/bin/file
3540 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3541 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3544 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]'
3545 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3548 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3549 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3554 irix5* | irix6* | nonstopux*)
3556 *-32|*"-32 ") libmagic=32-bit;;
3557 *-n32|*"-n32 ") libmagic=N32;;
3558 *-64|*"-64 ") libmagic=64-bit;;
3559 *) libmagic=never-match;;
3561 lt_cv_deplibs_check_method=pass_all
3564 # This must be Linux ELF.
3567 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3568 lt_cv_deplibs_check_method=pass_all ;;
3570 # glibc up to 2.1.1 does not perform some relocations on ARM
3571 # this will be overridden with pass_all, but let us keep it just in case
3572 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3574 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3575 lt_cv_deplibs_check_method=pass_all
3579 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3588 lt_cv_file_magic_cmd=/usr/bin/file
3589 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3593 lt_cv_deplibs_check_method=unknown
3597 lt_cv_file_magic_cmd=/usr/bin/file
3598 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3599 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3602 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3606 osf3* | osf4* | osf5*)
3607 lt_cv_deplibs_check_method=pass_all
3611 lt_cv_deplibs_check_method=pass_all
3615 lt_cv_deplibs_check_method=pass_all
3618 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3619 case $host_vendor in
3621 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]'
3622 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3625 lt_cv_deplibs_check_method=pass_all
3628 lt_cv_file_magic_cmd='/bin/file'
3629 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3632 lt_cv_file_magic_cmd='/bin/file'
3633 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3634 lt_cv_file_magic_test_file=/lib/libc.so
3637 lt_cv_deplibs_check_method=pass_all
3642 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3643 lt_cv_deplibs_check_method=pass_all
3648 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3649 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3650 file_magic_cmd=$lt_cv_file_magic_cmd
3651 deplibs_check_method=$lt_cv_deplibs_check_method
3652 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3657 # If no C compiler was specified, use CC.
3660 # Allow CC to be a program name with arguments.
3664 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3665 if test "${enable_libtool_lock+set}" = set; then
3666 enableval="$enable_libtool_lock"
3669 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3671 # Some flags need to be propagated to the compiler or linker for good
3675 # Find out which ABI we are using.
3676 echo 'int i;' > conftest.$ac_ext
3677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3678 (eval $ac_compile) 2>&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; then
3682 case `/usr/bin/file conftest.$ac_objext` in
3694 # Find out which ABI we are using.
3695 echo '#line 3695 "configure"' > conftest.$ac_ext
3696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3697 (eval $ac_compile) 2>&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; then
3701 if test "$lt_cv_prog_gnu_ld" = yes; then
3702 case `/usr/bin/file conftest.$ac_objext` in
3704 LD="${LD-ld} -melf32bsmip"
3707 LD="${LD-ld} -melf32bmipn32"
3710 LD="${LD-ld} -melf64bmip"
3714 case `/usr/bin/file conftest.$ac_objext` in
3730 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3731 # Find out which ABI we are using.
3732 echo 'int i;' > conftest.$ac_ext
3733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3734 (eval $ac_compile) 2>&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); }; then
3738 case "`/usr/bin/file conftest.o`" in
3742 LD="${LD-ld} -m elf_i386"
3744 ppc64-*linux*|powerpc64-*linux*)
3745 LD="${LD-ld} -m elf32ppclinux"
3748 LD="${LD-ld} -m elf_s390"
3751 LD="${LD-ld} -m elf32_sparc"
3758 LD="${LD-ld} -m elf_x86_64"
3760 ppc*-*linux*|powerpc*-*linux*)
3761 LD="${LD-ld} -m elf64ppc"
3764 LD="${LD-ld} -m elf64_s390"
3767 LD="${LD-ld} -m elf64_sparc"
3777 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3778 SAVE_CFLAGS="$CFLAGS"
3779 CFLAGS="$CFLAGS -belf"
3780 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3781 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3782 if test "${lt_cv_cc_needs_belf+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 ac_cpp='$CPP $CPPFLAGS'
3787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791 cat >conftest.$ac_ext <<_ACEOF
3794 cat confdefs.h >>conftest.$ac_ext
3795 cat >>conftest.$ac_ext <<_ACEOF
3796 /* end confdefs.h. */
3806 rm -f conftest.$ac_objext conftest$ac_exeext
3807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3808 (eval $ac_link) 2>conftest.er1
3810 grep -v '^ *+' conftest.er1 >conftest.err
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
3815 { ac_try='test -z "$ac_c_werror_flag"
3816 || test ! -s conftest.err'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; } &&
3822 { ac_try='test -s conftest$ac_exeext'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
3828 lt_cv_cc_needs_belf=yes
3830 echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3833 lt_cv_cc_needs_belf=no
3835 rm -f conftest.err conftest.$ac_objext \
3836 conftest$ac_exeext conftest.$ac_ext
3838 ac_cpp='$CPP $CPPFLAGS'
3839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3844 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3845 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3846 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3847 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3848 CFLAGS="$SAVE_CFLAGS"
3854 need_locks="$enable_libtool_lock"
3858 ac_cpp='$CPP $CPPFLAGS'
3859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3863 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3864 # On Suns, sometimes $CPP names a directory.
3865 if test -n "$CPP" && test -d "$CPP"; then
3868 if test -z "$CPP"; then
3869 if test "${ac_cv_prog_CPP+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 # Double quotes because CPP needs to be expanded
3873 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3876 for ac_c_preproc_warn_flag in '' yes
3878 # Use a header file that comes with gcc, so configuring glibc
3879 # with a fresh cross-compiler works.
3880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3881 # <limits.h> exists even on freestanding compilers.
3882 # On the NeXT, cc -E runs the code through the compiler's parser,
3883 # not just through cpp. "Syntax error" is here to catch this case.
3884 cat >conftest.$ac_ext <<_ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3891 # include <limits.h>
3893 # include <assert.h>
3897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3900 grep -v '^ *+' conftest.er1 >conftest.err
3902 cat conftest.err >&5
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); } >/dev/null; then
3905 if test -s conftest.err; then
3906 ac_cpp_err=$ac_c_preproc_warn_flag
3907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3914 if test -z "$ac_cpp_err"; then
3917 echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3920 # Broken: fails on valid input.
3923 rm -f conftest.err conftest.$ac_ext
3925 # OK, works on sane cases. Now check whether non-existent headers
3926 # can be detected and how.
3927 cat >conftest.$ac_ext <<_ACEOF
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h. */
3933 #include <ac_nonexistent.h>
3935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3938 grep -v '^ *+' conftest.er1 >conftest.err
3940 cat conftest.err >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } >/dev/null; then
3943 if test -s conftest.err; then
3944 ac_cpp_err=$ac_c_preproc_warn_flag
3945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3952 if test -z "$ac_cpp_err"; then
3953 # Broken: success on invalid input.
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3959 # Passes both tests.
3963 rm -f conftest.err conftest.$ac_ext
3966 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3967 rm -f conftest.err conftest.$ac_ext
3968 if $ac_preproc_ok; then
3980 echo "$as_me:$LINENO: result: $CPP" >&5
3981 echo "${ECHO_T}$CPP" >&6
3983 for ac_c_preproc_warn_flag in '' yes
3985 # Use a header file that comes with gcc, so configuring glibc
3986 # with a fresh cross-compiler works.
3987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3988 # <limits.h> exists even on freestanding compilers.
3989 # On the NeXT, cc -E runs the code through the compiler's parser,
3990 # not just through cpp. "Syntax error" is here to catch this case.
3991 cat >conftest.$ac_ext <<_ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
3998 # include <limits.h>
4000 # include <assert.h>
4004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4007 grep -v '^ *+' conftest.er1 >conftest.err
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } >/dev/null; then
4012 if test -s conftest.err; then
4013 ac_cpp_err=$ac_c_preproc_warn_flag
4014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4021 if test -z "$ac_cpp_err"; then
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4027 # Broken: fails on valid input.
4030 rm -f conftest.err conftest.$ac_ext
4032 # OK, works on sane cases. Now check whether non-existent headers
4033 # can be detected and how.
4034 cat >conftest.$ac_ext <<_ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4040 #include <ac_nonexistent.h>
4042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4045 grep -v '^ *+' conftest.er1 >conftest.err
4047 cat conftest.err >&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } >/dev/null; then
4050 if test -s conftest.err; then
4051 ac_cpp_err=$ac_c_preproc_warn_flag
4052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4059 if test -z "$ac_cpp_err"; then
4060 # Broken: success on invalid input.
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4066 # Passes both tests.
4070 rm -f conftest.err conftest.$ac_ext
4073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4074 rm -f conftest.err conftest.$ac_ext
4075 if $ac_preproc_ok; then
4078 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4079 See \`config.log' for more details." >&5
4080 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4081 See \`config.log' for more details." >&2;}
4082 { (exit 1); exit 1; }; }
4086 ac_cpp='$CPP $CPPFLAGS'
4087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4093 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4094 if test "${ac_cv_header_stdc+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 cat >conftest.$ac_ext <<_ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4116 rm -f conftest.$ac_objext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4118 (eval $ac_compile) 2>conftest.er1
4120 grep -v '^ *+' conftest.er1 >conftest.err
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -z "$ac_c_werror_flag"
4126 || test ! -s conftest.err'
4127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; } &&
4132 { ac_try='test -s conftest.$ac_objext'
4133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; }; then
4138 ac_cv_header_stdc=yes
4140 echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4143 ac_cv_header_stdc=no
4145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4147 if test $ac_cv_header_stdc = yes; then
4148 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4149 cat >conftest.$ac_ext <<_ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4159 $EGREP "memchr" >/dev/null 2>&1; then
4162 ac_cv_header_stdc=no
4168 if test $ac_cv_header_stdc = yes; then
4169 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4170 cat >conftest.$ac_ext <<_ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4180 $EGREP "free" >/dev/null 2>&1; then
4183 ac_cv_header_stdc=no
4189 if test $ac_cv_header_stdc = yes; then
4190 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4191 if test "$cross_compiling" = yes; then
4194 cat >conftest.$ac_ext <<_ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4201 #if ((' ' & 0x0FF) == 0x020)
4202 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4203 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4205 # define ISLOWER(c) \
4206 (('a' <= (c) && (c) <= 'i') \
4207 || ('j' <= (c) && (c) <= 'r') \
4208 || ('s' <= (c) && (c) <= 'z'))
4209 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4212 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4217 for (i = 0; i < 256; i++)
4218 if (XOR (islower (i), ISLOWER (i))
4219 || toupper (i) != TOUPPER (i))
4224 rm -f conftest$ac_exeext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4226 (eval $ac_link) 2>&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4237 echo "$as_me: program exited with status $ac_status" >&5
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4242 ac_cv_header_stdc=no
4244 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4248 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4249 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4250 if test $ac_cv_header_stdc = yes; then
4252 cat >>confdefs.h <<\_ACEOF
4253 #define STDC_HEADERS 1
4258 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4268 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4269 inttypes.h stdint.h unistd.h
4271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4272 echo "$as_me:$LINENO: checking for $ac_header" >&5
4273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 cat >conftest.$ac_ext <<_ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4283 $ac_includes_default
4285 #include <$ac_header>
4287 rm -f conftest.$ac_objext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289 (eval $ac_compile) 2>conftest.er1
4291 grep -v '^ *+' conftest.er1 >conftest.err
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
4296 { ac_try='test -z "$ac_c_werror_flag"
4297 || test ! -s conftest.err'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; } &&
4303 { ac_try='test -s conftest.$ac_objext'
4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4309 eval "$as_ac_Header=yes"
4311 echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4314 eval "$as_ac_Header=no"
4316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4321 cat >>confdefs.h <<_ACEOF
4322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4331 for ac_header in dlfcn.h
4333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4335 echo "$as_me:$LINENO: checking for $ac_header" >&5
4336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4343 # Is the header compilable?
4344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4346 cat >conftest.$ac_ext <<_ACEOF
4349 cat confdefs.h >>conftest.$ac_ext
4350 cat >>conftest.$ac_ext <<_ACEOF
4351 /* end confdefs.h. */
4352 $ac_includes_default
4353 #include <$ac_header>
4355 rm -f conftest.$ac_objext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357 (eval $ac_compile) 2>conftest.er1
4359 grep -v '^ *+' conftest.er1 >conftest.err
4361 cat conftest.err >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } &&
4364 { ac_try='test -z "$ac_c_werror_flag"
4365 || test ! -s conftest.err'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; } &&
4371 { ac_try='test -s conftest.$ac_objext'
4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; }; then
4377 ac_header_compiler=yes
4379 echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4382 ac_header_compiler=no
4384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4386 echo "${ECHO_T}$ac_header_compiler" >&6
4388 # Is the header present?
4389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4391 cat >conftest.$ac_ext <<_ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4397 #include <$ac_header>
4399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4402 grep -v '^ *+' conftest.er1 >conftest.err
4404 cat conftest.err >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } >/dev/null; then
4407 if test -s conftest.err; then
4408 ac_cpp_err=$ac_c_preproc_warn_flag
4409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4416 if test -z "$ac_cpp_err"; then
4417 ac_header_preproc=yes
4419 echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4422 ac_header_preproc=no
4424 rm -f conftest.err conftest.$ac_ext
4425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4426 echo "${ECHO_T}$ac_header_preproc" >&6
4428 # So? What about this header?
4429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4435 ac_header_preproc=yes
4438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4452 ## ---------------------------------- ##
4453 ## Report this to rpm-list@redhat.com ##
4454 ## ---------------------------------- ##
4457 sed "s/^/$as_me: WARNING: /" >&2
4460 echo "$as_me:$LINENO: checking for $ac_header" >&5
4461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 eval "$as_ac_Header=\$ac_header_preproc"
4467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4472 cat >>confdefs.h <<_ACEOF
4473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4481 ac_cpp='$CXXCPP $CPPFLAGS'
4482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4485 if test -n "$ac_tool_prefix"; then
4486 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4490 echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4492 if test "${ac_cv_prog_CXX+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 if test -n "$CXX"; then
4496 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 if test -n "$CXX"; then
4516 echo "$as_me:$LINENO: result: $CXX" >&5
4517 echo "${ECHO_T}$CXX" >&6
4519 echo "$as_me:$LINENO: result: no" >&5
4520 echo "${ECHO_T}no" >&6
4523 test -n "$CXX" && break
4526 if test -z "$CXX"; then
4528 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4530 # Extract the first word of "$ac_prog", so it can be a program name with args.
4531 set dummy $ac_prog; ac_word=$2
4532 echo "$as_me:$LINENO: checking for $ac_word" >&5
4533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4534 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 if test -n "$ac_ct_CXX"; then
4538 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 test -z "$as_dir" && as_dir=.
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4547 ac_cv_prog_ac_ct_CXX="$ac_prog"
4548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4557 if test -n "$ac_ct_CXX"; then
4558 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4559 echo "${ECHO_T}$ac_ct_CXX" >&6
4561 echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6
4565 test -n "$ac_ct_CXX" && break
4567 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4573 # Provide some information about the compiler.
4574 echo "$as_me:$LINENO:" \
4575 "checking for C++ compiler version" >&5
4576 ac_compiler=`set X $ac_compile; echo $2`
4577 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4578 (eval $ac_compiler --version </dev/null >&5) 2>&5
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }
4582 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4583 (eval $ac_compiler -v </dev/null >&5) 2>&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }
4587 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4588 (eval $ac_compiler -V </dev/null >&5) 2>&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }
4593 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4594 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4595 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 cat >conftest.$ac_ext <<_ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4616 rm -f conftest.$ac_objext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4618 (eval $ac_compile) 2>conftest.er1
4620 grep -v '^ *+' conftest.er1 >conftest.err
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_cxx_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try='test -s conftest.$ac_objext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4646 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4649 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4650 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4651 GXX=`test $ac_compiler_gnu = yes && echo yes`
4652 ac_test_CXXFLAGS=${CXXFLAGS+set}
4653 ac_save_CXXFLAGS=$CXXFLAGS
4655 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4656 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4657 if test "${ac_cv_prog_cxx_g+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 cat >conftest.$ac_ext <<_ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4675 rm -f conftest.$ac_objext
4676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4677 (eval $ac_compile) 2>conftest.er1
4679 grep -v '^ *+' conftest.er1 >conftest.err
4681 cat conftest.err >&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } &&
4684 { ac_try='test -z "$ac_cxx_werror_flag"
4685 || test ! -s conftest.err'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; } &&
4691 { ac_try='test -s conftest.$ac_objext'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; }; then
4697 ac_cv_prog_cxx_g=yes
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4706 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4707 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4708 if test "$ac_test_CXXFLAGS" = set; then
4709 CXXFLAGS=$ac_save_CXXFLAGS
4710 elif test $ac_cv_prog_cxx_g = yes; then
4711 if test "$GXX" = yes; then
4717 if test "$GXX" = yes; then
4723 for ac_declaration in \
4725 'extern "C" void std::exit (int) throw (); using std::exit;' \
4726 'extern "C" void std::exit (int); using std::exit;' \
4727 'extern "C" void exit (int) throw ();' \
4728 'extern "C" void exit (int);' \
4731 cat >conftest.$ac_ext <<_ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4747 rm -f conftest.$ac_objext
4748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749 (eval $ac_compile) 2>conftest.er1
4751 grep -v '^ *+' conftest.er1 >conftest.err
4753 cat conftest.err >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } &&
4756 { ac_try='test -z "$ac_cxx_werror_flag"
4757 || test ! -s conftest.err'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; } &&
4763 { ac_try='test -s conftest.$ac_objext'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4771 echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4777 cat >conftest.$ac_ext <<_ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4792 rm -f conftest.$ac_objext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794 (eval $ac_compile) 2>conftest.er1
4796 grep -v '^ *+' conftest.er1 >conftest.err
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -z "$ac_cxx_werror_flag"
4802 || test ! -s conftest.err'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest.$ac_objext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4823 if test -n "$ac_declaration"; then
4824 echo '#ifdef __cplusplus' >>confdefs.h
4825 echo $ac_declaration >>confdefs.h
4826 echo '#endif' >>confdefs.h
4830 ac_cpp='$CXXCPP $CPPFLAGS'
4831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4835 depcc="$CXX" am_compiler_list=
4837 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4838 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4839 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4843 # We make a subdir and do the tests there. Otherwise we can end up
4844 # making bogus files that we don't know about and never remove. For
4845 # instance it was reported that on HP-UX the gcc test will end up
4846 # making a dummy file named `D' -- because `-MD' means `put the output
4849 # Copy depcomp to subdir because otherwise we won't find it if we're
4850 # using a relative directory.
4851 cp "$am_depcomp" conftest.dir
4853 # We will build objects and dependencies in a subdirectory because
4854 # it helps to detect inapplicable dependency modes. For instance
4855 # both Tru64's cc and ICC support -MD to output dependencies as a
4856 # side effect of compilation, but ICC will put the dependencies in
4857 # the current directory while Tru64 will put them in the object
4861 am_cv_CXX_dependencies_compiler_type=none
4862 if test "$am_compiler_list" = ""; then
4863 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4865 for depmode in $am_compiler_list; do
4866 # Setup a source with many dependencies, because some compilers
4867 # like to wrap large dependency lists on column 80 (with \), and
4868 # we should not choose a depcomp mode which is confused by this.
4870 # We need to recreate these files for each test, as the compiler may
4871 # overwrite some of them when testing with obscure command lines.
4872 # This happens at least with the AIX C compiler.
4874 for i in 1 2 3 4 5 6; do
4875 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4876 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4877 # Solaris 8's {/usr,}/bin/sh.
4878 touch sub/conftst$i.h
4880 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4884 # after this tag, mechanisms are not by side-effect, so they'll
4885 # only be used when explicitly requested
4886 if test "x$enable_dependency_tracking" = xyes; then
4894 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4895 # mode. It turns out that the SunPro C++ compiler does not properly
4896 # handle `-M -o', and we need to detect this.
4897 if depmode=$depmode \
4898 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4899 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4900 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4901 >/dev/null 2>conftest.err &&
4902 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4903 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4904 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4905 # icc doesn't choke on unknown options, it will just issue warnings
4906 # or remarks (even with -Werror). So we grep stderr for any message
4907 # that says an option was ignored or not supported.
4908 # When given -MP, icc 7.0 and 7.1 complain thusly:
4909 # icc: Command line warning: ignoring option '-M'; no argument required
4910 # The diagnosis changed in icc 8.0:
4911 # icc: Command line remark: option '-MP' not supported
4912 if (grep 'ignoring option' conftest.err ||
4913 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4914 am_cv_CXX_dependencies_compiler_type=$depmode
4923 am_cv_CXX_dependencies_compiler_type=none
4927 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4928 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4929 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4934 test "x$enable_dependency_tracking" != xno \
4935 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4936 am__fastdepCXX_TRUE=
4937 am__fastdepCXX_FALSE='#'
4939 am__fastdepCXX_TRUE='#'
4940 am__fastdepCXX_FALSE=
4945 ac_cpp='$CXXCPP $CPPFLAGS'
4946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4949 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4950 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4951 if test -z "$CXXCPP"; then
4952 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 # Double quotes because CXXCPP needs to be expanded
4956 for CXXCPP in "$CXX -E" "/lib/cpp"
4959 for ac_cxx_preproc_warn_flag in '' yes
4961 # Use a header file that comes with gcc, so configuring glibc
4962 # with a fresh cross-compiler works.
4963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4964 # <limits.h> exists even on freestanding compilers.
4965 # On the NeXT, cc -E runs the code through the compiler's parser,
4966 # not just through cpp. "Syntax error" is here to catch this case.
4967 cat >conftest.$ac_ext <<_ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h. */
4974 # include <limits.h>
4976 # include <assert.h>
4980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4983 grep -v '^ *+' conftest.er1 >conftest.err
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } >/dev/null; then
4988 if test -s conftest.err; then
4989 ac_cpp_err=$ac_cxx_preproc_warn_flag
4990 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4997 if test -z "$ac_cpp_err"; then
5000 echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5003 # Broken: fails on valid input.
5006 rm -f conftest.err conftest.$ac_ext
5008 # OK, works on sane cases. Now check whether non-existent headers
5009 # can be detected and how.
5010 cat >conftest.$ac_ext <<_ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5016 #include <ac_nonexistent.h>
5018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5021 grep -v '^ *+' conftest.er1 >conftest.err
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } >/dev/null; then
5026 if test -s conftest.err; then
5027 ac_cpp_err=$ac_cxx_preproc_warn_flag
5028 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5035 if test -z "$ac_cpp_err"; then
5036 # Broken: success on invalid input.
5039 echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5042 # Passes both tests.
5046 rm -f conftest.err conftest.$ac_ext
5049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5050 rm -f conftest.err conftest.$ac_ext
5051 if $ac_preproc_ok; then
5056 ac_cv_prog_CXXCPP=$CXXCPP
5059 CXXCPP=$ac_cv_prog_CXXCPP
5061 ac_cv_prog_CXXCPP=$CXXCPP
5063 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5064 echo "${ECHO_T}$CXXCPP" >&6
5066 for ac_cxx_preproc_warn_flag in '' yes
5068 # Use a header file that comes with gcc, so configuring glibc
5069 # with a fresh cross-compiler works.
5070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5071 # <limits.h> exists even on freestanding compilers.
5072 # On the NeXT, cc -E runs the code through the compiler's parser,
5073 # not just through cpp. "Syntax error" is here to catch this case.
5074 cat >conftest.$ac_ext <<_ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5081 # include <limits.h>
5083 # include <assert.h>
5087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5090 grep -v '^ *+' conftest.er1 >conftest.err
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } >/dev/null; then
5095 if test -s conftest.err; then
5096 ac_cpp_err=$ac_cxx_preproc_warn_flag
5097 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5104 if test -z "$ac_cpp_err"; then
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5110 # Broken: fails on valid input.
5113 rm -f conftest.err conftest.$ac_ext
5115 # OK, works on sane cases. Now check whether non-existent headers
5116 # can be detected and how.
5117 cat >conftest.$ac_ext <<_ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5123 #include <ac_nonexistent.h>
5125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5128 grep -v '^ *+' conftest.er1 >conftest.err
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } >/dev/null; then
5133 if test -s conftest.err; then
5134 ac_cpp_err=$ac_cxx_preproc_warn_flag
5135 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5142 if test -z "$ac_cpp_err"; then
5143 # Broken: success on invalid input.
5146 echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5149 # Passes both tests.
5153 rm -f conftest.err conftest.$ac_ext
5156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5157 rm -f conftest.err conftest.$ac_ext
5158 if $ac_preproc_ok; then
5161 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5162 See \`config.log' for more details." >&5
5163 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5164 See \`config.log' for more details." >&2;}
5165 { (exit 1); exit 1; }; }
5169 ac_cpp='$CXXCPP $CPPFLAGS'
5170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5176 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5177 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5179 if test -n "$ac_tool_prefix"; then
5180 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5184 echo "$as_me:$LINENO: checking for $ac_word" >&5
5185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186 if test "${ac_cv_prog_F77+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 if test -n "$F77"; then
5190 ac_cv_prog_F77="$F77" # Let the user override the test.
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 if test -n "$F77"; then
5210 echo "$as_me:$LINENO: result: $F77" >&5
5211 echo "${ECHO_T}$F77" >&6
5213 echo "$as_me:$LINENO: result: no" >&5
5214 echo "${ECHO_T}no" >&6
5217 test -n "$F77" && break
5220 if test -z "$F77"; then
5222 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5224 # Extract the first word of "$ac_prog", so it can be a program name with args.
5225 set dummy $ac_prog; ac_word=$2
5226 echo "$as_me:$LINENO: checking for $ac_word" >&5
5227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5228 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 if test -n "$ac_ct_F77"; then
5232 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241 ac_cv_prog_ac_ct_F77="$ac_prog"
5242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5251 if test -n "$ac_ct_F77"; then
5252 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5253 echo "${ECHO_T}$ac_ct_F77" >&6
5255 echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6
5259 test -n "$ac_ct_F77" && break
5266 # Provide some information about the compiler.
5267 echo "$as_me:5267:" \
5268 "checking for Fortran 77 compiler version" >&5
5269 ac_compiler=`set X $ac_compile; echo $2`
5270 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5271 (eval $ac_compiler --version </dev/null >&5) 2>&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }
5275 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5276 (eval $ac_compiler -v </dev/null >&5) 2>&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }
5280 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5281 (eval $ac_compiler -V </dev/null >&5) 2>&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }
5287 # If we don't use `.F' as extension, the preprocessor is not run on the
5288 # input file. (Note that this only needs to work for GNU compilers.)
5291 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5292 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5293 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 cat >conftest.$ac_ext <<_ACEOF
5304 rm -f conftest.$ac_objext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306 (eval $ac_compile) 2>conftest.er1
5308 grep -v '^ *+' conftest.er1 >conftest.err
5310 cat conftest.err >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } &&
5313 { ac_try='test -z "$ac_f77_werror_flag"
5314 || test ! -s conftest.err'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; } &&
5320 { ac_try='test -s conftest.$ac_objext'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; }; then
5328 echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5334 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5337 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5338 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5340 ac_test_FFLAGS=${FFLAGS+set}
5341 ac_save_FFLAGS=$FFLAGS
5343 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5344 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5345 if test "${ac_cv_prog_f77_g+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 cat >conftest.$ac_ext <<_ACEOF
5354 rm -f conftest.$ac_objext
5355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356 (eval $ac_compile) 2>conftest.er1
5358 grep -v '^ *+' conftest.er1 >conftest.err
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
5363 { ac_try='test -z "$ac_f77_werror_flag"
5364 || test ! -s conftest.err'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; } &&
5370 { ac_try='test -s conftest.$ac_objext'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5376 ac_cv_prog_f77_g=yes
5378 echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5386 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5387 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5388 if test "$ac_test_FFLAGS" = set; then
5389 FFLAGS=$ac_save_FFLAGS
5390 elif test $ac_cv_prog_f77_g = yes; then
5391 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5397 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5404 G77=`test $ac_compiler_gnu = yes && echo yes`
5406 ac_cpp='$CPP $CPPFLAGS'
5407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5413 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5415 # find the maximum length of command line arguments
5416 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5417 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5418 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 # On DJGPP, this test can blow up pretty badly due to problems in libc
5427 # (any single argument exceeding 2000 bytes causes a buffer overrun
5428 # during glob expansion). Even if it were fixed, the result of this
5429 # check would be larger than it should be.
5430 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5434 # Under GNU Hurd, this test is not required because there is
5435 # no limit to the length of command line arguments.
5436 # Libtool will interpret -1 as no limit whatsoever
5437 lt_cv_sys_max_cmd_len=-1;
5441 # On Win9x/ME, this test blows up -- it succeeds, but takes
5442 # about 5 minutes as the teststring grows exponentially.
5443 # Worse, since 9x/ME are not pre-emptively multitasking,
5444 # you end up with a "frozen" computer, even though with patience
5445 # the test eventually succeeds (with a max line length of 256k).
5446 # Instead, let's just punt: use the minimum linelength reported by
5447 # all of the supported platforms: 8192 (on NT/2K/XP).
5448 lt_cv_sys_max_cmd_len=8192;
5452 # On AmigaOS with pdksh, this test takes hours, literally.
5453 # So we just punt and use a minimum line length of 8192.
5454 lt_cv_sys_max_cmd_len=8192;
5458 # If test is not a shell built-in, we'll probably end up computing a
5459 # maximum length that is only half of the actual maximum length, but
5461 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5462 = "XX$teststring") >/dev/null 2>&1 &&
5463 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5464 lt_cv_sys_max_cmd_len=$new_result &&
5465 test $i != 17 # 1/2 MB should be enough
5468 teststring=$teststring$teststring
5471 # Add a significant safety factor because C++ compilers can tack on massive
5472 # amounts of additional arguments before passing them to the linker.
5473 # It appears as though 1/2 is a usable value.
5474 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5480 if test -n $lt_cv_sys_max_cmd_len ; then
5481 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5482 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5484 echo "$as_me:$LINENO: result: none" >&5
5485 echo "${ECHO_T}none" >&6
5491 # Check for command to grab the raw symbol name followed by C symbol from nm.
5492 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5493 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5494 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 # These are sane defaults that work on at least a few old systems.
5499 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5501 # Character class describing NM global symbol codes.
5502 symcode='[BCDEGRST]'
5504 # Regexp to match symbols that can be accessed directly from C.
5505 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5507 # Transform the above into a raw symbol and a C symbol.
5508 symxfrm='\1 \2\3 \3'
5510 # Transform an extracted symbol line into a proper C declaration
5511 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5513 # Transform an extracted symbol line into symbol name and symbol address
5514 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'"
5516 # Define system-specific variables.
5521 cygwin* | mingw* | pw32*)
5522 symcode='[ABCDGISTW]'
5524 hpux*) # Its linker distinguishes data from code symbols
5525 if test "$host_cpu" = ia64; then
5526 symcode='[ABCDEGRST]'
5528 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5529 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'"
5532 symcode='[BCDEGRST]'
5535 symcode='[BCDEGQRST]'
5545 # Handle CRLF in mingw tool chain
5549 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5553 # If we're using GNU nm, then use its standard symbol codes.
5554 case `$NM -V 2>&1` in
5555 *GNU* | *'with BFD'*)
5556 symcode='[ABCDGIRSTW]' ;;
5559 # Try without a prefix undercore, then with it.
5560 for ac_symprfx in "" "_"; do
5562 # Write the raw and C identifiers.
5563 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5565 # Check to see that the pipe works correctly.
5569 cat > conftest.$ac_ext <<EOF
5574 void nm_test_func(){}
5578 int main(){nm_test_var='a';nm_test_func();return(0);}
5581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5582 (eval $ac_compile) 2>&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; then
5586 # Now try to grab the symbols.
5588 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5589 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && test -s "$nlist"; then
5593 # Try sorting and uniquifying the output.
5594 if sort "$nlist" | uniq > "$nlist"T; then
5595 mv -f "$nlist"T "$nlist"
5600 # Make sure that we snagged all the symbols we need.
5601 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5602 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5603 cat <<EOF > conftest.$ac_ext
5609 # Now generate the symbol file.
5610 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5612 cat <<EOF >> conftest.$ac_ext
5613 #if defined (__STDC__) && __STDC__
5614 # define lt_ptr_t void *
5616 # define lt_ptr_t char *
5620 /* The mapping between symbol names and symbols. */
5625 lt_preloaded_symbols[] =
5628 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5629 cat <<\EOF >> conftest.$ac_ext
5637 # Now try linking the two files.
5638 mv conftest.$ac_objext conftstm.$ac_objext
5639 lt_save_LIBS="$LIBS"
5640 lt_save_CFLAGS="$CFLAGS"
5641 LIBS="conftstm.$ac_objext"
5642 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5644 (eval $ac_link) 2>&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5650 LIBS="$lt_save_LIBS"
5651 CFLAGS="$lt_save_CFLAGS"
5653 echo "cannot find nm_test_func in $nlist" >&5
5656 echo "cannot find nm_test_var in $nlist" >&5
5659 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5662 echo "$progname: failed program was:" >&5
5663 cat conftest.$ac_ext >&5
5665 rm -f conftest* conftst*
5667 # Do not use the global_symbol_pipe unless it works.
5668 if test "$pipe_works" = yes; then
5671 lt_cv_sys_global_symbol_pipe=
5677 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5678 lt_cv_sys_global_symbol_to_cdecl=
5680 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5681 echo "$as_me:$LINENO: result: failed" >&5
5682 echo "${ECHO_T}failed" >&6
5684 echo "$as_me:$LINENO: result: ok" >&5
5685 echo "${ECHO_T}ok" >&6
5688 echo "$as_me:$LINENO: checking for objdir" >&5
5689 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5690 if test "${lt_cv_objdir+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 rm -f .libs 2>/dev/null
5694 mkdir .libs 2>/dev/null
5695 if test -d .libs; then
5698 # MS-DOS does not allow filenames that begin with a dot.
5701 rmdir .libs 2>/dev/null
5703 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5704 echo "${ECHO_T}$lt_cv_objdir" >&6
5705 objdir=$lt_cv_objdir
5713 # AIX sometimes has problems with the GCC collect2 program. For some
5714 # reason, if we set the COLLECT_NAMES environment variable, the problems
5715 # vanish in a puff of smoke.
5716 if test "X${COLLECT_NAMES+set}" != Xset; then
5718 export COLLECT_NAMES
5723 # Sed substitution that helps us do robust quoting. It backslashifies
5724 # metacharacters that are still active within double-quoted strings.
5725 Xsed='sed -e s/^X//'
5726 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5728 # Same as above, but do not quote variable references.
5729 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5731 # Sed substitution to delay expansion of an escaped shell variable in a
5732 # double_quote_subst'ed string.
5733 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5735 # Sed substitution to avoid accidental globbing in evaled expressions
5736 no_glob_subst='s/\*/\\\*/g'
5742 default_ofile=libtool
5743 can_build_shared=yes
5745 # All known linkers require a `.a' archive for static linking (except M$VC,
5746 # which needs '.lib').
5748 ltmain="$ac_aux_dir/ltmain.sh"
5749 ofile="$default_ofile"
5750 with_gnu_ld="$lt_cv_prog_gnu_ld"
5752 if test -n "$ac_tool_prefix"; then
5753 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5754 set dummy ${ac_tool_prefix}ar; ac_word=$2
5755 echo "$as_me:$LINENO: checking for $ac_word" >&5
5756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5757 if test "${ac_cv_prog_AR+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 if test -n "$AR"; then
5761 ac_cv_prog_AR="$AR" # Let the user override the test.
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770 ac_cv_prog_AR="${ac_tool_prefix}ar"
5771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 if test -n "$AR"; then
5781 echo "$as_me:$LINENO: result: $AR" >&5
5782 echo "${ECHO_T}$AR" >&6
5784 echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6
5789 if test -z "$ac_cv_prog_AR"; then
5791 # Extract the first word of "ar", so it can be a program name with args.
5792 set dummy ar; ac_word=$2
5793 echo "$as_me:$LINENO: checking for $ac_word" >&5
5794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5795 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 if test -n "$ac_ct_AR"; then
5799 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5808 ac_cv_prog_ac_ct_AR="ar"
5809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5818 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5819 if test -n "$ac_ct_AR"; then
5820 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5821 echo "${ECHO_T}$ac_ct_AR" >&6
5823 echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6
5832 if test -n "$ac_tool_prefix"; then
5833 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5834 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5835 echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5837 if test "${ac_cv_prog_RANLIB+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 if test -n "$RANLIB"; then
5841 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 RANLIB=$ac_cv_prog_RANLIB
5860 if test -n "$RANLIB"; then
5861 echo "$as_me:$LINENO: result: $RANLIB" >&5
5862 echo "${ECHO_T}$RANLIB" >&6
5864 echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6
5869 if test -z "$ac_cv_prog_RANLIB"; then
5870 ac_ct_RANLIB=$RANLIB
5871 # Extract the first word of "ranlib", so it can be a program name with args.
5872 set dummy ranlib; ac_word=$2
5873 echo "$as_me:$LINENO: checking for $ac_word" >&5
5874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5875 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 if test -n "$ac_ct_RANLIB"; then
5879 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888 ac_cv_prog_ac_ct_RANLIB="ranlib"
5889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5898 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5899 if test -n "$ac_ct_RANLIB"; then
5900 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5901 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5903 echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6
5907 RANLIB=$ac_ct_RANLIB
5909 RANLIB="$ac_cv_prog_RANLIB"
5912 if test -n "$ac_tool_prefix"; then
5913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5914 set dummy ${ac_tool_prefix}strip; ac_word=$2
5915 echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5917 if test "${ac_cv_prog_STRIP+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 if test -n "$STRIP"; then
5921 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 STRIP=$ac_cv_prog_STRIP
5940 if test -n "$STRIP"; then
5941 echo "$as_me:$LINENO: result: $STRIP" >&5
5942 echo "${ECHO_T}$STRIP" >&6
5944 echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5949 if test -z "$ac_cv_prog_STRIP"; then
5951 # Extract the first word of "strip", so it can be a program name with args.
5952 set dummy strip; ac_word=$2
5953 echo "$as_me:$LINENO: checking for $ac_word" >&5
5954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5955 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 if test -n "$ac_ct_STRIP"; then
5959 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968 ac_cv_prog_ac_ct_STRIP="strip"
5969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5978 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5979 if test -n "$ac_ct_STRIP"; then
5980 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5981 echo "${ECHO_T}$ac_ct_STRIP" >&6
5983 echo "$as_me:$LINENO: result: no" >&5
5984 echo "${ECHO_T}no" >&6
5989 STRIP="$ac_cv_prog_STRIP"
5994 old_CFLAGS="$CFLAGS"
5996 # Set sane defaults for various variables
5997 test -z "$AR" && AR=ar
5998 test -z "$AR_FLAGS" && AR_FLAGS=cru
5999 test -z "$AS" && AS=as
6000 test -z "$CC" && CC=cc
6001 test -z "$LTCC" && LTCC=$CC
6002 test -z "$DLLTOOL" && DLLTOOL=dlltool
6003 test -z "$LD" && LD=ld
6004 test -z "$LN_S" && LN_S="ln -s"
6005 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6006 test -z "$NM" && NM=nm
6007 test -z "$SED" && SED=sed
6008 test -z "$OBJDUMP" && OBJDUMP=objdump
6009 test -z "$RANLIB" && RANLIB=:
6010 test -z "$STRIP" && STRIP=:
6011 test -z "$ac_objext" && ac_objext=o
6013 # Determine commands to create old-style static archives.
6014 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6015 old_postinstall_cmds='chmod 644 $oldlib'
6016 old_postuninstall_cmds=
6018 if test -n "$RANLIB"; then
6021 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6024 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6027 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6030 # Only perform the check for file, if the check method requires it
6031 case $deplibs_check_method in
6033 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6034 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6035 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6036 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6044 lt_save_MAGIC_CMD="$MAGIC_CMD"
6045 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6046 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6047 for ac_dir in $ac_dummy; do
6049 test -z "$ac_dir" && ac_dir=.
6050 if test -f $ac_dir/${ac_tool_prefix}file; then
6051 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6052 if test -n "$file_magic_test_file"; then
6053 case $deplibs_check_method in
6055 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6057 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6058 $EGREP "$file_magic_regex" > /dev/null; then
6063 *** Warning: the command libtool uses to detect shared libraries,
6064 *** $file_magic_cmd, produces output that libtool cannot recognize.
6065 *** The result is that libtool may fail to recognize shared libraries
6066 *** as such. This will affect the creation of libtool libraries that
6067 *** depend on shared libraries, but programs linked with such libtool
6068 *** libraries will work regardless of this problem. Nevertheless, you
6069 *** may want to report the problem to your system manager and/or to
6070 *** bug-libtool@gnu.org
6080 MAGIC_CMD="$lt_save_MAGIC_CMD"
6085 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6086 if test -n "$MAGIC_CMD"; then
6087 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6088 echo "${ECHO_T}$MAGIC_CMD" >&6
6090 echo "$as_me:$LINENO: result: no" >&5
6091 echo "${ECHO_T}no" >&6
6094 if test -z "$lt_cv_path_MAGIC_CMD"; then
6095 if test -n "$ac_tool_prefix"; then
6096 echo "$as_me:$LINENO: checking for file" >&5
6097 echo $ECHO_N "checking for file... $ECHO_C" >&6
6098 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6106 lt_save_MAGIC_CMD="$MAGIC_CMD"
6107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6108 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6109 for ac_dir in $ac_dummy; do
6111 test -z "$ac_dir" && ac_dir=.
6112 if test -f $ac_dir/file; then
6113 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6114 if test -n "$file_magic_test_file"; then
6115 case $deplibs_check_method in
6117 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6118 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6119 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6120 $EGREP "$file_magic_regex" > /dev/null; then
6125 *** Warning: the command libtool uses to detect shared libraries,
6126 *** $file_magic_cmd, produces output that libtool cannot recognize.
6127 *** The result is that libtool may fail to recognize shared libraries
6128 *** as such. This will affect the creation of libtool libraries that
6129 *** depend on shared libraries, but programs linked with such libtool
6130 *** libraries will work regardless of this problem. Nevertheless, you
6131 *** may want to report the problem to your system manager and/or to
6132 *** bug-libtool@gnu.org
6142 MAGIC_CMD="$lt_save_MAGIC_CMD"
6147 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6148 if test -n "$MAGIC_CMD"; then
6149 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6150 echo "${ECHO_T}$MAGIC_CMD" >&6
6152 echo "$as_me:$LINENO: result: no" >&5
6153 echo "${ECHO_T}no" >&6
6168 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6169 if test "${enable_libtool_lock+set}" = set; then
6170 enableval="$enable_libtool_lock"
6173 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6176 # Check whether --with-pic or --without-pic was given.
6177 if test "${with_pic+set}" = set; then
6183 test -z "$pic_mode" && pic_mode=default
6185 # Use C for the default configuration in the libtool script
6189 ac_cpp='$CPP $CPPFLAGS'
6190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6195 # Source file extension for C test sources.
6198 # Object file extension for compiled C test sources.
6202 # Code to be used in simple compile tests
6203 lt_simple_compile_test_code="int some_variable = 0;\n"
6205 # Code to be used in simple link tests
6206 lt_simple_link_test_code='int main(){return(0);}\n'
6209 # If no C compiler was specified, use CC.
6212 # Allow CC to be a program name with arguments.
6217 # Check for any special shared library compilation flags.
6220 if test "$GCC" = no; then
6223 lt_prog_cc_shlib='-belf'
6227 if test -n "$lt_prog_cc_shlib"; then
6228 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6229 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6230 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6232 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6233 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6234 lt_cv_prog_cc_can_build_shared=no
6240 # Check to make sure the static flag actually works.
6242 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6243 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6244 if test "${lt_prog_compiler_static_works+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 lt_prog_compiler_static_works=no
6248 save_LDFLAGS="$LDFLAGS"
6249 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6250 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6251 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6252 # The compiler can only warn and ignore the option if not recognized
6253 # So say no if there are warnings
6254 if test -s conftest.err; then
6255 # Append any errors to the config.log.
6256 cat conftest.err 1>&5
6258 lt_prog_compiler_static_works=yes
6262 LDFLAGS="$save_LDFLAGS"
6265 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6266 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6268 if test x"$lt_prog_compiler_static_works" = xyes; then
6271 lt_prog_compiler_static=
6277 lt_prog_compiler_no_builtin_flag=
6279 if test "$GCC" = yes; then
6280 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6283 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6284 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6285 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 lt_cv_prog_compiler_rtti_exceptions=no
6289 ac_outfile=conftest.$ac_objext
6290 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6291 lt_compiler_flag="-fno-rtti -fno-exceptions"
6292 # Insert the option either (1) after the last *FLAGS variable, or
6293 # (2) before a word containing "conftest.", or (3) at the end.
6294 # Note that $ac_compile itself does not contain backslashes and begins
6295 # with a dollar sign (not a hyphen), so the echo should work correctly.
6296 # The option is referenced via a variable to avoid confusing sed.
6297 lt_compile=`echo "$ac_compile" | $SED \
6298 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6300 -e 's:$: $lt_compiler_flag:'`
6301 (eval echo "\"\$as_me:6301: $lt_compile\"" >&5)
6302 (eval "$lt_compile" 2>conftest.err)
6304 cat conftest.err >&5
6305 echo "$as_me:6305: \$? = $ac_status" >&5
6306 if (exit $ac_status) && test -s "$ac_outfile"; then
6307 # The compiler can only warn and ignore the option if not recognized
6308 # So say no if there are warnings
6309 if test ! -s conftest.err; then
6310 lt_cv_prog_compiler_rtti_exceptions=yes
6316 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6317 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6319 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6320 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6327 lt_prog_compiler_wl=
6328 lt_prog_compiler_pic=
6329 lt_prog_compiler_static=
6331 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6332 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6334 if test "$GCC" = yes; then
6335 lt_prog_compiler_wl='-Wl,'
6336 lt_prog_compiler_static='-static'
6340 # All AIX code is PIC.
6341 if test "$host_cpu" = ia64; then
6342 # AIX 5 now supports IA64 processor
6343 lt_prog_compiler_static='-Bstatic'
6348 # FIXME: we need at least 68020 code to build shared libraries, but
6349 # adding the `-m68020' flag to GCC prevents building anything better,
6351 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6354 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6355 # PIC is the default for these OSes.
6358 mingw* | pw32* | os2*)
6359 # This hack is so that the source file can tell whether it is being
6360 # built for inclusion in a dll (and should export symbols for example).
6361 lt_prog_compiler_pic='-DDLL_EXPORT'
6364 darwin* | rhapsody*)
6365 # PIC is the default on this platform
6366 # Common symbols not allowed in MH_DYLIB files
6367 lt_prog_compiler_pic='-fno-common'
6371 # Just because we use GCC doesn't mean we suddenly get shared libraries
6372 # on systems that don't support them.
6373 lt_prog_compiler_can_build_shared=no
6378 if test -d /usr/nec; then
6379 lt_prog_compiler_pic=-Kconform_pic
6384 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6391 lt_prog_compiler_pic='-fPIC'
6397 lt_prog_compiler_pic='-fPIC'
6401 # PORTME Check for flag to pass linker flags through the system compiler.
6404 lt_prog_compiler_wl='-Wl,'
6405 if test "$host_cpu" = ia64; then
6406 # AIX 5 now supports IA64 processor
6407 lt_prog_compiler_static='-Bstatic'
6409 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6413 mingw* | pw32* | os2*)
6414 # This hack is so that the source file can tell whether it is being
6415 # built for inclusion in a dll (and should export symbols for example).
6416 lt_prog_compiler_pic='-DDLL_EXPORT'
6419 hpux9* | hpux10* | hpux11*)
6420 lt_prog_compiler_wl='-Wl,'
6421 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6428 lt_prog_compiler_pic='+Z'
6431 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6432 lt_prog_compiler_static='${wl}-a ${wl}archive'
6435 irix5* | irix6* | nonstopux*)
6436 lt_prog_compiler_wl='-Wl,'
6437 # PIC (with -KPIC) is the default.
6438 lt_prog_compiler_static='-non_shared'
6442 lt_prog_compiler_pic='-KPIC'
6443 lt_prog_compiler_static='-Bstatic'
6449 lt_prog_compiler_wl='-Wl,'
6450 lt_prog_compiler_pic='-KPIC'
6451 lt_prog_compiler_static='-static'
6454 lt_prog_compiler_wl='-Wl,'
6455 # All Alpha code is PIC.
6456 lt_prog_compiler_static='-non_shared'
6461 osf3* | osf4* | osf5*)
6462 lt_prog_compiler_wl='-Wl,'
6463 # All OSF/1 code is PIC.
6464 lt_prog_compiler_static='-non_shared'
6468 lt_prog_compiler_pic='-Kpic'
6469 lt_prog_compiler_static='-dn'
6473 lt_prog_compiler_wl='-Wl,'
6474 lt_prog_compiler_pic='-KPIC'
6475 lt_prog_compiler_static='-Bstatic'
6479 lt_prog_compiler_wl='-Qoption ld '
6480 lt_prog_compiler_pic='-PIC'
6481 lt_prog_compiler_static='-Bstatic'
6484 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6485 lt_prog_compiler_wl='-Wl,'
6486 lt_prog_compiler_pic='-KPIC'
6487 lt_prog_compiler_static='-Bstatic'
6491 if test -d /usr/nec ;then
6492 lt_prog_compiler_pic='-Kconform_pic'
6493 lt_prog_compiler_static='-Bstatic'
6498 lt_prog_compiler_pic='-pic'
6499 lt_prog_compiler_static='-Bstatic'
6503 lt_prog_compiler_can_build_shared=no
6508 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6509 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6512 # Check to make sure the PIC flag actually works.
6514 if test -n "$lt_prog_compiler_pic"; then
6516 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6517 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6518 if test "${lt_prog_compiler_pic_works+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 lt_prog_compiler_pic_works=no
6522 ac_outfile=conftest.$ac_objext
6523 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6524 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6525 # Insert the option either (1) after the last *FLAGS variable, or
6526 # (2) before a word containing "conftest.", or (3) at the end.
6527 # Note that $ac_compile itself does not contain backslashes and begins
6528 # with a dollar sign (not a hyphen), so the echo should work correctly.
6529 # The option is referenced via a variable to avoid confusing sed.
6530 lt_compile=`echo "$ac_compile" | $SED \
6531 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6533 -e 's:$: $lt_compiler_flag:'`
6534 (eval echo "\"\$as_me:6534: $lt_compile\"" >&5)
6535 (eval "$lt_compile" 2>conftest.err)
6537 cat conftest.err >&5
6538 echo "$as_me:6538: \$? = $ac_status" >&5
6539 if (exit $ac_status) && test -s "$ac_outfile"; then
6540 # The compiler can only warn and ignore the option if not recognized
6541 # So say no if there are warnings
6542 if test ! -s conftest.err; then
6543 lt_prog_compiler_pic_works=yes
6549 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6550 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6552 if test x"$lt_prog_compiler_pic_works" = xyes; then
6553 case $lt_prog_compiler_pic in
6555 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6558 lt_prog_compiler_pic=
6559 lt_prog_compiler_can_build_shared=no
6564 # For platforms which do not support PIC, -DPIC is meaningless:
6566 lt_prog_compiler_pic=
6569 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6573 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6574 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6575 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 lt_cv_prog_compiler_c_o=no
6579 $rm -r conftest 2>/dev/null
6583 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6585 lt_compiler_flag="-o out/conftest2.$ac_objext"
6586 # Insert the option either (1) after the last *FLAGS variable, or
6587 # (2) before a word containing "conftest.", or (3) at the end.
6588 # Note that $ac_compile itself does not contain backslashes and begins
6589 # with a dollar sign (not a hyphen), so the echo should work correctly.
6590 lt_compile=`echo "$ac_compile" | $SED \
6591 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6593 -e 's:$: $lt_compiler_flag:'`
6594 (eval echo "\"\$as_me:6594: $lt_compile\"" >&5)
6595 (eval "$lt_compile" 2>out/conftest.err)
6597 cat out/conftest.err >&5
6598 echo "$as_me:6598: \$? = $ac_status" >&5
6599 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6601 # The compiler can only warn and ignore the option if not recognized
6602 # So say no if there are warnings
6603 if test ! -s out/conftest.err; then
6604 lt_cv_prog_compiler_c_o=yes
6609 # SGI C++ compiler will create directory out/ii_files/ for
6610 # template instantiation
6611 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6612 $rm out/* && rmdir out
6618 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6619 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6622 hard_links="nottested"
6623 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6624 # do not overwrite the value of need_locks provided by the user
6625 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6626 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6629 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6631 ln conftest.a conftest.b 2>&5 || hard_links=no
6632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6633 echo "$as_me:$LINENO: result: $hard_links" >&5
6634 echo "${ECHO_T}$hard_links" >&6
6635 if test "$hard_links" = no; then
6636 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6637 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6644 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6645 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6648 allow_undefined_flag=
6649 enable_shared_with_static_runtimes=no
6651 archive_expsym_cmds=
6652 old_archive_From_new_cmds=
6653 old_archive_from_expsyms_cmds=
6654 export_dynamic_flag_spec=
6655 whole_archive_flag_spec=
6656 thread_safe_flag_spec=
6657 hardcode_libdir_flag_spec=
6658 hardcode_libdir_flag_spec_ld=
6659 hardcode_libdir_separator=
6662 hardcode_shlibpath_var=unsupported
6663 link_all_deplibs=unknown
6664 hardcode_automatic=no
6667 always_export_symbols=no
6668 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6669 # include_expsyms should be a list of space-separated symbols to be *always*
6670 # included in the symbol list
6672 # exclude_expsyms can be an extended regexp of symbols to exclude
6673 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6674 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6675 # as well as any symbol that contains `d'.
6676 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6677 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6678 # platforms (ab)use it in PIC code, but their linkers get confused if
6679 # the symbol is explicitly referenced. Since portable code cannot
6680 # rely on this symbol name, it's probably fine to never include it in
6681 # preloaded symbol tables.
6682 extract_expsyms_cmds=
6685 cygwin* | mingw* | pw32*)
6686 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6687 # When not using gcc, we currently assume that we are using
6688 # Microsoft Visual C++.
6689 if test "$GCC" != yes; then
6699 if test "$with_gnu_ld" = yes; then
6700 # If archive_cmds runs LD, not CC, wlarc should be empty
6703 # See if GNU ld supports shared libraries.
6705 aix3* | aix4* | aix5*)
6706 # On AIX/PPC, the GNU linker is very broken
6707 if test "$host_cpu" != ia64; then
6711 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6712 *** to be unable to reliably create shared libraries on AIX.
6713 *** Therefore, libtool is disabling shared libraries support. If you
6714 *** really care for shared libraries, you may want to modify your PATH
6715 *** so that a non-GNU linker is found, and then restart.
6722 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)'
6723 hardcode_libdir_flag_spec='-L$libdir'
6724 hardcode_minus_L=yes
6726 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6727 # that the semantics of dynamic libraries on AmigaOS, at least up
6728 # to version 4, is to share data among multiple programs linked
6729 # with the same dynamic library. Since this doesn't match the
6730 # behavior of shared libraries on other platforms, we can't use
6736 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6737 allow_undefined_flag=unsupported
6738 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6739 # support --undefined. This deserves some investigation. FIXME
6740 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6746 cygwin* | mingw* | pw32*)
6747 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6748 # as there is no search path for DLLs.
6749 hardcode_libdir_flag_spec='-L$libdir'
6750 allow_undefined_flag=unsupported
6751 always_export_symbols=no
6752 enable_shared_with_static_runtimes=yes
6753 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6755 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6757 # If the export-symbols file already is a .def file (1st line
6758 # is EXPORTS), use it as is; otherwise, prepend...
6759 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6760 cp $export_symbols $output_objdir/$soname.def;
6762 echo EXPORTS > $output_objdir/$soname.def;
6763 cat $export_symbols >> $output_objdir/$soname.def;
6765 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6772 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6773 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6777 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6782 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6786 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6787 *** create shared libraries on Solaris systems. Therefore, libtool
6788 *** is disabling shared libraries support. We urge you to upgrade GNU
6789 *** binutils to release 2.9.1 or newer. Another option is to modify
6790 *** your PATH or compiler configuration so that the native linker is
6791 *** used, and then restart.
6794 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6803 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6806 hardcode_shlibpath_var=no
6810 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6811 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6812 archive_cmds="$tmp_archive_cmds"
6813 supports_anon_versioning=no
6814 case `$LD -v 2>/dev/null` in
6815 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6816 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6817 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6818 *\ 2.11.*) ;; # other 2.11 versions
6819 *) supports_anon_versioning=yes ;;
6821 if test $supports_anon_versioning = yes; then
6822 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6823 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6824 $echo "local: *; };" >> $output_objdir/$libname.ver~
6825 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6827 archive_expsym_cmds="$tmp_archive_cmds"
6835 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6837 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6844 if test "$ld_shlibs" = yes; then
6845 runpath_var=LD_RUN_PATH
6846 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6847 export_dynamic_flag_spec='${wl}--export-dynamic'
6848 # ancient GNU ld didn't support --whole-archive et. al.
6849 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6850 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6852 whole_archive_flag_spec=
6856 # PORTME fill in a description of your system's linker (not GNU ld)
6859 allow_undefined_flag=unsupported
6860 always_export_symbols=yes
6861 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'
6862 # Note: this linker hardcodes the directories in LIBPATH if there
6863 # are no directories specified by -L.
6864 hardcode_minus_L=yes
6865 if test "$GCC" = yes && test -z "$link_static_flag"; then
6866 # Neither direct hardcoding nor static linking is supported with a
6868 hardcode_direct=unsupported
6873 if test "$host_cpu" = ia64; then
6874 # On IA64, the linker does run time linking by default, so we don't
6875 # have to do anything special.
6876 aix_use_runtimelinking=no
6877 exp_sym_flag='-Bexport'
6880 # If we're using GNU nm, then we don't want the "-C" option.
6881 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6882 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6883 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'
6885 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'
6887 aix_use_runtimelinking=no
6889 # Test if we are trying to use run time linking or normal
6890 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6891 # need to do runtime linking.
6892 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6893 for ld_flag in $LDFLAGS; do
6894 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6895 aix_use_runtimelinking=yes
6901 exp_sym_flag='-bexport'
6902 no_entry_flag='-bnoentry'
6905 # When large executables or shared objects are built, AIX ld can
6906 # have problems creating the table of contents. If linking a library
6907 # or program results in "error TOC overflow" add -mminimal-toc to
6908 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6909 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6913 hardcode_libdir_separator=':'
6914 link_all_deplibs=yes
6916 if test "$GCC" = yes; then
6917 case $host_os in aix4.012|aix4.012.*)
6918 # We only want to do this on AIX 4.2 and lower, the check
6919 # below for broken collect2 doesn't work under 4.3+
6920 collect2name=`${CC} -print-prog-name=collect2`
6921 if test -f "$collect2name" && \
6922 strings "$collect2name" | grep resolve_lib_name >/dev/null
6924 # We have reworked collect2
6927 # We have old collect2
6928 hardcode_direct=unsupported
6929 # It fails to find uninstalled libraries when the uninstalled
6930 # path is not listed in the libpath. Setting hardcode_minus_L
6931 # to unsupported forces relinking
6932 hardcode_minus_L=yes
6933 hardcode_libdir_flag_spec='-L$libdir'
6934 hardcode_libdir_separator=
6937 shared_flag='-shared'
6940 if test "$host_cpu" = ia64; then
6941 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6942 # chokes on -Wl,-G. The following line is correct:
6945 if test "$aix_use_runtimelinking" = yes; then
6946 shared_flag='${wl}-G'
6948 shared_flag='${wl}-bM:SRE'
6953 # It seems that -bexpall does not export symbols beginning with
6954 # underscore (_), so it is better to generate a list of symbols to export.
6955 always_export_symbols=yes
6956 if test "$aix_use_runtimelinking" = yes; then
6957 # Warning - without using the other runtime loading flags (-brtl),
6958 # -berok will link without error, but may produce a broken library.
6959 allow_undefined_flag='-berok'
6960 # Determine the default libpath from the value encoded in an empty executable.
6961 cat >conftest.$ac_ext <<_ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h. */
6976 rm -f conftest.$ac_objext conftest$ac_exeext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6978 (eval $ac_link) 2>conftest.er1
6980 grep -v '^ *+' conftest.er1 >conftest.err
6982 cat conftest.err >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } &&
6985 { ac_try='test -z "$ac_c_werror_flag"
6986 || test ! -s conftest.err'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; } &&
6992 { ac_try='test -s conftest$ac_exeext'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; }; then
6999 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7001 # Check for a 64-bit object if we didn't find anything.
7002 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; }
7005 echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7009 rm -f conftest.err conftest.$ac_objext \
7010 conftest$ac_exeext conftest.$ac_ext
7011 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7013 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7014 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"
7016 if test "$host_cpu" = ia64; then
7017 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7018 allow_undefined_flag="-z nodefs"
7019 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"
7021 # Determine the default libpath from the value encoded in an empty executable.
7022 cat >conftest.$ac_ext <<_ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7037 rm -f conftest.$ac_objext conftest$ac_exeext
7038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7039 (eval $ac_link) 2>conftest.er1
7041 grep -v '^ *+' conftest.er1 >conftest.err
7043 cat conftest.err >&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } &&
7046 { ac_try='test -z "$ac_c_werror_flag"
7047 || test ! -s conftest.err'
7048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); }; } &&
7053 { ac_try='test -s conftest$ac_exeext'
7054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); }; }; then
7060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7062 # Check for a 64-bit object if we didn't find anything.
7063 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; }
7066 echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7070 rm -f conftest.err conftest.$ac_objext \
7071 conftest$ac_exeext conftest.$ac_ext
7072 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7074 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7075 # Warning - without using the other run time loading flags,
7076 # -berok will link without error, but may produce a broken library.
7077 no_undefined_flag=' ${wl}-bernotok'
7078 allow_undefined_flag=' ${wl}-berok'
7079 # -bexpall does not export symbols beginning with underscore (_)
7080 always_export_symbols=yes
7081 # Exported symbols can be pulled into shared objects from archives
7082 whole_archive_flag_spec=' '
7083 archive_cmds_need_lc=yes
7084 # This is similar to how AIX traditionally builds it's shared libraries.
7085 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'
7091 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)'
7092 hardcode_libdir_flag_spec='-L$libdir'
7093 hardcode_minus_L=yes
7094 # see comment about different semantics on the GNU ld section
7099 export_dynamic_flag_spec=-rdynamic
7102 cygwin* | mingw* | pw32*)
7103 # When not using gcc, we currently assume that we are using
7104 # Microsoft Visual C++.
7105 # hardcode_libdir_flag_spec is actually meaningless, as there is
7106 # no search path for DLLs.
7107 hardcode_libdir_flag_spec=' '
7108 allow_undefined_flag=unsupported
7109 # Tell ltmain to make .lib files, not .a files.
7111 # Tell ltmain to make .dll files, not .so files.
7113 # FIXME: Setting linknames here is a bad hack.
7114 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7115 # The linker will automatically build a .lib file if we build a DLL.
7116 old_archive_From_new_cmds='true'
7117 # FIXME: Should let the user specify the lib program.
7118 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7119 fix_srcfile_path='`cygpath -w "$srcfile"`'
7120 enable_shared_with_static_runtimes=yes
7123 darwin* | rhapsody*)
7124 if test "$GXX" = yes ; then
7125 archive_cmds_need_lc=no
7127 rhapsody* | darwin1.[012])
7128 allow_undefined_flag='-undefined suppress'
7131 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7132 allow_undefined_flag='-flat_namespace -undefined suppress'
7134 case ${MACOSX_DEPLOYMENT_TARGET} in
7136 allow_undefined_flag='-flat_namespace -undefined suppress'
7139 allow_undefined_flag='-undefined dynamic_lookup'
7145 lt_int_apple_cc_single_mod=no
7146 output_verbose_link_cmd='echo'
7147 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7148 lt_int_apple_cc_single_mod=yes
7150 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7151 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7153 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'
7155 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7156 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7157 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7158 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}'
7160 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}'
7162 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}'
7164 hardcode_automatic=yes
7165 hardcode_shlibpath_var=unsupported
7166 whole_archive_flag_spec='-all_load $convenience'
7167 link_all_deplibs=yes
7174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7175 hardcode_libdir_flag_spec='-L$libdir'
7176 hardcode_shlibpath_var=no
7183 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7184 # support. Future versions do this automatically, but an explicit c++rt0.o
7185 # does not break anything, and helps significantly (at the cost of a little
7188 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7189 hardcode_libdir_flag_spec='-R$libdir'
7191 hardcode_shlibpath_var=no
7194 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7196 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7198 hardcode_minus_L=yes
7199 hardcode_shlibpath_var=no
7202 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7203 freebsd* | kfreebsd*-gnu)
7204 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7205 hardcode_libdir_flag_spec='-R$libdir'
7207 hardcode_shlibpath_var=no
7211 if test "$GCC" = yes; then
7212 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'
7214 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'
7216 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7217 hardcode_libdir_separator=:
7220 # hardcode_minus_L: Not really in the search PATH,
7221 # but as the default location of the library.
7222 hardcode_minus_L=yes
7223 export_dynamic_flag_spec='${wl}-E'
7227 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7230 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7233 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7239 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7242 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7246 if test "$with_gnu_ld" = no; then
7249 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7250 hardcode_libdir_flag_spec_ld='+b $libdir'
7251 hardcode_libdir_separator=:
7253 hardcode_shlibpath_var=no
7256 hardcode_libdir_flag_spec='-L$libdir'
7258 hardcode_shlibpath_var=no
7260 # hardcode_minus_L: Not really in the search PATH,
7261 # but as the default location of the library.
7262 hardcode_minus_L=yes
7265 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7266 hardcode_libdir_separator=:
7268 export_dynamic_flag_spec='${wl}-E'
7270 # hardcode_minus_L: Not really in the search PATH,
7271 # but as the default location of the library.
7272 hardcode_minus_L=yes
7278 irix5* | irix6* | nonstopux*)
7279 if test "$GCC" = yes; then
7280 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'
7282 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'
7283 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7285 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7286 hardcode_libdir_separator=:
7287 link_all_deplibs=yes
7291 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7292 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7294 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7296 hardcode_libdir_flag_spec='-R$libdir'
7298 hardcode_shlibpath_var=no
7302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7305 hardcode_libdir_separator=:
7306 hardcode_shlibpath_var=no
7311 hardcode_shlibpath_var=no
7312 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7314 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7315 export_dynamic_flag_spec='${wl}-E'
7318 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7319 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7320 hardcode_libdir_flag_spec='-R$libdir'
7323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7324 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7331 hardcode_libdir_flag_spec='-L$libdir'
7332 hardcode_minus_L=yes
7333 allow_undefined_flag=unsupported
7334 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'
7335 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7339 if test "$GCC" = yes; then
7340 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7341 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'
7343 allow_undefined_flag=' -expect_unresolved \*'
7344 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'
7346 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7347 hardcode_libdir_separator=:
7350 osf4* | osf5*) # as osf3* with the addition of -msym flag
7351 if test "$GCC" = yes; then
7352 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7353 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'
7354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7356 allow_undefined_flag=' -expect_unresolved \*'
7357 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'
7358 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7359 $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'
7361 # Both c and cxx compiler support -rpath directly
7362 hardcode_libdir_flag_spec='-rpath $libdir'
7364 hardcode_libdir_separator=:
7368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7369 hardcode_shlibpath_var=no
7370 export_dynamic_flag_spec='${wl}-Bexport'
7371 runpath_var=LD_RUN_PATH
7372 hardcode_runpath_var=yes
7376 no_undefined_flag=' -z text'
7377 if test "$GCC" = yes; then
7378 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7379 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7380 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7382 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7383 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7384 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7386 hardcode_libdir_flag_spec='-R$libdir'
7387 hardcode_shlibpath_var=no
7389 solaris2.[0-5] | solaris2.[0-5].*) ;;
7390 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7391 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7393 link_all_deplibs=yes
7397 if test "x$host_vendor" = xsequent; then
7398 # Use $CC to link under sequent, because it throws in some extra .o
7399 # files that make .init and .fini sections work.
7400 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7402 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7404 hardcode_libdir_flag_spec='-L$libdir'
7406 hardcode_minus_L=yes
7407 hardcode_shlibpath_var=no
7411 case $host_vendor in
7413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7414 hardcode_direct=yes # is this really true???
7417 ## LD is ld it makes a PLAMLIB
7418 ## CC just makes a GrossModule.
7419 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7420 reload_cmds='$CC -r -o $output$reload_objs'
7424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7425 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7428 runpath_var='LD_RUN_PATH'
7429 hardcode_shlibpath_var=no
7433 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7434 hardcode_shlibpath_var=no
7435 export_dynamic_flag_spec='-Bexport'
7439 if test -d /usr/nec; then
7440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7441 hardcode_shlibpath_var=no
7442 runpath_var=LD_RUN_PATH
7443 hardcode_runpath_var=yes
7449 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7452 hardcode_shlibpath_var=no
7453 hardcode_runpath_var=yes
7454 runpath_var=LD_RUN_PATH
7457 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7458 no_undefined_flag='${wl}-z ${wl}text'
7459 if test "$GCC" = yes; then
7460 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7462 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7464 runpath_var='LD_RUN_PATH'
7465 hardcode_shlibpath_var=no
7469 no_undefined_flag=' -z text'
7470 # $CC -shared without GNU ld will not create a library from C++
7471 # object files and a static libstdc++, better avoid it by now
7472 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7473 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7474 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7475 hardcode_libdir_flag_spec=
7476 hardcode_shlibpath_var=no
7477 runpath_var='LD_RUN_PATH'
7481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7482 hardcode_libdir_flag_spec='-L$libdir'
7483 hardcode_shlibpath_var=no
7492 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7493 echo "${ECHO_T}$ld_shlibs" >&6
7494 test "$ld_shlibs" = no && can_build_shared=no
7496 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7497 if test "$GCC" = yes; then
7498 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7502 # Do we need to explicitly link libc?
7504 case "x$archive_cmds_need_lc" in
7506 # Assume -lc should be added
7507 archive_cmds_need_lc=yes
7509 if test "$enable_shared" = yes && test "$GCC" = yes; then
7510 case $archive_cmds in
7512 # FIXME: we may have to deal with multi-command sequences.
7515 # Test whether the compiler implicitly links with -lc since on some
7516 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7517 # to ld, don't add -lc before -lgcc.
7518 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7519 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7521 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7524 (eval $ac_compile) 2>&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } 2>conftest.err; then
7530 libobjs=conftest.$ac_objext
7532 wl=$lt_prog_compiler_wl
7538 lt_save_allow_undefined_flag=$allow_undefined_flag
7539 allow_undefined_flag=
7540 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7541 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); }
7546 archive_cmds_need_lc=no
7548 archive_cmds_need_lc=yes
7550 allow_undefined_flag=$lt_save_allow_undefined_flag
7552 cat conftest.err 1>&5
7555 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7556 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7563 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7564 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7566 libname_spec='lib$name'
7574 shlibpath_overrides_runpath=unknown
7576 dynamic_linker="$host_os ld.so"
7577 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7578 if test "$GCC" = yes; then
7579 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7580 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7581 # if the path contains ";" then we assume it to be the separator
7582 # otherwise default to the standard path separator (i.e. ":") - it is
7583 # assumed that no part of a normal pathname contains ";" but that should
7584 # okay in the real world where ";" in dirpaths is itself problematic.
7585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7590 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7592 need_lib_prefix=unknown
7593 hardcode_into_libs=no
7595 # when you set need_version to no, make sure it does not cause -set_version
7596 # flags to be left without arguments
7597 need_version=unknown
7602 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7603 shlibpath_var=LIBPATH
7605 # AIX 3 has no versioning support, so we append a major version to the name.
7606 soname_spec='${libname}${release}${shared_ext}$major'
7613 hardcode_into_libs=yes
7614 if test "$host_cpu" = ia64; then
7615 # AIX 5 supports IA64
7616 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7617 shlibpath_var=LD_LIBRARY_PATH
7619 # With GCC up to 2.95.x, collect2 would create an import file
7620 # for dependence libraries. The import file would start with
7621 # the line `#! .'. This would cause the generated library to
7622 # depend on `.', always an invalid library. This was fixed in
7623 # development snapshots of GCC prior to 3.0.
7625 aix4 | aix4.[01] | aix4.[01].*)
7626 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7628 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7635 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7636 # soname into executable. Probably we can add versioning support to
7637 # collect2, so additional links can be useful in future.
7638 if test "$aix_use_runtimelinking" = yes; then
7639 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7640 # instead of lib<name>.a to let people know that these are not
7641 # typical AIX shared libraries.
7642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7644 # We preserve .a as extension for shared libraries through AIX4.2
7645 # and later when we are not doing run time linking.
7646 library_names_spec='${libname}${release}.a $libname.a'
7647 soname_spec='${libname}${release}${shared_ext}$major'
7649 shlibpath_var=LIBPATH
7654 library_names_spec='$libname.ixlibrary $libname.a'
7655 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7656 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'
7660 library_names_spec='${libname}${shared_ext}'
7661 dynamic_linker="$host_os ld.so"
7662 shlibpath_var=LIBRARY_PATH
7668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7669 soname_spec='${libname}${release}${shared_ext}$major'
7670 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7671 shlibpath_var=LD_LIBRARY_PATH
7672 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7673 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7674 # the default ld.so.conf also contains /usr/contrib/lib and
7675 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7676 # libtool to hard-code these into programs
7679 cygwin* | mingw* | pw32*)
7680 version_type=windows
7685 case $GCC,$host_os in
7686 yes,cygwin* | yes,mingw* | yes,pw32*)
7687 library_names_spec='$libname.dll.a'
7688 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7689 postinstall_cmds='base_file=`basename \${file}`~
7690 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7691 dldir=$destdir/`dirname \$dlpath`~
7692 test -d \$dldir || mkdir -p \$dldir~
7693 $install_prog $dir/$dlname \$dldir/$dlname'
7694 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7695 dlpath=$dir/\$dldll~
7697 shlibpath_overrides_runpath=yes
7701 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7702 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7703 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7706 # MinGW DLLs use traditional 'lib' prefix
7707 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7708 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7709 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7710 # It is most probably a Windows format PATH printed by
7711 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7712 # path with ; separators, and with drive letters. We can handle the
7713 # drive letters (cygwin fileutils understands them), so leave them,
7714 # especially as we might pass files found there to a mingw objdump,
7715 # which wouldn't understand a cygwinified path. Ahh.
7716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7722 # pw32 DLLs use 'pw' prefix rather than 'lib'
7723 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7729 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7732 dynamic_linker='Win32 ld.exe'
7733 # FIXME: first we should search . and the directory the executable is in
7737 darwin* | rhapsody*)
7738 dynamic_linker="$host_os dyld"
7742 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7743 soname_spec='${libname}${release}${major}$shared_ext'
7744 shlibpath_overrides_runpath=yes
7745 shlibpath_var=DYLD_LIBRARY_PATH
7746 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7747 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7748 if test "$GCC" = yes; then
7749 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"`
7751 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7753 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7761 soname_spec='${libname}${release}${shared_ext}$major'
7762 shlibpath_var=LD_LIBRARY_PATH
7773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7774 soname_spec='${libname}${release}${shared_ext}$major'
7775 shlibpath_var=LD_LIBRARY_PATH
7776 shlibpath_overrides_runpath=no
7777 hardcode_into_libs=yes
7778 dynamic_linker='GNU ld.so'
7782 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7783 version_type=freebsd-$objformat
7784 case $version_type in
7786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7791 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7795 shlibpath_var=LD_LIBRARY_PATH
7798 shlibpath_overrides_runpath=yes
7800 freebsd3.01* | freebsdelf3.01*)
7801 shlibpath_overrides_runpath=yes
7802 hardcode_into_libs=yes
7805 shlibpath_overrides_runpath=no
7806 hardcode_into_libs=yes
7815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7816 soname_spec='${libname}${release}${shared_ext}$major'
7817 shlibpath_var=LD_LIBRARY_PATH
7818 hardcode_into_libs=yes
7821 hpux9* | hpux10* | hpux11*)
7822 # Give a soname corresponding to the major version so that dld.sl refuses to
7823 # link against other versions.
7830 hardcode_into_libs=yes
7831 dynamic_linker="$host_os dld.so"
7832 shlibpath_var=LD_LIBRARY_PATH
7833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7835 soname_spec='${libname}${release}${shared_ext}$major'
7836 if test "X$HPUX_IA64_MODE" = X32; then
7837 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7839 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7841 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7845 hardcode_into_libs=yes
7846 dynamic_linker="$host_os dld.sl"
7847 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7848 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7850 soname_spec='${libname}${release}${shared_ext}$major'
7851 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7856 dynamic_linker="$host_os dld.sl"
7857 shlibpath_var=SHLIB_PATH
7858 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7860 soname_spec='${libname}${release}${shared_ext}$major'
7863 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7864 postinstall_cmds='chmod 555 $lib'
7867 irix5* | irix6* | nonstopux*)
7869 nonstopux*) version_type=nonstopux ;;
7871 if test "$lt_cv_prog_gnu_ld" = yes; then
7879 soname_spec='${libname}${release}${shared_ext}$major'
7880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7882 irix5* | nonstopux*)
7886 case $LD in # libtool.m4 will add one of these switches to LD
7887 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7888 libsuff= shlibsuff= libmagic=32-bit;;
7889 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7890 libsuff=32 shlibsuff=N32 libmagic=N32;;
7891 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7892 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7893 *) libsuff= shlibsuff= libmagic=never-match;;
7897 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7898 shlibpath_overrides_runpath=no
7899 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7900 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7901 hardcode_into_libs=yes
7904 # No shared lib support for Linux oldld, aout, or coff.
7905 linux*oldld* | linux*aout* | linux*coff*)
7909 # This must be Linux ELF.
7914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7915 soname_spec='${libname}${release}${shared_ext}$major'
7916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7917 shlibpath_var=LD_LIBRARY_PATH
7918 shlibpath_overrides_runpath=no
7919 # This implies no fast_install, which is unacceptable.
7920 # Some rework will be needed to allow for fast_install
7921 # before this can be enabled.
7922 hardcode_into_libs=yes
7924 # find out which ABI we are using
7927 x86_64*|s390x*|powerpc64*)
7928 echo '#line 7928 "configure"' > conftest.$ac_ext
7929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7930 (eval $ac_compile) 2>&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; then
7934 case `/usr/bin/file conftest.$ac_objext` in
7937 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7945 # Append ld.so.conf contents to the search path
7946 if test -f /etc/ld.so.conf; then
7947 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7948 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7951 # We used to test for /lib/ld.so.1 and disable shared libraries on
7952 # powerpc, because MkLinux only supported shared libraries with the
7953 # GNU dynamic linker. Since this was broken with cross compilers,
7954 # most powerpc-linux boxes support dynamic linking these days and
7955 # people can always --disable-shared, the test was removed, and we
7956 # assume the GNU/Linux dynamic linker is in use.
7957 dynamic_linker='GNU/Linux ld.so'
7964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7965 soname_spec='${libname}${release}${shared_ext}$major'
7966 shlibpath_var=LD_LIBRARY_PATH
7967 shlibpath_overrides_runpath=no
7968 hardcode_into_libs=yes
7969 dynamic_linker='GNU ld.so'
7976 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7979 dynamic_linker='NetBSD (a.out) ld.so'
7981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7982 soname_spec='${libname}${release}${shared_ext}$major'
7983 dynamic_linker='NetBSD ld.elf_so'
7985 shlibpath_var=LD_LIBRARY_PATH
7986 shlibpath_overrides_runpath=yes
7987 hardcode_into_libs=yes
7992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7993 shlibpath_var=LD_LIBRARY_PATH
7994 shlibpath_overrides_runpath=yes
8001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8002 soname_spec='${libname}${release}${shared_ext}$major'
8003 shlibpath_var=LD_LIBRARY_PATH
8004 shlibpath_overrides_runpath=yes
8011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8013 shlibpath_var=LD_LIBRARY_PATH
8014 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8016 openbsd2.[89] | openbsd2.[89].*)
8017 shlibpath_overrides_runpath=no
8020 shlibpath_overrides_runpath=yes
8024 shlibpath_overrides_runpath=yes
8029 libname_spec='$name'
8032 library_names_spec='$libname${shared_ext} $libname.a'
8033 dynamic_linker='OS/2 ld.exe'
8034 shlibpath_var=LIBPATH
8037 osf3* | osf4* | osf5*)
8041 soname_spec='${libname}${release}${shared_ext}$major'
8042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8043 shlibpath_var=LD_LIBRARY_PATH
8044 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8045 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8050 soname_spec='${libname}${release}${shared_ext}$major'
8051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8052 shlibpath_var=LD_LIBRARY_PATH
8059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8060 soname_spec='${libname}${release}${shared_ext}$major'
8061 shlibpath_var=LD_LIBRARY_PATH
8062 shlibpath_overrides_runpath=yes
8063 hardcode_into_libs=yes
8064 # ldd complains unless libraries are executable
8065 postinstall_cmds='chmod +x $lib'
8070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8071 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8072 shlibpath_var=LD_LIBRARY_PATH
8073 shlibpath_overrides_runpath=yes
8074 if test "$with_gnu_ld" = yes; then
8080 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8083 soname_spec='${libname}${release}${shared_ext}$major'
8084 shlibpath_var=LD_LIBRARY_PATH
8085 case $host_vendor in
8087 shlibpath_overrides_runpath=no
8089 export_dynamic_flag_spec='${wl}-Blargedynsym'
8090 runpath_var=LD_RUN_PATH
8098 shlibpath_overrides_runpath=no
8099 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8105 if test -d /usr/nec ;then
8107 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8108 soname_spec='$libname${shared_ext}.$major'
8109 shlibpath_var=LD_LIBRARY_PATH
8115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8116 soname_spec='${libname}${release}${shared_ext}$major'
8117 shlibpath_var=LD_LIBRARY_PATH
8124 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8125 echo "${ECHO_T}$dynamic_linker" >&6
8126 test "$dynamic_linker" = no && can_build_shared=no
8128 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8129 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8131 if test -n "$hardcode_libdir_flag_spec" || \
8132 test -n "$runpath_var " || \
8133 test "X$hardcode_automatic"="Xyes" ; then
8135 # We can hardcode non-existant directories.
8136 if test "$hardcode_direct" != no &&
8137 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8138 # have to relink, otherwise we might link with an installed library
8139 # when we should be linking with a yet-to-be-installed one
8140 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8141 test "$hardcode_minus_L" != no; then
8142 # Linking always hardcodes the temporary library directory.
8143 hardcode_action=relink
8145 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8146 hardcode_action=immediate
8149 # We cannot hardcode anything, or else we can only hardcode existing
8151 hardcode_action=unsupported
8153 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8154 echo "${ECHO_T}$hardcode_action" >&6
8156 if test "$hardcode_action" = relink; then
8157 # Fast installation is not supported
8158 enable_fast_install=no
8159 elif test "$shlibpath_overrides_runpath" = yes ||
8160 test "$enable_shared" = no; then
8161 # Fast installation is not necessary
8162 enable_fast_install=needless
8167 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8168 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8169 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8170 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8171 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8172 echo "$as_me:$LINENO: result: yes" >&5
8173 echo "${ECHO_T}yes" >&6
8175 # FIXME - insert some real tests, host_os isn't really good enough
8178 if test -n "$STRIP" ; then
8179 striplib="$STRIP -x"
8180 echo "$as_me:$LINENO: result: yes" >&5
8181 echo "${ECHO_T}yes" >&6
8183 echo "$as_me:$LINENO: result: no" >&5
8184 echo "${ECHO_T}no" >&6
8188 echo "$as_me:$LINENO: result: no" >&5
8189 echo "${ECHO_T}no" >&6
8194 if test "x$enable_dlopen" != xyes; then
8195 enable_dlopen=unknown
8196 enable_dlopen_self=unknown
8197 enable_dlopen_self_static=unknown
8204 lt_cv_dlopen="load_add_on"
8206 lt_cv_dlopen_self=yes
8210 lt_cv_dlopen="LoadLibrary"
8215 lt_cv_dlopen="dlopen"
8220 # if libdl is installed we need to link against it
8221 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8222 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8223 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 ac_check_lib_save_LIBS=$LIBS
8228 cat >conftest.$ac_ext <<_ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8235 /* Override any gcc2 internal prototype to avoid an error. */
8239 /* We use char because int might match the return type of a gcc2
8240 builtin and then its argument prototype would still apply. */
8250 rm -f conftest.$ac_objext conftest$ac_exeext
8251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8252 (eval $ac_link) 2>conftest.er1
8254 grep -v '^ *+' conftest.er1 >conftest.err
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } &&
8259 { ac_try='test -z "$ac_c_werror_flag"
8260 || test ! -s conftest.err'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; } &&
8266 { ac_try='test -s conftest$ac_exeext'
8267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; }; then
8272 ac_cv_lib_dl_dlopen=yes
8274 echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.$ac_ext >&5
8277 ac_cv_lib_dl_dlopen=no
8279 rm -f conftest.err conftest.$ac_objext \
8280 conftest$ac_exeext conftest.$ac_ext
8281 LIBS=$ac_check_lib_save_LIBS
8283 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8284 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8285 if test $ac_cv_lib_dl_dlopen = yes; then
8286 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8291 lt_cv_dlopen_self=yes
8298 echo "$as_me:$LINENO: checking for shl_load" >&5
8299 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8300 if test "${ac_cv_func_shl_load+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8303 cat >conftest.$ac_ext <<_ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h. */
8309 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8311 #define shl_load innocuous_shl_load
8313 /* System header to define __stub macros and hopefully few prototypes,
8314 which can conflict with char shl_load (); below.
8315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8316 <limits.h> exists even on freestanding compilers. */
8319 # include <limits.h>
8321 # include <assert.h>
8326 /* Override any gcc2 internal prototype to avoid an error. */
8331 /* We use char because int might match the return type of a gcc2
8332 builtin and then its argument prototype would still apply. */
8334 /* The GNU C library defines this for functions which it implements
8335 to always fail with ENOSYS. Some functions are actually named
8336 something starting with __ and the normal name is an alias. */
8337 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8340 char (*f) () = shl_load;
8349 return f != shl_load;
8354 rm -f conftest.$ac_objext conftest$ac_exeext
8355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8356 (eval $ac_link) 2>conftest.er1
8358 grep -v '^ *+' conftest.er1 >conftest.err
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
8363 { ac_try='test -z "$ac_c_werror_flag"
8364 || test ! -s conftest.err'
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; } &&
8370 { ac_try='test -s conftest$ac_exeext'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; }; then
8376 ac_cv_func_shl_load=yes
8378 echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8381 ac_cv_func_shl_load=no
8383 rm -f conftest.err conftest.$ac_objext \
8384 conftest$ac_exeext conftest.$ac_ext
8386 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8387 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8388 if test $ac_cv_func_shl_load = yes; then
8389 lt_cv_dlopen="shl_load"
8391 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8392 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8393 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 ac_check_lib_save_LIBS=$LIBS
8398 cat >conftest.$ac_ext <<_ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8405 /* Override any gcc2 internal prototype to avoid an error. */
8409 /* We use char because int might match the return type of a gcc2
8410 builtin and then its argument prototype would still apply. */
8420 rm -f conftest.$ac_objext conftest$ac_exeext
8421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8422 (eval $ac_link) 2>conftest.er1
8424 grep -v '^ *+' conftest.er1 >conftest.err
8426 cat conftest.err >&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } &&
8429 { ac_try='test -z "$ac_c_werror_flag"
8430 || test ! -s conftest.err'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; } &&
8436 { ac_try='test -s conftest$ac_exeext'
8437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; }; then
8442 ac_cv_lib_dld_shl_load=yes
8444 echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.$ac_ext >&5
8447 ac_cv_lib_dld_shl_load=no
8449 rm -f conftest.err conftest.$ac_objext \
8450 conftest$ac_exeext conftest.$ac_ext
8451 LIBS=$ac_check_lib_save_LIBS
8453 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8454 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8455 if test $ac_cv_lib_dld_shl_load = yes; then
8456 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8458 echo "$as_me:$LINENO: checking for dlopen" >&5
8459 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8460 if test "${ac_cv_func_dlopen+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 cat >conftest.$ac_ext <<_ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8469 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8471 #define dlopen innocuous_dlopen
8473 /* System header to define __stub macros and hopefully few prototypes,
8474 which can conflict with char dlopen (); below.
8475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8476 <limits.h> exists even on freestanding compilers. */
8479 # include <limits.h>
8481 # include <assert.h>
8486 /* Override any gcc2 internal prototype to avoid an error. */
8491 /* We use char because int might match the return type of a gcc2
8492 builtin and then its argument prototype would still apply. */
8494 /* The GNU C library defines this for functions which it implements
8495 to always fail with ENOSYS. Some functions are actually named
8496 something starting with __ and the normal name is an alias. */
8497 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8500 char (*f) () = dlopen;
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516 (eval $ac_link) 2>conftest.er1
8518 grep -v '^ *+' conftest.er1 >conftest.err
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -z "$ac_c_werror_flag"
8524 || test ! -s conftest.err'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; } &&
8530 { ac_try='test -s conftest$ac_exeext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8536 ac_cv_func_dlopen=yes
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8541 ac_cv_func_dlopen=no
8543 rm -f conftest.err conftest.$ac_objext \
8544 conftest$ac_exeext conftest.$ac_ext
8546 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8547 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8548 if test $ac_cv_func_dlopen = yes; then
8549 lt_cv_dlopen="dlopen"
8551 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8552 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8553 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 ac_check_lib_save_LIBS=$LIBS
8558 cat >conftest.$ac_ext <<_ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8565 /* Override any gcc2 internal prototype to avoid an error. */
8569 /* We use char because int might match the return type of a gcc2
8570 builtin and then its argument prototype would still apply. */
8580 rm -f conftest.$ac_objext conftest$ac_exeext
8581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8582 (eval $ac_link) 2>conftest.er1
8584 grep -v '^ *+' conftest.er1 >conftest.err
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } &&
8589 { ac_try='test -z "$ac_c_werror_flag"
8590 || test ! -s conftest.err'
8591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; } &&
8596 { ac_try='test -s conftest$ac_exeext'
8597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; }; then
8602 ac_cv_lib_dl_dlopen=yes
8604 echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8607 ac_cv_lib_dl_dlopen=no
8609 rm -f conftest.err conftest.$ac_objext \
8610 conftest$ac_exeext conftest.$ac_ext
8611 LIBS=$ac_check_lib_save_LIBS
8613 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8614 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8615 if test $ac_cv_lib_dl_dlopen = yes; then
8616 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8618 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8619 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8620 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 ac_check_lib_save_LIBS=$LIBS
8625 cat >conftest.$ac_ext <<_ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8632 /* Override any gcc2 internal prototype to avoid an error. */
8636 /* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8647 rm -f conftest.$ac_objext conftest$ac_exeext
8648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8649 (eval $ac_link) 2>conftest.er1
8651 grep -v '^ *+' conftest.er1 >conftest.err
8653 cat conftest.err >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } &&
8656 { ac_try='test -z "$ac_c_werror_flag"
8657 || test ! -s conftest.err'
8658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; } &&
8663 { ac_try='test -s conftest$ac_exeext'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 ac_cv_lib_svld_dlopen=yes
8671 echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8674 ac_cv_lib_svld_dlopen=no
8676 rm -f conftest.err conftest.$ac_objext \
8677 conftest$ac_exeext conftest.$ac_ext
8678 LIBS=$ac_check_lib_save_LIBS
8680 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8681 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8682 if test $ac_cv_lib_svld_dlopen = yes; then
8683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8685 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8686 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8687 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8690 ac_check_lib_save_LIBS=$LIBS
8692 cat >conftest.$ac_ext <<_ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8699 /* Override any gcc2 internal prototype to avoid an error. */
8703 /* We use char because int might match the return type of a gcc2
8704 builtin and then its argument prototype would still apply. */
8714 rm -f conftest.$ac_objext conftest$ac_exeext
8715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8716 (eval $ac_link) 2>conftest.er1
8718 grep -v '^ *+' conftest.er1 >conftest.err
8720 cat conftest.err >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } &&
8723 { ac_try='test -z "$ac_c_werror_flag"
8724 || test ! -s conftest.err'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; } &&
8730 { ac_try='test -s conftest$ac_exeext'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; }; then
8736 ac_cv_lib_dld_dld_link=yes
8738 echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8741 ac_cv_lib_dld_dld_link=no
8743 rm -f conftest.err conftest.$ac_objext \
8744 conftest$ac_exeext conftest.$ac_ext
8745 LIBS=$ac_check_lib_save_LIBS
8747 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8748 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8749 if test $ac_cv_lib_dld_dld_link = yes; then
8750 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8771 if test "x$lt_cv_dlopen" != xno; then
8777 case $lt_cv_dlopen in
8779 save_CPPFLAGS="$CPPFLAGS"
8780 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8782 save_LDFLAGS="$LDFLAGS"
8783 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8786 LIBS="$lt_cv_dlopen_libs $LIBS"
8788 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8789 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8790 if test "${lt_cv_dlopen_self+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 if test "$cross_compiling" = yes; then :
8794 lt_cv_dlopen_self=cross
8796 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8797 lt_status=$lt_dlunknown
8798 cat > conftest.$ac_ext <<EOF
8799 #line 8799 "configure"
8800 #include "confdefs.h"
8809 # define LT_DLGLOBAL RTLD_GLOBAL
8812 # define LT_DLGLOBAL DL_GLOBAL
8814 # define LT_DLGLOBAL 0
8818 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8819 find out it does not work in some platform. */
8820 #ifndef LT_DLLAZY_OR_NOW
8822 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8825 # define LT_DLLAZY_OR_NOW DL_LAZY
8828 # define LT_DLLAZY_OR_NOW RTLD_NOW
8831 # define LT_DLLAZY_OR_NOW DL_NOW
8833 # define LT_DLLAZY_OR_NOW 0
8841 extern "C" void exit (int);
8844 void fnord() { int i=42;}
8847 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8848 int status = $lt_dlunknown;
8852 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8853 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8854 /* dlclose (self); */
8860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8861 (eval $ac_link) 2>&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8865 (./conftest; exit; ) 2>/dev/null
8868 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8869 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8870 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8873 # compilation failed
8874 lt_cv_dlopen_self=no
8881 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8882 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8884 if test "x$lt_cv_dlopen_self" = xyes; then
8885 LDFLAGS="$LDFLAGS $link_static_flag"
8886 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8887 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8888 if test "${lt_cv_dlopen_self_static+set}" = set; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8891 if test "$cross_compiling" = yes; then :
8892 lt_cv_dlopen_self_static=cross
8894 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8895 lt_status=$lt_dlunknown
8896 cat > conftest.$ac_ext <<EOF
8897 #line 8897 "configure"
8898 #include "confdefs.h"
8907 # define LT_DLGLOBAL RTLD_GLOBAL
8910 # define LT_DLGLOBAL DL_GLOBAL
8912 # define LT_DLGLOBAL 0
8916 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8917 find out it does not work in some platform. */
8918 #ifndef LT_DLLAZY_OR_NOW
8920 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8923 # define LT_DLLAZY_OR_NOW DL_LAZY
8926 # define LT_DLLAZY_OR_NOW RTLD_NOW
8929 # define LT_DLLAZY_OR_NOW DL_NOW
8931 # define LT_DLLAZY_OR_NOW 0
8939 extern "C" void exit (int);
8942 void fnord() { int i=42;}
8945 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8946 int status = $lt_dlunknown;
8950 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8951 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8952 /* dlclose (self); */
8958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8959 (eval $ac_link) 2>&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8963 (./conftest; exit; ) 2>/dev/null
8966 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8967 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8968 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8971 # compilation failed
8972 lt_cv_dlopen_self_static=no
8979 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8980 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8983 CPPFLAGS="$save_CPPFLAGS"
8984 LDFLAGS="$save_LDFLAGS"
8989 case $lt_cv_dlopen_self in
8990 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8991 *) enable_dlopen_self=unknown ;;
8994 case $lt_cv_dlopen_self_static in
8995 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8996 *) enable_dlopen_self_static=unknown ;;
9001 # Report which librarie types wil actually be built
9002 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9003 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9004 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9005 echo "${ECHO_T}$can_build_shared" >&6
9007 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9008 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9009 test "$can_build_shared" = "no" && enable_shared=no
9011 # On AIX, shared libraries and static libraries use the same namespace, and
9012 # are all built from PIC.
9015 test "$enable_shared" = yes && enable_static=no
9016 if test -n "$RANLIB"; then
9017 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9018 postinstall_cmds='$RANLIB $lib'
9023 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9024 test "$enable_shared" = yes && enable_static=no
9027 darwin* | rhapsody*)
9028 if test "$GCC" = yes; then
9029 archive_cmds_need_lc=no
9031 rhapsody* | darwin1.[012])
9032 allow_undefined_flag='-undefined suppress'
9035 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9036 allow_undefined_flag='-flat_namespace -undefined suppress'
9038 case ${MACOSX_DEPLOYMENT_TARGET} in
9040 allow_undefined_flag='-flat_namespace -undefined suppress'
9043 allow_undefined_flag='-undefined dynamic_lookup'
9049 output_verbose_link_cmd='echo'
9050 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9051 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9052 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9053 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}'
9054 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}'
9056 hardcode_automatic=yes
9057 hardcode_shlibpath_var=unsupported
9058 whole_archive_flag_spec='-all_load $convenience'
9059 link_all_deplibs=yes
9065 echo "$as_me:$LINENO: result: $enable_shared" >&5
9066 echo "${ECHO_T}$enable_shared" >&6
9068 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9069 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9070 # Make sure either enable_shared or enable_static is yes.
9071 test "$enable_shared" = yes || enable_static=yes
9072 echo "$as_me:$LINENO: result: $enable_static" >&5
9073 echo "${ECHO_T}$enable_static" >&6
9075 # The else clause should only fire when bootstrapping the
9076 # libtool distribution, otherwise you forgot to ship ltmain.sh
9077 # with your package, and you will get complaints that there are
9078 # no rules to generate ltmain.sh.
9079 if test -f "$ltmain"; then
9080 # See if we are running on zsh, and set the options which allow our commands through
9081 # without removal of \ escapes.
9082 if test -n "${ZSH_VERSION+set}" ; then
9083 setopt NO_GLOB_SUBST
9085 # Now quote all the things that may contain metacharacters while being
9086 # careful not to overquote the AC_SUBSTed values. We take copies of the
9087 # variables and quote the copies for generation of the libtool script.
9088 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9090 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9091 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9092 deplibs_check_method reload_flag reload_cmds need_locks \
9093 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9094 lt_cv_sys_global_symbol_to_c_name_address \
9095 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9096 old_postinstall_cmds old_postuninstall_cmds \
9100 lt_prog_compiler_wl \
9101 lt_prog_compiler_pic \
9102 lt_prog_compiler_static \
9103 lt_prog_compiler_no_builtin_flag \
9104 export_dynamic_flag_spec \
9105 thread_safe_flag_spec \
9106 whole_archive_flag_spec \
9107 enable_shared_with_static_runtimes \
9109 old_archive_from_new_cmds \
9114 compiler_lib_search_path \
9116 archive_expsym_cmds \
9118 postuninstall_cmds \
9119 old_archive_from_expsyms_cmds \
9120 allow_undefined_flag \
9122 export_symbols_cmds \
9123 hardcode_libdir_flag_spec \
9124 hardcode_libdir_flag_spec_ld \
9125 hardcode_libdir_separator \
9126 hardcode_automatic \
9128 module_expsym_cmds \
9129 lt_cv_prog_compiler_c_o \
9134 old_archive_cmds | \
9135 old_archive_from_new_cmds | \
9137 archive_expsym_cmds | \
9139 module_expsym_cmds | \
9140 old_archive_from_expsyms_cmds | \
9141 export_symbols_cmds | \
9142 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9143 postinstall_cmds | postuninstall_cmds | \
9144 old_postinstall_cmds | old_postuninstall_cmds | \
9145 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9146 # Double-quote double-evaled strings.
9147 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9150 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9156 *'\$0 --fallback-echo"')
9157 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9162 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9164 { echo "$as_me:$LINENO: creating $ofile" >&5
9165 echo "$as_me: creating $ofile" >&6;}
9167 cat <<__EOF__ >> "$cfgfile"
9170 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9171 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9172 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9174 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9175 # Free Software Foundation, Inc.
9177 # This file is part of GNU Libtool:
9178 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9180 # This program is free software; you can redistribute it and/or modify
9181 # it under the terms of the GNU General Public License as published by
9182 # the Free Software Foundation; either version 2 of the License, or
9183 # (at your option) any later version.
9185 # This program is distributed in the hope that it will be useful, but
9186 # WITHOUT ANY WARRANTY; without even the implied warranty of
9187 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9188 # General Public License for more details.
9190 # You should have received a copy of the GNU General Public License
9191 # along with this program; if not, write to the Free Software
9192 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9194 # As a special exception to the GNU General Public License, if you
9195 # distribute this file as part of a program that contains a
9196 # configuration script generated by Autoconf, you may include it under
9197 # the same distribution terms that you use for the rest of that program.
9199 # A sed program that does not truncate output.
9202 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9203 Xsed="$SED -e s/^X//"
9205 # The HP-UX ksh and POSIX shell print the target directory to stdout
9207 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9209 # The names of the tagged configurations supported by this script.
9212 # ### BEGIN LIBTOOL CONFIG
9214 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9216 # Shell to use when invoking shell scripts.
9219 # Whether or not to build shared libraries.
9220 build_libtool_libs=$enable_shared
9222 # Whether or not to build static libraries.
9223 build_old_libs=$enable_static
9225 # Whether or not to add -lc for building shared libraries.
9226 build_libtool_need_lc=$archive_cmds_need_lc
9228 # Whether or not to disallow shared libs when runtime libs are static
9229 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9231 # Whether or not to optimize for fast installation.
9232 fast_install=$enable_fast_install
9235 host_alias=$host_alias
9238 # An echo program that does not interpret backslashes.
9243 AR_FLAGS=$lt_AR_FLAGS
9248 # A language-specific compiler.
9251 # Is the compiler the GNU C compiler?
9257 # The linker used to build libraries.
9260 # Whether we need hard or soft links.
9263 # A BSD-compatible nm program.
9266 # A symbol stripping program
9269 # Used to examine libraries when file_magic_cmd begins "file"
9270 MAGIC_CMD=$MAGIC_CMD
9272 # Used on cygwin: DLL creation program.
9275 # Used on cygwin: object dumper.
9278 # Used on cygwin: assembler.
9281 # The name of the directory that contains temporary libtool files.
9284 # How to create reloadable object files.
9285 reload_flag=$lt_reload_flag
9286 reload_cmds=$lt_reload_cmds
9288 # How to pass a linker flag through the compiler.
9289 wl=$lt_lt_prog_compiler_wl
9291 # Object file suffix (normally "o").
9294 # Old archive suffix (normally "a").
9297 # Shared library suffix (normally ".so").
9298 shrext_cmds='$shrext_cmds'
9300 # Executable file suffix (normally "").
9303 # Additional compiler flags for building library objects.
9304 pic_flag=$lt_lt_prog_compiler_pic
9307 # What is the maximum length of a command?
9308 max_cmd_len=$lt_cv_sys_max_cmd_len
9310 # Does compiler simultaneously support -c and -o options?
9311 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9313 # Must we lock files when doing compilation ?
9314 need_locks=$lt_need_locks
9316 # Do we need the lib prefix for modules?
9317 need_lib_prefix=$need_lib_prefix
9319 # Do we need a version for libraries?
9320 need_version=$need_version
9322 # Whether dlopen is supported.
9323 dlopen_support=$enable_dlopen
9325 # Whether dlopen of programs is supported.
9326 dlopen_self=$enable_dlopen_self
9328 # Whether dlopen of statically linked programs is supported.
9329 dlopen_self_static=$enable_dlopen_self_static
9331 # Compiler flag to prevent dynamic linking.
9332 link_static_flag=$lt_lt_prog_compiler_static
9334 # Compiler flag to turn off builtin functions.
9335 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9337 # Compiler flag to allow reflexive dlopens.
9338 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9340 # Compiler flag to generate shared objects directly from archives.
9341 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9343 # Compiler flag to generate thread-safe objects.
9344 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9346 # Library versioning type.
9347 version_type=$version_type
9349 # Format of library name prefix.
9350 libname_spec=$lt_libname_spec
9352 # List of archive names. First name is the real one, the rest are links.
9353 # The last name is the one that the linker finds with -lNAME.
9354 library_names_spec=$lt_library_names_spec
9356 # The coded name of the library, if different from the real name.
9357 soname_spec=$lt_soname_spec
9359 # Commands used to build and install an old-style archive.
9361 old_archive_cmds=$lt_old_archive_cmds
9362 old_postinstall_cmds=$lt_old_postinstall_cmds
9363 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9365 # Create an old-style archive from a shared archive.
9366 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9368 # Create a temporary old-style archive to link instead of a shared archive.
9369 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9371 # Commands used to build and install a shared archive.
9372 archive_cmds=$lt_archive_cmds
9373 archive_expsym_cmds=$lt_archive_expsym_cmds
9374 postinstall_cmds=$lt_postinstall_cmds
9375 postuninstall_cmds=$lt_postuninstall_cmds
9377 # Commands used to build a loadable module (assumed same as above if empty)
9378 module_cmds=$lt_module_cmds
9379 module_expsym_cmds=$lt_module_expsym_cmds
9381 # Commands to strip libraries.
9382 old_striplib=$lt_old_striplib
9383 striplib=$lt_striplib
9385 # Dependencies to place before the objects being linked to create a
9387 predep_objects=$lt_predep_objects
9389 # Dependencies to place after the objects being linked to create a
9391 postdep_objects=$lt_postdep_objects
9393 # Dependencies to place before the objects being linked to create a
9397 # Dependencies to place after the objects being linked to create a
9399 postdeps=$lt_postdeps
9401 # The library search path used internally by the compiler when linking
9403 compiler_lib_search_path=$lt_compiler_lib_search_path
9405 # Method to check whether dependent libraries are shared objects.
9406 deplibs_check_method=$lt_deplibs_check_method
9408 # Command to use when deplibs_check_method == file_magic.
9409 file_magic_cmd=$lt_file_magic_cmd
9411 # Flag that allows shared libraries with undefined symbols to be built.
9412 allow_undefined_flag=$lt_allow_undefined_flag
9414 # Flag that forces no undefined symbols.
9415 no_undefined_flag=$lt_no_undefined_flag
9417 # Commands used to finish a libtool library installation in a directory.
9418 finish_cmds=$lt_finish_cmds
9420 # Same as above, but a single script fragment to be evaled but not shown.
9421 finish_eval=$lt_finish_eval
9423 # Take the output of nm and produce a listing of raw symbols and C names.
9424 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9426 # Transform the output of nm in a proper C declaration
9427 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9429 # Transform the output of nm in a C name address pair
9430 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9432 # This is the shared library runtime path variable.
9433 runpath_var=$runpath_var
9435 # This is the shared library path variable.
9436 shlibpath_var=$shlibpath_var
9438 # Is shlibpath searched before the hard-coded library search path?
9439 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9441 # How to hardcode a shared library path into an executable.
9442 hardcode_action=$hardcode_action
9444 # Whether we should hardcode library paths into libraries.
9445 hardcode_into_libs=$hardcode_into_libs
9447 # Flag to hardcode \$libdir into a binary during linking.
9448 # This must work even if \$libdir does not exist.
9449 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9451 # If ld is used when linking, flag to hardcode \$libdir into
9452 # a binary during linking. This must work even if \$libdir does
9454 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9456 # Whether we need a single -rpath flag with a separated argument.
9457 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9459 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9461 hardcode_direct=$hardcode_direct
9463 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9465 hardcode_minus_L=$hardcode_minus_L
9467 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9468 # the resulting binary.
9469 hardcode_shlibpath_var=$hardcode_shlibpath_var
9471 # Set to yes if building a shared library automatically hardcodes DIR into the library
9472 # and all subsequent libraries and executables linked against it.
9473 hardcode_automatic=$hardcode_automatic
9475 # Variables whose values should be saved in libtool wrapper scripts and
9476 # restored at relink time.
9477 variables_saved_for_relink="$variables_saved_for_relink"
9479 # Whether libtool must link a program against all its dependency libraries.
9480 link_all_deplibs=$link_all_deplibs
9482 # Compile-time system search path for libraries
9483 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9485 # Run-time system search path for libraries
9486 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9488 # Fix the shell variable \$srcfile for the compiler.
9489 fix_srcfile_path="$fix_srcfile_path"
9491 # Set to yes if exported symbols are required.
9492 always_export_symbols=$always_export_symbols
9494 # The commands to list exported symbols.
9495 export_symbols_cmds=$lt_export_symbols_cmds
9497 # The commands to extract the exported symbol list from a shared archive.
9498 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9500 # Symbols that should not be listed in the preloaded symbols.
9501 exclude_expsyms=$lt_exclude_expsyms
9503 # Symbols that must always be exported.
9504 include_expsyms=$lt_include_expsyms
9506 # ### END LIBTOOL CONFIG
9513 cat <<\EOF >> "$cfgfile"
9515 # AIX sometimes has problems with the GCC collect2 program. For some
9516 # reason, if we set the COLLECT_NAMES environment variable, the problems
9517 # vanish in a puff of smoke.
9518 if test "X${COLLECT_NAMES+set}" != Xset; then
9520 export COLLECT_NAMES
9526 # We use sed instead of cat because bash on DJGPP gets confused if
9527 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9528 # text mode, it properly converts lines to CR/LF. This bash problem
9529 # is reportedly fixed, but why not run on old versions too?
9530 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9532 mv -f "$cfgfile" "$ofile" || \
9533 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9537 # If there is no Makefile yet, we rely on a make rule to execute
9538 # `config.status --recheck' to rerun these tests and create the
9539 # libtool script then.
9540 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9541 if test -f "$ltmain_in"; then
9542 test -f Makefile && make "$ltmain"
9548 ac_cpp='$CPP $CPPFLAGS'
9549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9556 # Check whether --with-tags or --without-tags was given.
9557 if test "${with_tags+set}" = set; then
9558 withval="$with_tags"
9562 if test -f "$ltmain" && test -n "$tagnames"; then
9563 if test ! -f "${ofile}"; then
9564 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9565 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9568 if test -z "$LTCC"; then
9569 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9570 if test -z "$LTCC"; then
9571 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9572 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9574 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9575 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9579 # Extract list of available tagged configurations in $ofile.
9580 # Note that this assumes the entire list is on one line.
9581 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9583 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9584 for tagname in $tagnames; do
9586 # Check whether tagname contains only valid characters
9587 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9589 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9590 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9591 { (exit 1); exit 1; }; }
9595 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9597 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9598 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9599 { (exit 1); exit 1; }; }
9602 # Update the list of available tags.
9603 if test -n "$tagname"; then
9604 echo appending configuration tag \"$tagname\" to $ofile
9608 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9610 ac_cpp='$CXXCPP $CPPFLAGS'
9611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9618 archive_cmds_need_lc_CXX=no
9619 allow_undefined_flag_CXX=
9620 always_export_symbols_CXX=no
9621 archive_expsym_cmds_CXX=
9622 export_dynamic_flag_spec_CXX=
9623 hardcode_direct_CXX=no
9624 hardcode_libdir_flag_spec_CXX=
9625 hardcode_libdir_flag_spec_ld_CXX=
9626 hardcode_libdir_separator_CXX=
9627 hardcode_minus_L_CXX=no
9628 hardcode_automatic_CXX=no
9630 module_expsym_cmds_CXX=
9631 link_all_deplibs_CXX=unknown
9632 old_archive_cmds_CXX=$old_archive_cmds
9633 no_undefined_flag_CXX=
9634 whole_archive_flag_spec_CXX=
9635 enable_shared_with_static_runtimes_CXX=no
9637 # Dependencies to place before and after the object being linked:
9639 postdep_objects_CXX=
9642 compiler_lib_search_path_CXX=
9644 # Source file extension for C++ test sources.
9647 # Object file extension for compiled C++ test sources.
9651 # Code to be used in simple compile tests
9652 lt_simple_compile_test_code="int some_variable = 0;\n"
9654 # Code to be used in simple link tests
9655 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9657 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9659 # If no C compiler was specified, use CC.
9662 # Allow CC to be a program name with arguments.
9666 # Allow CC to be a program name with arguments.
9671 lt_save_with_gnu_ld=$with_gnu_ld
9672 lt_save_path_LD=$lt_cv_path_LD
9673 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9674 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9676 unset lt_cv_prog_gnu_ld
9678 if test -n "${lt_cv_path_LDCXX+set}"; then
9679 lt_cv_path_LD=$lt_cv_path_LDCXX
9683 test -z "${LDCXX+set}" || LD=$LDCXX
9687 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9689 # We don't want -fno-exception wen compiling C++ code, so set the
9690 # no_builtin_flag separately
9691 if test "$GXX" = yes; then
9692 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9694 lt_prog_compiler_no_builtin_flag_CXX=
9697 if test "$GXX" = yes; then
9698 # Set up default GNU C++ configuration
9701 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9702 if test "${with_gnu_ld+set}" = set; then
9703 withval="$with_gnu_ld"
9704 test "$withval" = no || with_gnu_ld=yes
9709 if test "$GCC" = yes; then
9710 # Check if gcc -print-prog-name=ld gives a path.
9711 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9712 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9715 # gcc leaves a trailing carriage return which upsets mingw
9716 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9718 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9721 # Accept absolute paths.
9723 re_direlt='/[^/][^/]*/\.\./'
9724 # Canonicalize the pathname of ld
9725 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9726 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9727 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9729 test -z "$LD" && LD="$ac_prog"
9732 # If it fails, then pretend we aren't using GCC.
9736 # If it is relative, then search for the first ld in PATH.
9740 elif test "$with_gnu_ld" = yes; then
9741 echo "$as_me:$LINENO: checking for GNU ld" >&5
9742 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9744 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9745 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9747 if test "${lt_cv_path_LD+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9750 if test -z "$LD"; then
9751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9752 for ac_dir in $PATH; do
9754 test -z "$ac_dir" && ac_dir=.
9755 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9756 lt_cv_path_LD="$ac_dir/$ac_prog"
9757 # Check to see if the program is GNU ld. I'd rather use --version,
9758 # but apparently some GNU ld's only accept -v.
9759 # Break only if it was the GNU/non-GNU ld that we prefer.
9760 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9761 *GNU* | *'with BFD'*)
9762 test "$with_gnu_ld" != no && break
9765 test "$with_gnu_ld" != yes && break
9772 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9777 if test -n "$LD"; then
9778 echo "$as_me:$LINENO: result: $LD" >&5
9779 echo "${ECHO_T}$LD" >&6
9781 echo "$as_me:$LINENO: result: no" >&5
9782 echo "${ECHO_T}no" >&6
9784 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9785 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9786 { (exit 1); exit 1; }; }
9787 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9788 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9789 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9793 case `$LD -v 2>&1 </dev/null` in
9794 *GNU* | *'with BFD'*)
9795 lt_cv_prog_gnu_ld=yes
9798 lt_cv_prog_gnu_ld=no
9802 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9803 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9804 with_gnu_ld=$lt_cv_prog_gnu_ld
9808 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9809 # archiving commands below assume that GNU ld is being used.
9810 if test "$with_gnu_ld" = yes; then
9811 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9812 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'
9814 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9815 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9817 # If archive_cmds runs LD, not CC, wlarc should be empty
9818 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9819 # investigate it a little bit more. (MM)
9822 # ancient GNU ld didn't support --whole-archive et. al.
9823 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9824 grep 'no-whole-archive' > /dev/null; then
9825 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9827 whole_archive_flag_spec_CXX=
9833 # A generic and very simple default shared library creation
9834 # command for GNU C++ for the case where it uses the native
9835 # linker, instead of GNU ld. If possible, this setting should
9836 # overridden to take advantage of the native linker features on
9837 # the platform it is being used on.
9838 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9841 # Commands to make compiler produce verbose output that lists
9842 # what "hidden" libraries, object files and flags are used when
9843 # linking a shared library.
9844 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9852 # PORTME: fill in a description of your system's C++ link characteristics
9853 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9854 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9858 # FIXME: insert proper C++ library support
9862 if test "$host_cpu" = ia64; then
9863 # On IA64, the linker does run time linking by default, so we don't
9864 # have to do anything special.
9865 aix_use_runtimelinking=no
9866 exp_sym_flag='-Bexport'
9869 aix_use_runtimelinking=no
9871 # Test if we are trying to use run time linking or normal
9872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9873 # need to do runtime linking.
9874 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9875 for ld_flag in $LDFLAGS; do
9878 aix_use_runtimelinking=yes
9885 exp_sym_flag='-bexport'
9886 no_entry_flag='-bnoentry'
9889 # When large executables or shared objects are built, AIX ld can
9890 # have problems creating the table of contents. If linking a library
9891 # or program results in "error TOC overflow" add -mminimal-toc to
9892 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9893 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9896 hardcode_direct_CXX=yes
9897 hardcode_libdir_separator_CXX=':'
9898 link_all_deplibs_CXX=yes
9900 if test "$GXX" = yes; then
9901 case $host_os in aix4.012|aix4.012.*)
9902 # We only want to do this on AIX 4.2 and lower, the check
9903 # below for broken collect2 doesn't work under 4.3+
9904 collect2name=`${CC} -print-prog-name=collect2`
9905 if test -f "$collect2name" && \
9906 strings "$collect2name" | grep resolve_lib_name >/dev/null
9908 # We have reworked collect2
9909 hardcode_direct_CXX=yes
9911 # We have old collect2
9912 hardcode_direct_CXX=unsupported
9913 # It fails to find uninstalled libraries when the uninstalled
9914 # path is not listed in the libpath. Setting hardcode_minus_L
9915 # to unsupported forces relinking
9916 hardcode_minus_L_CXX=yes
9917 hardcode_libdir_flag_spec_CXX='-L$libdir'
9918 hardcode_libdir_separator_CXX=
9921 shared_flag='-shared'
9924 if test "$host_cpu" = ia64; then
9925 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9926 # chokes on -Wl,-G. The following line is correct:
9929 if test "$aix_use_runtimelinking" = yes; then
9930 shared_flag='${wl}-G'
9932 shared_flag='${wl}-bM:SRE'
9937 # It seems that -bexpall does not export symbols beginning with
9938 # underscore (_), so it is better to generate a list of symbols to export.
9939 always_export_symbols_CXX=yes
9940 if test "$aix_use_runtimelinking" = yes; then
9941 # Warning - without using the other runtime loading flags (-brtl),
9942 # -berok will link without error, but may produce a broken library.
9943 allow_undefined_flag_CXX='-berok'
9944 # Determine the default libpath from the value encoded in an empty executable.
9945 cat >conftest.$ac_ext <<_ACEOF
9948 cat confdefs.h >>conftest.$ac_ext
9949 cat >>conftest.$ac_ext <<_ACEOF
9950 /* end confdefs.h. */
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9962 (eval $ac_link) 2>conftest.er1
9964 grep -v '^ *+' conftest.er1 >conftest.err
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } &&
9969 { ac_try='test -z "$ac_cxx_werror_flag"
9970 || test ! -s conftest.err'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; } &&
9976 { ac_try='test -s conftest$ac_exeext'
9977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
9983 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9985 # Check for a 64-bit object if we didn't find anything.
9986 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; }
9989 echo "$as_me: failed program was:" >&5
9990 sed 's/^/| /' conftest.$ac_ext >&5
9993 rm -f conftest.err conftest.$ac_objext \
9994 conftest$ac_exeext conftest.$ac_ext
9995 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9997 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9999 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"
10001 if test "$host_cpu" = ia64; then
10002 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10003 allow_undefined_flag_CXX="-z nodefs"
10004 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"
10006 # Determine the default libpath from the value encoded in an empty executable.
10007 cat >conftest.$ac_ext <<_ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10024 (eval $ac_link) 2>conftest.er1
10026 grep -v '^ *+' conftest.er1 >conftest.err
10028 cat conftest.err >&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } &&
10031 { ac_try='test -z "$ac_cxx_werror_flag"
10032 || test ! -s conftest.err'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; } &&
10038 { ac_try='test -s conftest$ac_exeext'
10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; }; then
10045 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10047 # Check for a 64-bit object if we didn't find anything.
10048 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; }
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10055 rm -f conftest.err conftest.$ac_objext \
10056 conftest$ac_exeext conftest.$ac_ext
10057 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10059 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10060 # Warning - without using the other run time loading flags,
10061 # -berok will link without error, but may produce a broken library.
10062 no_undefined_flag_CXX=' ${wl}-bernotok'
10063 allow_undefined_flag_CXX=' ${wl}-berok'
10064 # -bexpall does not export symbols beginning with underscore (_)
10065 always_export_symbols_CXX=yes
10066 # Exported symbols can be pulled into shared objects from archives
10067 whole_archive_flag_spec_CXX=' '
10068 archive_cmds_need_lc_CXX=yes
10069 # This is similar to how AIX traditionally builds it's shared libraries.
10070 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'
10075 case $cc_basename in
10077 # FIXME: insert proper C++ library support
10083 cygwin* | mingw* | pw32*)
10084 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10085 # as there is no search path for DLLs.
10086 hardcode_libdir_flag_spec_CXX='-L$libdir'
10087 allow_undefined_flag_CXX=unsupported
10088 always_export_symbols_CXX=no
10089 enable_shared_with_static_runtimes_CXX=yes
10091 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10092 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'
10093 # If the export-symbols file already is a .def file (1st line
10094 # is EXPORTS), use it as is; otherwise, prepend...
10095 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10096 cp $export_symbols $output_objdir/$soname.def;
10098 echo EXPORTS > $output_objdir/$soname.def;
10099 cat $export_symbols >> $output_objdir/$soname.def;
10101 $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'
10107 darwin* | rhapsody*)
10108 if test "$GXX" = yes; then
10109 archive_cmds_need_lc_CXX=no
10111 rhapsody* | darwin1.[012])
10112 allow_undefined_flag_CXX='-undefined suppress'
10115 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10116 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10118 case ${MACOSX_DEPLOYMENT_TARGET} in
10120 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10123 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10129 lt_int_apple_cc_single_mod=no
10130 output_verbose_link_cmd='echo'
10131 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10132 lt_int_apple_cc_single_mod=yes
10134 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10135 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10137 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'
10139 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10141 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10142 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10143 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}'
10145 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}'
10147 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}'
10148 hardcode_direct_CXX=no
10149 hardcode_automatic_CXX=yes
10150 hardcode_shlibpath_var_CXX=unsupported
10151 whole_archive_flag_spec_CXX='-all_load $convenience'
10152 link_all_deplibs_CXX=yes
10159 case $cc_basename in
10161 # FIXME: insert proper C++ library support
10165 # Green Hills C++ Compiler
10166 # FIXME: insert proper C++ library support
10170 # FIXME: insert proper C++ library support
10176 # C++ shared libraries reported to be fairly broken before switch to ELF
10180 archive_cmds_need_lc_CXX=no
10182 freebsd* | kfreebsd*-gnu)
10183 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10190 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10191 hardcode_libdir_separator_CXX=:
10192 export_dynamic_flag_spec_CXX='${wl}-E'
10193 hardcode_direct_CXX=yes
10194 hardcode_minus_L_CXX=yes # Not in the search PATH,
10195 # but as the default
10196 # location of the library.
10198 case $cc_basename in
10200 # FIXME: insert proper C++ library support
10204 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'
10205 # Commands to make compiler produce verbose output that lists
10206 # what "hidden" libraries, object files and flags are used when
10207 # linking a shared library.
10209 # There doesn't appear to be a way to prevent this compiler from
10210 # explicitly linking system object files so we need to strip them
10211 # from the output so that they don't get included in the library
10213 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'
10216 if test "$GXX" = yes; then
10217 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'
10219 # FIXME: insert proper C++ library support
10226 if test $with_gnu_ld = no; then
10227 case "$host_cpu" in
10229 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10230 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10231 hardcode_libdir_separator_CXX=:
10234 hardcode_libdir_flag_spec_CXX='-L$libdir'
10237 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10238 hardcode_libdir_separator_CXX=:
10239 export_dynamic_flag_spec_CXX='${wl}-E'
10243 case "$host_cpu" in
10245 hardcode_direct_CXX=no
10246 hardcode_shlibpath_var_CXX=no
10249 hardcode_direct_CXX=no
10250 hardcode_shlibpath_var_CXX=no
10251 hardcode_minus_L_CXX=yes # Not in the search PATH,
10252 # but as the default
10253 # location of the library.
10256 hardcode_direct_CXX=yes
10257 hardcode_minus_L_CXX=yes # Not in the search PATH,
10258 # but as the default
10259 # location of the library.
10263 case $cc_basename in
10265 # FIXME: insert proper C++ library support
10269 case "$host_cpu" in
10271 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10274 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10277 # Commands to make compiler produce verbose output that lists
10278 # what "hidden" libraries, object files and flags are used when
10279 # linking a shared library.
10281 # There doesn't appear to be a way to prevent this compiler from
10282 # explicitly linking system object files so we need to strip them
10283 # from the output so that they don't get included in the library
10285 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'
10288 if test "$GXX" = yes; then
10289 if test $with_gnu_ld = no; then
10290 case "$host_cpu" in
10292 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10295 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'
10300 # FIXME: insert proper C++ library support
10307 case $cc_basename in
10310 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'
10312 # Archives containing C++ object files must be created using
10313 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10314 # necessary to make sure instantiated templates are included
10316 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10319 if test "$GXX" = yes; then
10320 if test "$with_gnu_ld" = no; then
10321 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'
10323 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'
10326 link_all_deplibs_CXX=yes
10329 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10330 hardcode_libdir_separator_CXX=:
10333 case $cc_basename in
10335 # Kuck and Associates, Inc. (KAI) C++ Compiler
10337 # KCC will only create a shared library if the output file
10338 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10339 # to its proper name (with version) after linking.
10340 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'
10341 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'
10342 # Commands to make compiler produce verbose output that lists
10343 # what "hidden" libraries, object files and flags are used when
10344 # linking a shared library.
10346 # There doesn't appear to be a way to prevent this compiler from
10347 # explicitly linking system object files so we need to strip them
10348 # from the output so that they don't get included in the library
10350 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'
10352 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10353 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10355 # Archives containing C++ object files must be created using
10356 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10357 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10362 archive_cmds_need_lc_CXX=no
10363 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10364 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'
10365 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10366 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10367 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10371 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10372 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'
10374 runpath_var=LD_RUN_PATH
10375 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10376 hardcode_libdir_separator_CXX=:
10378 # Commands to make compiler produce verbose output that lists
10379 # what "hidden" libraries, object files and flags are used when
10380 # linking a shared library.
10382 # There doesn't appear to be a way to prevent this compiler from
10383 # explicitly linking system object files so we need to strip them
10384 # from the output so that they don't get included in the library
10386 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'
10391 # FIXME: insert proper C++ library support
10395 # FIXME: insert proper C++ library support
10399 case $cc_basename in
10401 # FIXME: insert proper C++ library support
10405 # FIXME: insert proper C++ library support
10411 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10412 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10414 hardcode_libdir_flag_spec_CXX='-R$libdir'
10415 hardcode_direct_CXX=yes
10416 hardcode_shlibpath_var_CXX=no
10418 # Workaround some broken pre-1.5 toolchains
10419 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10422 case $cc_basename in
10424 # Kuck and Associates, Inc. (KAI) C++ Compiler
10426 # KCC will only create a shared library if the output file
10427 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10428 # to its proper name (with version) after linking.
10429 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'
10431 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10432 hardcode_libdir_separator_CXX=:
10434 # Archives containing C++ object files must be created using
10435 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10436 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10440 # Rational C++ 2.4.1
10441 # FIXME: insert proper C++ library support
10445 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10446 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'
10448 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10449 hardcode_libdir_separator_CXX=:
10451 # Commands to make compiler produce verbose output that lists
10452 # what "hidden" libraries, object files and flags are used when
10453 # linking a shared library.
10455 # There doesn't appear to be a way to prevent this compiler from
10456 # explicitly linking system object files so we need to strip them
10457 # from the output so that they don't get included in the library
10459 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'
10462 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10463 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10464 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'
10466 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10467 hardcode_libdir_separator_CXX=:
10469 # Commands to make compiler produce verbose output that lists
10470 # what "hidden" libraries, object files and flags are used when
10471 # linking a shared library.
10472 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10475 # FIXME: insert proper C++ library support
10482 case $cc_basename in
10484 # Kuck and Associates, Inc. (KAI) C++ Compiler
10486 # KCC will only create a shared library if the output file
10487 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10488 # to its proper name (with version) after linking.
10489 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'
10491 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10492 hardcode_libdir_separator_CXX=:
10494 # Archives containing C++ object files must be created using
10495 # the KAI C++ compiler.
10496 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10499 # Rational C++ 2.4.1
10500 # FIXME: insert proper C++ library support
10504 allow_undefined_flag_CXX=' -expect_unresolved \*'
10505 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'
10506 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10507 echo "-hidden">> $lib.exp~
10508 $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~
10511 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10512 hardcode_libdir_separator_CXX=:
10514 # Commands to make compiler produce verbose output that lists
10515 # what "hidden" libraries, object files and flags are used when
10516 # linking a shared library.
10518 # There doesn't appear to be a way to prevent this compiler from
10519 # explicitly linking system object files so we need to strip them
10520 # from the output so that they don't get included in the library
10522 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'
10525 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10526 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10527 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'
10529 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10530 hardcode_libdir_separator_CXX=:
10532 # Commands to make compiler produce verbose output that lists
10533 # what "hidden" libraries, object files and flags are used when
10534 # linking a shared library.
10535 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10538 # FIXME: insert proper C++ library support
10545 # FIXME: insert proper C++ library support
10549 archive_cmds_need_lc_CXX=no
10550 case $cc_basename in
10552 # FIXME: insert proper C++ library support
10556 # FIXME: insert proper C++ library support
10562 case $cc_basename in
10565 # FIXME: insert proper C++ library support
10570 # FIXME: insert proper C++ library support
10574 # FIXME: insert proper C++ library support
10580 case $cc_basename in
10582 # Sun C++ 4.2, 5.x and Centerline C++
10583 no_undefined_flag_CXX=' -zdefs'
10584 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10585 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10586 $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'
10588 hardcode_libdir_flag_spec_CXX='-R$libdir'
10589 hardcode_shlibpath_var_CXX=no
10591 solaris2.0-5 | solaris2.0-5.*) ;;
10593 # The C++ compiler is used as linker so we must use $wl
10594 # flag to pass the commands to the underlying system
10596 # Supported since Solaris 2.6 (maybe 2.5.1?)
10597 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10600 link_all_deplibs_CXX=yes
10602 # Commands to make compiler produce verbose output that lists
10603 # what "hidden" libraries, object files and flags are used when
10604 # linking a shared library.
10606 # There doesn't appear to be a way to prevent this compiler from
10607 # explicitly linking system object files so we need to strip them
10608 # from the output so that they don't get included in the library
10610 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'
10612 # Archives containing C++ object files must be created using
10613 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10614 # necessary to make sure instantiated templates are included
10616 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10619 # Green Hills C++ Compiler
10620 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10622 # The C++ compiler must be used to create the archive.
10623 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10626 # GNU C++ compiler with Solaris linker
10627 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10628 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10629 if $CC --version | grep -v '^2\.7' > /dev/null; then
10630 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10631 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10632 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10634 # Commands to make compiler produce verbose output that lists
10635 # what "hidden" libraries, object files and flags are used when
10636 # linking a shared library.
10637 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10639 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10641 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10642 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10643 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10645 # Commands to make compiler produce verbose output that lists
10646 # what "hidden" libraries, object files and flags are used when
10647 # linking a shared library.
10648 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10651 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10656 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10657 archive_cmds_need_lc_CXX=no
10660 case $cc_basename in
10662 # NonStop-UX NCC 3.20
10663 # FIXME: insert proper C++ library support
10667 # FIXME: insert proper C++ library support
10673 # FIXME: insert proper C++ library support
10677 # FIXME: insert proper C++ library support
10681 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10682 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10683 test "$ld_shlibs_CXX" = no && can_build_shared=no
10689 cat > conftest.$ac_ext <<EOF
10693 Foo (void) { a = 0; }
10699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10700 (eval $ac_compile) 2>&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; then
10704 # Parse the compiler output and extract the necessary
10705 # objects, libraries and library flags.
10707 # Sentinel used to keep track of whether or not we are before
10708 # the conftest object file.
10709 pre_test_object_deps_done=no
10711 # The `*' in the case matches for architectures that use `case' in
10712 # $output_verbose_cmd can trigger glob expansion during the loop
10713 # eval without this substitution.
10714 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10716 for p in `eval $output_verbose_link_cmd`; do
10720 # Some compilers place space between "-{L,R}" and the path.
10721 # Remove the space.
10722 if test $p = "-L" \
10723 || test $p = "-R"; then
10730 if test "$pre_test_object_deps_done" = no; then
10733 # Internal compiler library paths should come after those
10734 # provided the user. The postdeps already come after the
10735 # user supplied libs so there is no need to process them.
10736 if test -z "$compiler_lib_search_path_CXX"; then
10737 compiler_lib_search_path_CXX="${prev}${p}"
10739 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10742 # The "-l" case would never come before the object being
10743 # linked, so don't bother handling this case.
10746 if test -z "$postdeps_CXX"; then
10747 postdeps_CXX="${prev}${p}"
10749 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10755 # This assumes that the test object file only shows up
10756 # once in the compiler output.
10757 if test "$p" = "conftest.$objext"; then
10758 pre_test_object_deps_done=yes
10762 if test "$pre_test_object_deps_done" = no; then
10763 if test -z "$predep_objects_CXX"; then
10764 predep_objects_CXX="$p"
10766 predep_objects_CXX="$predep_objects_CXX $p"
10769 if test -z "$postdep_objects_CXX"; then
10770 postdep_objects_CXX="$p"
10772 postdep_objects_CXX="$postdep_objects_CXX $p"
10777 *) ;; # Ignore the rest.
10785 echo "libtool.m4: error: problem compiling CXX test program"
10788 $rm -f confest.$objext
10790 case " $postdeps_CXX " in
10791 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10794 lt_prog_compiler_wl_CXX=
10795 lt_prog_compiler_pic_CXX=
10796 lt_prog_compiler_static_CXX=
10798 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10799 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10801 # C++ specific cases for pic, static, wl, etc.
10802 if test "$GXX" = yes; then
10803 lt_prog_compiler_wl_CXX='-Wl,'
10804 lt_prog_compiler_static_CXX='-static'
10808 # All AIX code is PIC.
10809 if test "$host_cpu" = ia64; then
10810 # AIX 5 now supports IA64 processor
10811 lt_prog_compiler_static_CXX='-Bstatic'
10815 # FIXME: we need at least 68020 code to build shared libraries, but
10816 # adding the `-m68020' flag to GCC prevents building anything better,
10818 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10820 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10821 # PIC is the default for these OSes.
10823 mingw* | os2* | pw32*)
10824 # This hack is so that the source file can tell whether it is being
10825 # built for inclusion in a dll (and should export symbols for example).
10826 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10828 darwin* | rhapsody*)
10829 # PIC is the default on this platform
10830 # Common symbols not allowed in MH_DYLIB files
10831 lt_prog_compiler_pic_CXX='-fno-common'
10834 # DJGPP does not support shared libraries at all
10835 lt_prog_compiler_pic_CXX=
10838 if test -d /usr/nec; then
10839 lt_prog_compiler_pic_CXX=-Kconform_pic
10843 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10844 # not for PA HP-UX.
10845 case "$host_cpu" in
10849 lt_prog_compiler_pic_CXX='-fPIC'
10854 lt_prog_compiler_pic_CXX='-fPIC'
10860 # All AIX code is PIC.
10861 if test "$host_cpu" = ia64; then
10862 # AIX 5 now supports IA64 processor
10863 lt_prog_compiler_static_CXX='-Bstatic'
10865 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10869 case $cc_basename in
10871 # Green Hills C++ Compiler
10872 # _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"
10877 case $cc_basename in
10879 lt_prog_compiler_pic_CXX='-KPIC'
10882 # Green Hills C++ Compiler
10883 lt_prog_compiler_pic_CXX='-pic'
10889 freebsd* | kfreebsd*-gnu)
10890 # FreeBSD uses GNU C++
10892 hpux9* | hpux10* | hpux11*)
10893 case $cc_basename in
10895 lt_prog_compiler_wl_CXX='-Wl,'
10896 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10897 if test "$host_cpu" != ia64; then
10898 lt_prog_compiler_pic_CXX='+Z'
10902 lt_prog_compiler_wl_CXX='-Wl,'
10903 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10904 case "$host_cpu" in
10909 lt_prog_compiler_pic_CXX='+Z'
10917 irix5* | irix6* | nonstopux*)
10918 case $cc_basename in
10920 lt_prog_compiler_wl_CXX='-Wl,'
10921 lt_prog_compiler_static_CXX='-non_shared'
10922 # CC pic flag -KPIC is the default.
10929 case $cc_basename in
10932 lt_prog_compiler_wl_CXX='--backend -Wl,'
10933 lt_prog_compiler_pic_CXX='-fPIC'
10937 lt_prog_compiler_wl_CXX='-Wl,'
10938 lt_prog_compiler_pic_CXX='-KPIC'
10939 lt_prog_compiler_static_CXX='-static'
10943 # Make sure the PIC flag is empty. It appears that all Alpha
10944 # Linux and Compaq Tru64 Unix objects are PIC.
10945 lt_prog_compiler_pic_CXX=
10946 lt_prog_compiler_static_CXX='-non_shared'
10957 case $cc_basename in
10959 lt_prog_compiler_pic_CXX='-W c,exportall'
10967 osf3* | osf4* | osf5*)
10968 case $cc_basename in
10970 lt_prog_compiler_wl_CXX='--backend -Wl,'
10973 # Rational C++ 2.4.1
10974 lt_prog_compiler_pic_CXX='-pic'
10977 # Digital/Compaq C++
10978 lt_prog_compiler_wl_CXX='-Wl,'
10979 # Make sure the PIC flag is empty. It appears that all Alpha
10980 # Linux and Compaq Tru64 Unix objects are PIC.
10981 lt_prog_compiler_pic_CXX=
10982 lt_prog_compiler_static_CXX='-non_shared'
10991 case $cc_basename in
10993 lt_prog_compiler_pic_CXX='-fPIC'
11000 case $cc_basename in
11002 # Sun C++ 4.2, 5.x and Centerline C++
11003 lt_prog_compiler_pic_CXX='-KPIC'
11004 lt_prog_compiler_static_CXX='-Bstatic'
11005 lt_prog_compiler_wl_CXX='-Qoption ld '
11008 # Green Hills C++ Compiler
11009 lt_prog_compiler_pic_CXX='-PIC'
11016 case $cc_basename in
11019 lt_prog_compiler_pic_CXX='-pic'
11020 lt_prog_compiler_static_CXX='-Bstatic'
11024 lt_prog_compiler_pic_CXX='-pic'
11031 case $cc_basename in
11033 # NonStop-UX NCC 3.20
11034 lt_prog_compiler_pic_CXX='-KPIC'
11045 lt_prog_compiler_can_build_shared_CXX=no
11050 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11051 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11054 # Check to make sure the PIC flag actually works.
11056 if test -n "$lt_prog_compiler_pic_CXX"; then
11058 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11059 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11060 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11061 echo $ECHO_N "(cached) $ECHO_C" >&6
11063 lt_prog_compiler_pic_works_CXX=no
11064 ac_outfile=conftest.$ac_objext
11065 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11066 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11067 # Insert the option either (1) after the last *FLAGS variable, or
11068 # (2) before a word containing "conftest.", or (3) at the end.
11069 # Note that $ac_compile itself does not contain backslashes and begins
11070 # with a dollar sign (not a hyphen), so the echo should work correctly.
11071 # The option is referenced via a variable to avoid confusing sed.
11072 lt_compile=`echo "$ac_compile" | $SED \
11073 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11075 -e 's:$: $lt_compiler_flag:'`
11076 (eval echo "\"\$as_me:11076: $lt_compile\"" >&5)
11077 (eval "$lt_compile" 2>conftest.err)
11079 cat conftest.err >&5
11080 echo "$as_me:11080: \$? = $ac_status" >&5
11081 if (exit $ac_status) && test -s "$ac_outfile"; then
11082 # The compiler can only warn and ignore the option if not recognized
11083 # So say no if there are warnings
11084 if test ! -s conftest.err; then
11085 lt_prog_compiler_pic_works_CXX=yes
11091 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11092 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11094 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11095 case $lt_prog_compiler_pic_CXX in
11097 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11100 lt_prog_compiler_pic_CXX=
11101 lt_prog_compiler_can_build_shared_CXX=no
11106 # For platforms which do not support PIC, -DPIC is meaningless:
11108 lt_prog_compiler_pic_CXX=
11111 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11115 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11116 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11117 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11120 lt_cv_prog_compiler_c_o_CXX=no
11121 $rm -r conftest 2>/dev/null
11125 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11127 lt_compiler_flag="-o out/conftest2.$ac_objext"
11128 # Insert the option either (1) after the last *FLAGS variable, or
11129 # (2) before a word containing "conftest.", or (3) at the end.
11130 # Note that $ac_compile itself does not contain backslashes and begins
11131 # with a dollar sign (not a hyphen), so the echo should work correctly.
11132 lt_compile=`echo "$ac_compile" | $SED \
11133 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11135 -e 's:$: $lt_compiler_flag:'`
11136 (eval echo "\"\$as_me:11136: $lt_compile\"" >&5)
11137 (eval "$lt_compile" 2>out/conftest.err)
11139 cat out/conftest.err >&5
11140 echo "$as_me:11140: \$? = $ac_status" >&5
11141 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11143 # The compiler can only warn and ignore the option if not recognized
11144 # So say no if there are warnings
11145 if test ! -s out/conftest.err; then
11146 lt_cv_prog_compiler_c_o_CXX=yes
11151 # SGI C++ compiler will create directory out/ii_files/ for
11152 # template instantiation
11153 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11154 $rm out/* && rmdir out
11160 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11161 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11164 hard_links="nottested"
11165 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11166 # do not overwrite the value of need_locks provided by the user
11167 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11168 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11171 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11173 ln conftest.a conftest.b 2>&5 || hard_links=no
11174 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11175 echo "$as_me:$LINENO: result: $hard_links" >&5
11176 echo "${ECHO_T}$hard_links" >&6
11177 if test "$hard_links" = no; then
11178 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11179 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11186 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11187 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11189 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11192 # If we're using GNU nm, then we don't want the "-C" option.
11193 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11194 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11195 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'
11197 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'
11201 export_symbols_cmds_CXX="$ltdll_cmds"
11204 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11207 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11211 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11212 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11213 test "$ld_shlibs_CXX" = no && can_build_shared=no
11215 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11216 if test "$GCC" = yes; then
11217 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11221 # Do we need to explicitly link libc?
11223 case "x$archive_cmds_need_lc_CXX" in
11225 # Assume -lc should be added
11226 archive_cmds_need_lc_CXX=yes
11228 if test "$enable_shared" = yes && test "$GCC" = yes; then
11229 case $archive_cmds_CXX in
11231 # FIXME: we may have to deal with multi-command sequences.
11234 # Test whether the compiler implicitly links with -lc since on some
11235 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11236 # to ld, don't add -lc before -lgcc.
11237 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11238 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11240 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11243 (eval $ac_compile) 2>&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } 2>conftest.err; then
11249 libobjs=conftest.$ac_objext
11251 wl=$lt_prog_compiler_wl_CXX
11257 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11258 allow_undefined_flag_CXX=
11259 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11260 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }
11265 archive_cmds_need_lc_CXX=no
11267 archive_cmds_need_lc_CXX=yes
11269 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11271 cat conftest.err 1>&5
11274 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11275 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11282 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11283 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11284 library_names_spec=
11285 libname_spec='lib$name'
11289 postuninstall_cmds=
11293 shlibpath_overrides_runpath=unknown
11295 dynamic_linker="$host_os ld.so"
11296 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11297 if test "$GCC" = yes; then
11298 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11299 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11300 # if the path contains ";" then we assume it to be the separator
11301 # otherwise default to the standard path separator (i.e. ":") - it is
11302 # assumed that no part of a normal pathname contains ";" but that should
11303 # okay in the real world where ";" in dirpaths is itself problematic.
11304 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11306 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11309 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11311 need_lib_prefix=unknown
11312 hardcode_into_libs=no
11314 # when you set need_version to no, make sure it does not cause -set_version
11315 # flags to be left without arguments
11316 need_version=unknown
11321 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11322 shlibpath_var=LIBPATH
11324 # AIX 3 has no versioning support, so we append a major version to the name.
11325 soname_spec='${libname}${release}${shared_ext}$major'
11332 hardcode_into_libs=yes
11333 if test "$host_cpu" = ia64; then
11334 # AIX 5 supports IA64
11335 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11336 shlibpath_var=LD_LIBRARY_PATH
11338 # With GCC up to 2.95.x, collect2 would create an import file
11339 # for dependence libraries. The import file would start with
11340 # the line `#! .'. This would cause the generated library to
11341 # depend on `.', always an invalid library. This was fixed in
11342 # development snapshots of GCC prior to 3.0.
11344 aix4 | aix4.[01] | aix4.[01].*)
11345 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11347 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11350 can_build_shared=no
11354 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11355 # soname into executable. Probably we can add versioning support to
11356 # collect2, so additional links can be useful in future.
11357 if test "$aix_use_runtimelinking" = yes; then
11358 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11359 # instead of lib<name>.a to let people know that these are not
11360 # typical AIX shared libraries.
11361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11363 # We preserve .a as extension for shared libraries through AIX4.2
11364 # and later when we are not doing run time linking.
11365 library_names_spec='${libname}${release}.a $libname.a'
11366 soname_spec='${libname}${release}${shared_ext}$major'
11368 shlibpath_var=LIBPATH
11373 library_names_spec='$libname.ixlibrary $libname.a'
11374 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11375 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'
11379 library_names_spec='${libname}${shared_ext}'
11380 dynamic_linker="$host_os ld.so"
11381 shlibpath_var=LIBRARY_PATH
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388 soname_spec='${libname}${release}${shared_ext}$major'
11389 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11390 shlibpath_var=LD_LIBRARY_PATH
11391 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11392 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11393 # the default ld.so.conf also contains /usr/contrib/lib and
11394 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11395 # libtool to hard-code these into programs
11398 cygwin* | mingw* | pw32*)
11399 version_type=windows
11404 case $GCC,$host_os in
11405 yes,cygwin* | yes,mingw* | yes,pw32*)
11406 library_names_spec='$libname.dll.a'
11407 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11408 postinstall_cmds='base_file=`basename \${file}`~
11409 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11410 dldir=$destdir/`dirname \$dlpath`~
11411 test -d \$dldir || mkdir -p \$dldir~
11412 $install_prog $dir/$dlname \$dldir/$dlname'
11413 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11414 dlpath=$dir/\$dldll~
11416 shlibpath_overrides_runpath=yes
11420 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11421 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11422 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11425 # MinGW DLLs use traditional 'lib' prefix
11426 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11427 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11428 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11429 # It is most probably a Windows format PATH printed by
11430 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11431 # path with ; separators, and with drive letters. We can handle the
11432 # drive letters (cygwin fileutils understands them), so leave them,
11433 # especially as we might pass files found there to a mingw objdump,
11434 # which wouldn't understand a cygwinified path. Ahh.
11435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11441 # pw32 DLLs use 'pw' prefix rather than 'lib'
11442 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11448 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11451 dynamic_linker='Win32 ld.exe'
11452 # FIXME: first we should search . and the directory the executable is in
11456 darwin* | rhapsody*)
11457 dynamic_linker="$host_os dyld"
11458 version_type=darwin
11461 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11462 soname_spec='${libname}${release}${major}$shared_ext'
11463 shlibpath_overrides_runpath=yes
11464 shlibpath_var=DYLD_LIBRARY_PATH
11465 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11466 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11467 if test "$GCC" = yes; then
11468 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"`
11470 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11480 soname_spec='${libname}${release}${shared_ext}$major'
11481 shlibpath_var=LD_LIBRARY_PATH
11492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11493 soname_spec='${libname}${release}${shared_ext}$major'
11494 shlibpath_var=LD_LIBRARY_PATH
11495 shlibpath_overrides_runpath=no
11496 hardcode_into_libs=yes
11497 dynamic_linker='GNU ld.so'
11501 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11502 version_type=freebsd-$objformat
11503 case $version_type in
11505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11514 shlibpath_var=LD_LIBRARY_PATH
11517 shlibpath_overrides_runpath=yes
11519 freebsd3.01* | freebsdelf3.01*)
11520 shlibpath_overrides_runpath=yes
11521 hardcode_into_libs=yes
11524 shlibpath_overrides_runpath=no
11525 hardcode_into_libs=yes
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11535 soname_spec='${libname}${release}${shared_ext}$major'
11536 shlibpath_var=LD_LIBRARY_PATH
11537 hardcode_into_libs=yes
11540 hpux9* | hpux10* | hpux11*)
11541 # Give a soname corresponding to the major version so that dld.sl refuses to
11542 # link against other versions.
11546 case "$host_cpu" in
11549 hardcode_into_libs=yes
11550 dynamic_linker="$host_os dld.so"
11551 shlibpath_var=LD_LIBRARY_PATH
11552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11554 soname_spec='${libname}${release}${shared_ext}$major'
11555 if test "X$HPUX_IA64_MODE" = X32; then
11556 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11558 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11564 hardcode_into_libs=yes
11565 dynamic_linker="$host_os dld.sl"
11566 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11569 soname_spec='${libname}${release}${shared_ext}$major'
11570 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11575 dynamic_linker="$host_os dld.sl"
11576 shlibpath_var=SHLIB_PATH
11577 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11579 soname_spec='${libname}${release}${shared_ext}$major'
11582 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11583 postinstall_cmds='chmod 555 $lib'
11586 irix5* | irix6* | nonstopux*)
11588 nonstopux*) version_type=nonstopux ;;
11590 if test "$lt_cv_prog_gnu_ld" = yes; then
11598 soname_spec='${libname}${release}${shared_ext}$major'
11599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11601 irix5* | nonstopux*)
11602 libsuff= shlibsuff=
11605 case $LD in # libtool.m4 will add one of these switches to LD
11606 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11607 libsuff= shlibsuff= libmagic=32-bit;;
11608 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11609 libsuff=32 shlibsuff=N32 libmagic=N32;;
11610 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11611 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11612 *) libsuff= shlibsuff= libmagic=never-match;;
11616 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11617 shlibpath_overrides_runpath=no
11618 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11619 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11620 hardcode_into_libs=yes
11623 # No shared lib support for Linux oldld, aout, or coff.
11624 linux*oldld* | linux*aout* | linux*coff*)
11628 # This must be Linux ELF.
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634 soname_spec='${libname}${release}${shared_ext}$major'
11635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11636 shlibpath_var=LD_LIBRARY_PATH
11637 shlibpath_overrides_runpath=no
11638 # This implies no fast_install, which is unacceptable.
11639 # Some rework will be needed to allow for fast_install
11640 # before this can be enabled.
11641 hardcode_into_libs=yes
11643 # find out which ABI we are using
11645 case "$host_cpu" in
11646 x86_64*|s390x*|powerpc64*)
11647 echo '#line 11647 "configure"' > conftest.$ac_ext
11648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11649 (eval $ac_compile) 2>&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; then
11653 case `/usr/bin/file conftest.$ac_objext` in
11656 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11664 # Append ld.so.conf contents to the search path
11665 if test -f /etc/ld.so.conf; then
11666 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11667 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11670 # We used to test for /lib/ld.so.1 and disable shared libraries on
11671 # powerpc, because MkLinux only supported shared libraries with the
11672 # GNU dynamic linker. Since this was broken with cross compilers,
11673 # most powerpc-linux boxes support dynamic linking these days and
11674 # people can always --disable-shared, the test was removed, and we
11675 # assume the GNU/Linux dynamic linker is in use.
11676 dynamic_linker='GNU/Linux ld.so'
11683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11684 soname_spec='${libname}${release}${shared_ext}$major'
11685 shlibpath_var=LD_LIBRARY_PATH
11686 shlibpath_overrides_runpath=no
11687 hardcode_into_libs=yes
11688 dynamic_linker='GNU ld.so'
11695 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11698 dynamic_linker='NetBSD (a.out) ld.so'
11700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11701 soname_spec='${libname}${release}${shared_ext}$major'
11702 dynamic_linker='NetBSD ld.elf_so'
11704 shlibpath_var=LD_LIBRARY_PATH
11705 shlibpath_overrides_runpath=yes
11706 hardcode_into_libs=yes
11711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11712 shlibpath_var=LD_LIBRARY_PATH
11713 shlibpath_overrides_runpath=yes
11720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11721 soname_spec='${libname}${release}${shared_ext}$major'
11722 shlibpath_var=LD_LIBRARY_PATH
11723 shlibpath_overrides_runpath=yes
11730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11732 shlibpath_var=LD_LIBRARY_PATH
11733 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11735 openbsd2.[89] | openbsd2.[89].*)
11736 shlibpath_overrides_runpath=no
11739 shlibpath_overrides_runpath=yes
11743 shlibpath_overrides_runpath=yes
11748 libname_spec='$name'
11751 library_names_spec='$libname${shared_ext} $libname.a'
11752 dynamic_linker='OS/2 ld.exe'
11753 shlibpath_var=LIBPATH
11756 osf3* | osf4* | osf5*)
11760 soname_spec='${libname}${release}${shared_ext}$major'
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11762 shlibpath_var=LD_LIBRARY_PATH
11763 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11764 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11769 soname_spec='${libname}${release}${shared_ext}$major'
11770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11771 shlibpath_var=LD_LIBRARY_PATH
11778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11779 soname_spec='${libname}${release}${shared_ext}$major'
11780 shlibpath_var=LD_LIBRARY_PATH
11781 shlibpath_overrides_runpath=yes
11782 hardcode_into_libs=yes
11783 # ldd complains unless libraries are executable
11784 postinstall_cmds='chmod +x $lib'
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11790 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11791 shlibpath_var=LD_LIBRARY_PATH
11792 shlibpath_overrides_runpath=yes
11793 if test "$with_gnu_ld" = yes; then
11799 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11802 soname_spec='${libname}${release}${shared_ext}$major'
11803 shlibpath_var=LD_LIBRARY_PATH
11804 case $host_vendor in
11806 shlibpath_overrides_runpath=no
11808 export_dynamic_flag_spec='${wl}-Blargedynsym'
11809 runpath_var=LD_RUN_PATH
11817 shlibpath_overrides_runpath=no
11818 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11824 if test -d /usr/nec ;then
11826 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11827 soname_spec='$libname${shared_ext}.$major'
11828 shlibpath_var=LD_LIBRARY_PATH
11834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11835 soname_spec='${libname}${release}${shared_ext}$major'
11836 shlibpath_var=LD_LIBRARY_PATH
11843 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11844 echo "${ECHO_T}$dynamic_linker" >&6
11845 test "$dynamic_linker" = no && can_build_shared=no
11847 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11848 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11849 hardcode_action_CXX=
11850 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11851 test -n "$runpath_var CXX" || \
11852 test "X$hardcode_automatic_CXX"="Xyes" ; then
11854 # We can hardcode non-existant directories.
11855 if test "$hardcode_direct_CXX" != no &&
11856 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11857 # have to relink, otherwise we might link with an installed library
11858 # when we should be linking with a yet-to-be-installed one
11859 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11860 test "$hardcode_minus_L_CXX" != no; then
11861 # Linking always hardcodes the temporary library directory.
11862 hardcode_action_CXX=relink
11864 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11865 hardcode_action_CXX=immediate
11868 # We cannot hardcode anything, or else we can only hardcode existing
11870 hardcode_action_CXX=unsupported
11872 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11873 echo "${ECHO_T}$hardcode_action_CXX" >&6
11875 if test "$hardcode_action_CXX" = relink; then
11876 # Fast installation is not supported
11877 enable_fast_install=no
11878 elif test "$shlibpath_overrides_runpath" = yes ||
11879 test "$enable_shared" = no; then
11880 # Fast installation is not necessary
11881 enable_fast_install=needless
11886 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11887 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11888 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11889 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11890 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11891 echo "$as_me:$LINENO: result: yes" >&5
11892 echo "${ECHO_T}yes" >&6
11894 # FIXME - insert some real tests, host_os isn't really good enough
11897 if test -n "$STRIP" ; then
11898 striplib="$STRIP -x"
11899 echo "$as_me:$LINENO: result: yes" >&5
11900 echo "${ECHO_T}yes" >&6
11902 echo "$as_me:$LINENO: result: no" >&5
11903 echo "${ECHO_T}no" >&6
11907 echo "$as_me:$LINENO: result: no" >&5
11908 echo "${ECHO_T}no" >&6
11913 if test "x$enable_dlopen" != xyes; then
11914 enable_dlopen=unknown
11915 enable_dlopen_self=unknown
11916 enable_dlopen_self_static=unknown
11923 lt_cv_dlopen="load_add_on"
11925 lt_cv_dlopen_self=yes
11929 lt_cv_dlopen="LoadLibrary"
11934 lt_cv_dlopen="dlopen"
11939 # if libdl is installed we need to link against it
11940 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11941 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11942 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 ac_check_lib_save_LIBS=$LIBS
11947 cat >conftest.$ac_ext <<_ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h. */
11954 /* Override any gcc2 internal prototype to avoid an error. */
11958 /* We use char because int might match the return type of a gcc2
11959 builtin and then its argument prototype would still apply. */
11969 rm -f conftest.$ac_objext conftest$ac_exeext
11970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11971 (eval $ac_link) 2>conftest.er1
11973 grep -v '^ *+' conftest.er1 >conftest.err
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } &&
11978 { ac_try='test -z "$ac_cxx_werror_flag"
11979 || test ! -s conftest.err'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; } &&
11985 { ac_try='test -s conftest$ac_exeext'
11986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987 (eval $ac_try) 2>&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; }; then
11991 ac_cv_lib_dl_dlopen=yes
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 ac_cv_lib_dl_dlopen=no
11998 rm -f conftest.err conftest.$ac_objext \
11999 conftest$ac_exeext conftest.$ac_ext
12000 LIBS=$ac_check_lib_save_LIBS
12002 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12003 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12004 if test $ac_cv_lib_dl_dlopen = yes; then
12005 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12008 lt_cv_dlopen="dyld"
12010 lt_cv_dlopen_self=yes
12017 echo "$as_me:$LINENO: checking for shl_load" >&5
12018 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12019 if test "${ac_cv_func_shl_load+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12022 cat >conftest.$ac_ext <<_ACEOF
12025 cat confdefs.h >>conftest.$ac_ext
12026 cat >>conftest.$ac_ext <<_ACEOF
12027 /* end confdefs.h. */
12028 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12030 #define shl_load innocuous_shl_load
12032 /* System header to define __stub macros and hopefully few prototypes,
12033 which can conflict with char shl_load (); below.
12034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12035 <limits.h> exists even on freestanding compilers. */
12038 # include <limits.h>
12040 # include <assert.h>
12045 /* Override any gcc2 internal prototype to avoid an error. */
12050 /* We use char because int might match the return type of a gcc2
12051 builtin and then its argument prototype would still apply. */
12053 /* The GNU C library defines this for functions which it implements
12054 to always fail with ENOSYS. Some functions are actually named
12055 something starting with __ and the normal name is an alias. */
12056 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12059 char (*f) () = shl_load;
12068 return f != shl_load;
12073 rm -f conftest.$ac_objext conftest$ac_exeext
12074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12075 (eval $ac_link) 2>conftest.er1
12077 grep -v '^ *+' conftest.er1 >conftest.err
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } &&
12082 { ac_try='test -z "$ac_cxx_werror_flag"
12083 || test ! -s conftest.err'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try='test -s conftest$ac_exeext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 ac_cv_func_shl_load=yes
12097 echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12100 ac_cv_func_shl_load=no
12102 rm -f conftest.err conftest.$ac_objext \
12103 conftest$ac_exeext conftest.$ac_ext
12105 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12106 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12107 if test $ac_cv_func_shl_load = yes; then
12108 lt_cv_dlopen="shl_load"
12110 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12111 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12112 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
12115 ac_check_lib_save_LIBS=$LIBS
12117 cat >conftest.$ac_ext <<_ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h. */
12124 /* Override any gcc2 internal prototype to avoid an error. */
12128 /* We use char because int might match the return type of a gcc2
12129 builtin and then its argument prototype would still apply. */
12139 rm -f conftest.$ac_objext conftest$ac_exeext
12140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12141 (eval $ac_link) 2>conftest.er1
12143 grep -v '^ *+' conftest.er1 >conftest.err
12145 cat conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } &&
12148 { ac_try='test -z "$ac_cxx_werror_flag"
12149 || test ! -s conftest.err'
12150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; } &&
12155 { ac_try='test -s conftest$ac_exeext'
12156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12157 (eval $ac_try) 2>&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); }; }; then
12161 ac_cv_lib_dld_shl_load=yes
12163 echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.$ac_ext >&5
12166 ac_cv_lib_dld_shl_load=no
12168 rm -f conftest.err conftest.$ac_objext \
12169 conftest$ac_exeext conftest.$ac_ext
12170 LIBS=$ac_check_lib_save_LIBS
12172 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12173 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12174 if test $ac_cv_lib_dld_shl_load = yes; then
12175 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12177 echo "$as_me:$LINENO: checking for dlopen" >&5
12178 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12179 if test "${ac_cv_func_dlopen+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12182 cat >conftest.$ac_ext <<_ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12190 #define dlopen innocuous_dlopen
12192 /* System header to define __stub macros and hopefully few prototypes,
12193 which can conflict with char dlopen (); below.
12194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12195 <limits.h> exists even on freestanding compilers. */
12198 # include <limits.h>
12200 # include <assert.h>
12205 /* Override any gcc2 internal prototype to avoid an error. */
12210 /* We use char because int might match the return type of a gcc2
12211 builtin and then its argument prototype would still apply. */
12213 /* The GNU C library defines this for functions which it implements
12214 to always fail with ENOSYS. Some functions are actually named
12215 something starting with __ and the normal name is an alias. */
12216 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12219 char (*f) () = dlopen;
12228 return f != dlopen;
12233 rm -f conftest.$ac_objext conftest$ac_exeext
12234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12235 (eval $ac_link) 2>conftest.er1
12237 grep -v '^ *+' conftest.er1 >conftest.err
12239 cat conftest.err >&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } &&
12242 { ac_try='test -z "$ac_cxx_werror_flag"
12243 || test ! -s conftest.err'
12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; } &&
12249 { ac_try='test -s conftest$ac_exeext'
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; }; then
12255 ac_cv_func_dlopen=yes
12257 echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12260 ac_cv_func_dlopen=no
12262 rm -f conftest.err conftest.$ac_objext \
12263 conftest$ac_exeext conftest.$ac_ext
12265 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12266 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12267 if test $ac_cv_func_dlopen = yes; then
12268 lt_cv_dlopen="dlopen"
12270 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12271 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12272 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 ac_check_lib_save_LIBS=$LIBS
12277 cat >conftest.$ac_ext <<_ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h. */
12284 /* Override any gcc2 internal prototype to avoid an error. */
12288 /* We use char because int might match the return type of a gcc2
12289 builtin and then its argument prototype would still apply. */
12299 rm -f conftest.$ac_objext conftest$ac_exeext
12300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12301 (eval $ac_link) 2>conftest.er1
12303 grep -v '^ *+' conftest.er1 >conftest.err
12305 cat conftest.err >&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); } &&
12308 { ac_try='test -z "$ac_cxx_werror_flag"
12309 || test ! -s conftest.err'
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; } &&
12315 { ac_try='test -s conftest$ac_exeext'
12316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317 (eval $ac_try) 2>&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }; }; then
12321 ac_cv_lib_dl_dlopen=yes
12323 echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12326 ac_cv_lib_dl_dlopen=no
12328 rm -f conftest.err conftest.$ac_objext \
12329 conftest$ac_exeext conftest.$ac_ext
12330 LIBS=$ac_check_lib_save_LIBS
12332 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12333 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12334 if test $ac_cv_lib_dl_dlopen = yes; then
12335 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12337 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12338 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12339 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12342 ac_check_lib_save_LIBS=$LIBS
12343 LIBS="-lsvld $LIBS"
12344 cat >conftest.$ac_ext <<_ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12351 /* Override any gcc2 internal prototype to avoid an error. */
12355 /* We use char because int might match the return type of a gcc2
12356 builtin and then its argument prototype would still apply. */
12366 rm -f conftest.$ac_objext conftest$ac_exeext
12367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12368 (eval $ac_link) 2>conftest.er1
12370 grep -v '^ *+' conftest.er1 >conftest.err
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
12375 { ac_try='test -z "$ac_cxx_werror_flag"
12376 || test ! -s conftest.err'
12377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378 (eval $ac_try) 2>&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; } &&
12382 { ac_try='test -s conftest$ac_exeext'
12383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12384 (eval $ac_try) 2>&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; }; then
12388 ac_cv_lib_svld_dlopen=yes
12390 echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12393 ac_cv_lib_svld_dlopen=no
12395 rm -f conftest.err conftest.$ac_objext \
12396 conftest$ac_exeext conftest.$ac_ext
12397 LIBS=$ac_check_lib_save_LIBS
12399 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12400 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12401 if test $ac_cv_lib_svld_dlopen = yes; then
12402 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12404 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12405 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12406 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12409 ac_check_lib_save_LIBS=$LIBS
12411 cat >conftest.$ac_ext <<_ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12418 /* Override any gcc2 internal prototype to avoid an error. */
12422 /* We use char because int might match the return type of a gcc2
12423 builtin and then its argument prototype would still apply. */
12433 rm -f conftest.$ac_objext conftest$ac_exeext
12434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12435 (eval $ac_link) 2>conftest.er1
12437 grep -v '^ *+' conftest.er1 >conftest.err
12439 cat conftest.err >&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); } &&
12442 { ac_try='test -z "$ac_cxx_werror_flag"
12443 || test ! -s conftest.err'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; } &&
12449 { ac_try='test -s conftest$ac_exeext'
12450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451 (eval $ac_try) 2>&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; }; then
12455 ac_cv_lib_dld_dld_link=yes
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12460 ac_cv_lib_dld_dld_link=no
12462 rm -f conftest.err conftest.$ac_objext \
12463 conftest$ac_exeext conftest.$ac_ext
12464 LIBS=$ac_check_lib_save_LIBS
12466 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12467 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12468 if test $ac_cv_lib_dld_dld_link = yes; then
12469 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12490 if test "x$lt_cv_dlopen" != xno; then
12496 case $lt_cv_dlopen in
12498 save_CPPFLAGS="$CPPFLAGS"
12499 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12501 save_LDFLAGS="$LDFLAGS"
12502 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12505 LIBS="$lt_cv_dlopen_libs $LIBS"
12507 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12508 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12509 if test "${lt_cv_dlopen_self+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12512 if test "$cross_compiling" = yes; then :
12513 lt_cv_dlopen_self=cross
12515 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12516 lt_status=$lt_dlunknown
12517 cat > conftest.$ac_ext <<EOF
12518 #line 12518 "configure"
12519 #include "confdefs.h"
12528 # define LT_DLGLOBAL RTLD_GLOBAL
12531 # define LT_DLGLOBAL DL_GLOBAL
12533 # define LT_DLGLOBAL 0
12537 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12538 find out it does not work in some platform. */
12539 #ifndef LT_DLLAZY_OR_NOW
12541 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12544 # define LT_DLLAZY_OR_NOW DL_LAZY
12547 # define LT_DLLAZY_OR_NOW RTLD_NOW
12550 # define LT_DLLAZY_OR_NOW DL_NOW
12552 # define LT_DLLAZY_OR_NOW 0
12560 extern "C" void exit (int);
12563 void fnord() { int i=42;}
12566 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12567 int status = $lt_dlunknown;
12571 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12572 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12573 /* dlclose (self); */
12579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12580 (eval $ac_link) 2>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12584 (./conftest; exit; ) 2>/dev/null
12586 case x$lt_status in
12587 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12588 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12589 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12592 # compilation failed
12593 lt_cv_dlopen_self=no
12600 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12601 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12603 if test "x$lt_cv_dlopen_self" = xyes; then
12604 LDFLAGS="$LDFLAGS $link_static_flag"
12605 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12606 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12607 if test "${lt_cv_dlopen_self_static+set}" = set; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
12610 if test "$cross_compiling" = yes; then :
12611 lt_cv_dlopen_self_static=cross
12613 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12614 lt_status=$lt_dlunknown
12615 cat > conftest.$ac_ext <<EOF
12616 #line 12616 "configure"
12617 #include "confdefs.h"
12626 # define LT_DLGLOBAL RTLD_GLOBAL
12629 # define LT_DLGLOBAL DL_GLOBAL
12631 # define LT_DLGLOBAL 0
12635 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12636 find out it does not work in some platform. */
12637 #ifndef LT_DLLAZY_OR_NOW
12639 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12642 # define LT_DLLAZY_OR_NOW DL_LAZY
12645 # define LT_DLLAZY_OR_NOW RTLD_NOW
12648 # define LT_DLLAZY_OR_NOW DL_NOW
12650 # define LT_DLLAZY_OR_NOW 0
12658 extern "C" void exit (int);
12661 void fnord() { int i=42;}
12664 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12665 int status = $lt_dlunknown;
12669 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12670 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12671 /* dlclose (self); */
12677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12678 (eval $ac_link) 2>&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12682 (./conftest; exit; ) 2>/dev/null
12684 case x$lt_status in
12685 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12686 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12687 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12690 # compilation failed
12691 lt_cv_dlopen_self_static=no
12698 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12699 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12702 CPPFLAGS="$save_CPPFLAGS"
12703 LDFLAGS="$save_LDFLAGS"
12708 case $lt_cv_dlopen_self in
12709 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12710 *) enable_dlopen_self=unknown ;;
12713 case $lt_cv_dlopen_self_static in
12714 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12715 *) enable_dlopen_self_static=unknown ;;
12720 # The else clause should only fire when bootstrapping the
12721 # libtool distribution, otherwise you forgot to ship ltmain.sh
12722 # with your package, and you will get complaints that there are
12723 # no rules to generate ltmain.sh.
12724 if test -f "$ltmain"; then
12725 # See if we are running on zsh, and set the options which allow our commands through
12726 # without removal of \ escapes.
12727 if test -n "${ZSH_VERSION+set}" ; then
12728 setopt NO_GLOB_SUBST
12730 # Now quote all the things that may contain metacharacters while being
12731 # careful not to overquote the AC_SUBSTed values. We take copies of the
12732 # variables and quote the copies for generation of the libtool script.
12733 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12735 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12736 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12737 deplibs_check_method reload_flag reload_cmds need_locks \
12738 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12739 lt_cv_sys_global_symbol_to_c_name_address \
12740 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12741 old_postinstall_cmds old_postuninstall_cmds \
12745 lt_prog_compiler_wl_CXX \
12746 lt_prog_compiler_pic_CXX \
12747 lt_prog_compiler_static_CXX \
12748 lt_prog_compiler_no_builtin_flag_CXX \
12749 export_dynamic_flag_spec_CXX \
12750 thread_safe_flag_spec_CXX \
12751 whole_archive_flag_spec_CXX \
12752 enable_shared_with_static_runtimes_CXX \
12753 old_archive_cmds_CXX \
12754 old_archive_from_new_cmds_CXX \
12755 predep_objects_CXX \
12756 postdep_objects_CXX \
12759 compiler_lib_search_path_CXX \
12761 archive_expsym_cmds_CXX \
12762 postinstall_cmds_CXX \
12763 postuninstall_cmds_CXX \
12764 old_archive_from_expsyms_cmds_CXX \
12765 allow_undefined_flag_CXX \
12766 no_undefined_flag_CXX \
12767 export_symbols_cmds_CXX \
12768 hardcode_libdir_flag_spec_CXX \
12769 hardcode_libdir_flag_spec_ld_CXX \
12770 hardcode_libdir_separator_CXX \
12771 hardcode_automatic_CXX \
12773 module_expsym_cmds_CXX \
12774 lt_cv_prog_compiler_c_o_CXX \
12775 exclude_expsyms_CXX \
12776 include_expsyms_CXX; do
12779 old_archive_cmds_CXX | \
12780 old_archive_from_new_cmds_CXX | \
12781 archive_cmds_CXX | \
12782 archive_expsym_cmds_CXX | \
12783 module_cmds_CXX | \
12784 module_expsym_cmds_CXX | \
12785 old_archive_from_expsyms_cmds_CXX | \
12786 export_symbols_cmds_CXX | \
12787 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12788 postinstall_cmds | postuninstall_cmds | \
12789 old_postinstall_cmds | old_postuninstall_cmds | \
12790 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12791 # Double-quote double-evaled strings.
12792 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12795 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12801 *'\$0 --fallback-echo"')
12802 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12808 cat <<__EOF__ >> "$cfgfile"
12809 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12811 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12813 # Shell to use when invoking shell scripts.
12816 # Whether or not to build shared libraries.
12817 build_libtool_libs=$enable_shared
12819 # Whether or not to build static libraries.
12820 build_old_libs=$enable_static
12822 # Whether or not to add -lc for building shared libraries.
12823 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12825 # Whether or not to disallow shared libs when runtime libs are static
12826 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12828 # Whether or not to optimize for fast installation.
12829 fast_install=$enable_fast_install
12832 host_alias=$host_alias
12835 # An echo program that does not interpret backslashes.
12840 AR_FLAGS=$lt_AR_FLAGS
12845 # A language-specific compiler.
12846 CC=$lt_compiler_CXX
12848 # Is the compiler the GNU C compiler?
12854 # The linker used to build libraries.
12857 # Whether we need hard or soft links.
12860 # A BSD-compatible nm program.
12863 # A symbol stripping program
12866 # Used to examine libraries when file_magic_cmd begins "file"
12867 MAGIC_CMD=$MAGIC_CMD
12869 # Used on cygwin: DLL creation program.
12872 # Used on cygwin: object dumper.
12875 # Used on cygwin: assembler.
12878 # The name of the directory that contains temporary libtool files.
12881 # How to create reloadable object files.
12882 reload_flag=$lt_reload_flag
12883 reload_cmds=$lt_reload_cmds
12885 # How to pass a linker flag through the compiler.
12886 wl=$lt_lt_prog_compiler_wl_CXX
12888 # Object file suffix (normally "o").
12889 objext="$ac_objext"
12891 # Old archive suffix (normally "a").
12894 # Shared library suffix (normally ".so").
12895 shrext_cmds='$shrext_cmds'
12897 # Executable file suffix (normally "").
12900 # Additional compiler flags for building library objects.
12901 pic_flag=$lt_lt_prog_compiler_pic_CXX
12904 # What is the maximum length of a command?
12905 max_cmd_len=$lt_cv_sys_max_cmd_len
12907 # Does compiler simultaneously support -c and -o options?
12908 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12910 # Must we lock files when doing compilation ?
12911 need_locks=$lt_need_locks
12913 # Do we need the lib prefix for modules?
12914 need_lib_prefix=$need_lib_prefix
12916 # Do we need a version for libraries?
12917 need_version=$need_version
12919 # Whether dlopen is supported.
12920 dlopen_support=$enable_dlopen
12922 # Whether dlopen of programs is supported.
12923 dlopen_self=$enable_dlopen_self
12925 # Whether dlopen of statically linked programs is supported.
12926 dlopen_self_static=$enable_dlopen_self_static
12928 # Compiler flag to prevent dynamic linking.
12929 link_static_flag=$lt_lt_prog_compiler_static_CXX
12931 # Compiler flag to turn off builtin functions.
12932 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12934 # Compiler flag to allow reflexive dlopens.
12935 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12937 # Compiler flag to generate shared objects directly from archives.
12938 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12940 # Compiler flag to generate thread-safe objects.
12941 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12943 # Library versioning type.
12944 version_type=$version_type
12946 # Format of library name prefix.
12947 libname_spec=$lt_libname_spec
12949 # List of archive names. First name is the real one, the rest are links.
12950 # The last name is the one that the linker finds with -lNAME.
12951 library_names_spec=$lt_library_names_spec
12953 # The coded name of the library, if different from the real name.
12954 soname_spec=$lt_soname_spec
12956 # Commands used to build and install an old-style archive.
12958 old_archive_cmds=$lt_old_archive_cmds_CXX
12959 old_postinstall_cmds=$lt_old_postinstall_cmds
12960 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12962 # Create an old-style archive from a shared archive.
12963 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12965 # Create a temporary old-style archive to link instead of a shared archive.
12966 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12968 # Commands used to build and install a shared archive.
12969 archive_cmds=$lt_archive_cmds_CXX
12970 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12971 postinstall_cmds=$lt_postinstall_cmds
12972 postuninstall_cmds=$lt_postuninstall_cmds
12974 # Commands used to build a loadable module (assumed same as above if empty)
12975 module_cmds=$lt_module_cmds_CXX
12976 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12978 # Commands to strip libraries.
12979 old_striplib=$lt_old_striplib
12980 striplib=$lt_striplib
12982 # Dependencies to place before the objects being linked to create a
12984 predep_objects=$lt_predep_objects_CXX
12986 # Dependencies to place after the objects being linked to create a
12988 postdep_objects=$lt_postdep_objects_CXX
12990 # Dependencies to place before the objects being linked to create a
12992 predeps=$lt_predeps_CXX
12994 # Dependencies to place after the objects being linked to create a
12996 postdeps=$lt_postdeps_CXX
12998 # The library search path used internally by the compiler when linking
12999 # a shared library.
13000 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13002 # Method to check whether dependent libraries are shared objects.
13003 deplibs_check_method=$lt_deplibs_check_method
13005 # Command to use when deplibs_check_method == file_magic.
13006 file_magic_cmd=$lt_file_magic_cmd
13008 # Flag that allows shared libraries with undefined symbols to be built.
13009 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13011 # Flag that forces no undefined symbols.
13012 no_undefined_flag=$lt_no_undefined_flag_CXX
13014 # Commands used to finish a libtool library installation in a directory.
13015 finish_cmds=$lt_finish_cmds
13017 # Same as above, but a single script fragment to be evaled but not shown.
13018 finish_eval=$lt_finish_eval
13020 # Take the output of nm and produce a listing of raw symbols and C names.
13021 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13023 # Transform the output of nm in a proper C declaration
13024 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13026 # Transform the output of nm in a C name address pair
13027 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13029 # This is the shared library runtime path variable.
13030 runpath_var=$runpath_var
13032 # This is the shared library path variable.
13033 shlibpath_var=$shlibpath_var
13035 # Is shlibpath searched before the hard-coded library search path?
13036 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13038 # How to hardcode a shared library path into an executable.
13039 hardcode_action=$hardcode_action_CXX
13041 # Whether we should hardcode library paths into libraries.
13042 hardcode_into_libs=$hardcode_into_libs
13044 # Flag to hardcode \$libdir into a binary during linking.
13045 # This must work even if \$libdir does not exist.
13046 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13048 # If ld is used when linking, flag to hardcode \$libdir into
13049 # a binary during linking. This must work even if \$libdir does
13051 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13053 # Whether we need a single -rpath flag with a separated argument.
13054 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13056 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13057 # resulting binary.
13058 hardcode_direct=$hardcode_direct_CXX
13060 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13061 # resulting binary.
13062 hardcode_minus_L=$hardcode_minus_L_CXX
13064 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13065 # the resulting binary.
13066 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13068 # Set to yes if building a shared library automatically hardcodes DIR into the library
13069 # and all subsequent libraries and executables linked against it.
13070 hardcode_automatic=$hardcode_automatic_CXX
13072 # Variables whose values should be saved in libtool wrapper scripts and
13073 # restored at relink time.
13074 variables_saved_for_relink="$variables_saved_for_relink"
13076 # Whether libtool must link a program against all its dependency libraries.
13077 link_all_deplibs=$link_all_deplibs_CXX
13079 # Compile-time system search path for libraries
13080 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13082 # Run-time system search path for libraries
13083 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13085 # Fix the shell variable \$srcfile for the compiler.
13086 fix_srcfile_path="$fix_srcfile_path_CXX"
13088 # Set to yes if exported symbols are required.
13089 always_export_symbols=$always_export_symbols_CXX
13091 # The commands to list exported symbols.
13092 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13094 # The commands to extract the exported symbol list from a shared archive.
13095 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13097 # Symbols that should not be listed in the preloaded symbols.
13098 exclude_expsyms=$lt_exclude_expsyms_CXX
13100 # Symbols that must always be exported.
13101 include_expsyms=$lt_include_expsyms_CXX
13103 # ### END LIBTOOL TAG CONFIG: $tagname
13109 # If there is no Makefile yet, we rely on a make rule to execute
13110 # `config.status --recheck' to rerun these tests and create the
13111 # libtool script then.
13112 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13113 if test -f "$ltmain_in"; then
13114 test -f Makefile && make "$ltmain"
13120 ac_cpp='$CPP $CPPFLAGS'
13121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13129 with_gnu_ldcxx=$with_gnu_ld
13130 with_gnu_ld=$lt_save_with_gnu_ld
13131 lt_cv_path_LDCXX=$lt_cv_path_LD
13132 lt_cv_path_LD=$lt_save_path_LD
13133 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13134 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13142 if test -n "$F77" && test "X$F77" != "Xno"; then
13145 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13146 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13147 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13150 archive_cmds_need_lc_F77=no
13151 allow_undefined_flag_F77=
13152 always_export_symbols_F77=no
13153 archive_expsym_cmds_F77=
13154 export_dynamic_flag_spec_F77=
13155 hardcode_direct_F77=no
13156 hardcode_libdir_flag_spec_F77=
13157 hardcode_libdir_flag_spec_ld_F77=
13158 hardcode_libdir_separator_F77=
13159 hardcode_minus_L_F77=no
13160 hardcode_automatic_F77=no
13162 module_expsym_cmds_F77=
13163 link_all_deplibs_F77=unknown
13164 old_archive_cmds_F77=$old_archive_cmds
13165 no_undefined_flag_F77=
13166 whole_archive_flag_spec_F77=
13167 enable_shared_with_static_runtimes_F77=no
13169 # Source file extension for f77 test sources.
13172 # Object file extension for compiled f77 test sources.
13176 # Code to be used in simple compile tests
13177 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13179 # Code to be used in simple link tests
13180 lt_simple_link_test_code=" program t\n end\n"
13182 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13184 # If no C compiler was specified, use CC.
13187 # Allow CC to be a program name with arguments.
13191 # Allow CC to be a program name with arguments.
13196 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13198 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13199 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13200 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13201 echo "${ECHO_T}$can_build_shared" >&6
13203 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13204 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13205 test "$can_build_shared" = "no" && enable_shared=no
13207 # On AIX, shared libraries and static libraries use the same namespace, and
13208 # are all built from PIC.
13211 test "$enable_shared" = yes && enable_static=no
13212 if test -n "$RANLIB"; then
13213 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13214 postinstall_cmds='$RANLIB $lib'
13218 test "$enable_shared" = yes && enable_static=no
13221 echo "$as_me:$LINENO: result: $enable_shared" >&5
13222 echo "${ECHO_T}$enable_shared" >&6
13224 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13225 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13226 # Make sure either enable_shared or enable_static is yes.
13227 test "$enable_shared" = yes || enable_static=yes
13228 echo "$as_me:$LINENO: result: $enable_static" >&5
13229 echo "${ECHO_T}$enable_static" >&6
13231 test "$ld_shlibs_F77" = no && can_build_shared=no
13236 lt_prog_compiler_wl_F77=
13237 lt_prog_compiler_pic_F77=
13238 lt_prog_compiler_static_F77=
13240 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13241 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13243 if test "$GCC" = yes; then
13244 lt_prog_compiler_wl_F77='-Wl,'
13245 lt_prog_compiler_static_F77='-static'
13249 # All AIX code is PIC.
13250 if test "$host_cpu" = ia64; then
13251 # AIX 5 now supports IA64 processor
13252 lt_prog_compiler_static_F77='-Bstatic'
13257 # FIXME: we need at least 68020 code to build shared libraries, but
13258 # adding the `-m68020' flag to GCC prevents building anything better,
13260 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13263 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13264 # PIC is the default for these OSes.
13267 mingw* | pw32* | os2*)
13268 # This hack is so that the source file can tell whether it is being
13269 # built for inclusion in a dll (and should export symbols for example).
13270 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13273 darwin* | rhapsody*)
13274 # PIC is the default on this platform
13275 # Common symbols not allowed in MH_DYLIB files
13276 lt_prog_compiler_pic_F77='-fno-common'
13280 # Just because we use GCC doesn't mean we suddenly get shared libraries
13281 # on systems that don't support them.
13282 lt_prog_compiler_can_build_shared_F77=no
13287 if test -d /usr/nec; then
13288 lt_prog_compiler_pic_F77=-Kconform_pic
13293 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13294 # not for PA HP-UX.
13295 case "$host_cpu" in
13300 lt_prog_compiler_pic_F77='-fPIC'
13306 lt_prog_compiler_pic_F77='-fPIC'
13310 # PORTME Check for flag to pass linker flags through the system compiler.
13313 lt_prog_compiler_wl_F77='-Wl,'
13314 if test "$host_cpu" = ia64; then
13315 # AIX 5 now supports IA64 processor
13316 lt_prog_compiler_static_F77='-Bstatic'
13318 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13322 mingw* | pw32* | os2*)
13323 # This hack is so that the source file can tell whether it is being
13324 # built for inclusion in a dll (and should export symbols for example).
13325 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13328 hpux9* | hpux10* | hpux11*)
13329 lt_prog_compiler_wl_F77='-Wl,'
13330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13331 # not for PA HP-UX.
13332 case "$host_cpu" in
13337 lt_prog_compiler_pic_F77='+Z'
13340 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13341 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13344 irix5* | irix6* | nonstopux*)
13345 lt_prog_compiler_wl_F77='-Wl,'
13346 # PIC (with -KPIC) is the default.
13347 lt_prog_compiler_static_F77='-non_shared'
13351 lt_prog_compiler_pic_F77='-KPIC'
13352 lt_prog_compiler_static_F77='-Bstatic'
13358 lt_prog_compiler_wl_F77='-Wl,'
13359 lt_prog_compiler_pic_F77='-KPIC'
13360 lt_prog_compiler_static_F77='-static'
13363 lt_prog_compiler_wl_F77='-Wl,'
13364 # All Alpha code is PIC.
13365 lt_prog_compiler_static_F77='-non_shared'
13370 osf3* | osf4* | osf5*)
13371 lt_prog_compiler_wl_F77='-Wl,'
13372 # All OSF/1 code is PIC.
13373 lt_prog_compiler_static_F77='-non_shared'
13377 lt_prog_compiler_pic_F77='-Kpic'
13378 lt_prog_compiler_static_F77='-dn'
13382 lt_prog_compiler_wl_F77='-Wl,'
13383 lt_prog_compiler_pic_F77='-KPIC'
13384 lt_prog_compiler_static_F77='-Bstatic'
13388 lt_prog_compiler_wl_F77='-Qoption ld '
13389 lt_prog_compiler_pic_F77='-PIC'
13390 lt_prog_compiler_static_F77='-Bstatic'
13393 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13394 lt_prog_compiler_wl_F77='-Wl,'
13395 lt_prog_compiler_pic_F77='-KPIC'
13396 lt_prog_compiler_static_F77='-Bstatic'
13400 if test -d /usr/nec ;then
13401 lt_prog_compiler_pic_F77='-Kconform_pic'
13402 lt_prog_compiler_static_F77='-Bstatic'
13407 lt_prog_compiler_pic_F77='-pic'
13408 lt_prog_compiler_static_F77='-Bstatic'
13412 lt_prog_compiler_can_build_shared_F77=no
13417 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13418 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13421 # Check to make sure the PIC flag actually works.
13423 if test -n "$lt_prog_compiler_pic_F77"; then
13425 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13426 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13427 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 lt_prog_compiler_pic_works_F77=no
13431 ac_outfile=conftest.$ac_objext
13432 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13433 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13434 # Insert the option either (1) after the last *FLAGS variable, or
13435 # (2) before a word containing "conftest.", or (3) at the end.
13436 # Note that $ac_compile itself does not contain backslashes and begins
13437 # with a dollar sign (not a hyphen), so the echo should work correctly.
13438 # The option is referenced via a variable to avoid confusing sed.
13439 lt_compile=`echo "$ac_compile" | $SED \
13440 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13441 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13442 -e 's:$: $lt_compiler_flag:'`
13443 (eval echo "\"\$as_me:13443: $lt_compile\"" >&5)
13444 (eval "$lt_compile" 2>conftest.err)
13446 cat conftest.err >&5
13447 echo "$as_me:13447: \$? = $ac_status" >&5
13448 if (exit $ac_status) && test -s "$ac_outfile"; then
13449 # The compiler can only warn and ignore the option if not recognized
13450 # So say no if there are warnings
13451 if test ! -s conftest.err; then
13452 lt_prog_compiler_pic_works_F77=yes
13458 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13459 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13461 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13462 case $lt_prog_compiler_pic_F77 in
13464 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13467 lt_prog_compiler_pic_F77=
13468 lt_prog_compiler_can_build_shared_F77=no
13473 # For platforms which do not support PIC, -DPIC is meaningless:
13475 lt_prog_compiler_pic_F77=
13478 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13482 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13483 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13484 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13487 lt_cv_prog_compiler_c_o_F77=no
13488 $rm -r conftest 2>/dev/null
13492 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13494 lt_compiler_flag="-o out/conftest2.$ac_objext"
13495 # Insert the option either (1) after the last *FLAGS variable, or
13496 # (2) before a word containing "conftest.", or (3) at the end.
13497 # Note that $ac_compile itself does not contain backslashes and begins
13498 # with a dollar sign (not a hyphen), so the echo should work correctly.
13499 lt_compile=`echo "$ac_compile" | $SED \
13500 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13502 -e 's:$: $lt_compiler_flag:'`
13503 (eval echo "\"\$as_me:13503: $lt_compile\"" >&5)
13504 (eval "$lt_compile" 2>out/conftest.err)
13506 cat out/conftest.err >&5
13507 echo "$as_me:13507: \$? = $ac_status" >&5
13508 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13510 # The compiler can only warn and ignore the option if not recognized
13511 # So say no if there are warnings
13512 if test ! -s out/conftest.err; then
13513 lt_cv_prog_compiler_c_o_F77=yes
13518 # SGI C++ compiler will create directory out/ii_files/ for
13519 # template instantiation
13520 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13521 $rm out/* && rmdir out
13527 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13528 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13531 hard_links="nottested"
13532 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13533 # do not overwrite the value of need_locks provided by the user
13534 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13535 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13540 ln conftest.a conftest.b 2>&5 || hard_links=no
13541 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13542 echo "$as_me:$LINENO: result: $hard_links" >&5
13543 echo "${ECHO_T}$hard_links" >&6
13544 if test "$hard_links" = no; then
13545 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13546 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13553 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13554 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13557 allow_undefined_flag_F77=
13558 enable_shared_with_static_runtimes_F77=no
13560 archive_expsym_cmds_F77=
13561 old_archive_From_new_cmds_F77=
13562 old_archive_from_expsyms_cmds_F77=
13563 export_dynamic_flag_spec_F77=
13564 whole_archive_flag_spec_F77=
13565 thread_safe_flag_spec_F77=
13566 hardcode_libdir_flag_spec_F77=
13567 hardcode_libdir_flag_spec_ld_F77=
13568 hardcode_libdir_separator_F77=
13569 hardcode_direct_F77=no
13570 hardcode_minus_L_F77=no
13571 hardcode_shlibpath_var_F77=unsupported
13572 link_all_deplibs_F77=unknown
13573 hardcode_automatic_F77=no
13575 module_expsym_cmds_F77=
13576 always_export_symbols_F77=no
13577 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13578 # include_expsyms should be a list of space-separated symbols to be *always*
13579 # included in the symbol list
13580 include_expsyms_F77=
13581 # exclude_expsyms can be an extended regexp of symbols to exclude
13582 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13583 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13584 # as well as any symbol that contains `d'.
13585 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13586 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13587 # platforms (ab)use it in PIC code, but their linkers get confused if
13588 # the symbol is explicitly referenced. Since portable code cannot
13589 # rely on this symbol name, it's probably fine to never include it in
13590 # preloaded symbol tables.
13591 extract_expsyms_cmds=
13594 cygwin* | mingw* | pw32*)
13595 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13596 # When not using gcc, we currently assume that we are using
13597 # Microsoft Visual C++.
13598 if test "$GCC" != yes; then
13608 if test "$with_gnu_ld" = yes; then
13609 # If archive_cmds runs LD, not CC, wlarc should be empty
13612 # See if GNU ld supports shared libraries.
13614 aix3* | aix4* | aix5*)
13615 # On AIX/PPC, the GNU linker is very broken
13616 if test "$host_cpu" != ia64; then
13620 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13621 *** to be unable to reliably create shared libraries on AIX.
13622 *** Therefore, libtool is disabling shared libraries support. If you
13623 *** really care for shared libraries, you may want to modify your PATH
13624 *** so that a non-GNU linker is found, and then restart.
13631 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)'
13632 hardcode_libdir_flag_spec_F77='-L$libdir'
13633 hardcode_minus_L_F77=yes
13635 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13636 # that the semantics of dynamic libraries on AmigaOS, at least up
13637 # to version 4, is to share data among multiple programs linked
13638 # with the same dynamic library. Since this doesn't match the
13639 # behavior of shared libraries on other platforms, we can't use
13645 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13646 allow_undefined_flag_F77=unsupported
13647 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13648 # support --undefined. This deserves some investigation. FIXME
13649 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13655 cygwin* | mingw* | pw32*)
13656 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13657 # as there is no search path for DLLs.
13658 hardcode_libdir_flag_spec_F77='-L$libdir'
13659 allow_undefined_flag_F77=unsupported
13660 always_export_symbols_F77=no
13661 enable_shared_with_static_runtimes_F77=yes
13662 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13664 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13665 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13666 # If the export-symbols file already is a .def file (1st line
13667 # is EXPORTS), use it as is; otherwise, prepend...
13668 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13669 cp $export_symbols $output_objdir/$soname.def;
13671 echo EXPORTS > $output_objdir/$soname.def;
13672 cat $export_symbols >> $output_objdir/$soname.def;
13674 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13681 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13682 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13685 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13686 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13691 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13695 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13696 *** create shared libraries on Solaris systems. Therefore, libtool
13697 *** is disabling shared libraries support. We urge you to upgrade GNU
13698 *** binutils to release 2.9.1 or newer. Another option is to modify
13699 *** your PATH or compiler configuration so that the native linker is
13700 *** used, and then restart.
13703 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13704 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13705 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13712 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13714 hardcode_direct_F77=yes
13715 hardcode_shlibpath_var_F77=no
13719 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13720 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13721 archive_cmds_F77="$tmp_archive_cmds"
13722 supports_anon_versioning=no
13723 case `$LD -v 2>/dev/null` in
13724 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13725 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13726 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13727 *\ 2.11.*) ;; # other 2.11 versions
13728 *) supports_anon_versioning=yes ;;
13730 if test $supports_anon_versioning = yes; then
13731 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13732 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13733 $echo "local: *; };" >> $output_objdir/$libname.ver~
13734 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13736 archive_expsym_cmds_F77="$tmp_archive_cmds"
13744 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13745 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13746 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13753 if test "$ld_shlibs_F77" = yes; then
13754 runpath_var=LD_RUN_PATH
13755 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13756 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13757 # ancient GNU ld didn't support --whole-archive et. al.
13758 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13759 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13761 whole_archive_flag_spec_F77=
13765 # PORTME fill in a description of your system's linker (not GNU ld)
13768 allow_undefined_flag_F77=unsupported
13769 always_export_symbols_F77=yes
13770 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'
13771 # Note: this linker hardcodes the directories in LIBPATH if there
13772 # are no directories specified by -L.
13773 hardcode_minus_L_F77=yes
13774 if test "$GCC" = yes && test -z "$link_static_flag"; then
13775 # Neither direct hardcoding nor static linking is supported with a
13777 hardcode_direct_F77=unsupported
13782 if test "$host_cpu" = ia64; then
13783 # On IA64, the linker does run time linking by default, so we don't
13784 # have to do anything special.
13785 aix_use_runtimelinking=no
13786 exp_sym_flag='-Bexport'
13789 # If we're using GNU nm, then we don't want the "-C" option.
13790 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13791 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13792 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'
13794 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'
13796 aix_use_runtimelinking=no
13798 # Test if we are trying to use run time linking or normal
13799 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13800 # need to do runtime linking.
13801 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13802 for ld_flag in $LDFLAGS; do
13803 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13804 aix_use_runtimelinking=yes
13810 exp_sym_flag='-bexport'
13811 no_entry_flag='-bnoentry'
13814 # When large executables or shared objects are built, AIX ld can
13815 # have problems creating the table of contents. If linking a library
13816 # or program results in "error TOC overflow" add -mminimal-toc to
13817 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13818 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13820 archive_cmds_F77=''
13821 hardcode_direct_F77=yes
13822 hardcode_libdir_separator_F77=':'
13823 link_all_deplibs_F77=yes
13825 if test "$GCC" = yes; then
13826 case $host_os in aix4.012|aix4.012.*)
13827 # We only want to do this on AIX 4.2 and lower, the check
13828 # below for broken collect2 doesn't work under 4.3+
13829 collect2name=`${CC} -print-prog-name=collect2`
13830 if test -f "$collect2name" && \
13831 strings "$collect2name" | grep resolve_lib_name >/dev/null
13833 # We have reworked collect2
13834 hardcode_direct_F77=yes
13836 # We have old collect2
13837 hardcode_direct_F77=unsupported
13838 # It fails to find uninstalled libraries when the uninstalled
13839 # path is not listed in the libpath. Setting hardcode_minus_L
13840 # to unsupported forces relinking
13841 hardcode_minus_L_F77=yes
13842 hardcode_libdir_flag_spec_F77='-L$libdir'
13843 hardcode_libdir_separator_F77=
13846 shared_flag='-shared'
13849 if test "$host_cpu" = ia64; then
13850 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13851 # chokes on -Wl,-G. The following line is correct:
13854 if test "$aix_use_runtimelinking" = yes; then
13855 shared_flag='${wl}-G'
13857 shared_flag='${wl}-bM:SRE'
13862 # It seems that -bexpall does not export symbols beginning with
13863 # underscore (_), so it is better to generate a list of symbols to export.
13864 always_export_symbols_F77=yes
13865 if test "$aix_use_runtimelinking" = yes; then
13866 # Warning - without using the other runtime loading flags (-brtl),
13867 # -berok will link without error, but may produce a broken library.
13868 allow_undefined_flag_F77='-berok'
13869 # Determine the default libpath from the value encoded in an empty executable.
13870 cat >conftest.$ac_ext <<_ACEOF
13875 rm -f conftest.$ac_objext conftest$ac_exeext
13876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13877 (eval $ac_link) 2>conftest.er1
13879 grep -v '^ *+' conftest.er1 >conftest.err
13881 cat conftest.err >&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } &&
13884 { ac_try='test -z "$ac_f77_werror_flag"
13885 || test ! -s conftest.err'
13886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887 (eval $ac_try) 2>&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; } &&
13891 { ac_try='test -s conftest$ac_exeext'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; }; then
13898 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13900 # Check for a 64-bit object if we didn't find anything.
13901 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; }
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13908 rm -f conftest.err conftest.$ac_objext \
13909 conftest$ac_exeext conftest.$ac_ext
13910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13912 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13913 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"
13915 if test "$host_cpu" = ia64; then
13916 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13917 allow_undefined_flag_F77="-z nodefs"
13918 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"
13920 # Determine the default libpath from the value encoded in an empty executable.
13921 cat >conftest.$ac_ext <<_ACEOF
13926 rm -f conftest.$ac_objext conftest$ac_exeext
13927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13928 (eval $ac_link) 2>conftest.er1
13930 grep -v '^ *+' conftest.er1 >conftest.err
13932 cat conftest.err >&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
13935 { ac_try='test -z "$ac_f77_werror_flag"
13936 || test ! -s conftest.err'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
13942 { ac_try='test -s conftest$ac_exeext'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13949 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13951 # Check for a 64-bit object if we didn't find anything.
13952 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; }
13955 echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13959 rm -f conftest.err conftest.$ac_objext \
13960 conftest$ac_exeext conftest.$ac_ext
13961 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13963 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13964 # Warning - without using the other run time loading flags,
13965 # -berok will link without error, but may produce a broken library.
13966 no_undefined_flag_F77=' ${wl}-bernotok'
13967 allow_undefined_flag_F77=' ${wl}-berok'
13968 # -bexpall does not export symbols beginning with underscore (_)
13969 always_export_symbols_F77=yes
13970 # Exported symbols can be pulled into shared objects from archives
13971 whole_archive_flag_spec_F77=' '
13972 archive_cmds_need_lc_F77=yes
13973 # This is similar to how AIX traditionally builds it's shared libraries.
13974 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'
13980 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)'
13981 hardcode_libdir_flag_spec_F77='-L$libdir'
13982 hardcode_minus_L_F77=yes
13983 # see comment about different semantics on the GNU ld section
13988 export_dynamic_flag_spec_F77=-rdynamic
13991 cygwin* | mingw* | pw32*)
13992 # When not using gcc, we currently assume that we are using
13993 # Microsoft Visual C++.
13994 # hardcode_libdir_flag_spec is actually meaningless, as there is
13995 # no search path for DLLs.
13996 hardcode_libdir_flag_spec_F77=' '
13997 allow_undefined_flag_F77=unsupported
13998 # Tell ltmain to make .lib files, not .a files.
14000 # Tell ltmain to make .dll files, not .so files.
14002 # FIXME: Setting linknames here is a bad hack.
14003 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14004 # The linker will automatically build a .lib file if we build a DLL.
14005 old_archive_From_new_cmds_F77='true'
14006 # FIXME: Should let the user specify the lib program.
14007 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14008 fix_srcfile_path='`cygpath -w "$srcfile"`'
14009 enable_shared_with_static_runtimes_F77=yes
14012 darwin* | rhapsody*)
14013 if test "$GXX" = yes ; then
14014 archive_cmds_need_lc_F77=no
14016 rhapsody* | darwin1.[012])
14017 allow_undefined_flag_F77='-undefined suppress'
14020 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14021 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14023 case ${MACOSX_DEPLOYMENT_TARGET} in
14025 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14028 allow_undefined_flag_F77='-undefined dynamic_lookup'
14034 lt_int_apple_cc_single_mod=no
14035 output_verbose_link_cmd='echo'
14036 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14037 lt_int_apple_cc_single_mod=yes
14039 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14040 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14042 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'
14044 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14045 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14046 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14047 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}'
14049 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}'
14051 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}'
14052 hardcode_direct_F77=no
14053 hardcode_automatic_F77=yes
14054 hardcode_shlibpath_var_F77=unsupported
14055 whole_archive_flag_spec_F77='-all_load $convenience'
14056 link_all_deplibs_F77=yes
14063 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14064 hardcode_libdir_flag_spec_F77='-L$libdir'
14065 hardcode_shlibpath_var_F77=no
14072 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14073 # support. Future versions do this automatically, but an explicit c++rt0.o
14074 # does not break anything, and helps significantly (at the cost of a little
14077 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14078 hardcode_libdir_flag_spec_F77='-R$libdir'
14079 hardcode_direct_F77=yes
14080 hardcode_shlibpath_var_F77=no
14083 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14085 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14086 hardcode_direct_F77=yes
14087 hardcode_minus_L_F77=yes
14088 hardcode_shlibpath_var_F77=no
14091 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14092 freebsd* | kfreebsd*-gnu)
14093 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14094 hardcode_libdir_flag_spec_F77='-R$libdir'
14095 hardcode_direct_F77=yes
14096 hardcode_shlibpath_var_F77=no
14100 if test "$GCC" = yes; then
14101 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'
14103 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'
14105 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14106 hardcode_libdir_separator_F77=:
14107 hardcode_direct_F77=yes
14109 # hardcode_minus_L: Not really in the search PATH,
14110 # but as the default location of the library.
14111 hardcode_minus_L_F77=yes
14112 export_dynamic_flag_spec_F77='${wl}-E'
14116 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14117 case "$host_cpu" in
14119 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14122 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14126 case "$host_cpu" in
14128 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14131 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14135 if test "$with_gnu_ld" = no; then
14136 case "$host_cpu" in
14138 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14139 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14140 hardcode_libdir_separator_F77=:
14141 hardcode_direct_F77=no
14142 hardcode_shlibpath_var_F77=no
14145 hardcode_libdir_flag_spec_F77='-L$libdir'
14146 hardcode_direct_F77=no
14147 hardcode_shlibpath_var_F77=no
14149 # hardcode_minus_L: Not really in the search PATH,
14150 # but as the default location of the library.
14151 hardcode_minus_L_F77=yes
14154 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14155 hardcode_libdir_separator_F77=:
14156 hardcode_direct_F77=yes
14157 export_dynamic_flag_spec_F77='${wl}-E'
14159 # hardcode_minus_L: Not really in the search PATH,
14160 # but as the default location of the library.
14161 hardcode_minus_L_F77=yes
14167 irix5* | irix6* | nonstopux*)
14168 if test "$GCC" = yes; then
14169 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'
14171 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'
14172 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14174 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14175 hardcode_libdir_separator_F77=:
14176 link_all_deplibs_F77=yes
14180 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14181 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14183 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14185 hardcode_libdir_flag_spec_F77='-R$libdir'
14186 hardcode_direct_F77=yes
14187 hardcode_shlibpath_var_F77=no
14191 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14192 hardcode_direct_F77=yes
14193 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14194 hardcode_libdir_separator_F77=:
14195 hardcode_shlibpath_var_F77=no
14199 hardcode_direct_F77=yes
14200 hardcode_shlibpath_var_F77=no
14201 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14202 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14203 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14204 export_dynamic_flag_spec_F77='${wl}-E'
14207 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14208 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14209 hardcode_libdir_flag_spec_F77='-R$libdir'
14212 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14213 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14220 hardcode_libdir_flag_spec_F77='-L$libdir'
14221 hardcode_minus_L_F77=yes
14222 allow_undefined_flag_F77=unsupported
14223 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'
14224 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14228 if test "$GCC" = yes; then
14229 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14230 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'
14232 allow_undefined_flag_F77=' -expect_unresolved \*'
14233 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'
14235 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14236 hardcode_libdir_separator_F77=:
14239 osf4* | osf5*) # as osf3* with the addition of -msym flag
14240 if test "$GCC" = yes; then
14241 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14242 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'
14243 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14245 allow_undefined_flag_F77=' -expect_unresolved \*'
14246 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'
14247 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~
14248 $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'
14250 # Both c and cxx compiler support -rpath directly
14251 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14253 hardcode_libdir_separator_F77=:
14257 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14258 hardcode_shlibpath_var_F77=no
14259 export_dynamic_flag_spec_F77='${wl}-Bexport'
14260 runpath_var=LD_RUN_PATH
14261 hardcode_runpath_var=yes
14265 no_undefined_flag_F77=' -z text'
14266 if test "$GCC" = yes; then
14267 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14268 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14269 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14271 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14272 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14273 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14275 hardcode_libdir_flag_spec_F77='-R$libdir'
14276 hardcode_shlibpath_var_F77=no
14278 solaris2.[0-5] | solaris2.[0-5].*) ;;
14279 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14280 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14282 link_all_deplibs_F77=yes
14286 if test "x$host_vendor" = xsequent; then
14287 # Use $CC to link under sequent, because it throws in some extra .o
14288 # files that make .init and .fini sections work.
14289 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14291 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14293 hardcode_libdir_flag_spec_F77='-L$libdir'
14294 hardcode_direct_F77=yes
14295 hardcode_minus_L_F77=yes
14296 hardcode_shlibpath_var_F77=no
14300 case $host_vendor in
14302 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14303 hardcode_direct_F77=yes # is this really true???
14306 ## LD is ld it makes a PLAMLIB
14307 ## CC just makes a GrossModule.
14308 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14309 reload_cmds_F77='$CC -r -o $output$reload_objs'
14310 hardcode_direct_F77=no
14313 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14314 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14317 runpath_var='LD_RUN_PATH'
14318 hardcode_shlibpath_var_F77=no
14322 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14323 hardcode_shlibpath_var_F77=no
14324 export_dynamic_flag_spec_F77='-Bexport'
14328 if test -d /usr/nec; then
14329 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14330 hardcode_shlibpath_var_F77=no
14331 runpath_var=LD_RUN_PATH
14332 hardcode_runpath_var=yes
14338 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14339 hardcode_direct_F77=yes
14340 hardcode_minus_L_F77=no
14341 hardcode_shlibpath_var_F77=no
14342 hardcode_runpath_var=yes
14343 runpath_var=LD_RUN_PATH
14346 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14347 no_undefined_flag_F77='${wl}-z ${wl}text'
14348 if test "$GCC" = yes; then
14349 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14351 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14353 runpath_var='LD_RUN_PATH'
14354 hardcode_shlibpath_var_F77=no
14358 no_undefined_flag_F77=' -z text'
14359 # $CC -shared without GNU ld will not create a library from C++
14360 # object files and a static libstdc++, better avoid it by now
14361 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14362 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14363 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14364 hardcode_libdir_flag_spec_F77=
14365 hardcode_shlibpath_var_F77=no
14366 runpath_var='LD_RUN_PATH'
14370 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14371 hardcode_libdir_flag_spec_F77='-L$libdir'
14372 hardcode_shlibpath_var_F77=no
14381 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14382 echo "${ECHO_T}$ld_shlibs_F77" >&6
14383 test "$ld_shlibs_F77" = no && can_build_shared=no
14385 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14386 if test "$GCC" = yes; then
14387 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14391 # Do we need to explicitly link libc?
14393 case "x$archive_cmds_need_lc_F77" in
14395 # Assume -lc should be added
14396 archive_cmds_need_lc_F77=yes
14398 if test "$enable_shared" = yes && test "$GCC" = yes; then
14399 case $archive_cmds_F77 in
14401 # FIXME: we may have to deal with multi-command sequences.
14404 # Test whether the compiler implicitly links with -lc since on some
14405 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14406 # to ld, don't add -lc before -lgcc.
14407 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14408 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14410 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14413 (eval $ac_compile) 2>&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } 2>conftest.err; then
14419 libobjs=conftest.$ac_objext
14421 wl=$lt_prog_compiler_wl_F77
14427 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14428 allow_undefined_flag_F77=
14429 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14430 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }
14435 archive_cmds_need_lc_F77=no
14437 archive_cmds_need_lc_F77=yes
14439 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14441 cat conftest.err 1>&5
14444 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14445 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14452 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14453 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14454 library_names_spec=
14455 libname_spec='lib$name'
14459 postuninstall_cmds=
14463 shlibpath_overrides_runpath=unknown
14465 dynamic_linker="$host_os ld.so"
14466 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14467 if test "$GCC" = yes; then
14468 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14469 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14470 # if the path contains ";" then we assume it to be the separator
14471 # otherwise default to the standard path separator (i.e. ":") - it is
14472 # assumed that no part of a normal pathname contains ";" but that should
14473 # okay in the real world where ";" in dirpaths is itself problematic.
14474 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14476 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14479 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14481 need_lib_prefix=unknown
14482 hardcode_into_libs=no
14484 # when you set need_version to no, make sure it does not cause -set_version
14485 # flags to be left without arguments
14486 need_version=unknown
14491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14492 shlibpath_var=LIBPATH
14494 # AIX 3 has no versioning support, so we append a major version to the name.
14495 soname_spec='${libname}${release}${shared_ext}$major'
14502 hardcode_into_libs=yes
14503 if test "$host_cpu" = ia64; then
14504 # AIX 5 supports IA64
14505 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14506 shlibpath_var=LD_LIBRARY_PATH
14508 # With GCC up to 2.95.x, collect2 would create an import file
14509 # for dependence libraries. The import file would start with
14510 # the line `#! .'. This would cause the generated library to
14511 # depend on `.', always an invalid library. This was fixed in
14512 # development snapshots of GCC prior to 3.0.
14514 aix4 | aix4.[01] | aix4.[01].*)
14515 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14517 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14520 can_build_shared=no
14524 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14525 # soname into executable. Probably we can add versioning support to
14526 # collect2, so additional links can be useful in future.
14527 if test "$aix_use_runtimelinking" = yes; then
14528 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14529 # instead of lib<name>.a to let people know that these are not
14530 # typical AIX shared libraries.
14531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14533 # We preserve .a as extension for shared libraries through AIX4.2
14534 # and later when we are not doing run time linking.
14535 library_names_spec='${libname}${release}.a $libname.a'
14536 soname_spec='${libname}${release}${shared_ext}$major'
14538 shlibpath_var=LIBPATH
14543 library_names_spec='$libname.ixlibrary $libname.a'
14544 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14545 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'
14549 library_names_spec='${libname}${shared_ext}'
14550 dynamic_linker="$host_os ld.so"
14551 shlibpath_var=LIBRARY_PATH
14557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14558 soname_spec='${libname}${release}${shared_ext}$major'
14559 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14560 shlibpath_var=LD_LIBRARY_PATH
14561 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14562 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14563 # the default ld.so.conf also contains /usr/contrib/lib and
14564 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14565 # libtool to hard-code these into programs
14568 cygwin* | mingw* | pw32*)
14569 version_type=windows
14574 case $GCC,$host_os in
14575 yes,cygwin* | yes,mingw* | yes,pw32*)
14576 library_names_spec='$libname.dll.a'
14577 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14578 postinstall_cmds='base_file=`basename \${file}`~
14579 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14580 dldir=$destdir/`dirname \$dlpath`~
14581 test -d \$dldir || mkdir -p \$dldir~
14582 $install_prog $dir/$dlname \$dldir/$dlname'
14583 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14584 dlpath=$dir/\$dldll~
14586 shlibpath_overrides_runpath=yes
14590 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14591 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14592 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14595 # MinGW DLLs use traditional 'lib' prefix
14596 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14597 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14598 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14599 # It is most probably a Windows format PATH printed by
14600 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14601 # path with ; separators, and with drive letters. We can handle the
14602 # drive letters (cygwin fileutils understands them), so leave them,
14603 # especially as we might pass files found there to a mingw objdump,
14604 # which wouldn't understand a cygwinified path. Ahh.
14605 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14607 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14611 # pw32 DLLs use 'pw' prefix rather than 'lib'
14612 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14618 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14621 dynamic_linker='Win32 ld.exe'
14622 # FIXME: first we should search . and the directory the executable is in
14626 darwin* | rhapsody*)
14627 dynamic_linker="$host_os dyld"
14628 version_type=darwin
14631 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14632 soname_spec='${libname}${release}${major}$shared_ext'
14633 shlibpath_overrides_runpath=yes
14634 shlibpath_var=DYLD_LIBRARY_PATH
14635 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14636 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14637 if test "$GCC" = yes; then
14638 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"`
14640 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14642 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14650 soname_spec='${libname}${release}${shared_ext}$major'
14651 shlibpath_var=LD_LIBRARY_PATH
14662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14663 soname_spec='${libname}${release}${shared_ext}$major'
14664 shlibpath_var=LD_LIBRARY_PATH
14665 shlibpath_overrides_runpath=no
14666 hardcode_into_libs=yes
14667 dynamic_linker='GNU ld.so'
14671 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14672 version_type=freebsd-$objformat
14673 case $version_type in
14675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14680 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14684 shlibpath_var=LD_LIBRARY_PATH
14687 shlibpath_overrides_runpath=yes
14689 freebsd3.01* | freebsdelf3.01*)
14690 shlibpath_overrides_runpath=yes
14691 hardcode_into_libs=yes
14694 shlibpath_overrides_runpath=no
14695 hardcode_into_libs=yes
14704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14705 soname_spec='${libname}${release}${shared_ext}$major'
14706 shlibpath_var=LD_LIBRARY_PATH
14707 hardcode_into_libs=yes
14710 hpux9* | hpux10* | hpux11*)
14711 # Give a soname corresponding to the major version so that dld.sl refuses to
14712 # link against other versions.
14716 case "$host_cpu" in
14719 hardcode_into_libs=yes
14720 dynamic_linker="$host_os dld.so"
14721 shlibpath_var=LD_LIBRARY_PATH
14722 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14724 soname_spec='${libname}${release}${shared_ext}$major'
14725 if test "X$HPUX_IA64_MODE" = X32; then
14726 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14728 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14730 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14734 hardcode_into_libs=yes
14735 dynamic_linker="$host_os dld.sl"
14736 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14739 soname_spec='${libname}${release}${shared_ext}$major'
14740 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14745 dynamic_linker="$host_os dld.sl"
14746 shlibpath_var=SHLIB_PATH
14747 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14749 soname_spec='${libname}${release}${shared_ext}$major'
14752 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14753 postinstall_cmds='chmod 555 $lib'
14756 irix5* | irix6* | nonstopux*)
14758 nonstopux*) version_type=nonstopux ;;
14760 if test "$lt_cv_prog_gnu_ld" = yes; then
14768 soname_spec='${libname}${release}${shared_ext}$major'
14769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14771 irix5* | nonstopux*)
14772 libsuff= shlibsuff=
14775 case $LD in # libtool.m4 will add one of these switches to LD
14776 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14777 libsuff= shlibsuff= libmagic=32-bit;;
14778 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14779 libsuff=32 shlibsuff=N32 libmagic=N32;;
14780 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14781 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14782 *) libsuff= shlibsuff= libmagic=never-match;;
14786 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14787 shlibpath_overrides_runpath=no
14788 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14789 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14790 hardcode_into_libs=yes
14793 # No shared lib support for Linux oldld, aout, or coff.
14794 linux*oldld* | linux*aout* | linux*coff*)
14798 # This must be Linux ELF.
14803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14804 soname_spec='${libname}${release}${shared_ext}$major'
14805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14806 shlibpath_var=LD_LIBRARY_PATH
14807 shlibpath_overrides_runpath=no
14808 # This implies no fast_install, which is unacceptable.
14809 # Some rework will be needed to allow for fast_install
14810 # before this can be enabled.
14811 hardcode_into_libs=yes
14813 # find out which ABI we are using
14815 case "$host_cpu" in
14816 x86_64*|s390x*|powerpc64*)
14817 echo '#line 14817 "configure"' > conftest.$ac_ext
14818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14819 (eval $ac_compile) 2>&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; then
14823 case `/usr/bin/file conftest.$ac_objext` in
14826 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14834 # Append ld.so.conf contents to the search path
14835 if test -f /etc/ld.so.conf; then
14836 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14837 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14840 # We used to test for /lib/ld.so.1 and disable shared libraries on
14841 # powerpc, because MkLinux only supported shared libraries with the
14842 # GNU dynamic linker. Since this was broken with cross compilers,
14843 # most powerpc-linux boxes support dynamic linking these days and
14844 # people can always --disable-shared, the test was removed, and we
14845 # assume the GNU/Linux dynamic linker is in use.
14846 dynamic_linker='GNU/Linux ld.so'
14853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14854 soname_spec='${libname}${release}${shared_ext}$major'
14855 shlibpath_var=LD_LIBRARY_PATH
14856 shlibpath_overrides_runpath=no
14857 hardcode_into_libs=yes
14858 dynamic_linker='GNU ld.so'
14865 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14868 dynamic_linker='NetBSD (a.out) ld.so'
14870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14871 soname_spec='${libname}${release}${shared_ext}$major'
14872 dynamic_linker='NetBSD ld.elf_so'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 shlibpath_overrides_runpath=yes
14876 hardcode_into_libs=yes
14881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14882 shlibpath_var=LD_LIBRARY_PATH
14883 shlibpath_overrides_runpath=yes
14890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14891 soname_spec='${libname}${release}${shared_ext}$major'
14892 shlibpath_var=LD_LIBRARY_PATH
14893 shlibpath_overrides_runpath=yes
14900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14902 shlibpath_var=LD_LIBRARY_PATH
14903 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14905 openbsd2.[89] | openbsd2.[89].*)
14906 shlibpath_overrides_runpath=no
14909 shlibpath_overrides_runpath=yes
14913 shlibpath_overrides_runpath=yes
14918 libname_spec='$name'
14921 library_names_spec='$libname${shared_ext} $libname.a'
14922 dynamic_linker='OS/2 ld.exe'
14923 shlibpath_var=LIBPATH
14926 osf3* | osf4* | osf5*)
14930 soname_spec='${libname}${release}${shared_ext}$major'
14931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14932 shlibpath_var=LD_LIBRARY_PATH
14933 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14934 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14939 soname_spec='${libname}${release}${shared_ext}$major'
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941 shlibpath_var=LD_LIBRARY_PATH
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949 soname_spec='${libname}${release}${shared_ext}$major'
14950 shlibpath_var=LD_LIBRARY_PATH
14951 shlibpath_overrides_runpath=yes
14952 hardcode_into_libs=yes
14953 # ldd complains unless libraries are executable
14954 postinstall_cmds='chmod +x $lib'
14959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14960 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14961 shlibpath_var=LD_LIBRARY_PATH
14962 shlibpath_overrides_runpath=yes
14963 if test "$with_gnu_ld" = yes; then
14969 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14972 soname_spec='${libname}${release}${shared_ext}$major'
14973 shlibpath_var=LD_LIBRARY_PATH
14974 case $host_vendor in
14976 shlibpath_overrides_runpath=no
14978 export_dynamic_flag_spec='${wl}-Blargedynsym'
14979 runpath_var=LD_RUN_PATH
14987 shlibpath_overrides_runpath=no
14988 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14994 if test -d /usr/nec ;then
14996 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14997 soname_spec='$libname${shared_ext}.$major'
14998 shlibpath_var=LD_LIBRARY_PATH
15004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005 soname_spec='${libname}${release}${shared_ext}$major'
15006 shlibpath_var=LD_LIBRARY_PATH
15013 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15014 echo "${ECHO_T}$dynamic_linker" >&6
15015 test "$dynamic_linker" = no && can_build_shared=no
15017 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15018 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15019 hardcode_action_F77=
15020 if test -n "$hardcode_libdir_flag_spec_F77" || \
15021 test -n "$runpath_var F77" || \
15022 test "X$hardcode_automatic_F77"="Xyes" ; then
15024 # We can hardcode non-existant directories.
15025 if test "$hardcode_direct_F77" != no &&
15026 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15027 # have to relink, otherwise we might link with an installed library
15028 # when we should be linking with a yet-to-be-installed one
15029 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15030 test "$hardcode_minus_L_F77" != no; then
15031 # Linking always hardcodes the temporary library directory.
15032 hardcode_action_F77=relink
15034 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15035 hardcode_action_F77=immediate
15038 # We cannot hardcode anything, or else we can only hardcode existing
15040 hardcode_action_F77=unsupported
15042 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15043 echo "${ECHO_T}$hardcode_action_F77" >&6
15045 if test "$hardcode_action_F77" = relink; then
15046 # Fast installation is not supported
15047 enable_fast_install=no
15048 elif test "$shlibpath_overrides_runpath" = yes ||
15049 test "$enable_shared" = no; then
15050 # Fast installation is not necessary
15051 enable_fast_install=needless
15056 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15057 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15058 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15059 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15060 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15061 echo "$as_me:$LINENO: result: yes" >&5
15062 echo "${ECHO_T}yes" >&6
15064 # FIXME - insert some real tests, host_os isn't really good enough
15067 if test -n "$STRIP" ; then
15068 striplib="$STRIP -x"
15069 echo "$as_me:$LINENO: result: yes" >&5
15070 echo "${ECHO_T}yes" >&6
15072 echo "$as_me:$LINENO: result: no" >&5
15073 echo "${ECHO_T}no" >&6
15077 echo "$as_me:$LINENO: result: no" >&5
15078 echo "${ECHO_T}no" >&6
15085 # The else clause should only fire when bootstrapping the
15086 # libtool distribution, otherwise you forgot to ship ltmain.sh
15087 # with your package, and you will get complaints that there are
15088 # no rules to generate ltmain.sh.
15089 if test -f "$ltmain"; then
15090 # See if we are running on zsh, and set the options which allow our commands through
15091 # without removal of \ escapes.
15092 if test -n "${ZSH_VERSION+set}" ; then
15093 setopt NO_GLOB_SUBST
15095 # Now quote all the things that may contain metacharacters while being
15096 # careful not to overquote the AC_SUBSTed values. We take copies of the
15097 # variables and quote the copies for generation of the libtool script.
15098 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15100 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15101 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15102 deplibs_check_method reload_flag reload_cmds need_locks \
15103 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15104 lt_cv_sys_global_symbol_to_c_name_address \
15105 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15106 old_postinstall_cmds old_postuninstall_cmds \
15110 lt_prog_compiler_wl_F77 \
15111 lt_prog_compiler_pic_F77 \
15112 lt_prog_compiler_static_F77 \
15113 lt_prog_compiler_no_builtin_flag_F77 \
15114 export_dynamic_flag_spec_F77 \
15115 thread_safe_flag_spec_F77 \
15116 whole_archive_flag_spec_F77 \
15117 enable_shared_with_static_runtimes_F77 \
15118 old_archive_cmds_F77 \
15119 old_archive_from_new_cmds_F77 \
15120 predep_objects_F77 \
15121 postdep_objects_F77 \
15124 compiler_lib_search_path_F77 \
15126 archive_expsym_cmds_F77 \
15127 postinstall_cmds_F77 \
15128 postuninstall_cmds_F77 \
15129 old_archive_from_expsyms_cmds_F77 \
15130 allow_undefined_flag_F77 \
15131 no_undefined_flag_F77 \
15132 export_symbols_cmds_F77 \
15133 hardcode_libdir_flag_spec_F77 \
15134 hardcode_libdir_flag_spec_ld_F77 \
15135 hardcode_libdir_separator_F77 \
15136 hardcode_automatic_F77 \
15138 module_expsym_cmds_F77 \
15139 lt_cv_prog_compiler_c_o_F77 \
15140 exclude_expsyms_F77 \
15141 include_expsyms_F77; do
15144 old_archive_cmds_F77 | \
15145 old_archive_from_new_cmds_F77 | \
15146 archive_cmds_F77 | \
15147 archive_expsym_cmds_F77 | \
15148 module_cmds_F77 | \
15149 module_expsym_cmds_F77 | \
15150 old_archive_from_expsyms_cmds_F77 | \
15151 export_symbols_cmds_F77 | \
15152 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15153 postinstall_cmds | postuninstall_cmds | \
15154 old_postinstall_cmds | old_postuninstall_cmds | \
15155 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15156 # Double-quote double-evaled strings.
15157 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15160 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15166 *'\$0 --fallback-echo"')
15167 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15173 cat <<__EOF__ >> "$cfgfile"
15174 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15176 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15178 # Shell to use when invoking shell scripts.
15181 # Whether or not to build shared libraries.
15182 build_libtool_libs=$enable_shared
15184 # Whether or not to build static libraries.
15185 build_old_libs=$enable_static
15187 # Whether or not to add -lc for building shared libraries.
15188 build_libtool_need_lc=$archive_cmds_need_lc_F77
15190 # Whether or not to disallow shared libs when runtime libs are static
15191 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15193 # Whether or not to optimize for fast installation.
15194 fast_install=$enable_fast_install
15197 host_alias=$host_alias
15200 # An echo program that does not interpret backslashes.
15205 AR_FLAGS=$lt_AR_FLAGS
15210 # A language-specific compiler.
15211 CC=$lt_compiler_F77
15213 # Is the compiler the GNU C compiler?
15219 # The linker used to build libraries.
15222 # Whether we need hard or soft links.
15225 # A BSD-compatible nm program.
15228 # A symbol stripping program
15231 # Used to examine libraries when file_magic_cmd begins "file"
15232 MAGIC_CMD=$MAGIC_CMD
15234 # Used on cygwin: DLL creation program.
15237 # Used on cygwin: object dumper.
15240 # Used on cygwin: assembler.
15243 # The name of the directory that contains temporary libtool files.
15246 # How to create reloadable object files.
15247 reload_flag=$lt_reload_flag
15248 reload_cmds=$lt_reload_cmds
15250 # How to pass a linker flag through the compiler.
15251 wl=$lt_lt_prog_compiler_wl_F77
15253 # Object file suffix (normally "o").
15254 objext="$ac_objext"
15256 # Old archive suffix (normally "a").
15259 # Shared library suffix (normally ".so").
15260 shrext_cmds='$shrext_cmds'
15262 # Executable file suffix (normally "").
15265 # Additional compiler flags for building library objects.
15266 pic_flag=$lt_lt_prog_compiler_pic_F77
15269 # What is the maximum length of a command?
15270 max_cmd_len=$lt_cv_sys_max_cmd_len
15272 # Does compiler simultaneously support -c and -o options?
15273 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15275 # Must we lock files when doing compilation ?
15276 need_locks=$lt_need_locks
15278 # Do we need the lib prefix for modules?
15279 need_lib_prefix=$need_lib_prefix
15281 # Do we need a version for libraries?
15282 need_version=$need_version
15284 # Whether dlopen is supported.
15285 dlopen_support=$enable_dlopen
15287 # Whether dlopen of programs is supported.
15288 dlopen_self=$enable_dlopen_self
15290 # Whether dlopen of statically linked programs is supported.
15291 dlopen_self_static=$enable_dlopen_self_static
15293 # Compiler flag to prevent dynamic linking.
15294 link_static_flag=$lt_lt_prog_compiler_static_F77
15296 # Compiler flag to turn off builtin functions.
15297 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15299 # Compiler flag to allow reflexive dlopens.
15300 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15302 # Compiler flag to generate shared objects directly from archives.
15303 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15305 # Compiler flag to generate thread-safe objects.
15306 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15308 # Library versioning type.
15309 version_type=$version_type
15311 # Format of library name prefix.
15312 libname_spec=$lt_libname_spec
15314 # List of archive names. First name is the real one, the rest are links.
15315 # The last name is the one that the linker finds with -lNAME.
15316 library_names_spec=$lt_library_names_spec
15318 # The coded name of the library, if different from the real name.
15319 soname_spec=$lt_soname_spec
15321 # Commands used to build and install an old-style archive.
15323 old_archive_cmds=$lt_old_archive_cmds_F77
15324 old_postinstall_cmds=$lt_old_postinstall_cmds
15325 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15327 # Create an old-style archive from a shared archive.
15328 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15330 # Create a temporary old-style archive to link instead of a shared archive.
15331 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15333 # Commands used to build and install a shared archive.
15334 archive_cmds=$lt_archive_cmds_F77
15335 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15336 postinstall_cmds=$lt_postinstall_cmds
15337 postuninstall_cmds=$lt_postuninstall_cmds
15339 # Commands used to build a loadable module (assumed same as above if empty)
15340 module_cmds=$lt_module_cmds_F77
15341 module_expsym_cmds=$lt_module_expsym_cmds_F77
15343 # Commands to strip libraries.
15344 old_striplib=$lt_old_striplib
15345 striplib=$lt_striplib
15347 # Dependencies to place before the objects being linked to create a
15349 predep_objects=$lt_predep_objects_F77
15351 # Dependencies to place after the objects being linked to create a
15353 postdep_objects=$lt_postdep_objects_F77
15355 # Dependencies to place before the objects being linked to create a
15357 predeps=$lt_predeps_F77
15359 # Dependencies to place after the objects being linked to create a
15361 postdeps=$lt_postdeps_F77
15363 # The library search path used internally by the compiler when linking
15364 # a shared library.
15365 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15367 # Method to check whether dependent libraries are shared objects.
15368 deplibs_check_method=$lt_deplibs_check_method
15370 # Command to use when deplibs_check_method == file_magic.
15371 file_magic_cmd=$lt_file_magic_cmd
15373 # Flag that allows shared libraries with undefined symbols to be built.
15374 allow_undefined_flag=$lt_allow_undefined_flag_F77
15376 # Flag that forces no undefined symbols.
15377 no_undefined_flag=$lt_no_undefined_flag_F77
15379 # Commands used to finish a libtool library installation in a directory.
15380 finish_cmds=$lt_finish_cmds
15382 # Same as above, but a single script fragment to be evaled but not shown.
15383 finish_eval=$lt_finish_eval
15385 # Take the output of nm and produce a listing of raw symbols and C names.
15386 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15388 # Transform the output of nm in a proper C declaration
15389 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15391 # Transform the output of nm in a C name address pair
15392 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15394 # This is the shared library runtime path variable.
15395 runpath_var=$runpath_var
15397 # This is the shared library path variable.
15398 shlibpath_var=$shlibpath_var
15400 # Is shlibpath searched before the hard-coded library search path?
15401 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15403 # How to hardcode a shared library path into an executable.
15404 hardcode_action=$hardcode_action_F77
15406 # Whether we should hardcode library paths into libraries.
15407 hardcode_into_libs=$hardcode_into_libs
15409 # Flag to hardcode \$libdir into a binary during linking.
15410 # This must work even if \$libdir does not exist.
15411 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15413 # If ld is used when linking, flag to hardcode \$libdir into
15414 # a binary during linking. This must work even if \$libdir does
15416 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15418 # Whether we need a single -rpath flag with a separated argument.
15419 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15421 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15422 # resulting binary.
15423 hardcode_direct=$hardcode_direct_F77
15425 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15426 # resulting binary.
15427 hardcode_minus_L=$hardcode_minus_L_F77
15429 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15430 # the resulting binary.
15431 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15433 # Set to yes if building a shared library automatically hardcodes DIR into the library
15434 # and all subsequent libraries and executables linked against it.
15435 hardcode_automatic=$hardcode_automatic_F77
15437 # Variables whose values should be saved in libtool wrapper scripts and
15438 # restored at relink time.
15439 variables_saved_for_relink="$variables_saved_for_relink"
15441 # Whether libtool must link a program against all its dependency libraries.
15442 link_all_deplibs=$link_all_deplibs_F77
15444 # Compile-time system search path for libraries
15445 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15447 # Run-time system search path for libraries
15448 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15450 # Fix the shell variable \$srcfile for the compiler.
15451 fix_srcfile_path="$fix_srcfile_path_F77"
15453 # Set to yes if exported symbols are required.
15454 always_export_symbols=$always_export_symbols_F77
15456 # The commands to list exported symbols.
15457 export_symbols_cmds=$lt_export_symbols_cmds_F77
15459 # The commands to extract the exported symbol list from a shared archive.
15460 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15462 # Symbols that should not be listed in the preloaded symbols.
15463 exclude_expsyms=$lt_exclude_expsyms_F77
15465 # Symbols that must always be exported.
15466 include_expsyms=$lt_include_expsyms_F77
15468 # ### END LIBTOOL TAG CONFIG: $tagname
15474 # If there is no Makefile yet, we rely on a make rule to execute
15475 # `config.status --recheck' to rerun these tests and create the
15476 # libtool script then.
15477 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15478 if test -f "$ltmain_in"; then
15479 test -f Makefile && make "$ltmain"
15485 ac_cpp='$CPP $CPPFLAGS'
15486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15498 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15502 # Source file extension for Java test sources.
15505 # Object file extension for compiled Java test sources.
15509 # Code to be used in simple compile tests
15510 lt_simple_compile_test_code="class foo {}\n"
15512 # Code to be used in simple link tests
15513 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15515 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15517 # If no C compiler was specified, use CC.
15520 # Allow CC to be a program name with arguments.
15524 # Allow CC to be a program name with arguments.
15530 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15531 archive_cmds_need_lc_GCJ=no
15534 lt_prog_compiler_no_builtin_flag_GCJ=
15536 if test "$GCC" = yes; then
15537 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15540 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15541 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15542 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15545 lt_cv_prog_compiler_rtti_exceptions=no
15546 ac_outfile=conftest.$ac_objext
15547 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15548 lt_compiler_flag="-fno-rtti -fno-exceptions"
15549 # Insert the option either (1) after the last *FLAGS variable, or
15550 # (2) before a word containing "conftest.", or (3) at the end.
15551 # Note that $ac_compile itself does not contain backslashes and begins
15552 # with a dollar sign (not a hyphen), so the echo should work correctly.
15553 # The option is referenced via a variable to avoid confusing sed.
15554 lt_compile=`echo "$ac_compile" | $SED \
15555 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15557 -e 's:$: $lt_compiler_flag:'`
15558 (eval echo "\"\$as_me:15558: $lt_compile\"" >&5)
15559 (eval "$lt_compile" 2>conftest.err)
15561 cat conftest.err >&5
15562 echo "$as_me:15562: \$? = $ac_status" >&5
15563 if (exit $ac_status) && test -s "$ac_outfile"; then
15564 # The compiler can only warn and ignore the option if not recognized
15565 # So say no if there are warnings
15566 if test ! -s conftest.err; then
15567 lt_cv_prog_compiler_rtti_exceptions=yes
15573 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15574 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15576 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15577 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15584 lt_prog_compiler_wl_GCJ=
15585 lt_prog_compiler_pic_GCJ=
15586 lt_prog_compiler_static_GCJ=
15588 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15589 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15591 if test "$GCC" = yes; then
15592 lt_prog_compiler_wl_GCJ='-Wl,'
15593 lt_prog_compiler_static_GCJ='-static'
15597 # All AIX code is PIC.
15598 if test "$host_cpu" = ia64; then
15599 # AIX 5 now supports IA64 processor
15600 lt_prog_compiler_static_GCJ='-Bstatic'
15605 # FIXME: we need at least 68020 code to build shared libraries, but
15606 # adding the `-m68020' flag to GCC prevents building anything better,
15608 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15611 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15612 # PIC is the default for these OSes.
15615 mingw* | pw32* | os2*)
15616 # This hack is so that the source file can tell whether it is being
15617 # built for inclusion in a dll (and should export symbols for example).
15618 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15621 darwin* | rhapsody*)
15622 # PIC is the default on this platform
15623 # Common symbols not allowed in MH_DYLIB files
15624 lt_prog_compiler_pic_GCJ='-fno-common'
15628 # Just because we use GCC doesn't mean we suddenly get shared libraries
15629 # on systems that don't support them.
15630 lt_prog_compiler_can_build_shared_GCJ=no
15635 if test -d /usr/nec; then
15636 lt_prog_compiler_pic_GCJ=-Kconform_pic
15641 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15642 # not for PA HP-UX.
15643 case "$host_cpu" in
15648 lt_prog_compiler_pic_GCJ='-fPIC'
15654 lt_prog_compiler_pic_GCJ='-fPIC'
15658 # PORTME Check for flag to pass linker flags through the system compiler.
15661 lt_prog_compiler_wl_GCJ='-Wl,'
15662 if test "$host_cpu" = ia64; then
15663 # AIX 5 now supports IA64 processor
15664 lt_prog_compiler_static_GCJ='-Bstatic'
15666 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15670 mingw* | pw32* | os2*)
15671 # This hack is so that the source file can tell whether it is being
15672 # built for inclusion in a dll (and should export symbols for example).
15673 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15676 hpux9* | hpux10* | hpux11*)
15677 lt_prog_compiler_wl_GCJ='-Wl,'
15678 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15679 # not for PA HP-UX.
15680 case "$host_cpu" in
15685 lt_prog_compiler_pic_GCJ='+Z'
15688 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15689 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15692 irix5* | irix6* | nonstopux*)
15693 lt_prog_compiler_wl_GCJ='-Wl,'
15694 # PIC (with -KPIC) is the default.
15695 lt_prog_compiler_static_GCJ='-non_shared'
15699 lt_prog_compiler_pic_GCJ='-KPIC'
15700 lt_prog_compiler_static_GCJ='-Bstatic'
15706 lt_prog_compiler_wl_GCJ='-Wl,'
15707 lt_prog_compiler_pic_GCJ='-KPIC'
15708 lt_prog_compiler_static_GCJ='-static'
15711 lt_prog_compiler_wl_GCJ='-Wl,'
15712 # All Alpha code is PIC.
15713 lt_prog_compiler_static_GCJ='-non_shared'
15718 osf3* | osf4* | osf5*)
15719 lt_prog_compiler_wl_GCJ='-Wl,'
15720 # All OSF/1 code is PIC.
15721 lt_prog_compiler_static_GCJ='-non_shared'
15725 lt_prog_compiler_pic_GCJ='-Kpic'
15726 lt_prog_compiler_static_GCJ='-dn'
15730 lt_prog_compiler_wl_GCJ='-Wl,'
15731 lt_prog_compiler_pic_GCJ='-KPIC'
15732 lt_prog_compiler_static_GCJ='-Bstatic'
15736 lt_prog_compiler_wl_GCJ='-Qoption ld '
15737 lt_prog_compiler_pic_GCJ='-PIC'
15738 lt_prog_compiler_static_GCJ='-Bstatic'
15741 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15742 lt_prog_compiler_wl_GCJ='-Wl,'
15743 lt_prog_compiler_pic_GCJ='-KPIC'
15744 lt_prog_compiler_static_GCJ='-Bstatic'
15748 if test -d /usr/nec ;then
15749 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15750 lt_prog_compiler_static_GCJ='-Bstatic'
15755 lt_prog_compiler_pic_GCJ='-pic'
15756 lt_prog_compiler_static_GCJ='-Bstatic'
15760 lt_prog_compiler_can_build_shared_GCJ=no
15765 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15766 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15769 # Check to make sure the PIC flag actually works.
15771 if test -n "$lt_prog_compiler_pic_GCJ"; then
15773 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15774 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15775 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15776 echo $ECHO_N "(cached) $ECHO_C" >&6
15778 lt_prog_compiler_pic_works_GCJ=no
15779 ac_outfile=conftest.$ac_objext
15780 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15781 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15782 # Insert the option either (1) after the last *FLAGS variable, or
15783 # (2) before a word containing "conftest.", or (3) at the end.
15784 # Note that $ac_compile itself does not contain backslashes and begins
15785 # with a dollar sign (not a hyphen), so the echo should work correctly.
15786 # The option is referenced via a variable to avoid confusing sed.
15787 lt_compile=`echo "$ac_compile" | $SED \
15788 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15790 -e 's:$: $lt_compiler_flag:'`
15791 (eval echo "\"\$as_me:15791: $lt_compile\"" >&5)
15792 (eval "$lt_compile" 2>conftest.err)
15794 cat conftest.err >&5
15795 echo "$as_me:15795: \$? = $ac_status" >&5
15796 if (exit $ac_status) && test -s "$ac_outfile"; then
15797 # The compiler can only warn and ignore the option if not recognized
15798 # So say no if there are warnings
15799 if test ! -s conftest.err; then
15800 lt_prog_compiler_pic_works_GCJ=yes
15806 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15807 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15809 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15810 case $lt_prog_compiler_pic_GCJ in
15812 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15815 lt_prog_compiler_pic_GCJ=
15816 lt_prog_compiler_can_build_shared_GCJ=no
15821 # For platforms which do not support PIC, -DPIC is meaningless:
15823 lt_prog_compiler_pic_GCJ=
15826 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15830 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15831 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15832 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15833 echo $ECHO_N "(cached) $ECHO_C" >&6
15835 lt_cv_prog_compiler_c_o_GCJ=no
15836 $rm -r conftest 2>/dev/null
15840 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15842 lt_compiler_flag="-o out/conftest2.$ac_objext"
15843 # Insert the option either (1) after the last *FLAGS variable, or
15844 # (2) before a word containing "conftest.", or (3) at the end.
15845 # Note that $ac_compile itself does not contain backslashes and begins
15846 # with a dollar sign (not a hyphen), so the echo should work correctly.
15847 lt_compile=`echo "$ac_compile" | $SED \
15848 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15850 -e 's:$: $lt_compiler_flag:'`
15851 (eval echo "\"\$as_me:15851: $lt_compile\"" >&5)
15852 (eval "$lt_compile" 2>out/conftest.err)
15854 cat out/conftest.err >&5
15855 echo "$as_me:15855: \$? = $ac_status" >&5
15856 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15858 # The compiler can only warn and ignore the option if not recognized
15859 # So say no if there are warnings
15860 if test ! -s out/conftest.err; then
15861 lt_cv_prog_compiler_c_o_GCJ=yes
15866 # SGI C++ compiler will create directory out/ii_files/ for
15867 # template instantiation
15868 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15869 $rm out/* && rmdir out
15875 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15876 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15879 hard_links="nottested"
15880 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15881 # do not overwrite the value of need_locks provided by the user
15882 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15883 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15886 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15888 ln conftest.a conftest.b 2>&5 || hard_links=no
15889 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15890 echo "$as_me:$LINENO: result: $hard_links" >&5
15891 echo "${ECHO_T}$hard_links" >&6
15892 if test "$hard_links" = no; then
15893 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15894 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15901 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15902 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15905 allow_undefined_flag_GCJ=
15906 enable_shared_with_static_runtimes_GCJ=no
15908 archive_expsym_cmds_GCJ=
15909 old_archive_From_new_cmds_GCJ=
15910 old_archive_from_expsyms_cmds_GCJ=
15911 export_dynamic_flag_spec_GCJ=
15912 whole_archive_flag_spec_GCJ=
15913 thread_safe_flag_spec_GCJ=
15914 hardcode_libdir_flag_spec_GCJ=
15915 hardcode_libdir_flag_spec_ld_GCJ=
15916 hardcode_libdir_separator_GCJ=
15917 hardcode_direct_GCJ=no
15918 hardcode_minus_L_GCJ=no
15919 hardcode_shlibpath_var_GCJ=unsupported
15920 link_all_deplibs_GCJ=unknown
15921 hardcode_automatic_GCJ=no
15923 module_expsym_cmds_GCJ=
15924 always_export_symbols_GCJ=no
15925 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15926 # include_expsyms should be a list of space-separated symbols to be *always*
15927 # included in the symbol list
15928 include_expsyms_GCJ=
15929 # exclude_expsyms can be an extended regexp of symbols to exclude
15930 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15931 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15932 # as well as any symbol that contains `d'.
15933 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15934 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15935 # platforms (ab)use it in PIC code, but their linkers get confused if
15936 # the symbol is explicitly referenced. Since portable code cannot
15937 # rely on this symbol name, it's probably fine to never include it in
15938 # preloaded symbol tables.
15939 extract_expsyms_cmds=
15942 cygwin* | mingw* | pw32*)
15943 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15944 # When not using gcc, we currently assume that we are using
15945 # Microsoft Visual C++.
15946 if test "$GCC" != yes; then
15956 if test "$with_gnu_ld" = yes; then
15957 # If archive_cmds runs LD, not CC, wlarc should be empty
15960 # See if GNU ld supports shared libraries.
15962 aix3* | aix4* | aix5*)
15963 # On AIX/PPC, the GNU linker is very broken
15964 if test "$host_cpu" != ia64; then
15968 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15969 *** to be unable to reliably create shared libraries on AIX.
15970 *** Therefore, libtool is disabling shared libraries support. If you
15971 *** really care for shared libraries, you may want to modify your PATH
15972 *** so that a non-GNU linker is found, and then restart.
15979 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)'
15980 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15981 hardcode_minus_L_GCJ=yes
15983 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15984 # that the semantics of dynamic libraries on AmigaOS, at least up
15985 # to version 4, is to share data among multiple programs linked
15986 # with the same dynamic library. Since this doesn't match the
15987 # behavior of shared libraries on other platforms, we can't use
15993 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15994 allow_undefined_flag_GCJ=unsupported
15995 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15996 # support --undefined. This deserves some investigation. FIXME
15997 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16003 cygwin* | mingw* | pw32*)
16004 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16005 # as there is no search path for DLLs.
16006 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16007 allow_undefined_flag_GCJ=unsupported
16008 always_export_symbols_GCJ=no
16009 enable_shared_with_static_runtimes_GCJ=yes
16010 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16012 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16013 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16014 # If the export-symbols file already is a .def file (1st line
16015 # is EXPORTS), use it as is; otherwise, prepend...
16016 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16017 cp $export_symbols $output_objdir/$soname.def;
16019 echo EXPORTS > $output_objdir/$soname.def;
16020 cat $export_symbols >> $output_objdir/$soname.def;
16022 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16030 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16033 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16034 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16039 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16043 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16044 *** create shared libraries on Solaris systems. Therefore, libtool
16045 *** is disabling shared libraries support. We urge you to upgrade GNU
16046 *** binutils to release 2.9.1 or newer. Another option is to modify
16047 *** your PATH or compiler configuration so that the native linker is
16048 *** used, and then restart.
16051 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16052 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16053 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16060 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16062 hardcode_direct_GCJ=yes
16063 hardcode_shlibpath_var_GCJ=no
16067 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16068 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16069 archive_cmds_GCJ="$tmp_archive_cmds"
16070 supports_anon_versioning=no
16071 case `$LD -v 2>/dev/null` in
16072 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16073 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16074 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16075 *\ 2.11.*) ;; # other 2.11 versions
16076 *) supports_anon_versioning=yes ;;
16078 if test $supports_anon_versioning = yes; then
16079 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16080 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16081 $echo "local: *; };" >> $output_objdir/$libname.ver~
16082 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16084 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16092 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16093 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16094 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16101 if test "$ld_shlibs_GCJ" = yes; then
16102 runpath_var=LD_RUN_PATH
16103 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16104 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16105 # ancient GNU ld didn't support --whole-archive et. al.
16106 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16107 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16109 whole_archive_flag_spec_GCJ=
16113 # PORTME fill in a description of your system's linker (not GNU ld)
16116 allow_undefined_flag_GCJ=unsupported
16117 always_export_symbols_GCJ=yes
16118 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'
16119 # Note: this linker hardcodes the directories in LIBPATH if there
16120 # are no directories specified by -L.
16121 hardcode_minus_L_GCJ=yes
16122 if test "$GCC" = yes && test -z "$link_static_flag"; then
16123 # Neither direct hardcoding nor static linking is supported with a
16125 hardcode_direct_GCJ=unsupported
16130 if test "$host_cpu" = ia64; then
16131 # On IA64, the linker does run time linking by default, so we don't
16132 # have to do anything special.
16133 aix_use_runtimelinking=no
16134 exp_sym_flag='-Bexport'
16137 # If we're using GNU nm, then we don't want the "-C" option.
16138 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16139 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16140 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'
16142 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'
16144 aix_use_runtimelinking=no
16146 # Test if we are trying to use run time linking or normal
16147 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16148 # need to do runtime linking.
16149 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16150 for ld_flag in $LDFLAGS; do
16151 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16152 aix_use_runtimelinking=yes
16158 exp_sym_flag='-bexport'
16159 no_entry_flag='-bnoentry'
16162 # When large executables or shared objects are built, AIX ld can
16163 # have problems creating the table of contents. If linking a library
16164 # or program results in "error TOC overflow" add -mminimal-toc to
16165 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16166 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16168 archive_cmds_GCJ=''
16169 hardcode_direct_GCJ=yes
16170 hardcode_libdir_separator_GCJ=':'
16171 link_all_deplibs_GCJ=yes
16173 if test "$GCC" = yes; then
16174 case $host_os in aix4.012|aix4.012.*)
16175 # We only want to do this on AIX 4.2 and lower, the check
16176 # below for broken collect2 doesn't work under 4.3+
16177 collect2name=`${CC} -print-prog-name=collect2`
16178 if test -f "$collect2name" && \
16179 strings "$collect2name" | grep resolve_lib_name >/dev/null
16181 # We have reworked collect2
16182 hardcode_direct_GCJ=yes
16184 # We have old collect2
16185 hardcode_direct_GCJ=unsupported
16186 # It fails to find uninstalled libraries when the uninstalled
16187 # path is not listed in the libpath. Setting hardcode_minus_L
16188 # to unsupported forces relinking
16189 hardcode_minus_L_GCJ=yes
16190 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16191 hardcode_libdir_separator_GCJ=
16194 shared_flag='-shared'
16197 if test "$host_cpu" = ia64; then
16198 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16199 # chokes on -Wl,-G. The following line is correct:
16202 if test "$aix_use_runtimelinking" = yes; then
16203 shared_flag='${wl}-G'
16205 shared_flag='${wl}-bM:SRE'
16210 # It seems that -bexpall does not export symbols beginning with
16211 # underscore (_), so it is better to generate a list of symbols to export.
16212 always_export_symbols_GCJ=yes
16213 if test "$aix_use_runtimelinking" = yes; then
16214 # Warning - without using the other runtime loading flags (-brtl),
16215 # -berok will link without error, but may produce a broken library.
16216 allow_undefined_flag_GCJ='-berok'
16217 # Determine the default libpath from the value encoded in an empty executable.
16218 cat >conftest.$ac_ext <<_ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16233 rm -f conftest.$ac_objext conftest$ac_exeext
16234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16235 (eval $ac_link) 2>conftest.er1
16237 grep -v '^ *+' conftest.er1 >conftest.err
16239 cat conftest.err >&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } &&
16242 { ac_try='test -z "$ac_c_werror_flag"
16243 || test ! -s conftest.err'
16244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245 (eval $ac_try) 2>&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; } &&
16249 { ac_try='test -s conftest$ac_exeext'
16250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251 (eval $ac_try) 2>&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; }; then
16256 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16258 # Check for a 64-bit object if we didn't find anything.
16259 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; }
16262 echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16266 rm -f conftest.err conftest.$ac_objext \
16267 conftest$ac_exeext conftest.$ac_ext
16268 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16270 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16271 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"
16273 if test "$host_cpu" = ia64; then
16274 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16275 allow_undefined_flag_GCJ="-z nodefs"
16276 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"
16278 # Determine the default libpath from the value encoded in an empty executable.
16279 cat >conftest.$ac_ext <<_ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h. */
16294 rm -f conftest.$ac_objext conftest$ac_exeext
16295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16296 (eval $ac_link) 2>conftest.er1
16298 grep -v '^ *+' conftest.er1 >conftest.err
16300 cat conftest.err >&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); } &&
16303 { ac_try='test -z "$ac_c_werror_flag"
16304 || test ! -s conftest.err'
16305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306 (eval $ac_try) 2>&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); }; } &&
16310 { ac_try='test -s conftest$ac_exeext'
16311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312 (eval $ac_try) 2>&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; }; then
16317 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16319 # Check for a 64-bit object if we didn't find anything.
16320 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; }
16323 echo "$as_me: failed program was:" >&5
16324 sed 's/^/| /' conftest.$ac_ext >&5
16327 rm -f conftest.err conftest.$ac_objext \
16328 conftest$ac_exeext conftest.$ac_ext
16329 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16331 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16332 # Warning - without using the other run time loading flags,
16333 # -berok will link without error, but may produce a broken library.
16334 no_undefined_flag_GCJ=' ${wl}-bernotok'
16335 allow_undefined_flag_GCJ=' ${wl}-berok'
16336 # -bexpall does not export symbols beginning with underscore (_)
16337 always_export_symbols_GCJ=yes
16338 # Exported symbols can be pulled into shared objects from archives
16339 whole_archive_flag_spec_GCJ=' '
16340 archive_cmds_need_lc_GCJ=yes
16341 # This is similar to how AIX traditionally builds it's shared libraries.
16342 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'
16348 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)'
16349 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16350 hardcode_minus_L_GCJ=yes
16351 # see comment about different semantics on the GNU ld section
16356 export_dynamic_flag_spec_GCJ=-rdynamic
16359 cygwin* | mingw* | pw32*)
16360 # When not using gcc, we currently assume that we are using
16361 # Microsoft Visual C++.
16362 # hardcode_libdir_flag_spec is actually meaningless, as there is
16363 # no search path for DLLs.
16364 hardcode_libdir_flag_spec_GCJ=' '
16365 allow_undefined_flag_GCJ=unsupported
16366 # Tell ltmain to make .lib files, not .a files.
16368 # Tell ltmain to make .dll files, not .so files.
16370 # FIXME: Setting linknames here is a bad hack.
16371 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16372 # The linker will automatically build a .lib file if we build a DLL.
16373 old_archive_From_new_cmds_GCJ='true'
16374 # FIXME: Should let the user specify the lib program.
16375 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16376 fix_srcfile_path='`cygpath -w "$srcfile"`'
16377 enable_shared_with_static_runtimes_GCJ=yes
16380 darwin* | rhapsody*)
16381 if test "$GXX" = yes ; then
16382 archive_cmds_need_lc_GCJ=no
16384 rhapsody* | darwin1.[012])
16385 allow_undefined_flag_GCJ='-undefined suppress'
16388 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16389 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16391 case ${MACOSX_DEPLOYMENT_TARGET} in
16393 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16396 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16402 lt_int_apple_cc_single_mod=no
16403 output_verbose_link_cmd='echo'
16404 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16405 lt_int_apple_cc_single_mod=yes
16407 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16408 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16410 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'
16412 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16413 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16414 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16415 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}'
16417 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}'
16419 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}'
16420 hardcode_direct_GCJ=no
16421 hardcode_automatic_GCJ=yes
16422 hardcode_shlibpath_var_GCJ=unsupported
16423 whole_archive_flag_spec_GCJ='-all_load $convenience'
16424 link_all_deplibs_GCJ=yes
16431 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16432 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16433 hardcode_shlibpath_var_GCJ=no
16440 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16441 # support. Future versions do this automatically, but an explicit c++rt0.o
16442 # does not break anything, and helps significantly (at the cost of a little
16445 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16446 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16447 hardcode_direct_GCJ=yes
16448 hardcode_shlibpath_var_GCJ=no
16451 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16453 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16454 hardcode_direct_GCJ=yes
16455 hardcode_minus_L_GCJ=yes
16456 hardcode_shlibpath_var_GCJ=no
16459 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16460 freebsd* | kfreebsd*-gnu)
16461 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16462 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16463 hardcode_direct_GCJ=yes
16464 hardcode_shlibpath_var_GCJ=no
16468 if test "$GCC" = yes; then
16469 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'
16471 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'
16473 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16474 hardcode_libdir_separator_GCJ=:
16475 hardcode_direct_GCJ=yes
16477 # hardcode_minus_L: Not really in the search PATH,
16478 # but as the default location of the library.
16479 hardcode_minus_L_GCJ=yes
16480 export_dynamic_flag_spec_GCJ='${wl}-E'
16484 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16485 case "$host_cpu" in
16487 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16490 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16494 case "$host_cpu" in
16496 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16499 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16503 if test "$with_gnu_ld" = no; then
16504 case "$host_cpu" in
16506 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16507 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16508 hardcode_libdir_separator_GCJ=:
16509 hardcode_direct_GCJ=no
16510 hardcode_shlibpath_var_GCJ=no
16513 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16514 hardcode_direct_GCJ=no
16515 hardcode_shlibpath_var_GCJ=no
16517 # hardcode_minus_L: Not really in the search PATH,
16518 # but as the default location of the library.
16519 hardcode_minus_L_GCJ=yes
16522 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16523 hardcode_libdir_separator_GCJ=:
16524 hardcode_direct_GCJ=yes
16525 export_dynamic_flag_spec_GCJ='${wl}-E'
16527 # hardcode_minus_L: Not really in the search PATH,
16528 # but as the default location of the library.
16529 hardcode_minus_L_GCJ=yes
16535 irix5* | irix6* | nonstopux*)
16536 if test "$GCC" = yes; then
16537 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'
16539 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'
16540 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16542 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16543 hardcode_libdir_separator_GCJ=:
16544 link_all_deplibs_GCJ=yes
16548 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16549 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16551 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16553 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16554 hardcode_direct_GCJ=yes
16555 hardcode_shlibpath_var_GCJ=no
16559 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16560 hardcode_direct_GCJ=yes
16561 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16562 hardcode_libdir_separator_GCJ=:
16563 hardcode_shlibpath_var_GCJ=no
16567 hardcode_direct_GCJ=yes
16568 hardcode_shlibpath_var_GCJ=no
16569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16570 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16571 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16572 export_dynamic_flag_spec_GCJ='${wl}-E'
16575 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16576 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16577 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16580 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16581 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16588 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16589 hardcode_minus_L_GCJ=yes
16590 allow_undefined_flag_GCJ=unsupported
16591 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'
16592 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16596 if test "$GCC" = yes; then
16597 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16598 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'
16600 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16601 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'
16603 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16604 hardcode_libdir_separator_GCJ=:
16607 osf4* | osf5*) # as osf3* with the addition of -msym flag
16608 if test "$GCC" = yes; then
16609 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16610 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'
16611 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16613 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16614 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'
16615 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~
16616 $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'
16618 # Both c and cxx compiler support -rpath directly
16619 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16621 hardcode_libdir_separator_GCJ=:
16625 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16626 hardcode_shlibpath_var_GCJ=no
16627 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16628 runpath_var=LD_RUN_PATH
16629 hardcode_runpath_var=yes
16633 no_undefined_flag_GCJ=' -z text'
16634 if test "$GCC" = yes; then
16635 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16636 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16637 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16639 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16640 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16641 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16643 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16644 hardcode_shlibpath_var_GCJ=no
16646 solaris2.[0-5] | solaris2.[0-5].*) ;;
16647 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16648 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16650 link_all_deplibs_GCJ=yes
16654 if test "x$host_vendor" = xsequent; then
16655 # Use $CC to link under sequent, because it throws in some extra .o
16656 # files that make .init and .fini sections work.
16657 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16659 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16661 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16662 hardcode_direct_GCJ=yes
16663 hardcode_minus_L_GCJ=yes
16664 hardcode_shlibpath_var_GCJ=no
16668 case $host_vendor in
16670 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16671 hardcode_direct_GCJ=yes # is this really true???
16674 ## LD is ld it makes a PLAMLIB
16675 ## CC just makes a GrossModule.
16676 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16677 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16678 hardcode_direct_GCJ=no
16681 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16682 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16685 runpath_var='LD_RUN_PATH'
16686 hardcode_shlibpath_var_GCJ=no
16690 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16691 hardcode_shlibpath_var_GCJ=no
16692 export_dynamic_flag_spec_GCJ='-Bexport'
16696 if test -d /usr/nec; then
16697 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16698 hardcode_shlibpath_var_GCJ=no
16699 runpath_var=LD_RUN_PATH
16700 hardcode_runpath_var=yes
16706 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16707 hardcode_direct_GCJ=yes
16708 hardcode_minus_L_GCJ=no
16709 hardcode_shlibpath_var_GCJ=no
16710 hardcode_runpath_var=yes
16711 runpath_var=LD_RUN_PATH
16714 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16715 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16716 if test "$GCC" = yes; then
16717 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16719 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16721 runpath_var='LD_RUN_PATH'
16722 hardcode_shlibpath_var_GCJ=no
16726 no_undefined_flag_GCJ=' -z text'
16727 # $CC -shared without GNU ld will not create a library from C++
16728 # object files and a static libstdc++, better avoid it by now
16729 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16730 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16731 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16732 hardcode_libdir_flag_spec_GCJ=
16733 hardcode_shlibpath_var_GCJ=no
16734 runpath_var='LD_RUN_PATH'
16738 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16739 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16740 hardcode_shlibpath_var_GCJ=no
16749 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16750 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16751 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16753 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16754 if test "$GCC" = yes; then
16755 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16759 # Do we need to explicitly link libc?
16761 case "x$archive_cmds_need_lc_GCJ" in
16763 # Assume -lc should be added
16764 archive_cmds_need_lc_GCJ=yes
16766 if test "$enable_shared" = yes && test "$GCC" = yes; then
16767 case $archive_cmds_GCJ in
16769 # FIXME: we may have to deal with multi-command sequences.
16772 # Test whether the compiler implicitly links with -lc since on some
16773 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16774 # to ld, don't add -lc before -lgcc.
16775 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16776 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16778 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16781 (eval $ac_compile) 2>&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } 2>conftest.err; then
16787 libobjs=conftest.$ac_objext
16789 wl=$lt_prog_compiler_wl_GCJ
16795 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16796 allow_undefined_flag_GCJ=
16797 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16798 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }
16803 archive_cmds_need_lc_GCJ=no
16805 archive_cmds_need_lc_GCJ=yes
16807 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16809 cat conftest.err 1>&5
16812 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16813 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16820 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16821 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16822 library_names_spec=
16823 libname_spec='lib$name'
16827 postuninstall_cmds=
16831 shlibpath_overrides_runpath=unknown
16833 dynamic_linker="$host_os ld.so"
16834 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16835 if test "$GCC" = yes; then
16836 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16837 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16838 # if the path contains ";" then we assume it to be the separator
16839 # otherwise default to the standard path separator (i.e. ":") - it is
16840 # assumed that no part of a normal pathname contains ";" but that should
16841 # okay in the real world where ";" in dirpaths is itself problematic.
16842 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16844 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16847 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16849 need_lib_prefix=unknown
16850 hardcode_into_libs=no
16852 # when you set need_version to no, make sure it does not cause -set_version
16853 # flags to be left without arguments
16854 need_version=unknown
16859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16860 shlibpath_var=LIBPATH
16862 # AIX 3 has no versioning support, so we append a major version to the name.
16863 soname_spec='${libname}${release}${shared_ext}$major'
16870 hardcode_into_libs=yes
16871 if test "$host_cpu" = ia64; then
16872 # AIX 5 supports IA64
16873 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16874 shlibpath_var=LD_LIBRARY_PATH
16876 # With GCC up to 2.95.x, collect2 would create an import file
16877 # for dependence libraries. The import file would start with
16878 # the line `#! .'. This would cause the generated library to
16879 # depend on `.', always an invalid library. This was fixed in
16880 # development snapshots of GCC prior to 3.0.
16882 aix4 | aix4.[01] | aix4.[01].*)
16883 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16885 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16888 can_build_shared=no
16892 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16893 # soname into executable. Probably we can add versioning support to
16894 # collect2, so additional links can be useful in future.
16895 if test "$aix_use_runtimelinking" = yes; then
16896 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16897 # instead of lib<name>.a to let people know that these are not
16898 # typical AIX shared libraries.
16899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16901 # We preserve .a as extension for shared libraries through AIX4.2
16902 # and later when we are not doing run time linking.
16903 library_names_spec='${libname}${release}.a $libname.a'
16904 soname_spec='${libname}${release}${shared_ext}$major'
16906 shlibpath_var=LIBPATH
16911 library_names_spec='$libname.ixlibrary $libname.a'
16912 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16913 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'
16917 library_names_spec='${libname}${shared_ext}'
16918 dynamic_linker="$host_os ld.so"
16919 shlibpath_var=LIBRARY_PATH
16925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16926 soname_spec='${libname}${release}${shared_ext}$major'
16927 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16928 shlibpath_var=LD_LIBRARY_PATH
16929 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16930 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16931 # the default ld.so.conf also contains /usr/contrib/lib and
16932 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16933 # libtool to hard-code these into programs
16936 cygwin* | mingw* | pw32*)
16937 version_type=windows
16942 case $GCC,$host_os in
16943 yes,cygwin* | yes,mingw* | yes,pw32*)
16944 library_names_spec='$libname.dll.a'
16945 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16946 postinstall_cmds='base_file=`basename \${file}`~
16947 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16948 dldir=$destdir/`dirname \$dlpath`~
16949 test -d \$dldir || mkdir -p \$dldir~
16950 $install_prog $dir/$dlname \$dldir/$dlname'
16951 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16952 dlpath=$dir/\$dldll~
16954 shlibpath_overrides_runpath=yes
16958 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16959 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16960 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16963 # MinGW DLLs use traditional 'lib' prefix
16964 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16965 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16966 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16967 # It is most probably a Windows format PATH printed by
16968 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16969 # path with ; separators, and with drive letters. We can handle the
16970 # drive letters (cygwin fileutils understands them), so leave them,
16971 # especially as we might pass files found there to a mingw objdump,
16972 # which wouldn't understand a cygwinified path. Ahh.
16973 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16975 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16979 # pw32 DLLs use 'pw' prefix rather than 'lib'
16980 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16986 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16989 dynamic_linker='Win32 ld.exe'
16990 # FIXME: first we should search . and the directory the executable is in
16994 darwin* | rhapsody*)
16995 dynamic_linker="$host_os dyld"
16996 version_type=darwin
16999 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17000 soname_spec='${libname}${release}${major}$shared_ext'
17001 shlibpath_overrides_runpath=yes
17002 shlibpath_var=DYLD_LIBRARY_PATH
17003 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17004 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17005 if test "$GCC" = yes; then
17006 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"`
17008 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17010 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17018 soname_spec='${libname}${release}${shared_ext}$major'
17019 shlibpath_var=LD_LIBRARY_PATH
17030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17031 soname_spec='${libname}${release}${shared_ext}$major'
17032 shlibpath_var=LD_LIBRARY_PATH
17033 shlibpath_overrides_runpath=no
17034 hardcode_into_libs=yes
17035 dynamic_linker='GNU ld.so'
17039 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17040 version_type=freebsd-$objformat
17041 case $version_type in
17043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17048 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17052 shlibpath_var=LD_LIBRARY_PATH
17055 shlibpath_overrides_runpath=yes
17057 freebsd3.01* | freebsdelf3.01*)
17058 shlibpath_overrides_runpath=yes
17059 hardcode_into_libs=yes
17062 shlibpath_overrides_runpath=no
17063 hardcode_into_libs=yes
17072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17073 soname_spec='${libname}${release}${shared_ext}$major'
17074 shlibpath_var=LD_LIBRARY_PATH
17075 hardcode_into_libs=yes
17078 hpux9* | hpux10* | hpux11*)
17079 # Give a soname corresponding to the major version so that dld.sl refuses to
17080 # link against other versions.
17084 case "$host_cpu" in
17087 hardcode_into_libs=yes
17088 dynamic_linker="$host_os dld.so"
17089 shlibpath_var=LD_LIBRARY_PATH
17090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092 soname_spec='${libname}${release}${shared_ext}$major'
17093 if test "X$HPUX_IA64_MODE" = X32; then
17094 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17096 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17098 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17102 hardcode_into_libs=yes
17103 dynamic_linker="$host_os dld.sl"
17104 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17107 soname_spec='${libname}${release}${shared_ext}$major'
17108 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17113 dynamic_linker="$host_os dld.sl"
17114 shlibpath_var=SHLIB_PATH
17115 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17117 soname_spec='${libname}${release}${shared_ext}$major'
17120 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17121 postinstall_cmds='chmod 555 $lib'
17124 irix5* | irix6* | nonstopux*)
17126 nonstopux*) version_type=nonstopux ;;
17128 if test "$lt_cv_prog_gnu_ld" = yes; then
17136 soname_spec='${libname}${release}${shared_ext}$major'
17137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17139 irix5* | nonstopux*)
17140 libsuff= shlibsuff=
17143 case $LD in # libtool.m4 will add one of these switches to LD
17144 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17145 libsuff= shlibsuff= libmagic=32-bit;;
17146 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17147 libsuff=32 shlibsuff=N32 libmagic=N32;;
17148 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17149 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17150 *) libsuff= shlibsuff= libmagic=never-match;;
17154 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17155 shlibpath_overrides_runpath=no
17156 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17157 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17158 hardcode_into_libs=yes
17161 # No shared lib support for Linux oldld, aout, or coff.
17162 linux*oldld* | linux*aout* | linux*coff*)
17166 # This must be Linux ELF.
17171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17172 soname_spec='${libname}${release}${shared_ext}$major'
17173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17174 shlibpath_var=LD_LIBRARY_PATH
17175 shlibpath_overrides_runpath=no
17176 # This implies no fast_install, which is unacceptable.
17177 # Some rework will be needed to allow for fast_install
17178 # before this can be enabled.
17179 hardcode_into_libs=yes
17181 # find out which ABI we are using
17183 case "$host_cpu" in
17184 x86_64*|s390x*|powerpc64*)
17185 echo '#line 17185 "configure"' > conftest.$ac_ext
17186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17187 (eval $ac_compile) 2>&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; then
17191 case `/usr/bin/file conftest.$ac_objext` in
17194 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17202 # Append ld.so.conf contents to the search path
17203 if test -f /etc/ld.so.conf; then
17204 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17205 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17208 # We used to test for /lib/ld.so.1 and disable shared libraries on
17209 # powerpc, because MkLinux only supported shared libraries with the
17210 # GNU dynamic linker. Since this was broken with cross compilers,
17211 # most powerpc-linux boxes support dynamic linking these days and
17212 # people can always --disable-shared, the test was removed, and we
17213 # assume the GNU/Linux dynamic linker is in use.
17214 dynamic_linker='GNU/Linux ld.so'
17221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17222 soname_spec='${libname}${release}${shared_ext}$major'
17223 shlibpath_var=LD_LIBRARY_PATH
17224 shlibpath_overrides_runpath=no
17225 hardcode_into_libs=yes
17226 dynamic_linker='GNU ld.so'
17233 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17236 dynamic_linker='NetBSD (a.out) ld.so'
17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17239 soname_spec='${libname}${release}${shared_ext}$major'
17240 dynamic_linker='NetBSD ld.elf_so'
17242 shlibpath_var=LD_LIBRARY_PATH
17243 shlibpath_overrides_runpath=yes
17244 hardcode_into_libs=yes
17249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17250 shlibpath_var=LD_LIBRARY_PATH
17251 shlibpath_overrides_runpath=yes
17258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17259 soname_spec='${libname}${release}${shared_ext}$major'
17260 shlibpath_var=LD_LIBRARY_PATH
17261 shlibpath_overrides_runpath=yes
17268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17270 shlibpath_var=LD_LIBRARY_PATH
17271 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17273 openbsd2.[89] | openbsd2.[89].*)
17274 shlibpath_overrides_runpath=no
17277 shlibpath_overrides_runpath=yes
17281 shlibpath_overrides_runpath=yes
17286 libname_spec='$name'
17289 library_names_spec='$libname${shared_ext} $libname.a'
17290 dynamic_linker='OS/2 ld.exe'
17291 shlibpath_var=LIBPATH
17294 osf3* | osf4* | osf5*)
17298 soname_spec='${libname}${release}${shared_ext}$major'
17299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17300 shlibpath_var=LD_LIBRARY_PATH
17301 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17302 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17307 soname_spec='${libname}${release}${shared_ext}$major'
17308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17309 shlibpath_var=LD_LIBRARY_PATH
17316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17317 soname_spec='${libname}${release}${shared_ext}$major'
17318 shlibpath_var=LD_LIBRARY_PATH
17319 shlibpath_overrides_runpath=yes
17320 hardcode_into_libs=yes
17321 # ldd complains unless libraries are executable
17322 postinstall_cmds='chmod +x $lib'
17327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17328 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17329 shlibpath_var=LD_LIBRARY_PATH
17330 shlibpath_overrides_runpath=yes
17331 if test "$with_gnu_ld" = yes; then
17337 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340 soname_spec='${libname}${release}${shared_ext}$major'
17341 shlibpath_var=LD_LIBRARY_PATH
17342 case $host_vendor in
17344 shlibpath_overrides_runpath=no
17346 export_dynamic_flag_spec='${wl}-Blargedynsym'
17347 runpath_var=LD_RUN_PATH
17355 shlibpath_overrides_runpath=no
17356 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17362 if test -d /usr/nec ;then
17364 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17365 soname_spec='$libname${shared_ext}.$major'
17366 shlibpath_var=LD_LIBRARY_PATH
17372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17373 soname_spec='${libname}${release}${shared_ext}$major'
17374 shlibpath_var=LD_LIBRARY_PATH
17381 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17382 echo "${ECHO_T}$dynamic_linker" >&6
17383 test "$dynamic_linker" = no && can_build_shared=no
17385 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17386 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17387 hardcode_action_GCJ=
17388 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17389 test -n "$runpath_var GCJ" || \
17390 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17392 # We can hardcode non-existant directories.
17393 if test "$hardcode_direct_GCJ" != no &&
17394 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17395 # have to relink, otherwise we might link with an installed library
17396 # when we should be linking with a yet-to-be-installed one
17397 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17398 test "$hardcode_minus_L_GCJ" != no; then
17399 # Linking always hardcodes the temporary library directory.
17400 hardcode_action_GCJ=relink
17402 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17403 hardcode_action_GCJ=immediate
17406 # We cannot hardcode anything, or else we can only hardcode existing
17408 hardcode_action_GCJ=unsupported
17410 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17411 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17413 if test "$hardcode_action_GCJ" = relink; then
17414 # Fast installation is not supported
17415 enable_fast_install=no
17416 elif test "$shlibpath_overrides_runpath" = yes ||
17417 test "$enable_shared" = no; then
17418 # Fast installation is not necessary
17419 enable_fast_install=needless
17424 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17425 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17426 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17427 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17428 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17429 echo "$as_me:$LINENO: result: yes" >&5
17430 echo "${ECHO_T}yes" >&6
17432 # FIXME - insert some real tests, host_os isn't really good enough
17435 if test -n "$STRIP" ; then
17436 striplib="$STRIP -x"
17437 echo "$as_me:$LINENO: result: yes" >&5
17438 echo "${ECHO_T}yes" >&6
17440 echo "$as_me:$LINENO: result: no" >&5
17441 echo "${ECHO_T}no" >&6
17445 echo "$as_me:$LINENO: result: no" >&5
17446 echo "${ECHO_T}no" >&6
17451 if test "x$enable_dlopen" != xyes; then
17452 enable_dlopen=unknown
17453 enable_dlopen_self=unknown
17454 enable_dlopen_self_static=unknown
17461 lt_cv_dlopen="load_add_on"
17463 lt_cv_dlopen_self=yes
17467 lt_cv_dlopen="LoadLibrary"
17472 lt_cv_dlopen="dlopen"
17477 # if libdl is installed we need to link against it
17478 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17479 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17480 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17481 echo $ECHO_N "(cached) $ECHO_C" >&6
17483 ac_check_lib_save_LIBS=$LIBS
17485 cat >conftest.$ac_ext <<_ACEOF
17488 cat confdefs.h >>conftest.$ac_ext
17489 cat >>conftest.$ac_ext <<_ACEOF
17490 /* end confdefs.h. */
17492 /* Override any gcc2 internal prototype to avoid an error. */
17496 /* We use char because int might match the return type of a gcc2
17497 builtin and then its argument prototype would still apply. */
17507 rm -f conftest.$ac_objext conftest$ac_exeext
17508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17509 (eval $ac_link) 2>conftest.er1
17511 grep -v '^ *+' conftest.er1 >conftest.err
17513 cat conftest.err >&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); } &&
17516 { ac_try='test -z "$ac_c_werror_flag"
17517 || test ! -s conftest.err'
17518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17519 (eval $ac_try) 2>&5
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; } &&
17523 { ac_try='test -s conftest$ac_exeext'
17524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17525 (eval $ac_try) 2>&5
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); }; }; then
17529 ac_cv_lib_dl_dlopen=yes
17531 echo "$as_me: failed program was:" >&5
17532 sed 's/^/| /' conftest.$ac_ext >&5
17534 ac_cv_lib_dl_dlopen=no
17536 rm -f conftest.err conftest.$ac_objext \
17537 conftest$ac_exeext conftest.$ac_ext
17538 LIBS=$ac_check_lib_save_LIBS
17540 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17541 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17542 if test $ac_cv_lib_dl_dlopen = yes; then
17543 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17546 lt_cv_dlopen="dyld"
17548 lt_cv_dlopen_self=yes
17555 echo "$as_me:$LINENO: checking for shl_load" >&5
17556 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17557 if test "${ac_cv_func_shl_load+set}" = set; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17560 cat >conftest.$ac_ext <<_ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17566 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17568 #define shl_load innocuous_shl_load
17570 /* System header to define __stub macros and hopefully few prototypes,
17571 which can conflict with char shl_load (); below.
17572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17573 <limits.h> exists even on freestanding compilers. */
17576 # include <limits.h>
17578 # include <assert.h>
17583 /* Override any gcc2 internal prototype to avoid an error. */
17588 /* We use char because int might match the return type of a gcc2
17589 builtin and then its argument prototype would still apply. */
17591 /* The GNU C library defines this for functions which it implements
17592 to always fail with ENOSYS. Some functions are actually named
17593 something starting with __ and the normal name is an alias. */
17594 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17597 char (*f) () = shl_load;
17606 return f != shl_load;
17611 rm -f conftest.$ac_objext conftest$ac_exeext
17612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17613 (eval $ac_link) 2>conftest.er1
17615 grep -v '^ *+' conftest.er1 >conftest.err
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } &&
17620 { ac_try='test -z "$ac_c_werror_flag"
17621 || test ! -s conftest.err'
17622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623 (eval $ac_try) 2>&5
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; } &&
17627 { ac_try='test -s conftest$ac_exeext'
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; }; then
17633 ac_cv_func_shl_load=yes
17635 echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17638 ac_cv_func_shl_load=no
17640 rm -f conftest.err conftest.$ac_objext \
17641 conftest$ac_exeext conftest.$ac_ext
17643 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17644 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17645 if test $ac_cv_func_shl_load = yes; then
17646 lt_cv_dlopen="shl_load"
17648 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17649 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17650 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
17653 ac_check_lib_save_LIBS=$LIBS
17655 cat >conftest.$ac_ext <<_ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h. */
17662 /* Override any gcc2 internal prototype to avoid an error. */
17666 /* We use char because int might match the return type of a gcc2
17667 builtin and then its argument prototype would still apply. */
17677 rm -f conftest.$ac_objext conftest$ac_exeext
17678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17679 (eval $ac_link) 2>conftest.er1
17681 grep -v '^ *+' conftest.er1 >conftest.err
17683 cat conftest.err >&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } &&
17686 { ac_try='test -z "$ac_c_werror_flag"
17687 || test ! -s conftest.err'
17688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689 (eval $ac_try) 2>&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; } &&
17693 { ac_try='test -s conftest$ac_exeext'
17694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695 (eval $ac_try) 2>&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); }; }; then
17699 ac_cv_lib_dld_shl_load=yes
17701 echo "$as_me: failed program was:" >&5
17702 sed 's/^/| /' conftest.$ac_ext >&5
17704 ac_cv_lib_dld_shl_load=no
17706 rm -f conftest.err conftest.$ac_objext \
17707 conftest$ac_exeext conftest.$ac_ext
17708 LIBS=$ac_check_lib_save_LIBS
17710 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17711 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17712 if test $ac_cv_lib_dld_shl_load = yes; then
17713 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17715 echo "$as_me:$LINENO: checking for dlopen" >&5
17716 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17717 if test "${ac_cv_func_dlopen+set}" = set; then
17718 echo $ECHO_N "(cached) $ECHO_C" >&6
17720 cat >conftest.$ac_ext <<_ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17726 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17728 #define dlopen innocuous_dlopen
17730 /* System header to define __stub macros and hopefully few prototypes,
17731 which can conflict with char dlopen (); below.
17732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17733 <limits.h> exists even on freestanding compilers. */
17736 # include <limits.h>
17738 # include <assert.h>
17743 /* Override any gcc2 internal prototype to avoid an error. */
17748 /* We use char because int might match the return type of a gcc2
17749 builtin and then its argument prototype would still apply. */
17751 /* The GNU C library defines this for functions which it implements
17752 to always fail with ENOSYS. Some functions are actually named
17753 something starting with __ and the normal name is an alias. */
17754 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17757 char (*f) () = dlopen;
17766 return f != dlopen;
17771 rm -f conftest.$ac_objext conftest$ac_exeext
17772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17773 (eval $ac_link) 2>conftest.er1
17775 grep -v '^ *+' conftest.er1 >conftest.err
17777 cat conftest.err >&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } &&
17780 { ac_try='test -z "$ac_c_werror_flag"
17781 || test ! -s conftest.err'
17782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783 (eval $ac_try) 2>&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; } &&
17787 { ac_try='test -s conftest$ac_exeext'
17788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; }; then
17793 ac_cv_func_dlopen=yes
17795 echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17798 ac_cv_func_dlopen=no
17800 rm -f conftest.err conftest.$ac_objext \
17801 conftest$ac_exeext conftest.$ac_ext
17803 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17804 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17805 if test $ac_cv_func_dlopen = yes; then
17806 lt_cv_dlopen="dlopen"
17808 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17809 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17810 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17811 echo $ECHO_N "(cached) $ECHO_C" >&6
17813 ac_check_lib_save_LIBS=$LIBS
17815 cat >conftest.$ac_ext <<_ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h. */
17822 /* Override any gcc2 internal prototype to avoid an error. */
17826 /* We use char because int might match the return type of a gcc2
17827 builtin and then its argument prototype would still apply. */
17837 rm -f conftest.$ac_objext conftest$ac_exeext
17838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17839 (eval $ac_link) 2>conftest.er1
17841 grep -v '^ *+' conftest.er1 >conftest.err
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } &&
17846 { ac_try='test -z "$ac_c_werror_flag"
17847 || test ! -s conftest.err'
17848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849 (eval $ac_try) 2>&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; } &&
17853 { ac_try='test -s conftest$ac_exeext'
17854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; }; then
17859 ac_cv_lib_dl_dlopen=yes
17861 echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17864 ac_cv_lib_dl_dlopen=no
17866 rm -f conftest.err conftest.$ac_objext \
17867 conftest$ac_exeext conftest.$ac_ext
17868 LIBS=$ac_check_lib_save_LIBS
17870 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17871 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17872 if test $ac_cv_lib_dl_dlopen = yes; then
17873 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17875 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17876 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17877 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17878 echo $ECHO_N "(cached) $ECHO_C" >&6
17880 ac_check_lib_save_LIBS=$LIBS
17881 LIBS="-lsvld $LIBS"
17882 cat >conftest.$ac_ext <<_ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h. */
17889 /* Override any gcc2 internal prototype to avoid an error. */
17893 /* We use char because int might match the return type of a gcc2
17894 builtin and then its argument prototype would still apply. */
17904 rm -f conftest.$ac_objext conftest$ac_exeext
17905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17906 (eval $ac_link) 2>conftest.er1
17908 grep -v '^ *+' conftest.er1 >conftest.err
17910 cat conftest.err >&5
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); } &&
17913 { ac_try='test -z "$ac_c_werror_flag"
17914 || test ! -s conftest.err'
17915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; } &&
17920 { ac_try='test -s conftest$ac_exeext'
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17926 ac_cv_lib_svld_dlopen=yes
17928 echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17931 ac_cv_lib_svld_dlopen=no
17933 rm -f conftest.err conftest.$ac_objext \
17934 conftest$ac_exeext conftest.$ac_ext
17935 LIBS=$ac_check_lib_save_LIBS
17937 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17938 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17939 if test $ac_cv_lib_svld_dlopen = yes; then
17940 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17942 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17943 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17944 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17945 echo $ECHO_N "(cached) $ECHO_C" >&6
17947 ac_check_lib_save_LIBS=$LIBS
17949 cat >conftest.$ac_ext <<_ACEOF
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h. */
17956 /* Override any gcc2 internal prototype to avoid an error. */
17960 /* We use char because int might match the return type of a gcc2
17961 builtin and then its argument prototype would still apply. */
17971 rm -f conftest.$ac_objext conftest$ac_exeext
17972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17973 (eval $ac_link) 2>conftest.er1
17975 grep -v '^ *+' conftest.er1 >conftest.err
17977 cat conftest.err >&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } &&
17980 { ac_try='test -z "$ac_c_werror_flag"
17981 || test ! -s conftest.err'
17982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983 (eval $ac_try) 2>&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; } &&
17987 { ac_try='test -s conftest$ac_exeext'
17988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17989 (eval $ac_try) 2>&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); }; }; then
17993 ac_cv_lib_dld_dld_link=yes
17995 echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
17998 ac_cv_lib_dld_dld_link=no
18000 rm -f conftest.err conftest.$ac_objext \
18001 conftest$ac_exeext conftest.$ac_ext
18002 LIBS=$ac_check_lib_save_LIBS
18004 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18005 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18006 if test $ac_cv_lib_dld_dld_link = yes; then
18007 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18028 if test "x$lt_cv_dlopen" != xno; then
18034 case $lt_cv_dlopen in
18036 save_CPPFLAGS="$CPPFLAGS"
18037 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18039 save_LDFLAGS="$LDFLAGS"
18040 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18043 LIBS="$lt_cv_dlopen_libs $LIBS"
18045 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18046 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18047 if test "${lt_cv_dlopen_self+set}" = set; then
18048 echo $ECHO_N "(cached) $ECHO_C" >&6
18050 if test "$cross_compiling" = yes; then :
18051 lt_cv_dlopen_self=cross
18053 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18054 lt_status=$lt_dlunknown
18055 cat > conftest.$ac_ext <<EOF
18056 #line 18056 "configure"
18057 #include "confdefs.h"
18066 # define LT_DLGLOBAL RTLD_GLOBAL
18069 # define LT_DLGLOBAL DL_GLOBAL
18071 # define LT_DLGLOBAL 0
18075 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18076 find out it does not work in some platform. */
18077 #ifndef LT_DLLAZY_OR_NOW
18079 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18082 # define LT_DLLAZY_OR_NOW DL_LAZY
18085 # define LT_DLLAZY_OR_NOW RTLD_NOW
18088 # define LT_DLLAZY_OR_NOW DL_NOW
18090 # define LT_DLLAZY_OR_NOW 0
18098 extern "C" void exit (int);
18101 void fnord() { int i=42;}
18104 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18105 int status = $lt_dlunknown;
18109 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18110 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18111 /* dlclose (self); */
18117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18118 (eval $ac_link) 2>&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18122 (./conftest; exit; ) 2>/dev/null
18124 case x$lt_status in
18125 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18126 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18127 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18130 # compilation failed
18131 lt_cv_dlopen_self=no
18138 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18139 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18141 if test "x$lt_cv_dlopen_self" = xyes; then
18142 LDFLAGS="$LDFLAGS $link_static_flag"
18143 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18144 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18145 if test "${lt_cv_dlopen_self_static+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 if test "$cross_compiling" = yes; then :
18149 lt_cv_dlopen_self_static=cross
18151 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18152 lt_status=$lt_dlunknown
18153 cat > conftest.$ac_ext <<EOF
18154 #line 18154 "configure"
18155 #include "confdefs.h"
18164 # define LT_DLGLOBAL RTLD_GLOBAL
18167 # define LT_DLGLOBAL DL_GLOBAL
18169 # define LT_DLGLOBAL 0
18173 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18174 find out it does not work in some platform. */
18175 #ifndef LT_DLLAZY_OR_NOW
18177 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18180 # define LT_DLLAZY_OR_NOW DL_LAZY
18183 # define LT_DLLAZY_OR_NOW RTLD_NOW
18186 # define LT_DLLAZY_OR_NOW DL_NOW
18188 # define LT_DLLAZY_OR_NOW 0
18196 extern "C" void exit (int);
18199 void fnord() { int i=42;}
18202 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18203 int status = $lt_dlunknown;
18207 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18208 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18209 /* dlclose (self); */
18215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18216 (eval $ac_link) 2>&5
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18220 (./conftest; exit; ) 2>/dev/null
18222 case x$lt_status in
18223 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18224 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18225 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18228 # compilation failed
18229 lt_cv_dlopen_self_static=no
18236 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18237 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18240 CPPFLAGS="$save_CPPFLAGS"
18241 LDFLAGS="$save_LDFLAGS"
18246 case $lt_cv_dlopen_self in
18247 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18248 *) enable_dlopen_self=unknown ;;
18251 case $lt_cv_dlopen_self_static in
18252 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18253 *) enable_dlopen_self_static=unknown ;;
18258 # The else clause should only fire when bootstrapping the
18259 # libtool distribution, otherwise you forgot to ship ltmain.sh
18260 # with your package, and you will get complaints that there are
18261 # no rules to generate ltmain.sh.
18262 if test -f "$ltmain"; then
18263 # See if we are running on zsh, and set the options which allow our commands through
18264 # without removal of \ escapes.
18265 if test -n "${ZSH_VERSION+set}" ; then
18266 setopt NO_GLOB_SUBST
18268 # Now quote all the things that may contain metacharacters while being
18269 # careful not to overquote the AC_SUBSTed values. We take copies of the
18270 # variables and quote the copies for generation of the libtool script.
18271 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18273 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18274 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18275 deplibs_check_method reload_flag reload_cmds need_locks \
18276 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18277 lt_cv_sys_global_symbol_to_c_name_address \
18278 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18279 old_postinstall_cmds old_postuninstall_cmds \
18283 lt_prog_compiler_wl_GCJ \
18284 lt_prog_compiler_pic_GCJ \
18285 lt_prog_compiler_static_GCJ \
18286 lt_prog_compiler_no_builtin_flag_GCJ \
18287 export_dynamic_flag_spec_GCJ \
18288 thread_safe_flag_spec_GCJ \
18289 whole_archive_flag_spec_GCJ \
18290 enable_shared_with_static_runtimes_GCJ \
18291 old_archive_cmds_GCJ \
18292 old_archive_from_new_cmds_GCJ \
18293 predep_objects_GCJ \
18294 postdep_objects_GCJ \
18297 compiler_lib_search_path_GCJ \
18299 archive_expsym_cmds_GCJ \
18300 postinstall_cmds_GCJ \
18301 postuninstall_cmds_GCJ \
18302 old_archive_from_expsyms_cmds_GCJ \
18303 allow_undefined_flag_GCJ \
18304 no_undefined_flag_GCJ \
18305 export_symbols_cmds_GCJ \
18306 hardcode_libdir_flag_spec_GCJ \
18307 hardcode_libdir_flag_spec_ld_GCJ \
18308 hardcode_libdir_separator_GCJ \
18309 hardcode_automatic_GCJ \
18311 module_expsym_cmds_GCJ \
18312 lt_cv_prog_compiler_c_o_GCJ \
18313 exclude_expsyms_GCJ \
18314 include_expsyms_GCJ; do
18317 old_archive_cmds_GCJ | \
18318 old_archive_from_new_cmds_GCJ | \
18319 archive_cmds_GCJ | \
18320 archive_expsym_cmds_GCJ | \
18321 module_cmds_GCJ | \
18322 module_expsym_cmds_GCJ | \
18323 old_archive_from_expsyms_cmds_GCJ | \
18324 export_symbols_cmds_GCJ | \
18325 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18326 postinstall_cmds | postuninstall_cmds | \
18327 old_postinstall_cmds | old_postuninstall_cmds | \
18328 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18329 # Double-quote double-evaled strings.
18330 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18333 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18339 *'\$0 --fallback-echo"')
18340 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18346 cat <<__EOF__ >> "$cfgfile"
18347 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18349 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18351 # Shell to use when invoking shell scripts.
18354 # Whether or not to build shared libraries.
18355 build_libtool_libs=$enable_shared
18357 # Whether or not to build static libraries.
18358 build_old_libs=$enable_static
18360 # Whether or not to add -lc for building shared libraries.
18361 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18363 # Whether or not to disallow shared libs when runtime libs are static
18364 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18366 # Whether or not to optimize for fast installation.
18367 fast_install=$enable_fast_install
18370 host_alias=$host_alias
18373 # An echo program that does not interpret backslashes.
18378 AR_FLAGS=$lt_AR_FLAGS
18383 # A language-specific compiler.
18384 CC=$lt_compiler_GCJ
18386 # Is the compiler the GNU C compiler?
18392 # The linker used to build libraries.
18395 # Whether we need hard or soft links.
18398 # A BSD-compatible nm program.
18401 # A symbol stripping program
18404 # Used to examine libraries when file_magic_cmd begins "file"
18405 MAGIC_CMD=$MAGIC_CMD
18407 # Used on cygwin: DLL creation program.
18410 # Used on cygwin: object dumper.
18413 # Used on cygwin: assembler.
18416 # The name of the directory that contains temporary libtool files.
18419 # How to create reloadable object files.
18420 reload_flag=$lt_reload_flag
18421 reload_cmds=$lt_reload_cmds
18423 # How to pass a linker flag through the compiler.
18424 wl=$lt_lt_prog_compiler_wl_GCJ
18426 # Object file suffix (normally "o").
18427 objext="$ac_objext"
18429 # Old archive suffix (normally "a").
18432 # Shared library suffix (normally ".so").
18433 shrext_cmds='$shrext_cmds'
18435 # Executable file suffix (normally "").
18438 # Additional compiler flags for building library objects.
18439 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18442 # What is the maximum length of a command?
18443 max_cmd_len=$lt_cv_sys_max_cmd_len
18445 # Does compiler simultaneously support -c and -o options?
18446 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18448 # Must we lock files when doing compilation ?
18449 need_locks=$lt_need_locks
18451 # Do we need the lib prefix for modules?
18452 need_lib_prefix=$need_lib_prefix
18454 # Do we need a version for libraries?
18455 need_version=$need_version
18457 # Whether dlopen is supported.
18458 dlopen_support=$enable_dlopen
18460 # Whether dlopen of programs is supported.
18461 dlopen_self=$enable_dlopen_self
18463 # Whether dlopen of statically linked programs is supported.
18464 dlopen_self_static=$enable_dlopen_self_static
18466 # Compiler flag to prevent dynamic linking.
18467 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18469 # Compiler flag to turn off builtin functions.
18470 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18472 # Compiler flag to allow reflexive dlopens.
18473 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18475 # Compiler flag to generate shared objects directly from archives.
18476 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18478 # Compiler flag to generate thread-safe objects.
18479 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18481 # Library versioning type.
18482 version_type=$version_type
18484 # Format of library name prefix.
18485 libname_spec=$lt_libname_spec
18487 # List of archive names. First name is the real one, the rest are links.
18488 # The last name is the one that the linker finds with -lNAME.
18489 library_names_spec=$lt_library_names_spec
18491 # The coded name of the library, if different from the real name.
18492 soname_spec=$lt_soname_spec
18494 # Commands used to build and install an old-style archive.
18496 old_archive_cmds=$lt_old_archive_cmds_GCJ
18497 old_postinstall_cmds=$lt_old_postinstall_cmds
18498 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18500 # Create an old-style archive from a shared archive.
18501 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18503 # Create a temporary old-style archive to link instead of a shared archive.
18504 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18506 # Commands used to build and install a shared archive.
18507 archive_cmds=$lt_archive_cmds_GCJ
18508 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18509 postinstall_cmds=$lt_postinstall_cmds
18510 postuninstall_cmds=$lt_postuninstall_cmds
18512 # Commands used to build a loadable module (assumed same as above if empty)
18513 module_cmds=$lt_module_cmds_GCJ
18514 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18516 # Commands to strip libraries.
18517 old_striplib=$lt_old_striplib
18518 striplib=$lt_striplib
18520 # Dependencies to place before the objects being linked to create a
18522 predep_objects=$lt_predep_objects_GCJ
18524 # Dependencies to place after the objects being linked to create a
18526 postdep_objects=$lt_postdep_objects_GCJ
18528 # Dependencies to place before the objects being linked to create a
18530 predeps=$lt_predeps_GCJ
18532 # Dependencies to place after the objects being linked to create a
18534 postdeps=$lt_postdeps_GCJ
18536 # The library search path used internally by the compiler when linking
18537 # a shared library.
18538 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18540 # Method to check whether dependent libraries are shared objects.
18541 deplibs_check_method=$lt_deplibs_check_method
18543 # Command to use when deplibs_check_method == file_magic.
18544 file_magic_cmd=$lt_file_magic_cmd
18546 # Flag that allows shared libraries with undefined symbols to be built.
18547 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18549 # Flag that forces no undefined symbols.
18550 no_undefined_flag=$lt_no_undefined_flag_GCJ
18552 # Commands used to finish a libtool library installation in a directory.
18553 finish_cmds=$lt_finish_cmds
18555 # Same as above, but a single script fragment to be evaled but not shown.
18556 finish_eval=$lt_finish_eval
18558 # Take the output of nm and produce a listing of raw symbols and C names.
18559 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18561 # Transform the output of nm in a proper C declaration
18562 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18564 # Transform the output of nm in a C name address pair
18565 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18567 # This is the shared library runtime path variable.
18568 runpath_var=$runpath_var
18570 # This is the shared library path variable.
18571 shlibpath_var=$shlibpath_var
18573 # Is shlibpath searched before the hard-coded library search path?
18574 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18576 # How to hardcode a shared library path into an executable.
18577 hardcode_action=$hardcode_action_GCJ
18579 # Whether we should hardcode library paths into libraries.
18580 hardcode_into_libs=$hardcode_into_libs
18582 # Flag to hardcode \$libdir into a binary during linking.
18583 # This must work even if \$libdir does not exist.
18584 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18586 # If ld is used when linking, flag to hardcode \$libdir into
18587 # a binary during linking. This must work even if \$libdir does
18589 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18591 # Whether we need a single -rpath flag with a separated argument.
18592 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18594 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18595 # resulting binary.
18596 hardcode_direct=$hardcode_direct_GCJ
18598 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18599 # resulting binary.
18600 hardcode_minus_L=$hardcode_minus_L_GCJ
18602 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18603 # the resulting binary.
18604 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18606 # Set to yes if building a shared library automatically hardcodes DIR into the library
18607 # and all subsequent libraries and executables linked against it.
18608 hardcode_automatic=$hardcode_automatic_GCJ
18610 # Variables whose values should be saved in libtool wrapper scripts and
18611 # restored at relink time.
18612 variables_saved_for_relink="$variables_saved_for_relink"
18614 # Whether libtool must link a program against all its dependency libraries.
18615 link_all_deplibs=$link_all_deplibs_GCJ
18617 # Compile-time system search path for libraries
18618 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18620 # Run-time system search path for libraries
18621 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18623 # Fix the shell variable \$srcfile for the compiler.
18624 fix_srcfile_path="$fix_srcfile_path_GCJ"
18626 # Set to yes if exported symbols are required.
18627 always_export_symbols=$always_export_symbols_GCJ
18629 # The commands to list exported symbols.
18630 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18632 # The commands to extract the exported symbol list from a shared archive.
18633 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18635 # Symbols that should not be listed in the preloaded symbols.
18636 exclude_expsyms=$lt_exclude_expsyms_GCJ
18638 # Symbols that must always be exported.
18639 include_expsyms=$lt_include_expsyms_GCJ
18641 # ### END LIBTOOL TAG CONFIG: $tagname
18647 # If there is no Makefile yet, we rely on a make rule to execute
18648 # `config.status --recheck' to rerun these tests and create the
18649 # libtool script then.
18650 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18651 if test -f "$ltmain_in"; then
18652 test -f Makefile && make "$ltmain"
18658 ac_cpp='$CPP $CPPFLAGS'
18659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18674 # Source file extension for RC test sources.
18677 # Object file extension for compiled RC test sources.
18681 # Code to be used in simple compile tests
18682 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18684 # Code to be used in simple link tests
18685 lt_simple_link_test_code="$lt_simple_compile_test_code"
18687 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18689 # If no C compiler was specified, use CC.
18692 # Allow CC to be a program name with arguments.
18696 # Allow CC to be a program name with arguments.
18701 lt_cv_prog_compiler_c_o_RC=yes
18703 # The else clause should only fire when bootstrapping the
18704 # libtool distribution, otherwise you forgot to ship ltmain.sh
18705 # with your package, and you will get complaints that there are
18706 # no rules to generate ltmain.sh.
18707 if test -f "$ltmain"; then
18708 # See if we are running on zsh, and set the options which allow our commands through
18709 # without removal of \ escapes.
18710 if test -n "${ZSH_VERSION+set}" ; then
18711 setopt NO_GLOB_SUBST
18713 # Now quote all the things that may contain metacharacters while being
18714 # careful not to overquote the AC_SUBSTed values. We take copies of the
18715 # variables and quote the copies for generation of the libtool script.
18716 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18718 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18719 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18720 deplibs_check_method reload_flag reload_cmds need_locks \
18721 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18722 lt_cv_sys_global_symbol_to_c_name_address \
18723 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18724 old_postinstall_cmds old_postuninstall_cmds \
18728 lt_prog_compiler_wl_RC \
18729 lt_prog_compiler_pic_RC \
18730 lt_prog_compiler_static_RC \
18731 lt_prog_compiler_no_builtin_flag_RC \
18732 export_dynamic_flag_spec_RC \
18733 thread_safe_flag_spec_RC \
18734 whole_archive_flag_spec_RC \
18735 enable_shared_with_static_runtimes_RC \
18736 old_archive_cmds_RC \
18737 old_archive_from_new_cmds_RC \
18738 predep_objects_RC \
18739 postdep_objects_RC \
18742 compiler_lib_search_path_RC \
18744 archive_expsym_cmds_RC \
18745 postinstall_cmds_RC \
18746 postuninstall_cmds_RC \
18747 old_archive_from_expsyms_cmds_RC \
18748 allow_undefined_flag_RC \
18749 no_undefined_flag_RC \
18750 export_symbols_cmds_RC \
18751 hardcode_libdir_flag_spec_RC \
18752 hardcode_libdir_flag_spec_ld_RC \
18753 hardcode_libdir_separator_RC \
18754 hardcode_automatic_RC \
18756 module_expsym_cmds_RC \
18757 lt_cv_prog_compiler_c_o_RC \
18758 exclude_expsyms_RC \
18759 include_expsyms_RC; do
18762 old_archive_cmds_RC | \
18763 old_archive_from_new_cmds_RC | \
18764 archive_cmds_RC | \
18765 archive_expsym_cmds_RC | \
18767 module_expsym_cmds_RC | \
18768 old_archive_from_expsyms_cmds_RC | \
18769 export_symbols_cmds_RC | \
18770 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18771 postinstall_cmds | postuninstall_cmds | \
18772 old_postinstall_cmds | old_postuninstall_cmds | \
18773 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18774 # Double-quote double-evaled strings.
18775 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18778 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18784 *'\$0 --fallback-echo"')
18785 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18791 cat <<__EOF__ >> "$cfgfile"
18792 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18794 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18796 # Shell to use when invoking shell scripts.
18799 # Whether or not to build shared libraries.
18800 build_libtool_libs=$enable_shared
18802 # Whether or not to build static libraries.
18803 build_old_libs=$enable_static
18805 # Whether or not to add -lc for building shared libraries.
18806 build_libtool_need_lc=$archive_cmds_need_lc_RC
18808 # Whether or not to disallow shared libs when runtime libs are static
18809 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18811 # Whether or not to optimize for fast installation.
18812 fast_install=$enable_fast_install
18815 host_alias=$host_alias
18818 # An echo program that does not interpret backslashes.
18823 AR_FLAGS=$lt_AR_FLAGS
18828 # A language-specific compiler.
18831 # Is the compiler the GNU C compiler?
18837 # The linker used to build libraries.
18840 # Whether we need hard or soft links.
18843 # A BSD-compatible nm program.
18846 # A symbol stripping program
18849 # Used to examine libraries when file_magic_cmd begins "file"
18850 MAGIC_CMD=$MAGIC_CMD
18852 # Used on cygwin: DLL creation program.
18855 # Used on cygwin: object dumper.
18858 # Used on cygwin: assembler.
18861 # The name of the directory that contains temporary libtool files.
18864 # How to create reloadable object files.
18865 reload_flag=$lt_reload_flag
18866 reload_cmds=$lt_reload_cmds
18868 # How to pass a linker flag through the compiler.
18869 wl=$lt_lt_prog_compiler_wl_RC
18871 # Object file suffix (normally "o").
18872 objext="$ac_objext"
18874 # Old archive suffix (normally "a").
18877 # Shared library suffix (normally ".so").
18878 shrext_cmds='$shrext_cmds'
18880 # Executable file suffix (normally "").
18883 # Additional compiler flags for building library objects.
18884 pic_flag=$lt_lt_prog_compiler_pic_RC
18887 # What is the maximum length of a command?
18888 max_cmd_len=$lt_cv_sys_max_cmd_len
18890 # Does compiler simultaneously support -c and -o options?
18891 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18893 # Must we lock files when doing compilation ?
18894 need_locks=$lt_need_locks
18896 # Do we need the lib prefix for modules?
18897 need_lib_prefix=$need_lib_prefix
18899 # Do we need a version for libraries?
18900 need_version=$need_version
18902 # Whether dlopen is supported.
18903 dlopen_support=$enable_dlopen
18905 # Whether dlopen of programs is supported.
18906 dlopen_self=$enable_dlopen_self
18908 # Whether dlopen of statically linked programs is supported.
18909 dlopen_self_static=$enable_dlopen_self_static
18911 # Compiler flag to prevent dynamic linking.
18912 link_static_flag=$lt_lt_prog_compiler_static_RC
18914 # Compiler flag to turn off builtin functions.
18915 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18917 # Compiler flag to allow reflexive dlopens.
18918 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18920 # Compiler flag to generate shared objects directly from archives.
18921 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18923 # Compiler flag to generate thread-safe objects.
18924 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18926 # Library versioning type.
18927 version_type=$version_type
18929 # Format of library name prefix.
18930 libname_spec=$lt_libname_spec
18932 # List of archive names. First name is the real one, the rest are links.
18933 # The last name is the one that the linker finds with -lNAME.
18934 library_names_spec=$lt_library_names_spec
18936 # The coded name of the library, if different from the real name.
18937 soname_spec=$lt_soname_spec
18939 # Commands used to build and install an old-style archive.
18941 old_archive_cmds=$lt_old_archive_cmds_RC
18942 old_postinstall_cmds=$lt_old_postinstall_cmds
18943 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18945 # Create an old-style archive from a shared archive.
18946 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18948 # Create a temporary old-style archive to link instead of a shared archive.
18949 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18951 # Commands used to build and install a shared archive.
18952 archive_cmds=$lt_archive_cmds_RC
18953 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18954 postinstall_cmds=$lt_postinstall_cmds
18955 postuninstall_cmds=$lt_postuninstall_cmds
18957 # Commands used to build a loadable module (assumed same as above if empty)
18958 module_cmds=$lt_module_cmds_RC
18959 module_expsym_cmds=$lt_module_expsym_cmds_RC
18961 # Commands to strip libraries.
18962 old_striplib=$lt_old_striplib
18963 striplib=$lt_striplib
18965 # Dependencies to place before the objects being linked to create a
18967 predep_objects=$lt_predep_objects_RC
18969 # Dependencies to place after the objects being linked to create a
18971 postdep_objects=$lt_postdep_objects_RC
18973 # Dependencies to place before the objects being linked to create a
18975 predeps=$lt_predeps_RC
18977 # Dependencies to place after the objects being linked to create a
18979 postdeps=$lt_postdeps_RC
18981 # The library search path used internally by the compiler when linking
18982 # a shared library.
18983 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18985 # Method to check whether dependent libraries are shared objects.
18986 deplibs_check_method=$lt_deplibs_check_method
18988 # Command to use when deplibs_check_method == file_magic.
18989 file_magic_cmd=$lt_file_magic_cmd
18991 # Flag that allows shared libraries with undefined symbols to be built.
18992 allow_undefined_flag=$lt_allow_undefined_flag_RC
18994 # Flag that forces no undefined symbols.
18995 no_undefined_flag=$lt_no_undefined_flag_RC
18997 # Commands used to finish a libtool library installation in a directory.
18998 finish_cmds=$lt_finish_cmds
19000 # Same as above, but a single script fragment to be evaled but not shown.
19001 finish_eval=$lt_finish_eval
19003 # Take the output of nm and produce a listing of raw symbols and C names.
19004 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19006 # Transform the output of nm in a proper C declaration
19007 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19009 # Transform the output of nm in a C name address pair
19010 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19012 # This is the shared library runtime path variable.
19013 runpath_var=$runpath_var
19015 # This is the shared library path variable.
19016 shlibpath_var=$shlibpath_var
19018 # Is shlibpath searched before the hard-coded library search path?
19019 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19021 # How to hardcode a shared library path into an executable.
19022 hardcode_action=$hardcode_action_RC
19024 # Whether we should hardcode library paths into libraries.
19025 hardcode_into_libs=$hardcode_into_libs
19027 # Flag to hardcode \$libdir into a binary during linking.
19028 # This must work even if \$libdir does not exist.
19029 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19031 # If ld is used when linking, flag to hardcode \$libdir into
19032 # a binary during linking. This must work even if \$libdir does
19034 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19036 # Whether we need a single -rpath flag with a separated argument.
19037 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19039 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19040 # resulting binary.
19041 hardcode_direct=$hardcode_direct_RC
19043 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19044 # resulting binary.
19045 hardcode_minus_L=$hardcode_minus_L_RC
19047 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19048 # the resulting binary.
19049 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19051 # Set to yes if building a shared library automatically hardcodes DIR into the library
19052 # and all subsequent libraries and executables linked against it.
19053 hardcode_automatic=$hardcode_automatic_RC
19055 # Variables whose values should be saved in libtool wrapper scripts and
19056 # restored at relink time.
19057 variables_saved_for_relink="$variables_saved_for_relink"
19059 # Whether libtool must link a program against all its dependency libraries.
19060 link_all_deplibs=$link_all_deplibs_RC
19062 # Compile-time system search path for libraries
19063 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19065 # Run-time system search path for libraries
19066 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19068 # Fix the shell variable \$srcfile for the compiler.
19069 fix_srcfile_path="$fix_srcfile_path_RC"
19071 # Set to yes if exported symbols are required.
19072 always_export_symbols=$always_export_symbols_RC
19074 # The commands to list exported symbols.
19075 export_symbols_cmds=$lt_export_symbols_cmds_RC
19077 # The commands to extract the exported symbol list from a shared archive.
19078 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19080 # Symbols that should not be listed in the preloaded symbols.
19081 exclude_expsyms=$lt_exclude_expsyms_RC
19083 # Symbols that must always be exported.
19084 include_expsyms=$lt_include_expsyms_RC
19086 # ### END LIBTOOL TAG CONFIG: $tagname
19092 # If there is no Makefile yet, we rely on a make rule to execute
19093 # `config.status --recheck' to rerun these tests and create the
19094 # libtool script then.
19095 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19096 if test -f "$ltmain_in"; then
19097 test -f Makefile && make "$ltmain"
19103 ac_cpp='$CPP $CPPFLAGS'
19104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19113 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19114 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19115 { (exit 1); exit 1; }; }
19119 # Append the new tag name to the list of available tags.
19120 if test -n "$tagname" ; then
19121 available_tags="$available_tags $tagname"
19127 # Now substitute the updated list of available tags.
19128 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19129 mv "${ofile}T" "$ofile"
19133 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19134 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19135 { (exit 1); exit 1; }; }
19141 # This can be used to rebuild libtool when needed
19142 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19144 # Always use our own libtool.
19145 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19147 # Prevent multiple expansion
19168 # Check whether --enable-largefile or --disable-largefile was given.
19169 if test "${enable_largefile+set}" = set; then
19170 enableval="$enable_largefile"
19173 if test "$enable_largefile" != no; then
19175 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
19176 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
19177 if test "${ac_cv_sys_largefile_CC+set}" = set; then
19178 echo $ECHO_N "(cached) $ECHO_C" >&6
19180 ac_cv_sys_largefile_CC=no
19181 if test "$GCC" != yes; then
19184 # IRIX 6.2 and later do not support large files by default,
19185 # so use the C compiler's -n32 option if that helps.
19186 cat >conftest.$ac_ext <<_ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h. */
19192 #include <sys/types.h>
19193 /* Check that off_t can represent 2**63 - 1 correctly.
19194 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19195 since some C++ compilers masquerading as C compilers
19196 incorrectly reject 9223372036854775807. */
19197 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19198 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19199 && LARGE_OFF_T % 2147483647 == 1)
19209 rm -f conftest.$ac_objext
19210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19211 (eval $ac_compile) 2>conftest.er1
19213 grep -v '^ *+' conftest.er1 >conftest.err
19215 cat conftest.err >&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } &&
19218 { ac_try='test -z "$ac_c_werror_flag"
19219 || test ! -s conftest.err'
19220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221 (eval $ac_try) 2>&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; } &&
19225 { ac_try='test -s conftest.$ac_objext'
19226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227 (eval $ac_try) 2>&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; }; then
19233 echo "$as_me: failed program was:" >&5
19234 sed 's/^/| /' conftest.$ac_ext >&5
19237 rm -f conftest.err conftest.$ac_objext
19239 rm -f conftest.$ac_objext
19240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19241 (eval $ac_compile) 2>conftest.er1
19243 grep -v '^ *+' conftest.er1 >conftest.err
19245 cat conftest.err >&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } &&
19248 { ac_try='test -z "$ac_c_werror_flag"
19249 || test ! -s conftest.err'
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251 (eval $ac_try) 2>&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; } &&
19255 { ac_try='test -s conftest.$ac_objext'
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; }; then
19261 ac_cv_sys_largefile_CC=' -n32'; break
19263 echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19267 rm -f conftest.err conftest.$ac_objext
19271 rm -f conftest.$ac_ext
19274 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
19275 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
19276 if test "$ac_cv_sys_largefile_CC" != no; then
19277 CC=$CC$ac_cv_sys_largefile_CC
19280 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19281 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19282 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19283 echo $ECHO_N "(cached) $ECHO_C" >&6
19286 ac_cv_sys_file_offset_bits=no
19287 cat >conftest.$ac_ext <<_ACEOF
19290 cat confdefs.h >>conftest.$ac_ext
19291 cat >>conftest.$ac_ext <<_ACEOF
19292 /* end confdefs.h. */
19293 #include <sys/types.h>
19294 /* Check that off_t can represent 2**63 - 1 correctly.
19295 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19296 since some C++ compilers masquerading as C compilers
19297 incorrectly reject 9223372036854775807. */
19298 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19299 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19300 && LARGE_OFF_T % 2147483647 == 1)
19310 rm -f conftest.$ac_objext
19311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19312 (eval $ac_compile) 2>conftest.er1
19314 grep -v '^ *+' conftest.er1 >conftest.err
19316 cat conftest.err >&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } &&
19319 { ac_try='test -z "$ac_c_werror_flag"
19320 || test ! -s conftest.err'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; } &&
19326 { ac_try='test -s conftest.$ac_objext'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; }; then
19334 echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19339 cat >conftest.$ac_ext <<_ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19345 #define _FILE_OFFSET_BITS 64
19346 #include <sys/types.h>
19347 /* Check that off_t can represent 2**63 - 1 correctly.
19348 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19349 since some C++ compilers masquerading as C compilers
19350 incorrectly reject 9223372036854775807. */
19351 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19352 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19353 && LARGE_OFF_T % 2147483647 == 1)
19363 rm -f conftest.$ac_objext
19364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19365 (eval $ac_compile) 2>conftest.er1
19367 grep -v '^ *+' conftest.er1 >conftest.err
19369 cat conftest.err >&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } &&
19372 { ac_try='test -z "$ac_c_werror_flag"
19373 || test ! -s conftest.err'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; } &&
19379 { ac_try='test -s conftest.$ac_objext'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; }; then
19385 ac_cv_sys_file_offset_bits=64; break
19387 echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19395 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19396 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19397 if test "$ac_cv_sys_file_offset_bits" != no; then
19399 cat >>confdefs.h <<_ACEOF
19400 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19405 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19406 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19407 if test "${ac_cv_sys_large_files+set}" = set; then
19408 echo $ECHO_N "(cached) $ECHO_C" >&6
19411 ac_cv_sys_large_files=no
19412 cat >conftest.$ac_ext <<_ACEOF
19415 cat confdefs.h >>conftest.$ac_ext
19416 cat >>conftest.$ac_ext <<_ACEOF
19417 /* end confdefs.h. */
19418 #include <sys/types.h>
19419 /* Check that off_t can represent 2**63 - 1 correctly.
19420 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19421 since some C++ compilers masquerading as C compilers
19422 incorrectly reject 9223372036854775807. */
19423 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19424 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19425 && LARGE_OFF_T % 2147483647 == 1)
19435 rm -f conftest.$ac_objext
19436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19437 (eval $ac_compile) 2>conftest.er1
19439 grep -v '^ *+' conftest.er1 >conftest.err
19441 cat conftest.err >&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); } &&
19444 { ac_try='test -z "$ac_c_werror_flag"
19445 || test ! -s conftest.err'
19446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19447 (eval $ac_try) 2>&5
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; } &&
19451 { ac_try='test -s conftest.$ac_objext'
19452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453 (eval $ac_try) 2>&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; }; then
19459 echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19464 cat >conftest.$ac_ext <<_ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h. */
19470 #define _LARGE_FILES 1
19471 #include <sys/types.h>
19472 /* Check that off_t can represent 2**63 - 1 correctly.
19473 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19474 since some C++ compilers masquerading as C compilers
19475 incorrectly reject 9223372036854775807. */
19476 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19477 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19478 && LARGE_OFF_T % 2147483647 == 1)
19488 rm -f conftest.$ac_objext
19489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19490 (eval $ac_compile) 2>conftest.er1
19492 grep -v '^ *+' conftest.er1 >conftest.err
19494 cat conftest.err >&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); } &&
19497 { ac_try='test -z "$ac_c_werror_flag"
19498 || test ! -s conftest.err'
19499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500 (eval $ac_try) 2>&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; } &&
19504 { ac_try='test -s conftest.$ac_objext'
19505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506 (eval $ac_try) 2>&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; }; then
19510 ac_cv_sys_large_files=1; break
19512 echo "$as_me: failed program was:" >&5
19513 sed 's/^/| /' conftest.$ac_ext >&5
19516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19520 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19521 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19522 if test "$ac_cv_sys_large_files" != no; then
19524 cat >>confdefs.h <<_ACEOF
19525 #define _LARGE_FILES $ac_cv_sys_large_files
19533 CFLAGS="-DHAS_snprintf -DHAS_snprintf"
19534 if test "$ac_cv_c_compiler_gnu" = yes; then
19535 CFLAGS="-DWITH_RSYNC_PAD -O3 -fomit-frame-pointer -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts"
19541 for ac_header in unistd.h errno.h
19543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19545 echo "$as_me:$LINENO: checking for $ac_header" >&5
19546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19553 # Is the header compilable?
19554 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19556 cat >conftest.$ac_ext <<_ACEOF
19559 cat confdefs.h >>conftest.$ac_ext
19560 cat >>conftest.$ac_ext <<_ACEOF
19561 /* end confdefs.h. */
19562 $ac_includes_default
19563 #include <$ac_header>
19565 rm -f conftest.$ac_objext
19566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19567 (eval $ac_compile) 2>conftest.er1
19569 grep -v '^ *+' conftest.er1 >conftest.err
19571 cat conftest.err >&5
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); } &&
19574 { ac_try='test -z "$ac_c_werror_flag"
19575 || test ! -s conftest.err'
19576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577 (eval $ac_try) 2>&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); }; } &&
19581 { ac_try='test -s conftest.$ac_objext'
19582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583 (eval $ac_try) 2>&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); }; }; then
19587 ac_header_compiler=yes
19589 echo "$as_me: failed program was:" >&5
19590 sed 's/^/| /' conftest.$ac_ext >&5
19592 ac_header_compiler=no
19594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19596 echo "${ECHO_T}$ac_header_compiler" >&6
19598 # Is the header present?
19599 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19601 cat >conftest.$ac_ext <<_ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h. */
19607 #include <$ac_header>
19609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19612 grep -v '^ *+' conftest.er1 >conftest.err
19614 cat conftest.err >&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); } >/dev/null; then
19617 if test -s conftest.err; then
19618 ac_cpp_err=$ac_c_preproc_warn_flag
19619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19626 if test -z "$ac_cpp_err"; then
19627 ac_header_preproc=yes
19629 echo "$as_me: failed program was:" >&5
19630 sed 's/^/| /' conftest.$ac_ext >&5
19632 ac_header_preproc=no
19634 rm -f conftest.err conftest.$ac_ext
19635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19636 echo "${ECHO_T}$ac_header_preproc" >&6
19638 # So? What about this header?
19639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19645 ac_header_preproc=yes
19648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19655 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19662 ## ---------------------------------- ##
19663 ## Report this to rpm-list@redhat.com ##
19664 ## ---------------------------------- ##
19667 sed "s/^/$as_me: WARNING: /" >&2
19670 echo "$as_me:$LINENO: checking for $ac_header" >&5
19671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19675 eval "$as_ac_Header=\$ac_header_preproc"
19677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19682 cat >>confdefs.h <<_ACEOF
19683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19691 echo "$as_me:$LINENO: checking if mmap is available" >&5
19692 echo $ECHO_N "checking if mmap is available... $ECHO_C" >&6
19693 cat >conftest.$ac_ext <<_ACEOF
19696 cat confdefs.h >>conftest.$ac_ext
19697 cat >>conftest.$ac_ext <<_ACEOF
19698 /* end confdefs.h. */
19700 #include <sys/types.h>
19701 #include <sys/mman.h>
19702 #include <sys/stat.h>
19708 return mmap((caddr_t)0, (off_t)0, PROT_READ, MAP_SHARED, 0, (off_t)0);
19715 rm -f conftest.$ac_objext
19716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19717 (eval $ac_compile) 2>conftest.er1
19719 grep -v '^ *+' conftest.er1 >conftest.err
19721 cat conftest.err >&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } &&
19724 { ac_try='test -z "$ac_c_werror_flag"
19725 || test ! -s conftest.err'
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; } &&
19731 { ac_try='test -s conftest.$ac_objext'
19732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733 (eval $ac_try) 2>&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; }; then
19737 echo "$as_me:$LINENO: result: yes" >&5
19738 echo "${ECHO_T}yes" >&6
19739 CFLAGS="-DUSE_MMAP $CFLAGS"
19741 echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19744 echo "$as_me:$LINENO: result: no" >&5
19745 echo "${ECHO_T}no" >&6
19748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19750 ac_config_files="$ac_config_files Doxyfile Makefile"
19751 ac_config_commands="$ac_config_commands default"
19752 cat >confcache <<\_ACEOF
19753 # This file is a shell script that caches the results of configure
19754 # tests run on this system so they can be shared between configure
19755 # scripts and configure runs, see configure's option --config-cache.
19756 # It is not useful on other systems. If it contains results you don't
19757 # want to keep, you may remove or edit it.
19759 # config.status only pays attention to the cache file if you give it
19760 # the --recheck option to rerun configure.
19762 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19763 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19764 # following values.
19768 # The following way of writing the cache mishandles newlines in values,
19769 # but we know of no workaround that is simple, portable, and efficient.
19770 # So, don't put newlines in cache variables' values.
19771 # Ultrix sh set writes to stderr and can't be redirected directly,
19772 # and sets the high bit in the cache file unless we assign to the vars.
19775 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19777 # `set' does not quote correctly, so add quotes (double-quote
19778 # substitution turns \\\\ into \\, and sed turns \\ into \).
19781 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19784 # `set' quotes correctly as required by POSIX, so do not add quotes.
19786 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19793 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19795 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19797 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19798 if test -w $cache_file; then
19799 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19800 cat confcache >$cache_file
19802 echo "not updating unwritable cache $cache_file"
19807 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19808 # Let make expand exec_prefix.
19809 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19811 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19812 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19813 # trailing colons and then remove the whole line if VPATH becomes empty
19814 # (actually we leave an empty line to preserve line numbers).
19815 if test "x$srcdir" = x.; then
19816 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19817 s/:*\$(srcdir):*/:/;
19818 s/:*\${srcdir}:*/:/;
19820 s/^\([^=]*=[ ]*\):*/\1/;
19826 DEFS=-DHAVE_CONFIG_H
19830 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19831 # 1. Remove the extension, and $U if already installed.
19832 ac_i=`echo "$ac_i" |
19833 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19835 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19836 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19838 LIBOBJS=$ac_libobjs
19840 LTLIBOBJS=$ac_ltlibobjs
19843 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19844 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19845 Usually this means the macro was only invoked conditionally." >&5
19846 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19847 Usually this means the macro was only invoked conditionally." >&2;}
19848 { (exit 1); exit 1; }; }
19850 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19851 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19852 Usually this means the macro was only invoked conditionally." >&5
19853 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19854 Usually this means the macro was only invoked conditionally." >&2;}
19855 { (exit 1); exit 1; }; }
19857 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19858 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19859 Usually this means the macro was only invoked conditionally." >&5
19860 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19861 Usually this means the macro was only invoked conditionally." >&2;}
19862 { (exit 1); exit 1; }; }
19865 : ${CONFIG_STATUS=./config.status}
19866 ac_clean_files_save=$ac_clean_files
19867 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19868 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19869 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19870 cat >$CONFIG_STATUS <<_ACEOF
19872 # Generated by $as_me.
19873 # Run this file to recreate the current configuration.
19874 # Compiler output produced by configure, useful for debugging
19875 # configure, is in config.log if it exists.
19878 ac_cs_recheck=false
19880 SHELL=\${CONFIG_SHELL-$SHELL}
19883 cat >>$CONFIG_STATUS <<\_ACEOF
19884 ## --------------------- ##
19885 ## M4sh Initialization. ##
19886 ## --------------------- ##
19888 # Be Bourne compatible
19889 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19892 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19893 # is contrary to our usage. Disable this feature.
19894 alias -g '${1+"$@"}'='"$@"'
19895 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19898 DUALCASE=1; export DUALCASE # for MKS sh
19900 # Support unset when possible.
19901 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19908 # Work around bugs in pre-3.0 UWIN ksh.
19909 $as_unset ENV MAIL MAILPATH
19916 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19917 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19918 LC_TELEPHONE LC_TIME
19920 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19921 eval $as_var=C; export $as_var
19927 # Required to use basename.
19928 if expr a : '\(a\)' >/dev/null 2>&1; then
19934 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19935 as_basename=basename
19941 # Name of the executable.
19942 as_me=`$as_basename "$0" ||
19943 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19944 X"$0" : 'X\(//\)$' \| \
19945 X"$0" : 'X\(/\)$' \| \
19946 . : '\(.\)' 2>/dev/null ||
19948 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19949 /^X\/\(\/\/\)$/{ s//\1/; q; }
19950 /^X\/\(\/\).*/{ s//\1/; q; }
19954 # PATH needs CR, and LINENO needs CR and PATH.
19955 # Avoid depending upon Character Ranges.
19956 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19957 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19958 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19959 as_cr_digits='0123456789'
19960 as_cr_alnum=$as_cr_Letters$as_cr_digits
19962 # The user is always right.
19963 if test "${PATH_SEPARATOR+set}" != set; then
19964 echo "#! /bin/sh" >conf$$.sh
19965 echo "exit 0" >>conf$$.sh
19967 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19976 as_lineno_1=$LINENO
19977 as_lineno_2=$LINENO
19978 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19979 test "x$as_lineno_1" != "x$as_lineno_2" &&
19980 test "x$as_lineno_3" = "x$as_lineno_2" || {
19981 # Find who we are. Look in the path if we contain no path at all
19984 *[\\/]* ) as_myself=$0 ;;
19985 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19986 for as_dir in $PATH
19989 test -z "$as_dir" && as_dir=.
19990 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19995 # We did not find ourselves, most probably we were run as `sh COMMAND'
19996 # in which case we are not to be found in the path.
19997 if test "x$as_myself" = x; then
20000 if test ! -f "$as_myself"; then
20001 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20002 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20003 { (exit 1); exit 1; }; }
20005 case $CONFIG_SHELL in
20007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20008 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20011 test -z "$as_dir" && as_dir=.
20012 for as_base in sh bash ksh sh5; do
20015 if ("$as_dir/$as_base" -c '
20016 as_lineno_1=$LINENO
20017 as_lineno_2=$LINENO
20018 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20019 test "x$as_lineno_1" != "x$as_lineno_2" &&
20020 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20021 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20022 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20023 CONFIG_SHELL=$as_dir/$as_base
20024 export CONFIG_SHELL
20025 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20033 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20034 # uniformly replaced by the line number. The first 'sed' inserts a
20035 # line-number line before each line; the second 'sed' does the real
20036 # work. The second script uses 'N' to pair each line-number line
20037 # with the numbered line, and appends trailing '-' during
20038 # substitution so that $LINENO is not a special case at line end.
20039 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20040 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20041 sed '=' <$as_myself |
20046 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20049 s,^['$as_cr_digits']*\n,,
20050 ' >$as_me.lineno &&
20051 chmod +x $as_me.lineno ||
20052 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20053 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20054 { (exit 1); exit 1; }; }
20056 # Don't try to exec as it changes $[0], causing all sort of problems
20057 # (the dirname of $[0] is not the place where we might find the
20058 # original and so on. Autoconf is especially sensible to this).
20060 # Exit status is that of the last command.
20065 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20066 *c*,-n*) ECHO_N= ECHO_C='
20068 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20069 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20072 if expr a : '\(a\)' >/dev/null 2>&1; then
20078 rm -f conf$$ conf$$.exe conf$$.file
20080 if ln -s conf$$.file conf$$ 2>/dev/null; then
20081 # We could just check for DJGPP; but this test a) works b) is more generic
20082 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20083 if test -f conf$$.exe; then
20084 # Don't use ln at all; we don't have any links
20089 elif ln conf$$.file conf$$ 2>/dev/null; then
20094 rm -f conf$$ conf$$.exe conf$$.file
20096 if mkdir -p . 2>/dev/null; then
20099 test -d ./-p && rmdir ./-p
20103 as_executable_p="test -f"
20105 # Sed expression to map a string onto a valid CPP name.
20106 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20108 # Sed expression to map a string onto a valid variable name.
20109 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20113 # We need space, tab and new line, in precisely that order.
20123 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20124 # report actual input values of CONFIG_FILES etc. instead of their
20125 # values after options handling. Logging --version etc. is OK.
20129 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20130 ## Running $as_me. ##
20135 This file was extended by zlib $as_me 1.2.1.1, which was
20136 generated by GNU Autoconf 2.59. Invocation command line was
20138 CONFIG_FILES = $CONFIG_FILES
20139 CONFIG_HEADERS = $CONFIG_HEADERS
20140 CONFIG_LINKS = $CONFIG_LINKS
20141 CONFIG_COMMANDS = $CONFIG_COMMANDS
20145 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20149 # Files that config.status was made for.
20150 if test -n "$ac_config_files"; then
20151 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20154 if test -n "$ac_config_headers"; then
20155 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20158 if test -n "$ac_config_links"; then
20159 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20162 if test -n "$ac_config_commands"; then
20163 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20166 cat >>$CONFIG_STATUS <<\_ACEOF
20169 \`$as_me' instantiates files from templates according to the
20170 current configuration.
20172 Usage: $0 [OPTIONS] [FILE]...
20174 -h, --help print this help, then exit
20175 -V, --version print version number, then exit
20176 -q, --quiet do not print progress messages
20177 -d, --debug don't remove temporary files
20178 --recheck update $as_me by reconfiguring in the same conditions
20179 --file=FILE[:TEMPLATE]
20180 instantiate the configuration file FILE
20181 --header=FILE[:TEMPLATE]
20182 instantiate the configuration header FILE
20184 Configuration files:
20187 Configuration headers:
20190 Configuration commands:
20193 Report bugs to <bug-autoconf@gnu.org>."
20196 cat >>$CONFIG_STATUS <<_ACEOF
20198 zlib config.status 1.2.1.1
20199 configured by $0, generated by GNU Autoconf 2.59,
20200 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20202 Copyright (C) 2003 Free Software Foundation, Inc.
20203 This config.status script is free software; the Free Software Foundation
20204 gives unlimited permission to copy, distribute and modify it."
20209 cat >>$CONFIG_STATUS <<\_ACEOF
20210 # If no file are specified by the user, then we need to provide default
20211 # value. By we need to know if files were specified by the user.
20217 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20218 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20226 *) # This is not an option, so the user has probably given explicit
20229 ac_need_defaults=false;;
20233 # Handling of the options.
20235 cat >>$CONFIG_STATUS <<\_ACEOF
20236 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20238 --version | --vers* | -V )
20239 echo "$ac_cs_version"; exit 0 ;;
20241 # Conflict between --help and --header
20242 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20243 Try \`$0 --help' for more information." >&5
20244 echo "$as_me: error: ambiguous option: $1
20245 Try \`$0 --help' for more information." >&2;}
20246 { (exit 1); exit 1; }; };;
20247 --help | --hel | -h )
20248 echo "$ac_cs_usage"; exit 0 ;;
20249 --debug | --d* | -d )
20251 --file | --fil | --fi | --f )
20253 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20254 ac_need_defaults=false;;
20255 --header | --heade | --head | --hea )
20257 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20258 ac_need_defaults=false;;
20259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20260 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20263 # This is an error.
20264 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20265 Try \`$0 --help' for more information." >&5
20266 echo "$as_me: error: unrecognized option: $1
20267 Try \`$0 --help' for more information." >&2;}
20268 { (exit 1); exit 1; }; } ;;
20270 *) ac_config_targets="$ac_config_targets $1" ;;
20276 ac_configure_extra_args=
20278 if $ac_cs_silent; then
20280 ac_configure_extra_args="$ac_configure_extra_args --silent"
20284 cat >>$CONFIG_STATUS <<_ACEOF
20285 if \$ac_cs_recheck; then
20286 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20287 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20292 cat >>$CONFIG_STATUS <<_ACEOF
20294 # INIT-COMMANDS section.
20297 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20303 cat >>$CONFIG_STATUS <<\_ACEOF
20304 for ac_config_target in $ac_config_targets
20306 case "$ac_config_target" in
20307 # Handling of arguments.
20308 "Doxyfile" ) CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
20309 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20310 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20311 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20312 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20313 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20314 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20315 { (exit 1); exit 1; }; };;
20319 # If the user did not use the arguments to specify the items to instantiate,
20320 # then the envvar interface is used. Set only those that are not.
20321 # We use the long form for the default assignment because of an extremely
20322 # bizarre bug on SunOS 4.1.3.
20323 if $ac_need_defaults; then
20324 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20325 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20326 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20329 # Have a temporary directory for convenience. Make it in the build tree
20330 # simply because there is no reason to put it here, and in addition,
20331 # creating and moving files from /tmp can sometimes cause problems.
20332 # Create a temporary directory, and hook for its removal unless debugging.
20335 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20336 trap '{ (exit 1); exit 1; }' 1 2 13 15
20339 # Create a (secure) tmp directory for tmp files.
20342 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20343 test -n "$tmp" && test -d "$tmp"
20346 tmp=./confstat$$-$RANDOM
20347 (umask 077 && mkdir $tmp)
20350 echo "$me: cannot create a temporary directory in ." >&2
20351 { (exit 1); exit 1; }
20356 cat >>$CONFIG_STATUS <<_ACEOF
20359 # CONFIG_FILES section.
20362 # No need to generate the scripts if there are no CONFIG_FILES.
20363 # This happens for instance when ./config.status config.h
20364 if test -n "\$CONFIG_FILES"; then
20365 # Protect against being on the right side of a sed subst in config.status.
20366 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20367 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20368 s,@SHELL@,$SHELL,;t t
20369 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20370 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20371 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20372 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20373 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20374 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20375 s,@exec_prefix@,$exec_prefix,;t t
20376 s,@prefix@,$prefix,;t t
20377 s,@program_transform_name@,$program_transform_name,;t t
20378 s,@bindir@,$bindir,;t t
20379 s,@sbindir@,$sbindir,;t t
20380 s,@libexecdir@,$libexecdir,;t t
20381 s,@datadir@,$datadir,;t t
20382 s,@sysconfdir@,$sysconfdir,;t t
20383 s,@sharedstatedir@,$sharedstatedir,;t t
20384 s,@localstatedir@,$localstatedir,;t t
20385 s,@libdir@,$libdir,;t t
20386 s,@includedir@,$includedir,;t t
20387 s,@oldincludedir@,$oldincludedir,;t t
20388 s,@infodir@,$infodir,;t t
20389 s,@mandir@,$mandir,;t t
20390 s,@build_alias@,$build_alias,;t t
20391 s,@host_alias@,$host_alias,;t t
20392 s,@target_alias@,$target_alias,;t t
20393 s,@DEFS@,$DEFS,;t t
20394 s,@ECHO_C@,$ECHO_C,;t t
20395 s,@ECHO_N@,$ECHO_N,;t t
20396 s,@ECHO_T@,$ECHO_T,;t t
20397 s,@LIBS@,$LIBS,;t t
20398 s,@build@,$build,;t t
20399 s,@build_cpu@,$build_cpu,;t t
20400 s,@build_vendor@,$build_vendor,;t t
20401 s,@build_os@,$build_os,;t t
20402 s,@host@,$host,;t t
20403 s,@host_cpu@,$host_cpu,;t t
20404 s,@host_vendor@,$host_vendor,;t t
20405 s,@host_os@,$host_os,;t t
20406 s,@target@,$target,;t t
20407 s,@target_cpu@,$target_cpu,;t t
20408 s,@target_vendor@,$target_vendor,;t t
20409 s,@target_os@,$target_os,;t t
20410 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20411 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20412 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20413 s,@CYGPATH_W@,$CYGPATH_W,;t t
20414 s,@PACKAGE@,$PACKAGE,;t t
20415 s,@VERSION@,$VERSION,;t t
20416 s,@ACLOCAL@,$ACLOCAL,;t t
20417 s,@AUTOCONF@,$AUTOCONF,;t t
20418 s,@AUTOMAKE@,$AUTOMAKE,;t t
20419 s,@AUTOHEADER@,$AUTOHEADER,;t t
20420 s,@MAKEINFO@,$MAKEINFO,;t t
20421 s,@install_sh@,$install_sh,;t t
20422 s,@STRIP@,$STRIP,;t t
20423 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20424 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20425 s,@mkdir_p@,$mkdir_p,;t t
20427 s,@SET_MAKE@,$SET_MAKE,;t t
20428 s,@am__leading_dot@,$am__leading_dot,;t t
20429 s,@AMTAR@,$AMTAR,;t t
20430 s,@am__tar@,$am__tar,;t t
20431 s,@am__untar@,$am__untar,;t t
20433 s,@CFLAGS@,$CFLAGS,;t t
20434 s,@LDFLAGS@,$LDFLAGS,;t t
20435 s,@CPPFLAGS@,$CPPFLAGS,;t t
20436 s,@ac_ct_CC@,$ac_ct_CC,;t t
20437 s,@EXEEXT@,$EXEEXT,;t t
20438 s,@OBJEXT@,$OBJEXT,;t t
20439 s,@DEPDIR@,$DEPDIR,;t t
20440 s,@am__include@,$am__include,;t t
20441 s,@am__quote@,$am__quote,;t t
20442 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20443 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20444 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20445 s,@CCDEPMODE@,$CCDEPMODE,;t t
20446 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20447 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20448 s,@EGREP@,$EGREP,;t t
20449 s,@LN_S@,$LN_S,;t t
20450 s,@ECHO@,$ECHO,;t t
20452 s,@ac_ct_AR@,$ac_ct_AR,;t t
20453 s,@RANLIB@,$RANLIB,;t t
20454 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20457 s,@CXXFLAGS@,$CXXFLAGS,;t t
20458 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20459 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20460 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20461 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20462 s,@CXXCPP@,$CXXCPP,;t t
20464 s,@FFLAGS@,$FFLAGS,;t t
20465 s,@ac_ct_F77@,$ac_ct_F77,;t t
20466 s,@LIBTOOL@,$LIBTOOL,;t t
20467 s,@LIBOBJS@,$LIBOBJS,;t t
20468 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20473 cat >>$CONFIG_STATUS <<\_ACEOF
20474 # Split the substitutions into bite-sized pieces for seds with
20475 # small command number limits, like on Digital OSF/1 and HP-UX.
20476 ac_max_sed_lines=48
20477 ac_sed_frag=1 # Number of current file.
20478 ac_beg=1 # First line for current file.
20479 ac_end=$ac_max_sed_lines # Line after last line for current file.
20482 while $ac_more_lines; do
20483 if test $ac_beg -gt 1; then
20484 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20486 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20488 if test ! -s $tmp/subs.frag; then
20489 ac_more_lines=false
20491 # The purpose of the label and of the branching condition is to
20492 # speed up the sed processing (if there are no `@' at all, there
20493 # is no need to browse any of the substitutions).
20494 # These are the two extra sed commands mentioned above.
20496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20497 if test -z "$ac_sed_cmds"; then
20498 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20500 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20502 ac_sed_frag=`expr $ac_sed_frag + 1`
20504 ac_end=`expr $ac_end + $ac_max_sed_lines`
20507 if test -z "$ac_sed_cmds"; then
20510 fi # test -n "$CONFIG_FILES"
20513 cat >>$CONFIG_STATUS <<\_ACEOF
20514 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20515 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20517 - | *:- | *:-:* ) # input from stdin
20519 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20520 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20521 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20522 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20523 * ) ac_file_in=$ac_file.in ;;
20526 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20527 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20528 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20529 X"$ac_file" : 'X\(//\)[^/]' \| \
20530 X"$ac_file" : 'X\(//\)$' \| \
20531 X"$ac_file" : 'X\(/\)' \| \
20532 . : '\(.\)' 2>/dev/null ||
20534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20535 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20536 /^X\(\/\/\)$/{ s//\1/; q; }
20537 /^X\(\/\).*/{ s//\1/; q; }
20539 { if $as_mkdir_p; then
20544 while test ! -d "$as_dir"; do
20545 as_dirs="$as_dir $as_dirs"
20546 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20547 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20548 X"$as_dir" : 'X\(//\)[^/]' \| \
20549 X"$as_dir" : 'X\(//\)$' \| \
20550 X"$as_dir" : 'X\(/\)' \| \
20551 . : '\(.\)' 2>/dev/null ||
20553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20554 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20555 /^X\(\/\/\)$/{ s//\1/; q; }
20556 /^X\(\/\).*/{ s//\1/; q; }
20559 test ! -n "$as_dirs" || mkdir $as_dirs
20560 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20561 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20562 { (exit 1); exit 1; }; }; }
20566 if test "$ac_dir" != .; then
20567 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20568 # A "../" for each directory in $ac_dir_suffix.
20569 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20571 ac_dir_suffix= ac_top_builddir=
20575 .) # No --srcdir option. We are building in place.
20577 if test -z "$ac_top_builddir"; then
20580 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20582 [\\/]* | ?:[\\/]* ) # Absolute path.
20583 ac_srcdir=$srcdir$ac_dir_suffix;
20584 ac_top_srcdir=$srcdir ;;
20585 *) # Relative path.
20586 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20587 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20590 # Do not use `cd foo && pwd` to compute absolute paths, because
20591 # the directories may not exist.
20593 .) ac_abs_builddir="$ac_dir";;
20596 .) ac_abs_builddir=`pwd`;;
20597 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20598 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20601 case $ac_abs_builddir in
20602 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20604 case ${ac_top_builddir}. in
20605 .) ac_abs_top_builddir=$ac_abs_builddir;;
20606 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20607 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20610 case $ac_abs_builddir in
20611 .) ac_abs_srcdir=$ac_srcdir;;
20614 .) ac_abs_srcdir=$ac_abs_builddir;;
20615 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20616 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20619 case $ac_abs_builddir in
20620 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20622 case $ac_top_srcdir in
20623 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20624 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20625 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20631 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20632 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20635 if test x"$ac_file" != x-; then
20636 { echo "$as_me:$LINENO: creating $ac_file" >&5
20637 echo "$as_me: creating $ac_file" >&6;}
20640 # Let's still pretend it is `configure' which instantiates (i.e., don't
20641 # use $as_me), people would be surprised to read:
20642 # /* config.h. Generated by config.status. */
20643 if test x"$ac_file" = x-; then
20646 configure_input="$ac_file. "
20648 configure_input=$configure_input"Generated from `echo $ac_file_in |
20649 sed 's,.*/,,'` by configure."
20651 # First look for the input files in the build tree, otherwise in the
20653 ac_file_inputs=`IFS=:
20654 for f in $ac_file_in; do
20656 -) echo $tmp/stdin ;;
20658 # Absolute (can't be DOS-style, as IFS=:)
20659 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20660 echo "$as_me: error: cannot find input file: $f" >&2;}
20661 { (exit 1); exit 1; }; }
20664 if test -f "$f"; then
20667 elif test -f "$srcdir/$f"; then
20672 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20673 echo "$as_me: error: cannot find input file: $f" >&2;}
20674 { (exit 1); exit 1; }; }
20677 done` || { (exit 1); exit 1; }
20679 cat >>$CONFIG_STATUS <<_ACEOF
20683 cat >>$CONFIG_STATUS <<\_ACEOF
20685 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20686 s,@configure_input@,$configure_input,;t t
20687 s,@srcdir@,$ac_srcdir,;t t
20688 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20689 s,@top_srcdir@,$ac_top_srcdir,;t t
20690 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20691 s,@builddir@,$ac_builddir,;t t
20692 s,@abs_builddir@,$ac_abs_builddir,;t t
20693 s,@top_builddir@,$ac_top_builddir,;t t
20694 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20695 s,@INSTALL@,$ac_INSTALL,;t t
20696 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20698 if test x"$ac_file" != x-; then
20699 mv $tmp/out $ac_file
20707 cat >>$CONFIG_STATUS <<\_ACEOF
20710 # CONFIG_HEADER section.
20713 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20714 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20716 # ac_d sets the value in "#define NAME VALUE" lines.
20717 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20718 ac_dB='[ ].*$,\1#\2'
20721 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20722 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20723 ac_uB='$,\1#\2define\3'
20727 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20728 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20730 - | *:- | *:-:* ) # input from stdin
20732 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20733 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20734 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20735 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20736 * ) ac_file_in=$ac_file.in ;;
20739 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20740 echo "$as_me: creating $ac_file" >&6;}
20742 # First look for the input files in the build tree, otherwise in the
20744 ac_file_inputs=`IFS=:
20745 for f in $ac_file_in; do
20747 -) echo $tmp/stdin ;;
20749 # Absolute (can't be DOS-style, as IFS=:)
20750 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20751 echo "$as_me: error: cannot find input file: $f" >&2;}
20752 { (exit 1); exit 1; }; }
20753 # Do quote $f, to prevent DOS paths from being IFS'd.
20756 if test -f "$f"; then
20759 elif test -f "$srcdir/$f"; then
20764 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20765 echo "$as_me: error: cannot find input file: $f" >&2;}
20766 { (exit 1); exit 1; }; }
20769 done` || { (exit 1); exit 1; }
20770 # Remove the trailing spaces.
20771 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20775 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20776 # `conftest.undefs', that substitutes the proper values into
20777 # config.h.in to produce config.h. The first handles `#define'
20778 # templates, and the second `#undef' templates.
20779 # And first: Protect against being on the right side of a sed subst in
20780 # config.status. Protect against being in an unquoted here document
20781 # in config.status.
20782 rm -f conftest.defines conftest.undefs
20783 # Using a here document instead of a string reduces the quoting nightmare.
20784 # Putting comments in sed scripts is not portable.
20786 # `end' is used to avoid that the second main sed command (meant for
20787 # 0-ary CPP macros) applies to n-ary macro definitions.
20788 # See the Autoconf documentation for `clear'.
20789 cat >confdef2sed.sed <<\_ACEOF
20794 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20796 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20799 # If some macros were called several times there might be several times
20800 # the same #defines, which is useless. Nevertheless, we may not want to
20801 # sort them, since we want the *last* AC-DEFINE to be honored.
20802 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20803 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20804 rm -f confdef2sed.sed
20806 # This sed command replaces #undef with comments. This is necessary, for
20807 # example, in the case of _POSIX_SOURCE, which is predefined and required
20808 # on some systems where configure will not decide to define it.
20809 cat >>conftest.undefs <<\_ACEOF
20810 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20813 # Break up conftest.defines because some shells have a limit on the size
20814 # of here documents, and old seds have small limits too (100 cmds).
20815 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20816 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20817 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20818 echo ' :' >>$CONFIG_STATUS
20819 rm -f conftest.tail
20820 while grep . conftest.defines >/dev/null
20822 # Write a limited-size here document to $tmp/defines.sed.
20823 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20824 # Speed up: don't consider the non `#define' lines.
20825 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20826 # Work around the forget-to-reset-the-flag bug.
20827 echo 't clr' >>$CONFIG_STATUS
20828 echo ': clr' >>$CONFIG_STATUS
20829 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20831 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20833 mv $tmp/out $tmp/in
20835 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20836 rm -f conftest.defines
20837 mv conftest.tail conftest.defines
20839 rm -f conftest.defines
20840 echo ' fi # grep' >>$CONFIG_STATUS
20841 echo >>$CONFIG_STATUS
20843 # Break up conftest.undefs because some shells have a limit on the size
20844 # of here documents, and old seds have small limits too (100 cmds).
20845 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20846 rm -f conftest.tail
20847 while grep . conftest.undefs >/dev/null
20849 # Write a limited-size here document to $tmp/undefs.sed.
20850 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20851 # Speed up: don't consider the non `#undef'
20852 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20853 # Work around the forget-to-reset-the-flag bug.
20854 echo 't clr' >>$CONFIG_STATUS
20855 echo ': clr' >>$CONFIG_STATUS
20856 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20858 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20860 mv $tmp/out $tmp/in
20862 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20863 rm -f conftest.undefs
20864 mv conftest.tail conftest.undefs
20866 rm -f conftest.undefs
20868 cat >>$CONFIG_STATUS <<\_ACEOF
20869 # Let's still pretend it is `configure' which instantiates (i.e., don't
20870 # use $as_me), people would be surprised to read:
20871 # /* config.h. Generated by config.status. */
20872 if test x"$ac_file" = x-; then
20873 echo "/* Generated by configure. */" >$tmp/config.h
20875 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20877 cat $tmp/in >>$tmp/config.h
20879 if test x"$ac_file" != x-; then
20880 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20881 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20882 echo "$as_me: $ac_file is unchanged" >&6;}
20884 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20885 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20886 X"$ac_file" : 'X\(//\)[^/]' \| \
20887 X"$ac_file" : 'X\(//\)$' \| \
20888 X"$ac_file" : 'X\(/\)' \| \
20889 . : '\(.\)' 2>/dev/null ||
20891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20892 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20893 /^X\(\/\/\)$/{ s//\1/; q; }
20894 /^X\(\/\).*/{ s//\1/; q; }
20896 { if $as_mkdir_p; then
20901 while test ! -d "$as_dir"; do
20902 as_dirs="$as_dir $as_dirs"
20903 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20904 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20905 X"$as_dir" : 'X\(//\)[^/]' \| \
20906 X"$as_dir" : 'X\(//\)$' \| \
20907 X"$as_dir" : 'X\(/\)' \| \
20908 . : '\(.\)' 2>/dev/null ||
20910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20911 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20912 /^X\(\/\/\)$/{ s//\1/; q; }
20913 /^X\(\/\).*/{ s//\1/; q; }
20916 test ! -n "$as_dirs" || mkdir $as_dirs
20917 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20918 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20919 { (exit 1); exit 1; }; }; }
20922 mv $tmp/config.h $ac_file
20926 rm -f $tmp/config.h
20928 # Compute $ac_file's index in $config_headers.
20930 for _am_header in $config_headers :; do
20931 case $_am_header in
20932 $ac_file | $ac_file:* )
20935 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20938 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20939 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20940 X$ac_file : 'X\(//\)[^/]' \| \
20941 X$ac_file : 'X\(//\)$' \| \
20942 X$ac_file : 'X\(/\)' \| \
20943 . : '\(.\)' 2>/dev/null ||
20945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20946 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20947 /^X\(\/\/\)$/{ s//\1/; q; }
20948 /^X\(\/\).*/{ s//\1/; q; }
20949 s/.*/./; q'`/stamp-h$_am_stamp_count
20952 cat >>$CONFIG_STATUS <<\_ACEOF
20955 # CONFIG_COMMANDS section.
20957 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20958 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20959 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20960 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20961 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20962 X"$ac_dest" : 'X\(//\)[^/]' \| \
20963 X"$ac_dest" : 'X\(//\)$' \| \
20964 X"$ac_dest" : 'X\(/\)' \| \
20965 . : '\(.\)' 2>/dev/null ||
20967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20969 /^X\(\/\/\)$/{ s//\1/; q; }
20970 /^X\(\/\).*/{ s//\1/; q; }
20972 { if $as_mkdir_p; then
20977 while test ! -d "$as_dir"; do
20978 as_dirs="$as_dir $as_dirs"
20979 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20980 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20981 X"$as_dir" : 'X\(//\)[^/]' \| \
20982 X"$as_dir" : 'X\(//\)$' \| \
20983 X"$as_dir" : 'X\(/\)' \| \
20984 . : '\(.\)' 2>/dev/null ||
20986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20987 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20988 /^X\(\/\/\)$/{ s//\1/; q; }
20989 /^X\(\/\).*/{ s//\1/; q; }
20992 test ! -n "$as_dirs" || mkdir $as_dirs
20993 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20994 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20995 { (exit 1); exit 1; }; }; }
20999 if test "$ac_dir" != .; then
21000 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21001 # A "../" for each directory in $ac_dir_suffix.
21002 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21004 ac_dir_suffix= ac_top_builddir=
21008 .) # No --srcdir option. We are building in place.
21010 if test -z "$ac_top_builddir"; then
21013 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21015 [\\/]* | ?:[\\/]* ) # Absolute path.
21016 ac_srcdir=$srcdir$ac_dir_suffix;
21017 ac_top_srcdir=$srcdir ;;
21018 *) # Relative path.
21019 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21020 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21023 # Do not use `cd foo && pwd` to compute absolute paths, because
21024 # the directories may not exist.
21026 .) ac_abs_builddir="$ac_dir";;
21029 .) ac_abs_builddir=`pwd`;;
21030 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21031 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21034 case $ac_abs_builddir in
21035 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21037 case ${ac_top_builddir}. in
21038 .) ac_abs_top_builddir=$ac_abs_builddir;;
21039 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21040 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21043 case $ac_abs_builddir in
21044 .) ac_abs_srcdir=$ac_srcdir;;
21047 .) ac_abs_srcdir=$ac_abs_builddir;;
21048 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21049 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21052 case $ac_abs_builddir in
21053 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21055 case $ac_top_srcdir in
21056 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21057 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21058 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21063 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21064 echo "$as_me: executing $ac_dest commands" >&6;}
21066 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21067 # Strip MF so we end up with the name of the file.
21068 mf=`echo "$mf" | sed -e 's/:.*$//'`
21069 # Check whether this is an Automake generated Makefile or not.
21070 # We used to match only the files named `Makefile.in', but
21071 # some people rename them; so instead we look at the file content.
21072 # Grep'ing the first line is not enough: some people post-process
21073 # each Makefile.in and add a new line on top of each file to say so.
21074 # So let's grep whole file.
21075 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21076 dirpart=`(dirname "$mf") 2>/dev/null ||
21077 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21078 X"$mf" : 'X\(//\)[^/]' \| \
21079 X"$mf" : 'X\(//\)$' \| \
21080 X"$mf" : 'X\(/\)' \| \
21081 . : '\(.\)' 2>/dev/null ||
21083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21084 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21085 /^X\(\/\/\)$/{ s//\1/; q; }
21086 /^X\(\/\).*/{ s//\1/; q; }
21091 # Extract the definition of DEPDIR, am__include, and am__quote
21092 # from the Makefile without running `make'.
21093 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21094 test -z "$DEPDIR" && continue
21095 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21096 test -z "am__include" && continue
21097 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21098 # When using ansi2knr, U may be empty or an underscore; expand it
21099 U=`sed -n 's/^U = //p' < "$mf"`
21100 # Find all dependency output files, they are included files with
21101 # $(DEPDIR) in their names. We invoke sed twice because it is the
21102 # simplest approach to changing $(DEPDIR) to its actual value in the
21104 for file in `sed -n "
21105 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21106 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21107 # Make sure the directory exists.
21108 test -f "$dirpart/$file" && continue
21109 fdir=`(dirname "$file") 2>/dev/null ||
21110 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21111 X"$file" : 'X\(//\)[^/]' \| \
21112 X"$file" : 'X\(//\)$' \| \
21113 X"$file" : 'X\(/\)' \| \
21114 . : '\(.\)' 2>/dev/null ||
21116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21117 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21118 /^X\(\/\/\)$/{ s//\1/; q; }
21119 /^X\(\/\).*/{ s//\1/; q; }
21121 { if $as_mkdir_p; then
21122 mkdir -p $dirpart/$fdir
21124 as_dir=$dirpart/$fdir
21126 while test ! -d "$as_dir"; do
21127 as_dirs="$as_dir $as_dirs"
21128 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21130 X"$as_dir" : 'X\(//\)[^/]' \| \
21131 X"$as_dir" : 'X\(//\)$' \| \
21132 X"$as_dir" : 'X\(/\)' \| \
21133 . : '\(.\)' 2>/dev/null ||
21135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21136 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21137 /^X\(\/\/\)$/{ s//\1/; q; }
21138 /^X\(\/\).*/{ s//\1/; q; }
21141 test ! -n "$as_dirs" || mkdir $as_dirs
21142 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21143 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21144 { (exit 1); exit 1; }; }; }
21146 # echo "creating $dirpart/$file"
21147 echo '# dummy' > "$dirpart/$file"
21151 default ) echo timestamp > stamp-h.in
21157 cat >>$CONFIG_STATUS <<\_ACEOF
21159 { (exit 0); exit 0; }
21161 chmod +x $CONFIG_STATUS
21162 ac_clean_files=$ac_clean_files_save
21165 # configure is writing to config.log, and then calls config.status.
21166 # config.status does its own redirection, appending to config.log.
21167 # Unfortunately, on DOS this fails, as config.log is still kept open
21168 # by configure, so config.status won't be able to write to it; its
21169 # output is simply discarded. So we exec the FD to /dev/null,
21170 # effectively closing config.log, so it can be properly (re)opened and
21171 # appended to by config.status. When coming back to configure, we
21172 # need to make the FD available again.
21173 if test "$no_create" != yes; then
21175 ac_config_status_args=
21176 test "$silent" = yes &&
21177 ac_config_status_args="$ac_config_status_args --quiet"
21179 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21181 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21182 # would make configure fail if this is the last instruction.
21183 $ac_cs_success || { (exit 1); exit 1; }