2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for suPHP 0.6.1.
5 # Report bugs to <sebastian.marsching@suphp.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
425 PACKAGE_TARNAME='suphp'
426 PACKAGE_VERSION='0.6.1'
427 PACKAGE_STRING='suPHP 0.6.1'
428 PACKAGE_BUGREPORT='sebastian.marsching@suphp.org'
430 ac_unique_file="src/Application.cpp"
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL APXS APACHE_VERSION_1_3 APACHE_VERSION_2 APXS_INCLUDEDIR APXS_LIBEXECDIR APXS_EXTRA_CFLAGS APR_INCLUDEDIR OPT_APACHEMOD_USERGROUP_DEF COND_AP13_TRUE COND_AP13_FALSE COND_AP20_TRUE COND_AP20_FALSE COND_APUSERGROUP_TRUE COND_APUSERGROUP_FALSE 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_CXX_set=${CXX+set}
926 ac_env_CXX_value=$CXX
927 ac_cv_env_CXX_set=${CXX+set}
928 ac_cv_env_CXX_value=$CXX
929 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_env_CXXFLAGS_value=$CXXFLAGS
931 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
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 suPHP 0.6.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]
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of suPHP 0.6.1:";;
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --enable-shared[=PKGS]
1031 build shared libraries [default=yes]
1032 --enable-static[=PKGS]
1033 build static libraries [default=yes]
1034 --enable-fast-install[=PKGS]
1035 optimize for fast installation [default=yes]
1036 --disable-libtool-lock avoid locking (might break parallel builds)
1037 --enable-checkpath Check if script resides in DOCUMENT_ROOT (default is
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1047 include additional configurations [automatic]
1048 --with-apr=DIR|FILE prefix for installed APR, path to APR build tree,
1049 or the full path to apr-config
1050 --with-apxs=FILE Build shared Apache module. FILE is the optional
1051 pathname to the Apache apxs tool; defaults to
1053 --with-setid-mode=MODE Mode to use for setting UID/GID. MODE can be on of
1054 "owner", "config" or "paranoid"; defaults to
1056 --with-min-uid=UID Minimum UID, which is allowed to run scripts
1058 --with-min-gid=GID Minimum GID, which is allowed to run scripts
1060 --with-apache-user=USERNAME
1061 Name of the user Apache is running as (default is
1063 --with-logfile=FILE Path to suPHP logfile (default is
1064 "/var/log/httpd/suphp_log"
1066 Some influential environment variables:
1067 CC C compiler command
1068 CFLAGS C compiler flags
1069 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1070 nonstandard directory <lib dir>
1071 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072 headers in a nonstandard directory <include dir>
1073 CXX C++ compiler command
1074 CXXFLAGS C++ compiler flags
1076 CXXCPP C++ preprocessor
1077 F77 Fortran 77 compiler command
1078 FFLAGS Fortran 77 compiler flags
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1083 Report bugs to <sebastian.marsching@suphp.org>.
1087 if test "$ac_init_help" = "recursive"; then
1088 # If there are subdirs, report their specific --help.
1090 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091 test -d $ac_dir || continue
1094 if test "$ac_dir" != .; then
1095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096 # A "../" for each directory in $ac_dir_suffix.
1097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1099 ac_dir_suffix= ac_top_builddir=
1103 .) # No --srcdir option. We are building in place.
1105 if test -z "$ac_top_builddir"; then
1108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1110 [\\/]* | ?:[\\/]* ) # Absolute path.
1111 ac_srcdir=$srcdir$ac_dir_suffix;
1112 ac_top_srcdir=$srcdir ;;
1114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118 # Do not use `cd foo && pwd` to compute absolute paths, because
1119 # the directories may not exist.
1121 .) ac_abs_builddir="$ac_dir";;
1124 .) ac_abs_builddir=`pwd`;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1132 case ${ac_top_builddir}. in
1133 .) ac_abs_top_builddir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138 case $ac_abs_builddir in
1139 .) ac_abs_srcdir=$ac_srcdir;;
1142 .) ac_abs_srcdir=$ac_abs_builddir;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1150 case $ac_top_srcdir in
1151 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1158 # Check for guested configure; otherwise get Cygnus style configure.
1159 if test -f $ac_srcdir/configure.gnu; then
1161 $SHELL $ac_srcdir/configure.gnu --help=recursive
1162 elif test -f $ac_srcdir/configure; then
1164 $SHELL $ac_srcdir/configure --help=recursive
1165 elif test -f $ac_srcdir/configure.ac ||
1166 test -f $ac_srcdir/configure.in; then
1168 $ac_configure --help
1170 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1176 test -n "$ac_init_help" && exit 0
1177 if $ac_init_version; then
1179 suPHP configure 0.6.1
1180 generated by GNU Autoconf 2.59
1182 Copyright (C) 2003 Free Software Foundation, Inc.
1183 This configure script is free software; the Free Software Foundation
1184 gives unlimited permission to copy, distribute and modify it.
1190 This file contains any messages produced by compilers while
1191 running configure, to aid debugging if configure makes a mistake.
1193 It was created by suPHP $as_me 0.6.1, which was
1194 generated by GNU Autoconf 2.59. Invocation command line was
1205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1212 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1214 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1215 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1217 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1218 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1219 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1220 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1228 test -z "$as_dir" && as_dir=.
1229 echo "PATH: $as_dir"
1244 # Keep a trace of the command line.
1245 # Strip out --no-create and --no-recursion so they do not pile up.
1246 # Strip out --silent because we don't want to record it for future runs.
1247 # Also quote any args containing shell meta-characters.
1248 # Make two passes to allow for proper duplicate-argument suppression.
1253 ac_must_keep_next=false
1259 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261 | -silent | --silent | --silen | --sile | --sil)
1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1269 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1270 if test $ac_must_keep_next = true; then
1271 ac_must_keep_next=false # Got value, back to normal.
1274 *=* | --config-cache | -C | -disable-* | --disable-* \
1275 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1276 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1277 | -with-* | --with-* | -without-* | --without-* | --x)
1278 case "$ac_configure_args0 " in
1279 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282 -* ) ac_must_keep_next=true ;;
1285 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1286 # Get rid of the leading space.
1292 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1293 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1295 # When interrupted or exit'd, cleanup temporary files, and complete
1296 # config.log. We remove comments because anyway the quotes in there
1297 # would cause problems or look ugly.
1298 # WARNING: Be sure not to use single quotes in there, as some shells,
1299 # such as our DU 5.0 friend, will then `close' the trap.
1300 trap 'exit_status=$?
1301 # Save into config.log some information that might help in debugging.
1306 ## ---------------- ##
1307 ## Cache variables. ##
1308 ## ---------------- ##
1311 # The following way of writing the cache mishandles newlines in values,
1314 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1318 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1322 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1329 ## ----------------- ##
1330 ## Output variables. ##
1331 ## ----------------- ##
1334 for ac_var in $ac_subst_vars
1336 eval ac_val=$`echo $ac_var`
1337 echo "$ac_var='"'"'$ac_val'"'"'"
1341 if test -n "$ac_subst_files"; then
1348 for ac_var in $ac_subst_files
1350 eval ac_val=$`echo $ac_var`
1351 echo "$ac_var='"'"'$ac_val'"'"'"
1356 if test -s confdefs.h; then
1363 sed "/^$/d" confdefs.h | sort
1366 test "$ac_signal" != 0 &&
1367 echo "$as_me: caught signal $ac_signal"
1368 echo "$as_me: exit $exit_status"
1370 rm -f core *.core &&
1371 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374 for ac_signal in 1 2 13 15; do
1375 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1379 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1380 rm -rf conftest* confdefs.h
1381 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384 # Predefined preprocessor variables.
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_NAME "$PACKAGE_NAME"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_STRING "$PACKAGE_STRING"
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1411 # Let the site file select an alternate cache file if it wants to.
1412 # Prefer explicitly selected file to automatically selected ones.
1413 if test -z "$CONFIG_SITE"; then
1414 if test "x$prefix" != xNONE; then
1415 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1417 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420 for ac_site_file in $CONFIG_SITE; do
1421 if test -r "$ac_site_file"; then
1422 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1423 echo "$as_me: loading site script $ac_site_file" >&6;}
1424 sed 's/^/| /' "$ac_site_file" >&5
1429 if test -r "$cache_file"; then
1430 # Some versions of bash will fail to source /dev/null (special
1431 # files actually), so we avoid doing that.
1432 if test -f "$cache_file"; then
1433 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1434 echo "$as_me: loading cache $cache_file" >&6;}
1436 [\\/]* | ?:[\\/]* ) . $cache_file;;
1437 *) . ./$cache_file;;
1441 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1442 echo "$as_me: creating cache $cache_file" >&6;}
1446 # Check that the precious variables saved in the cache have kept the same
1448 ac_cache_corrupted=false
1449 for ac_var in `(set) 2>&1 |
1450 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1451 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1452 eval ac_new_set=\$ac_env_${ac_var}_set
1453 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1454 eval ac_new_val="\$ac_env_${ac_var}_value"
1455 case $ac_old_set,$ac_new_set in
1457 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1458 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1459 ac_cache_corrupted=: ;;
1461 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1463 ac_cache_corrupted=: ;;
1466 if test "x$ac_old_val" != "x$ac_new_val"; then
1467 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1468 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1469 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1470 echo "$as_me: former value: $ac_old_val" >&2;}
1471 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1472 echo "$as_me: current value: $ac_new_val" >&2;}
1473 ac_cache_corrupted=:
1476 # Pass precious variables to config.status.
1477 if test "$ac_new_set" = set; then
1479 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1480 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1481 *) ac_arg=$ac_var=$ac_new_val ;;
1483 case " $ac_configure_args " in
1484 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1485 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1489 if $ac_cache_corrupted; then
1490 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1491 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1492 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1493 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1494 { (exit 1); exit 1; }; }
1498 ac_cpp='$CPP $CPPFLAGS'
1499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1532 for ac_dir in config $srcdir/config; do
1533 if test -f $ac_dir/install-sh; then
1535 ac_install_sh="$ac_aux_dir/install-sh -c"
1537 elif test -f $ac_dir/install.sh; then
1539 ac_install_sh="$ac_aux_dir/install.sh -c"
1541 elif test -f $ac_dir/shtool; then
1543 ac_install_sh="$ac_aux_dir/shtool install -c"
1547 if test -z "$ac_aux_dir"; then
1548 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1549 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1550 { (exit 1); exit 1; }; }
1552 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1553 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1554 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1557 am__api_version="1.4"
1558 # Find a good install program. We prefer a C program (faster),
1559 # so one script is as good as another. But avoid the broken or
1560 # incompatible versions:
1561 # SysV /etc/install, /usr/sbin/install
1562 # SunOS /usr/etc/install
1563 # IRIX /sbin/install
1565 # AmigaOS /C/install, which installs bootblocks on floppy discs
1566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1569 # OS/2's system install, which has a completely different semantic
1570 # ./install, which can be erroneously created by make from ./install.sh.
1571 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1572 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1573 if test -z "$INSTALL"; then
1574 if test "${ac_cv_path_install+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 test -z "$as_dir" && as_dir=.
1582 # Account for people who put trailing slashes in PATH elements.
1584 ./ | .// | /cC/* | \
1585 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1586 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1589 # OSF1 and SCO ODT 3.0 have their own names for install.
1590 # Don't use installbsd from OSF since it installs stuff as root
1592 for ac_prog in ginstall scoinst install; do
1593 for ac_exec_ext in '' $ac_executable_extensions; do
1594 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1595 if test $ac_prog = install &&
1596 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1597 # AIX install. It has an incompatible calling convention.
1599 elif test $ac_prog = install &&
1600 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1601 # program-specific install script used by HP pwplus--don't use.
1604 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1616 if test "${ac_cv_path_install+set}" = set; then
1617 INSTALL=$ac_cv_path_install
1619 # As a last resort, use the slow shell script. We don't cache a
1620 # path for INSTALL within a source directory, because that will
1621 # break other packages using the cache if that directory is
1622 # removed, or if the path is relative.
1623 INSTALL=$ac_install_sh
1626 echo "$as_me:$LINENO: result: $INSTALL" >&5
1627 echo "${ECHO_T}$INSTALL" >&6
1629 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1630 # It thinks the first close brace ends the variable substitution.
1631 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1633 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1635 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1637 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1638 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1641 echo timestamp > conftestfile
1642 # Do `set' in a subshell so we don't clobber the current shell's
1643 # arguments. Must try -L first in case configure is actually a
1644 # symlink; some systems play weird games with the mod time of symlinks
1645 # (eg FreeBSD returns the mod time of the symlink's containing
1648 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1649 if test "$*" = "X"; then
1651 set X `ls -t $srcdir/configure conftestfile`
1653 if test "$*" != "X $srcdir/configure conftestfile" \
1654 && test "$*" != "X conftestfile $srcdir/configure"; then
1656 # If neither matched, then we have a broken ls. This can happen
1657 # if, for instance, CONFIG_SHELL is bash and it inherits a
1658 # broken ls alias from the environment. This has actually
1659 # happened. Such a system could not be considered "sane".
1660 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1661 alias in your environment" >&5
1662 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1663 alias in your environment" >&2;}
1664 { (exit 1); exit 1; }; }
1667 test "$2" = conftestfile
1673 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1674 Check your system clock" >&5
1675 echo "$as_me: error: newly created file is older than distributed files!
1676 Check your system clock" >&2;}
1677 { (exit 1); exit 1; }; }
1680 echo "$as_me:$LINENO: result: yes" >&5
1681 echo "${ECHO_T}yes" >&6
1682 test "$program_prefix" != NONE &&
1683 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1684 # Use a double $ so make ignores it.
1685 test "$program_suffix" != NONE &&
1686 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1687 # Double any \ or $. echo might interpret backslashes.
1688 # By default was `s,x,x', remove it if useless.
1689 cat <<\_ACEOF >conftest.sed
1690 s/[\\$]/&&/g;s/;s,x,x,$//
1692 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1695 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1696 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1697 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1698 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 cat >conftest.make <<\_ACEOF
1703 @echo 'ac_maketemp="$(MAKE)"'
1705 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1706 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1707 if test -n "$ac_maketemp"; then
1708 eval ac_cv_prog_make_${ac_make}_set=yes
1710 eval ac_cv_prog_make_${ac_make}_set=no
1714 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1715 echo "$as_me:$LINENO: result: yes" >&5
1716 echo "${ECHO_T}yes" >&6
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1721 SET_MAKE="MAKE=${MAKE-make}"
1729 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1730 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1731 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1732 { (exit 1); exit 1; }; }
1735 cat >>confdefs.h <<_ACEOF
1736 #define PACKAGE "$PACKAGE"
1740 cat >>confdefs.h <<_ACEOF
1741 #define VERSION "$VERSION"
1746 missing_dir=`cd $ac_aux_dir && pwd`
1747 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1748 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1749 # Run test in a subshell; some versions of sh will print an error if
1750 # an executable is not found, even if stderr is redirected.
1751 # Redirect stdin to placate older versions of autoconf. Sigh.
1752 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1753 ACLOCAL=aclocal-${am__api_version}
1754 echo "$as_me:$LINENO: result: found" >&5
1755 echo "${ECHO_T}found" >&6
1757 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1758 echo "$as_me:$LINENO: result: missing" >&5
1759 echo "${ECHO_T}missing" >&6
1762 echo "$as_me:$LINENO: checking for working autoconf" >&5
1763 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1764 # Run test in a subshell; some versions of sh will print an error if
1765 # an executable is not found, even if stderr is redirected.
1766 # Redirect stdin to placate older versions of autoconf. Sigh.
1767 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1769 echo "$as_me:$LINENO: result: found" >&5
1770 echo "${ECHO_T}found" >&6
1772 AUTOCONF="$missing_dir/missing autoconf"
1773 echo "$as_me:$LINENO: result: missing" >&5
1774 echo "${ECHO_T}missing" >&6
1777 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1778 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1779 # Run test in a subshell; some versions of sh will print an error if
1780 # an executable is not found, even if stderr is redirected.
1781 # Redirect stdin to placate older versions of autoconf. Sigh.
1782 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1783 AUTOMAKE=automake-${am__api_version}
1784 echo "$as_me:$LINENO: result: found" >&5
1785 echo "${ECHO_T}found" >&6
1787 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1788 echo "$as_me:$LINENO: result: missing" >&5
1789 echo "${ECHO_T}missing" >&6
1792 echo "$as_me:$LINENO: checking for working autoheader" >&5
1793 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1794 # Run test in a subshell; some versions of sh will print an error if
1795 # an executable is not found, even if stderr is redirected.
1796 # Redirect stdin to placate older versions of autoconf. Sigh.
1797 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1798 AUTOHEADER=autoheader
1799 echo "$as_me:$LINENO: result: found" >&5
1800 echo "${ECHO_T}found" >&6
1802 AUTOHEADER="$missing_dir/missing autoheader"
1803 echo "$as_me:$LINENO: result: missing" >&5
1804 echo "${ECHO_T}missing" >&6
1807 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1808 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1809 # Run test in a subshell; some versions of sh will print an error if
1810 # an executable is not found, even if stderr is redirected.
1811 # Redirect stdin to placate older versions of autoconf. Sigh.
1812 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1814 echo "$as_me:$LINENO: result: found" >&5
1815 echo "${ECHO_T}found" >&6
1817 MAKEINFO="$missing_dir/missing makeinfo"
1818 echo "$as_me:$LINENO: result: missing" >&5
1819 echo "${ECHO_T}missing" >&6
1823 # Check for right directory
1825 # Config headers for automake
1827 ac_config_headers="$ac_config_headers src/config.h"
1829 ac_config_commands="$ac_config_commands default-1"
1832 # Build time sanity check
1833 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1834 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1837 echo timestamp > conftestfile
1838 # Do `set' in a subshell so we don't clobber the current shell's
1839 # arguments. Must try -L first in case configure is actually a
1840 # symlink; some systems play weird games with the mod time of symlinks
1841 # (eg FreeBSD returns the mod time of the symlink's containing
1844 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1845 if test "$*" = "X"; then
1847 set X `ls -t $srcdir/configure conftestfile`
1849 if test "$*" != "X $srcdir/configure conftestfile" \
1850 && test "$*" != "X conftestfile $srcdir/configure"; then
1852 # If neither matched, then we have a broken ls. This can happen
1853 # if, for instance, CONFIG_SHELL is bash and it inherits a
1854 # broken ls alias from the environment. This has actually
1855 # happened. Such a system could not be considered "sane".
1856 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1857 alias in your environment" >&5
1858 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1859 alias in your environment" >&2;}
1860 { (exit 1); exit 1; }; }
1863 test "$2" = conftestfile
1869 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1870 Check your system clock" >&5
1871 echo "$as_me: error: newly created file is older than distributed files!
1872 Check your system clock" >&2;}
1873 { (exit 1); exit 1; }; }
1876 echo "$as_me:$LINENO: result: yes" >&5
1877 echo "${ECHO_T}yes" >&6
1879 # Look for install program
1880 # Find a good install program. We prefer a C program (faster),
1881 # so one script is as good as another. But avoid the broken or
1882 # incompatible versions:
1883 # SysV /etc/install, /usr/sbin/install
1884 # SunOS /usr/etc/install
1885 # IRIX /sbin/install
1887 # AmigaOS /C/install, which installs bootblocks on floppy discs
1888 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1889 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1890 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1891 # OS/2's system install, which has a completely different semantic
1892 # ./install, which can be erroneously created by make from ./install.sh.
1893 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1894 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1895 if test -z "$INSTALL"; then
1896 if test "${ac_cv_path_install+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 test -z "$as_dir" && as_dir=.
1904 # Account for people who put trailing slashes in PATH elements.
1906 ./ | .// | /cC/* | \
1907 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1908 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1911 # OSF1 and SCO ODT 3.0 have their own names for install.
1912 # Don't use installbsd from OSF since it installs stuff as root
1914 for ac_prog in ginstall scoinst install; do
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1917 if test $ac_prog = install &&
1918 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1919 # AIX install. It has an incompatible calling convention.
1921 elif test $ac_prog = install &&
1922 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1923 # program-specific install script used by HP pwplus--don't use.
1926 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1938 if test "${ac_cv_path_install+set}" = set; then
1939 INSTALL=$ac_cv_path_install
1941 # As a last resort, use the slow shell script. We don't cache a
1942 # path for INSTALL within a source directory, because that will
1943 # break other packages using the cache if that directory is
1944 # removed, or if the path is relative.
1945 INSTALL=$ac_install_sh
1948 echo "$as_me:$LINENO: result: $INSTALL" >&5
1949 echo "${ECHO_T}$INSTALL" >&6
1951 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1952 # It thinks the first close brace ends the variable substitution.
1953 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1955 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1957 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1962 ac_cpp='$CPP $CPPFLAGS'
1963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1966 if test -n "$ac_tool_prefix"; then
1967 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1968 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1969 echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 if test -n "$CC"; then
1975 ac_cv_prog_CC="$CC" # Let the user override the test.
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994 if test -n "$CC"; then
1995 echo "$as_me:$LINENO: result: $CC" >&5
1996 echo "${ECHO_T}$CC" >&6
1998 echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2003 if test -z "$ac_cv_prog_CC"; then
2005 # Extract the first word of "gcc", so it can be a program name with args.
2006 set dummy gcc; ac_word=$2
2007 echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 if test -n "$ac_ct_CC"; then
2013 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 test -z "$as_dir" && as_dir=.
2020 for ac_exec_ext in '' $ac_executable_extensions; do
2021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022 ac_cv_prog_ac_ct_CC="gcc"
2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2032 if test -n "$ac_ct_CC"; then
2033 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2034 echo "${ECHO_T}$ac_ct_CC" >&6
2036 echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2045 if test -z "$CC"; then
2046 if test -n "$ac_tool_prefix"; then
2047 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2048 set dummy ${ac_tool_prefix}cc; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 if test -n "$CC"; then
2055 ac_cv_prog_CC="$CC" # Let the user override the test.
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064 ac_cv_prog_CC="${ac_tool_prefix}cc"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074 if test -n "$CC"; then
2075 echo "$as_me:$LINENO: result: $CC" >&5
2076 echo "${ECHO_T}$CC" >&6
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2083 if test -z "$ac_cv_prog_CC"; then
2085 # Extract the first word of "cc", so it can be a program name with args.
2086 set dummy cc; ac_word=$2
2087 echo "$as_me:$LINENO: checking for $ac_word" >&5
2088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2090 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 if test -n "$ac_ct_CC"; then
2093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 test -z "$as_dir" && as_dir=.
2100 for ac_exec_ext in '' $ac_executable_extensions; do
2101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2102 ac_cv_prog_ac_ct_CC="cc"
2103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112 if test -n "$ac_ct_CC"; then
2113 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114 echo "${ECHO_T}$ac_ct_CC" >&6
2116 echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6
2126 if test -z "$CC"; then
2127 # Extract the first word of "cc", so it can be a program name with args.
2128 set dummy cc; ac_word=$2
2129 echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2131 if test "${ac_cv_prog_CC+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 if test -n "$CC"; then
2135 ac_cv_prog_CC="$CC" # Let the user override the test.
2138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 test -z "$as_dir" && as_dir=.
2143 for ac_exec_ext in '' $ac_executable_extensions; do
2144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2145 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2146 ac_prog_rejected=yes
2150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156 if test $ac_prog_rejected = yes; then
2157 # We found a bogon in the path, so make sure we never use it.
2158 set dummy $ac_cv_prog_CC
2160 if test $# != 0; then
2161 # We chose a different compiler from the bogus one.
2162 # However, it has the same basename, so the bogon will be chosen
2163 # first if we set CC to just the basename; use the full file name.
2165 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2171 if test -n "$CC"; then
2172 echo "$as_me:$LINENO: result: $CC" >&5
2173 echo "${ECHO_T}$CC" >&6
2175 echo "$as_me:$LINENO: result: no" >&5
2176 echo "${ECHO_T}no" >&6
2180 if test -z "$CC"; then
2181 if test -n "$ac_tool_prefix"; then
2184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2186 echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2188 if test "${ac_cv_prog_CC+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 if test -n "$CC"; then
2192 ac_cv_prog_CC="$CC" # Let the user override the test.
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198 test -z "$as_dir" && as_dir=.
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2201 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211 if test -n "$CC"; then
2212 echo "$as_me:$LINENO: result: $CC" >&5
2213 echo "${ECHO_T}$CC" >&6
2215 echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6
2219 test -n "$CC" && break
2222 if test -z "$CC"; then
2226 # Extract the first word of "$ac_prog", so it can be a program name with args.
2227 set dummy $ac_prog; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 if test -n "$ac_ct_CC"; then
2234 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243 ac_cv_prog_ac_ct_CC="$ac_prog"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2253 if test -n "$ac_ct_CC"; then
2254 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2255 echo "${ECHO_T}$ac_ct_CC" >&6
2257 echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2261 test -n "$ac_ct_CC" && break
2270 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: no acceptable C compiler found in \$PATH
2273 See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
2276 # Provide some information about the compiler.
2277 echo "$as_me:$LINENO:" \
2278 "checking for C compiler version" >&5
2279 ac_compiler=`set X $ac_compile; echo $2`
2280 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2281 (eval $ac_compiler --version </dev/null >&5) 2>&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }
2285 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2286 (eval $ac_compiler -v </dev/null >&5) 2>&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }
2290 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2291 (eval $ac_compiler -V </dev/null >&5) 2>&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }
2296 cat >conftest.$ac_ext <<_ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2311 ac_clean_files_save=$ac_clean_files
2312 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2313 # Try to create an executable without -o first, disregard a.out.
2314 # It will help us diagnose broken compilers, and finding out an intuition
2316 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2317 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2318 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2319 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2320 (eval $ac_link_default) 2>&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; then
2324 # Find the output, starting from the most likely. This scheme is
2325 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2328 # Be careful to initialize this variable, since it used to be cached.
2329 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2331 # b.out is created by i960 compilers.
2332 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2334 test -f "$ac_file" || continue
2336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2339 # This is the source file.
2342 # We found the default executable, but exeext='' is most
2346 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2347 # FIXME: I believe we export ac_cv_exeext for Libtool,
2348 # but it would be cool to find out if it's true. Does anybody
2349 # maintain Libtool? --akim.
2357 echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.$ac_ext >&5
2360 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2361 See \`config.log' for more details." >&5
2362 echo "$as_me: error: C compiler cannot create executables
2363 See \`config.log' for more details." >&2;}
2364 { (exit 77); exit 77; }; }
2367 ac_exeext=$ac_cv_exeext
2368 echo "$as_me:$LINENO: result: $ac_file" >&5
2369 echo "${ECHO_T}$ac_file" >&6
2371 # Check the compiler produces executables we can run. If not, either
2372 # the compiler is broken, or we cross compile.
2373 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2374 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2375 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2376 # If not cross compiling, check that we can run a simple program.
2377 if test "$cross_compiling" != yes; then
2378 if { ac_try='./$ac_file'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; }; then
2386 if test "$cross_compiling" = maybe; then
2389 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2390 If you meant to cross compile, use \`--host'.
2391 See \`config.log' for more details." >&5
2392 echo "$as_me: error: cannot run C compiled programs.
2393 If you meant to cross compile, use \`--host'.
2394 See \`config.log' for more details." >&2;}
2395 { (exit 1); exit 1; }; }
2399 echo "$as_me:$LINENO: result: yes" >&5
2400 echo "${ECHO_T}yes" >&6
2402 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2403 ac_clean_files=$ac_clean_files_save
2404 # Check the compiler produces executables we can run. If not, either
2405 # the compiler is broken, or we cross compile.
2406 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2407 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2408 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2409 echo "${ECHO_T}$cross_compiling" >&6
2411 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2412 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2414 (eval $ac_link) 2>&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; then
2418 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2419 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2420 # work properly (i.e., refer to `conftest.exe'), while it won't with
2422 for ac_file in conftest.exe conftest conftest.*; do
2423 test -f "$ac_file" || continue
2425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2426 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2433 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2434 See \`config.log' for more details." >&5
2435 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2436 See \`config.log' for more details." >&2;}
2437 { (exit 1); exit 1; }; }
2440 rm -f conftest$ac_cv_exeext
2441 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2442 echo "${ECHO_T}$ac_cv_exeext" >&6
2444 rm -f conftest.$ac_ext
2445 EXEEXT=$ac_cv_exeext
2447 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2448 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2449 if test "${ac_cv_objext+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 cat >conftest.$ac_ext <<_ACEOF
2455 cat confdefs.h >>conftest.$ac_ext
2456 cat >>conftest.$ac_ext <<_ACEOF
2457 /* end confdefs.h. */
2467 rm -f conftest.o conftest.obj
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469 (eval $ac_compile) 2>&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; then
2473 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2476 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2484 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2487 See \`config.log' for more details." >&2;}
2488 { (exit 1); exit 1; }; }
2491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2493 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2494 echo "${ECHO_T}$ac_cv_objext" >&6
2495 OBJEXT=$ac_cv_objext
2497 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2498 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2499 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 cat >conftest.$ac_ext <<_ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h. */
2520 rm -f conftest.$ac_objext
2521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522 (eval $ac_compile) 2>conftest.er1
2524 grep -v '^ *+' conftest.er1 >conftest.err
2526 cat conftest.err >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; } &&
2535 { ac_try='test -s conftest.$ac_objext'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2543 echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2549 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2552 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2553 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2554 GCC=`test $ac_compiler_gnu = yes && echo yes`
2555 ac_test_CFLAGS=${CFLAGS+set}
2556 ac_save_CFLAGS=$CFLAGS
2558 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2559 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2560 if test "${ac_cv_prog_cc_g+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 cat >conftest.$ac_ext <<_ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>conftest.er1
2582 grep -v '^ *+' conftest.er1 >conftest.err
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; } &&
2593 { ac_try='test -s conftest.$ac_objext'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2608 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2609 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2610 if test "$ac_test_CFLAGS" = set; then
2611 CFLAGS=$ac_save_CFLAGS
2612 elif test $ac_cv_prog_cc_g = yes; then
2613 if test "$GCC" = yes; then
2619 if test "$GCC" = yes; then
2625 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2626 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2627 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 ac_cv_prog_cc_stdc=no
2632 cat >conftest.$ac_ext <<_ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2640 #include <sys/types.h>
2641 #include <sys/stat.h>
2642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2643 struct buf { int x; };
2644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2645 static char *e (p, i)
2651 static char *f (char * (*g) (char **, int), char **p, ...)
2656 s = g (p, va_arg (v,int));
2661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2662 function prototypes and stuff, but not '\xHH' hex character constants.
2663 These don't provoke an error unfortunately, instead are silently treated
2664 as 'x'. The following induces an error, until -std1 is added to get
2665 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2666 array size at least. It's necessary to write '\x00'==0 to get something
2667 that's true only with -std1. */
2668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2670 int test (int i, double x);
2671 struct s1 {int (*f) (int a);};
2672 struct s2 {int (*f) (double a);};
2673 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2679 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2684 # Don't try gcc -ansi; that turns off useful extensions and
2685 # breaks some systems' header files.
2686 # AIX -qlanglvl=ansi
2687 # Ultrix and OSF/1 -std1
2688 # HP-UX 10.20 and later -Ae
2689 # HP-UX older versions -Aa -D_HPUX_SOURCE
2690 # SVR4 -Xc -D__EXTENSIONS__
2691 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2693 CC="$ac_save_CC $ac_arg"
2694 rm -f conftest.$ac_objext
2695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2696 (eval $ac_compile) 2>conftest.er1
2698 grep -v '^ *+' conftest.er1 >conftest.err
2700 cat conftest.err >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } &&
2703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } &&
2709 { ac_try='test -s conftest.$ac_objext'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; }; then
2715 ac_cv_prog_cc_stdc=$ac_arg
2718 echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2722 rm -f conftest.err conftest.$ac_objext
2724 rm -f conftest.$ac_ext conftest.$ac_objext
2729 case "x$ac_cv_prog_cc_stdc" in
2731 echo "$as_me:$LINENO: result: none needed" >&5
2732 echo "${ECHO_T}none needed" >&6 ;;
2734 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2735 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2736 CC="$CC $ac_cv_prog_cc_stdc" ;;
2739 # Some people use a C++ compiler to compile C. Since we use `exit',
2740 # in C++ we need to declare it. In case someone uses the same compiler
2741 # for both compiling C and C++ we need to have the C++ compiler decide
2742 # the declaration of exit, since it's the most demanding environment.
2743 cat >conftest.$ac_ext <<_ACEOF
2748 rm -f conftest.$ac_objext
2749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2750 (eval $ac_compile) 2>conftest.er1
2752 grep -v '^ *+' conftest.er1 >conftest.err
2754 cat conftest.err >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); } &&
2757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2769 for ac_declaration in \
2771 'extern "C" void std::exit (int) throw (); using std::exit;' \
2772 'extern "C" void std::exit (int); using std::exit;' \
2773 'extern "C" void exit (int) throw ();' \
2774 'extern "C" void exit (int);' \
2777 cat >conftest.$ac_ext <<_ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h. */
2793 rm -f conftest.$ac_objext
2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795 (eval $ac_compile) 2>conftest.er1
2797 grep -v '^ *+' conftest.er1 >conftest.err
2799 cat conftest.err >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; } &&
2808 { ac_try='test -s conftest.$ac_objext'
2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; }; then
2816 echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2822 cat >conftest.$ac_ext <<_ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2837 rm -f conftest.$ac_objext
2838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2839 (eval $ac_compile) 2>conftest.er1
2841 grep -v '^ *+' conftest.er1 >conftest.err
2843 cat conftest.err >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } &&
2846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; } &&
2852 { ac_try='test -s conftest.$ac_objext'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; }; then
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2867 if test -n "$ac_declaration"; then
2868 echo '#ifdef __cplusplus' >>confdefs.h
2869 echo $ac_declaration >>confdefs.h
2870 echo '#endif' >>confdefs.h
2874 echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2880 ac_cpp='$CPP $CPPFLAGS'
2881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2886 ac_cpp='$CXXCPP $CPPFLAGS'
2887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2890 if test -n "$ac_tool_prefix"; then
2891 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2894 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2895 echo "$as_me:$LINENO: checking for $ac_word" >&5
2896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2897 if test "${ac_cv_prog_CXX+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2900 if test -n "$CXX"; then
2901 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2910 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 if test -n "$CXX"; then
2921 echo "$as_me:$LINENO: result: $CXX" >&5
2922 echo "${ECHO_T}$CXX" >&6
2924 echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6
2928 test -n "$CXX" && break
2931 if test -z "$CXX"; then
2933 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2935 # Extract the first word of "$ac_prog", so it can be a program name with args.
2936 set dummy $ac_prog; ac_word=$2
2937 echo "$as_me:$LINENO: checking for $ac_word" >&5
2938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2939 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 if test -n "$ac_ct_CXX"; then
2943 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952 ac_cv_prog_ac_ct_CXX="$ac_prog"
2953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2962 if test -n "$ac_ct_CXX"; then
2963 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2964 echo "${ECHO_T}$ac_ct_CXX" >&6
2966 echo "$as_me:$LINENO: result: no" >&5
2967 echo "${ECHO_T}no" >&6
2970 test -n "$ac_ct_CXX" && break
2972 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2978 # Provide some information about the compiler.
2979 echo "$as_me:$LINENO:" \
2980 "checking for C++ compiler version" >&5
2981 ac_compiler=`set X $ac_compile; echo $2`
2982 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2983 (eval $ac_compiler --version </dev/null >&5) 2>&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }
2987 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2988 (eval $ac_compiler -v </dev/null >&5) 2>&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }
2992 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2993 (eval $ac_compiler -V </dev/null >&5) 2>&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }
2998 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2999 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3000 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 cat >conftest.$ac_ext <<_ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3021 rm -f conftest.$ac_objext
3022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3023 (eval $ac_compile) 2>conftest.er1
3025 grep -v '^ *+' conftest.er1 >conftest.err
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } &&
3030 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; } &&
3036 { ac_try='test -s conftest.$ac_objext'
3037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; }; then
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3050 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3053 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3054 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3055 GXX=`test $ac_compiler_gnu = yes && echo yes`
3056 ac_test_CXXFLAGS=${CXXFLAGS+set}
3057 ac_save_CXXFLAGS=$CXXFLAGS
3059 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3060 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3061 if test "${ac_cv_prog_cxx_g+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 cat >conftest.$ac_ext <<_ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3079 rm -f conftest.$ac_objext
3080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3081 (eval $ac_compile) 2>conftest.er1
3083 grep -v '^ *+' conftest.er1 >conftest.err
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } &&
3088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; }; then
3100 ac_cv_prog_cxx_g=yes
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3109 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3110 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3111 if test "$ac_test_CXXFLAGS" = set; then
3112 CXXFLAGS=$ac_save_CXXFLAGS
3113 elif test $ac_cv_prog_cxx_g = yes; then
3114 if test "$GXX" = yes; then
3120 if test "$GXX" = yes; then
3126 for ac_declaration in \
3128 'extern "C" void std::exit (int) throw (); using std::exit;' \
3129 'extern "C" void std::exit (int); using std::exit;' \
3130 'extern "C" void exit (int) throw ();' \
3131 'extern "C" void exit (int);' \
3134 cat >conftest.$ac_ext <<_ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h. */
3150 rm -f conftest.$ac_objext
3151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3152 (eval $ac_compile) 2>conftest.er1
3154 grep -v '^ *+' conftest.er1 >conftest.err
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } &&
3159 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; } &&
3165 { ac_try='test -s conftest.$ac_objext'
3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; }; then
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3179 cat >conftest.$ac_ext <<_ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3194 rm -f conftest.$ac_objext
3195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3196 (eval $ac_compile) 2>conftest.er1
3198 grep -v '^ *+' conftest.er1 >conftest.err
3200 cat conftest.err >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } &&
3203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; } &&
3209 { ac_try='test -s conftest.$ac_objext'
3210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; }; then
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3224 if test -n "$ac_declaration"; then
3225 echo '#ifdef __cplusplus' >>confdefs.h
3226 echo $ac_declaration >>confdefs.h
3227 echo '#endif' >>confdefs.h
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236 # Check whether --enable-shared or --disable-shared was given.
3237 if test "${enable_shared+set}" = set; then
3238 enableval="$enable_shared"
3239 p=${PACKAGE-default}
3241 yes) enable_shared=yes ;;
3242 no) enable_shared=no ;;
3245 # Look at the argument we got. We use all the common list separators.
3246 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3247 for pkg in $enableval; do
3249 if test "X$pkg" = "X$p"; then
3260 # Check whether --enable-static or --disable-static was given.
3261 if test "${enable_static+set}" = set; then
3262 enableval="$enable_static"
3263 p=${PACKAGE-default}
3265 yes) enable_static=yes ;;
3266 no) enable_static=no ;;
3269 # Look at the argument we got. We use all the common list separators.
3270 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3271 for pkg in $enableval; do
3273 if test "X$pkg" = "X$p"; then
3284 # Check whether --enable-fast-install or --disable-fast-install was given.
3285 if test "${enable_fast_install+set}" = set; then
3286 enableval="$enable_fast_install"
3287 p=${PACKAGE-default}
3289 yes) enable_fast_install=yes ;;
3290 no) enable_fast_install=no ;;
3292 enable_fast_install=no
3293 # Look at the argument we got. We use all the common list separators.
3294 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3295 for pkg in $enableval; do
3297 if test "X$pkg" = "X$p"; then
3298 enable_fast_install=yes
3305 enable_fast_install=yes
3308 # Make sure we can run config.sub.
3309 $ac_config_sub sun4 >/dev/null 2>&1 ||
3310 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3311 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3312 { (exit 1); exit 1; }; }
3314 echo "$as_me:$LINENO: checking build system type" >&5
3315 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3316 if test "${ac_cv_build+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 ac_cv_build_alias=$build_alias
3320 test -z "$ac_cv_build_alias" &&
3321 ac_cv_build_alias=`$ac_config_guess`
3322 test -z "$ac_cv_build_alias" &&
3323 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3324 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3325 { (exit 1); exit 1; }; }
3326 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3327 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3328 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3329 { (exit 1); exit 1; }; }
3332 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3333 echo "${ECHO_T}$ac_cv_build" >&6
3335 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3336 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3337 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3340 echo "$as_me:$LINENO: checking host system type" >&5
3341 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3342 if test "${ac_cv_host+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 ac_cv_host_alias=$host_alias
3346 test -z "$ac_cv_host_alias" &&
3347 ac_cv_host_alias=$ac_cv_build_alias
3348 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3349 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3350 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3351 { (exit 1); exit 1; }; }
3354 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3355 echo "${ECHO_T}$ac_cv_host" >&6
3357 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3358 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3359 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3362 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3363 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3364 if test "${lt_cv_path_SED+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 # Loop through the user's path and test for sed and gsed.
3368 # Then use that list of sed's as ones to test for truncation.
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 test -z "$as_dir" && as_dir=.
3374 for lt_ac_prog in sed gsed; do
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3377 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3384 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3385 # along with /bin/sed that truncates output.
3386 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3387 test ! -f $lt_ac_sed && continue
3388 cat /dev/null > conftest.in
3390 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3391 # Check for GNU sed and select it if it is found.
3392 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3393 lt_cv_path_SED=$lt_ac_sed
3397 cat conftest.in conftest.in >conftest.tmp
3398 mv conftest.tmp conftest.in
3399 cp conftest.in conftest.nl
3401 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3402 cmp -s conftest.out conftest.nl || break
3403 # 10000 chars as input seems more than enough
3404 test $lt_ac_count -gt 10 && break
3405 lt_ac_count=`expr $lt_ac_count + 1`
3406 if test $lt_ac_count -gt $lt_ac_max; then
3407 lt_ac_max=$lt_ac_count
3408 lt_cv_path_SED=$lt_ac_sed
3416 echo "$as_me:$LINENO: result: $SED" >&5
3417 echo "${ECHO_T}$SED" >&6
3419 echo "$as_me:$LINENO: checking for egrep" >&5
3420 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3421 if test "${ac_cv_prog_egrep+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3425 then ac_cv_prog_egrep='grep -E'
3426 else ac_cv_prog_egrep='egrep'
3429 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3430 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3431 EGREP=$ac_cv_prog_egrep
3435 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3436 if test "${with_gnu_ld+set}" = set; then
3437 withval="$with_gnu_ld"
3438 test "$withval" = no || with_gnu_ld=yes
3443 if test "$GCC" = yes; then
3444 # Check if gcc -print-prog-name=ld gives a path.
3445 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3446 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3449 # gcc leaves a trailing carriage return which upsets mingw
3450 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3452 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3455 # Accept absolute paths.
3457 re_direlt='/[^/][^/]*/\.\./'
3458 # Canonicalize the pathname of ld
3459 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3460 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3461 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3463 test -z "$LD" && LD="$ac_prog"
3466 # If it fails, then pretend we aren't using GCC.
3470 # If it is relative, then search for the first ld in PATH.
3474 elif test "$with_gnu_ld" = yes; then
3475 echo "$as_me:$LINENO: checking for GNU ld" >&5
3476 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3478 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3479 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3481 if test "${lt_cv_path_LD+set}" = set; then
3482 echo $ECHO_N "(cached) $ECHO_C" >&6
3484 if test -z "$LD"; then
3485 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3486 for ac_dir in $PATH; do
3488 test -z "$ac_dir" && ac_dir=.
3489 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3490 lt_cv_path_LD="$ac_dir/$ac_prog"
3491 # Check to see if the program is GNU ld. I'd rather use --version,
3492 # but apparently some variants of GNU ld only accept -v.
3493 # Break only if it was the GNU/non-GNU ld that we prefer.
3494 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3495 *GNU* | *'with BFD'*)
3496 test "$with_gnu_ld" != no && break
3499 test "$with_gnu_ld" != yes && break
3506 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3511 if test -n "$LD"; then
3512 echo "$as_me:$LINENO: result: $LD" >&5
3513 echo "${ECHO_T}$LD" >&6
3515 echo "$as_me:$LINENO: result: no" >&5
3516 echo "${ECHO_T}no" >&6
3518 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3519 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3520 { (exit 1); exit 1; }; }
3521 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3522 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3523 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3527 case `$LD -v 2>&1 </dev/null` in
3528 *GNU* | *'with BFD'*)
3529 lt_cv_prog_gnu_ld=yes
3532 lt_cv_prog_gnu_ld=no
3536 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3537 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3538 with_gnu_ld=$lt_cv_prog_gnu_ld
3541 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3542 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3543 if test "${lt_cv_ld_reload_flag+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 lt_cv_ld_reload_flag='-r'
3548 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3549 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3550 reload_flag=$lt_cv_ld_reload_flag
3551 case $reload_flag in
3553 *) reload_flag=" $reload_flag" ;;
3555 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3558 if test "$GCC" = yes; then
3559 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3561 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3566 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3567 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3568 if test "${lt_cv_path_NM+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 if test -n "$NM"; then
3572 # Let the user override the test.
3575 lt_nm_to_check="${ac_tool_prefix}nm"
3576 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3577 lt_nm_to_check="$lt_nm_to_check nm"
3579 for lt_tmp_nm in $lt_nm_to_check; do
3580 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3581 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3583 test -z "$ac_dir" && ac_dir=.
3584 tmp_nm="$ac_dir/$lt_tmp_nm"
3585 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3586 # Check to see if the nm accepts a BSD-compat flag.
3587 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3588 # nm: unknown option "B" ignored
3589 # Tru64's nm complains that /dev/null is an invalid object file
3590 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3591 */dev/null* | *'Invalid file or object type'*)
3592 lt_cv_path_NM="$tmp_nm -B"
3596 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3598 lt_cv_path_NM="$tmp_nm -p"
3602 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3603 continue # so that we can try to find one that supports BSD flags
3612 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3615 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3616 echo "${ECHO_T}$lt_cv_path_NM" >&6
3619 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3620 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3622 if test "$LN_S" = "ln -s"; then
3623 echo "$as_me:$LINENO: result: yes" >&5
3624 echo "${ECHO_T}yes" >&6
3626 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3627 echo "${ECHO_T}no, using $LN_S" >&6
3630 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3631 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3632 if test "${lt_cv_deplibs_check_method+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 lt_cv_file_magic_cmd='$MAGIC_CMD'
3636 lt_cv_file_magic_test_file=
3637 lt_cv_deplibs_check_method='unknown'
3638 # Need to set the preceding variable on all platforms that support
3639 # interlibrary dependencies.
3640 # 'none' -- dependencies not supported.
3641 # `unknown' -- same as none, but documents that we really don't know.
3642 # 'pass_all' -- all dependencies passed with no checks.
3643 # 'test_compile' -- check by making test program.
3644 # 'file_magic [[regex]]' -- check by looking for files in library path
3645 # which responds to the $file_magic_cmd with a given extended regex.
3646 # If you have `file' or equivalent on your system and you're not sure
3647 # whether `pass_all' will *always* work, you probably want this one.
3651 lt_cv_deplibs_check_method=pass_all
3655 lt_cv_deplibs_check_method=pass_all
3659 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3660 lt_cv_file_magic_cmd='/usr/bin/file -L'
3661 lt_cv_file_magic_test_file=/shlib/libc.so
3665 # func_win32_libid is a shell function defined in ltmain.sh
3666 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3667 lt_cv_file_magic_cmd='func_win32_libid'
3671 # Base MSYS/MinGW do not provide the 'file' command needed by
3672 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3673 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3674 lt_cv_file_magic_cmd='$OBJDUMP -f'
3677 darwin* | rhapsody*)
3678 lt_cv_deplibs_check_method=pass_all
3681 freebsd* | kfreebsd*-gnu | dragonfly*)
3682 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3685 # Not sure whether the presence of OpenBSD here was a mistake.
3686 # Let's accept both of them until this is cleared up.
3687 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3688 lt_cv_file_magic_cmd=/usr/bin/file
3689 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3693 lt_cv_deplibs_check_method=pass_all
3698 lt_cv_deplibs_check_method=pass_all
3701 hpux10.20* | hpux11*)
3702 lt_cv_file_magic_cmd=/usr/bin/file
3705 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3706 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3709 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]'
3710 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3713 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3714 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3720 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3724 irix5* | irix6* | nonstopux*)
3726 *-32|*"-32 ") libmagic=32-bit;;
3727 *-n32|*"-n32 ") libmagic=N32;;
3728 *-64|*"-64 ") libmagic=64-bit;;
3729 *) libmagic=never-match;;
3731 lt_cv_deplibs_check_method=pass_all
3734 # This must be Linux ELF.
3736 lt_cv_deplibs_check_method=pass_all
3739 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3740 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3741 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3748 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3749 lt_cv_file_magic_cmd=/usr/bin/file
3750 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3754 lt_cv_deplibs_check_method=unknown
3758 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3759 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3765 osf3* | osf4* | osf5*)
3766 lt_cv_deplibs_check_method=pass_all
3770 lt_cv_deplibs_check_method=pass_all
3774 case $host_vendor in
3776 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]'
3777 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3780 lt_cv_deplibs_check_method=pass_all
3783 lt_cv_file_magic_cmd='/bin/file'
3784 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3787 lt_cv_file_magic_cmd='/bin/file'
3788 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3789 lt_cv_file_magic_test_file=/lib/libc.so
3792 lt_cv_deplibs_check_method=pass_all
3795 lt_cv_deplibs_check_method=pass_all
3800 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3801 lt_cv_deplibs_check_method=pass_all
3806 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3807 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3808 file_magic_cmd=$lt_cv_file_magic_cmd
3809 deplibs_check_method=$lt_cv_deplibs_check_method
3810 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3815 # If no C compiler was specified, use CC.
3818 # If no C compiler flags were specified, use CFLAGS.
3819 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3821 # Allow CC to be a program name with arguments.
3825 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3826 if test "${enable_libtool_lock+set}" = set; then
3827 enableval="$enable_libtool_lock"
3830 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3832 # Some flags need to be propagated to the compiler or linker for good
3836 # Find out which ABI we are using.
3837 echo 'int i;' > conftest.$ac_ext
3838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3839 (eval $ac_compile) 2>&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; then
3843 case `/usr/bin/file conftest.$ac_objext` in
3855 # Find out which ABI we are using.
3856 echo '#line 3856 "configure"' > conftest.$ac_ext
3857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3858 (eval $ac_compile) 2>&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; then
3862 if test "$lt_cv_prog_gnu_ld" = yes; then
3863 case `/usr/bin/file conftest.$ac_objext` in
3865 LD="${LD-ld} -melf32bsmip"
3868 LD="${LD-ld} -melf32bmipn32"
3871 LD="${LD-ld} -melf64bmip"
3875 case `/usr/bin/file conftest.$ac_objext` in
3891 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3892 # Find out which ABI we are using.
3893 echo 'int i;' > conftest.$ac_ext
3894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3895 (eval $ac_compile) 2>&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; then
3899 case `/usr/bin/file conftest.o` in
3903 LD="${LD-ld} -m elf_i386"
3905 ppc64-*linux*|powerpc64-*linux*)
3906 LD="${LD-ld} -m elf32ppclinux"
3909 LD="${LD-ld} -m elf_s390"
3912 LD="${LD-ld} -m elf32_sparc"
3919 LD="${LD-ld} -m elf_x86_64"
3921 ppc*-*linux*|powerpc*-*linux*)
3922 LD="${LD-ld} -m elf64ppc"
3925 LD="${LD-ld} -m elf64_s390"
3928 LD="${LD-ld} -m elf64_sparc"
3938 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3939 SAVE_CFLAGS="$CFLAGS"
3940 CFLAGS="$CFLAGS -belf"
3941 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3942 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3943 if test "${lt_cv_cc_needs_belf+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 ac_cpp='$CPP $CPPFLAGS'
3948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952 cat >conftest.$ac_ext <<_ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3967 rm -f conftest.$ac_objext conftest$ac_exeext
3968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3969 (eval $ac_link) 2>conftest.er1
3971 grep -v '^ *+' conftest.er1 >conftest.err
3973 cat conftest.err >&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } &&
3976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; } &&
3982 { ac_try='test -s conftest$ac_exeext'
3983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; }; then
3988 lt_cv_cc_needs_belf=yes
3990 echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3993 lt_cv_cc_needs_belf=no
3995 rm -f conftest.err conftest.$ac_objext \
3996 conftest$ac_exeext conftest.$ac_ext
3998 ac_cpp='$CPP $CPPFLAGS'
3999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4004 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4005 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4006 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4007 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4008 CFLAGS="$SAVE_CFLAGS"
4012 # Find out which ABI we are using.
4013 echo 'int i;' > conftest.$ac_ext
4014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4015 (eval $ac_compile) 2>&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; then
4019 case `/usr/bin/file conftest.o` in
4021 case $lt_cv_prog_gnu_ld in
4022 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4023 *) LD="${LD-ld} -64" ;;
4034 need_locks="$enable_libtool_lock"
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4043 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4044 # On Suns, sometimes $CPP names a directory.
4045 if test -n "$CPP" && test -d "$CPP"; then
4048 if test -z "$CPP"; then
4049 if test "${ac_cv_prog_CPP+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 # Double quotes because CPP needs to be expanded
4053 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4056 for ac_c_preproc_warn_flag in '' yes
4058 # Use a header file that comes with gcc, so configuring glibc
4059 # with a fresh cross-compiler works.
4060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4061 # <limits.h> exists even on freestanding compilers.
4062 # On the NeXT, cc -E runs the code through the compiler's parser,
4063 # not just through cpp. "Syntax error" is here to catch this case.
4064 cat >conftest.$ac_ext <<_ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4071 # include <limits.h>
4073 # include <assert.h>
4077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4080 grep -v '^ *+' conftest.er1 >conftest.err
4082 cat conftest.err >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); } >/dev/null; then
4085 if test -s conftest.err; then
4086 ac_cpp_err=$ac_c_preproc_warn_flag
4087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4094 if test -z "$ac_cpp_err"; then
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4100 # Broken: fails on valid input.
4103 rm -f conftest.err conftest.$ac_ext
4105 # OK, works on sane cases. Now check whether non-existent headers
4106 # can be detected and how.
4107 cat >conftest.$ac_ext <<_ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4113 #include <ac_nonexistent.h>
4115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4118 grep -v '^ *+' conftest.er1 >conftest.err
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } >/dev/null; then
4123 if test -s conftest.err; then
4124 ac_cpp_err=$ac_c_preproc_warn_flag
4125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4132 if test -z "$ac_cpp_err"; then
4133 # Broken: success on invalid input.
4136 echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4139 # Passes both tests.
4143 rm -f conftest.err conftest.$ac_ext
4146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4147 rm -f conftest.err conftest.$ac_ext
4148 if $ac_preproc_ok; then
4160 echo "$as_me:$LINENO: result: $CPP" >&5
4161 echo "${ECHO_T}$CPP" >&6
4163 for ac_c_preproc_warn_flag in '' yes
4165 # Use a header file that comes with gcc, so configuring glibc
4166 # with a fresh cross-compiler works.
4167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4168 # <limits.h> exists even on freestanding compilers.
4169 # On the NeXT, cc -E runs the code through the compiler's parser,
4170 # not just through cpp. "Syntax error" is here to catch this case.
4171 cat >conftest.$ac_ext <<_ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4178 # include <limits.h>
4180 # include <assert.h>
4184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4187 grep -v '^ *+' conftest.er1 >conftest.err
4189 cat conftest.err >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } >/dev/null; then
4192 if test -s conftest.err; then
4193 ac_cpp_err=$ac_c_preproc_warn_flag
4194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4201 if test -z "$ac_cpp_err"; then
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4207 # Broken: fails on valid input.
4210 rm -f conftest.err conftest.$ac_ext
4212 # OK, works on sane cases. Now check whether non-existent headers
4213 # can be detected and how.
4214 cat >conftest.$ac_ext <<_ACEOF
4217 cat confdefs.h >>conftest.$ac_ext
4218 cat >>conftest.$ac_ext <<_ACEOF
4219 /* end confdefs.h. */
4220 #include <ac_nonexistent.h>
4222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4225 grep -v '^ *+' conftest.er1 >conftest.err
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } >/dev/null; then
4230 if test -s conftest.err; then
4231 ac_cpp_err=$ac_c_preproc_warn_flag
4232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4239 if test -z "$ac_cpp_err"; then
4240 # Broken: success on invalid input.
4243 echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4246 # Passes both tests.
4250 rm -f conftest.err conftest.$ac_ext
4253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4254 rm -f conftest.err conftest.$ac_ext
4255 if $ac_preproc_ok; then
4258 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4259 See \`config.log' for more details." >&5
4260 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4261 See \`config.log' for more details." >&2;}
4262 { (exit 1); exit 1; }; }
4266 ac_cpp='$CPP $CPPFLAGS'
4267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4272 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4273 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4274 if test "${ac_cv_header_stdc+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. */
4296 rm -f conftest.$ac_objext
4297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4298 (eval $ac_compile) 2>conftest.er1
4300 grep -v '^ *+' conftest.er1 >conftest.err
4302 cat conftest.err >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; } &&
4311 { ac_try='test -s conftest.$ac_objext'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 ac_cv_header_stdc=yes
4319 echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4322 ac_cv_header_stdc=no
4324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4326 if test $ac_cv_header_stdc = yes; then
4327 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4328 cat >conftest.$ac_ext <<_ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4338 $EGREP "memchr" >/dev/null 2>&1; then
4341 ac_cv_header_stdc=no
4347 if test $ac_cv_header_stdc = yes; then
4348 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4349 cat >conftest.$ac_ext <<_ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4359 $EGREP "free" >/dev/null 2>&1; then
4362 ac_cv_header_stdc=no
4368 if test $ac_cv_header_stdc = yes; then
4369 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4370 if test "$cross_compiling" = yes; then
4373 cat >conftest.$ac_ext <<_ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4380 #if ((' ' & 0x0FF) == 0x020)
4381 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4382 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4384 # define ISLOWER(c) \
4385 (('a' <= (c) && (c) <= 'i') \
4386 || ('j' <= (c) && (c) <= 'r') \
4387 || ('s' <= (c) && (c) <= 'z'))
4388 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4391 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4396 for (i = 0; i < 256; i++)
4397 if (XOR (islower (i), ISLOWER (i))
4398 || toupper (i) != TOUPPER (i))
4403 rm -f conftest$ac_exeext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4405 (eval $ac_link) 2>&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4416 echo "$as_me: program exited with status $ac_status" >&5
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4421 ac_cv_header_stdc=no
4423 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4427 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4428 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4429 if test $ac_cv_header_stdc = yes; then
4431 cat >>confdefs.h <<\_ACEOF
4432 #define STDC_HEADERS 1
4437 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4447 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4448 inttypes.h stdint.h unistd.h
4450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4451 echo "$as_me:$LINENO: checking for $ac_header" >&5
4452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 cat >conftest.$ac_ext <<_ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 $ac_includes_default
4464 #include <$ac_header>
4466 rm -f conftest.$ac_objext
4467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4468 (eval $ac_compile) 2>conftest.er1
4470 grep -v '^ *+' conftest.er1 >conftest.err
4472 cat conftest.err >&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } &&
4475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; } &&
4481 { ac_try='test -s conftest.$ac_objext'
4482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; }; then
4487 eval "$as_ac_Header=yes"
4489 echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4492 eval "$as_ac_Header=no"
4494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4499 cat >>confdefs.h <<_ACEOF
4500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4509 for ac_header in dlfcn.h
4511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4513 echo "$as_me:$LINENO: checking for $ac_header" >&5
4514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4521 # Is the header compilable?
4522 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4524 cat >conftest.$ac_ext <<_ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 $ac_includes_default
4531 #include <$ac_header>
4533 rm -f conftest.$ac_objext
4534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4535 (eval $ac_compile) 2>conftest.er1
4537 grep -v '^ *+' conftest.er1 >conftest.err
4539 cat conftest.err >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } &&
4542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; } &&
4548 { ac_try='test -s conftest.$ac_objext'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4554 ac_header_compiler=yes
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4559 ac_header_compiler=no
4561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4563 echo "${ECHO_T}$ac_header_compiler" >&6
4565 # Is the header present?
4566 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4568 cat >conftest.$ac_ext <<_ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h. */
4574 #include <$ac_header>
4576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4579 grep -v '^ *+' conftest.er1 >conftest.err
4581 cat conftest.err >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); } >/dev/null; then
4584 if test -s conftest.err; then
4585 ac_cpp_err=$ac_c_preproc_warn_flag
4586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4593 if test -z "$ac_cpp_err"; then
4594 ac_header_preproc=yes
4596 echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4599 ac_header_preproc=no
4601 rm -f conftest.err conftest.$ac_ext
4602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4603 echo "${ECHO_T}$ac_header_preproc" >&6
4605 # So? What about this header?
4606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4612 ac_header_preproc=yes
4615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4622 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4629 ## -------------------------------------------- ##
4630 ## Report this to sebastian.marsching@suphp.org ##
4631 ## -------------------------------------------- ##
4634 sed "s/^/$as_me: WARNING: /" >&2
4637 echo "$as_me:$LINENO: checking for $ac_header" >&5
4638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 eval "$as_ac_Header=\$ac_header_preproc"
4644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4649 cat >>confdefs.h <<_ACEOF
4650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4659 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4660 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4661 (test "X$CXX" != "Xg++"))) ; then
4663 ac_cpp='$CXXCPP $CPPFLAGS'
4664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4667 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4668 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4669 if test -z "$CXXCPP"; then
4670 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 # Double quotes because CXXCPP needs to be expanded
4674 for CXXCPP in "$CXX -E" "/lib/cpp"
4677 for ac_cxx_preproc_warn_flag in '' yes
4679 # Use a header file that comes with gcc, so configuring glibc
4680 # with a fresh cross-compiler works.
4681 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4682 # <limits.h> exists even on freestanding compilers.
4683 # On the NeXT, cc -E runs the code through the compiler's parser,
4684 # not just through cpp. "Syntax error" is here to catch this case.
4685 cat >conftest.$ac_ext <<_ACEOF
4688 cat confdefs.h >>conftest.$ac_ext
4689 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h. */
4692 # include <limits.h>
4694 # include <assert.h>
4698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4701 grep -v '^ *+' conftest.er1 >conftest.err
4703 cat conftest.err >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } >/dev/null; then
4706 if test -s conftest.err; then
4707 ac_cpp_err=$ac_cxx_preproc_warn_flag
4708 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4715 if test -z "$ac_cpp_err"; then
4718 echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4721 # Broken: fails on valid input.
4724 rm -f conftest.err conftest.$ac_ext
4726 # OK, works on sane cases. Now check whether non-existent headers
4727 # can be detected and how.
4728 cat >conftest.$ac_ext <<_ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4734 #include <ac_nonexistent.h>
4736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4739 grep -v '^ *+' conftest.er1 >conftest.err
4741 cat conftest.err >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } >/dev/null; then
4744 if test -s conftest.err; then
4745 ac_cpp_err=$ac_cxx_preproc_warn_flag
4746 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4753 if test -z "$ac_cpp_err"; then
4754 # Broken: success on invalid input.
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4760 # Passes both tests.
4764 rm -f conftest.err conftest.$ac_ext
4767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4768 rm -f conftest.err conftest.$ac_ext
4769 if $ac_preproc_ok; then
4774 ac_cv_prog_CXXCPP=$CXXCPP
4777 CXXCPP=$ac_cv_prog_CXXCPP
4779 ac_cv_prog_CXXCPP=$CXXCPP
4781 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4782 echo "${ECHO_T}$CXXCPP" >&6
4784 for ac_cxx_preproc_warn_flag in '' yes
4786 # Use a header file that comes with gcc, so configuring glibc
4787 # with a fresh cross-compiler works.
4788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4789 # <limits.h> exists even on freestanding compilers.
4790 # On the NeXT, cc -E runs the code through the compiler's parser,
4791 # not just through cpp. "Syntax error" is here to catch this case.
4792 cat >conftest.$ac_ext <<_ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4799 # include <limits.h>
4801 # include <assert.h>
4805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4808 grep -v '^ *+' conftest.er1 >conftest.err
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } >/dev/null; then
4813 if test -s conftest.err; then
4814 ac_cpp_err=$ac_cxx_preproc_warn_flag
4815 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4822 if test -z "$ac_cpp_err"; then
4825 echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4828 # Broken: fails on valid input.
4831 rm -f conftest.err conftest.$ac_ext
4833 # OK, works on sane cases. Now check whether non-existent headers
4834 # can be detected and how.
4835 cat >conftest.$ac_ext <<_ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4841 #include <ac_nonexistent.h>
4843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4846 grep -v '^ *+' conftest.er1 >conftest.err
4848 cat conftest.err >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } >/dev/null; then
4851 if test -s conftest.err; then
4852 ac_cpp_err=$ac_cxx_preproc_warn_flag
4853 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4860 if test -z "$ac_cpp_err"; then
4861 # Broken: success on invalid input.
4864 echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4867 # Passes both tests.
4871 rm -f conftest.err conftest.$ac_ext
4874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4875 rm -f conftest.err conftest.$ac_ext
4876 if $ac_preproc_ok; then
4879 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4880 See \`config.log' for more details." >&5
4881 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4882 See \`config.log' for more details." >&2;}
4883 { (exit 1); exit 1; }; }
4887 ac_cpp='$CXXCPP $CPPFLAGS'
4888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4896 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4897 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4898 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4899 if test -n "$ac_tool_prefix"; then
4900 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4904 echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906 if test "${ac_cv_prog_F77+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 if test -n "$F77"; then
4910 ac_cv_prog_F77="$F77" # Let the user override the test.
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 if test -n "$F77"; then
4930 echo "$as_me:$LINENO: result: $F77" >&5
4931 echo "${ECHO_T}$F77" >&6
4933 echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4937 test -n "$F77" && break
4940 if test -z "$F77"; then
4942 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4944 # Extract the first word of "$ac_prog", so it can be a program name with args.
4945 set dummy $ac_prog; ac_word=$2
4946 echo "$as_me:$LINENO: checking for $ac_word" >&5
4947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4948 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 if test -n "$ac_ct_F77"; then
4952 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4961 ac_cv_prog_ac_ct_F77="$ac_prog"
4962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4971 if test -n "$ac_ct_F77"; then
4972 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4973 echo "${ECHO_T}$ac_ct_F77" >&6
4975 echo "$as_me:$LINENO: result: no" >&5
4976 echo "${ECHO_T}no" >&6
4979 test -n "$ac_ct_F77" && break
4986 # Provide some information about the compiler.
4987 echo "$as_me:4987:" \
4988 "checking for Fortran 77 compiler version" >&5
4989 ac_compiler=`set X $ac_compile; echo $2`
4990 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4991 (eval $ac_compiler --version </dev/null >&5) 2>&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }
4995 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4996 (eval $ac_compiler -v </dev/null >&5) 2>&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }
5000 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5001 (eval $ac_compiler -V </dev/null >&5) 2>&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }
5007 # If we don't use `.F' as extension, the preprocessor is not run on the
5008 # input file. (Note that this only needs to work for GNU compilers.)
5011 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5012 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5013 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 cat >conftest.$ac_ext <<_ACEOF
5024 rm -f conftest.$ac_objext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5026 (eval $ac_compile) 2>conftest.er1
5028 grep -v '^ *+' conftest.er1 >conftest.err
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } &&
5033 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; } &&
5039 { ac_try='test -s conftest.$ac_objext'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5053 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5056 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5057 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5059 ac_test_FFLAGS=${FFLAGS+set}
5060 ac_save_FFLAGS=$FFLAGS
5062 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5063 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5064 if test "${ac_cv_prog_f77_g+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 cat >conftest.$ac_ext <<_ACEOF
5073 rm -f conftest.$ac_objext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075 (eval $ac_compile) 2>conftest.er1
5077 grep -v '^ *+' conftest.er1 >conftest.err
5079 cat conftest.err >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
5082 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; } &&
5088 { ac_try='test -s conftest.$ac_objext'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; }; then
5094 ac_cv_prog_f77_g=yes
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5104 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5105 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5106 if test "$ac_test_FFLAGS" = set; then
5107 FFLAGS=$ac_save_FFLAGS
5108 elif test $ac_cv_prog_f77_g = yes; then
5109 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5115 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5122 G77=`test $ac_compiler_gnu = yes && echo yes`
5124 ac_cpp='$CPP $CPPFLAGS'
5125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5131 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5133 # find the maximum length of command line arguments
5134 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5135 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5136 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 # On DJGPP, this test can blow up pretty badly due to problems in libc
5145 # (any single argument exceeding 2000 bytes causes a buffer overrun
5146 # during glob expansion). Even if it were fixed, the result of this
5147 # check would be larger than it should be.
5148 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5152 # Under GNU Hurd, this test is not required because there is
5153 # no limit to the length of command line arguments.
5154 # Libtool will interpret -1 as no limit whatsoever
5155 lt_cv_sys_max_cmd_len=-1;
5159 # On Win9x/ME, this test blows up -- it succeeds, but takes
5160 # about 5 minutes as the teststring grows exponentially.
5161 # Worse, since 9x/ME are not pre-emptively multitasking,
5162 # you end up with a "frozen" computer, even though with patience
5163 # the test eventually succeeds (with a max line length of 256k).
5164 # Instead, let's just punt: use the minimum linelength reported by
5165 # all of the supported platforms: 8192 (on NT/2K/XP).
5166 lt_cv_sys_max_cmd_len=8192;
5170 # On AmigaOS with pdksh, this test takes hours, literally.
5171 # So we just punt and use a minimum line length of 8192.
5172 lt_cv_sys_max_cmd_len=8192;
5175 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5176 # This has been around since 386BSD, at least. Likely further.
5177 if test -x /sbin/sysctl; then
5178 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5179 elif test -x /usr/sbin/sysctl; then
5180 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5182 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5184 # And add a safety zone
5185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5186 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5190 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5191 lt_cv_sys_max_cmd_len=196608
5195 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5196 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5197 # nice to cause kernel panics so lets avoid the loop below.
5198 # First set a reasonable default.
5199 lt_cv_sys_max_cmd_len=16384
5201 if test -x /sbin/sysconfig; then
5202 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5203 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5208 lt_cv_sys_max_cmd_len=102400
5210 sysv5* | sco5v6* | sysv4.2uw2*)
5211 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5212 if test -n "$kargmax"; then
5213 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5215 lt_cv_sys_max_cmd_len=32768
5219 # If test is not a shell built-in, we'll probably end up computing a
5220 # maximum length that is only half of the actual maximum length, but
5222 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5223 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5224 = "XX$teststring") >/dev/null 2>&1 &&
5225 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5226 lt_cv_sys_max_cmd_len=$new_result &&
5227 test $i != 17 # 1/2 MB should be enough
5230 teststring=$teststring$teststring
5233 # Add a significant safety factor because C++ compilers can tack on massive
5234 # amounts of additional arguments before passing them to the linker.
5235 # It appears as though 1/2 is a usable value.
5236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5242 if test -n $lt_cv_sys_max_cmd_len ; then
5243 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5244 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5246 echo "$as_me:$LINENO: result: none" >&5
5247 echo "${ECHO_T}none" >&6
5253 # Check for command to grab the raw symbol name followed by C symbol from nm.
5254 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5255 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5256 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 # These are sane defaults that work on at least a few old systems.
5261 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5263 # Character class describing NM global symbol codes.
5264 symcode='[BCDEGRST]'
5266 # Regexp to match symbols that can be accessed directly from C.
5267 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5269 # Transform an extracted symbol line into a proper C declaration
5270 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5272 # Transform an extracted symbol line into symbol name and symbol address
5273 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'"
5275 # Define system-specific variables.
5280 cygwin* | mingw* | pw32*)
5281 symcode='[ABCDGISTW]'
5283 hpux*) # Its linker distinguishes data from code symbols
5284 if test "$host_cpu" = ia64; then
5285 symcode='[ABCDEGRST]'
5287 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5288 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'"
5291 if test "$host_cpu" = ia64; then
5292 symcode='[ABCDGIRSTW]'
5293 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5294 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'"
5298 symcode='[BCDEGRST]'
5301 symcode='[BCDEGQRST]'
5312 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5320 # Handle CRLF in mingw tool chain
5324 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5328 # If we're using GNU nm, then use its standard symbol codes.
5329 case `$NM -V 2>&1` in
5330 *GNU* | *'with BFD'*)
5331 symcode='[ABCDGIRSTW]' ;;
5334 # Try without a prefix undercore, then with it.
5335 for ac_symprfx in "" "_"; do
5337 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5338 symxfrm="\\1 $ac_symprfx\\2 \\2"
5340 # Write the raw and C identifiers.
5341 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5343 # Check to see that the pipe works correctly.
5347 cat > conftest.$ac_ext <<EOF
5352 void nm_test_func(){}
5356 int main(){nm_test_var='a';nm_test_func();return(0);}
5359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360 (eval $ac_compile) 2>&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; then
5364 # Now try to grab the symbols.
5366 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5367 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } && test -s "$nlist"; then
5371 # Try sorting and uniquifying the output.
5372 if sort "$nlist" | uniq > "$nlist"T; then
5373 mv -f "$nlist"T "$nlist"
5378 # Make sure that we snagged all the symbols we need.
5379 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5380 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5381 cat <<EOF > conftest.$ac_ext
5387 # Now generate the symbol file.
5388 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5390 cat <<EOF >> conftest.$ac_ext
5391 #if defined (__STDC__) && __STDC__
5392 # define lt_ptr_t void *
5394 # define lt_ptr_t char *
5398 /* The mapping between symbol names and symbols. */
5403 lt_preloaded_symbols[] =
5406 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5407 cat <<\EOF >> conftest.$ac_ext
5415 # Now try linking the two files.
5416 mv conftest.$ac_objext conftstm.$ac_objext
5417 lt_save_LIBS="$LIBS"
5418 lt_save_CFLAGS="$CFLAGS"
5419 LIBS="conftstm.$ac_objext"
5420 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5422 (eval $ac_link) 2>&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5428 LIBS="$lt_save_LIBS"
5429 CFLAGS="$lt_save_CFLAGS"
5431 echo "cannot find nm_test_func in $nlist" >&5
5434 echo "cannot find nm_test_var in $nlist" >&5
5437 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5440 echo "$progname: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5443 rm -f conftest* conftst*
5445 # Do not use the global_symbol_pipe unless it works.
5446 if test "$pipe_works" = yes; then
5449 lt_cv_sys_global_symbol_pipe=
5455 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5456 lt_cv_sys_global_symbol_to_cdecl=
5458 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5459 echo "$as_me:$LINENO: result: failed" >&5
5460 echo "${ECHO_T}failed" >&6
5462 echo "$as_me:$LINENO: result: ok" >&5
5463 echo "${ECHO_T}ok" >&6
5466 echo "$as_me:$LINENO: checking for objdir" >&5
5467 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5468 if test "${lt_cv_objdir+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 rm -f .libs 2>/dev/null
5472 mkdir .libs 2>/dev/null
5473 if test -d .libs; then
5476 # MS-DOS does not allow filenames that begin with a dot.
5479 rmdir .libs 2>/dev/null
5481 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5482 echo "${ECHO_T}$lt_cv_objdir" >&6
5483 objdir=$lt_cv_objdir
5491 # AIX sometimes has problems with the GCC collect2 program. For some
5492 # reason, if we set the COLLECT_NAMES environment variable, the problems
5493 # vanish in a puff of smoke.
5494 if test "X${COLLECT_NAMES+set}" != Xset; then
5496 export COLLECT_NAMES
5501 # Sed substitution that helps us do robust quoting. It backslashifies
5502 # metacharacters that are still active within double-quoted strings.
5503 Xsed='sed -e 1s/^X//'
5504 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5506 # Same as above, but do not quote variable references.
5507 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5509 # Sed substitution to delay expansion of an escaped shell variable in a
5510 # double_quote_subst'ed string.
5511 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5513 # Sed substitution to avoid accidental globbing in evaled expressions
5514 no_glob_subst='s/\*/\\\*/g'
5520 default_ofile=libtool
5521 can_build_shared=yes
5523 # All known linkers require a `.a' archive for static linking (except MSVC,
5524 # which needs '.lib').
5526 ltmain="$ac_aux_dir/ltmain.sh"
5527 ofile="$default_ofile"
5528 with_gnu_ld="$lt_cv_prog_gnu_ld"
5530 if test -n "$ac_tool_prefix"; then
5531 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5532 set dummy ${ac_tool_prefix}ar; ac_word=$2
5533 echo "$as_me:$LINENO: checking for $ac_word" >&5
5534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5535 if test "${ac_cv_prog_AR+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 if test -n "$AR"; then
5539 ac_cv_prog_AR="$AR" # Let the user override the test.
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_prog_AR="${ac_tool_prefix}ar"
5549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 if test -n "$AR"; then
5559 echo "$as_me:$LINENO: result: $AR" >&5
5560 echo "${ECHO_T}$AR" >&6
5562 echo "$as_me:$LINENO: result: no" >&5
5563 echo "${ECHO_T}no" >&6
5567 if test -z "$ac_cv_prog_AR"; then
5569 # Extract the first word of "ar", so it can be a program name with args.
5570 set dummy ar; ac_word=$2
5571 echo "$as_me:$LINENO: checking for $ac_word" >&5
5572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5573 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 if test -n "$ac_ct_AR"; then
5577 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_ac_ct_AR="ar"
5587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5596 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5597 if test -n "$ac_ct_AR"; then
5598 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5599 echo "${ECHO_T}$ac_ct_AR" >&6
5601 echo "$as_me:$LINENO: result: no" >&5
5602 echo "${ECHO_T}no" >&6
5610 if test -n "$ac_tool_prefix"; then
5611 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5612 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5613 echo "$as_me:$LINENO: checking for $ac_word" >&5
5614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5615 if test "${ac_cv_prog_RANLIB+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 if test -n "$RANLIB"; then
5619 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5628 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 RANLIB=$ac_cv_prog_RANLIB
5638 if test -n "$RANLIB"; then
5639 echo "$as_me:$LINENO: result: $RANLIB" >&5
5640 echo "${ECHO_T}$RANLIB" >&6
5642 echo "$as_me:$LINENO: result: no" >&5
5643 echo "${ECHO_T}no" >&6
5647 if test -z "$ac_cv_prog_RANLIB"; then
5648 ac_ct_RANLIB=$RANLIB
5649 # Extract the first word of "ranlib", so it can be a program name with args.
5650 set dummy ranlib; ac_word=$2
5651 echo "$as_me:$LINENO: checking for $ac_word" >&5
5652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5653 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 if test -n "$ac_ct_RANLIB"; then
5657 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5666 ac_cv_prog_ac_ct_RANLIB="ranlib"
5667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5673 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5676 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5677 if test -n "$ac_ct_RANLIB"; then
5678 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5679 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5681 echo "$as_me:$LINENO: result: no" >&5
5682 echo "${ECHO_T}no" >&6
5685 RANLIB=$ac_ct_RANLIB
5687 RANLIB="$ac_cv_prog_RANLIB"
5690 if test -n "$ac_tool_prefix"; then
5691 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5692 set dummy ${ac_tool_prefix}strip; ac_word=$2
5693 echo "$as_me:$LINENO: checking for $ac_word" >&5
5694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5695 if test "${ac_cv_prog_STRIP+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 if test -n "$STRIP"; then
5699 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5708 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 STRIP=$ac_cv_prog_STRIP
5718 if test -n "$STRIP"; then
5719 echo "$as_me:$LINENO: result: $STRIP" >&5
5720 echo "${ECHO_T}$STRIP" >&6
5722 echo "$as_me:$LINENO: result: no" >&5
5723 echo "${ECHO_T}no" >&6
5727 if test -z "$ac_cv_prog_STRIP"; then
5729 # Extract the first word of "strip", so it can be a program name with args.
5730 set dummy strip; ac_word=$2
5731 echo "$as_me:$LINENO: checking for $ac_word" >&5
5732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5733 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 if test -n "$ac_ct_STRIP"; then
5737 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 test -z "$as_dir" && as_dir=.
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5746 ac_cv_prog_ac_ct_STRIP="strip"
5747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5756 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5757 if test -n "$ac_ct_STRIP"; then
5758 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5759 echo "${ECHO_T}$ac_ct_STRIP" >&6
5761 echo "$as_me:$LINENO: result: no" >&5
5762 echo "${ECHO_T}no" >&6
5767 STRIP="$ac_cv_prog_STRIP"
5772 old_CFLAGS="$CFLAGS"
5774 # Set sane defaults for various variables
5775 test -z "$AR" && AR=ar
5776 test -z "$AR_FLAGS" && AR_FLAGS=cru
5777 test -z "$AS" && AS=as
5778 test -z "$CC" && CC=cc
5779 test -z "$LTCC" && LTCC=$CC
5780 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5781 test -z "$DLLTOOL" && DLLTOOL=dlltool
5782 test -z "$LD" && LD=ld
5783 test -z "$LN_S" && LN_S="ln -s"
5784 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5785 test -z "$NM" && NM=nm
5786 test -z "$SED" && SED=sed
5787 test -z "$OBJDUMP" && OBJDUMP=objdump
5788 test -z "$RANLIB" && RANLIB=:
5789 test -z "$STRIP" && STRIP=:
5790 test -z "$ac_objext" && ac_objext=o
5792 # Determine commands to create old-style static archives.
5793 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5794 old_postinstall_cmds='chmod 644 $oldlib'
5795 old_postuninstall_cmds=
5797 if test -n "$RANLIB"; then
5800 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5803 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5806 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5809 for cc_temp in $compiler""; do
5811 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5812 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5817 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5820 # Only perform the check for file, if the check method requires it
5821 case $deplibs_check_method in
5823 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5824 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5825 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5826 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5834 lt_save_MAGIC_CMD="$MAGIC_CMD"
5835 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5836 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5837 for ac_dir in $ac_dummy; do
5839 test -z "$ac_dir" && ac_dir=.
5840 if test -f $ac_dir/${ac_tool_prefix}file; then
5841 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5842 if test -n "$file_magic_test_file"; then
5843 case $deplibs_check_method in
5845 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5846 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5847 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5848 $EGREP "$file_magic_regex" > /dev/null; then
5853 *** Warning: the command libtool uses to detect shared libraries,
5854 *** $file_magic_cmd, produces output that libtool cannot recognize.
5855 *** The result is that libtool may fail to recognize shared libraries
5856 *** as such. This will affect the creation of libtool libraries that
5857 *** depend on shared libraries, but programs linked with such libtool
5858 *** libraries will work regardless of this problem. Nevertheless, you
5859 *** may want to report the problem to your system manager and/or to
5860 *** bug-libtool@gnu.org
5870 MAGIC_CMD="$lt_save_MAGIC_CMD"
5875 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5876 if test -n "$MAGIC_CMD"; then
5877 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5878 echo "${ECHO_T}$MAGIC_CMD" >&6
5880 echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6
5884 if test -z "$lt_cv_path_MAGIC_CMD"; then
5885 if test -n "$ac_tool_prefix"; then
5886 echo "$as_me:$LINENO: checking for file" >&5
5887 echo $ECHO_N "checking for file... $ECHO_C" >&6
5888 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5896 lt_save_MAGIC_CMD="$MAGIC_CMD"
5897 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5898 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5899 for ac_dir in $ac_dummy; do
5901 test -z "$ac_dir" && ac_dir=.
5902 if test -f $ac_dir/file; then
5903 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5904 if test -n "$file_magic_test_file"; then
5905 case $deplibs_check_method in
5907 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5908 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5909 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5910 $EGREP "$file_magic_regex" > /dev/null; then
5915 *** Warning: the command libtool uses to detect shared libraries,
5916 *** $file_magic_cmd, produces output that libtool cannot recognize.
5917 *** The result is that libtool may fail to recognize shared libraries
5918 *** as such. This will affect the creation of libtool libraries that
5919 *** depend on shared libraries, but programs linked with such libtool
5920 *** libraries will work regardless of this problem. Nevertheless, you
5921 *** may want to report the problem to your system manager and/or to
5922 *** bug-libtool@gnu.org
5932 MAGIC_CMD="$lt_save_MAGIC_CMD"
5937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5938 if test -n "$MAGIC_CMD"; then
5939 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5940 echo "${ECHO_T}$MAGIC_CMD" >&6
5942 echo "$as_me:$LINENO: result: no" >&5
5943 echo "${ECHO_T}no" >&6
5958 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5959 if test "${enable_libtool_lock+set}" = set; then
5960 enableval="$enable_libtool_lock"
5963 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5966 # Check whether --with-pic or --without-pic was given.
5967 if test "${with_pic+set}" = set; then
5973 test -z "$pic_mode" && pic_mode=default
5975 # Use C for the default configuration in the libtool script
5979 ac_cpp='$CPP $CPPFLAGS'
5980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5985 # Source file extension for C test sources.
5988 # Object file extension for compiled C test sources.
5992 # Code to be used in simple compile tests
5993 lt_simple_compile_test_code="int some_variable = 0;\n"
5995 # Code to be used in simple link tests
5996 lt_simple_link_test_code='int main(){return(0);}\n'
5999 # If no C compiler was specified, use CC.
6002 # If no C compiler flags were specified, use CFLAGS.
6003 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6005 # Allow CC to be a program name with arguments.
6009 # save warnings/boilerplate of simple test code
6010 ac_outfile=conftest.$ac_objext
6011 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6012 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6013 _lt_compiler_boilerplate=`cat conftest.err`
6016 ac_outfile=conftest.$ac_objext
6017 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6018 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6019 _lt_linker_boilerplate=`cat conftest.err`
6024 lt_prog_compiler_no_builtin_flag=
6026 if test "$GCC" = yes; then
6027 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6030 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6031 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6032 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 lt_cv_prog_compiler_rtti_exceptions=no
6036 ac_outfile=conftest.$ac_objext
6037 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6038 lt_compiler_flag="-fno-rtti -fno-exceptions"
6039 # Insert the option either (1) after the last *FLAGS variable, or
6040 # (2) before a word containing "conftest.", or (3) at the end.
6041 # Note that $ac_compile itself does not contain backslashes and begins
6042 # with a dollar sign (not a hyphen), so the echo should work correctly.
6043 # The option is referenced via a variable to avoid confusing sed.
6044 lt_compile=`echo "$ac_compile" | $SED \
6045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6047 -e 's:$: $lt_compiler_flag:'`
6048 (eval echo "\"\$as_me:6048: $lt_compile\"" >&5)
6049 (eval "$lt_compile" 2>conftest.err)
6051 cat conftest.err >&5
6052 echo "$as_me:6052: \$? = $ac_status" >&5
6053 if (exit $ac_status) && test -s "$ac_outfile"; then
6054 # The compiler can only warn and ignore the option if not recognized
6055 # So say no if there are warnings other than the usual output.
6056 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6058 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6059 lt_cv_prog_compiler_rtti_exceptions=yes
6065 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6066 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6068 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6069 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6076 lt_prog_compiler_wl=
6077 lt_prog_compiler_pic=
6078 lt_prog_compiler_static=
6080 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6081 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6083 if test "$GCC" = yes; then
6084 lt_prog_compiler_wl='-Wl,'
6085 lt_prog_compiler_static='-static'
6089 # All AIX code is PIC.
6090 if test "$host_cpu" = ia64; then
6091 # AIX 5 now supports IA64 processor
6092 lt_prog_compiler_static='-Bstatic'
6097 # FIXME: we need at least 68020 code to build shared libraries, but
6098 # adding the `-m68020' flag to GCC prevents building anything better,
6100 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6103 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6104 # PIC is the default for these OSes.
6107 mingw* | pw32* | os2*)
6108 # This hack is so that the source file can tell whether it is being
6109 # built for inclusion in a dll (and should export symbols for example).
6110 lt_prog_compiler_pic='-DDLL_EXPORT'
6113 darwin* | rhapsody*)
6114 # PIC is the default on this platform
6115 # Common symbols not allowed in MH_DYLIB files
6116 lt_prog_compiler_pic='-fno-common'
6120 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6121 # Instead, we relocate shared libraries at runtime.
6125 # Just because we use GCC doesn't mean we suddenly get shared libraries
6126 # on systems that don't support them.
6127 lt_prog_compiler_can_build_shared=no
6132 if test -d /usr/nec; then
6133 lt_prog_compiler_pic=-Kconform_pic
6138 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6145 lt_prog_compiler_pic='-fPIC'
6151 lt_prog_compiler_pic='-fPIC'
6155 # PORTME Check for flag to pass linker flags through the system compiler.
6158 lt_prog_compiler_wl='-Wl,'
6159 if test "$host_cpu" = ia64; then
6160 # AIX 5 now supports IA64 processor
6161 lt_prog_compiler_static='-Bstatic'
6163 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6167 # PIC is the default on this platform
6168 # Common symbols not allowed in MH_DYLIB files
6169 case $cc_basename in
6171 lt_prog_compiler_pic='-qnocommon'
6172 lt_prog_compiler_wl='-Wl,'
6177 mingw* | pw32* | os2*)
6178 # This hack is so that the source file can tell whether it is being
6179 # built for inclusion in a dll (and should export symbols for example).
6180 lt_prog_compiler_pic='-DDLL_EXPORT'
6183 hpux9* | hpux10* | hpux11*)
6184 lt_prog_compiler_wl='-Wl,'
6185 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6192 lt_prog_compiler_pic='+Z'
6195 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6196 lt_prog_compiler_static='${wl}-a ${wl}archive'
6199 irix5* | irix6* | nonstopux*)
6200 lt_prog_compiler_wl='-Wl,'
6201 # PIC (with -KPIC) is the default.
6202 lt_prog_compiler_static='-non_shared'
6206 lt_prog_compiler_pic='-KPIC'
6207 lt_prog_compiler_static='-Bstatic'
6211 case $cc_basename in
6213 lt_prog_compiler_wl='-Wl,'
6214 lt_prog_compiler_pic='-KPIC'
6215 lt_prog_compiler_static='-static'
6217 pgcc* | pgf77* | pgf90* | pgf95*)
6218 # Portland Group compilers (*not* the Pentium gcc compiler,
6219 # which looks to be a dead project)
6220 lt_prog_compiler_wl='-Wl,'
6221 lt_prog_compiler_pic='-fpic'
6222 lt_prog_compiler_static='-Bstatic'
6225 lt_prog_compiler_wl='-Wl,'
6226 # All Alpha code is PIC.
6227 lt_prog_compiler_static='-non_shared'
6232 osf3* | osf4* | osf5*)
6233 lt_prog_compiler_wl='-Wl,'
6234 # All OSF/1 code is PIC.
6235 lt_prog_compiler_static='-non_shared'
6239 lt_prog_compiler_pic='-KPIC'
6240 lt_prog_compiler_static='-Bstatic'
6241 case $cc_basename in
6243 lt_prog_compiler_wl='-Qoption ld ';;
6245 lt_prog_compiler_wl='-Wl,';;
6250 lt_prog_compiler_wl='-Qoption ld '
6251 lt_prog_compiler_pic='-PIC'
6252 lt_prog_compiler_static='-Bstatic'
6255 sysv4 | sysv4.2uw2* | sysv4.3*)
6256 lt_prog_compiler_wl='-Wl,'
6257 lt_prog_compiler_pic='-KPIC'
6258 lt_prog_compiler_static='-Bstatic'
6262 if test -d /usr/nec ;then
6263 lt_prog_compiler_pic='-Kconform_pic'
6264 lt_prog_compiler_static='-Bstatic'
6268 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6269 lt_prog_compiler_wl='-Wl,'
6270 lt_prog_compiler_pic='-KPIC'
6271 lt_prog_compiler_static='-Bstatic'
6275 lt_prog_compiler_wl='-Wl,'
6276 lt_prog_compiler_can_build_shared=no
6280 lt_prog_compiler_pic='-pic'
6281 lt_prog_compiler_static='-Bstatic'
6285 lt_prog_compiler_can_build_shared=no
6290 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6291 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6294 # Check to make sure the PIC flag actually works.
6296 if test -n "$lt_prog_compiler_pic"; then
6298 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6299 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6300 if test "${lt_prog_compiler_pic_works+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 lt_prog_compiler_pic_works=no
6304 ac_outfile=conftest.$ac_objext
6305 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6306 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6307 # Insert the option either (1) after the last *FLAGS variable, or
6308 # (2) before a word containing "conftest.", or (3) at the end.
6309 # Note that $ac_compile itself does not contain backslashes and begins
6310 # with a dollar sign (not a hyphen), so the echo should work correctly.
6311 # The option is referenced via a variable to avoid confusing sed.
6312 lt_compile=`echo "$ac_compile" | $SED \
6313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6315 -e 's:$: $lt_compiler_flag:'`
6316 (eval echo "\"\$as_me:6316: $lt_compile\"" >&5)
6317 (eval "$lt_compile" 2>conftest.err)
6319 cat conftest.err >&5
6320 echo "$as_me:6320: \$? = $ac_status" >&5
6321 if (exit $ac_status) && test -s "$ac_outfile"; then
6322 # The compiler can only warn and ignore the option if not recognized
6323 # So say no if there are warnings other than the usual output.
6324 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6326 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6327 lt_prog_compiler_pic_works=yes
6333 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6334 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6336 if test x"$lt_prog_compiler_pic_works" = xyes; then
6337 case $lt_prog_compiler_pic in
6339 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6342 lt_prog_compiler_pic=
6343 lt_prog_compiler_can_build_shared=no
6348 # For platforms which do not support PIC, -DPIC is meaningless:
6350 lt_prog_compiler_pic=
6353 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6358 # Check to make sure the static flag actually works.
6360 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6361 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6362 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6363 if test "${lt_prog_compiler_static_works+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6366 lt_prog_compiler_static_works=no
6367 save_LDFLAGS="$LDFLAGS"
6368 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6369 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6370 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6371 # The linker can only warn and ignore the option if not recognized
6372 # So say no if there are warnings
6373 if test -s conftest.err; then
6374 # Append any errors to the config.log.
6375 cat conftest.err 1>&5
6376 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6378 if diff conftest.exp conftest.er2 >/dev/null; then
6379 lt_prog_compiler_static_works=yes
6382 lt_prog_compiler_static_works=yes
6386 LDFLAGS="$save_LDFLAGS"
6389 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6390 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6392 if test x"$lt_prog_compiler_static_works" = xyes; then
6395 lt_prog_compiler_static=
6399 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6400 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6401 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 lt_cv_prog_compiler_c_o=no
6405 $rm -r conftest 2>/dev/null
6409 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6411 lt_compiler_flag="-o out/conftest2.$ac_objext"
6412 # Insert the option either (1) after the last *FLAGS variable, or
6413 # (2) before a word containing "conftest.", or (3) at the end.
6414 # Note that $ac_compile itself does not contain backslashes and begins
6415 # with a dollar sign (not a hyphen), so the echo should work correctly.
6416 lt_compile=`echo "$ac_compile" | $SED \
6417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6419 -e 's:$: $lt_compiler_flag:'`
6420 (eval echo "\"\$as_me:6420: $lt_compile\"" >&5)
6421 (eval "$lt_compile" 2>out/conftest.err)
6423 cat out/conftest.err >&5
6424 echo "$as_me:6424: \$? = $ac_status" >&5
6425 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6427 # The compiler can only warn and ignore the option if not recognized
6428 # So say no if there are warnings
6429 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6430 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6431 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6432 lt_cv_prog_compiler_c_o=yes
6437 # SGI C++ compiler will create directory out/ii_files/ for
6438 # template instantiation
6439 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6440 $rm out/* && rmdir out
6446 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6447 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6450 hard_links="nottested"
6451 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6452 # do not overwrite the value of need_locks provided by the user
6453 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6454 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6457 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6459 ln conftest.a conftest.b 2>&5 || hard_links=no
6460 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6461 echo "$as_me:$LINENO: result: $hard_links" >&5
6462 echo "${ECHO_T}$hard_links" >&6
6463 if test "$hard_links" = no; then
6464 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6465 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6472 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6473 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6476 allow_undefined_flag=
6477 enable_shared_with_static_runtimes=no
6479 archive_expsym_cmds=
6480 old_archive_From_new_cmds=
6481 old_archive_from_expsyms_cmds=
6482 export_dynamic_flag_spec=
6483 whole_archive_flag_spec=
6484 thread_safe_flag_spec=
6485 hardcode_libdir_flag_spec=
6486 hardcode_libdir_flag_spec_ld=
6487 hardcode_libdir_separator=
6490 hardcode_shlibpath_var=unsupported
6491 link_all_deplibs=unknown
6492 hardcode_automatic=no
6495 always_export_symbols=no
6496 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6497 # include_expsyms should be a list of space-separated symbols to be *always*
6498 # included in the symbol list
6500 # exclude_expsyms can be an extended regexp of symbols to exclude
6501 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6502 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6503 # as well as any symbol that contains `d'.
6504 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6505 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6506 # platforms (ab)use it in PIC code, but their linkers get confused if
6507 # the symbol is explicitly referenced. Since portable code cannot
6508 # rely on this symbol name, it's probably fine to never include it in
6509 # preloaded symbol tables.
6510 extract_expsyms_cmds=
6511 # Just being paranoid about ensuring that cc_basename is set.
6512 for cc_temp in $compiler""; do
6514 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6515 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6520 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6523 cygwin* | mingw* | pw32*)
6524 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6525 # When not using gcc, we currently assume that we are using
6526 # Microsoft Visual C++.
6527 if test "$GCC" != yes; then
6532 # we just hope/assume this is gcc and not c89 (= MSVC++)
6541 if test "$with_gnu_ld" = yes; then
6542 # If archive_cmds runs LD, not CC, wlarc should be empty
6545 # Set some defaults for GNU ld with shared library support. These
6546 # are reset later if shared libraries are not supported. Putting them
6547 # here allows them to be overridden if necessary.
6548 runpath_var=LD_RUN_PATH
6549 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6550 export_dynamic_flag_spec='${wl}--export-dynamic'
6551 # ancient GNU ld didn't support --whole-archive et. al.
6552 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6553 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6555 whole_archive_flag_spec=
6557 supports_anon_versioning=no
6558 case `$LD -v 2>/dev/null` in
6559 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6560 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6561 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6562 *\ 2.11.*) ;; # other 2.11 versions
6563 *) supports_anon_versioning=yes ;;
6566 # See if GNU ld supports shared libraries.
6568 aix3* | aix4* | aix5*)
6569 # On AIX/PPC, the GNU linker is very broken
6570 if test "$host_cpu" != ia64; then
6574 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6575 *** to be unable to reliably create shared libraries on AIX.
6576 *** Therefore, libtool is disabling shared libraries support. If you
6577 *** really care for shared libraries, you may want to modify your PATH
6578 *** so that a non-GNU linker is found, and then restart.
6585 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)'
6586 hardcode_libdir_flag_spec='-L$libdir'
6587 hardcode_minus_L=yes
6589 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6590 # that the semantics of dynamic libraries on AmigaOS, at least up
6591 # to version 4, is to share data among multiple programs linked
6592 # with the same dynamic library. Since this doesn't match the
6593 # behavior of shared libraries on other platforms, we can't use
6599 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6600 allow_undefined_flag=unsupported
6601 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6602 # support --undefined. This deserves some investigation. FIXME
6603 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6609 cygwin* | mingw* | pw32*)
6610 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6611 # as there is no search path for DLLs.
6612 hardcode_libdir_flag_spec='-L$libdir'
6613 allow_undefined_flag=unsupported
6614 always_export_symbols=no
6615 enable_shared_with_static_runtimes=yes
6616 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6618 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6619 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6620 # If the export-symbols file already is a .def file (1st line
6621 # is EXPORTS), use it as is; otherwise, prepend...
6622 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6623 cp $export_symbols $output_objdir/$soname.def;
6625 echo EXPORTS > $output_objdir/$soname.def;
6626 cat $export_symbols >> $output_objdir/$soname.def;
6628 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6636 hardcode_shlibpath_var=no
6637 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6638 export_dynamic_flag_spec='${wl}-E'
6639 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6640 # Instead, shared libraries are loaded at an image base (0x10000000 by
6641 # default) and relocated if they conflict, which is a slow very memory
6642 # consuming and fragmenting process. To avoid this, we pick a random,
6643 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6644 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6645 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6646 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6650 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6652 case $cc_basename,$host_cpu in
6653 pgcc*) # Portland Group C compiler
6654 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6655 tmp_addflag=' $pic_flag'
6657 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6658 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6659 tmp_addflag=' $pic_flag -Mnomain' ;;
6660 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6661 tmp_addflag=' -i_dynamic' ;;
6662 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6663 tmp_addflag=' -i_dynamic -nofor_main' ;;
6664 ifc* | ifort*) # Intel Fortran compiler
6665 tmp_addflag=' -nofor_main' ;;
6667 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6669 if test $supports_anon_versioning = yes; then
6670 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6671 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6672 $echo "local: *; };" >> $output_objdir/$libname.ver~
6673 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6681 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6682 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6683 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6687 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6692 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6696 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6697 *** create shared libraries on Solaris systems. Therefore, libtool
6698 *** is disabling shared libraries support. We urge you to upgrade GNU
6699 *** binutils to release 2.9.1 or newer. Another option is to modify
6700 *** your PATH or compiler configuration so that the native linker is
6701 *** used, and then restart.
6704 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6706 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6712 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6713 case `$LD -v 2>&1` in
6714 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6718 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6719 *** reliably create shared libraries on SCO systems. Therefore, libtool
6720 *** is disabling shared libraries support. We urge you to upgrade GNU
6721 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6722 *** your PATH or compiler configuration so that the native linker is
6723 *** used, and then restart.
6728 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6729 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6731 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6740 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6743 hardcode_shlibpath_var=no
6747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6749 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6756 if test "$ld_shlibs" = no; then
6758 hardcode_libdir_flag_spec=
6759 export_dynamic_flag_spec=
6760 whole_archive_flag_spec=
6763 # PORTME fill in a description of your system's linker (not GNU ld)
6766 allow_undefined_flag=unsupported
6767 always_export_symbols=yes
6768 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'
6769 # Note: this linker hardcodes the directories in LIBPATH if there
6770 # are no directories specified by -L.
6771 hardcode_minus_L=yes
6772 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6773 # Neither direct hardcoding nor static linking is supported with a
6775 hardcode_direct=unsupported
6780 if test "$host_cpu" = ia64; then
6781 # On IA64, the linker does run time linking by default, so we don't
6782 # have to do anything special.
6783 aix_use_runtimelinking=no
6784 exp_sym_flag='-Bexport'
6787 # If we're using GNU nm, then we don't want the "-C" option.
6788 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6789 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6790 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'
6792 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'
6794 aix_use_runtimelinking=no
6796 # Test if we are trying to use run time linking or normal
6797 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6798 # need to do runtime linking.
6799 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6800 for ld_flag in $LDFLAGS; do
6801 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6802 aix_use_runtimelinking=yes
6809 exp_sym_flag='-bexport'
6810 no_entry_flag='-bnoentry'
6813 # When large executables or shared objects are built, AIX ld can
6814 # have problems creating the table of contents. If linking a library
6815 # or program results in "error TOC overflow" add -mminimal-toc to
6816 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6817 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6821 hardcode_libdir_separator=':'
6822 link_all_deplibs=yes
6824 if test "$GCC" = yes; then
6825 case $host_os in aix4.[012]|aix4.[012].*)
6826 # We only want to do this on AIX 4.2 and lower, the check
6827 # below for broken collect2 doesn't work under 4.3+
6828 collect2name=`${CC} -print-prog-name=collect2`
6829 if test -f "$collect2name" && \
6830 strings "$collect2name" | grep resolve_lib_name >/dev/null
6832 # We have reworked collect2
6835 # We have old collect2
6836 hardcode_direct=unsupported
6837 # It fails to find uninstalled libraries when the uninstalled
6838 # path is not listed in the libpath. Setting hardcode_minus_L
6839 # to unsupported forces relinking
6840 hardcode_minus_L=yes
6841 hardcode_libdir_flag_spec='-L$libdir'
6842 hardcode_libdir_separator=
6846 shared_flag='-shared'
6847 if test "$aix_use_runtimelinking" = yes; then
6848 shared_flag="$shared_flag "'${wl}-G'
6852 if test "$host_cpu" = ia64; then
6853 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6854 # chokes on -Wl,-G. The following line is correct:
6857 if test "$aix_use_runtimelinking" = yes; then
6858 shared_flag='${wl}-G'
6860 shared_flag='${wl}-bM:SRE'
6865 # It seems that -bexpall does not export symbols beginning with
6866 # underscore (_), so it is better to generate a list of symbols to export.
6867 always_export_symbols=yes
6868 if test "$aix_use_runtimelinking" = yes; then
6869 # Warning - without using the other runtime loading flags (-brtl),
6870 # -berok will link without error, but may produce a broken library.
6871 allow_undefined_flag='-berok'
6872 # Determine the default libpath from the value encoded in an empty executable.
6873 cat >conftest.$ac_ext <<_ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6888 rm -f conftest.$ac_objext conftest$ac_exeext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890 (eval $ac_link) 2>conftest.er1
6892 grep -v '^ *+' conftest.er1 >conftest.err
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } &&
6897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; } &&
6903 { ac_try='test -s conftest$ac_exeext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6910 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6912 # Check for a 64-bit object if we didn't find anything.
6913 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; }
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6920 rm -f conftest.err conftest.$ac_objext \
6921 conftest$ac_exeext conftest.$ac_ext
6922 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6924 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6925 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6927 if test "$host_cpu" = ia64; then
6928 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6929 allow_undefined_flag="-z nodefs"
6930 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6932 # Determine the default libpath from the value encoded in an empty executable.
6933 cat >conftest.$ac_ext <<_ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h. */
6948 rm -f conftest.$ac_objext conftest$ac_exeext
6949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6950 (eval $ac_link) 2>conftest.er1
6952 grep -v '^ *+' conftest.er1 >conftest.err
6954 cat conftest.err >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } &&
6957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; } &&
6963 { ac_try='test -s conftest$ac_exeext'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6970 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6972 # Check for a 64-bit object if we didn't find anything.
6973 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; }
6976 echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6980 rm -f conftest.err conftest.$ac_objext \
6981 conftest$ac_exeext conftest.$ac_ext
6982 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6984 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6985 # Warning - without using the other run time loading flags,
6986 # -berok will link without error, but may produce a broken library.
6987 no_undefined_flag=' ${wl}-bernotok'
6988 allow_undefined_flag=' ${wl}-berok'
6989 # Exported symbols can be pulled into shared objects from archives
6990 whole_archive_flag_spec='$convenience'
6991 archive_cmds_need_lc=yes
6992 # This is similar to how AIX traditionally builds its shared libraries.
6993 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6999 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)'
7000 hardcode_libdir_flag_spec='-L$libdir'
7001 hardcode_minus_L=yes
7002 # see comment about different semantics on the GNU ld section
7007 export_dynamic_flag_spec=-rdynamic
7010 cygwin* | mingw* | pw32*)
7011 # When not using gcc, we currently assume that we are using
7012 # Microsoft Visual C++.
7013 # hardcode_libdir_flag_spec is actually meaningless, as there is
7014 # no search path for DLLs.
7015 hardcode_libdir_flag_spec=' '
7016 allow_undefined_flag=unsupported
7017 # Tell ltmain to make .lib files, not .a files.
7019 # Tell ltmain to make .dll files, not .so files.
7021 # FIXME: Setting linknames here is a bad hack.
7022 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7023 # The linker will automatically build a .lib file if we build a DLL.
7024 old_archive_From_new_cmds='true'
7025 # FIXME: Should let the user specify the lib program.
7026 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7027 fix_srcfile_path='`cygpath -w "$srcfile"`'
7028 enable_shared_with_static_runtimes=yes
7031 darwin* | rhapsody*)
7033 rhapsody* | darwin1.[012])
7034 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7037 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7038 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7040 case ${MACOSX_DEPLOYMENT_TARGET} in
7042 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7045 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7051 archive_cmds_need_lc=no
7053 hardcode_automatic=yes
7054 hardcode_shlibpath_var=unsupported
7055 whole_archive_flag_spec=''
7056 link_all_deplibs=yes
7057 if test "$GCC" = yes ; then
7058 output_verbose_link_cmd='echo'
7059 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7060 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7061 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7062 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}'
7063 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}'
7065 case $cc_basename in
7067 output_verbose_link_cmd='echo'
7068 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7069 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7070 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7071 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7072 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}'
7082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7083 hardcode_libdir_flag_spec='-L$libdir'
7084 hardcode_shlibpath_var=no
7091 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7092 # support. Future versions do this automatically, but an explicit c++rt0.o
7093 # does not break anything, and helps significantly (at the cost of a little
7096 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7097 hardcode_libdir_flag_spec='-R$libdir'
7099 hardcode_shlibpath_var=no
7102 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7104 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7106 hardcode_minus_L=yes
7107 hardcode_shlibpath_var=no
7110 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7111 freebsd* | dragonfly*)
7112 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7113 hardcode_libdir_flag_spec='-R$libdir'
7115 hardcode_shlibpath_var=no
7118 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
7120 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7121 hardcode_libdir_flag_spec='-R$libdir'
7123 hardcode_shlibpath_var=no
7128 if test "$GCC" = yes; then
7129 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'
7131 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'
7133 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7134 hardcode_libdir_separator=:
7137 # hardcode_minus_L: Not really in the search PATH,
7138 # but as the default location of the library.
7139 hardcode_minus_L=yes
7140 export_dynamic_flag_spec='${wl}-E'
7144 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7145 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7147 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7149 if test "$with_gnu_ld" = no; then
7150 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7151 hardcode_libdir_separator=:
7154 export_dynamic_flag_spec='${wl}-E'
7156 # hardcode_minus_L: Not really in the search PATH,
7157 # but as the default location of the library.
7158 hardcode_minus_L=yes
7163 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7166 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7169 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7172 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7178 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7181 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7184 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7188 if test "$with_gnu_ld" = no; then
7189 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7190 hardcode_libdir_separator=:
7194 hardcode_libdir_flag_spec_ld='+b $libdir'
7196 hardcode_shlibpath_var=no
7200 export_dynamic_flag_spec='${wl}-E'
7202 # hardcode_minus_L: Not really in the search PATH,
7203 # but as the default location of the library.
7204 hardcode_minus_L=yes
7210 irix5* | irix6* | nonstopux*)
7211 if test "$GCC" = yes; then
7212 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'
7214 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'
7215 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7218 hardcode_libdir_separator=:
7219 link_all_deplibs=yes
7222 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7223 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7224 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7226 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7228 hardcode_libdir_flag_spec='-R$libdir'
7230 hardcode_shlibpath_var=no
7234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7237 hardcode_libdir_separator=:
7238 hardcode_shlibpath_var=no
7243 hardcode_shlibpath_var=no
7244 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7245 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7246 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7247 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7248 export_dynamic_flag_spec='${wl}-E'
7251 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7252 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7253 hardcode_libdir_flag_spec='-R$libdir'
7256 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7257 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7264 hardcode_libdir_flag_spec='-L$libdir'
7265 hardcode_minus_L=yes
7266 allow_undefined_flag=unsupported
7267 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'
7268 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7272 if test "$GCC" = yes; then
7273 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7274 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'
7276 allow_undefined_flag=' -expect_unresolved \*'
7277 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'
7279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7280 hardcode_libdir_separator=:
7283 osf4* | osf5*) # as osf3* with the addition of -msym flag
7284 if test "$GCC" = yes; then
7285 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7286 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'
7287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7289 allow_undefined_flag=' -expect_unresolved \*'
7290 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'
7291 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7292 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7294 # Both c and cxx compiler support -rpath directly
7295 hardcode_libdir_flag_spec='-rpath $libdir'
7297 hardcode_libdir_separator=:
7301 no_undefined_flag=' -z text'
7302 if test "$GCC" = yes; then
7304 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7305 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7306 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7309 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7310 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7311 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7313 hardcode_libdir_flag_spec='-R$libdir'
7314 hardcode_shlibpath_var=no
7316 solaris2.[0-5] | solaris2.[0-5].*) ;;
7318 # The compiler driver will combine linker options so we
7319 # cannot just pass the convience library names through
7320 # without $wl, iff we do not link with $LD.
7321 # Luckily, gcc supports the same syntax we need for Sun Studio.
7322 # Supported since Solaris 2.6 (maybe 2.5.1?)
7325 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7327 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7330 link_all_deplibs=yes
7334 if test "x$host_vendor" = xsequent; then
7335 # Use $CC to link under sequent, because it throws in some extra .o
7336 # files that make .init and .fini sections work.
7337 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7339 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7341 hardcode_libdir_flag_spec='-L$libdir'
7343 hardcode_minus_L=yes
7344 hardcode_shlibpath_var=no
7348 case $host_vendor in
7350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7351 hardcode_direct=yes # is this really true???
7354 ## LD is ld it makes a PLAMLIB
7355 ## CC just makes a GrossModule.
7356 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7357 reload_cmds='$CC -r -o $output$reload_objs'
7361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7362 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7365 runpath_var='LD_RUN_PATH'
7366 hardcode_shlibpath_var=no
7370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7371 hardcode_shlibpath_var=no
7372 export_dynamic_flag_spec='-Bexport'
7376 if test -d /usr/nec; then
7377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7378 hardcode_shlibpath_var=no
7379 runpath_var=LD_RUN_PATH
7380 hardcode_runpath_var=yes
7385 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7386 no_undefined_flag='${wl}-z,text'
7387 archive_cmds_need_lc=no
7388 hardcode_shlibpath_var=no
7389 runpath_var='LD_RUN_PATH'
7391 if test "$GCC" = yes; then
7392 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7393 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7395 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7396 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7400 sysv5* | sco3.2v5* | sco5v6*)
7401 # Note: We can NOT use -z defs as we might desire, because we do not
7402 # link with -lc, and that would cause any symbols used from libc to
7403 # always be unresolved, which means just about no library would
7404 # ever link correctly. If we're not using GNU ld we use -z text
7405 # though, which does catch some bad symbols but isn't as heavy-handed
7407 no_undefined_flag='${wl}-z,text'
7408 allow_undefined_flag='${wl}-z,nodefs'
7409 archive_cmds_need_lc=no
7410 hardcode_shlibpath_var=no
7411 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7412 hardcode_libdir_separator=':'
7413 link_all_deplibs=yes
7414 export_dynamic_flag_spec='${wl}-Bexport'
7415 runpath_var='LD_RUN_PATH'
7417 if test "$GCC" = yes; then
7418 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7419 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7421 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7422 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7428 hardcode_libdir_flag_spec='-L$libdir'
7429 hardcode_shlibpath_var=no
7438 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7439 echo "${ECHO_T}$ld_shlibs" >&6
7440 test "$ld_shlibs" = no && can_build_shared=no
7443 # Do we need to explicitly link libc?
7445 case "x$archive_cmds_need_lc" in
7447 # Assume -lc should be added
7448 archive_cmds_need_lc=yes
7450 if test "$enable_shared" = yes && test "$GCC" = yes; then
7451 case $archive_cmds in
7453 # FIXME: we may have to deal with multi-command sequences.
7456 # Test whether the compiler implicitly links with -lc since on some
7457 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7458 # to ld, don't add -lc before -lgcc.
7459 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7460 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7462 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7465 (eval $ac_compile) 2>&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } 2>conftest.err; then
7471 libobjs=conftest.$ac_objext
7473 wl=$lt_prog_compiler_wl
7474 pic_flag=$lt_prog_compiler_pic
7480 lt_save_allow_undefined_flag=$allow_undefined_flag
7481 allow_undefined_flag=
7482 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7483 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); }
7488 archive_cmds_need_lc=no
7490 archive_cmds_need_lc=yes
7492 allow_undefined_flag=$lt_save_allow_undefined_flag
7494 cat conftest.err 1>&5
7497 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7498 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7505 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7506 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7508 libname_spec='lib$name'
7516 shlibpath_overrides_runpath=unknown
7518 dynamic_linker="$host_os ld.so"
7519 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7520 if test "$GCC" = yes; then
7521 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7522 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7523 # if the path contains ";" then we assume it to be the separator
7524 # otherwise default to the standard path separator (i.e. ":") - it is
7525 # assumed that no part of a normal pathname contains ";" but that should
7526 # okay in the real world where ";" in dirpaths is itself problematic.
7527 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7532 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7534 need_lib_prefix=unknown
7535 hardcode_into_libs=no
7537 # when you set need_version to no, make sure it does not cause -set_version
7538 # flags to be left without arguments
7539 need_version=unknown
7544 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7545 shlibpath_var=LIBPATH
7547 # AIX 3 has no versioning support, so we append a major version to the name.
7548 soname_spec='${libname}${release}${shared_ext}$major'
7555 hardcode_into_libs=yes
7556 if test "$host_cpu" = ia64; then
7557 # AIX 5 supports IA64
7558 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7559 shlibpath_var=LD_LIBRARY_PATH
7561 # With GCC up to 2.95.x, collect2 would create an import file
7562 # for dependence libraries. The import file would start with
7563 # the line `#! .'. This would cause the generated library to
7564 # depend on `.', always an invalid library. This was fixed in
7565 # development snapshots of GCC prior to 3.0.
7567 aix4 | aix4.[01] | aix4.[01].*)
7568 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7570 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7577 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7578 # soname into executable. Probably we can add versioning support to
7579 # collect2, so additional links can be useful in future.
7580 if test "$aix_use_runtimelinking" = yes; then
7581 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7582 # instead of lib<name>.a to let people know that these are not
7583 # typical AIX shared libraries.
7584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7586 # We preserve .a as extension for shared libraries through AIX4.2
7587 # and later when we are not doing run time linking.
7588 library_names_spec='${libname}${release}.a $libname.a'
7589 soname_spec='${libname}${release}${shared_ext}$major'
7591 shlibpath_var=LIBPATH
7596 library_names_spec='$libname.ixlibrary $libname.a'
7597 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7598 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'
7602 library_names_spec='${libname}${shared_ext}'
7603 dynamic_linker="$host_os ld.so"
7604 shlibpath_var=LIBRARY_PATH
7610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7611 soname_spec='${libname}${release}${shared_ext}$major'
7612 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7613 shlibpath_var=LD_LIBRARY_PATH
7614 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7615 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7616 # the default ld.so.conf also contains /usr/contrib/lib and
7617 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7618 # libtool to hard-code these into programs
7621 cygwin* | mingw* | pw32*)
7622 version_type=windows
7627 case $GCC,$host_os in
7628 yes,cygwin* | yes,mingw* | yes,pw32*)
7629 library_names_spec='$libname.dll.a'
7630 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7631 postinstall_cmds='base_file=`basename \${file}`~
7632 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7633 dldir=$destdir/`dirname \$dlpath`~
7634 test -d \$dldir || mkdir -p \$dldir~
7635 $install_prog $dir/$dlname \$dldir/$dlname~
7636 chmod a+x \$dldir/$dlname'
7637 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7638 dlpath=$dir/\$dldll~
7640 shlibpath_overrides_runpath=yes
7644 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7645 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7646 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7649 # MinGW DLLs use traditional 'lib' prefix
7650 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7651 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7652 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7653 # It is most probably a Windows format PATH printed by
7654 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7655 # path with ; separators, and with drive letters. We can handle the
7656 # drive letters (cygwin fileutils understands them), so leave them,
7657 # especially as we might pass files found there to a mingw objdump,
7658 # which wouldn't understand a cygwinified path. Ahh.
7659 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7661 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7665 # pw32 DLLs use 'pw' prefix rather than 'lib'
7666 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7672 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7675 dynamic_linker='Win32 ld.exe'
7676 # FIXME: first we should search . and the directory the executable is in
7680 darwin* | rhapsody*)
7681 dynamic_linker="$host_os dyld"
7685 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7686 soname_spec='${libname}${release}${major}$shared_ext'
7687 shlibpath_overrides_runpath=yes
7688 shlibpath_var=DYLD_LIBRARY_PATH
7689 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7690 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7691 if test "$GCC" = yes; then
7692 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"`
7694 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7696 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7704 soname_spec='${libname}${release}${shared_ext}$major'
7705 shlibpath_var=LD_LIBRARY_PATH
7716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7717 soname_spec='${libname}${release}${shared_ext}$major'
7718 shlibpath_var=LD_LIBRARY_PATH
7719 shlibpath_overrides_runpath=no
7720 hardcode_into_libs=yes
7721 dynamic_linker='GNU ld.so'
7724 freebsd* | dragonfly*)
7725 # DragonFly does not have aout. When/if they implement a new
7726 # versioning mechanism, adjust this.
7727 if test -x /usr/bin/objformat; then
7728 objformat=`/usr/bin/objformat`
7731 freebsd[123]*) objformat=aout ;;
7735 version_type=freebsd-$objformat
7736 case $version_type in
7738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7743 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7747 shlibpath_var=LD_LIBRARY_PATH
7750 shlibpath_overrides_runpath=yes
7752 freebsd3.[01]* | freebsdelf3.[01]*)
7753 shlibpath_overrides_runpath=yes
7754 hardcode_into_libs=yes
7756 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7757 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7758 shlibpath_overrides_runpath=no
7759 hardcode_into_libs=yes
7761 freebsd*) # from 4.6 on
7762 shlibpath_overrides_runpath=yes
7763 hardcode_into_libs=yes
7772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7773 soname_spec='${libname}${release}${shared_ext}$major'
7774 shlibpath_var=LD_LIBRARY_PATH
7775 hardcode_into_libs=yes
7778 hpux9* | hpux10* | hpux11*)
7779 # Give a soname corresponding to the major version so that dld.sl refuses to
7780 # link against other versions.
7787 hardcode_into_libs=yes
7788 dynamic_linker="$host_os dld.so"
7789 shlibpath_var=LD_LIBRARY_PATH
7790 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7792 soname_spec='${libname}${release}${shared_ext}$major'
7793 if test "X$HPUX_IA64_MODE" = X32; then
7794 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7796 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7802 hardcode_into_libs=yes
7803 dynamic_linker="$host_os dld.sl"
7804 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7807 soname_spec='${libname}${release}${shared_ext}$major'
7808 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7809 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7813 dynamic_linker="$host_os dld.sl"
7814 shlibpath_var=SHLIB_PATH
7815 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7817 soname_spec='${libname}${release}${shared_ext}$major'
7820 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7821 postinstall_cmds='chmod 555 $lib'
7828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7829 soname_spec='${libname}${release}${shared_ext}$major'
7830 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7831 shlibpath_var=LD_LIBRARY_PATH
7832 shlibpath_overrides_runpath=no
7833 hardcode_into_libs=yes
7836 irix5* | irix6* | nonstopux*)
7838 nonstopux*) version_type=nonstopux ;;
7840 if test "$lt_cv_prog_gnu_ld" = yes; then
7848 soname_spec='${libname}${release}${shared_ext}$major'
7849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7851 irix5* | nonstopux*)
7855 case $LD in # libtool.m4 will add one of these switches to LD
7856 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7857 libsuff= shlibsuff= libmagic=32-bit;;
7858 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7859 libsuff=32 shlibsuff=N32 libmagic=N32;;
7860 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7861 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7862 *) libsuff= shlibsuff= libmagic=never-match;;
7866 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7867 shlibpath_overrides_runpath=no
7868 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7869 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7870 hardcode_into_libs=yes
7873 # No shared lib support for Linux oldld, aout, or coff.
7874 linux*oldld* | linux*aout* | linux*coff*)
7878 # This must be Linux ELF.
7883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7884 soname_spec='${libname}${release}${shared_ext}$major'
7885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7886 shlibpath_var=LD_LIBRARY_PATH
7887 shlibpath_overrides_runpath=no
7888 # This implies no fast_install, which is unacceptable.
7889 # Some rework will be needed to allow for fast_install
7890 # before this can be enabled.
7891 hardcode_into_libs=yes
7893 # Append ld.so.conf contents to the search path
7894 if test -f /etc/ld.so.conf; then
7895 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7896 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7899 # We used to test for /lib/ld.so.1 and disable shared libraries on
7900 # powerpc, because MkLinux only supported shared libraries with the
7901 # GNU dynamic linker. Since this was broken with cross compilers,
7902 # most powerpc-linux boxes support dynamic linking these days and
7903 # people can always --disable-shared, the test was removed, and we
7904 # assume the GNU/Linux dynamic linker is in use.
7905 dynamic_linker='GNU/Linux ld.so'
7912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7913 soname_spec='${libname}${release}${shared_ext}$major'
7914 shlibpath_var=LD_LIBRARY_PATH
7915 shlibpath_overrides_runpath=no
7916 hardcode_into_libs=yes
7917 dynamic_linker='NetBSD ld.elf_so'
7924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7925 soname_spec='${libname}${release}${shared_ext}$major'
7926 shlibpath_var=LD_LIBRARY_PATH
7927 shlibpath_overrides_runpath=no
7928 hardcode_into_libs=yes
7929 dynamic_linker='GNU ld.so'
7936 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7939 dynamic_linker='NetBSD (a.out) ld.so'
7941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7942 soname_spec='${libname}${release}${shared_ext}$major'
7943 dynamic_linker='NetBSD ld.elf_so'
7945 shlibpath_var=LD_LIBRARY_PATH
7946 shlibpath_overrides_runpath=yes
7947 hardcode_into_libs=yes
7952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7953 shlibpath_var=LD_LIBRARY_PATH
7954 shlibpath_overrides_runpath=yes
7961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7962 soname_spec='${libname}${release}${shared_ext}$major'
7963 shlibpath_var=LD_LIBRARY_PATH
7964 shlibpath_overrides_runpath=yes
7969 sys_lib_dlsearch_path_spec="/usr/lib"
7971 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
7973 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
7974 *) need_version=no ;;
7976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7978 shlibpath_var=LD_LIBRARY_PATH
7979 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7981 openbsd2.[89] | openbsd2.[89].*)
7982 shlibpath_overrides_runpath=no
7985 shlibpath_overrides_runpath=yes
7989 shlibpath_overrides_runpath=yes
7994 libname_spec='$name'
7997 library_names_spec='$libname${shared_ext} $libname.a'
7998 dynamic_linker='OS/2 ld.exe'
7999 shlibpath_var=LIBPATH
8002 osf3* | osf4* | osf5*)
8006 soname_spec='${libname}${release}${shared_ext}$major'
8007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8008 shlibpath_var=LD_LIBRARY_PATH
8009 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8010 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8018 soname_spec='${libname}${release}${shared_ext}$major'
8019 shlibpath_var=LD_LIBRARY_PATH
8020 shlibpath_overrides_runpath=yes
8021 hardcode_into_libs=yes
8022 # ldd complains unless libraries are executable
8023 postinstall_cmds='chmod +x $lib'
8028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8029 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8030 shlibpath_var=LD_LIBRARY_PATH
8031 shlibpath_overrides_runpath=yes
8032 if test "$with_gnu_ld" = yes; then
8040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8041 soname_spec='${libname}${release}${shared_ext}$major'
8042 shlibpath_var=LD_LIBRARY_PATH
8043 case $host_vendor in
8045 shlibpath_overrides_runpath=no
8047 export_dynamic_flag_spec='${wl}-Blargedynsym'
8048 runpath_var=LD_RUN_PATH
8056 shlibpath_overrides_runpath=no
8057 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8063 if test -d /usr/nec ;then
8065 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8066 soname_spec='$libname${shared_ext}.$major'
8067 shlibpath_var=LD_LIBRARY_PATH
8071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8072 version_type=freebsd-elf
8075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8076 soname_spec='${libname}${release}${shared_ext}$major'
8077 shlibpath_var=LD_LIBRARY_PATH
8078 hardcode_into_libs=yes
8079 if test "$with_gnu_ld" = yes; then
8080 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8081 shlibpath_overrides_runpath=no
8083 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8084 shlibpath_overrides_runpath=yes
8087 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8091 sys_lib_dlsearch_path_spec='/usr/lib'
8096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8097 soname_spec='${libname}${release}${shared_ext}$major'
8098 shlibpath_var=LD_LIBRARY_PATH
8105 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8106 echo "${ECHO_T}$dynamic_linker" >&6
8107 test "$dynamic_linker" = no && can_build_shared=no
8109 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8110 if test "$GCC" = yes; then
8111 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8114 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8115 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8117 if test -n "$hardcode_libdir_flag_spec" || \
8118 test -n "$runpath_var" || \
8119 test "X$hardcode_automatic" = "Xyes" ; then
8121 # We can hardcode non-existant directories.
8122 if test "$hardcode_direct" != no &&
8123 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8124 # have to relink, otherwise we might link with an installed library
8125 # when we should be linking with a yet-to-be-installed one
8126 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8127 test "$hardcode_minus_L" != no; then
8128 # Linking always hardcodes the temporary library directory.
8129 hardcode_action=relink
8131 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8132 hardcode_action=immediate
8135 # We cannot hardcode anything, or else we can only hardcode existing
8137 hardcode_action=unsupported
8139 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8140 echo "${ECHO_T}$hardcode_action" >&6
8142 if test "$hardcode_action" = relink; then
8143 # Fast installation is not supported
8144 enable_fast_install=no
8145 elif test "$shlibpath_overrides_runpath" = yes ||
8146 test "$enable_shared" = no; then
8147 # Fast installation is not necessary
8148 enable_fast_install=needless
8153 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8154 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8155 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8156 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8157 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8158 echo "$as_me:$LINENO: result: yes" >&5
8159 echo "${ECHO_T}yes" >&6
8161 # FIXME - insert some real tests, host_os isn't really good enough
8164 if test -n "$STRIP" ; then
8165 striplib="$STRIP -x"
8166 echo "$as_me:$LINENO: result: yes" >&5
8167 echo "${ECHO_T}yes" >&6
8169 echo "$as_me:$LINENO: result: no" >&5
8170 echo "${ECHO_T}no" >&6
8174 echo "$as_me:$LINENO: result: no" >&5
8175 echo "${ECHO_T}no" >&6
8180 if test "x$enable_dlopen" != xyes; then
8181 enable_dlopen=unknown
8182 enable_dlopen_self=unknown
8183 enable_dlopen_self_static=unknown
8190 lt_cv_dlopen="load_add_on"
8192 lt_cv_dlopen_self=yes
8196 lt_cv_dlopen="LoadLibrary"
8201 lt_cv_dlopen="dlopen"
8206 # if libdl is installed we need to link against it
8207 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8208 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8209 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 ac_check_lib_save_LIBS=$LIBS
8214 cat >conftest.$ac_ext <<_ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8221 /* Override any gcc2 internal prototype to avoid an error. */
8225 /* We use char because int might match the return type of a gcc2
8226 builtin and then its argument prototype would still apply. */
8236 rm -f conftest.$ac_objext conftest$ac_exeext
8237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8238 (eval $ac_link) 2>conftest.er1
8240 grep -v '^ *+' conftest.er1 >conftest.err
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); }; } &&
8251 { ac_try='test -s conftest$ac_exeext'
8252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; }; then
8257 ac_cv_lib_dl_dlopen=yes
8259 echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8262 ac_cv_lib_dl_dlopen=no
8264 rm -f conftest.err conftest.$ac_objext \
8265 conftest$ac_exeext conftest.$ac_ext
8266 LIBS=$ac_check_lib_save_LIBS
8268 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8269 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8270 if test $ac_cv_lib_dl_dlopen = yes; then
8271 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8276 lt_cv_dlopen_self=yes
8283 echo "$as_me:$LINENO: checking for shl_load" >&5
8284 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8285 if test "${ac_cv_func_shl_load+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 cat >conftest.$ac_ext <<_ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h. */
8294 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8296 #define shl_load innocuous_shl_load
8298 /* System header to define __stub macros and hopefully few prototypes,
8299 which can conflict with char shl_load (); below.
8300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8301 <limits.h> exists even on freestanding compilers. */
8304 # include <limits.h>
8306 # include <assert.h>
8311 /* Override any gcc2 internal prototype to avoid an error. */
8316 /* We use char because int might match the return type of a gcc2
8317 builtin and then its argument prototype would still apply. */
8319 /* The GNU C library defines this for functions which it implements
8320 to always fail with ENOSYS. Some functions are actually named
8321 something starting with __ and the normal name is an alias. */
8322 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8325 char (*f) () = shl_load;
8334 return f != shl_load;
8339 rm -f conftest.$ac_objext conftest$ac_exeext
8340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8341 (eval $ac_link) 2>conftest.er1
8343 grep -v '^ *+' conftest.er1 >conftest.err
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } &&
8348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; } &&
8354 { ac_try='test -s conftest$ac_exeext'
8355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; }; then
8360 ac_cv_func_shl_load=yes
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8365 ac_cv_func_shl_load=no
8367 rm -f conftest.err conftest.$ac_objext \
8368 conftest$ac_exeext conftest.$ac_ext
8370 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8371 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8372 if test $ac_cv_func_shl_load = yes; then
8373 lt_cv_dlopen="shl_load"
8375 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8376 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8377 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8380 ac_check_lib_save_LIBS=$LIBS
8382 cat >conftest.$ac_ext <<_ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8389 /* Override any gcc2 internal prototype to avoid an error. */
8393 /* We use char because int might match the return type of a gcc2
8394 builtin and then its argument prototype would still apply. */
8404 rm -f conftest.$ac_objext conftest$ac_exeext
8405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8406 (eval $ac_link) 2>conftest.er1
8408 grep -v '^ *+' conftest.er1 >conftest.err
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; } &&
8419 { ac_try='test -s conftest$ac_exeext'
8420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; }; then
8425 ac_cv_lib_dld_shl_load=yes
8427 echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8430 ac_cv_lib_dld_shl_load=no
8432 rm -f conftest.err conftest.$ac_objext \
8433 conftest$ac_exeext conftest.$ac_ext
8434 LIBS=$ac_check_lib_save_LIBS
8436 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8437 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8438 if test $ac_cv_lib_dld_shl_load = yes; then
8439 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8441 echo "$as_me:$LINENO: checking for dlopen" >&5
8442 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8443 if test "${ac_cv_func_dlopen+set}" = set; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8446 cat >conftest.$ac_ext <<_ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8452 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8454 #define dlopen innocuous_dlopen
8456 /* System header to define __stub macros and hopefully few prototypes,
8457 which can conflict with char dlopen (); below.
8458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8459 <limits.h> exists even on freestanding compilers. */
8462 # include <limits.h>
8464 # include <assert.h>
8469 /* Override any gcc2 internal prototype to avoid an error. */
8474 /* We use char because int might match the return type of a gcc2
8475 builtin and then its argument prototype would still apply. */
8477 /* The GNU C library defines this for functions which it implements
8478 to always fail with ENOSYS. Some functions are actually named
8479 something starting with __ and the normal name is an alias. */
8480 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8483 char (*f) () = dlopen;
8497 rm -f conftest.$ac_objext conftest$ac_exeext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8499 (eval $ac_link) 2>conftest.er1
8501 grep -v '^ *+' conftest.er1 >conftest.err
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } &&
8506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; } &&
8512 { ac_try='test -s conftest$ac_exeext'
8513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); }; }; then
8518 ac_cv_func_dlopen=yes
8520 echo "$as_me: failed program was:" >&5
8521 sed 's/^/| /' conftest.$ac_ext >&5
8523 ac_cv_func_dlopen=no
8525 rm -f conftest.err conftest.$ac_objext \
8526 conftest$ac_exeext conftest.$ac_ext
8528 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8529 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8530 if test $ac_cv_func_dlopen = yes; then
8531 lt_cv_dlopen="dlopen"
8533 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8534 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8535 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8536 echo $ECHO_N "(cached) $ECHO_C" >&6
8538 ac_check_lib_save_LIBS=$LIBS
8540 cat >conftest.$ac_ext <<_ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8547 /* Override any gcc2 internal prototype to avoid an error. */
8551 /* We use char because int might match the return type of a gcc2
8552 builtin and then its argument prototype would still apply. */
8562 rm -f conftest.$ac_objext conftest$ac_exeext
8563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8564 (eval $ac_link) 2>conftest.er1
8566 grep -v '^ *+' conftest.er1 >conftest.err
8568 cat conftest.err >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); } &&
8571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; } &&
8577 { ac_try='test -s conftest$ac_exeext'
8578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; }; then
8583 ac_cv_lib_dl_dlopen=yes
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8588 ac_cv_lib_dl_dlopen=no
8590 rm -f conftest.err conftest.$ac_objext \
8591 conftest$ac_exeext conftest.$ac_ext
8592 LIBS=$ac_check_lib_save_LIBS
8594 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8595 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8596 if test $ac_cv_lib_dl_dlopen = yes; then
8597 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8599 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8600 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8601 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 ac_check_lib_save_LIBS=$LIBS
8606 cat >conftest.$ac_ext <<_ACEOF
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h. */
8613 /* Override any gcc2 internal prototype to avoid an error. */
8617 /* We use char because int might match the return type of a gcc2
8618 builtin and then its argument prototype would still apply. */
8628 rm -f conftest.$ac_objext conftest$ac_exeext
8629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8630 (eval $ac_link) 2>conftest.er1
8632 grep -v '^ *+' conftest.er1 >conftest.err
8634 cat conftest.err >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } &&
8637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; } &&
8643 { ac_try='test -s conftest$ac_exeext'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; }; then
8649 ac_cv_lib_svld_dlopen=yes
8651 echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8654 ac_cv_lib_svld_dlopen=no
8656 rm -f conftest.err conftest.$ac_objext \
8657 conftest$ac_exeext conftest.$ac_ext
8658 LIBS=$ac_check_lib_save_LIBS
8660 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8661 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8662 if test $ac_cv_lib_svld_dlopen = yes; then
8663 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8665 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8666 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8667 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8668 echo $ECHO_N "(cached) $ECHO_C" >&6
8670 ac_check_lib_save_LIBS=$LIBS
8672 cat >conftest.$ac_ext <<_ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8679 /* Override any gcc2 internal prototype to avoid an error. */
8683 /* We use char because int might match the return type of a gcc2
8684 builtin and then its argument prototype would still apply. */
8694 rm -f conftest.$ac_objext conftest$ac_exeext
8695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8696 (eval $ac_link) 2>conftest.er1
8698 grep -v '^ *+' conftest.er1 >conftest.err
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } &&
8703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; } &&
8709 { ac_try='test -s conftest$ac_exeext'
8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; }; then
8715 ac_cv_lib_dld_dld_link=yes
8717 echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8720 ac_cv_lib_dld_dld_link=no
8722 rm -f conftest.err conftest.$ac_objext \
8723 conftest$ac_exeext conftest.$ac_ext
8724 LIBS=$ac_check_lib_save_LIBS
8726 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8727 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8728 if test $ac_cv_lib_dld_dld_link = yes; then
8729 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8750 if test "x$lt_cv_dlopen" != xno; then
8756 case $lt_cv_dlopen in
8758 save_CPPFLAGS="$CPPFLAGS"
8759 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8761 save_LDFLAGS="$LDFLAGS"
8762 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8765 LIBS="$lt_cv_dlopen_libs $LIBS"
8767 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8768 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8769 if test "${lt_cv_dlopen_self+set}" = set; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 if test "$cross_compiling" = yes; then :
8773 lt_cv_dlopen_self=cross
8775 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8776 lt_status=$lt_dlunknown
8777 cat > conftest.$ac_ext <<EOF
8778 #line 8778 "configure"
8779 #include "confdefs.h"
8788 # define LT_DLGLOBAL RTLD_GLOBAL
8791 # define LT_DLGLOBAL DL_GLOBAL
8793 # define LT_DLGLOBAL 0
8797 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8798 find out it does not work in some platform. */
8799 #ifndef LT_DLLAZY_OR_NOW
8801 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8804 # define LT_DLLAZY_OR_NOW DL_LAZY
8807 # define LT_DLLAZY_OR_NOW RTLD_NOW
8810 # define LT_DLLAZY_OR_NOW DL_NOW
8812 # define LT_DLLAZY_OR_NOW 0
8820 extern "C" void exit (int);
8823 void fnord() { int i=42;}
8826 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8827 int status = $lt_dlunknown;
8831 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8832 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8833 /* dlclose (self); */
8841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842 (eval $ac_link) 2>&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8846 (./conftest; exit; ) >&5 2>/dev/null
8849 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8850 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8851 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8854 # compilation failed
8855 lt_cv_dlopen_self=no
8862 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8863 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8865 if test "x$lt_cv_dlopen_self" = xyes; then
8866 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8867 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8868 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8869 if test "${lt_cv_dlopen_self_static+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 if test "$cross_compiling" = yes; then :
8873 lt_cv_dlopen_self_static=cross
8875 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8876 lt_status=$lt_dlunknown
8877 cat > conftest.$ac_ext <<EOF
8878 #line 8878 "configure"
8879 #include "confdefs.h"
8888 # define LT_DLGLOBAL RTLD_GLOBAL
8891 # define LT_DLGLOBAL DL_GLOBAL
8893 # define LT_DLGLOBAL 0
8897 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8898 find out it does not work in some platform. */
8899 #ifndef LT_DLLAZY_OR_NOW
8901 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8904 # define LT_DLLAZY_OR_NOW DL_LAZY
8907 # define LT_DLLAZY_OR_NOW RTLD_NOW
8910 # define LT_DLLAZY_OR_NOW DL_NOW
8912 # define LT_DLLAZY_OR_NOW 0
8920 extern "C" void exit (int);
8923 void fnord() { int i=42;}
8926 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8927 int status = $lt_dlunknown;
8931 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8932 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8933 /* dlclose (self); */
8941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942 (eval $ac_link) 2>&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8946 (./conftest; exit; ) >&5 2>/dev/null
8949 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8950 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8951 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
8954 # compilation failed
8955 lt_cv_dlopen_self_static=no
8962 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8963 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8966 CPPFLAGS="$save_CPPFLAGS"
8967 LDFLAGS="$save_LDFLAGS"
8972 case $lt_cv_dlopen_self in
8973 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8974 *) enable_dlopen_self=unknown ;;
8977 case $lt_cv_dlopen_self_static in
8978 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8979 *) enable_dlopen_self_static=unknown ;;
8984 # Report which library types will actually be built
8985 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8986 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8987 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8988 echo "${ECHO_T}$can_build_shared" >&6
8990 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8991 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8992 test "$can_build_shared" = "no" && enable_shared=no
8994 # On AIX, shared libraries and static libraries use the same namespace, and
8995 # are all built from PIC.
8998 test "$enable_shared" = yes && enable_static=no
8999 if test -n "$RANLIB"; then
9000 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9001 postinstall_cmds='$RANLIB $lib'
9006 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9007 test "$enable_shared" = yes && enable_static=no
9011 echo "$as_me:$LINENO: result: $enable_shared" >&5
9012 echo "${ECHO_T}$enable_shared" >&6
9014 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9015 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9016 # Make sure either enable_shared or enable_static is yes.
9017 test "$enable_shared" = yes || enable_static=yes
9018 echo "$as_me:$LINENO: result: $enable_static" >&5
9019 echo "${ECHO_T}$enable_static" >&6
9021 # The else clause should only fire when bootstrapping the
9022 # libtool distribution, otherwise you forgot to ship ltmain.sh
9023 # with your package, and you will get complaints that there are
9024 # no rules to generate ltmain.sh.
9025 if test -f "$ltmain"; then
9026 # See if we are running on zsh, and set the options which allow our commands through
9027 # without removal of \ escapes.
9028 if test -n "${ZSH_VERSION+set}" ; then
9029 setopt NO_GLOB_SUBST
9031 # Now quote all the things that may contain metacharacters while being
9032 # careful not to overquote the AC_SUBSTed values. We take copies of the
9033 # variables and quote the copies for generation of the libtool script.
9034 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9036 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9037 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9038 deplibs_check_method reload_flag reload_cmds need_locks \
9039 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9040 lt_cv_sys_global_symbol_to_c_name_address \
9041 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9042 old_postinstall_cmds old_postuninstall_cmds \
9046 lt_prog_compiler_wl \
9047 lt_prog_compiler_pic \
9048 lt_prog_compiler_static \
9049 lt_prog_compiler_no_builtin_flag \
9050 export_dynamic_flag_spec \
9051 thread_safe_flag_spec \
9052 whole_archive_flag_spec \
9053 enable_shared_with_static_runtimes \
9055 old_archive_from_new_cmds \
9060 compiler_lib_search_path \
9062 archive_expsym_cmds \
9064 postuninstall_cmds \
9065 old_archive_from_expsyms_cmds \
9066 allow_undefined_flag \
9068 export_symbols_cmds \
9069 hardcode_libdir_flag_spec \
9070 hardcode_libdir_flag_spec_ld \
9071 hardcode_libdir_separator \
9072 hardcode_automatic \
9074 module_expsym_cmds \
9075 lt_cv_prog_compiler_c_o \
9080 old_archive_cmds | \
9081 old_archive_from_new_cmds | \
9083 archive_expsym_cmds | \
9085 module_expsym_cmds | \
9086 old_archive_from_expsyms_cmds | \
9087 export_symbols_cmds | \
9088 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9089 postinstall_cmds | postuninstall_cmds | \
9090 old_postinstall_cmds | old_postuninstall_cmds | \
9091 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9092 # Double-quote double-evaled strings.
9093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9096 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9102 *'\$0 --fallback-echo"')
9103 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9108 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9110 { echo "$as_me:$LINENO: creating $ofile" >&5
9111 echo "$as_me: creating $ofile" >&6;}
9113 cat <<__EOF__ >> "$cfgfile"
9116 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9117 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9118 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9120 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9121 # Free Software Foundation, Inc.
9123 # This file is part of GNU Libtool:
9124 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9126 # This program is free software; you can redistribute it and/or modify
9127 # it under the terms of the GNU General Public License as published by
9128 # the Free Software Foundation; either version 2 of the License, or
9129 # (at your option) any later version.
9131 # This program is distributed in the hope that it will be useful, but
9132 # WITHOUT ANY WARRANTY; without even the implied warranty of
9133 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9134 # General Public License for more details.
9136 # You should have received a copy of the GNU General Public License
9137 # along with this program; if not, write to the Free Software
9138 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9140 # As a special exception to the GNU General Public License, if you
9141 # distribute this file as part of a program that contains a
9142 # configuration script generated by Autoconf, you may include it under
9143 # the same distribution terms that you use for the rest of that program.
9145 # A sed program that does not truncate output.
9148 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9149 Xsed="$SED -e 1s/^X//"
9151 # The HP-UX ksh and POSIX shell print the target directory to stdout
9153 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9155 # The names of the tagged configurations supported by this script.
9158 # ### BEGIN LIBTOOL CONFIG
9160 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9162 # Shell to use when invoking shell scripts.
9165 # Whether or not to build shared libraries.
9166 build_libtool_libs=$enable_shared
9168 # Whether or not to build static libraries.
9169 build_old_libs=$enable_static
9171 # Whether or not to add -lc for building shared libraries.
9172 build_libtool_need_lc=$archive_cmds_need_lc
9174 # Whether or not to disallow shared libs when runtime libs are static
9175 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9177 # Whether or not to optimize for fast installation.
9178 fast_install=$enable_fast_install
9181 host_alias=$host_alias
9186 build_alias=$build_alias
9190 # An echo program that does not interpret backslashes.
9195 AR_FLAGS=$lt_AR_FLAGS
9200 # LTCC compiler flags.
9201 LTCFLAGS=$lt_LTCFLAGS
9203 # A language-specific compiler.
9206 # Is the compiler the GNU C compiler?
9212 # The linker used to build libraries.
9215 # Whether we need hard or soft links.
9218 # A BSD-compatible nm program.
9221 # A symbol stripping program
9224 # Used to examine libraries when file_magic_cmd begins "file"
9225 MAGIC_CMD=$MAGIC_CMD
9227 # Used on cygwin: DLL creation program.
9230 # Used on cygwin: object dumper.
9233 # Used on cygwin: assembler.
9236 # The name of the directory that contains temporary libtool files.
9239 # How to create reloadable object files.
9240 reload_flag=$lt_reload_flag
9241 reload_cmds=$lt_reload_cmds
9243 # How to pass a linker flag through the compiler.
9244 wl=$lt_lt_prog_compiler_wl
9246 # Object file suffix (normally "o").
9249 # Old archive suffix (normally "a").
9252 # Shared library suffix (normally ".so").
9253 shrext_cmds='$shrext_cmds'
9255 # Executable file suffix (normally "").
9258 # Additional compiler flags for building library objects.
9259 pic_flag=$lt_lt_prog_compiler_pic
9262 # What is the maximum length of a command?
9263 max_cmd_len=$lt_cv_sys_max_cmd_len
9265 # Does compiler simultaneously support -c and -o options?
9266 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9268 # Must we lock files when doing compilation?
9269 need_locks=$lt_need_locks
9271 # Do we need the lib prefix for modules?
9272 need_lib_prefix=$need_lib_prefix
9274 # Do we need a version for libraries?
9275 need_version=$need_version
9277 # Whether dlopen is supported.
9278 dlopen_support=$enable_dlopen
9280 # Whether dlopen of programs is supported.
9281 dlopen_self=$enable_dlopen_self
9283 # Whether dlopen of statically linked programs is supported.
9284 dlopen_self_static=$enable_dlopen_self_static
9286 # Compiler flag to prevent dynamic linking.
9287 link_static_flag=$lt_lt_prog_compiler_static
9289 # Compiler flag to turn off builtin functions.
9290 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9292 # Compiler flag to allow reflexive dlopens.
9293 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9295 # Compiler flag to generate shared objects directly from archives.
9296 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9298 # Compiler flag to generate thread-safe objects.
9299 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9301 # Library versioning type.
9302 version_type=$version_type
9304 # Format of library name prefix.
9305 libname_spec=$lt_libname_spec
9307 # List of archive names. First name is the real one, the rest are links.
9308 # The last name is the one that the linker finds with -lNAME.
9309 library_names_spec=$lt_library_names_spec
9311 # The coded name of the library, if different from the real name.
9312 soname_spec=$lt_soname_spec
9314 # Commands used to build and install an old-style archive.
9316 old_archive_cmds=$lt_old_archive_cmds
9317 old_postinstall_cmds=$lt_old_postinstall_cmds
9318 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9320 # Create an old-style archive from a shared archive.
9321 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9323 # Create a temporary old-style archive to link instead of a shared archive.
9324 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9326 # Commands used to build and install a shared archive.
9327 archive_cmds=$lt_archive_cmds
9328 archive_expsym_cmds=$lt_archive_expsym_cmds
9329 postinstall_cmds=$lt_postinstall_cmds
9330 postuninstall_cmds=$lt_postuninstall_cmds
9332 # Commands used to build a loadable module (assumed same as above if empty)
9333 module_cmds=$lt_module_cmds
9334 module_expsym_cmds=$lt_module_expsym_cmds
9336 # Commands to strip libraries.
9337 old_striplib=$lt_old_striplib
9338 striplib=$lt_striplib
9340 # Dependencies to place before the objects being linked to create a
9342 predep_objects=$lt_predep_objects
9344 # Dependencies to place after the objects being linked to create a
9346 postdep_objects=$lt_postdep_objects
9348 # Dependencies to place before the objects being linked to create a
9352 # Dependencies to place after the objects being linked to create a
9354 postdeps=$lt_postdeps
9356 # The library search path used internally by the compiler when linking
9358 compiler_lib_search_path=$lt_compiler_lib_search_path
9360 # Method to check whether dependent libraries are shared objects.
9361 deplibs_check_method=$lt_deplibs_check_method
9363 # Command to use when deplibs_check_method == file_magic.
9364 file_magic_cmd=$lt_file_magic_cmd
9366 # Flag that allows shared libraries with undefined symbols to be built.
9367 allow_undefined_flag=$lt_allow_undefined_flag
9369 # Flag that forces no undefined symbols.
9370 no_undefined_flag=$lt_no_undefined_flag
9372 # Commands used to finish a libtool library installation in a directory.
9373 finish_cmds=$lt_finish_cmds
9375 # Same as above, but a single script fragment to be evaled but not shown.
9376 finish_eval=$lt_finish_eval
9378 # Take the output of nm and produce a listing of raw symbols and C names.
9379 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9381 # Transform the output of nm in a proper C declaration
9382 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9384 # Transform the output of nm in a C name address pair
9385 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9387 # This is the shared library runtime path variable.
9388 runpath_var=$runpath_var
9390 # This is the shared library path variable.
9391 shlibpath_var=$shlibpath_var
9393 # Is shlibpath searched before the hard-coded library search path?
9394 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9396 # How to hardcode a shared library path into an executable.
9397 hardcode_action=$hardcode_action
9399 # Whether we should hardcode library paths into libraries.
9400 hardcode_into_libs=$hardcode_into_libs
9402 # Flag to hardcode \$libdir into a binary during linking.
9403 # This must work even if \$libdir does not exist.
9404 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9406 # If ld is used when linking, flag to hardcode \$libdir into
9407 # a binary during linking. This must work even if \$libdir does
9409 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9411 # Whether we need a single -rpath flag with a separated argument.
9412 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9414 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9416 hardcode_direct=$hardcode_direct
9418 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9420 hardcode_minus_L=$hardcode_minus_L
9422 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9423 # the resulting binary.
9424 hardcode_shlibpath_var=$hardcode_shlibpath_var
9426 # Set to yes if building a shared library automatically hardcodes DIR into the library
9427 # and all subsequent libraries and executables linked against it.
9428 hardcode_automatic=$hardcode_automatic
9430 # Variables whose values should be saved in libtool wrapper scripts and
9431 # restored at relink time.
9432 variables_saved_for_relink="$variables_saved_for_relink"
9434 # Whether libtool must link a program against all its dependency libraries.
9435 link_all_deplibs=$link_all_deplibs
9437 # Compile-time system search path for libraries
9438 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9440 # Run-time system search path for libraries
9441 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9443 # Fix the shell variable \$srcfile for the compiler.
9444 fix_srcfile_path="$fix_srcfile_path"
9446 # Set to yes if exported symbols are required.
9447 always_export_symbols=$always_export_symbols
9449 # The commands to list exported symbols.
9450 export_symbols_cmds=$lt_export_symbols_cmds
9452 # The commands to extract the exported symbol list from a shared archive.
9453 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9455 # Symbols that should not be listed in the preloaded symbols.
9456 exclude_expsyms=$lt_exclude_expsyms
9458 # Symbols that must always be exported.
9459 include_expsyms=$lt_include_expsyms
9461 # ### END LIBTOOL CONFIG
9468 cat <<\EOF >> "$cfgfile"
9470 # AIX sometimes has problems with the GCC collect2 program. For some
9471 # reason, if we set the COLLECT_NAMES environment variable, the problems
9472 # vanish in a puff of smoke.
9473 if test "X${COLLECT_NAMES+set}" != Xset; then
9475 export COLLECT_NAMES
9481 # We use sed instead of cat because bash on DJGPP gets confused if
9482 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9483 # text mode, it properly converts lines to CR/LF. This bash problem
9484 # is reportedly fixed, but why not run on old versions too?
9485 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9487 mv -f "$cfgfile" "$ofile" || \
9488 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9492 # If there is no Makefile yet, we rely on a make rule to execute
9493 # `config.status --recheck' to rerun these tests and create the
9494 # libtool script then.
9495 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9496 if test -f "$ltmain_in"; then
9497 test -f Makefile && make "$ltmain"
9503 ac_cpp='$CPP $CPPFLAGS'
9504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9511 # Check whether --with-tags or --without-tags was given.
9512 if test "${with_tags+set}" = set; then
9513 withval="$with_tags"
9517 if test -f "$ltmain" && test -n "$tagnames"; then
9518 if test ! -f "${ofile}"; then
9519 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9520 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9523 if test -z "$LTCC"; then
9524 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9525 if test -z "$LTCC"; then
9526 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9527 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9529 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9530 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9533 if test -z "$LTCFLAGS"; then
9534 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9537 # Extract list of available tagged configurations in $ofile.
9538 # Note that this assumes the entire list is on one line.
9539 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9541 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9542 for tagname in $tagnames; do
9544 # Check whether tagname contains only valid characters
9545 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9547 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9548 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9549 { (exit 1); exit 1; }; }
9553 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9555 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9556 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9557 { (exit 1); exit 1; }; }
9560 # Update the list of available tags.
9561 if test -n "$tagname"; then
9562 echo appending configuration tag \"$tagname\" to $ofile
9566 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9567 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9568 (test "X$CXX" != "Xg++"))) ; then
9570 ac_cpp='$CXXCPP $CPPFLAGS'
9571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9578 archive_cmds_need_lc_CXX=no
9579 allow_undefined_flag_CXX=
9580 always_export_symbols_CXX=no
9581 archive_expsym_cmds_CXX=
9582 export_dynamic_flag_spec_CXX=
9583 hardcode_direct_CXX=no
9584 hardcode_libdir_flag_spec_CXX=
9585 hardcode_libdir_flag_spec_ld_CXX=
9586 hardcode_libdir_separator_CXX=
9587 hardcode_minus_L_CXX=no
9588 hardcode_shlibpath_var_CXX=unsupported
9589 hardcode_automatic_CXX=no
9591 module_expsym_cmds_CXX=
9592 link_all_deplibs_CXX=unknown
9593 old_archive_cmds_CXX=$old_archive_cmds
9594 no_undefined_flag_CXX=
9595 whole_archive_flag_spec_CXX=
9596 enable_shared_with_static_runtimes_CXX=no
9598 # Dependencies to place before and after the object being linked:
9600 postdep_objects_CXX=
9603 compiler_lib_search_path_CXX=
9605 # Source file extension for C++ test sources.
9608 # Object file extension for compiled C++ test sources.
9612 # Code to be used in simple compile tests
9613 lt_simple_compile_test_code="int some_variable = 0;\n"
9615 # Code to be used in simple link tests
9616 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9618 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9620 # If no C compiler was specified, use CC.
9623 # If no C compiler flags were specified, use CFLAGS.
9624 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9626 # Allow CC to be a program name with arguments.
9630 # save warnings/boilerplate of simple test code
9631 ac_outfile=conftest.$ac_objext
9632 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9633 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9634 _lt_compiler_boilerplate=`cat conftest.err`
9637 ac_outfile=conftest.$ac_objext
9638 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9639 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9640 _lt_linker_boilerplate=`cat conftest.err`
9644 # Allow CC to be a program name with arguments.
9649 lt_save_with_gnu_ld=$with_gnu_ld
9650 lt_save_path_LD=$lt_cv_path_LD
9651 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9652 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9654 $as_unset lt_cv_prog_gnu_ld
9656 if test -n "${lt_cv_path_LDCXX+set}"; then
9657 lt_cv_path_LD=$lt_cv_path_LDCXX
9659 $as_unset lt_cv_path_LD
9661 test -z "${LDCXX+set}" || LD=$LDCXX
9665 for cc_temp in $compiler""; do
9667 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9668 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9673 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9676 # We don't want -fno-exception wen compiling C++ code, so set the
9677 # no_builtin_flag separately
9678 if test "$GXX" = yes; then
9679 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9681 lt_prog_compiler_no_builtin_flag_CXX=
9684 if test "$GXX" = yes; then
9685 # Set up default GNU C++ configuration
9688 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9689 if test "${with_gnu_ld+set}" = set; then
9690 withval="$with_gnu_ld"
9691 test "$withval" = no || with_gnu_ld=yes
9696 if test "$GCC" = yes; then
9697 # Check if gcc -print-prog-name=ld gives a path.
9698 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9699 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9702 # gcc leaves a trailing carriage return which upsets mingw
9703 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9705 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9708 # Accept absolute paths.
9710 re_direlt='/[^/][^/]*/\.\./'
9711 # Canonicalize the pathname of ld
9712 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9713 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9714 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9716 test -z "$LD" && LD="$ac_prog"
9719 # If it fails, then pretend we aren't using GCC.
9723 # If it is relative, then search for the first ld in PATH.
9727 elif test "$with_gnu_ld" = yes; then
9728 echo "$as_me:$LINENO: checking for GNU ld" >&5
9729 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9731 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9732 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9734 if test "${lt_cv_path_LD+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 if test -z "$LD"; then
9738 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9739 for ac_dir in $PATH; do
9741 test -z "$ac_dir" && ac_dir=.
9742 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9743 lt_cv_path_LD="$ac_dir/$ac_prog"
9744 # Check to see if the program is GNU ld. I'd rather use --version,
9745 # but apparently some variants of GNU ld only accept -v.
9746 # Break only if it was the GNU/non-GNU ld that we prefer.
9747 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9748 *GNU* | *'with BFD'*)
9749 test "$with_gnu_ld" != no && break
9752 test "$with_gnu_ld" != yes && break
9759 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9764 if test -n "$LD"; then
9765 echo "$as_me:$LINENO: result: $LD" >&5
9766 echo "${ECHO_T}$LD" >&6
9768 echo "$as_me:$LINENO: result: no" >&5
9769 echo "${ECHO_T}no" >&6
9771 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9772 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9773 { (exit 1); exit 1; }; }
9774 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9775 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9776 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9780 case `$LD -v 2>&1 </dev/null` in
9781 *GNU* | *'with BFD'*)
9782 lt_cv_prog_gnu_ld=yes
9785 lt_cv_prog_gnu_ld=no
9789 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9790 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9791 with_gnu_ld=$lt_cv_prog_gnu_ld
9795 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9796 # archiving commands below assume that GNU ld is being used.
9797 if test "$with_gnu_ld" = yes; then
9798 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9799 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'
9801 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9802 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9804 # If archive_cmds runs LD, not CC, wlarc should be empty
9805 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9806 # investigate it a little bit more. (MM)
9809 # ancient GNU ld didn't support --whole-archive et. al.
9810 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9811 grep 'no-whole-archive' > /dev/null; then
9812 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9814 whole_archive_flag_spec_CXX=
9820 # A generic and very simple default shared library creation
9821 # command for GNU C++ for the case where it uses the native
9822 # linker, instead of GNU ld. If possible, this setting should
9823 # overridden to take advantage of the native linker features on
9824 # the platform it is being used on.
9825 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9828 # Commands to make compiler produce verbose output that lists
9829 # what "hidden" libraries, object files and flags are used when
9830 # linking a shared library.
9831 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9839 # PORTME: fill in a description of your system's C++ link characteristics
9840 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9841 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9845 # FIXME: insert proper C++ library support
9849 if test "$host_cpu" = ia64; then
9850 # On IA64, the linker does run time linking by default, so we don't
9851 # have to do anything special.
9852 aix_use_runtimelinking=no
9853 exp_sym_flag='-Bexport'
9856 aix_use_runtimelinking=no
9858 # Test if we are trying to use run time linking or normal
9859 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9860 # need to do runtime linking.
9861 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9862 for ld_flag in $LDFLAGS; do
9865 aix_use_runtimelinking=yes
9873 exp_sym_flag='-bexport'
9874 no_entry_flag='-bnoentry'
9877 # When large executables or shared objects are built, AIX ld can
9878 # have problems creating the table of contents. If linking a library
9879 # or program results in "error TOC overflow" add -mminimal-toc to
9880 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9881 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9884 hardcode_direct_CXX=yes
9885 hardcode_libdir_separator_CXX=':'
9886 link_all_deplibs_CXX=yes
9888 if test "$GXX" = yes; then
9889 case $host_os in aix4.[012]|aix4.[012].*)
9890 # We only want to do this on AIX 4.2 and lower, the check
9891 # below for broken collect2 doesn't work under 4.3+
9892 collect2name=`${CC} -print-prog-name=collect2`
9893 if test -f "$collect2name" && \
9894 strings "$collect2name" | grep resolve_lib_name >/dev/null
9896 # We have reworked collect2
9897 hardcode_direct_CXX=yes
9899 # We have old collect2
9900 hardcode_direct_CXX=unsupported
9901 # It fails to find uninstalled libraries when the uninstalled
9902 # path is not listed in the libpath. Setting hardcode_minus_L
9903 # to unsupported forces relinking
9904 hardcode_minus_L_CXX=yes
9905 hardcode_libdir_flag_spec_CXX='-L$libdir'
9906 hardcode_libdir_separator_CXX=
9910 shared_flag='-shared'
9911 if test "$aix_use_runtimelinking" = yes; then
9912 shared_flag="$shared_flag "'${wl}-G'
9916 if test "$host_cpu" = ia64; then
9917 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9918 # chokes on -Wl,-G. The following line is correct:
9921 if test "$aix_use_runtimelinking" = yes; then
9922 shared_flag='${wl}-G'
9924 shared_flag='${wl}-bM:SRE'
9929 # It seems that -bexpall does not export symbols beginning with
9930 # underscore (_), so it is better to generate a list of symbols to export.
9931 always_export_symbols_CXX=yes
9932 if test "$aix_use_runtimelinking" = yes; then
9933 # Warning - without using the other runtime loading flags (-brtl),
9934 # -berok will link without error, but may produce a broken library.
9935 allow_undefined_flag_CXX='-berok'
9936 # Determine the default libpath from the value encoded in an empty executable.
9937 cat >conftest.$ac_ext <<_ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h. */
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9954 (eval $ac_link) 2>conftest.er1
9956 grep -v '^ *+' conftest.er1 >conftest.err
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; } &&
9967 { ac_try='test -s conftest$ac_exeext'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; }; then
9974 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9976 # Check for a 64-bit object if we didn't find anything.
9977 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; }
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9984 rm -f conftest.err conftest.$ac_objext \
9985 conftest$ac_exeext conftest.$ac_ext
9986 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9988 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9990 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9992 if test "$host_cpu" = ia64; then
9993 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9994 allow_undefined_flag_CXX="-z nodefs"
9995 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9997 # Determine the default libpath from the value encoded in an empty executable.
9998 cat >conftest.$ac_ext <<_ACEOF
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h. */
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015 (eval $ac_link) 2>conftest.er1
10017 grep -v '^ *+' conftest.er1 >conftest.err
10019 cat conftest.err >&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; } &&
10028 { ac_try='test -s conftest$ac_exeext'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10035 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10037 # Check for a 64-bit object if we didn't find anything.
10038 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; }
10041 echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10045 rm -f conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10047 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10049 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10050 # Warning - without using the other run time loading flags,
10051 # -berok will link without error, but may produce a broken library.
10052 no_undefined_flag_CXX=' ${wl}-bernotok'
10053 allow_undefined_flag_CXX=' ${wl}-berok'
10054 # Exported symbols can be pulled into shared objects from archives
10055 whole_archive_flag_spec_CXX='$convenience'
10056 archive_cmds_need_lc_CXX=yes
10057 # This is similar to how AIX traditionally builds its shared libraries.
10058 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10064 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10065 allow_undefined_flag_CXX=unsupported
10066 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10067 # support --undefined. This deserves some investigation. FIXME
10068 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10106 darwin* | rhapsody*)
10108 rhapsody* | darwin1.[012])
10109 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10112 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10113 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10115 case ${MACOSX_DEPLOYMENT_TARGET} in
10117 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10120 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10126 archive_cmds_need_lc_CXX=no
10127 hardcode_direct_CXX=no
10128 hardcode_automatic_CXX=yes
10129 hardcode_shlibpath_var_CXX=unsupported
10130 whole_archive_flag_spec_CXX=''
10131 link_all_deplibs_CXX=yes
10133 if test "$GXX" = yes ; then
10134 lt_int_apple_cc_single_mod=no
10135 output_verbose_link_cmd='echo'
10136 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10137 lt_int_apple_cc_single_mod=yes
10139 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10140 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10142 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10144 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10145 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10146 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10147 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}'
10149 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10151 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}'
10153 case $cc_basename in
10155 output_verbose_link_cmd='echo'
10156 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10157 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10158 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10159 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10160 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}'
10170 case $cc_basename in
10172 # FIXME: insert proper C++ library support
10176 # Green Hills C++ Compiler
10177 # FIXME: insert proper C++ library support
10181 # FIXME: insert proper C++ library support
10187 # C++ shared libraries reported to be fairly broken before switch to ELF
10191 archive_cmds_need_lc_CXX=no
10193 freebsd* | kfreebsd*-gnu | dragonfly*)
10194 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10201 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10202 hardcode_libdir_separator_CXX=:
10203 export_dynamic_flag_spec_CXX='${wl}-E'
10204 hardcode_direct_CXX=yes
10205 hardcode_minus_L_CXX=yes # Not in the search PATH,
10206 # but as the default
10207 # location of the library.
10209 case $cc_basename in
10211 # FIXME: insert proper C++ library support
10215 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'
10216 # Commands to make compiler produce verbose output that lists
10217 # what "hidden" libraries, object files and flags are used when
10218 # linking a shared library.
10220 # There doesn't appear to be a way to prevent this compiler from
10221 # explicitly linking system object files so we need to strip them
10222 # from the output so that they don't get included in the library
10224 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'
10227 if test "$GXX" = yes; then
10228 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'
10230 # FIXME: insert proper C++ library support
10237 if test $with_gnu_ld = no; then
10238 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10239 hardcode_libdir_separator_CXX=:
10243 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10246 export_dynamic_flag_spec_CXX='${wl}-E'
10252 hardcode_direct_CXX=no
10253 hardcode_shlibpath_var_CXX=no
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
10271 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10274 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10277 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10280 # Commands to make compiler produce verbose output that lists
10281 # what "hidden" libraries, object files and flags are used when
10282 # linking a shared library.
10284 # There doesn't appear to be a way to prevent this compiler from
10285 # explicitly linking system object files so we need to strip them
10286 # from the output so that they don't get included in the library
10288 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'
10291 if test "$GXX" = yes; then
10292 if test $with_gnu_ld = no; then
10295 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10298 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10301 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'
10306 # FIXME: insert proper C++ library support
10313 hardcode_direct_CXX=no
10314 hardcode_shlibpath_var_CXX=no
10315 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10316 export_dynamic_flag_spec_CXX='${wl}-E'
10317 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10318 # Instead, shared libraries are loaded at an image base (0x10000000 by
10319 # default) and relocated if they conflict, which is a slow very memory
10320 # consuming and fragmenting process. To avoid this, we pick a random,
10321 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10322 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10323 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10324 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10327 case $cc_basename in
10330 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10332 # Archives containing C++ object files must be created using
10333 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10334 # necessary to make sure instantiated templates are included
10336 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10339 if test "$GXX" = yes; then
10340 if test "$with_gnu_ld" = no; then
10341 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10343 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'
10346 link_all_deplibs_CXX=yes
10349 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10350 hardcode_libdir_separator_CXX=:
10353 case $cc_basename in
10355 # Kuck and Associates, Inc. (KAI) C++ Compiler
10357 # KCC will only create a shared library if the output file
10358 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10359 # to its proper name (with version) after linking.
10360 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'
10361 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'
10362 # Commands to make compiler produce verbose output that lists
10363 # what "hidden" libraries, object files and flags are used when
10364 # linking a shared library.
10366 # There doesn't appear to be a way to prevent this compiler from
10367 # explicitly linking system object files so we need to strip them
10368 # from the output so that they don't get included in the library
10370 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'
10372 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10373 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10375 # Archives containing C++ object files must be created using
10376 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10377 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10382 # version 8.0 and above of icpc choke on multiply defined symbols
10383 # if we add $predep_objects and $postdep_objects, however 7.1 and
10384 # earlier do not add the objects themselves.
10385 case `$CC -V 2>&1` in
10387 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10388 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'
10390 *) # Version 8.0 or newer
10393 ia64*) tmp_idyn=' -i_dynamic';;
10395 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10396 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10399 archive_cmds_need_lc_CXX=no
10400 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10401 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10402 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10405 # Portland Group C++ compiler
10406 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10407 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10409 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10410 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10411 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10415 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10416 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'
10418 runpath_var=LD_RUN_PATH
10419 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10420 hardcode_libdir_separator_CXX=:
10422 # Commands to make compiler produce verbose output that lists
10423 # what "hidden" libraries, object files and flags are used when
10424 # linking a shared library.
10426 # There doesn't appear to be a way to prevent this compiler from
10427 # explicitly linking system object files so we need to strip them
10428 # from the output so that they don't get included in the library
10430 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'
10435 # FIXME: insert proper C++ library support
10439 # FIXME: insert proper C++ library support
10443 case $cc_basename in
10445 # FIXME: insert proper C++ library support
10449 # FIXME: insert proper C++ library support
10454 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10455 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10456 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10458 hardcode_libdir_flag_spec_CXX='-R$libdir'
10459 hardcode_direct_CXX=yes
10460 hardcode_shlibpath_var_CXX=no
10462 # Workaround some broken pre-1.5 toolchains
10463 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10466 # C++ shared libraries are fairly broken
10470 hardcode_direct_CXX=yes
10471 hardcode_shlibpath_var_CXX=no
10472 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10473 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10474 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10475 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10476 export_dynamic_flag_spec_CXX='${wl}-E'
10477 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10479 output_verbose_link_cmd='echo'
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 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10496 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10500 # Rational C++ 2.4.1
10501 # FIXME: insert proper C++ library support
10505 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10506 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10508 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10509 hardcode_libdir_separator_CXX=:
10511 # Commands to make compiler produce verbose output that lists
10512 # what "hidden" libraries, object files and flags are used when
10513 # linking a shared library.
10515 # There doesn't appear to be a way to prevent this compiler from
10516 # explicitly linking system object files so we need to strip them
10517 # from the output so that they don't get included in the library
10519 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'
10522 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10523 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10524 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10526 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10527 hardcode_libdir_separator_CXX=:
10529 # Commands to make compiler produce verbose output that lists
10530 # what "hidden" libraries, object files and flags are used when
10531 # linking a shared library.
10532 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10535 # FIXME: insert proper C++ library support
10542 case $cc_basename in
10544 # Kuck and Associates, Inc. (KAI) C++ Compiler
10546 # KCC will only create a shared library if the output file
10547 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10548 # to its proper name (with version) after linking.
10549 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'
10551 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10552 hardcode_libdir_separator_CXX=:
10554 # Archives containing C++ object files must be created using
10555 # the KAI C++ compiler.
10556 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10559 # Rational C++ 2.4.1
10560 # FIXME: insert proper C++ library support
10564 allow_undefined_flag_CXX=' -expect_unresolved \*'
10565 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10566 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10567 echo "-hidden">> $lib.exp~
10568 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10571 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10572 hardcode_libdir_separator_CXX=:
10574 # Commands to make compiler produce verbose output that lists
10575 # what "hidden" libraries, object files and flags are used when
10576 # linking a shared library.
10578 # There doesn't appear to be a way to prevent this compiler from
10579 # explicitly linking system object files so we need to strip them
10580 # from the output so that they don't get included in the library
10582 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'
10585 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10586 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10587 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10589 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10590 hardcode_libdir_separator_CXX=:
10592 # Commands to make compiler produce verbose output that lists
10593 # what "hidden" libraries, object files and flags are used when
10594 # linking a shared library.
10595 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10598 # FIXME: insert proper C++ library support
10605 # FIXME: insert proper C++ library support
10609 case $cc_basename in
10612 # FIXME: insert proper C++ library support
10617 # FIXME: insert proper C++ library support
10621 # FIXME: insert proper C++ library support
10627 case $cc_basename in
10629 # Sun C++ 4.2, 5.x and Centerline C++
10630 archive_cmds_need_lc_CXX=yes
10631 no_undefined_flag_CXX=' -zdefs'
10632 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10633 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10634 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10636 hardcode_libdir_flag_spec_CXX='-R$libdir'
10637 hardcode_shlibpath_var_CXX=no
10639 solaris2.[0-5] | solaris2.[0-5].*) ;;
10641 # The C++ compiler is used as linker so we must use $wl
10642 # flag to pass the commands to the underlying system
10643 # linker. We must also pass each convience library through
10644 # to the system linker between allextract/defaultextract.
10645 # The C++ compiler will combine linker options so we
10646 # cannot just pass the convience library names through
10648 # Supported since Solaris 2.6 (maybe 2.5.1?)
10649 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10652 link_all_deplibs_CXX=yes
10654 output_verbose_link_cmd='echo'
10656 # Archives containing C++ object files must be created using
10657 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10658 # necessary to make sure instantiated templates are included
10660 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10663 # Green Hills C++ Compiler
10664 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10666 # The C++ compiler must be used to create the archive.
10667 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10670 # GNU C++ compiler with Solaris linker
10671 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10672 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10673 if $CC --version | grep -v '^2\.7' > /dev/null; then
10674 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10675 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10676 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10678 # Commands to make compiler produce verbose output that lists
10679 # what "hidden" libraries, object files and flags are used when
10680 # linking a shared library.
10681 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10683 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10685 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10686 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10687 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10689 # Commands to make compiler produce verbose output that lists
10690 # what "hidden" libraries, object files and flags are used when
10691 # linking a shared library.
10692 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10695 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10700 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10701 no_undefined_flag_CXX='${wl}-z,text'
10702 archive_cmds_need_lc_CXX=no
10703 hardcode_shlibpath_var_CXX=no
10704 runpath_var='LD_RUN_PATH'
10706 case $cc_basename in
10708 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10709 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10712 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10713 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10717 sysv5* | sco3.2v5* | sco5v6*)
10718 # Note: We can NOT use -z defs as we might desire, because we do not
10719 # link with -lc, and that would cause any symbols used from libc to
10720 # always be unresolved, which means just about no library would
10721 # ever link correctly. If we're not using GNU ld we use -z text
10722 # though, which does catch some bad symbols but isn't as heavy-handed
10724 # For security reasons, it is highly recommended that you always
10725 # use absolute paths for naming shared libraries, and exclude the
10726 # DT_RUNPATH tag from executables and libraries. But doing so
10727 # requires that you compile everything twice, which is a pain.
10728 # So that behaviour is only enabled if SCOABSPATH is set to a
10729 # non-empty value in the environment. Most likely only useful for
10730 # creating official distributions of packages.
10731 # This is a hack until libtool officially supports absolute path
10732 # names for shared libraries.
10733 no_undefined_flag_CXX='${wl}-z,text'
10734 allow_undefined_flag_CXX='${wl}-z,nodefs'
10735 archive_cmds_need_lc_CXX=no
10736 hardcode_shlibpath_var_CXX=no
10737 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10738 hardcode_libdir_separator_CXX=':'
10739 link_all_deplibs_CXX=yes
10740 export_dynamic_flag_spec_CXX='${wl}-Bexport'
10741 runpath_var='LD_RUN_PATH'
10743 case $cc_basename in
10745 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10746 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10749 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10750 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10755 case $cc_basename in
10757 # NonStop-UX NCC 3.20
10758 # FIXME: insert proper C++ library support
10762 # FIXME: insert proper C++ library support
10768 # FIXME: insert proper C++ library support
10772 # FIXME: insert proper C++ library support
10776 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10777 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10778 test "$ld_shlibs_CXX" = no && can_build_shared=no
10784 cat > conftest.$ac_ext <<EOF
10788 Foo (void) { a = 0; }
10794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10795 (eval $ac_compile) 2>&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; then
10799 # Parse the compiler output and extract the necessary
10800 # objects, libraries and library flags.
10802 # Sentinel used to keep track of whether or not we are before
10803 # the conftest object file.
10804 pre_test_object_deps_done=no
10806 # The `*' in the case matches for architectures that use `case' in
10807 # $output_verbose_cmd can trigger glob expansion during the loop
10808 # eval without this substitution.
10809 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10811 for p in `eval $output_verbose_link_cmd`; do
10815 # Some compilers place space between "-{L,R}" and the path.
10816 # Remove the space.
10817 if test $p = "-L" \
10818 || test $p = "-R"; then
10825 if test "$pre_test_object_deps_done" = no; then
10828 # Internal compiler library paths should come after those
10829 # provided the user. The postdeps already come after the
10830 # user supplied libs so there is no need to process them.
10831 if test -z "$compiler_lib_search_path_CXX"; then
10832 compiler_lib_search_path_CXX="${prev}${p}"
10834 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10837 # The "-l" case would never come before the object being
10838 # linked, so don't bother handling this case.
10841 if test -z "$postdeps_CXX"; then
10842 postdeps_CXX="${prev}${p}"
10844 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10850 # This assumes that the test object file only shows up
10851 # once in the compiler output.
10852 if test "$p" = "conftest.$objext"; then
10853 pre_test_object_deps_done=yes
10857 if test "$pre_test_object_deps_done" = no; then
10858 if test -z "$predep_objects_CXX"; then
10859 predep_objects_CXX="$p"
10861 predep_objects_CXX="$predep_objects_CXX $p"
10864 if test -z "$postdep_objects_CXX"; then
10865 postdep_objects_CXX="$p"
10867 postdep_objects_CXX="$postdep_objects_CXX $p"
10872 *) ;; # Ignore the rest.
10880 echo "libtool.m4: error: problem compiling CXX test program"
10883 $rm -f confest.$objext
10885 # PORTME: override above test on systems where it is broken
10888 # Interix 3.5 installs completely hosed .la files for C++, so rather than
10889 # hack all around it, let's just trust "g++" to DTRT.
10890 predep_objects_CXX=
10891 postdep_objects_CXX=
10896 case $cc_basename in
10898 # Adding this requires a known-good setup of shared libraries for
10899 # Sun compiler versions before 5.6, else PIC objects from an old
10900 # archive will be linked into the output, leading to subtle bugs.
10901 postdeps_CXX='-lCstd -lCrun'
10908 case " $postdeps_CXX " in
10909 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10912 lt_prog_compiler_wl_CXX=
10913 lt_prog_compiler_pic_CXX=
10914 lt_prog_compiler_static_CXX=
10916 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10917 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10919 # C++ specific cases for pic, static, wl, etc.
10920 if test "$GXX" = yes; then
10921 lt_prog_compiler_wl_CXX='-Wl,'
10922 lt_prog_compiler_static_CXX='-static'
10926 # All AIX code is PIC.
10927 if test "$host_cpu" = ia64; then
10928 # AIX 5 now supports IA64 processor
10929 lt_prog_compiler_static_CXX='-Bstatic'
10933 # FIXME: we need at least 68020 code to build shared libraries, but
10934 # adding the `-m68020' flag to GCC prevents building anything better,
10936 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10938 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10939 # PIC is the default for these OSes.
10941 mingw* | os2* | pw32*)
10942 # This hack is so that the source file can tell whether it is being
10943 # built for inclusion in a dll (and should export symbols for example).
10944 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10946 darwin* | rhapsody*)
10947 # PIC is the default on this platform
10948 # Common symbols not allowed in MH_DYLIB files
10949 lt_prog_compiler_pic_CXX='-fno-common'
10952 # DJGPP does not support shared libraries at all
10953 lt_prog_compiler_pic_CXX=
10956 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10957 # Instead, we relocate shared libraries at runtime.
10960 if test -d /usr/nec; then
10961 lt_prog_compiler_pic_CXX=-Kconform_pic
10965 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10966 # not for PA HP-UX.
10971 lt_prog_compiler_pic_CXX='-fPIC'
10976 lt_prog_compiler_pic_CXX='-fPIC'
10982 # All AIX code is PIC.
10983 if test "$host_cpu" = ia64; then
10984 # AIX 5 now supports IA64 processor
10985 lt_prog_compiler_static_CXX='-Bstatic'
10987 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10991 case $cc_basename in
10993 # Green Hills C++ Compiler
10994 # _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"
10999 # PIC is the default on this platform
11000 # Common symbols not allowed in MH_DYLIB files
11001 case $cc_basename in
11003 lt_prog_compiler_pic_CXX='-qnocommon'
11004 lt_prog_compiler_wl_CXX='-Wl,'
11009 case $cc_basename in
11011 lt_prog_compiler_pic_CXX='-KPIC'
11014 # Green Hills C++ Compiler
11015 lt_prog_compiler_pic_CXX='-pic'
11021 freebsd* | kfreebsd*-gnu | dragonfly*)
11022 # FreeBSD uses GNU C++
11024 hpux9* | hpux10* | hpux11*)
11025 case $cc_basename in
11027 lt_prog_compiler_wl_CXX='-Wl,'
11028 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11029 if test "$host_cpu" != ia64; then
11030 lt_prog_compiler_pic_CXX='+Z'
11034 lt_prog_compiler_wl_CXX='-Wl,'
11035 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11041 lt_prog_compiler_pic_CXX='+Z'
11050 # This is c89, which is MS Visual C++ (no shared libs)
11051 # Anyone wants to do a port?
11053 irix5* | irix6* | nonstopux*)
11054 case $cc_basename in
11056 lt_prog_compiler_wl_CXX='-Wl,'
11057 lt_prog_compiler_static_CXX='-non_shared'
11058 # CC pic flag -KPIC is the default.
11065 case $cc_basename in
11068 lt_prog_compiler_wl_CXX='--backend -Wl,'
11069 lt_prog_compiler_pic_CXX='-fPIC'
11073 lt_prog_compiler_wl_CXX='-Wl,'
11074 lt_prog_compiler_pic_CXX='-KPIC'
11075 lt_prog_compiler_static_CXX='-static'
11078 # Portland Group C++ compiler.
11079 lt_prog_compiler_wl_CXX='-Wl,'
11080 lt_prog_compiler_pic_CXX='-fpic'
11081 lt_prog_compiler_static_CXX='-Bstatic'
11085 # Make sure the PIC flag is empty. It appears that all Alpha
11086 # Linux and Compaq Tru64 Unix objects are PIC.
11087 lt_prog_compiler_pic_CXX=
11088 lt_prog_compiler_static_CXX='-non_shared'
11099 case $cc_basename in
11101 lt_prog_compiler_pic_CXX='-W c,exportall'
11107 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11109 osf3* | osf4* | osf5*)
11110 case $cc_basename in
11112 lt_prog_compiler_wl_CXX='--backend -Wl,'
11115 # Rational C++ 2.4.1
11116 lt_prog_compiler_pic_CXX='-pic'
11119 # Digital/Compaq C++
11120 lt_prog_compiler_wl_CXX='-Wl,'
11121 # Make sure the PIC flag is empty. It appears that all Alpha
11122 # Linux and Compaq Tru64 Unix objects are PIC.
11123 lt_prog_compiler_pic_CXX=
11124 lt_prog_compiler_static_CXX='-non_shared'
11133 case $cc_basename in
11135 # Sun C++ 4.2, 5.x and Centerline C++
11136 lt_prog_compiler_pic_CXX='-KPIC'
11137 lt_prog_compiler_static_CXX='-Bstatic'
11138 lt_prog_compiler_wl_CXX='-Qoption ld '
11141 # Green Hills C++ Compiler
11142 lt_prog_compiler_pic_CXX='-PIC'
11149 case $cc_basename in
11152 lt_prog_compiler_pic_CXX='-pic'
11153 lt_prog_compiler_static_CXX='-Bstatic'
11157 lt_prog_compiler_pic_CXX='-pic'
11164 case $cc_basename in
11166 # NonStop-UX NCC 3.20
11167 lt_prog_compiler_pic_CXX='-KPIC'
11173 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11174 case $cc_basename in
11176 lt_prog_compiler_wl_CXX='-Wl,'
11177 lt_prog_compiler_pic_CXX='-KPIC'
11178 lt_prog_compiler_static_CXX='-Bstatic'
11185 lt_prog_compiler_can_build_shared_CXX=no
11190 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11191 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11194 # Check to make sure the PIC flag actually works.
11196 if test -n "$lt_prog_compiler_pic_CXX"; then
11198 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11199 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11200 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11203 lt_prog_compiler_pic_works_CXX=no
11204 ac_outfile=conftest.$ac_objext
11205 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11206 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11207 # Insert the option either (1) after the last *FLAGS variable, or
11208 # (2) before a word containing "conftest.", or (3) at the end.
11209 # Note that $ac_compile itself does not contain backslashes and begins
11210 # with a dollar sign (not a hyphen), so the echo should work correctly.
11211 # The option is referenced via a variable to avoid confusing sed.
11212 lt_compile=`echo "$ac_compile" | $SED \
11213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11215 -e 's:$: $lt_compiler_flag:'`
11216 (eval echo "\"\$as_me:11216: $lt_compile\"" >&5)
11217 (eval "$lt_compile" 2>conftest.err)
11219 cat conftest.err >&5
11220 echo "$as_me:11220: \$? = $ac_status" >&5
11221 if (exit $ac_status) && test -s "$ac_outfile"; then
11222 # The compiler can only warn and ignore the option if not recognized
11223 # So say no if there are warnings other than the usual output.
11224 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11226 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11227 lt_prog_compiler_pic_works_CXX=yes
11233 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11234 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11236 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11237 case $lt_prog_compiler_pic_CXX in
11239 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11242 lt_prog_compiler_pic_CXX=
11243 lt_prog_compiler_can_build_shared_CXX=no
11248 # For platforms which do not support PIC, -DPIC is meaningless:
11250 lt_prog_compiler_pic_CXX=
11253 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11258 # Check to make sure the static flag actually works.
11260 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11261 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11262 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11263 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 lt_prog_compiler_static_works_CXX=no
11267 save_LDFLAGS="$LDFLAGS"
11268 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11269 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11270 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11271 # The linker can only warn and ignore the option if not recognized
11272 # So say no if there are warnings
11273 if test -s conftest.err; then
11274 # Append any errors to the config.log.
11275 cat conftest.err 1>&5
11276 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11278 if diff conftest.exp conftest.er2 >/dev/null; then
11279 lt_prog_compiler_static_works_CXX=yes
11282 lt_prog_compiler_static_works_CXX=yes
11286 LDFLAGS="$save_LDFLAGS"
11289 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11290 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11292 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11295 lt_prog_compiler_static_CXX=
11299 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11300 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11301 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 lt_cv_prog_compiler_c_o_CXX=no
11305 $rm -r conftest 2>/dev/null
11309 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11311 lt_compiler_flag="-o out/conftest2.$ac_objext"
11312 # Insert the option either (1) after the last *FLAGS variable, or
11313 # (2) before a word containing "conftest.", or (3) at the end.
11314 # Note that $ac_compile itself does not contain backslashes and begins
11315 # with a dollar sign (not a hyphen), so the echo should work correctly.
11316 lt_compile=`echo "$ac_compile" | $SED \
11317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11319 -e 's:$: $lt_compiler_flag:'`
11320 (eval echo "\"\$as_me:11320: $lt_compile\"" >&5)
11321 (eval "$lt_compile" 2>out/conftest.err)
11323 cat out/conftest.err >&5
11324 echo "$as_me:11324: \$? = $ac_status" >&5
11325 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11327 # The compiler can only warn and ignore the option if not recognized
11328 # So say no if there are warnings
11329 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11330 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11331 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11332 lt_cv_prog_compiler_c_o_CXX=yes
11337 # SGI C++ compiler will create directory out/ii_files/ for
11338 # template instantiation
11339 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11340 $rm out/* && rmdir out
11346 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11347 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11350 hard_links="nottested"
11351 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11352 # do not overwrite the value of need_locks provided by the user
11353 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11354 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11357 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11359 ln conftest.a conftest.b 2>&5 || hard_links=no
11360 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11361 echo "$as_me:$LINENO: result: $hard_links" >&5
11362 echo "${ECHO_T}$hard_links" >&6
11363 if test "$hard_links" = no; then
11364 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11365 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11372 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11373 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11375 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11378 # If we're using GNU nm, then we don't want the "-C" option.
11379 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11380 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11381 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'
11383 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'
11387 export_symbols_cmds_CXX="$ltdll_cmds"
11390 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11393 link_all_deplibs_CXX=no
11396 link_all_deplibs_CXX=no
11399 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11403 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11404 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11405 test "$ld_shlibs_CXX" = no && can_build_shared=no
11408 # Do we need to explicitly link libc?
11410 case "x$archive_cmds_need_lc_CXX" in
11412 # Assume -lc should be added
11413 archive_cmds_need_lc_CXX=yes
11415 if test "$enable_shared" = yes && test "$GCC" = yes; then
11416 case $archive_cmds_CXX in
11418 # FIXME: we may have to deal with multi-command sequences.
11421 # Test whether the compiler implicitly links with -lc since on some
11422 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11423 # to ld, don't add -lc before -lgcc.
11424 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11425 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11427 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11430 (eval $ac_compile) 2>&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } 2>conftest.err; then
11436 libobjs=conftest.$ac_objext
11438 wl=$lt_prog_compiler_wl_CXX
11439 pic_flag=$lt_prog_compiler_pic_CXX
11445 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11446 allow_undefined_flag_CXX=
11447 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11448 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }
11453 archive_cmds_need_lc_CXX=no
11455 archive_cmds_need_lc_CXX=yes
11457 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11459 cat conftest.err 1>&5
11462 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11463 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11470 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11471 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11472 library_names_spec=
11473 libname_spec='lib$name'
11477 postuninstall_cmds=
11481 shlibpath_overrides_runpath=unknown
11483 dynamic_linker="$host_os ld.so"
11484 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11485 if test "$GCC" = yes; then
11486 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11487 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11488 # if the path contains ";" then we assume it to be the separator
11489 # otherwise default to the standard path separator (i.e. ":") - it is
11490 # assumed that no part of a normal pathname contains ";" but that should
11491 # okay in the real world where ";" in dirpaths is itself problematic.
11492 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11494 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11497 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11499 need_lib_prefix=unknown
11500 hardcode_into_libs=no
11502 # when you set need_version to no, make sure it does not cause -set_version
11503 # flags to be left without arguments
11504 need_version=unknown
11509 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11510 shlibpath_var=LIBPATH
11512 # AIX 3 has no versioning support, so we append a major version to the name.
11513 soname_spec='${libname}${release}${shared_ext}$major'
11520 hardcode_into_libs=yes
11521 if test "$host_cpu" = ia64; then
11522 # AIX 5 supports IA64
11523 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11524 shlibpath_var=LD_LIBRARY_PATH
11526 # With GCC up to 2.95.x, collect2 would create an import file
11527 # for dependence libraries. The import file would start with
11528 # the line `#! .'. This would cause the generated library to
11529 # depend on `.', always an invalid library. This was fixed in
11530 # development snapshots of GCC prior to 3.0.
11532 aix4 | aix4.[01] | aix4.[01].*)
11533 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11535 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11538 can_build_shared=no
11542 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11543 # soname into executable. Probably we can add versioning support to
11544 # collect2, so additional links can be useful in future.
11545 if test "$aix_use_runtimelinking" = yes; then
11546 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11547 # instead of lib<name>.a to let people know that these are not
11548 # typical AIX shared libraries.
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551 # We preserve .a as extension for shared libraries through AIX4.2
11552 # and later when we are not doing run time linking.
11553 library_names_spec='${libname}${release}.a $libname.a'
11554 soname_spec='${libname}${release}${shared_ext}$major'
11556 shlibpath_var=LIBPATH
11561 library_names_spec='$libname.ixlibrary $libname.a'
11562 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11563 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'
11567 library_names_spec='${libname}${shared_ext}'
11568 dynamic_linker="$host_os ld.so"
11569 shlibpath_var=LIBRARY_PATH
11575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11576 soname_spec='${libname}${release}${shared_ext}$major'
11577 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11578 shlibpath_var=LD_LIBRARY_PATH
11579 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11580 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11581 # the default ld.so.conf also contains /usr/contrib/lib and
11582 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11583 # libtool to hard-code these into programs
11586 cygwin* | mingw* | pw32*)
11587 version_type=windows
11592 case $GCC,$host_os in
11593 yes,cygwin* | yes,mingw* | yes,pw32*)
11594 library_names_spec='$libname.dll.a'
11595 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11596 postinstall_cmds='base_file=`basename \${file}`~
11597 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11598 dldir=$destdir/`dirname \$dlpath`~
11599 test -d \$dldir || mkdir -p \$dldir~
11600 $install_prog $dir/$dlname \$dldir/$dlname~
11601 chmod a+x \$dldir/$dlname'
11602 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11603 dlpath=$dir/\$dldll~
11605 shlibpath_overrides_runpath=yes
11609 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11610 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11611 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11614 # MinGW DLLs use traditional 'lib' prefix
11615 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11616 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11617 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11618 # It is most probably a Windows format PATH printed by
11619 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11620 # path with ; separators, and with drive letters. We can handle the
11621 # drive letters (cygwin fileutils understands them), so leave them,
11622 # especially as we might pass files found there to a mingw objdump,
11623 # which wouldn't understand a cygwinified path. Ahh.
11624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11630 # pw32 DLLs use 'pw' prefix rather than 'lib'
11631 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11637 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11640 dynamic_linker='Win32 ld.exe'
11641 # FIXME: first we should search . and the directory the executable is in
11645 darwin* | rhapsody*)
11646 dynamic_linker="$host_os dyld"
11647 version_type=darwin
11650 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11651 soname_spec='${libname}${release}${major}$shared_ext'
11652 shlibpath_overrides_runpath=yes
11653 shlibpath_var=DYLD_LIBRARY_PATH
11654 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11655 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11656 if test "$GCC" = yes; then
11657 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"`
11659 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11661 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11669 soname_spec='${libname}${release}${shared_ext}$major'
11670 shlibpath_var=LD_LIBRARY_PATH
11681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11682 soname_spec='${libname}${release}${shared_ext}$major'
11683 shlibpath_var=LD_LIBRARY_PATH
11684 shlibpath_overrides_runpath=no
11685 hardcode_into_libs=yes
11686 dynamic_linker='GNU ld.so'
11689 freebsd* | dragonfly*)
11690 # DragonFly does not have aout. When/if they implement a new
11691 # versioning mechanism, adjust this.
11692 if test -x /usr/bin/objformat; then
11693 objformat=`/usr/bin/objformat`
11696 freebsd[123]*) objformat=aout ;;
11697 *) objformat=elf ;;
11700 version_type=freebsd-$objformat
11701 case $version_type in
11703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11708 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11712 shlibpath_var=LD_LIBRARY_PATH
11715 shlibpath_overrides_runpath=yes
11717 freebsd3.[01]* | freebsdelf3.[01]*)
11718 shlibpath_overrides_runpath=yes
11719 hardcode_into_libs=yes
11721 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11722 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11723 shlibpath_overrides_runpath=no
11724 hardcode_into_libs=yes
11726 freebsd*) # from 4.6 on
11727 shlibpath_overrides_runpath=yes
11728 hardcode_into_libs=yes
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11738 soname_spec='${libname}${release}${shared_ext}$major'
11739 shlibpath_var=LD_LIBRARY_PATH
11740 hardcode_into_libs=yes
11743 hpux9* | hpux10* | hpux11*)
11744 # Give a soname corresponding to the major version so that dld.sl refuses to
11745 # link against other versions.
11752 hardcode_into_libs=yes
11753 dynamic_linker="$host_os dld.so"
11754 shlibpath_var=LD_LIBRARY_PATH
11755 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11757 soname_spec='${libname}${release}${shared_ext}$major'
11758 if test "X$HPUX_IA64_MODE" = X32; then
11759 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11761 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11763 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11767 hardcode_into_libs=yes
11768 dynamic_linker="$host_os dld.sl"
11769 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11770 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11772 soname_spec='${libname}${release}${shared_ext}$major'
11773 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11778 dynamic_linker="$host_os dld.sl"
11779 shlibpath_var=SHLIB_PATH
11780 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11782 soname_spec='${libname}${release}${shared_ext}$major'
11785 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11786 postinstall_cmds='chmod 555 $lib'
11793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11794 soname_spec='${libname}${release}${shared_ext}$major'
11795 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11796 shlibpath_var=LD_LIBRARY_PATH
11797 shlibpath_overrides_runpath=no
11798 hardcode_into_libs=yes
11801 irix5* | irix6* | nonstopux*)
11803 nonstopux*) version_type=nonstopux ;;
11805 if test "$lt_cv_prog_gnu_ld" = yes; then
11813 soname_spec='${libname}${release}${shared_ext}$major'
11814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11816 irix5* | nonstopux*)
11817 libsuff= shlibsuff=
11820 case $LD in # libtool.m4 will add one of these switches to LD
11821 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11822 libsuff= shlibsuff= libmagic=32-bit;;
11823 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11824 libsuff=32 shlibsuff=N32 libmagic=N32;;
11825 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11826 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11827 *) libsuff= shlibsuff= libmagic=never-match;;
11831 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11832 shlibpath_overrides_runpath=no
11833 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11834 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11835 hardcode_into_libs=yes
11838 # No shared lib support for Linux oldld, aout, or coff.
11839 linux*oldld* | linux*aout* | linux*coff*)
11843 # This must be Linux ELF.
11848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11849 soname_spec='${libname}${release}${shared_ext}$major'
11850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11851 shlibpath_var=LD_LIBRARY_PATH
11852 shlibpath_overrides_runpath=no
11853 # This implies no fast_install, which is unacceptable.
11854 # Some rework will be needed to allow for fast_install
11855 # before this can be enabled.
11856 hardcode_into_libs=yes
11858 # Append ld.so.conf contents to the search path
11859 if test -f /etc/ld.so.conf; then
11860 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11861 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11864 # We used to test for /lib/ld.so.1 and disable shared libraries on
11865 # powerpc, because MkLinux only supported shared libraries with the
11866 # GNU dynamic linker. Since this was broken with cross compilers,
11867 # most powerpc-linux boxes support dynamic linking these days and
11868 # people can always --disable-shared, the test was removed, and we
11869 # assume the GNU/Linux dynamic linker is in use.
11870 dynamic_linker='GNU/Linux ld.so'
11877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11878 soname_spec='${libname}${release}${shared_ext}$major'
11879 shlibpath_var=LD_LIBRARY_PATH
11880 shlibpath_overrides_runpath=no
11881 hardcode_into_libs=yes
11882 dynamic_linker='NetBSD ld.elf_so'
11889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11890 soname_spec='${libname}${release}${shared_ext}$major'
11891 shlibpath_var=LD_LIBRARY_PATH
11892 shlibpath_overrides_runpath=no
11893 hardcode_into_libs=yes
11894 dynamic_linker='GNU ld.so'
11901 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11904 dynamic_linker='NetBSD (a.out) ld.so'
11906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11907 soname_spec='${libname}${release}${shared_ext}$major'
11908 dynamic_linker='NetBSD ld.elf_so'
11910 shlibpath_var=LD_LIBRARY_PATH
11911 shlibpath_overrides_runpath=yes
11912 hardcode_into_libs=yes
11917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11918 shlibpath_var=LD_LIBRARY_PATH
11919 shlibpath_overrides_runpath=yes
11926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11927 soname_spec='${libname}${release}${shared_ext}$major'
11928 shlibpath_var=LD_LIBRARY_PATH
11929 shlibpath_overrides_runpath=yes
11934 sys_lib_dlsearch_path_spec="/usr/lib"
11936 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11938 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11939 *) need_version=no ;;
11941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11943 shlibpath_var=LD_LIBRARY_PATH
11944 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11946 openbsd2.[89] | openbsd2.[89].*)
11947 shlibpath_overrides_runpath=no
11950 shlibpath_overrides_runpath=yes
11954 shlibpath_overrides_runpath=yes
11959 libname_spec='$name'
11962 library_names_spec='$libname${shared_ext} $libname.a'
11963 dynamic_linker='OS/2 ld.exe'
11964 shlibpath_var=LIBPATH
11967 osf3* | osf4* | osf5*)
11971 soname_spec='${libname}${release}${shared_ext}$major'
11972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11973 shlibpath_var=LD_LIBRARY_PATH
11974 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11975 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11983 soname_spec='${libname}${release}${shared_ext}$major'
11984 shlibpath_var=LD_LIBRARY_PATH
11985 shlibpath_overrides_runpath=yes
11986 hardcode_into_libs=yes
11987 # ldd complains unless libraries are executable
11988 postinstall_cmds='chmod +x $lib'
11993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11994 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11995 shlibpath_var=LD_LIBRARY_PATH
11996 shlibpath_overrides_runpath=yes
11997 if test "$with_gnu_ld" = yes; then
12005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12006 soname_spec='${libname}${release}${shared_ext}$major'
12007 shlibpath_var=LD_LIBRARY_PATH
12008 case $host_vendor in
12010 shlibpath_overrides_runpath=no
12012 export_dynamic_flag_spec='${wl}-Blargedynsym'
12013 runpath_var=LD_RUN_PATH
12021 shlibpath_overrides_runpath=no
12022 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12028 if test -d /usr/nec ;then
12030 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12031 soname_spec='$libname${shared_ext}.$major'
12032 shlibpath_var=LD_LIBRARY_PATH
12036 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12037 version_type=freebsd-elf
12040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12041 soname_spec='${libname}${release}${shared_ext}$major'
12042 shlibpath_var=LD_LIBRARY_PATH
12043 hardcode_into_libs=yes
12044 if test "$with_gnu_ld" = yes; then
12045 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12046 shlibpath_overrides_runpath=no
12048 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12049 shlibpath_overrides_runpath=yes
12052 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12056 sys_lib_dlsearch_path_spec='/usr/lib'
12061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062 soname_spec='${libname}${release}${shared_ext}$major'
12063 shlibpath_var=LD_LIBRARY_PATH
12070 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12071 echo "${ECHO_T}$dynamic_linker" >&6
12072 test "$dynamic_linker" = no && can_build_shared=no
12074 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12075 if test "$GCC" = yes; then
12076 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12079 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12080 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12081 hardcode_action_CXX=
12082 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12083 test -n "$runpath_var_CXX" || \
12084 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12086 # We can hardcode non-existant directories.
12087 if test "$hardcode_direct_CXX" != no &&
12088 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12089 # have to relink, otherwise we might link with an installed library
12090 # when we should be linking with a yet-to-be-installed one
12091 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12092 test "$hardcode_minus_L_CXX" != no; then
12093 # Linking always hardcodes the temporary library directory.
12094 hardcode_action_CXX=relink
12096 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12097 hardcode_action_CXX=immediate
12100 # We cannot hardcode anything, or else we can only hardcode existing
12102 hardcode_action_CXX=unsupported
12104 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12105 echo "${ECHO_T}$hardcode_action_CXX" >&6
12107 if test "$hardcode_action_CXX" = relink; then
12108 # Fast installation is not supported
12109 enable_fast_install=no
12110 elif test "$shlibpath_overrides_runpath" = yes ||
12111 test "$enable_shared" = no; then
12112 # Fast installation is not necessary
12113 enable_fast_install=needless
12117 # The else clause should only fire when bootstrapping the
12118 # libtool distribution, otherwise you forgot to ship ltmain.sh
12119 # with your package, and you will get complaints that there are
12120 # no rules to generate ltmain.sh.
12121 if test -f "$ltmain"; then
12122 # See if we are running on zsh, and set the options which allow our commands through
12123 # without removal of \ escapes.
12124 if test -n "${ZSH_VERSION+set}" ; then
12125 setopt NO_GLOB_SUBST
12127 # Now quote all the things that may contain metacharacters while being
12128 # careful not to overquote the AC_SUBSTed values. We take copies of the
12129 # variables and quote the copies for generation of the libtool script.
12130 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12132 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12133 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12134 deplibs_check_method reload_flag reload_cmds need_locks \
12135 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12136 lt_cv_sys_global_symbol_to_c_name_address \
12137 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12138 old_postinstall_cmds old_postuninstall_cmds \
12142 lt_prog_compiler_wl_CXX \
12143 lt_prog_compiler_pic_CXX \
12144 lt_prog_compiler_static_CXX \
12145 lt_prog_compiler_no_builtin_flag_CXX \
12146 export_dynamic_flag_spec_CXX \
12147 thread_safe_flag_spec_CXX \
12148 whole_archive_flag_spec_CXX \
12149 enable_shared_with_static_runtimes_CXX \
12150 old_archive_cmds_CXX \
12151 old_archive_from_new_cmds_CXX \
12152 predep_objects_CXX \
12153 postdep_objects_CXX \
12156 compiler_lib_search_path_CXX \
12158 archive_expsym_cmds_CXX \
12159 postinstall_cmds_CXX \
12160 postuninstall_cmds_CXX \
12161 old_archive_from_expsyms_cmds_CXX \
12162 allow_undefined_flag_CXX \
12163 no_undefined_flag_CXX \
12164 export_symbols_cmds_CXX \
12165 hardcode_libdir_flag_spec_CXX \
12166 hardcode_libdir_flag_spec_ld_CXX \
12167 hardcode_libdir_separator_CXX \
12168 hardcode_automatic_CXX \
12170 module_expsym_cmds_CXX \
12171 lt_cv_prog_compiler_c_o_CXX \
12172 exclude_expsyms_CXX \
12173 include_expsyms_CXX; do
12176 old_archive_cmds_CXX | \
12177 old_archive_from_new_cmds_CXX | \
12178 archive_cmds_CXX | \
12179 archive_expsym_cmds_CXX | \
12180 module_cmds_CXX | \
12181 module_expsym_cmds_CXX | \
12182 old_archive_from_expsyms_cmds_CXX | \
12183 export_symbols_cmds_CXX | \
12184 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12185 postinstall_cmds | postuninstall_cmds | \
12186 old_postinstall_cmds | old_postuninstall_cmds | \
12187 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12188 # Double-quote double-evaled strings.
12189 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12192 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12198 *'\$0 --fallback-echo"')
12199 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12205 cat <<__EOF__ >> "$cfgfile"
12206 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12208 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12210 # Shell to use when invoking shell scripts.
12213 # Whether or not to build shared libraries.
12214 build_libtool_libs=$enable_shared
12216 # Whether or not to build static libraries.
12217 build_old_libs=$enable_static
12219 # Whether or not to add -lc for building shared libraries.
12220 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12222 # Whether or not to disallow shared libs when runtime libs are static
12223 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12225 # Whether or not to optimize for fast installation.
12226 fast_install=$enable_fast_install
12229 host_alias=$host_alias
12233 # The build system.
12234 build_alias=$build_alias
12238 # An echo program that does not interpret backslashes.
12243 AR_FLAGS=$lt_AR_FLAGS
12248 # LTCC compiler flags.
12249 LTCFLAGS=$lt_LTCFLAGS
12251 # A language-specific compiler.
12252 CC=$lt_compiler_CXX
12254 # Is the compiler the GNU C compiler?
12260 # The linker used to build libraries.
12263 # Whether we need hard or soft links.
12266 # A BSD-compatible nm program.
12269 # A symbol stripping program
12272 # Used to examine libraries when file_magic_cmd begins "file"
12273 MAGIC_CMD=$MAGIC_CMD
12275 # Used on cygwin: DLL creation program.
12278 # Used on cygwin: object dumper.
12281 # Used on cygwin: assembler.
12284 # The name of the directory that contains temporary libtool files.
12287 # How to create reloadable object files.
12288 reload_flag=$lt_reload_flag
12289 reload_cmds=$lt_reload_cmds
12291 # How to pass a linker flag through the compiler.
12292 wl=$lt_lt_prog_compiler_wl_CXX
12294 # Object file suffix (normally "o").
12295 objext="$ac_objext"
12297 # Old archive suffix (normally "a").
12300 # Shared library suffix (normally ".so").
12301 shrext_cmds='$shrext_cmds'
12303 # Executable file suffix (normally "").
12306 # Additional compiler flags for building library objects.
12307 pic_flag=$lt_lt_prog_compiler_pic_CXX
12310 # What is the maximum length of a command?
12311 max_cmd_len=$lt_cv_sys_max_cmd_len
12313 # Does compiler simultaneously support -c and -o options?
12314 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12316 # Must we lock files when doing compilation?
12317 need_locks=$lt_need_locks
12319 # Do we need the lib prefix for modules?
12320 need_lib_prefix=$need_lib_prefix
12322 # Do we need a version for libraries?
12323 need_version=$need_version
12325 # Whether dlopen is supported.
12326 dlopen_support=$enable_dlopen
12328 # Whether dlopen of programs is supported.
12329 dlopen_self=$enable_dlopen_self
12331 # Whether dlopen of statically linked programs is supported.
12332 dlopen_self_static=$enable_dlopen_self_static
12334 # Compiler flag to prevent dynamic linking.
12335 link_static_flag=$lt_lt_prog_compiler_static_CXX
12337 # Compiler flag to turn off builtin functions.
12338 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12340 # Compiler flag to allow reflexive dlopens.
12341 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12343 # Compiler flag to generate shared objects directly from archives.
12344 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12346 # Compiler flag to generate thread-safe objects.
12347 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12349 # Library versioning type.
12350 version_type=$version_type
12352 # Format of library name prefix.
12353 libname_spec=$lt_libname_spec
12355 # List of archive names. First name is the real one, the rest are links.
12356 # The last name is the one that the linker finds with -lNAME.
12357 library_names_spec=$lt_library_names_spec
12359 # The coded name of the library, if different from the real name.
12360 soname_spec=$lt_soname_spec
12362 # Commands used to build and install an old-style archive.
12364 old_archive_cmds=$lt_old_archive_cmds_CXX
12365 old_postinstall_cmds=$lt_old_postinstall_cmds
12366 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12368 # Create an old-style archive from a shared archive.
12369 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12371 # Create a temporary old-style archive to link instead of a shared archive.
12372 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12374 # Commands used to build and install a shared archive.
12375 archive_cmds=$lt_archive_cmds_CXX
12376 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12377 postinstall_cmds=$lt_postinstall_cmds
12378 postuninstall_cmds=$lt_postuninstall_cmds
12380 # Commands used to build a loadable module (assumed same as above if empty)
12381 module_cmds=$lt_module_cmds_CXX
12382 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12384 # Commands to strip libraries.
12385 old_striplib=$lt_old_striplib
12386 striplib=$lt_striplib
12388 # Dependencies to place before the objects being linked to create a
12390 predep_objects=$lt_predep_objects_CXX
12392 # Dependencies to place after the objects being linked to create a
12394 postdep_objects=$lt_postdep_objects_CXX
12396 # Dependencies to place before the objects being linked to create a
12398 predeps=$lt_predeps_CXX
12400 # Dependencies to place after the objects being linked to create a
12402 postdeps=$lt_postdeps_CXX
12404 # The library search path used internally by the compiler when linking
12405 # a shared library.
12406 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12408 # Method to check whether dependent libraries are shared objects.
12409 deplibs_check_method=$lt_deplibs_check_method
12411 # Command to use when deplibs_check_method == file_magic.
12412 file_magic_cmd=$lt_file_magic_cmd
12414 # Flag that allows shared libraries with undefined symbols to be built.
12415 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12417 # Flag that forces no undefined symbols.
12418 no_undefined_flag=$lt_no_undefined_flag_CXX
12420 # Commands used to finish a libtool library installation in a directory.
12421 finish_cmds=$lt_finish_cmds
12423 # Same as above, but a single script fragment to be evaled but not shown.
12424 finish_eval=$lt_finish_eval
12426 # Take the output of nm and produce a listing of raw symbols and C names.
12427 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12429 # Transform the output of nm in a proper C declaration
12430 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12432 # Transform the output of nm in a C name address pair
12433 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12435 # This is the shared library runtime path variable.
12436 runpath_var=$runpath_var
12438 # This is the shared library path variable.
12439 shlibpath_var=$shlibpath_var
12441 # Is shlibpath searched before the hard-coded library search path?
12442 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12444 # How to hardcode a shared library path into an executable.
12445 hardcode_action=$hardcode_action_CXX
12447 # Whether we should hardcode library paths into libraries.
12448 hardcode_into_libs=$hardcode_into_libs
12450 # Flag to hardcode \$libdir into a binary during linking.
12451 # This must work even if \$libdir does not exist.
12452 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12454 # If ld is used when linking, flag to hardcode \$libdir into
12455 # a binary during linking. This must work even if \$libdir does
12457 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12459 # Whether we need a single -rpath flag with a separated argument.
12460 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12462 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12463 # resulting binary.
12464 hardcode_direct=$hardcode_direct_CXX
12466 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12467 # resulting binary.
12468 hardcode_minus_L=$hardcode_minus_L_CXX
12470 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12471 # the resulting binary.
12472 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12474 # Set to yes if building a shared library automatically hardcodes DIR into the library
12475 # and all subsequent libraries and executables linked against it.
12476 hardcode_automatic=$hardcode_automatic_CXX
12478 # Variables whose values should be saved in libtool wrapper scripts and
12479 # restored at relink time.
12480 variables_saved_for_relink="$variables_saved_for_relink"
12482 # Whether libtool must link a program against all its dependency libraries.
12483 link_all_deplibs=$link_all_deplibs_CXX
12485 # Compile-time system search path for libraries
12486 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12488 # Run-time system search path for libraries
12489 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12491 # Fix the shell variable \$srcfile for the compiler.
12492 fix_srcfile_path="$fix_srcfile_path_CXX"
12494 # Set to yes if exported symbols are required.
12495 always_export_symbols=$always_export_symbols_CXX
12497 # The commands to list exported symbols.
12498 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12500 # The commands to extract the exported symbol list from a shared archive.
12501 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12503 # Symbols that should not be listed in the preloaded symbols.
12504 exclude_expsyms=$lt_exclude_expsyms_CXX
12506 # Symbols that must always be exported.
12507 include_expsyms=$lt_include_expsyms_CXX
12509 # ### END LIBTOOL TAG CONFIG: $tagname
12515 # If there is no Makefile yet, we rely on a make rule to execute
12516 # `config.status --recheck' to rerun these tests and create the
12517 # libtool script then.
12518 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12519 if test -f "$ltmain_in"; then
12520 test -f Makefile && make "$ltmain"
12526 ac_cpp='$CPP $CPPFLAGS'
12527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12535 with_gnu_ldcxx=$with_gnu_ld
12536 with_gnu_ld=$lt_save_with_gnu_ld
12537 lt_cv_path_LDCXX=$lt_cv_path_LD
12538 lt_cv_path_LD=$lt_save_path_LD
12539 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12540 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12548 if test -n "$F77" && test "X$F77" != "Xno"; then
12551 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12552 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12553 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12556 archive_cmds_need_lc_F77=no
12557 allow_undefined_flag_F77=
12558 always_export_symbols_F77=no
12559 archive_expsym_cmds_F77=
12560 export_dynamic_flag_spec_F77=
12561 hardcode_direct_F77=no
12562 hardcode_libdir_flag_spec_F77=
12563 hardcode_libdir_flag_spec_ld_F77=
12564 hardcode_libdir_separator_F77=
12565 hardcode_minus_L_F77=no
12566 hardcode_automatic_F77=no
12568 module_expsym_cmds_F77=
12569 link_all_deplibs_F77=unknown
12570 old_archive_cmds_F77=$old_archive_cmds
12571 no_undefined_flag_F77=
12572 whole_archive_flag_spec_F77=
12573 enable_shared_with_static_runtimes_F77=no
12575 # Source file extension for f77 test sources.
12578 # Object file extension for compiled f77 test sources.
12582 # Code to be used in simple compile tests
12583 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12585 # Code to be used in simple link tests
12586 lt_simple_link_test_code=" program t\n end\n"
12588 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12590 # If no C compiler was specified, use CC.
12593 # If no C compiler flags were specified, use CFLAGS.
12594 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12596 # Allow CC to be a program name with arguments.
12600 # save warnings/boilerplate of simple test code
12601 ac_outfile=conftest.$ac_objext
12602 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12603 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12604 _lt_compiler_boilerplate=`cat conftest.err`
12607 ac_outfile=conftest.$ac_objext
12608 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12609 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12610 _lt_linker_boilerplate=`cat conftest.err`
12614 # Allow CC to be a program name with arguments.
12619 for cc_temp in $compiler""; do
12621 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12622 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12627 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12630 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12631 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12632 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12633 echo "${ECHO_T}$can_build_shared" >&6
12635 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12636 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12637 test "$can_build_shared" = "no" && enable_shared=no
12639 # On AIX, shared libraries and static libraries use the same namespace, and
12640 # are all built from PIC.
12643 test "$enable_shared" = yes && enable_static=no
12644 if test -n "$RANLIB"; then
12645 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12646 postinstall_cmds='$RANLIB $lib'
12650 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12651 test "$enable_shared" = yes && enable_static=no
12655 echo "$as_me:$LINENO: result: $enable_shared" >&5
12656 echo "${ECHO_T}$enable_shared" >&6
12658 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12659 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12660 # Make sure either enable_shared or enable_static is yes.
12661 test "$enable_shared" = yes || enable_static=yes
12662 echo "$as_me:$LINENO: result: $enable_static" >&5
12663 echo "${ECHO_T}$enable_static" >&6
12668 lt_prog_compiler_wl_F77=
12669 lt_prog_compiler_pic_F77=
12670 lt_prog_compiler_static_F77=
12672 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12673 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12675 if test "$GCC" = yes; then
12676 lt_prog_compiler_wl_F77='-Wl,'
12677 lt_prog_compiler_static_F77='-static'
12681 # All AIX code is PIC.
12682 if test "$host_cpu" = ia64; then
12683 # AIX 5 now supports IA64 processor
12684 lt_prog_compiler_static_F77='-Bstatic'
12689 # FIXME: we need at least 68020 code to build shared libraries, but
12690 # adding the `-m68020' flag to GCC prevents building anything better,
12692 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12695 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12696 # PIC is the default for these OSes.
12699 mingw* | pw32* | os2*)
12700 # This hack is so that the source file can tell whether it is being
12701 # built for inclusion in a dll (and should export symbols for example).
12702 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12705 darwin* | rhapsody*)
12706 # PIC is the default on this platform
12707 # Common symbols not allowed in MH_DYLIB files
12708 lt_prog_compiler_pic_F77='-fno-common'
12712 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12713 # Instead, we relocate shared libraries at runtime.
12717 # Just because we use GCC doesn't mean we suddenly get shared libraries
12718 # on systems that don't support them.
12719 lt_prog_compiler_can_build_shared_F77=no
12724 if test -d /usr/nec; then
12725 lt_prog_compiler_pic_F77=-Kconform_pic
12730 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12731 # not for PA HP-UX.
12737 lt_prog_compiler_pic_F77='-fPIC'
12743 lt_prog_compiler_pic_F77='-fPIC'
12747 # PORTME Check for flag to pass linker flags through the system compiler.
12750 lt_prog_compiler_wl_F77='-Wl,'
12751 if test "$host_cpu" = ia64; then
12752 # AIX 5 now supports IA64 processor
12753 lt_prog_compiler_static_F77='-Bstatic'
12755 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12759 # PIC is the default on this platform
12760 # Common symbols not allowed in MH_DYLIB files
12761 case $cc_basename in
12763 lt_prog_compiler_pic_F77='-qnocommon'
12764 lt_prog_compiler_wl_F77='-Wl,'
12769 mingw* | pw32* | os2*)
12770 # This hack is so that the source file can tell whether it is being
12771 # built for inclusion in a dll (and should export symbols for example).
12772 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12775 hpux9* | hpux10* | hpux11*)
12776 lt_prog_compiler_wl_F77='-Wl,'
12777 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12778 # not for PA HP-UX.
12784 lt_prog_compiler_pic_F77='+Z'
12787 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12788 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12791 irix5* | irix6* | nonstopux*)
12792 lt_prog_compiler_wl_F77='-Wl,'
12793 # PIC (with -KPIC) is the default.
12794 lt_prog_compiler_static_F77='-non_shared'
12798 lt_prog_compiler_pic_F77='-KPIC'
12799 lt_prog_compiler_static_F77='-Bstatic'
12803 case $cc_basename in
12805 lt_prog_compiler_wl_F77='-Wl,'
12806 lt_prog_compiler_pic_F77='-KPIC'
12807 lt_prog_compiler_static_F77='-static'
12809 pgcc* | pgf77* | pgf90* | pgf95*)
12810 # Portland Group compilers (*not* the Pentium gcc compiler,
12811 # which looks to be a dead project)
12812 lt_prog_compiler_wl_F77='-Wl,'
12813 lt_prog_compiler_pic_F77='-fpic'
12814 lt_prog_compiler_static_F77='-Bstatic'
12817 lt_prog_compiler_wl_F77='-Wl,'
12818 # All Alpha code is PIC.
12819 lt_prog_compiler_static_F77='-non_shared'
12824 osf3* | osf4* | osf5*)
12825 lt_prog_compiler_wl_F77='-Wl,'
12826 # All OSF/1 code is PIC.
12827 lt_prog_compiler_static_F77='-non_shared'
12831 lt_prog_compiler_pic_F77='-KPIC'
12832 lt_prog_compiler_static_F77='-Bstatic'
12833 case $cc_basename in
12834 f77* | f90* | f95*)
12835 lt_prog_compiler_wl_F77='-Qoption ld ';;
12837 lt_prog_compiler_wl_F77='-Wl,';;
12842 lt_prog_compiler_wl_F77='-Qoption ld '
12843 lt_prog_compiler_pic_F77='-PIC'
12844 lt_prog_compiler_static_F77='-Bstatic'
12847 sysv4 | sysv4.2uw2* | sysv4.3*)
12848 lt_prog_compiler_wl_F77='-Wl,'
12849 lt_prog_compiler_pic_F77='-KPIC'
12850 lt_prog_compiler_static_F77='-Bstatic'
12854 if test -d /usr/nec ;then
12855 lt_prog_compiler_pic_F77='-Kconform_pic'
12856 lt_prog_compiler_static_F77='-Bstatic'
12860 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12861 lt_prog_compiler_wl_F77='-Wl,'
12862 lt_prog_compiler_pic_F77='-KPIC'
12863 lt_prog_compiler_static_F77='-Bstatic'
12867 lt_prog_compiler_wl_F77='-Wl,'
12868 lt_prog_compiler_can_build_shared_F77=no
12872 lt_prog_compiler_pic_F77='-pic'
12873 lt_prog_compiler_static_F77='-Bstatic'
12877 lt_prog_compiler_can_build_shared_F77=no
12882 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12883 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12886 # Check to make sure the PIC flag actually works.
12888 if test -n "$lt_prog_compiler_pic_F77"; then
12890 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12891 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12892 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
12895 lt_prog_compiler_pic_works_F77=no
12896 ac_outfile=conftest.$ac_objext
12897 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12898 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12899 # Insert the option either (1) after the last *FLAGS variable, or
12900 # (2) before a word containing "conftest.", or (3) at the end.
12901 # Note that $ac_compile itself does not contain backslashes and begins
12902 # with a dollar sign (not a hyphen), so the echo should work correctly.
12903 # The option is referenced via a variable to avoid confusing sed.
12904 lt_compile=`echo "$ac_compile" | $SED \
12905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12907 -e 's:$: $lt_compiler_flag:'`
12908 (eval echo "\"\$as_me:12908: $lt_compile\"" >&5)
12909 (eval "$lt_compile" 2>conftest.err)
12911 cat conftest.err >&5
12912 echo "$as_me:12912: \$? = $ac_status" >&5
12913 if (exit $ac_status) && test -s "$ac_outfile"; then
12914 # The compiler can only warn and ignore the option if not recognized
12915 # So say no if there are warnings other than the usual output.
12916 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12917 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12918 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12919 lt_prog_compiler_pic_works_F77=yes
12925 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12926 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12928 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12929 case $lt_prog_compiler_pic_F77 in
12931 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12934 lt_prog_compiler_pic_F77=
12935 lt_prog_compiler_can_build_shared_F77=no
12940 # For platforms which do not support PIC, -DPIC is meaningless:
12942 lt_prog_compiler_pic_F77=
12945 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12950 # Check to make sure the static flag actually works.
12952 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
12953 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12954 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12955 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
12956 echo $ECHO_N "(cached) $ECHO_C" >&6
12958 lt_prog_compiler_static_works_F77=no
12959 save_LDFLAGS="$LDFLAGS"
12960 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12961 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12962 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12963 # The linker can only warn and ignore the option if not recognized
12964 # So say no if there are warnings
12965 if test -s conftest.err; then
12966 # Append any errors to the config.log.
12967 cat conftest.err 1>&5
12968 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12970 if diff conftest.exp conftest.er2 >/dev/null; then
12971 lt_prog_compiler_static_works_F77=yes
12974 lt_prog_compiler_static_works_F77=yes
12978 LDFLAGS="$save_LDFLAGS"
12981 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
12982 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
12984 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
12987 lt_prog_compiler_static_F77=
12991 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12992 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12993 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12994 echo $ECHO_N "(cached) $ECHO_C" >&6
12996 lt_cv_prog_compiler_c_o_F77=no
12997 $rm -r conftest 2>/dev/null
13001 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13003 lt_compiler_flag="-o out/conftest2.$ac_objext"
13004 # Insert the option either (1) after the last *FLAGS variable, or
13005 # (2) before a word containing "conftest.", or (3) at the end.
13006 # Note that $ac_compile itself does not contain backslashes and begins
13007 # with a dollar sign (not a hyphen), so the echo should work correctly.
13008 lt_compile=`echo "$ac_compile" | $SED \
13009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13011 -e 's:$: $lt_compiler_flag:'`
13012 (eval echo "\"\$as_me:13012: $lt_compile\"" >&5)
13013 (eval "$lt_compile" 2>out/conftest.err)
13015 cat out/conftest.err >&5
13016 echo "$as_me:13016: \$? = $ac_status" >&5
13017 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13019 # The compiler can only warn and ignore the option if not recognized
13020 # So say no if there are warnings
13021 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13022 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13023 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13024 lt_cv_prog_compiler_c_o_F77=yes
13029 # SGI C++ compiler will create directory out/ii_files/ for
13030 # template instantiation
13031 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13032 $rm out/* && rmdir out
13038 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13039 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13042 hard_links="nottested"
13043 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13044 # do not overwrite the value of need_locks provided by the user
13045 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13046 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13049 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13051 ln conftest.a conftest.b 2>&5 || hard_links=no
13052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13053 echo "$as_me:$LINENO: result: $hard_links" >&5
13054 echo "${ECHO_T}$hard_links" >&6
13055 if test "$hard_links" = no; then
13056 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13057 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13064 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13065 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13068 allow_undefined_flag_F77=
13069 enable_shared_with_static_runtimes_F77=no
13071 archive_expsym_cmds_F77=
13072 old_archive_From_new_cmds_F77=
13073 old_archive_from_expsyms_cmds_F77=
13074 export_dynamic_flag_spec_F77=
13075 whole_archive_flag_spec_F77=
13076 thread_safe_flag_spec_F77=
13077 hardcode_libdir_flag_spec_F77=
13078 hardcode_libdir_flag_spec_ld_F77=
13079 hardcode_libdir_separator_F77=
13080 hardcode_direct_F77=no
13081 hardcode_minus_L_F77=no
13082 hardcode_shlibpath_var_F77=unsupported
13083 link_all_deplibs_F77=unknown
13084 hardcode_automatic_F77=no
13086 module_expsym_cmds_F77=
13087 always_export_symbols_F77=no
13088 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13089 # include_expsyms should be a list of space-separated symbols to be *always*
13090 # included in the symbol list
13091 include_expsyms_F77=
13092 # exclude_expsyms can be an extended regexp of symbols to exclude
13093 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13094 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13095 # as well as any symbol that contains `d'.
13096 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13097 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13098 # platforms (ab)use it in PIC code, but their linkers get confused if
13099 # the symbol is explicitly referenced. Since portable code cannot
13100 # rely on this symbol name, it's probably fine to never include it in
13101 # preloaded symbol tables.
13102 extract_expsyms_cmds=
13103 # Just being paranoid about ensuring that cc_basename is set.
13104 for cc_temp in $compiler""; do
13106 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13107 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13112 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13115 cygwin* | mingw* | pw32*)
13116 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13117 # When not using gcc, we currently assume that we are using
13118 # Microsoft Visual C++.
13119 if test "$GCC" != yes; then
13124 # we just hope/assume this is gcc and not c89 (= MSVC++)
13133 if test "$with_gnu_ld" = yes; then
13134 # If archive_cmds runs LD, not CC, wlarc should be empty
13137 # Set some defaults for GNU ld with shared library support. These
13138 # are reset later if shared libraries are not supported. Putting them
13139 # here allows them to be overridden if necessary.
13140 runpath_var=LD_RUN_PATH
13141 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13142 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13143 # ancient GNU ld didn't support --whole-archive et. al.
13144 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13145 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13147 whole_archive_flag_spec_F77=
13149 supports_anon_versioning=no
13150 case `$LD -v 2>/dev/null` in
13151 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13152 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13153 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13154 *\ 2.11.*) ;; # other 2.11 versions
13155 *) supports_anon_versioning=yes ;;
13158 # See if GNU ld supports shared libraries.
13160 aix3* | aix4* | aix5*)
13161 # On AIX/PPC, the GNU linker is very broken
13162 if test "$host_cpu" != ia64; then
13166 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13167 *** to be unable to reliably create shared libraries on AIX.
13168 *** Therefore, libtool is disabling shared libraries support. If you
13169 *** really care for shared libraries, you may want to modify your PATH
13170 *** so that a non-GNU linker is found, and then restart.
13177 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)'
13178 hardcode_libdir_flag_spec_F77='-L$libdir'
13179 hardcode_minus_L_F77=yes
13181 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13182 # that the semantics of dynamic libraries on AmigaOS, at least up
13183 # to version 4, is to share data among multiple programs linked
13184 # with the same dynamic library. Since this doesn't match the
13185 # behavior of shared libraries on other platforms, we can't use
13191 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13192 allow_undefined_flag_F77=unsupported
13193 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13194 # support --undefined. This deserves some investigation. FIXME
13195 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13201 cygwin* | mingw* | pw32*)
13202 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13203 # as there is no search path for DLLs.
13204 hardcode_libdir_flag_spec_F77='-L$libdir'
13205 allow_undefined_flag_F77=unsupported
13206 always_export_symbols_F77=no
13207 enable_shared_with_static_runtimes_F77=yes
13208 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13210 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13211 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13212 # If the export-symbols file already is a .def file (1st line
13213 # is EXPORTS), use it as is; otherwise, prepend...
13214 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13215 cp $export_symbols $output_objdir/$soname.def;
13217 echo EXPORTS > $output_objdir/$soname.def;
13218 cat $export_symbols >> $output_objdir/$soname.def;
13220 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13227 hardcode_direct_F77=no
13228 hardcode_shlibpath_var_F77=no
13229 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13230 export_dynamic_flag_spec_F77='${wl}-E'
13231 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13232 # Instead, shared libraries are loaded at an image base (0x10000000 by
13233 # default) and relocated if they conflict, which is a slow very memory
13234 # consuming and fragmenting process. To avoid this, we pick a random,
13235 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13236 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13237 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13238 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13242 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13244 case $cc_basename,$host_cpu in
13245 pgcc*) # Portland Group C compiler
13246 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13247 tmp_addflag=' $pic_flag'
13249 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13250 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13251 tmp_addflag=' $pic_flag -Mnomain' ;;
13252 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13253 tmp_addflag=' -i_dynamic' ;;
13254 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13255 tmp_addflag=' -i_dynamic -nofor_main' ;;
13256 ifc* | ifort*) # Intel Fortran compiler
13257 tmp_addflag=' -nofor_main' ;;
13259 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13261 if test $supports_anon_versioning = yes; then
13262 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13263 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13264 $echo "local: *; };" >> $output_objdir/$libname.ver~
13265 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13267 link_all_deplibs_F77=no
13273 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13274 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13275 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13278 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13279 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13284 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13288 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13289 *** create shared libraries on Solaris systems. Therefore, libtool
13290 *** is disabling shared libraries support. We urge you to upgrade GNU
13291 *** binutils to release 2.9.1 or newer. Another option is to modify
13292 *** your PATH or compiler configuration so that the native linker is
13293 *** used, and then restart.
13296 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13297 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13298 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13304 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13305 case `$LD -v 2>&1` in
13306 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13310 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13311 *** reliably create shared libraries on SCO systems. Therefore, libtool
13312 *** is disabling shared libraries support. We urge you to upgrade GNU
13313 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13314 *** your PATH or compiler configuration so that the native linker is
13315 *** used, and then restart.
13320 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13321 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13322 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13323 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13332 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13334 hardcode_direct_F77=yes
13335 hardcode_shlibpath_var_F77=no
13339 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13340 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13341 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13348 if test "$ld_shlibs_F77" = no; then
13350 hardcode_libdir_flag_spec_F77=
13351 export_dynamic_flag_spec_F77=
13352 whole_archive_flag_spec_F77=
13355 # PORTME fill in a description of your system's linker (not GNU ld)
13358 allow_undefined_flag_F77=unsupported
13359 always_export_symbols_F77=yes
13360 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'
13361 # Note: this linker hardcodes the directories in LIBPATH if there
13362 # are no directories specified by -L.
13363 hardcode_minus_L_F77=yes
13364 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13365 # Neither direct hardcoding nor static linking is supported with a
13367 hardcode_direct_F77=unsupported
13372 if test "$host_cpu" = ia64; then
13373 # On IA64, the linker does run time linking by default, so we don't
13374 # have to do anything special.
13375 aix_use_runtimelinking=no
13376 exp_sym_flag='-Bexport'
13379 # If we're using GNU nm, then we don't want the "-C" option.
13380 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13381 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13382 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'
13384 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'
13386 aix_use_runtimelinking=no
13388 # Test if we are trying to use run time linking or normal
13389 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13390 # need to do runtime linking.
13391 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13392 for ld_flag in $LDFLAGS; do
13393 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13394 aix_use_runtimelinking=yes
13401 exp_sym_flag='-bexport'
13402 no_entry_flag='-bnoentry'
13405 # When large executables or shared objects are built, AIX ld can
13406 # have problems creating the table of contents. If linking a library
13407 # or program results in "error TOC overflow" add -mminimal-toc to
13408 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13409 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13411 archive_cmds_F77=''
13412 hardcode_direct_F77=yes
13413 hardcode_libdir_separator_F77=':'
13414 link_all_deplibs_F77=yes
13416 if test "$GCC" = yes; then
13417 case $host_os in aix4.[012]|aix4.[012].*)
13418 # We only want to do this on AIX 4.2 and lower, the check
13419 # below for broken collect2 doesn't work under 4.3+
13420 collect2name=`${CC} -print-prog-name=collect2`
13421 if test -f "$collect2name" && \
13422 strings "$collect2name" | grep resolve_lib_name >/dev/null
13424 # We have reworked collect2
13425 hardcode_direct_F77=yes
13427 # We have old collect2
13428 hardcode_direct_F77=unsupported
13429 # It fails to find uninstalled libraries when the uninstalled
13430 # path is not listed in the libpath. Setting hardcode_minus_L
13431 # to unsupported forces relinking
13432 hardcode_minus_L_F77=yes
13433 hardcode_libdir_flag_spec_F77='-L$libdir'
13434 hardcode_libdir_separator_F77=
13438 shared_flag='-shared'
13439 if test "$aix_use_runtimelinking" = yes; then
13440 shared_flag="$shared_flag "'${wl}-G'
13444 if test "$host_cpu" = ia64; then
13445 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13446 # chokes on -Wl,-G. The following line is correct:
13449 if test "$aix_use_runtimelinking" = yes; then
13450 shared_flag='${wl}-G'
13452 shared_flag='${wl}-bM:SRE'
13457 # It seems that -bexpall does not export symbols beginning with
13458 # underscore (_), so it is better to generate a list of symbols to export.
13459 always_export_symbols_F77=yes
13460 if test "$aix_use_runtimelinking" = yes; then
13461 # Warning - without using the other runtime loading flags (-brtl),
13462 # -berok will link without error, but may produce a broken library.
13463 allow_undefined_flag_F77='-berok'
13464 # Determine the default libpath from the value encoded in an empty executable.
13465 cat >conftest.$ac_ext <<_ACEOF
13470 rm -f conftest.$ac_objext conftest$ac_exeext
13471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13472 (eval $ac_link) 2>conftest.er1
13474 grep -v '^ *+' conftest.er1 >conftest.err
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } &&
13479 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; } &&
13485 { ac_try='test -s conftest$ac_exeext'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
13492 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13494 # Check for a 64-bit object if we didn't find anything.
13495 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; }
13498 echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13502 rm -f conftest.err conftest.$ac_objext \
13503 conftest$ac_exeext conftest.$ac_ext
13504 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13506 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13507 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13509 if test "$host_cpu" = ia64; then
13510 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13511 allow_undefined_flag_F77="-z nodefs"
13512 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13514 # Determine the default libpath from the value encoded in an empty executable.
13515 cat >conftest.$ac_ext <<_ACEOF
13520 rm -f conftest.$ac_objext conftest$ac_exeext
13521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13522 (eval $ac_link) 2>conftest.er1
13524 grep -v '^ *+' conftest.er1 >conftest.err
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } &&
13529 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531 (eval $ac_try) 2>&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); }; } &&
13535 { ac_try='test -s conftest$ac_exeext'
13536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13537 (eval $ac_try) 2>&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); }; }; then
13542 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13544 # Check for a 64-bit object if we didn't find anything.
13545 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; }
13548 echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13552 rm -f conftest.err conftest.$ac_objext \
13553 conftest$ac_exeext conftest.$ac_ext
13554 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13556 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13557 # Warning - without using the other run time loading flags,
13558 # -berok will link without error, but may produce a broken library.
13559 no_undefined_flag_F77=' ${wl}-bernotok'
13560 allow_undefined_flag_F77=' ${wl}-berok'
13561 # Exported symbols can be pulled into shared objects from archives
13562 whole_archive_flag_spec_F77='$convenience'
13563 archive_cmds_need_lc_F77=yes
13564 # This is similar to how AIX traditionally builds its shared libraries.
13565 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13571 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)'
13572 hardcode_libdir_flag_spec_F77='-L$libdir'
13573 hardcode_minus_L_F77=yes
13574 # see comment about different semantics on the GNU ld section
13579 export_dynamic_flag_spec_F77=-rdynamic
13582 cygwin* | mingw* | pw32*)
13583 # When not using gcc, we currently assume that we are using
13584 # Microsoft Visual C++.
13585 # hardcode_libdir_flag_spec is actually meaningless, as there is
13586 # no search path for DLLs.
13587 hardcode_libdir_flag_spec_F77=' '
13588 allow_undefined_flag_F77=unsupported
13589 # Tell ltmain to make .lib files, not .a files.
13591 # Tell ltmain to make .dll files, not .so files.
13593 # FIXME: Setting linknames here is a bad hack.
13594 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13595 # The linker will automatically build a .lib file if we build a DLL.
13596 old_archive_From_new_cmds_F77='true'
13597 # FIXME: Should let the user specify the lib program.
13598 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13599 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13600 enable_shared_with_static_runtimes_F77=yes
13603 darwin* | rhapsody*)
13605 rhapsody* | darwin1.[012])
13606 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13609 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13610 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13612 case ${MACOSX_DEPLOYMENT_TARGET} in
13614 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13617 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13623 archive_cmds_need_lc_F77=no
13624 hardcode_direct_F77=no
13625 hardcode_automatic_F77=yes
13626 hardcode_shlibpath_var_F77=unsupported
13627 whole_archive_flag_spec_F77=''
13628 link_all_deplibs_F77=yes
13629 if test "$GCC" = yes ; then
13630 output_verbose_link_cmd='echo'
13631 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13632 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13633 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13634 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13635 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}'
13637 case $cc_basename in
13639 output_verbose_link_cmd='echo'
13640 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13641 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13642 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13643 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13644 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}'
13654 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13655 hardcode_libdir_flag_spec_F77='-L$libdir'
13656 hardcode_shlibpath_var_F77=no
13663 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13664 # support. Future versions do this automatically, but an explicit c++rt0.o
13665 # does not break anything, and helps significantly (at the cost of a little
13668 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13669 hardcode_libdir_flag_spec_F77='-R$libdir'
13670 hardcode_direct_F77=yes
13671 hardcode_shlibpath_var_F77=no
13674 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13676 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13677 hardcode_direct_F77=yes
13678 hardcode_minus_L_F77=yes
13679 hardcode_shlibpath_var_F77=no
13682 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13683 freebsd* | dragonfly*)
13684 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13685 hardcode_libdir_flag_spec_F77='-R$libdir'
13686 hardcode_direct_F77=yes
13687 hardcode_shlibpath_var_F77=no
13690 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
13692 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13693 hardcode_libdir_flag_spec_F77='-R$libdir'
13694 hardcode_direct_F77=yes
13695 hardcode_shlibpath_var_F77=no
13696 link_all_deplibs_F77=no
13700 if test "$GCC" = yes; then
13701 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'
13703 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'
13705 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13706 hardcode_libdir_separator_F77=:
13707 hardcode_direct_F77=yes
13709 # hardcode_minus_L: Not really in the search PATH,
13710 # but as the default location of the library.
13711 hardcode_minus_L_F77=yes
13712 export_dynamic_flag_spec_F77='${wl}-E'
13716 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13717 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13719 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13721 if test "$with_gnu_ld" = no; then
13722 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13723 hardcode_libdir_separator_F77=:
13725 hardcode_direct_F77=yes
13726 export_dynamic_flag_spec_F77='${wl}-E'
13728 # hardcode_minus_L: Not really in the search PATH,
13729 # but as the default location of the library.
13730 hardcode_minus_L_F77=yes
13735 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13738 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13741 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13744 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13750 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13753 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13756 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13760 if test "$with_gnu_ld" = no; then
13761 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13762 hardcode_libdir_separator_F77=:
13766 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13767 hardcode_direct_F77=no
13768 hardcode_shlibpath_var_F77=no
13771 hardcode_direct_F77=yes
13772 export_dynamic_flag_spec_F77='${wl}-E'
13774 # hardcode_minus_L: Not really in the search PATH,
13775 # but as the default location of the library.
13776 hardcode_minus_L_F77=yes
13782 irix5* | irix6* | nonstopux*)
13783 if test "$GCC" = yes; then
13784 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'
13786 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'
13787 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13789 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13790 hardcode_libdir_separator_F77=:
13791 link_all_deplibs_F77=yes
13794 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13795 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13796 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13798 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13800 hardcode_libdir_flag_spec_F77='-R$libdir'
13801 hardcode_direct_F77=yes
13802 hardcode_shlibpath_var_F77=no
13806 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13807 hardcode_direct_F77=yes
13808 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13809 hardcode_libdir_separator_F77=:
13810 hardcode_shlibpath_var_F77=no
13814 hardcode_direct_F77=yes
13815 hardcode_shlibpath_var_F77=no
13816 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13817 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13818 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13819 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13820 export_dynamic_flag_spec_F77='${wl}-E'
13823 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13824 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13825 hardcode_libdir_flag_spec_F77='-R$libdir'
13828 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13829 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13836 hardcode_libdir_flag_spec_F77='-L$libdir'
13837 hardcode_minus_L_F77=yes
13838 allow_undefined_flag_F77=unsupported
13839 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'
13840 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13844 if test "$GCC" = yes; then
13845 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13846 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'
13848 allow_undefined_flag_F77=' -expect_unresolved \*'
13849 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'
13851 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13852 hardcode_libdir_separator_F77=:
13855 osf4* | osf5*) # as osf3* with the addition of -msym flag
13856 if test "$GCC" = yes; then
13857 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13858 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'
13859 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13861 allow_undefined_flag_F77=' -expect_unresolved \*'
13862 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'
13863 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~
13864 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
13866 # Both c and cxx compiler support -rpath directly
13867 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13869 hardcode_libdir_separator_F77=:
13873 no_undefined_flag_F77=' -z text'
13874 if test "$GCC" = yes; then
13876 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13877 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13878 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13881 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13882 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13883 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13885 hardcode_libdir_flag_spec_F77='-R$libdir'
13886 hardcode_shlibpath_var_F77=no
13888 solaris2.[0-5] | solaris2.[0-5].*) ;;
13890 # The compiler driver will combine linker options so we
13891 # cannot just pass the convience library names through
13892 # without $wl, iff we do not link with $LD.
13893 # Luckily, gcc supports the same syntax we need for Sun Studio.
13894 # Supported since Solaris 2.6 (maybe 2.5.1?)
13897 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13899 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
13902 link_all_deplibs_F77=yes
13906 if test "x$host_vendor" = xsequent; then
13907 # Use $CC to link under sequent, because it throws in some extra .o
13908 # files that make .init and .fini sections work.
13909 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13911 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13913 hardcode_libdir_flag_spec_F77='-L$libdir'
13914 hardcode_direct_F77=yes
13915 hardcode_minus_L_F77=yes
13916 hardcode_shlibpath_var_F77=no
13920 case $host_vendor in
13922 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13923 hardcode_direct_F77=yes # is this really true???
13926 ## LD is ld it makes a PLAMLIB
13927 ## CC just makes a GrossModule.
13928 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13929 reload_cmds_F77='$CC -r -o $output$reload_objs'
13930 hardcode_direct_F77=no
13933 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13934 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13937 runpath_var='LD_RUN_PATH'
13938 hardcode_shlibpath_var_F77=no
13942 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13943 hardcode_shlibpath_var_F77=no
13944 export_dynamic_flag_spec_F77='-Bexport'
13948 if test -d /usr/nec; then
13949 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13950 hardcode_shlibpath_var_F77=no
13951 runpath_var=LD_RUN_PATH
13952 hardcode_runpath_var=yes
13957 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
13958 no_undefined_flag_F77='${wl}-z,text'
13959 archive_cmds_need_lc_F77=no
13960 hardcode_shlibpath_var_F77=no
13961 runpath_var='LD_RUN_PATH'
13963 if test "$GCC" = yes; then
13964 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13965 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13967 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13968 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13972 sysv5* | sco3.2v5* | sco5v6*)
13973 # Note: We can NOT use -z defs as we might desire, because we do not
13974 # link with -lc, and that would cause any symbols used from libc to
13975 # always be unresolved, which means just about no library would
13976 # ever link correctly. If we're not using GNU ld we use -z text
13977 # though, which does catch some bad symbols but isn't as heavy-handed
13979 no_undefined_flag_F77='${wl}-z,text'
13980 allow_undefined_flag_F77='${wl}-z,nodefs'
13981 archive_cmds_need_lc_F77=no
13982 hardcode_shlibpath_var_F77=no
13983 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13984 hardcode_libdir_separator_F77=':'
13985 link_all_deplibs_F77=yes
13986 export_dynamic_flag_spec_F77='${wl}-Bexport'
13987 runpath_var='LD_RUN_PATH'
13989 if test "$GCC" = yes; then
13990 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13991 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13993 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13994 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13999 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14000 hardcode_libdir_flag_spec_F77='-L$libdir'
14001 hardcode_shlibpath_var_F77=no
14010 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14011 echo "${ECHO_T}$ld_shlibs_F77" >&6
14012 test "$ld_shlibs_F77" = no && can_build_shared=no
14015 # Do we need to explicitly link libc?
14017 case "x$archive_cmds_need_lc_F77" in
14019 # Assume -lc should be added
14020 archive_cmds_need_lc_F77=yes
14022 if test "$enable_shared" = yes && test "$GCC" = yes; then
14023 case $archive_cmds_F77 in
14025 # FIXME: we may have to deal with multi-command sequences.
14028 # Test whether the compiler implicitly links with -lc since on some
14029 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14030 # to ld, don't add -lc before -lgcc.
14031 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14032 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14034 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14037 (eval $ac_compile) 2>&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } 2>conftest.err; then
14043 libobjs=conftest.$ac_objext
14045 wl=$lt_prog_compiler_wl_F77
14046 pic_flag=$lt_prog_compiler_pic_F77
14052 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14053 allow_undefined_flag_F77=
14054 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14055 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }
14060 archive_cmds_need_lc_F77=no
14062 archive_cmds_need_lc_F77=yes
14064 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14066 cat conftest.err 1>&5
14069 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14070 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14077 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14078 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14079 library_names_spec=
14080 libname_spec='lib$name'
14084 postuninstall_cmds=
14088 shlibpath_overrides_runpath=unknown
14090 dynamic_linker="$host_os ld.so"
14091 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14092 if test "$GCC" = yes; then
14093 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14094 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14095 # if the path contains ";" then we assume it to be the separator
14096 # otherwise default to the standard path separator (i.e. ":") - it is
14097 # assumed that no part of a normal pathname contains ";" but that should
14098 # okay in the real world where ";" in dirpaths is itself problematic.
14099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14104 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14106 need_lib_prefix=unknown
14107 hardcode_into_libs=no
14109 # when you set need_version to no, make sure it does not cause -set_version
14110 # flags to be left without arguments
14111 need_version=unknown
14116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14117 shlibpath_var=LIBPATH
14119 # AIX 3 has no versioning support, so we append a major version to the name.
14120 soname_spec='${libname}${release}${shared_ext}$major'
14127 hardcode_into_libs=yes
14128 if test "$host_cpu" = ia64; then
14129 # AIX 5 supports IA64
14130 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14131 shlibpath_var=LD_LIBRARY_PATH
14133 # With GCC up to 2.95.x, collect2 would create an import file
14134 # for dependence libraries. The import file would start with
14135 # the line `#! .'. This would cause the generated library to
14136 # depend on `.', always an invalid library. This was fixed in
14137 # development snapshots of GCC prior to 3.0.
14139 aix4 | aix4.[01] | aix4.[01].*)
14140 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14142 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14145 can_build_shared=no
14149 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14150 # soname into executable. Probably we can add versioning support to
14151 # collect2, so additional links can be useful in future.
14152 if test "$aix_use_runtimelinking" = yes; then
14153 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14154 # instead of lib<name>.a to let people know that these are not
14155 # typical AIX shared libraries.
14156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14158 # We preserve .a as extension for shared libraries through AIX4.2
14159 # and later when we are not doing run time linking.
14160 library_names_spec='${libname}${release}.a $libname.a'
14161 soname_spec='${libname}${release}${shared_ext}$major'
14163 shlibpath_var=LIBPATH
14168 library_names_spec='$libname.ixlibrary $libname.a'
14169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14170 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'
14174 library_names_spec='${libname}${shared_ext}'
14175 dynamic_linker="$host_os ld.so"
14176 shlibpath_var=LIBRARY_PATH
14182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14183 soname_spec='${libname}${release}${shared_ext}$major'
14184 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14185 shlibpath_var=LD_LIBRARY_PATH
14186 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14187 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14188 # the default ld.so.conf also contains /usr/contrib/lib and
14189 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14190 # libtool to hard-code these into programs
14193 cygwin* | mingw* | pw32*)
14194 version_type=windows
14199 case $GCC,$host_os in
14200 yes,cygwin* | yes,mingw* | yes,pw32*)
14201 library_names_spec='$libname.dll.a'
14202 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14203 postinstall_cmds='base_file=`basename \${file}`~
14204 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14205 dldir=$destdir/`dirname \$dlpath`~
14206 test -d \$dldir || mkdir -p \$dldir~
14207 $install_prog $dir/$dlname \$dldir/$dlname~
14208 chmod a+x \$dldir/$dlname'
14209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14210 dlpath=$dir/\$dldll~
14212 shlibpath_overrides_runpath=yes
14216 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14217 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14218 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14221 # MinGW DLLs use traditional 'lib' prefix
14222 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14223 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14224 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14225 # It is most probably a Windows format PATH printed by
14226 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14227 # path with ; separators, and with drive letters. We can handle the
14228 # drive letters (cygwin fileutils understands them), so leave them,
14229 # especially as we might pass files found there to a mingw objdump,
14230 # which wouldn't understand a cygwinified path. Ahh.
14231 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14233 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14237 # pw32 DLLs use 'pw' prefix rather than 'lib'
14238 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14244 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14247 dynamic_linker='Win32 ld.exe'
14248 # FIXME: first we should search . and the directory the executable is in
14252 darwin* | rhapsody*)
14253 dynamic_linker="$host_os dyld"
14254 version_type=darwin
14257 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14258 soname_spec='${libname}${release}${major}$shared_ext'
14259 shlibpath_overrides_runpath=yes
14260 shlibpath_var=DYLD_LIBRARY_PATH
14261 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14262 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14263 if test "$GCC" = yes; then
14264 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"`
14266 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14268 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14276 soname_spec='${libname}${release}${shared_ext}$major'
14277 shlibpath_var=LD_LIBRARY_PATH
14288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14289 soname_spec='${libname}${release}${shared_ext}$major'
14290 shlibpath_var=LD_LIBRARY_PATH
14291 shlibpath_overrides_runpath=no
14292 hardcode_into_libs=yes
14293 dynamic_linker='GNU ld.so'
14296 freebsd* | dragonfly*)
14297 # DragonFly does not have aout. When/if they implement a new
14298 # versioning mechanism, adjust this.
14299 if test -x /usr/bin/objformat; then
14300 objformat=`/usr/bin/objformat`
14303 freebsd[123]*) objformat=aout ;;
14304 *) objformat=elf ;;
14307 version_type=freebsd-$objformat
14308 case $version_type in
14310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14319 shlibpath_var=LD_LIBRARY_PATH
14322 shlibpath_overrides_runpath=yes
14324 freebsd3.[01]* | freebsdelf3.[01]*)
14325 shlibpath_overrides_runpath=yes
14326 hardcode_into_libs=yes
14328 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14329 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14330 shlibpath_overrides_runpath=no
14331 hardcode_into_libs=yes
14333 freebsd*) # from 4.6 on
14334 shlibpath_overrides_runpath=yes
14335 hardcode_into_libs=yes
14344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14345 soname_spec='${libname}${release}${shared_ext}$major'
14346 shlibpath_var=LD_LIBRARY_PATH
14347 hardcode_into_libs=yes
14350 hpux9* | hpux10* | hpux11*)
14351 # Give a soname corresponding to the major version so that dld.sl refuses to
14352 # link against other versions.
14359 hardcode_into_libs=yes
14360 dynamic_linker="$host_os dld.so"
14361 shlibpath_var=LD_LIBRARY_PATH
14362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14364 soname_spec='${libname}${release}${shared_ext}$major'
14365 if test "X$HPUX_IA64_MODE" = X32; then
14366 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14368 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14374 hardcode_into_libs=yes
14375 dynamic_linker="$host_os dld.sl"
14376 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14379 soname_spec='${libname}${release}${shared_ext}$major'
14380 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14385 dynamic_linker="$host_os dld.sl"
14386 shlibpath_var=SHLIB_PATH
14387 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14389 soname_spec='${libname}${release}${shared_ext}$major'
14392 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14393 postinstall_cmds='chmod 555 $lib'
14400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14401 soname_spec='${libname}${release}${shared_ext}$major'
14402 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14403 shlibpath_var=LD_LIBRARY_PATH
14404 shlibpath_overrides_runpath=no
14405 hardcode_into_libs=yes
14408 irix5* | irix6* | nonstopux*)
14410 nonstopux*) version_type=nonstopux ;;
14412 if test "$lt_cv_prog_gnu_ld" = yes; then
14420 soname_spec='${libname}${release}${shared_ext}$major'
14421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14423 irix5* | nonstopux*)
14424 libsuff= shlibsuff=
14427 case $LD in # libtool.m4 will add one of these switches to LD
14428 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14429 libsuff= shlibsuff= libmagic=32-bit;;
14430 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14431 libsuff=32 shlibsuff=N32 libmagic=N32;;
14432 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14433 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14434 *) libsuff= shlibsuff= libmagic=never-match;;
14438 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14439 shlibpath_overrides_runpath=no
14440 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14441 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14442 hardcode_into_libs=yes
14445 # No shared lib support for Linux oldld, aout, or coff.
14446 linux*oldld* | linux*aout* | linux*coff*)
14450 # This must be Linux ELF.
14455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14456 soname_spec='${libname}${release}${shared_ext}$major'
14457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14458 shlibpath_var=LD_LIBRARY_PATH
14459 shlibpath_overrides_runpath=no
14460 # This implies no fast_install, which is unacceptable.
14461 # Some rework will be needed to allow for fast_install
14462 # before this can be enabled.
14463 hardcode_into_libs=yes
14465 # Append ld.so.conf contents to the search path
14466 if test -f /etc/ld.so.conf; then
14467 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14468 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14471 # We used to test for /lib/ld.so.1 and disable shared libraries on
14472 # powerpc, because MkLinux only supported shared libraries with the
14473 # GNU dynamic linker. Since this was broken with cross compilers,
14474 # most powerpc-linux boxes support dynamic linking these days and
14475 # people can always --disable-shared, the test was removed, and we
14476 # assume the GNU/Linux dynamic linker is in use.
14477 dynamic_linker='GNU/Linux ld.so'
14484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14485 soname_spec='${libname}${release}${shared_ext}$major'
14486 shlibpath_var=LD_LIBRARY_PATH
14487 shlibpath_overrides_runpath=no
14488 hardcode_into_libs=yes
14489 dynamic_linker='NetBSD ld.elf_so'
14496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14497 soname_spec='${libname}${release}${shared_ext}$major'
14498 shlibpath_var=LD_LIBRARY_PATH
14499 shlibpath_overrides_runpath=no
14500 hardcode_into_libs=yes
14501 dynamic_linker='GNU ld.so'
14508 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14511 dynamic_linker='NetBSD (a.out) ld.so'
14513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14514 soname_spec='${libname}${release}${shared_ext}$major'
14515 dynamic_linker='NetBSD ld.elf_so'
14517 shlibpath_var=LD_LIBRARY_PATH
14518 shlibpath_overrides_runpath=yes
14519 hardcode_into_libs=yes
14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525 shlibpath_var=LD_LIBRARY_PATH
14526 shlibpath_overrides_runpath=yes
14533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14534 soname_spec='${libname}${release}${shared_ext}$major'
14535 shlibpath_var=LD_LIBRARY_PATH
14536 shlibpath_overrides_runpath=yes
14541 sys_lib_dlsearch_path_spec="/usr/lib"
14543 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14545 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14546 *) need_version=no ;;
14548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14550 shlibpath_var=LD_LIBRARY_PATH
14551 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14553 openbsd2.[89] | openbsd2.[89].*)
14554 shlibpath_overrides_runpath=no
14557 shlibpath_overrides_runpath=yes
14561 shlibpath_overrides_runpath=yes
14566 libname_spec='$name'
14569 library_names_spec='$libname${shared_ext} $libname.a'
14570 dynamic_linker='OS/2 ld.exe'
14571 shlibpath_var=LIBPATH
14574 osf3* | osf4* | osf5*)
14578 soname_spec='${libname}${release}${shared_ext}$major'
14579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14580 shlibpath_var=LD_LIBRARY_PATH
14581 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14582 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14590 soname_spec='${libname}${release}${shared_ext}$major'
14591 shlibpath_var=LD_LIBRARY_PATH
14592 shlibpath_overrides_runpath=yes
14593 hardcode_into_libs=yes
14594 # ldd complains unless libraries are executable
14595 postinstall_cmds='chmod +x $lib'
14600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14601 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14602 shlibpath_var=LD_LIBRARY_PATH
14603 shlibpath_overrides_runpath=yes
14604 if test "$with_gnu_ld" = yes; then
14612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14613 soname_spec='${libname}${release}${shared_ext}$major'
14614 shlibpath_var=LD_LIBRARY_PATH
14615 case $host_vendor in
14617 shlibpath_overrides_runpath=no
14619 export_dynamic_flag_spec='${wl}-Blargedynsym'
14620 runpath_var=LD_RUN_PATH
14628 shlibpath_overrides_runpath=no
14629 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14635 if test -d /usr/nec ;then
14637 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14638 soname_spec='$libname${shared_ext}.$major'
14639 shlibpath_var=LD_LIBRARY_PATH
14643 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14644 version_type=freebsd-elf
14647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14648 soname_spec='${libname}${release}${shared_ext}$major'
14649 shlibpath_var=LD_LIBRARY_PATH
14650 hardcode_into_libs=yes
14651 if test "$with_gnu_ld" = yes; then
14652 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14653 shlibpath_overrides_runpath=no
14655 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14656 shlibpath_overrides_runpath=yes
14659 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14663 sys_lib_dlsearch_path_spec='/usr/lib'
14668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14669 soname_spec='${libname}${release}${shared_ext}$major'
14670 shlibpath_var=LD_LIBRARY_PATH
14677 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14678 echo "${ECHO_T}$dynamic_linker" >&6
14679 test "$dynamic_linker" = no && can_build_shared=no
14681 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14682 if test "$GCC" = yes; then
14683 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14686 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14687 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14688 hardcode_action_F77=
14689 if test -n "$hardcode_libdir_flag_spec_F77" || \
14690 test -n "$runpath_var_F77" || \
14691 test "X$hardcode_automatic_F77" = "Xyes" ; then
14693 # We can hardcode non-existant directories.
14694 if test "$hardcode_direct_F77" != no &&
14695 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14696 # have to relink, otherwise we might link with an installed library
14697 # when we should be linking with a yet-to-be-installed one
14698 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14699 test "$hardcode_minus_L_F77" != no; then
14700 # Linking always hardcodes the temporary library directory.
14701 hardcode_action_F77=relink
14703 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14704 hardcode_action_F77=immediate
14707 # We cannot hardcode anything, or else we can only hardcode existing
14709 hardcode_action_F77=unsupported
14711 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14712 echo "${ECHO_T}$hardcode_action_F77" >&6
14714 if test "$hardcode_action_F77" = relink; then
14715 # Fast installation is not supported
14716 enable_fast_install=no
14717 elif test "$shlibpath_overrides_runpath" = yes ||
14718 test "$enable_shared" = no; then
14719 # Fast installation is not necessary
14720 enable_fast_install=needless
14724 # The else clause should only fire when bootstrapping the
14725 # libtool distribution, otherwise you forgot to ship ltmain.sh
14726 # with your package, and you will get complaints that there are
14727 # no rules to generate ltmain.sh.
14728 if test -f "$ltmain"; then
14729 # See if we are running on zsh, and set the options which allow our commands through
14730 # without removal of \ escapes.
14731 if test -n "${ZSH_VERSION+set}" ; then
14732 setopt NO_GLOB_SUBST
14734 # Now quote all the things that may contain metacharacters while being
14735 # careful not to overquote the AC_SUBSTed values. We take copies of the
14736 # variables and quote the copies for generation of the libtool script.
14737 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14739 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14740 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14741 deplibs_check_method reload_flag reload_cmds need_locks \
14742 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14743 lt_cv_sys_global_symbol_to_c_name_address \
14744 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14745 old_postinstall_cmds old_postuninstall_cmds \
14749 lt_prog_compiler_wl_F77 \
14750 lt_prog_compiler_pic_F77 \
14751 lt_prog_compiler_static_F77 \
14752 lt_prog_compiler_no_builtin_flag_F77 \
14753 export_dynamic_flag_spec_F77 \
14754 thread_safe_flag_spec_F77 \
14755 whole_archive_flag_spec_F77 \
14756 enable_shared_with_static_runtimes_F77 \
14757 old_archive_cmds_F77 \
14758 old_archive_from_new_cmds_F77 \
14759 predep_objects_F77 \
14760 postdep_objects_F77 \
14763 compiler_lib_search_path_F77 \
14765 archive_expsym_cmds_F77 \
14766 postinstall_cmds_F77 \
14767 postuninstall_cmds_F77 \
14768 old_archive_from_expsyms_cmds_F77 \
14769 allow_undefined_flag_F77 \
14770 no_undefined_flag_F77 \
14771 export_symbols_cmds_F77 \
14772 hardcode_libdir_flag_spec_F77 \
14773 hardcode_libdir_flag_spec_ld_F77 \
14774 hardcode_libdir_separator_F77 \
14775 hardcode_automatic_F77 \
14777 module_expsym_cmds_F77 \
14778 lt_cv_prog_compiler_c_o_F77 \
14779 exclude_expsyms_F77 \
14780 include_expsyms_F77; do
14783 old_archive_cmds_F77 | \
14784 old_archive_from_new_cmds_F77 | \
14785 archive_cmds_F77 | \
14786 archive_expsym_cmds_F77 | \
14787 module_cmds_F77 | \
14788 module_expsym_cmds_F77 | \
14789 old_archive_from_expsyms_cmds_F77 | \
14790 export_symbols_cmds_F77 | \
14791 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14792 postinstall_cmds | postuninstall_cmds | \
14793 old_postinstall_cmds | old_postuninstall_cmds | \
14794 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14795 # Double-quote double-evaled strings.
14796 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14799 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14805 *'\$0 --fallback-echo"')
14806 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14812 cat <<__EOF__ >> "$cfgfile"
14813 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14815 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14817 # Shell to use when invoking shell scripts.
14820 # Whether or not to build shared libraries.
14821 build_libtool_libs=$enable_shared
14823 # Whether or not to build static libraries.
14824 build_old_libs=$enable_static
14826 # Whether or not to add -lc for building shared libraries.
14827 build_libtool_need_lc=$archive_cmds_need_lc_F77
14829 # Whether or not to disallow shared libs when runtime libs are static
14830 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14832 # Whether or not to optimize for fast installation.
14833 fast_install=$enable_fast_install
14836 host_alias=$host_alias
14840 # The build system.
14841 build_alias=$build_alias
14845 # An echo program that does not interpret backslashes.
14850 AR_FLAGS=$lt_AR_FLAGS
14855 # LTCC compiler flags.
14856 LTCFLAGS=$lt_LTCFLAGS
14858 # A language-specific compiler.
14859 CC=$lt_compiler_F77
14861 # Is the compiler the GNU C compiler?
14867 # The linker used to build libraries.
14870 # Whether we need hard or soft links.
14873 # A BSD-compatible nm program.
14876 # A symbol stripping program
14879 # Used to examine libraries when file_magic_cmd begins "file"
14880 MAGIC_CMD=$MAGIC_CMD
14882 # Used on cygwin: DLL creation program.
14885 # Used on cygwin: object dumper.
14888 # Used on cygwin: assembler.
14891 # The name of the directory that contains temporary libtool files.
14894 # How to create reloadable object files.
14895 reload_flag=$lt_reload_flag
14896 reload_cmds=$lt_reload_cmds
14898 # How to pass a linker flag through the compiler.
14899 wl=$lt_lt_prog_compiler_wl_F77
14901 # Object file suffix (normally "o").
14902 objext="$ac_objext"
14904 # Old archive suffix (normally "a").
14907 # Shared library suffix (normally ".so").
14908 shrext_cmds='$shrext_cmds'
14910 # Executable file suffix (normally "").
14913 # Additional compiler flags for building library objects.
14914 pic_flag=$lt_lt_prog_compiler_pic_F77
14917 # What is the maximum length of a command?
14918 max_cmd_len=$lt_cv_sys_max_cmd_len
14920 # Does compiler simultaneously support -c and -o options?
14921 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14923 # Must we lock files when doing compilation?
14924 need_locks=$lt_need_locks
14926 # Do we need the lib prefix for modules?
14927 need_lib_prefix=$need_lib_prefix
14929 # Do we need a version for libraries?
14930 need_version=$need_version
14932 # Whether dlopen is supported.
14933 dlopen_support=$enable_dlopen
14935 # Whether dlopen of programs is supported.
14936 dlopen_self=$enable_dlopen_self
14938 # Whether dlopen of statically linked programs is supported.
14939 dlopen_self_static=$enable_dlopen_self_static
14941 # Compiler flag to prevent dynamic linking.
14942 link_static_flag=$lt_lt_prog_compiler_static_F77
14944 # Compiler flag to turn off builtin functions.
14945 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14947 # Compiler flag to allow reflexive dlopens.
14948 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14950 # Compiler flag to generate shared objects directly from archives.
14951 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14953 # Compiler flag to generate thread-safe objects.
14954 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14956 # Library versioning type.
14957 version_type=$version_type
14959 # Format of library name prefix.
14960 libname_spec=$lt_libname_spec
14962 # List of archive names. First name is the real one, the rest are links.
14963 # The last name is the one that the linker finds with -lNAME.
14964 library_names_spec=$lt_library_names_spec
14966 # The coded name of the library, if different from the real name.
14967 soname_spec=$lt_soname_spec
14969 # Commands used to build and install an old-style archive.
14971 old_archive_cmds=$lt_old_archive_cmds_F77
14972 old_postinstall_cmds=$lt_old_postinstall_cmds
14973 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14975 # Create an old-style archive from a shared archive.
14976 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14978 # Create a temporary old-style archive to link instead of a shared archive.
14979 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14981 # Commands used to build and install a shared archive.
14982 archive_cmds=$lt_archive_cmds_F77
14983 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14984 postinstall_cmds=$lt_postinstall_cmds
14985 postuninstall_cmds=$lt_postuninstall_cmds
14987 # Commands used to build a loadable module (assumed same as above if empty)
14988 module_cmds=$lt_module_cmds_F77
14989 module_expsym_cmds=$lt_module_expsym_cmds_F77
14991 # Commands to strip libraries.
14992 old_striplib=$lt_old_striplib
14993 striplib=$lt_striplib
14995 # Dependencies to place before the objects being linked to create a
14997 predep_objects=$lt_predep_objects_F77
14999 # Dependencies to place after the objects being linked to create a
15001 postdep_objects=$lt_postdep_objects_F77
15003 # Dependencies to place before the objects being linked to create a
15005 predeps=$lt_predeps_F77
15007 # Dependencies to place after the objects being linked to create a
15009 postdeps=$lt_postdeps_F77
15011 # The library search path used internally by the compiler when linking
15012 # a shared library.
15013 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15015 # Method to check whether dependent libraries are shared objects.
15016 deplibs_check_method=$lt_deplibs_check_method
15018 # Command to use when deplibs_check_method == file_magic.
15019 file_magic_cmd=$lt_file_magic_cmd
15021 # Flag that allows shared libraries with undefined symbols to be built.
15022 allow_undefined_flag=$lt_allow_undefined_flag_F77
15024 # Flag that forces no undefined symbols.
15025 no_undefined_flag=$lt_no_undefined_flag_F77
15027 # Commands used to finish a libtool library installation in a directory.
15028 finish_cmds=$lt_finish_cmds
15030 # Same as above, but a single script fragment to be evaled but not shown.
15031 finish_eval=$lt_finish_eval
15033 # Take the output of nm and produce a listing of raw symbols and C names.
15034 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15036 # Transform the output of nm in a proper C declaration
15037 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15039 # Transform the output of nm in a C name address pair
15040 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15042 # This is the shared library runtime path variable.
15043 runpath_var=$runpath_var
15045 # This is the shared library path variable.
15046 shlibpath_var=$shlibpath_var
15048 # Is shlibpath searched before the hard-coded library search path?
15049 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15051 # How to hardcode a shared library path into an executable.
15052 hardcode_action=$hardcode_action_F77
15054 # Whether we should hardcode library paths into libraries.
15055 hardcode_into_libs=$hardcode_into_libs
15057 # Flag to hardcode \$libdir into a binary during linking.
15058 # This must work even if \$libdir does not exist.
15059 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15061 # If ld is used when linking, flag to hardcode \$libdir into
15062 # a binary during linking. This must work even if \$libdir does
15064 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15066 # Whether we need a single -rpath flag with a separated argument.
15067 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15069 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15070 # resulting binary.
15071 hardcode_direct=$hardcode_direct_F77
15073 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15074 # resulting binary.
15075 hardcode_minus_L=$hardcode_minus_L_F77
15077 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15078 # the resulting binary.
15079 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15081 # Set to yes if building a shared library automatically hardcodes DIR into the library
15082 # and all subsequent libraries and executables linked against it.
15083 hardcode_automatic=$hardcode_automatic_F77
15085 # Variables whose values should be saved in libtool wrapper scripts and
15086 # restored at relink time.
15087 variables_saved_for_relink="$variables_saved_for_relink"
15089 # Whether libtool must link a program against all its dependency libraries.
15090 link_all_deplibs=$link_all_deplibs_F77
15092 # Compile-time system search path for libraries
15093 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15095 # Run-time system search path for libraries
15096 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15098 # Fix the shell variable \$srcfile for the compiler.
15099 fix_srcfile_path="$fix_srcfile_path_F77"
15101 # Set to yes if exported symbols are required.
15102 always_export_symbols=$always_export_symbols_F77
15104 # The commands to list exported symbols.
15105 export_symbols_cmds=$lt_export_symbols_cmds_F77
15107 # The commands to extract the exported symbol list from a shared archive.
15108 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15110 # Symbols that should not be listed in the preloaded symbols.
15111 exclude_expsyms=$lt_exclude_expsyms_F77
15113 # Symbols that must always be exported.
15114 include_expsyms=$lt_include_expsyms_F77
15116 # ### END LIBTOOL TAG CONFIG: $tagname
15122 # If there is no Makefile yet, we rely on a make rule to execute
15123 # `config.status --recheck' to rerun these tests and create the
15124 # libtool script then.
15125 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15126 if test -f "$ltmain_in"; then
15127 test -f Makefile && make "$ltmain"
15133 ac_cpp='$CPP $CPPFLAGS'
15134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15146 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15150 # Source file extension for Java test sources.
15153 # Object file extension for compiled Java test sources.
15157 # Code to be used in simple compile tests
15158 lt_simple_compile_test_code="class foo {}\n"
15160 # Code to be used in simple link tests
15161 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15163 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15165 # If no C compiler was specified, use CC.
15168 # If no C compiler flags were specified, use CFLAGS.
15169 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15171 # Allow CC to be a program name with arguments.
15175 # save warnings/boilerplate of simple test code
15176 ac_outfile=conftest.$ac_objext
15177 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15178 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15179 _lt_compiler_boilerplate=`cat conftest.err`
15182 ac_outfile=conftest.$ac_objext
15183 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15184 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15185 _lt_linker_boilerplate=`cat conftest.err`
15189 # Allow CC to be a program name with arguments.
15194 for cc_temp in $compiler""; do
15196 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15197 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15202 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15205 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15206 archive_cmds_need_lc_GCJ=no
15208 old_archive_cmds_GCJ=$old_archive_cmds
15211 lt_prog_compiler_no_builtin_flag_GCJ=
15213 if test "$GCC" = yes; then
15214 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15217 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15218 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15219 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15220 echo $ECHO_N "(cached) $ECHO_C" >&6
15222 lt_cv_prog_compiler_rtti_exceptions=no
15223 ac_outfile=conftest.$ac_objext
15224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15225 lt_compiler_flag="-fno-rtti -fno-exceptions"
15226 # Insert the option either (1) after the last *FLAGS variable, or
15227 # (2) before a word containing "conftest.", or (3) at the end.
15228 # Note that $ac_compile itself does not contain backslashes and begins
15229 # with a dollar sign (not a hyphen), so the echo should work correctly.
15230 # The option is referenced via a variable to avoid confusing sed.
15231 lt_compile=`echo "$ac_compile" | $SED \
15232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15234 -e 's:$: $lt_compiler_flag:'`
15235 (eval echo "\"\$as_me:15235: $lt_compile\"" >&5)
15236 (eval "$lt_compile" 2>conftest.err)
15238 cat conftest.err >&5
15239 echo "$as_me:15239: \$? = $ac_status" >&5
15240 if (exit $ac_status) && test -s "$ac_outfile"; then
15241 # The compiler can only warn and ignore the option if not recognized
15242 # So say no if there are warnings other than the usual output.
15243 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15245 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15246 lt_cv_prog_compiler_rtti_exceptions=yes
15252 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15253 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15255 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15256 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15263 lt_prog_compiler_wl_GCJ=
15264 lt_prog_compiler_pic_GCJ=
15265 lt_prog_compiler_static_GCJ=
15267 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15268 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15270 if test "$GCC" = yes; then
15271 lt_prog_compiler_wl_GCJ='-Wl,'
15272 lt_prog_compiler_static_GCJ='-static'
15276 # All AIX code is PIC.
15277 if test "$host_cpu" = ia64; then
15278 # AIX 5 now supports IA64 processor
15279 lt_prog_compiler_static_GCJ='-Bstatic'
15284 # FIXME: we need at least 68020 code to build shared libraries, but
15285 # adding the `-m68020' flag to GCC prevents building anything better,
15287 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15290 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15291 # PIC is the default for these OSes.
15294 mingw* | pw32* | os2*)
15295 # This hack is so that the source file can tell whether it is being
15296 # built for inclusion in a dll (and should export symbols for example).
15297 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15300 darwin* | rhapsody*)
15301 # PIC is the default on this platform
15302 # Common symbols not allowed in MH_DYLIB files
15303 lt_prog_compiler_pic_GCJ='-fno-common'
15307 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15308 # Instead, we relocate shared libraries at runtime.
15312 # Just because we use GCC doesn't mean we suddenly get shared libraries
15313 # on systems that don't support them.
15314 lt_prog_compiler_can_build_shared_GCJ=no
15319 if test -d /usr/nec; then
15320 lt_prog_compiler_pic_GCJ=-Kconform_pic
15325 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15326 # not for PA HP-UX.
15332 lt_prog_compiler_pic_GCJ='-fPIC'
15338 lt_prog_compiler_pic_GCJ='-fPIC'
15342 # PORTME Check for flag to pass linker flags through the system compiler.
15345 lt_prog_compiler_wl_GCJ='-Wl,'
15346 if test "$host_cpu" = ia64; then
15347 # AIX 5 now supports IA64 processor
15348 lt_prog_compiler_static_GCJ='-Bstatic'
15350 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15354 # PIC is the default on this platform
15355 # Common symbols not allowed in MH_DYLIB files
15356 case $cc_basename in
15358 lt_prog_compiler_pic_GCJ='-qnocommon'
15359 lt_prog_compiler_wl_GCJ='-Wl,'
15364 mingw* | pw32* | os2*)
15365 # This hack is so that the source file can tell whether it is being
15366 # built for inclusion in a dll (and should export symbols for example).
15367 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15370 hpux9* | hpux10* | hpux11*)
15371 lt_prog_compiler_wl_GCJ='-Wl,'
15372 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15373 # not for PA HP-UX.
15379 lt_prog_compiler_pic_GCJ='+Z'
15382 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15383 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15386 irix5* | irix6* | nonstopux*)
15387 lt_prog_compiler_wl_GCJ='-Wl,'
15388 # PIC (with -KPIC) is the default.
15389 lt_prog_compiler_static_GCJ='-non_shared'
15393 lt_prog_compiler_pic_GCJ='-KPIC'
15394 lt_prog_compiler_static_GCJ='-Bstatic'
15398 case $cc_basename in
15400 lt_prog_compiler_wl_GCJ='-Wl,'
15401 lt_prog_compiler_pic_GCJ='-KPIC'
15402 lt_prog_compiler_static_GCJ='-static'
15404 pgcc* | pgf77* | pgf90* | pgf95*)
15405 # Portland Group compilers (*not* the Pentium gcc compiler,
15406 # which looks to be a dead project)
15407 lt_prog_compiler_wl_GCJ='-Wl,'
15408 lt_prog_compiler_pic_GCJ='-fpic'
15409 lt_prog_compiler_static_GCJ='-Bstatic'
15412 lt_prog_compiler_wl_GCJ='-Wl,'
15413 # All Alpha code is PIC.
15414 lt_prog_compiler_static_GCJ='-non_shared'
15419 osf3* | osf4* | osf5*)
15420 lt_prog_compiler_wl_GCJ='-Wl,'
15421 # All OSF/1 code is PIC.
15422 lt_prog_compiler_static_GCJ='-non_shared'
15426 lt_prog_compiler_pic_GCJ='-KPIC'
15427 lt_prog_compiler_static_GCJ='-Bstatic'
15428 case $cc_basename in
15429 f77* | f90* | f95*)
15430 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15432 lt_prog_compiler_wl_GCJ='-Wl,';;
15437 lt_prog_compiler_wl_GCJ='-Qoption ld '
15438 lt_prog_compiler_pic_GCJ='-PIC'
15439 lt_prog_compiler_static_GCJ='-Bstatic'
15442 sysv4 | sysv4.2uw2* | sysv4.3*)
15443 lt_prog_compiler_wl_GCJ='-Wl,'
15444 lt_prog_compiler_pic_GCJ='-KPIC'
15445 lt_prog_compiler_static_GCJ='-Bstatic'
15449 if test -d /usr/nec ;then
15450 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15451 lt_prog_compiler_static_GCJ='-Bstatic'
15455 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15456 lt_prog_compiler_wl_GCJ='-Wl,'
15457 lt_prog_compiler_pic_GCJ='-KPIC'
15458 lt_prog_compiler_static_GCJ='-Bstatic'
15462 lt_prog_compiler_wl_GCJ='-Wl,'
15463 lt_prog_compiler_can_build_shared_GCJ=no
15467 lt_prog_compiler_pic_GCJ='-pic'
15468 lt_prog_compiler_static_GCJ='-Bstatic'
15472 lt_prog_compiler_can_build_shared_GCJ=no
15477 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15478 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15481 # Check to make sure the PIC flag actually works.
15483 if test -n "$lt_prog_compiler_pic_GCJ"; then
15485 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15486 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15487 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15488 echo $ECHO_N "(cached) $ECHO_C" >&6
15490 lt_prog_compiler_pic_works_GCJ=no
15491 ac_outfile=conftest.$ac_objext
15492 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15493 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15494 # Insert the option either (1) after the last *FLAGS variable, or
15495 # (2) before a word containing "conftest.", or (3) at the end.
15496 # Note that $ac_compile itself does not contain backslashes and begins
15497 # with a dollar sign (not a hyphen), so the echo should work correctly.
15498 # The option is referenced via a variable to avoid confusing sed.
15499 lt_compile=`echo "$ac_compile" | $SED \
15500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15502 -e 's:$: $lt_compiler_flag:'`
15503 (eval echo "\"\$as_me:15503: $lt_compile\"" >&5)
15504 (eval "$lt_compile" 2>conftest.err)
15506 cat conftest.err >&5
15507 echo "$as_me:15507: \$? = $ac_status" >&5
15508 if (exit $ac_status) && test -s "$ac_outfile"; then
15509 # The compiler can only warn and ignore the option if not recognized
15510 # So say no if there are warnings other than the usual output.
15511 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15513 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15514 lt_prog_compiler_pic_works_GCJ=yes
15520 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15521 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15523 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15524 case $lt_prog_compiler_pic_GCJ in
15526 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15529 lt_prog_compiler_pic_GCJ=
15530 lt_prog_compiler_can_build_shared_GCJ=no
15535 # For platforms which do not support PIC, -DPIC is meaningless:
15537 lt_prog_compiler_pic_GCJ=
15540 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15545 # Check to make sure the static flag actually works.
15547 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15548 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15549 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15550 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 lt_prog_compiler_static_works_GCJ=no
15554 save_LDFLAGS="$LDFLAGS"
15555 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15556 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15557 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15558 # The linker can only warn and ignore the option if not recognized
15559 # So say no if there are warnings
15560 if test -s conftest.err; then
15561 # Append any errors to the config.log.
15562 cat conftest.err 1>&5
15563 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15565 if diff conftest.exp conftest.er2 >/dev/null; then
15566 lt_prog_compiler_static_works_GCJ=yes
15569 lt_prog_compiler_static_works_GCJ=yes
15573 LDFLAGS="$save_LDFLAGS"
15576 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15577 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15579 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15582 lt_prog_compiler_static_GCJ=
15586 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15587 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15588 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15589 echo $ECHO_N "(cached) $ECHO_C" >&6
15591 lt_cv_prog_compiler_c_o_GCJ=no
15592 $rm -r conftest 2>/dev/null
15596 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15598 lt_compiler_flag="-o out/conftest2.$ac_objext"
15599 # Insert the option either (1) after the last *FLAGS variable, or
15600 # (2) before a word containing "conftest.", or (3) at the end.
15601 # Note that $ac_compile itself does not contain backslashes and begins
15602 # with a dollar sign (not a hyphen), so the echo should work correctly.
15603 lt_compile=`echo "$ac_compile" | $SED \
15604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15606 -e 's:$: $lt_compiler_flag:'`
15607 (eval echo "\"\$as_me:15607: $lt_compile\"" >&5)
15608 (eval "$lt_compile" 2>out/conftest.err)
15610 cat out/conftest.err >&5
15611 echo "$as_me:15611: \$? = $ac_status" >&5
15612 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15614 # The compiler can only warn and ignore the option if not recognized
15615 # So say no if there are warnings
15616 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15617 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15618 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15619 lt_cv_prog_compiler_c_o_GCJ=yes
15624 # SGI C++ compiler will create directory out/ii_files/ for
15625 # template instantiation
15626 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15627 $rm out/* && rmdir out
15633 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15634 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15637 hard_links="nottested"
15638 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15639 # do not overwrite the value of need_locks provided by the user
15640 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15641 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15644 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15646 ln conftest.a conftest.b 2>&5 || hard_links=no
15647 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15648 echo "$as_me:$LINENO: result: $hard_links" >&5
15649 echo "${ECHO_T}$hard_links" >&6
15650 if test "$hard_links" = no; then
15651 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15652 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15659 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15660 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15663 allow_undefined_flag_GCJ=
15664 enable_shared_with_static_runtimes_GCJ=no
15666 archive_expsym_cmds_GCJ=
15667 old_archive_From_new_cmds_GCJ=
15668 old_archive_from_expsyms_cmds_GCJ=
15669 export_dynamic_flag_spec_GCJ=
15670 whole_archive_flag_spec_GCJ=
15671 thread_safe_flag_spec_GCJ=
15672 hardcode_libdir_flag_spec_GCJ=
15673 hardcode_libdir_flag_spec_ld_GCJ=
15674 hardcode_libdir_separator_GCJ=
15675 hardcode_direct_GCJ=no
15676 hardcode_minus_L_GCJ=no
15677 hardcode_shlibpath_var_GCJ=unsupported
15678 link_all_deplibs_GCJ=unknown
15679 hardcode_automatic_GCJ=no
15681 module_expsym_cmds_GCJ=
15682 always_export_symbols_GCJ=no
15683 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15684 # include_expsyms should be a list of space-separated symbols to be *always*
15685 # included in the symbol list
15686 include_expsyms_GCJ=
15687 # exclude_expsyms can be an extended regexp of symbols to exclude
15688 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15689 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15690 # as well as any symbol that contains `d'.
15691 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15692 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15693 # platforms (ab)use it in PIC code, but their linkers get confused if
15694 # the symbol is explicitly referenced. Since portable code cannot
15695 # rely on this symbol name, it's probably fine to never include it in
15696 # preloaded symbol tables.
15697 extract_expsyms_cmds=
15698 # Just being paranoid about ensuring that cc_basename is set.
15699 for cc_temp in $compiler""; do
15701 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15702 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15707 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15710 cygwin* | mingw* | pw32*)
15711 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15712 # When not using gcc, we currently assume that we are using
15713 # Microsoft Visual C++.
15714 if test "$GCC" != yes; then
15719 # we just hope/assume this is gcc and not c89 (= MSVC++)
15728 if test "$with_gnu_ld" = yes; then
15729 # If archive_cmds runs LD, not CC, wlarc should be empty
15732 # Set some defaults for GNU ld with shared library support. These
15733 # are reset later if shared libraries are not supported. Putting them
15734 # here allows them to be overridden if necessary.
15735 runpath_var=LD_RUN_PATH
15736 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15737 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15738 # ancient GNU ld didn't support --whole-archive et. al.
15739 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15740 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15742 whole_archive_flag_spec_GCJ=
15744 supports_anon_versioning=no
15745 case `$LD -v 2>/dev/null` in
15746 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15747 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15748 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15749 *\ 2.11.*) ;; # other 2.11 versions
15750 *) supports_anon_versioning=yes ;;
15753 # See if GNU ld supports shared libraries.
15755 aix3* | aix4* | aix5*)
15756 # On AIX/PPC, the GNU linker is very broken
15757 if test "$host_cpu" != ia64; then
15761 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15762 *** to be unable to reliably create shared libraries on AIX.
15763 *** Therefore, libtool is disabling shared libraries support. If you
15764 *** really care for shared libraries, you may want to modify your PATH
15765 *** so that a non-GNU linker is found, and then restart.
15772 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)'
15773 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15774 hardcode_minus_L_GCJ=yes
15776 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15777 # that the semantics of dynamic libraries on AmigaOS, at least up
15778 # to version 4, is to share data among multiple programs linked
15779 # with the same dynamic library. Since this doesn't match the
15780 # behavior of shared libraries on other platforms, we can't use
15786 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15787 allow_undefined_flag_GCJ=unsupported
15788 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15789 # support --undefined. This deserves some investigation. FIXME
15790 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15796 cygwin* | mingw* | pw32*)
15797 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15798 # as there is no search path for DLLs.
15799 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15800 allow_undefined_flag_GCJ=unsupported
15801 always_export_symbols_GCJ=no
15802 enable_shared_with_static_runtimes_GCJ=yes
15803 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15805 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15806 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15807 # If the export-symbols file already is a .def file (1st line
15808 # is EXPORTS), use it as is; otherwise, prepend...
15809 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15810 cp $export_symbols $output_objdir/$soname.def;
15812 echo EXPORTS > $output_objdir/$soname.def;
15813 cat $export_symbols >> $output_objdir/$soname.def;
15815 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15822 hardcode_direct_GCJ=no
15823 hardcode_shlibpath_var_GCJ=no
15824 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15825 export_dynamic_flag_spec_GCJ='${wl}-E'
15826 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15827 # Instead, shared libraries are loaded at an image base (0x10000000 by
15828 # default) and relocated if they conflict, which is a slow very memory
15829 # consuming and fragmenting process. To avoid this, we pick a random,
15830 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15831 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15832 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15833 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15837 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15839 case $cc_basename,$host_cpu in
15840 pgcc*) # Portland Group C compiler
15841 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15842 tmp_addflag=' $pic_flag'
15844 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15845 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15846 tmp_addflag=' $pic_flag -Mnomain' ;;
15847 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15848 tmp_addflag=' -i_dynamic' ;;
15849 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15850 tmp_addflag=' -i_dynamic -nofor_main' ;;
15851 ifc* | ifort*) # Intel Fortran compiler
15852 tmp_addflag=' -nofor_main' ;;
15854 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15856 if test $supports_anon_versioning = yes; then
15857 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15858 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15859 $echo "local: *; };" >> $output_objdir/$libname.ver~
15860 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15862 link_all_deplibs_GCJ=no
15868 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15869 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15870 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15873 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15874 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15879 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15883 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15884 *** create shared libraries on Solaris systems. Therefore, libtool
15885 *** is disabling shared libraries support. We urge you to upgrade GNU
15886 *** binutils to release 2.9.1 or newer. Another option is to modify
15887 *** your PATH or compiler configuration so that the native linker is
15888 *** used, and then restart.
15891 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15892 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15893 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15899 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15900 case `$LD -v 2>&1` in
15901 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15905 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15906 *** reliably create shared libraries on SCO systems. Therefore, libtool
15907 *** is disabling shared libraries support. We urge you to upgrade GNU
15908 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15909 *** your PATH or compiler configuration so that the native linker is
15910 *** used, and then restart.
15915 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15916 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15917 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15918 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15927 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15929 hardcode_direct_GCJ=yes
15930 hardcode_shlibpath_var_GCJ=no
15934 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15935 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15936 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15943 if test "$ld_shlibs_GCJ" = no; then
15945 hardcode_libdir_flag_spec_GCJ=
15946 export_dynamic_flag_spec_GCJ=
15947 whole_archive_flag_spec_GCJ=
15950 # PORTME fill in a description of your system's linker (not GNU ld)
15953 allow_undefined_flag_GCJ=unsupported
15954 always_export_symbols_GCJ=yes
15955 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'
15956 # Note: this linker hardcodes the directories in LIBPATH if there
15957 # are no directories specified by -L.
15958 hardcode_minus_L_GCJ=yes
15959 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15960 # Neither direct hardcoding nor static linking is supported with a
15962 hardcode_direct_GCJ=unsupported
15967 if test "$host_cpu" = ia64; then
15968 # On IA64, the linker does run time linking by default, so we don't
15969 # have to do anything special.
15970 aix_use_runtimelinking=no
15971 exp_sym_flag='-Bexport'
15974 # If we're using GNU nm, then we don't want the "-C" option.
15975 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15976 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15977 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'
15979 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'
15981 aix_use_runtimelinking=no
15983 # Test if we are trying to use run time linking or normal
15984 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15985 # need to do runtime linking.
15986 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15987 for ld_flag in $LDFLAGS; do
15988 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15989 aix_use_runtimelinking=yes
15996 exp_sym_flag='-bexport'
15997 no_entry_flag='-bnoentry'
16000 # When large executables or shared objects are built, AIX ld can
16001 # have problems creating the table of contents. If linking a library
16002 # or program results in "error TOC overflow" add -mminimal-toc to
16003 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16004 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16006 archive_cmds_GCJ=''
16007 hardcode_direct_GCJ=yes
16008 hardcode_libdir_separator_GCJ=':'
16009 link_all_deplibs_GCJ=yes
16011 if test "$GCC" = yes; then
16012 case $host_os in aix4.[012]|aix4.[012].*)
16013 # We only want to do this on AIX 4.2 and lower, the check
16014 # below for broken collect2 doesn't work under 4.3+
16015 collect2name=`${CC} -print-prog-name=collect2`
16016 if test -f "$collect2name" && \
16017 strings "$collect2name" | grep resolve_lib_name >/dev/null
16019 # We have reworked collect2
16020 hardcode_direct_GCJ=yes
16022 # We have old collect2
16023 hardcode_direct_GCJ=unsupported
16024 # It fails to find uninstalled libraries when the uninstalled
16025 # path is not listed in the libpath. Setting hardcode_minus_L
16026 # to unsupported forces relinking
16027 hardcode_minus_L_GCJ=yes
16028 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16029 hardcode_libdir_separator_GCJ=
16033 shared_flag='-shared'
16034 if test "$aix_use_runtimelinking" = yes; then
16035 shared_flag="$shared_flag "'${wl}-G'
16039 if test "$host_cpu" = ia64; then
16040 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16041 # chokes on -Wl,-G. The following line is correct:
16044 if test "$aix_use_runtimelinking" = yes; then
16045 shared_flag='${wl}-G'
16047 shared_flag='${wl}-bM:SRE'
16052 # It seems that -bexpall does not export symbols beginning with
16053 # underscore (_), so it is better to generate a list of symbols to export.
16054 always_export_symbols_GCJ=yes
16055 if test "$aix_use_runtimelinking" = yes; then
16056 # Warning - without using the other runtime loading flags (-brtl),
16057 # -berok will link without error, but may produce a broken library.
16058 allow_undefined_flag_GCJ='-berok'
16059 # Determine the default libpath from the value encoded in an empty executable.
16060 cat >conftest.$ac_ext <<_ACEOF
16063 cat confdefs.h >>conftest.$ac_ext
16064 cat >>conftest.$ac_ext <<_ACEOF
16065 /* end confdefs.h. */
16075 rm -f conftest.$ac_objext conftest$ac_exeext
16076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16077 (eval $ac_link) 2>conftest.er1
16079 grep -v '^ *+' conftest.er1 >conftest.err
16081 cat conftest.err >&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } &&
16084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086 (eval $ac_try) 2>&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; } &&
16090 { ac_try='test -s conftest$ac_exeext'
16091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092 (eval $ac_try) 2>&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; }; then
16097 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16099 # Check for a 64-bit object if we didn't find anything.
16100 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; }
16103 echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.$ac_ext >&5
16107 rm -f conftest.err conftest.$ac_objext \
16108 conftest$ac_exeext conftest.$ac_ext
16109 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16111 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16112 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16114 if test "$host_cpu" = ia64; then
16115 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16116 allow_undefined_flag_GCJ="-z nodefs"
16117 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16119 # Determine the default libpath from the value encoded in an empty executable.
16120 cat >conftest.$ac_ext <<_ACEOF
16123 cat confdefs.h >>conftest.$ac_ext
16124 cat >>conftest.$ac_ext <<_ACEOF
16125 /* end confdefs.h. */
16135 rm -f conftest.$ac_objext conftest$ac_exeext
16136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16137 (eval $ac_link) 2>conftest.er1
16139 grep -v '^ *+' conftest.er1 >conftest.err
16141 cat conftest.err >&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); } &&
16144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; } &&
16150 { ac_try='test -s conftest$ac_exeext'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; }; then
16157 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16159 # Check for a 64-bit object if we didn't find anything.
16160 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; }
16163 echo "$as_me: failed program was:" >&5
16164 sed 's/^/| /' conftest.$ac_ext >&5
16167 rm -f conftest.err conftest.$ac_objext \
16168 conftest$ac_exeext conftest.$ac_ext
16169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16171 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16172 # Warning - without using the other run time loading flags,
16173 # -berok will link without error, but may produce a broken library.
16174 no_undefined_flag_GCJ=' ${wl}-bernotok'
16175 allow_undefined_flag_GCJ=' ${wl}-berok'
16176 # Exported symbols can be pulled into shared objects from archives
16177 whole_archive_flag_spec_GCJ='$convenience'
16178 archive_cmds_need_lc_GCJ=yes
16179 # This is similar to how AIX traditionally builds its shared libraries.
16180 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16186 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)'
16187 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16188 hardcode_minus_L_GCJ=yes
16189 # see comment about different semantics on the GNU ld section
16194 export_dynamic_flag_spec_GCJ=-rdynamic
16197 cygwin* | mingw* | pw32*)
16198 # When not using gcc, we currently assume that we are using
16199 # Microsoft Visual C++.
16200 # hardcode_libdir_flag_spec is actually meaningless, as there is
16201 # no search path for DLLs.
16202 hardcode_libdir_flag_spec_GCJ=' '
16203 allow_undefined_flag_GCJ=unsupported
16204 # Tell ltmain to make .lib files, not .a files.
16206 # Tell ltmain to make .dll files, not .so files.
16208 # FIXME: Setting linknames here is a bad hack.
16209 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16210 # The linker will automatically build a .lib file if we build a DLL.
16211 old_archive_From_new_cmds_GCJ='true'
16212 # FIXME: Should let the user specify the lib program.
16213 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16214 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16215 enable_shared_with_static_runtimes_GCJ=yes
16218 darwin* | rhapsody*)
16220 rhapsody* | darwin1.[012])
16221 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16224 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16225 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16227 case ${MACOSX_DEPLOYMENT_TARGET} in
16229 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16232 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16238 archive_cmds_need_lc_GCJ=no
16239 hardcode_direct_GCJ=no
16240 hardcode_automatic_GCJ=yes
16241 hardcode_shlibpath_var_GCJ=unsupported
16242 whole_archive_flag_spec_GCJ=''
16243 link_all_deplibs_GCJ=yes
16244 if test "$GCC" = yes ; then
16245 output_verbose_link_cmd='echo'
16246 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16247 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16248 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16249 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16250 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}'
16252 case $cc_basename in
16254 output_verbose_link_cmd='echo'
16255 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16256 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16257 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16258 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16259 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}'
16269 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16270 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16271 hardcode_shlibpath_var_GCJ=no
16278 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16279 # support. Future versions do this automatically, but an explicit c++rt0.o
16280 # does not break anything, and helps significantly (at the cost of a little
16283 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16284 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16285 hardcode_direct_GCJ=yes
16286 hardcode_shlibpath_var_GCJ=no
16289 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16291 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16292 hardcode_direct_GCJ=yes
16293 hardcode_minus_L_GCJ=yes
16294 hardcode_shlibpath_var_GCJ=no
16297 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16298 freebsd* | dragonfly*)
16299 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16300 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16301 hardcode_direct_GCJ=yes
16302 hardcode_shlibpath_var_GCJ=no
16305 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16307 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16308 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16309 hardcode_direct_GCJ=yes
16310 hardcode_shlibpath_var_GCJ=no
16311 link_all_deplibs_GCJ=no
16315 if test "$GCC" = yes; then
16316 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'
16318 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'
16320 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16321 hardcode_libdir_separator_GCJ=:
16322 hardcode_direct_GCJ=yes
16324 # hardcode_minus_L: Not really in the search PATH,
16325 # but as the default location of the library.
16326 hardcode_minus_L_GCJ=yes
16327 export_dynamic_flag_spec_GCJ='${wl}-E'
16331 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16332 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16334 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16336 if test "$with_gnu_ld" = no; then
16337 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16338 hardcode_libdir_separator_GCJ=:
16340 hardcode_direct_GCJ=yes
16341 export_dynamic_flag_spec_GCJ='${wl}-E'
16343 # hardcode_minus_L: Not really in the search PATH,
16344 # but as the default location of the library.
16345 hardcode_minus_L_GCJ=yes
16350 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16353 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16356 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16359 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16365 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16368 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16371 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16375 if test "$with_gnu_ld" = no; then
16376 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16377 hardcode_libdir_separator_GCJ=:
16381 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16382 hardcode_direct_GCJ=no
16383 hardcode_shlibpath_var_GCJ=no
16386 hardcode_direct_GCJ=yes
16387 export_dynamic_flag_spec_GCJ='${wl}-E'
16389 # hardcode_minus_L: Not really in the search PATH,
16390 # but as the default location of the library.
16391 hardcode_minus_L_GCJ=yes
16397 irix5* | irix6* | nonstopux*)
16398 if test "$GCC" = yes; then
16399 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'
16401 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'
16402 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16404 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16405 hardcode_libdir_separator_GCJ=:
16406 link_all_deplibs_GCJ=yes
16409 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16410 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16411 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16413 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16415 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16416 hardcode_direct_GCJ=yes
16417 hardcode_shlibpath_var_GCJ=no
16421 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16422 hardcode_direct_GCJ=yes
16423 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16424 hardcode_libdir_separator_GCJ=:
16425 hardcode_shlibpath_var_GCJ=no
16429 hardcode_direct_GCJ=yes
16430 hardcode_shlibpath_var_GCJ=no
16431 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16432 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16433 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16434 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16435 export_dynamic_flag_spec_GCJ='${wl}-E'
16438 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16439 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16440 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16443 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16444 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16451 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16452 hardcode_minus_L_GCJ=yes
16453 allow_undefined_flag_GCJ=unsupported
16454 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'
16455 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16459 if test "$GCC" = yes; then
16460 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16461 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'
16463 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16464 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'
16466 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16467 hardcode_libdir_separator_GCJ=:
16470 osf4* | osf5*) # as osf3* with the addition of -msym flag
16471 if test "$GCC" = yes; then
16472 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16473 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'
16474 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16476 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16477 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'
16478 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~
16479 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16481 # Both c and cxx compiler support -rpath directly
16482 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16484 hardcode_libdir_separator_GCJ=:
16488 no_undefined_flag_GCJ=' -z text'
16489 if test "$GCC" = yes; then
16491 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16492 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16493 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16496 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16497 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16498 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16500 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16501 hardcode_shlibpath_var_GCJ=no
16503 solaris2.[0-5] | solaris2.[0-5].*) ;;
16505 # The compiler driver will combine linker options so we
16506 # cannot just pass the convience library names through
16507 # without $wl, iff we do not link with $LD.
16508 # Luckily, gcc supports the same syntax we need for Sun Studio.
16509 # Supported since Solaris 2.6 (maybe 2.5.1?)
16512 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16514 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16517 link_all_deplibs_GCJ=yes
16521 if test "x$host_vendor" = xsequent; then
16522 # Use $CC to link under sequent, because it throws in some extra .o
16523 # files that make .init and .fini sections work.
16524 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16526 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16528 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16529 hardcode_direct_GCJ=yes
16530 hardcode_minus_L_GCJ=yes
16531 hardcode_shlibpath_var_GCJ=no
16535 case $host_vendor in
16537 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16538 hardcode_direct_GCJ=yes # is this really true???
16541 ## LD is ld it makes a PLAMLIB
16542 ## CC just makes a GrossModule.
16543 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16544 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16545 hardcode_direct_GCJ=no
16548 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16549 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16552 runpath_var='LD_RUN_PATH'
16553 hardcode_shlibpath_var_GCJ=no
16557 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16558 hardcode_shlibpath_var_GCJ=no
16559 export_dynamic_flag_spec_GCJ='-Bexport'
16563 if test -d /usr/nec; then
16564 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16565 hardcode_shlibpath_var_GCJ=no
16566 runpath_var=LD_RUN_PATH
16567 hardcode_runpath_var=yes
16572 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16573 no_undefined_flag_GCJ='${wl}-z,text'
16574 archive_cmds_need_lc_GCJ=no
16575 hardcode_shlibpath_var_GCJ=no
16576 runpath_var='LD_RUN_PATH'
16578 if test "$GCC" = yes; then
16579 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16580 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16582 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16583 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16587 sysv5* | sco3.2v5* | sco5v6*)
16588 # Note: We can NOT use -z defs as we might desire, because we do not
16589 # link with -lc, and that would cause any symbols used from libc to
16590 # always be unresolved, which means just about no library would
16591 # ever link correctly. If we're not using GNU ld we use -z text
16592 # though, which does catch some bad symbols but isn't as heavy-handed
16594 no_undefined_flag_GCJ='${wl}-z,text'
16595 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16596 archive_cmds_need_lc_GCJ=no
16597 hardcode_shlibpath_var_GCJ=no
16598 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16599 hardcode_libdir_separator_GCJ=':'
16600 link_all_deplibs_GCJ=yes
16601 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16602 runpath_var='LD_RUN_PATH'
16604 if test "$GCC" = yes; then
16605 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16606 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16608 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16609 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16614 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16615 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16616 hardcode_shlibpath_var_GCJ=no
16625 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16626 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16627 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16630 # Do we need to explicitly link libc?
16632 case "x$archive_cmds_need_lc_GCJ" in
16634 # Assume -lc should be added
16635 archive_cmds_need_lc_GCJ=yes
16637 if test "$enable_shared" = yes && test "$GCC" = yes; then
16638 case $archive_cmds_GCJ in
16640 # FIXME: we may have to deal with multi-command sequences.
16643 # Test whether the compiler implicitly links with -lc since on some
16644 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16645 # to ld, don't add -lc before -lgcc.
16646 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16647 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16649 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16652 (eval $ac_compile) 2>&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } 2>conftest.err; then
16658 libobjs=conftest.$ac_objext
16660 wl=$lt_prog_compiler_wl_GCJ
16661 pic_flag=$lt_prog_compiler_pic_GCJ
16667 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16668 allow_undefined_flag_GCJ=
16669 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16670 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }
16675 archive_cmds_need_lc_GCJ=no
16677 archive_cmds_need_lc_GCJ=yes
16679 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16681 cat conftest.err 1>&5
16684 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16685 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16692 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16693 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16694 library_names_spec=
16695 libname_spec='lib$name'
16699 postuninstall_cmds=
16703 shlibpath_overrides_runpath=unknown
16705 dynamic_linker="$host_os ld.so"
16706 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16707 if test "$GCC" = yes; then
16708 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16709 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16710 # if the path contains ";" then we assume it to be the separator
16711 # otherwise default to the standard path separator (i.e. ":") - it is
16712 # assumed that no part of a normal pathname contains ";" but that should
16713 # okay in the real world where ";" in dirpaths is itself problematic.
16714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16719 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16721 need_lib_prefix=unknown
16722 hardcode_into_libs=no
16724 # when you set need_version to no, make sure it does not cause -set_version
16725 # flags to be left without arguments
16726 need_version=unknown
16731 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16732 shlibpath_var=LIBPATH
16734 # AIX 3 has no versioning support, so we append a major version to the name.
16735 soname_spec='${libname}${release}${shared_ext}$major'
16742 hardcode_into_libs=yes
16743 if test "$host_cpu" = ia64; then
16744 # AIX 5 supports IA64
16745 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16746 shlibpath_var=LD_LIBRARY_PATH
16748 # With GCC up to 2.95.x, collect2 would create an import file
16749 # for dependence libraries. The import file would start with
16750 # the line `#! .'. This would cause the generated library to
16751 # depend on `.', always an invalid library. This was fixed in
16752 # development snapshots of GCC prior to 3.0.
16754 aix4 | aix4.[01] | aix4.[01].*)
16755 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16757 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16760 can_build_shared=no
16764 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16765 # soname into executable. Probably we can add versioning support to
16766 # collect2, so additional links can be useful in future.
16767 if test "$aix_use_runtimelinking" = yes; then
16768 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16769 # instead of lib<name>.a to let people know that these are not
16770 # typical AIX shared libraries.
16771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16773 # We preserve .a as extension for shared libraries through AIX4.2
16774 # and later when we are not doing run time linking.
16775 library_names_spec='${libname}${release}.a $libname.a'
16776 soname_spec='${libname}${release}${shared_ext}$major'
16778 shlibpath_var=LIBPATH
16783 library_names_spec='$libname.ixlibrary $libname.a'
16784 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16785 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'
16789 library_names_spec='${libname}${shared_ext}'
16790 dynamic_linker="$host_os ld.so"
16791 shlibpath_var=LIBRARY_PATH
16797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16798 soname_spec='${libname}${release}${shared_ext}$major'
16799 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16800 shlibpath_var=LD_LIBRARY_PATH
16801 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16802 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16803 # the default ld.so.conf also contains /usr/contrib/lib and
16804 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16805 # libtool to hard-code these into programs
16808 cygwin* | mingw* | pw32*)
16809 version_type=windows
16814 case $GCC,$host_os in
16815 yes,cygwin* | yes,mingw* | yes,pw32*)
16816 library_names_spec='$libname.dll.a'
16817 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16818 postinstall_cmds='base_file=`basename \${file}`~
16819 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16820 dldir=$destdir/`dirname \$dlpath`~
16821 test -d \$dldir || mkdir -p \$dldir~
16822 $install_prog $dir/$dlname \$dldir/$dlname~
16823 chmod a+x \$dldir/$dlname'
16824 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16825 dlpath=$dir/\$dldll~
16827 shlibpath_overrides_runpath=yes
16831 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16832 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16833 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16836 # MinGW DLLs use traditional 'lib' prefix
16837 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16838 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16839 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16840 # It is most probably a Windows format PATH printed by
16841 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16842 # path with ; separators, and with drive letters. We can handle the
16843 # drive letters (cygwin fileutils understands them), so leave them,
16844 # especially as we might pass files found there to a mingw objdump,
16845 # which wouldn't understand a cygwinified path. Ahh.
16846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16848 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16852 # pw32 DLLs use 'pw' prefix rather than 'lib'
16853 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16859 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16862 dynamic_linker='Win32 ld.exe'
16863 # FIXME: first we should search . and the directory the executable is in
16867 darwin* | rhapsody*)
16868 dynamic_linker="$host_os dyld"
16869 version_type=darwin
16872 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16873 soname_spec='${libname}${release}${major}$shared_ext'
16874 shlibpath_overrides_runpath=yes
16875 shlibpath_var=DYLD_LIBRARY_PATH
16876 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16877 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16878 if test "$GCC" = yes; then
16879 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"`
16881 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16883 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16891 soname_spec='${libname}${release}${shared_ext}$major'
16892 shlibpath_var=LD_LIBRARY_PATH
16903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16904 soname_spec='${libname}${release}${shared_ext}$major'
16905 shlibpath_var=LD_LIBRARY_PATH
16906 shlibpath_overrides_runpath=no
16907 hardcode_into_libs=yes
16908 dynamic_linker='GNU ld.so'
16911 freebsd* | dragonfly*)
16912 # DragonFly does not have aout. When/if they implement a new
16913 # versioning mechanism, adjust this.
16914 if test -x /usr/bin/objformat; then
16915 objformat=`/usr/bin/objformat`
16918 freebsd[123]*) objformat=aout ;;
16919 *) objformat=elf ;;
16922 version_type=freebsd-$objformat
16923 case $version_type in
16925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16934 shlibpath_var=LD_LIBRARY_PATH
16937 shlibpath_overrides_runpath=yes
16939 freebsd3.[01]* | freebsdelf3.[01]*)
16940 shlibpath_overrides_runpath=yes
16941 hardcode_into_libs=yes
16943 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16944 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16945 shlibpath_overrides_runpath=no
16946 hardcode_into_libs=yes
16948 freebsd*) # from 4.6 on
16949 shlibpath_overrides_runpath=yes
16950 hardcode_into_libs=yes
16959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16960 soname_spec='${libname}${release}${shared_ext}$major'
16961 shlibpath_var=LD_LIBRARY_PATH
16962 hardcode_into_libs=yes
16965 hpux9* | hpux10* | hpux11*)
16966 # Give a soname corresponding to the major version so that dld.sl refuses to
16967 # link against other versions.
16974 hardcode_into_libs=yes
16975 dynamic_linker="$host_os dld.so"
16976 shlibpath_var=LD_LIBRARY_PATH
16977 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16979 soname_spec='${libname}${release}${shared_ext}$major'
16980 if test "X$HPUX_IA64_MODE" = X32; then
16981 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16983 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16985 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16989 hardcode_into_libs=yes
16990 dynamic_linker="$host_os dld.sl"
16991 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16992 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16994 soname_spec='${libname}${release}${shared_ext}$major'
16995 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17000 dynamic_linker="$host_os dld.sl"
17001 shlibpath_var=SHLIB_PATH
17002 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004 soname_spec='${libname}${release}${shared_ext}$major'
17007 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17008 postinstall_cmds='chmod 555 $lib'
17015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17016 soname_spec='${libname}${release}${shared_ext}$major'
17017 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17018 shlibpath_var=LD_LIBRARY_PATH
17019 shlibpath_overrides_runpath=no
17020 hardcode_into_libs=yes
17023 irix5* | irix6* | nonstopux*)
17025 nonstopux*) version_type=nonstopux ;;
17027 if test "$lt_cv_prog_gnu_ld" = yes; then
17035 soname_spec='${libname}${release}${shared_ext}$major'
17036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17038 irix5* | nonstopux*)
17039 libsuff= shlibsuff=
17042 case $LD in # libtool.m4 will add one of these switches to LD
17043 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17044 libsuff= shlibsuff= libmagic=32-bit;;
17045 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17046 libsuff=32 shlibsuff=N32 libmagic=N32;;
17047 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17048 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17049 *) libsuff= shlibsuff= libmagic=never-match;;
17053 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17054 shlibpath_overrides_runpath=no
17055 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17056 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17057 hardcode_into_libs=yes
17060 # No shared lib support for Linux oldld, aout, or coff.
17061 linux*oldld* | linux*aout* | linux*coff*)
17065 # This must be Linux ELF.
17070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17071 soname_spec='${libname}${release}${shared_ext}$major'
17072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17073 shlibpath_var=LD_LIBRARY_PATH
17074 shlibpath_overrides_runpath=no
17075 # This implies no fast_install, which is unacceptable.
17076 # Some rework will be needed to allow for fast_install
17077 # before this can be enabled.
17078 hardcode_into_libs=yes
17080 # Append ld.so.conf contents to the search path
17081 if test -f /etc/ld.so.conf; then
17082 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17083 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17086 # We used to test for /lib/ld.so.1 and disable shared libraries on
17087 # powerpc, because MkLinux only supported shared libraries with the
17088 # GNU dynamic linker. Since this was broken with cross compilers,
17089 # most powerpc-linux boxes support dynamic linking these days and
17090 # people can always --disable-shared, the test was removed, and we
17091 # assume the GNU/Linux dynamic linker is in use.
17092 dynamic_linker='GNU/Linux ld.so'
17099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17100 soname_spec='${libname}${release}${shared_ext}$major'
17101 shlibpath_var=LD_LIBRARY_PATH
17102 shlibpath_overrides_runpath=no
17103 hardcode_into_libs=yes
17104 dynamic_linker='NetBSD ld.elf_so'
17111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17112 soname_spec='${libname}${release}${shared_ext}$major'
17113 shlibpath_var=LD_LIBRARY_PATH
17114 shlibpath_overrides_runpath=no
17115 hardcode_into_libs=yes
17116 dynamic_linker='GNU ld.so'
17123 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17126 dynamic_linker='NetBSD (a.out) ld.so'
17128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17129 soname_spec='${libname}${release}${shared_ext}$major'
17130 dynamic_linker='NetBSD ld.elf_so'
17132 shlibpath_var=LD_LIBRARY_PATH
17133 shlibpath_overrides_runpath=yes
17134 hardcode_into_libs=yes
17139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17140 shlibpath_var=LD_LIBRARY_PATH
17141 shlibpath_overrides_runpath=yes
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149 soname_spec='${libname}${release}${shared_ext}$major'
17150 shlibpath_var=LD_LIBRARY_PATH
17151 shlibpath_overrides_runpath=yes
17156 sys_lib_dlsearch_path_spec="/usr/lib"
17158 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17160 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17161 *) need_version=no ;;
17163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17165 shlibpath_var=LD_LIBRARY_PATH
17166 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17168 openbsd2.[89] | openbsd2.[89].*)
17169 shlibpath_overrides_runpath=no
17172 shlibpath_overrides_runpath=yes
17176 shlibpath_overrides_runpath=yes
17181 libname_spec='$name'
17184 library_names_spec='$libname${shared_ext} $libname.a'
17185 dynamic_linker='OS/2 ld.exe'
17186 shlibpath_var=LIBPATH
17189 osf3* | osf4* | osf5*)
17193 soname_spec='${libname}${release}${shared_ext}$major'
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17195 shlibpath_var=LD_LIBRARY_PATH
17196 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17197 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17205 soname_spec='${libname}${release}${shared_ext}$major'
17206 shlibpath_var=LD_LIBRARY_PATH
17207 shlibpath_overrides_runpath=yes
17208 hardcode_into_libs=yes
17209 # ldd complains unless libraries are executable
17210 postinstall_cmds='chmod +x $lib'
17215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17216 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17217 shlibpath_var=LD_LIBRARY_PATH
17218 shlibpath_overrides_runpath=yes
17219 if test "$with_gnu_ld" = yes; then
17227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17228 soname_spec='${libname}${release}${shared_ext}$major'
17229 shlibpath_var=LD_LIBRARY_PATH
17230 case $host_vendor in
17232 shlibpath_overrides_runpath=no
17234 export_dynamic_flag_spec='${wl}-Blargedynsym'
17235 runpath_var=LD_RUN_PATH
17243 shlibpath_overrides_runpath=no
17244 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17250 if test -d /usr/nec ;then
17252 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17253 soname_spec='$libname${shared_ext}.$major'
17254 shlibpath_var=LD_LIBRARY_PATH
17258 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17259 version_type=freebsd-elf
17262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17263 soname_spec='${libname}${release}${shared_ext}$major'
17264 shlibpath_var=LD_LIBRARY_PATH
17265 hardcode_into_libs=yes
17266 if test "$with_gnu_ld" = yes; then
17267 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17268 shlibpath_overrides_runpath=no
17270 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17271 shlibpath_overrides_runpath=yes
17274 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17278 sys_lib_dlsearch_path_spec='/usr/lib'
17283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17284 soname_spec='${libname}${release}${shared_ext}$major'
17285 shlibpath_var=LD_LIBRARY_PATH
17292 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17293 echo "${ECHO_T}$dynamic_linker" >&6
17294 test "$dynamic_linker" = no && can_build_shared=no
17296 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17297 if test "$GCC" = yes; then
17298 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17301 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17302 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17303 hardcode_action_GCJ=
17304 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17305 test -n "$runpath_var_GCJ" || \
17306 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17308 # We can hardcode non-existant directories.
17309 if test "$hardcode_direct_GCJ" != no &&
17310 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17311 # have to relink, otherwise we might link with an installed library
17312 # when we should be linking with a yet-to-be-installed one
17313 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17314 test "$hardcode_minus_L_GCJ" != no; then
17315 # Linking always hardcodes the temporary library directory.
17316 hardcode_action_GCJ=relink
17318 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17319 hardcode_action_GCJ=immediate
17322 # We cannot hardcode anything, or else we can only hardcode existing
17324 hardcode_action_GCJ=unsupported
17326 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17327 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17329 if test "$hardcode_action_GCJ" = relink; then
17330 # Fast installation is not supported
17331 enable_fast_install=no
17332 elif test "$shlibpath_overrides_runpath" = yes ||
17333 test "$enable_shared" = no; then
17334 # Fast installation is not necessary
17335 enable_fast_install=needless
17339 # The else clause should only fire when bootstrapping the
17340 # libtool distribution, otherwise you forgot to ship ltmain.sh
17341 # with your package, and you will get complaints that there are
17342 # no rules to generate ltmain.sh.
17343 if test -f "$ltmain"; then
17344 # See if we are running on zsh, and set the options which allow our commands through
17345 # without removal of \ escapes.
17346 if test -n "${ZSH_VERSION+set}" ; then
17347 setopt NO_GLOB_SUBST
17349 # Now quote all the things that may contain metacharacters while being
17350 # careful not to overquote the AC_SUBSTed values. We take copies of the
17351 # variables and quote the copies for generation of the libtool script.
17352 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17354 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17355 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17356 deplibs_check_method reload_flag reload_cmds need_locks \
17357 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17358 lt_cv_sys_global_symbol_to_c_name_address \
17359 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17360 old_postinstall_cmds old_postuninstall_cmds \
17364 lt_prog_compiler_wl_GCJ \
17365 lt_prog_compiler_pic_GCJ \
17366 lt_prog_compiler_static_GCJ \
17367 lt_prog_compiler_no_builtin_flag_GCJ \
17368 export_dynamic_flag_spec_GCJ \
17369 thread_safe_flag_spec_GCJ \
17370 whole_archive_flag_spec_GCJ \
17371 enable_shared_with_static_runtimes_GCJ \
17372 old_archive_cmds_GCJ \
17373 old_archive_from_new_cmds_GCJ \
17374 predep_objects_GCJ \
17375 postdep_objects_GCJ \
17378 compiler_lib_search_path_GCJ \
17380 archive_expsym_cmds_GCJ \
17381 postinstall_cmds_GCJ \
17382 postuninstall_cmds_GCJ \
17383 old_archive_from_expsyms_cmds_GCJ \
17384 allow_undefined_flag_GCJ \
17385 no_undefined_flag_GCJ \
17386 export_symbols_cmds_GCJ \
17387 hardcode_libdir_flag_spec_GCJ \
17388 hardcode_libdir_flag_spec_ld_GCJ \
17389 hardcode_libdir_separator_GCJ \
17390 hardcode_automatic_GCJ \
17392 module_expsym_cmds_GCJ \
17393 lt_cv_prog_compiler_c_o_GCJ \
17394 exclude_expsyms_GCJ \
17395 include_expsyms_GCJ; do
17398 old_archive_cmds_GCJ | \
17399 old_archive_from_new_cmds_GCJ | \
17400 archive_cmds_GCJ | \
17401 archive_expsym_cmds_GCJ | \
17402 module_cmds_GCJ | \
17403 module_expsym_cmds_GCJ | \
17404 old_archive_from_expsyms_cmds_GCJ | \
17405 export_symbols_cmds_GCJ | \
17406 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17407 postinstall_cmds | postuninstall_cmds | \
17408 old_postinstall_cmds | old_postuninstall_cmds | \
17409 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17410 # Double-quote double-evaled strings.
17411 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17414 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17420 *'\$0 --fallback-echo"')
17421 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17427 cat <<__EOF__ >> "$cfgfile"
17428 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17430 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17432 # Shell to use when invoking shell scripts.
17435 # Whether or not to build shared libraries.
17436 build_libtool_libs=$enable_shared
17438 # Whether or not to build static libraries.
17439 build_old_libs=$enable_static
17441 # Whether or not to add -lc for building shared libraries.
17442 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17444 # Whether or not to disallow shared libs when runtime libs are static
17445 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17447 # Whether or not to optimize for fast installation.
17448 fast_install=$enable_fast_install
17451 host_alias=$host_alias
17455 # The build system.
17456 build_alias=$build_alias
17460 # An echo program that does not interpret backslashes.
17465 AR_FLAGS=$lt_AR_FLAGS
17470 # LTCC compiler flags.
17471 LTCFLAGS=$lt_LTCFLAGS
17473 # A language-specific compiler.
17474 CC=$lt_compiler_GCJ
17476 # Is the compiler the GNU C compiler?
17482 # The linker used to build libraries.
17485 # Whether we need hard or soft links.
17488 # A BSD-compatible nm program.
17491 # A symbol stripping program
17494 # Used to examine libraries when file_magic_cmd begins "file"
17495 MAGIC_CMD=$MAGIC_CMD
17497 # Used on cygwin: DLL creation program.
17500 # Used on cygwin: object dumper.
17503 # Used on cygwin: assembler.
17506 # The name of the directory that contains temporary libtool files.
17509 # How to create reloadable object files.
17510 reload_flag=$lt_reload_flag
17511 reload_cmds=$lt_reload_cmds
17513 # How to pass a linker flag through the compiler.
17514 wl=$lt_lt_prog_compiler_wl_GCJ
17516 # Object file suffix (normally "o").
17517 objext="$ac_objext"
17519 # Old archive suffix (normally "a").
17522 # Shared library suffix (normally ".so").
17523 shrext_cmds='$shrext_cmds'
17525 # Executable file suffix (normally "").
17528 # Additional compiler flags for building library objects.
17529 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17532 # What is the maximum length of a command?
17533 max_cmd_len=$lt_cv_sys_max_cmd_len
17535 # Does compiler simultaneously support -c and -o options?
17536 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17538 # Must we lock files when doing compilation?
17539 need_locks=$lt_need_locks
17541 # Do we need the lib prefix for modules?
17542 need_lib_prefix=$need_lib_prefix
17544 # Do we need a version for libraries?
17545 need_version=$need_version
17547 # Whether dlopen is supported.
17548 dlopen_support=$enable_dlopen
17550 # Whether dlopen of programs is supported.
17551 dlopen_self=$enable_dlopen_self
17553 # Whether dlopen of statically linked programs is supported.
17554 dlopen_self_static=$enable_dlopen_self_static
17556 # Compiler flag to prevent dynamic linking.
17557 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17559 # Compiler flag to turn off builtin functions.
17560 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17562 # Compiler flag to allow reflexive dlopens.
17563 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17565 # Compiler flag to generate shared objects directly from archives.
17566 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17568 # Compiler flag to generate thread-safe objects.
17569 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17571 # Library versioning type.
17572 version_type=$version_type
17574 # Format of library name prefix.
17575 libname_spec=$lt_libname_spec
17577 # List of archive names. First name is the real one, the rest are links.
17578 # The last name is the one that the linker finds with -lNAME.
17579 library_names_spec=$lt_library_names_spec
17581 # The coded name of the library, if different from the real name.
17582 soname_spec=$lt_soname_spec
17584 # Commands used to build and install an old-style archive.
17586 old_archive_cmds=$lt_old_archive_cmds_GCJ
17587 old_postinstall_cmds=$lt_old_postinstall_cmds
17588 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17590 # Create an old-style archive from a shared archive.
17591 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17593 # Create a temporary old-style archive to link instead of a shared archive.
17594 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17596 # Commands used to build and install a shared archive.
17597 archive_cmds=$lt_archive_cmds_GCJ
17598 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17599 postinstall_cmds=$lt_postinstall_cmds
17600 postuninstall_cmds=$lt_postuninstall_cmds
17602 # Commands used to build a loadable module (assumed same as above if empty)
17603 module_cmds=$lt_module_cmds_GCJ
17604 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17606 # Commands to strip libraries.
17607 old_striplib=$lt_old_striplib
17608 striplib=$lt_striplib
17610 # Dependencies to place before the objects being linked to create a
17612 predep_objects=$lt_predep_objects_GCJ
17614 # Dependencies to place after the objects being linked to create a
17616 postdep_objects=$lt_postdep_objects_GCJ
17618 # Dependencies to place before the objects being linked to create a
17620 predeps=$lt_predeps_GCJ
17622 # Dependencies to place after the objects being linked to create a
17624 postdeps=$lt_postdeps_GCJ
17626 # The library search path used internally by the compiler when linking
17627 # a shared library.
17628 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17630 # Method to check whether dependent libraries are shared objects.
17631 deplibs_check_method=$lt_deplibs_check_method
17633 # Command to use when deplibs_check_method == file_magic.
17634 file_magic_cmd=$lt_file_magic_cmd
17636 # Flag that allows shared libraries with undefined symbols to be built.
17637 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17639 # Flag that forces no undefined symbols.
17640 no_undefined_flag=$lt_no_undefined_flag_GCJ
17642 # Commands used to finish a libtool library installation in a directory.
17643 finish_cmds=$lt_finish_cmds
17645 # Same as above, but a single script fragment to be evaled but not shown.
17646 finish_eval=$lt_finish_eval
17648 # Take the output of nm and produce a listing of raw symbols and C names.
17649 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17651 # Transform the output of nm in a proper C declaration
17652 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17654 # Transform the output of nm in a C name address pair
17655 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17657 # This is the shared library runtime path variable.
17658 runpath_var=$runpath_var
17660 # This is the shared library path variable.
17661 shlibpath_var=$shlibpath_var
17663 # Is shlibpath searched before the hard-coded library search path?
17664 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17666 # How to hardcode a shared library path into an executable.
17667 hardcode_action=$hardcode_action_GCJ
17669 # Whether we should hardcode library paths into libraries.
17670 hardcode_into_libs=$hardcode_into_libs
17672 # Flag to hardcode \$libdir into a binary during linking.
17673 # This must work even if \$libdir does not exist.
17674 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17676 # If ld is used when linking, flag to hardcode \$libdir into
17677 # a binary during linking. This must work even if \$libdir does
17679 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17681 # Whether we need a single -rpath flag with a separated argument.
17682 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17684 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17685 # resulting binary.
17686 hardcode_direct=$hardcode_direct_GCJ
17688 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17689 # resulting binary.
17690 hardcode_minus_L=$hardcode_minus_L_GCJ
17692 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17693 # the resulting binary.
17694 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17696 # Set to yes if building a shared library automatically hardcodes DIR into the library
17697 # and all subsequent libraries and executables linked against it.
17698 hardcode_automatic=$hardcode_automatic_GCJ
17700 # Variables whose values should be saved in libtool wrapper scripts and
17701 # restored at relink time.
17702 variables_saved_for_relink="$variables_saved_for_relink"
17704 # Whether libtool must link a program against all its dependency libraries.
17705 link_all_deplibs=$link_all_deplibs_GCJ
17707 # Compile-time system search path for libraries
17708 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17710 # Run-time system search path for libraries
17711 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17713 # Fix the shell variable \$srcfile for the compiler.
17714 fix_srcfile_path="$fix_srcfile_path_GCJ"
17716 # Set to yes if exported symbols are required.
17717 always_export_symbols=$always_export_symbols_GCJ
17719 # The commands to list exported symbols.
17720 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17722 # The commands to extract the exported symbol list from a shared archive.
17723 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17725 # Symbols that should not be listed in the preloaded symbols.
17726 exclude_expsyms=$lt_exclude_expsyms_GCJ
17728 # Symbols that must always be exported.
17729 include_expsyms=$lt_include_expsyms_GCJ
17731 # ### END LIBTOOL TAG CONFIG: $tagname
17737 # If there is no Makefile yet, we rely on a make rule to execute
17738 # `config.status --recheck' to rerun these tests and create the
17739 # libtool script then.
17740 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17741 if test -f "$ltmain_in"; then
17742 test -f Makefile && make "$ltmain"
17748 ac_cpp='$CPP $CPPFLAGS'
17749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17764 # Source file extension for RC test sources.
17767 # Object file extension for compiled RC test sources.
17771 # Code to be used in simple compile tests
17772 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17774 # Code to be used in simple link tests
17775 lt_simple_link_test_code="$lt_simple_compile_test_code"
17777 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17779 # If no C compiler was specified, use CC.
17782 # If no C compiler flags were specified, use CFLAGS.
17783 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17785 # Allow CC to be a program name with arguments.
17789 # save warnings/boilerplate of simple test code
17790 ac_outfile=conftest.$ac_objext
17791 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17792 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17793 _lt_compiler_boilerplate=`cat conftest.err`
17796 ac_outfile=conftest.$ac_objext
17797 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17798 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17799 _lt_linker_boilerplate=`cat conftest.err`
17803 # Allow CC to be a program name with arguments.
17808 for cc_temp in $compiler""; do
17810 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17811 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17816 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17818 lt_cv_prog_compiler_c_o_RC=yes
17820 # The else clause should only fire when bootstrapping the
17821 # libtool distribution, otherwise you forgot to ship ltmain.sh
17822 # with your package, and you will get complaints that there are
17823 # no rules to generate ltmain.sh.
17824 if test -f "$ltmain"; then
17825 # See if we are running on zsh, and set the options which allow our commands through
17826 # without removal of \ escapes.
17827 if test -n "${ZSH_VERSION+set}" ; then
17828 setopt NO_GLOB_SUBST
17830 # Now quote all the things that may contain metacharacters while being
17831 # careful not to overquote the AC_SUBSTed values. We take copies of the
17832 # variables and quote the copies for generation of the libtool script.
17833 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17835 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17836 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17837 deplibs_check_method reload_flag reload_cmds need_locks \
17838 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17839 lt_cv_sys_global_symbol_to_c_name_address \
17840 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17841 old_postinstall_cmds old_postuninstall_cmds \
17845 lt_prog_compiler_wl_RC \
17846 lt_prog_compiler_pic_RC \
17847 lt_prog_compiler_static_RC \
17848 lt_prog_compiler_no_builtin_flag_RC \
17849 export_dynamic_flag_spec_RC \
17850 thread_safe_flag_spec_RC \
17851 whole_archive_flag_spec_RC \
17852 enable_shared_with_static_runtimes_RC \
17853 old_archive_cmds_RC \
17854 old_archive_from_new_cmds_RC \
17855 predep_objects_RC \
17856 postdep_objects_RC \
17859 compiler_lib_search_path_RC \
17861 archive_expsym_cmds_RC \
17862 postinstall_cmds_RC \
17863 postuninstall_cmds_RC \
17864 old_archive_from_expsyms_cmds_RC \
17865 allow_undefined_flag_RC \
17866 no_undefined_flag_RC \
17867 export_symbols_cmds_RC \
17868 hardcode_libdir_flag_spec_RC \
17869 hardcode_libdir_flag_spec_ld_RC \
17870 hardcode_libdir_separator_RC \
17871 hardcode_automatic_RC \
17873 module_expsym_cmds_RC \
17874 lt_cv_prog_compiler_c_o_RC \
17875 exclude_expsyms_RC \
17876 include_expsyms_RC; do
17879 old_archive_cmds_RC | \
17880 old_archive_from_new_cmds_RC | \
17881 archive_cmds_RC | \
17882 archive_expsym_cmds_RC | \
17884 module_expsym_cmds_RC | \
17885 old_archive_from_expsyms_cmds_RC | \
17886 export_symbols_cmds_RC | \
17887 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17888 postinstall_cmds | postuninstall_cmds | \
17889 old_postinstall_cmds | old_postuninstall_cmds | \
17890 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17891 # Double-quote double-evaled strings.
17892 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17895 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17901 *'\$0 --fallback-echo"')
17902 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17908 cat <<__EOF__ >> "$cfgfile"
17909 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17911 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17913 # Shell to use when invoking shell scripts.
17916 # Whether or not to build shared libraries.
17917 build_libtool_libs=$enable_shared
17919 # Whether or not to build static libraries.
17920 build_old_libs=$enable_static
17922 # Whether or not to add -lc for building shared libraries.
17923 build_libtool_need_lc=$archive_cmds_need_lc_RC
17925 # Whether or not to disallow shared libs when runtime libs are static
17926 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17928 # Whether or not to optimize for fast installation.
17929 fast_install=$enable_fast_install
17932 host_alias=$host_alias
17936 # The build system.
17937 build_alias=$build_alias
17941 # An echo program that does not interpret backslashes.
17946 AR_FLAGS=$lt_AR_FLAGS
17951 # LTCC compiler flags.
17952 LTCFLAGS=$lt_LTCFLAGS
17954 # A language-specific compiler.
17957 # Is the compiler the GNU C compiler?
17963 # The linker used to build libraries.
17966 # Whether we need hard or soft links.
17969 # A BSD-compatible nm program.
17972 # A symbol stripping program
17975 # Used to examine libraries when file_magic_cmd begins "file"
17976 MAGIC_CMD=$MAGIC_CMD
17978 # Used on cygwin: DLL creation program.
17981 # Used on cygwin: object dumper.
17984 # Used on cygwin: assembler.
17987 # The name of the directory that contains temporary libtool files.
17990 # How to create reloadable object files.
17991 reload_flag=$lt_reload_flag
17992 reload_cmds=$lt_reload_cmds
17994 # How to pass a linker flag through the compiler.
17995 wl=$lt_lt_prog_compiler_wl_RC
17997 # Object file suffix (normally "o").
17998 objext="$ac_objext"
18000 # Old archive suffix (normally "a").
18003 # Shared library suffix (normally ".so").
18004 shrext_cmds='$shrext_cmds'
18006 # Executable file suffix (normally "").
18009 # Additional compiler flags for building library objects.
18010 pic_flag=$lt_lt_prog_compiler_pic_RC
18013 # What is the maximum length of a command?
18014 max_cmd_len=$lt_cv_sys_max_cmd_len
18016 # Does compiler simultaneously support -c and -o options?
18017 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18019 # Must we lock files when doing compilation?
18020 need_locks=$lt_need_locks
18022 # Do we need the lib prefix for modules?
18023 need_lib_prefix=$need_lib_prefix
18025 # Do we need a version for libraries?
18026 need_version=$need_version
18028 # Whether dlopen is supported.
18029 dlopen_support=$enable_dlopen
18031 # Whether dlopen of programs is supported.
18032 dlopen_self=$enable_dlopen_self
18034 # Whether dlopen of statically linked programs is supported.
18035 dlopen_self_static=$enable_dlopen_self_static
18037 # Compiler flag to prevent dynamic linking.
18038 link_static_flag=$lt_lt_prog_compiler_static_RC
18040 # Compiler flag to turn off builtin functions.
18041 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18043 # Compiler flag to allow reflexive dlopens.
18044 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18046 # Compiler flag to generate shared objects directly from archives.
18047 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18049 # Compiler flag to generate thread-safe objects.
18050 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18052 # Library versioning type.
18053 version_type=$version_type
18055 # Format of library name prefix.
18056 libname_spec=$lt_libname_spec
18058 # List of archive names. First name is the real one, the rest are links.
18059 # The last name is the one that the linker finds with -lNAME.
18060 library_names_spec=$lt_library_names_spec
18062 # The coded name of the library, if different from the real name.
18063 soname_spec=$lt_soname_spec
18065 # Commands used to build and install an old-style archive.
18067 old_archive_cmds=$lt_old_archive_cmds_RC
18068 old_postinstall_cmds=$lt_old_postinstall_cmds
18069 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18071 # Create an old-style archive from a shared archive.
18072 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18074 # Create a temporary old-style archive to link instead of a shared archive.
18075 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18077 # Commands used to build and install a shared archive.
18078 archive_cmds=$lt_archive_cmds_RC
18079 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18080 postinstall_cmds=$lt_postinstall_cmds
18081 postuninstall_cmds=$lt_postuninstall_cmds
18083 # Commands used to build a loadable module (assumed same as above if empty)
18084 module_cmds=$lt_module_cmds_RC
18085 module_expsym_cmds=$lt_module_expsym_cmds_RC
18087 # Commands to strip libraries.
18088 old_striplib=$lt_old_striplib
18089 striplib=$lt_striplib
18091 # Dependencies to place before the objects being linked to create a
18093 predep_objects=$lt_predep_objects_RC
18095 # Dependencies to place after the objects being linked to create a
18097 postdep_objects=$lt_postdep_objects_RC
18099 # Dependencies to place before the objects being linked to create a
18101 predeps=$lt_predeps_RC
18103 # Dependencies to place after the objects being linked to create a
18105 postdeps=$lt_postdeps_RC
18107 # The library search path used internally by the compiler when linking
18108 # a shared library.
18109 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18111 # Method to check whether dependent libraries are shared objects.
18112 deplibs_check_method=$lt_deplibs_check_method
18114 # Command to use when deplibs_check_method == file_magic.
18115 file_magic_cmd=$lt_file_magic_cmd
18117 # Flag that allows shared libraries with undefined symbols to be built.
18118 allow_undefined_flag=$lt_allow_undefined_flag_RC
18120 # Flag that forces no undefined symbols.
18121 no_undefined_flag=$lt_no_undefined_flag_RC
18123 # Commands used to finish a libtool library installation in a directory.
18124 finish_cmds=$lt_finish_cmds
18126 # Same as above, but a single script fragment to be evaled but not shown.
18127 finish_eval=$lt_finish_eval
18129 # Take the output of nm and produce a listing of raw symbols and C names.
18130 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18132 # Transform the output of nm in a proper C declaration
18133 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18135 # Transform the output of nm in a C name address pair
18136 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18138 # This is the shared library runtime path variable.
18139 runpath_var=$runpath_var
18141 # This is the shared library path variable.
18142 shlibpath_var=$shlibpath_var
18144 # Is shlibpath searched before the hard-coded library search path?
18145 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18147 # How to hardcode a shared library path into an executable.
18148 hardcode_action=$hardcode_action_RC
18150 # Whether we should hardcode library paths into libraries.
18151 hardcode_into_libs=$hardcode_into_libs
18153 # Flag to hardcode \$libdir into a binary during linking.
18154 # This must work even if \$libdir does not exist.
18155 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18157 # If ld is used when linking, flag to hardcode \$libdir into
18158 # a binary during linking. This must work even if \$libdir does
18160 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18162 # Whether we need a single -rpath flag with a separated argument.
18163 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18165 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18166 # resulting binary.
18167 hardcode_direct=$hardcode_direct_RC
18169 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18170 # resulting binary.
18171 hardcode_minus_L=$hardcode_minus_L_RC
18173 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18174 # the resulting binary.
18175 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18177 # Set to yes if building a shared library automatically hardcodes DIR into the library
18178 # and all subsequent libraries and executables linked against it.
18179 hardcode_automatic=$hardcode_automatic_RC
18181 # Variables whose values should be saved in libtool wrapper scripts and
18182 # restored at relink time.
18183 variables_saved_for_relink="$variables_saved_for_relink"
18185 # Whether libtool must link a program against all its dependency libraries.
18186 link_all_deplibs=$link_all_deplibs_RC
18188 # Compile-time system search path for libraries
18189 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18191 # Run-time system search path for libraries
18192 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18194 # Fix the shell variable \$srcfile for the compiler.
18195 fix_srcfile_path="$fix_srcfile_path_RC"
18197 # Set to yes if exported symbols are required.
18198 always_export_symbols=$always_export_symbols_RC
18200 # The commands to list exported symbols.
18201 export_symbols_cmds=$lt_export_symbols_cmds_RC
18203 # The commands to extract the exported symbol list from a shared archive.
18204 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18206 # Symbols that should not be listed in the preloaded symbols.
18207 exclude_expsyms=$lt_exclude_expsyms_RC
18209 # Symbols that must always be exported.
18210 include_expsyms=$lt_include_expsyms_RC
18212 # ### END LIBTOOL TAG CONFIG: $tagname
18218 # If there is no Makefile yet, we rely on a make rule to execute
18219 # `config.status --recheck' to rerun these tests and create the
18220 # libtool script then.
18221 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18222 if test -f "$ltmain_in"; then
18223 test -f Makefile && make "$ltmain"
18229 ac_cpp='$CPP $CPPFLAGS'
18230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18239 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18240 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18241 { (exit 1); exit 1; }; }
18245 # Append the new tag name to the list of available tags.
18246 if test -n "$tagname" ; then
18247 available_tags="$available_tags $tagname"
18253 # Now substitute the updated list of available tags.
18254 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18255 mv "${ofile}T" "$ofile"
18259 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18260 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18261 { (exit 1); exit 1; }; }
18267 # This can be used to rebuild libtool when needed
18268 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18270 # Always use our own libtool.
18271 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18273 # Prevent multiple expansion
18295 # Checks for header files.
18296 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18297 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18298 if test "${ac_cv_header_stdc+set}" = set; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18301 cat >conftest.$ac_ext <<_ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18307 #include <stdlib.h>
18308 #include <stdarg.h>
18309 #include <string.h>
18320 rm -f conftest.$ac_objext
18321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18322 (eval $ac_compile) 2>conftest.er1
18324 grep -v '^ *+' conftest.er1 >conftest.err
18326 cat conftest.err >&5
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); } &&
18329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331 (eval $ac_try) 2>&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; } &&
18335 { ac_try='test -s conftest.$ac_objext'
18336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337 (eval $ac_try) 2>&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; }; then
18341 ac_cv_header_stdc=yes
18343 echo "$as_me: failed program was:" >&5
18344 sed 's/^/| /' conftest.$ac_ext >&5
18346 ac_cv_header_stdc=no
18348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18350 if test $ac_cv_header_stdc = yes; then
18351 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18352 cat >conftest.$ac_ext <<_ACEOF
18355 cat confdefs.h >>conftest.$ac_ext
18356 cat >>conftest.$ac_ext <<_ACEOF
18357 /* end confdefs.h. */
18358 #include <string.h>
18361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18362 $EGREP "memchr" >/dev/null 2>&1; then
18365 ac_cv_header_stdc=no
18371 if test $ac_cv_header_stdc = yes; then
18372 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18373 cat >conftest.$ac_ext <<_ACEOF
18376 cat confdefs.h >>conftest.$ac_ext
18377 cat >>conftest.$ac_ext <<_ACEOF
18378 /* end confdefs.h. */
18379 #include <stdlib.h>
18382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18383 $EGREP "free" >/dev/null 2>&1; then
18386 ac_cv_header_stdc=no
18392 if test $ac_cv_header_stdc = yes; then
18393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18394 if test "$cross_compiling" = yes; then
18397 cat >conftest.$ac_ext <<_ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18404 #if ((' ' & 0x0FF) == 0x020)
18405 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18406 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18408 # define ISLOWER(c) \
18409 (('a' <= (c) && (c) <= 'i') \
18410 || ('j' <= (c) && (c) <= 'r') \
18411 || ('s' <= (c) && (c) <= 'z'))
18412 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18415 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18420 for (i = 0; i < 256; i++)
18421 if (XOR (islower (i), ISLOWER (i))
18422 || toupper (i) != TOUPPER (i))
18427 rm -f conftest$ac_exeext
18428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18429 (eval $ac_link) 2>&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434 (eval $ac_try) 2>&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; }; then
18440 echo "$as_me: program exited with status $ac_status" >&5
18441 echo "$as_me: failed program was:" >&5
18442 sed 's/^/| /' conftest.$ac_ext >&5
18444 ( exit $ac_status )
18445 ac_cv_header_stdc=no
18447 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18451 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18452 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18453 if test $ac_cv_header_stdc = yes; then
18455 cat >>confdefs.h <<\_ACEOF
18456 #define STDC_HEADERS 1
18465 for ac_header in fcntl.h stdlib.h string.h unistd.h
18467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18469 echo "$as_me:$LINENO: checking for $ac_header" >&5
18470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18472 echo $ECHO_N "(cached) $ECHO_C" >&6
18474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18477 # Is the header compilable?
18478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18480 cat >conftest.$ac_ext <<_ACEOF
18483 cat confdefs.h >>conftest.$ac_ext
18484 cat >>conftest.$ac_ext <<_ACEOF
18485 /* end confdefs.h. */
18486 $ac_includes_default
18487 #include <$ac_header>
18489 rm -f conftest.$ac_objext
18490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18491 (eval $ac_compile) 2>conftest.er1
18493 grep -v '^ *+' conftest.er1 >conftest.err
18495 cat conftest.err >&5
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); } &&
18498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500 (eval $ac_try) 2>&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; } &&
18504 { ac_try='test -s conftest.$ac_objext'
18505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18506 (eval $ac_try) 2>&5
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); }; }; then
18510 ac_header_compiler=yes
18512 echo "$as_me: failed program was:" >&5
18513 sed 's/^/| /' conftest.$ac_ext >&5
18515 ac_header_compiler=no
18517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18519 echo "${ECHO_T}$ac_header_compiler" >&6
18521 # Is the header present?
18522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18524 cat >conftest.$ac_ext <<_ACEOF
18527 cat confdefs.h >>conftest.$ac_ext
18528 cat >>conftest.$ac_ext <<_ACEOF
18529 /* end confdefs.h. */
18530 #include <$ac_header>
18532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18535 grep -v '^ *+' conftest.er1 >conftest.err
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } >/dev/null; then
18540 if test -s conftest.err; then
18541 ac_cpp_err=$ac_c_preproc_warn_flag
18542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18549 if test -z "$ac_cpp_err"; then
18550 ac_header_preproc=yes
18552 echo "$as_me: failed program was:" >&5
18553 sed 's/^/| /' conftest.$ac_ext >&5
18555 ac_header_preproc=no
18557 rm -f conftest.err conftest.$ac_ext
18558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18559 echo "${ECHO_T}$ac_header_preproc" >&6
18561 # So? What about this header?
18562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18568 ac_header_preproc=yes
18571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18585 ## -------------------------------------------- ##
18586 ## Report this to sebastian.marsching@suphp.org ##
18587 ## -------------------------------------------- ##
18590 sed "s/^/$as_me: WARNING: /" >&2
18593 echo "$as_me:$LINENO: checking for $ac_header" >&5
18594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18596 echo $ECHO_N "(cached) $ECHO_C" >&6
18598 eval "$as_ac_Header=\$ac_header_preproc"
18600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18605 cat >>confdefs.h <<_ACEOF
18606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18619 if test "$ac_cv_emxos2" = "yes"; then
18620 # Scripts don't pass test -x on OS/2
18626 echo "$as_me:$LINENO: checking for APR" >&5
18627 echo $ECHO_N "checking for APR... $ECHO_C" >&6
18629 # Check whether --with-apr or --without-apr was given.
18630 if test "${with_apr+set}" = set; then
18631 withval="$with_apr"
18633 if test "$withval" = "no" || test "$withval" = "yes"; then
18634 { { echo "$as_me:$LINENO: error: --with-apr requires a directory to be provided" >&5
18635 echo "$as_me: error: --with-apr requires a directory to be provided" >&2;}
18636 { (exit 1); exit 1; }; }
18639 if $TEST_X "$withval/bin/apr-config"; then
18641 apr_config="$withval/bin/apr-config"
18642 elif $TEST_X "$withval/apr-config"; then
18644 apr_config="$withval/apr-config"
18645 elif $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
18647 apr_config="$withval"
18650 if test "$apr_found" != "yes"; then
18651 { { echo "$as_me:$LINENO: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
18652 build directory, or an apr-config file." >&5
18653 echo "$as_me: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
18654 build directory, or an apr-config file." >&2;}
18655 { (exit 1); exit 1; }; }
18660 if test -d ""; then
18661 apr_temp_abs_srcdir="`cd && pwd`"
18662 apr_found="reconfig"
18663 if test -n ""; then
18664 apr_config="/apr-config"
18666 apr_config="/apr-config"
18669 if test "$apr_found" = "no" && test -n "1" && test "1" = "1"; then
18670 if apr-config --help > /dev/null 2>&1 ; then
18672 apr_config="apr-config"
18674 for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
18675 if $TEST_X "$lookdir/bin/apr-config"; then
18677 apr_config="$lookdir/bin/apr-config"
18686 echo "$as_me:$LINENO: result: $apr_found" >&5
18687 echo "${ECHO_T}$apr_found" >&6
18690 # Determine Apache version and find apxs
18692 echo "$as_me:$LINENO: checking for dynamic Apache module support (via APXS)" >&5
18693 echo $ECHO_N "checking for dynamic Apache module support (via APXS)... $ECHO_C" >&6
18695 # Check whether --with-apxs or --without-apxs was given.
18696 if test "${with_apxs+set}" = set; then
18697 withval="$with_apxs"
18699 if test "$withval" = "yes"; then
18707 if test -z "$APXS"; then
18711 if test "$BINNAME" = "" -a "$APXS" = "" -a "$FAIL_STATIC" = ""; then
18712 for i in /usr/sbin /usr/local/apache/bin ; do
18713 if test -f "$i/apxs"; then
18719 if test -n "$APXS"; then
18722 APACHE_VERSION=`\`$APXS -q SBINDIR\`/\`$APXS -q TARGET\` -v \
18723 | grep "Server version" \
18727 major_version=`echo $APACHE_VERSION|cut -f1,2 -d.`
18728 if test "$major_version" = "2.0"; then
18729 APACHE_VERSION_2=true
18730 APACHE_VERSION_1_3=false
18732 APACHE_VERSION_2=false
18733 APACHE_VERSION_1_3=true
18738 APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
18739 APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
18740 if test x"${APACHE_VERSION_2}" = xtrue ; then \
18741 APXS_EXTRA_CFLAGS=`$APXS -q EXTRA_CFLAGS`
18743 if test x"${APACHE_VERSION_1_3}" = xtrue; then \
18744 APXS_EXTRA_CFLAGS=`$APXS -q CFLAGS`
18750 echo "$as_me:$LINENO: result: found at $APXS (version $APACHE_VERSION)" >&5
18751 echo "${ECHO_T}found at $APXS (version $APACHE_VERSION)" >&6
18756 echo "$as_me:$LINENO: result: no" >&5
18757 echo "${ECHO_T}no" >&6
18760 if test x"${APACHE_VERSION_2}" = xtrue ; then \
18761 if test x"${apr_found}" = xyes ; then \
18762 APR_INCLUDEDIR=`${apr_config} --includedir`
18765 { { echo "$as_me:$LINENO: error: APR is needed to build mod_suphp for Apache 2.x but was not found" >&5
18766 echo "$as_me: error: APR is needed to build mod_suphp for Apache 2.x but was not found" >&2;}
18767 { (exit 1); exit 1; }; }
18773 echo "$as_me:$LINENO: checking for set-UID/set-GID mode" >&5
18774 echo $ECHO_N "checking for set-UID/set-GID mode... $ECHO_C" >&6
18776 # Check whether --with-setid-mode or --without-setid-mode was given.
18777 if test "${with_setid_mode+set}" = set; then
18778 withval="$with_setid_mode"
18780 if test "$withval" = "yes"; then
18781 SETID_MODE="paranoid"
18783 SETID_MODE="$withval"
18788 if test -z "$SETID_MODE" ; then
18789 SETID_MODE="paranoid"
18792 if test -n "$SETID_MODE"; then
18793 case "$SETID_MODE" in
18795 OPT_APACHEMOD_USERGROUP_DEF=""
18798 cat >>confdefs.h <<\_ACEOF
18799 #define OPT_USERGROUP_OWNER 1
18804 OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
18807 cat >>confdefs.h <<\_ACEOF
18808 #define OPT_USERGROUP_FORCE 1
18813 OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
18816 cat >>confdefs.h <<\_ACEOF
18817 #define OPT_USERGROUP_PARANOID 1
18822 { { echo "$as_me:$LINENO: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&5
18823 echo "$as_me: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&2;}
18824 { (exit 1); exit 1; }; }
18827 echo "$as_me:$LINENO: result: ok - using $SETID_MODE" >&5
18828 echo "${ECHO_T}ok - using $SETID_MODE" >&6
18832 # Checkpath (docroot) option
18835 # Check whether --enable-checkpath or --disable-checkpath was given.
18836 if test "${enable_checkpath+set}" = set; then
18837 enableval="$enable_checkpath"
18839 if test "$enableval" = "no"; then
18842 cat >>confdefs.h <<\_ACEOF
18843 #define OPT_DISABLE_CHECKPATH 1
18854 # Check whether --with-min-uid or --without-min-uid was given.
18855 if test "${with_min_uid+set}" = set; then
18856 withval="$with_min_uid"
18858 if test "$withval" -a ! "$withval" = "yes" ; then
18860 cat >>confdefs.h <<_ACEOF
18861 #define OPT_MIN_UID $withval
18869 cat >>confdefs.h <<\_ACEOF
18870 #define OPT_MIN_UID 100
18879 # Check whether --with-min-gid or --without-min-gid was given.
18880 if test "${with_min_gid+set}" = set; then
18881 withval="$with_min_gid"
18883 if test "$withval" -a ! "$withval" = "yes" ; then
18885 cat >>confdefs.h <<_ACEOF
18886 #define OPT_MIN_GID $withval
18894 cat >>confdefs.h <<\_ACEOF
18895 #define OPT_MIN_GID 100
18905 # Check whether --with-apache-user or --without-apache-user was given.
18906 if test "${with_apache_user+set}" = set; then
18907 withval="$with_apache_user"
18909 if test "$withval" -a ! "$withval" = "yes" ; then
18911 cat >>confdefs.h <<_ACEOF
18912 #define OPT_APACHE_USER "$withval"
18920 cat >>confdefs.h <<_ACEOF
18921 #define OPT_APACHE_USER "wwwrun"
18930 # Check whether --with-logfile or --without-logfile was given.
18931 if test "${with_logfile+set}" = set; then
18932 withval="$with_logfile"
18934 if test "$withval" -a ! "$withval" = "yes" ; then
18936 cat >>confdefs.h <<_ACEOF
18937 #define OPT_LOGFILE "$withval"
18945 cat >>confdefs.h <<_ACEOF
18946 #define OPT_LOGFILE "/var/log/httpd/suphp_log"
18953 # Conditional building of Apache module
18956 if test x"$APACHE_VERSION_1_3" = xtrue; then
18958 COND_AP13_FALSE='#'
18965 if test x"$APACHE_VERSION_2" = xtrue; then
18967 COND_AP20_FALSE='#'
18973 # Conditionally include UserGroup support
18976 if test \( x"$SETID_MODE" = xparanoid \) -o \( x"$SETID_MODE" = xforce \) ; then
18977 COND_APUSERGROUP_TRUE=
18978 COND_APUSERGROUP_FALSE='#'
18980 COND_APUSERGROUP_TRUE='#'
18981 COND_APUSERGROUP_FALSE=
18984 ac_config_files="$ac_config_files Makefile src/Makefile src/apache/Makefile src/apache2/Makefile"
18986 cat >confcache <<\_ACEOF
18987 # This file is a shell script that caches the results of configure
18988 # tests run on this system so they can be shared between configure
18989 # scripts and configure runs, see configure's option --config-cache.
18990 # It is not useful on other systems. If it contains results you don't
18991 # want to keep, you may remove or edit it.
18993 # config.status only pays attention to the cache file if you give it
18994 # the --recheck option to rerun configure.
18996 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18997 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18998 # following values.
19002 # The following way of writing the cache mishandles newlines in values,
19003 # but we know of no workaround that is simple, portable, and efficient.
19004 # So, don't put newlines in cache variables' values.
19005 # Ultrix sh set writes to stderr and can't be redirected directly,
19006 # and sets the high bit in the cache file unless we assign to the vars.
19009 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19011 # `set' does not quote correctly, so add quotes (double-quote
19012 # substitution turns \\\\ into \\, and sed turns \\ into \).
19015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19018 # `set' quotes correctly as required by POSIX, so do not add quotes.
19020 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19027 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19029 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19031 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19032 if test -w $cache_file; then
19033 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19034 cat confcache >$cache_file
19036 echo "not updating unwritable cache $cache_file"
19041 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19042 # Let make expand exec_prefix.
19043 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19045 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19046 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19047 # trailing colons and then remove the whole line if VPATH becomes empty
19048 # (actually we leave an empty line to preserve line numbers).
19049 if test "x$srcdir" = x.; then
19050 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19051 s/:*\$(srcdir):*/:/;
19052 s/:*\${srcdir}:*/:/;
19054 s/^\([^=]*=[ ]*\):*/\1/;
19060 DEFS=-DHAVE_CONFIG_H
19064 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19065 # 1. Remove the extension, and $U if already installed.
19066 ac_i=`echo "$ac_i" |
19067 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19069 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19070 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19072 LIBOBJS=$ac_libobjs
19074 LTLIBOBJS=$ac_ltlibobjs
19078 : ${CONFIG_STATUS=./config.status}
19079 ac_clean_files_save=$ac_clean_files
19080 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19081 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19082 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19083 cat >$CONFIG_STATUS <<_ACEOF
19085 # Generated by $as_me.
19086 # Run this file to recreate the current configuration.
19087 # Compiler output produced by configure, useful for debugging
19088 # configure, is in config.log if it exists.
19091 ac_cs_recheck=false
19093 SHELL=\${CONFIG_SHELL-$SHELL}
19096 cat >>$CONFIG_STATUS <<\_ACEOF
19097 ## --------------------- ##
19098 ## M4sh Initialization. ##
19099 ## --------------------- ##
19101 # Be Bourne compatible
19102 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19105 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19106 # is contrary to our usage. Disable this feature.
19107 alias -g '${1+"$@"}'='"$@"'
19108 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19111 DUALCASE=1; export DUALCASE # for MKS sh
19113 # Support unset when possible.
19114 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19121 # Work around bugs in pre-3.0 UWIN ksh.
19122 $as_unset ENV MAIL MAILPATH
19129 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19130 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19131 LC_TELEPHONE LC_TIME
19133 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19134 eval $as_var=C; export $as_var
19140 # Required to use basename.
19141 if expr a : '\(a\)' >/dev/null 2>&1; then
19147 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19148 as_basename=basename
19154 # Name of the executable.
19155 as_me=`$as_basename "$0" ||
19156 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19157 X"$0" : 'X\(//\)$' \| \
19158 X"$0" : 'X\(/\)$' \| \
19159 . : '\(.\)' 2>/dev/null ||
19161 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19162 /^X\/\(\/\/\)$/{ s//\1/; q; }
19163 /^X\/\(\/\).*/{ s//\1/; q; }
19167 # PATH needs CR, and LINENO needs CR and PATH.
19168 # Avoid depending upon Character Ranges.
19169 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19170 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19171 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19172 as_cr_digits='0123456789'
19173 as_cr_alnum=$as_cr_Letters$as_cr_digits
19175 # The user is always right.
19176 if test "${PATH_SEPARATOR+set}" != set; then
19177 echo "#! /bin/sh" >conf$$.sh
19178 echo "exit 0" >>conf$$.sh
19180 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19189 as_lineno_1=$LINENO
19190 as_lineno_2=$LINENO
19191 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19192 test "x$as_lineno_1" != "x$as_lineno_2" &&
19193 test "x$as_lineno_3" = "x$as_lineno_2" || {
19194 # Find who we are. Look in the path if we contain no path at all
19197 *[\\/]* ) as_myself=$0 ;;
19198 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19199 for as_dir in $PATH
19202 test -z "$as_dir" && as_dir=.
19203 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19208 # We did not find ourselves, most probably we were run as `sh COMMAND'
19209 # in which case we are not to be found in the path.
19210 if test "x$as_myself" = x; then
19213 if test ! -f "$as_myself"; then
19214 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19215 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19216 { (exit 1); exit 1; }; }
19218 case $CONFIG_SHELL in
19220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19224 test -z "$as_dir" && as_dir=.
19225 for as_base in sh bash ksh sh5; do
19228 if ("$as_dir/$as_base" -c '
19229 as_lineno_1=$LINENO
19230 as_lineno_2=$LINENO
19231 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19232 test "x$as_lineno_1" != "x$as_lineno_2" &&
19233 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19234 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19235 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19236 CONFIG_SHELL=$as_dir/$as_base
19237 export CONFIG_SHELL
19238 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19246 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19247 # uniformly replaced by the line number. The first 'sed' inserts a
19248 # line-number line before each line; the second 'sed' does the real
19249 # work. The second script uses 'N' to pair each line-number line
19250 # with the numbered line, and appends trailing '-' during
19251 # substitution so that $LINENO is not a special case at line end.
19252 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19253 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19254 sed '=' <$as_myself |
19259 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19262 s,^['$as_cr_digits']*\n,,
19263 ' >$as_me.lineno &&
19264 chmod +x $as_me.lineno ||
19265 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19266 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19267 { (exit 1); exit 1; }; }
19269 # Don't try to exec as it changes $[0], causing all sort of problems
19270 # (the dirname of $[0] is not the place where we might find the
19271 # original and so on. Autoconf is especially sensible to this).
19273 # Exit status is that of the last command.
19278 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19279 *c*,-n*) ECHO_N= ECHO_C='
19281 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19282 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19285 if expr a : '\(a\)' >/dev/null 2>&1; then
19291 rm -f conf$$ conf$$.exe conf$$.file
19293 if ln -s conf$$.file conf$$ 2>/dev/null; then
19294 # We could just check for DJGPP; but this test a) works b) is more generic
19295 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19296 if test -f conf$$.exe; then
19297 # Don't use ln at all; we don't have any links
19302 elif ln conf$$.file conf$$ 2>/dev/null; then
19307 rm -f conf$$ conf$$.exe conf$$.file
19309 if mkdir -p . 2>/dev/null; then
19312 test -d ./-p && rmdir ./-p
19316 as_executable_p="test -f"
19318 # Sed expression to map a string onto a valid CPP name.
19319 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19321 # Sed expression to map a string onto a valid variable name.
19322 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19326 # We need space, tab and new line, in precisely that order.
19336 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19337 # report actual input values of CONFIG_FILES etc. instead of their
19338 # values after options handling. Logging --version etc. is OK.
19342 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19343 ## Running $as_me. ##
19348 This file was extended by suPHP $as_me 0.6.1, which was
19349 generated by GNU Autoconf 2.59. Invocation command line was
19351 CONFIG_FILES = $CONFIG_FILES
19352 CONFIG_HEADERS = $CONFIG_HEADERS
19353 CONFIG_LINKS = $CONFIG_LINKS
19354 CONFIG_COMMANDS = $CONFIG_COMMANDS
19358 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19362 # Files that config.status was made for.
19363 if test -n "$ac_config_files"; then
19364 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19367 if test -n "$ac_config_headers"; then
19368 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19371 if test -n "$ac_config_links"; then
19372 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19375 if test -n "$ac_config_commands"; then
19376 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19379 cat >>$CONFIG_STATUS <<\_ACEOF
19382 \`$as_me' instantiates files from templates according to the
19383 current configuration.
19385 Usage: $0 [OPTIONS] [FILE]...
19387 -h, --help print this help, then exit
19388 -V, --version print version number, then exit
19389 -q, --quiet do not print progress messages
19390 -d, --debug don't remove temporary files
19391 --recheck update $as_me by reconfiguring in the same conditions
19392 --file=FILE[:TEMPLATE]
19393 instantiate the configuration file FILE
19394 --header=FILE[:TEMPLATE]
19395 instantiate the configuration header FILE
19397 Configuration files:
19400 Configuration headers:
19403 Configuration commands:
19406 Report bugs to <bug-autoconf@gnu.org>."
19409 cat >>$CONFIG_STATUS <<_ACEOF
19411 suPHP config.status 0.6.1
19412 configured by $0, generated by GNU Autoconf 2.59,
19413 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19415 Copyright (C) 2003 Free Software Foundation, Inc.
19416 This config.status script is free software; the Free Software Foundation
19417 gives unlimited permission to copy, distribute and modify it."
19422 cat >>$CONFIG_STATUS <<\_ACEOF
19423 # If no file are specified by the user, then we need to provide default
19424 # value. By we need to know if files were specified by the user.
19430 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19431 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19439 *) # This is not an option, so the user has probably given explicit
19442 ac_need_defaults=false;;
19446 # Handling of the options.
19448 cat >>$CONFIG_STATUS <<\_ACEOF
19449 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19451 --version | --vers* | -V )
19452 echo "$ac_cs_version"; exit 0 ;;
19454 # Conflict between --help and --header
19455 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19456 Try \`$0 --help' for more information." >&5
19457 echo "$as_me: error: ambiguous option: $1
19458 Try \`$0 --help' for more information." >&2;}
19459 { (exit 1); exit 1; }; };;
19460 --help | --hel | -h )
19461 echo "$ac_cs_usage"; exit 0 ;;
19462 --debug | --d* | -d )
19464 --file | --fil | --fi | --f )
19466 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19467 ac_need_defaults=false;;
19468 --header | --heade | --head | --hea )
19470 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19471 ac_need_defaults=false;;
19472 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19473 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19476 # This is an error.
19477 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19478 Try \`$0 --help' for more information." >&5
19479 echo "$as_me: error: unrecognized option: $1
19480 Try \`$0 --help' for more information." >&2;}
19481 { (exit 1); exit 1; }; } ;;
19483 *) ac_config_targets="$ac_config_targets $1" ;;
19489 ac_configure_extra_args=
19491 if $ac_cs_silent; then
19493 ac_configure_extra_args="$ac_configure_extra_args --silent"
19497 cat >>$CONFIG_STATUS <<_ACEOF
19498 if \$ac_cs_recheck; then
19499 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19500 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19505 cat >>$CONFIG_STATUS <<_ACEOF
19507 # INIT-COMMANDS section.
19516 cat >>$CONFIG_STATUS <<\_ACEOF
19517 for ac_config_target in $ac_config_targets
19519 case "$ac_config_target" in
19520 # Handling of arguments.
19521 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19522 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19523 "src/apache/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/apache/Makefile" ;;
19524 "src/apache2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/apache2/Makefile" ;;
19525 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19526 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19527 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19528 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19529 { (exit 1); exit 1; }; };;
19533 # If the user did not use the arguments to specify the items to instantiate,
19534 # then the envvar interface is used. Set only those that are not.
19535 # We use the long form for the default assignment because of an extremely
19536 # bizarre bug on SunOS 4.1.3.
19537 if $ac_need_defaults; then
19538 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19539 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19540 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19543 # Have a temporary directory for convenience. Make it in the build tree
19544 # simply because there is no reason to put it here, and in addition,
19545 # creating and moving files from /tmp can sometimes cause problems.
19546 # Create a temporary directory, and hook for its removal unless debugging.
19549 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19550 trap '{ (exit 1); exit 1; }' 1 2 13 15
19553 # Create a (secure) tmp directory for tmp files.
19556 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19557 test -n "$tmp" && test -d "$tmp"
19560 tmp=./confstat$$-$RANDOM
19561 (umask 077 && mkdir $tmp)
19564 echo "$me: cannot create a temporary directory in ." >&2
19565 { (exit 1); exit 1; }
19570 cat >>$CONFIG_STATUS <<_ACEOF
19573 # CONFIG_FILES section.
19576 # No need to generate the scripts if there are no CONFIG_FILES.
19577 # This happens for instance when ./config.status config.h
19578 if test -n "\$CONFIG_FILES"; then
19579 # Protect against being on the right side of a sed subst in config.status.
19580 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19581 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19582 s,@SHELL@,$SHELL,;t t
19583 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19584 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19585 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19586 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19587 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19588 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19589 s,@exec_prefix@,$exec_prefix,;t t
19590 s,@prefix@,$prefix,;t t
19591 s,@program_transform_name@,$program_transform_name,;t t
19592 s,@bindir@,$bindir,;t t
19593 s,@sbindir@,$sbindir,;t t
19594 s,@libexecdir@,$libexecdir,;t t
19595 s,@datadir@,$datadir,;t t
19596 s,@sysconfdir@,$sysconfdir,;t t
19597 s,@sharedstatedir@,$sharedstatedir,;t t
19598 s,@localstatedir@,$localstatedir,;t t
19599 s,@libdir@,$libdir,;t t
19600 s,@includedir@,$includedir,;t t
19601 s,@oldincludedir@,$oldincludedir,;t t
19602 s,@infodir@,$infodir,;t t
19603 s,@mandir@,$mandir,;t t
19604 s,@build_alias@,$build_alias,;t t
19605 s,@host_alias@,$host_alias,;t t
19606 s,@target_alias@,$target_alias,;t t
19607 s,@DEFS@,$DEFS,;t t
19608 s,@ECHO_C@,$ECHO_C,;t t
19609 s,@ECHO_N@,$ECHO_N,;t t
19610 s,@ECHO_T@,$ECHO_T,;t t
19611 s,@LIBS@,$LIBS,;t t
19612 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19613 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19614 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19615 s,@PACKAGE@,$PACKAGE,;t t
19616 s,@VERSION@,$VERSION,;t t
19617 s,@ACLOCAL@,$ACLOCAL,;t t
19618 s,@AUTOCONF@,$AUTOCONF,;t t
19619 s,@AUTOMAKE@,$AUTOMAKE,;t t
19620 s,@AUTOHEADER@,$AUTOHEADER,;t t
19621 s,@MAKEINFO@,$MAKEINFO,;t t
19622 s,@SET_MAKE@,$SET_MAKE,;t t
19624 s,@CFLAGS@,$CFLAGS,;t t
19625 s,@LDFLAGS@,$LDFLAGS,;t t
19626 s,@CPPFLAGS@,$CPPFLAGS,;t t
19627 s,@ac_ct_CC@,$ac_ct_CC,;t t
19628 s,@EXEEXT@,$EXEEXT,;t t
19629 s,@OBJEXT@,$OBJEXT,;t t
19631 s,@CXXFLAGS@,$CXXFLAGS,;t t
19632 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19633 s,@build@,$build,;t t
19634 s,@build_cpu@,$build_cpu,;t t
19635 s,@build_vendor@,$build_vendor,;t t
19636 s,@build_os@,$build_os,;t t
19637 s,@host@,$host,;t t
19638 s,@host_cpu@,$host_cpu,;t t
19639 s,@host_vendor@,$host_vendor,;t t
19640 s,@host_os@,$host_os,;t t
19641 s,@EGREP@,$EGREP,;t t
19642 s,@LN_S@,$LN_S,;t t
19643 s,@ECHO@,$ECHO,;t t
19645 s,@ac_ct_AR@,$ac_ct_AR,;t t
19646 s,@RANLIB@,$RANLIB,;t t
19647 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19648 s,@STRIP@,$STRIP,;t t
19649 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19651 s,@CXXCPP@,$CXXCPP,;t t
19653 s,@FFLAGS@,$FFLAGS,;t t
19654 s,@ac_ct_F77@,$ac_ct_F77,;t t
19655 s,@LIBTOOL@,$LIBTOOL,;t t
19656 s,@APXS@,$APXS,;t t
19657 s,@APACHE_VERSION_1_3@,$APACHE_VERSION_1_3,;t t
19658 s,@APACHE_VERSION_2@,$APACHE_VERSION_2,;t t
19659 s,@APXS_INCLUDEDIR@,$APXS_INCLUDEDIR,;t t
19660 s,@APXS_LIBEXECDIR@,$APXS_LIBEXECDIR,;t t
19661 s,@APXS_EXTRA_CFLAGS@,$APXS_EXTRA_CFLAGS,;t t
19662 s,@APR_INCLUDEDIR@,$APR_INCLUDEDIR,;t t
19663 s,@OPT_APACHEMOD_USERGROUP_DEF@,$OPT_APACHEMOD_USERGROUP_DEF,;t t
19664 s,@COND_AP13_TRUE@,$COND_AP13_TRUE,;t t
19665 s,@COND_AP13_FALSE@,$COND_AP13_FALSE,;t t
19666 s,@COND_AP20_TRUE@,$COND_AP20_TRUE,;t t
19667 s,@COND_AP20_FALSE@,$COND_AP20_FALSE,;t t
19668 s,@COND_APUSERGROUP_TRUE@,$COND_APUSERGROUP_TRUE,;t t
19669 s,@COND_APUSERGROUP_FALSE@,$COND_APUSERGROUP_FALSE,;t t
19670 s,@LIBOBJS@,$LIBOBJS,;t t
19671 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19676 cat >>$CONFIG_STATUS <<\_ACEOF
19677 # Split the substitutions into bite-sized pieces for seds with
19678 # small command number limits, like on Digital OSF/1 and HP-UX.
19679 ac_max_sed_lines=48
19680 ac_sed_frag=1 # Number of current file.
19681 ac_beg=1 # First line for current file.
19682 ac_end=$ac_max_sed_lines # Line after last line for current file.
19685 while $ac_more_lines; do
19686 if test $ac_beg -gt 1; then
19687 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19689 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19691 if test ! -s $tmp/subs.frag; then
19692 ac_more_lines=false
19694 # The purpose of the label and of the branching condition is to
19695 # speed up the sed processing (if there are no `@' at all, there
19696 # is no need to browse any of the substitutions).
19697 # These are the two extra sed commands mentioned above.
19699 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19700 if test -z "$ac_sed_cmds"; then
19701 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19703 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19705 ac_sed_frag=`expr $ac_sed_frag + 1`
19707 ac_end=`expr $ac_end + $ac_max_sed_lines`
19710 if test -z "$ac_sed_cmds"; then
19713 fi # test -n "$CONFIG_FILES"
19716 cat >>$CONFIG_STATUS <<\_ACEOF
19717 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19718 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19720 - | *:- | *:-:* ) # input from stdin
19722 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19723 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19724 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19725 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19726 * ) ac_file_in=$ac_file.in ;;
19729 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19730 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19731 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19732 X"$ac_file" : 'X\(//\)[^/]' \| \
19733 X"$ac_file" : 'X\(//\)$' \| \
19734 X"$ac_file" : 'X\(/\)' \| \
19735 . : '\(.\)' 2>/dev/null ||
19737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19738 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19739 /^X\(\/\/\)$/{ s//\1/; q; }
19740 /^X\(\/\).*/{ s//\1/; q; }
19742 { if $as_mkdir_p; then
19747 while test ! -d "$as_dir"; do
19748 as_dirs="$as_dir $as_dirs"
19749 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19750 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19751 X"$as_dir" : 'X\(//\)[^/]' \| \
19752 X"$as_dir" : 'X\(//\)$' \| \
19753 X"$as_dir" : 'X\(/\)' \| \
19754 . : '\(.\)' 2>/dev/null ||
19756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19757 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19758 /^X\(\/\/\)$/{ s//\1/; q; }
19759 /^X\(\/\).*/{ s//\1/; q; }
19762 test ! -n "$as_dirs" || mkdir $as_dirs
19763 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19764 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19765 { (exit 1); exit 1; }; }; }
19769 if test "$ac_dir" != .; then
19770 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19771 # A "../" for each directory in $ac_dir_suffix.
19772 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19774 ac_dir_suffix= ac_top_builddir=
19778 .) # No --srcdir option. We are building in place.
19780 if test -z "$ac_top_builddir"; then
19783 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19785 [\\/]* | ?:[\\/]* ) # Absolute path.
19786 ac_srcdir=$srcdir$ac_dir_suffix;
19787 ac_top_srcdir=$srcdir ;;
19788 *) # Relative path.
19789 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19790 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19793 # Do not use `cd foo && pwd` to compute absolute paths, because
19794 # the directories may not exist.
19796 .) ac_abs_builddir="$ac_dir";;
19799 .) ac_abs_builddir=`pwd`;;
19800 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19801 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19804 case $ac_abs_builddir in
19805 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19807 case ${ac_top_builddir}. in
19808 .) ac_abs_top_builddir=$ac_abs_builddir;;
19809 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19810 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19813 case $ac_abs_builddir in
19814 .) ac_abs_srcdir=$ac_srcdir;;
19817 .) ac_abs_srcdir=$ac_abs_builddir;;
19818 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19819 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19822 case $ac_abs_builddir in
19823 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19825 case $ac_top_srcdir in
19826 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19827 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19828 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19834 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19835 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19838 # Let's still pretend it is `configure' which instantiates (i.e., don't
19839 # use $as_me), people would be surprised to read:
19840 # /* config.h. Generated by config.status. */
19841 if test x"$ac_file" = x-; then
19844 configure_input="$ac_file. "
19846 configure_input=$configure_input"Generated from `echo $ac_file_in |
19847 sed 's,.*/,,'` by configure."
19849 # First look for the input files in the build tree, otherwise in the
19851 ac_file_inputs=`IFS=:
19852 for f in $ac_file_in; do
19854 -) echo $tmp/stdin ;;
19856 # Absolute (can't be DOS-style, as IFS=:)
19857 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19858 echo "$as_me: error: cannot find input file: $f" >&2;}
19859 { (exit 1); exit 1; }; }
19862 if test -f "$f"; then
19865 elif test -f "$srcdir/$f"; then
19870 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19871 echo "$as_me: error: cannot find input file: $f" >&2;}
19872 { (exit 1); exit 1; }; }
19875 done` || { (exit 1); exit 1; }
19877 if test x"$ac_file" != x-; then
19878 { echo "$as_me:$LINENO: creating $ac_file" >&5
19879 echo "$as_me: creating $ac_file" >&6;}
19883 cat >>$CONFIG_STATUS <<_ACEOF
19887 cat >>$CONFIG_STATUS <<\_ACEOF
19889 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19890 s,@configure_input@,$configure_input,;t t
19891 s,@srcdir@,$ac_srcdir,;t t
19892 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19893 s,@top_srcdir@,$ac_top_srcdir,;t t
19894 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19895 s,@builddir@,$ac_builddir,;t t
19896 s,@abs_builddir@,$ac_abs_builddir,;t t
19897 s,@top_builddir@,$ac_top_builddir,;t t
19898 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19899 s,@INSTALL@,$ac_INSTALL,;t t
19900 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19902 if test x"$ac_file" != x-; then
19903 mv $tmp/out $ac_file
19911 cat >>$CONFIG_STATUS <<\_ACEOF
19914 # CONFIG_HEADER section.
19917 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19918 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19920 # ac_d sets the value in "#define NAME VALUE" lines.
19921 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19922 ac_dB='[ ].*$,\1#\2'
19925 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19926 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19927 ac_uB='$,\1#\2define\3'
19931 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19932 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19934 - | *:- | *:-:* ) # input from stdin
19936 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19937 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19938 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19939 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19940 * ) ac_file_in=$ac_file.in ;;
19943 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19944 echo "$as_me: creating $ac_file" >&6;}
19946 # First look for the input files in the build tree, otherwise in the
19948 ac_file_inputs=`IFS=:
19949 for f in $ac_file_in; do
19951 -) echo $tmp/stdin ;;
19953 # Absolute (can't be DOS-style, as IFS=:)
19954 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19955 echo "$as_me: error: cannot find input file: $f" >&2;}
19956 { (exit 1); exit 1; }; }
19957 # Do quote $f, to prevent DOS paths from being IFS'd.
19960 if test -f "$f"; then
19963 elif test -f "$srcdir/$f"; then
19968 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19969 echo "$as_me: error: cannot find input file: $f" >&2;}
19970 { (exit 1); exit 1; }; }
19973 done` || { (exit 1); exit 1; }
19974 # Remove the trailing spaces.
19975 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19979 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19980 # `conftest.undefs', that substitutes the proper values into
19981 # config.h.in to produce config.h. The first handles `#define'
19982 # templates, and the second `#undef' templates.
19983 # And first: Protect against being on the right side of a sed subst in
19984 # config.status. Protect against being in an unquoted here document
19985 # in config.status.
19986 rm -f conftest.defines conftest.undefs
19987 # Using a here document instead of a string reduces the quoting nightmare.
19988 # Putting comments in sed scripts is not portable.
19990 # `end' is used to avoid that the second main sed command (meant for
19991 # 0-ary CPP macros) applies to n-ary macro definitions.
19992 # See the Autoconf documentation for `clear'.
19993 cat >confdef2sed.sed <<\_ACEOF
19998 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20000 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20003 # If some macros were called several times there might be several times
20004 # the same #defines, which is useless. Nevertheless, we may not want to
20005 # sort them, since we want the *last* AC-DEFINE to be honored.
20006 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20007 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20008 rm -f confdef2sed.sed
20010 # This sed command replaces #undef with comments. This is necessary, for
20011 # example, in the case of _POSIX_SOURCE, which is predefined and required
20012 # on some systems where configure will not decide to define it.
20013 cat >>conftest.undefs <<\_ACEOF
20014 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20017 # Break up conftest.defines because some shells have a limit on the size
20018 # of here documents, and old seds have small limits too (100 cmds).
20019 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20020 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20021 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20022 echo ' :' >>$CONFIG_STATUS
20023 rm -f conftest.tail
20024 while grep . conftest.defines >/dev/null
20026 # Write a limited-size here document to $tmp/defines.sed.
20027 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20028 # Speed up: don't consider the non `#define' lines.
20029 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20030 # Work around the forget-to-reset-the-flag bug.
20031 echo 't clr' >>$CONFIG_STATUS
20032 echo ': clr' >>$CONFIG_STATUS
20033 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20035 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20037 mv $tmp/out $tmp/in
20039 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20040 rm -f conftest.defines
20041 mv conftest.tail conftest.defines
20043 rm -f conftest.defines
20044 echo ' fi # grep' >>$CONFIG_STATUS
20045 echo >>$CONFIG_STATUS
20047 # Break up conftest.undefs because some shells have a limit on the size
20048 # of here documents, and old seds have small limits too (100 cmds).
20049 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20050 rm -f conftest.tail
20051 while grep . conftest.undefs >/dev/null
20053 # Write a limited-size here document to $tmp/undefs.sed.
20054 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20055 # Speed up: don't consider the non `#undef'
20056 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20057 # Work around the forget-to-reset-the-flag bug.
20058 echo 't clr' >>$CONFIG_STATUS
20059 echo ': clr' >>$CONFIG_STATUS
20060 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20062 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20064 mv $tmp/out $tmp/in
20066 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20067 rm -f conftest.undefs
20068 mv conftest.tail conftest.undefs
20070 rm -f conftest.undefs
20072 cat >>$CONFIG_STATUS <<\_ACEOF
20073 # Let's still pretend it is `configure' which instantiates (i.e., don't
20074 # use $as_me), people would be surprised to read:
20075 # /* config.h. Generated by config.status. */
20076 if test x"$ac_file" = x-; then
20077 echo "/* Generated by configure. */" >$tmp/config.h
20079 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20081 cat $tmp/in >>$tmp/config.h
20083 if test x"$ac_file" != x-; then
20084 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20085 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20086 echo "$as_me: $ac_file is unchanged" >&6;}
20088 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20089 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20090 X"$ac_file" : 'X\(//\)[^/]' \| \
20091 X"$ac_file" : 'X\(//\)$' \| \
20092 X"$ac_file" : 'X\(/\)' \| \
20093 . : '\(.\)' 2>/dev/null ||
20095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20096 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20097 /^X\(\/\/\)$/{ s//\1/; q; }
20098 /^X\(\/\).*/{ s//\1/; q; }
20100 { if $as_mkdir_p; then
20105 while test ! -d "$as_dir"; do
20106 as_dirs="$as_dir $as_dirs"
20107 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20108 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20109 X"$as_dir" : 'X\(//\)[^/]' \| \
20110 X"$as_dir" : 'X\(//\)$' \| \
20111 X"$as_dir" : 'X\(/\)' \| \
20112 . : '\(.\)' 2>/dev/null ||
20114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20115 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20116 /^X\(\/\/\)$/{ s//\1/; q; }
20117 /^X\(\/\).*/{ s//\1/; q; }
20120 test ! -n "$as_dirs" || mkdir $as_dirs
20121 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20122 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20123 { (exit 1); exit 1; }; }; }
20126 mv $tmp/config.h $ac_file
20130 rm -f $tmp/config.h
20134 cat >>$CONFIG_STATUS <<\_ACEOF
20137 # CONFIG_COMMANDS section.
20139 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20140 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20141 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20142 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20143 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20144 X"$ac_dest" : 'X\(//\)[^/]' \| \
20145 X"$ac_dest" : 'X\(//\)$' \| \
20146 X"$ac_dest" : 'X\(/\)' \| \
20147 . : '\(.\)' 2>/dev/null ||
20149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20150 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20151 /^X\(\/\/\)$/{ s//\1/; q; }
20152 /^X\(\/\).*/{ s//\1/; q; }
20154 { if $as_mkdir_p; then
20159 while test ! -d "$as_dir"; do
20160 as_dirs="$as_dir $as_dirs"
20161 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20163 X"$as_dir" : 'X\(//\)[^/]' \| \
20164 X"$as_dir" : 'X\(//\)$' \| \
20165 X"$as_dir" : 'X\(/\)' \| \
20166 . : '\(.\)' 2>/dev/null ||
20168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20170 /^X\(\/\/\)$/{ s//\1/; q; }
20171 /^X\(\/\).*/{ s//\1/; q; }
20174 test ! -n "$as_dirs" || mkdir $as_dirs
20175 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20176 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20177 { (exit 1); exit 1; }; }; }
20181 if test "$ac_dir" != .; then
20182 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20183 # A "../" for each directory in $ac_dir_suffix.
20184 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20186 ac_dir_suffix= ac_top_builddir=
20190 .) # No --srcdir option. We are building in place.
20192 if test -z "$ac_top_builddir"; then
20195 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20197 [\\/]* | ?:[\\/]* ) # Absolute path.
20198 ac_srcdir=$srcdir$ac_dir_suffix;
20199 ac_top_srcdir=$srcdir ;;
20200 *) # Relative path.
20201 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20202 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20205 # Do not use `cd foo && pwd` to compute absolute paths, because
20206 # the directories may not exist.
20208 .) ac_abs_builddir="$ac_dir";;
20211 .) ac_abs_builddir=`pwd`;;
20212 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20213 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20216 case $ac_abs_builddir in
20217 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20219 case ${ac_top_builddir}. in
20220 .) ac_abs_top_builddir=$ac_abs_builddir;;
20221 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20222 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20225 case $ac_abs_builddir in
20226 .) ac_abs_srcdir=$ac_srcdir;;
20229 .) ac_abs_srcdir=$ac_abs_builddir;;
20230 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20231 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20234 case $ac_abs_builddir in
20235 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20237 case $ac_top_srcdir in
20238 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20239 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20240 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20245 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20246 echo "$as_me: executing $ac_dest commands" >&6;}
20248 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h ;;
20253 cat >>$CONFIG_STATUS <<\_ACEOF
20255 { (exit 0); exit 0; }
20257 chmod +x $CONFIG_STATUS
20258 ac_clean_files=$ac_clean_files_save
20261 # configure is writing to config.log, and then calls config.status.
20262 # config.status does its own redirection, appending to config.log.
20263 # Unfortunately, on DOS this fails, as config.log is still kept open
20264 # by configure, so config.status won't be able to write to it; its
20265 # output is simply discarded. So we exec the FD to /dev/null,
20266 # effectively closing config.log, so it can be properly (re)opened and
20267 # appended to by config.status. When coming back to configure, we
20268 # need to make the FD available again.
20269 if test "$no_create" != yes; then
20271 ac_config_status_args=
20272 test "$silent" = yes &&
20273 ac_config_status_args="$ac_config_status_args --quiet"
20275 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20277 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20278 # would make configure fail if this is the last instruction.
20279 $ac_cs_success || { (exit 1); exit 1; }
20283 if test "$APXS" = "/notfound/"; then
20284 { echo "$as_me:$LINENO: WARNING:
20285 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
20286 !!*** APXS was not found, so mod_suphp will not be built! ***!!
20287 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
20289 echo "$as_me: WARNING:
20290 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
20291 !!*** APXS was not found, so mod_suphp will not be built! ***!!
20292 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!