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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE 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 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 --disable-dependency-tracking speeds up one-time build
1031 --enable-dependency-tracking do not reject slow dependency extractors
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1039 --enable-checkpath Check if script resides in DOCUMENT_ROOT (default is
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1049 include additional configurations [automatic]
1050 --with-apr=DIR|FILE prefix for installed APR, path to APR build tree,
1051 or the full path to apr-config
1052 --with-apxs=FILE Build shared Apache module. FILE is the optional
1053 pathname to the Apache apxs tool; defaults to
1055 --with-setid-mode=MODE Mode to use for setting UID/GID. MODE can be on of
1056 "owner", "config" or "paranoid"; defaults to
1058 --with-min-uid=UID Minimum UID, which is allowed to run scripts
1060 --with-min-gid=GID Minimum GID, which is allowed to run scripts
1062 --with-apache-user=USERNAME
1063 Name of the user Apache is running as (default is
1065 --with-logfile=FILE Path to suPHP logfile (default is
1066 "/var/log/httpd/suphp_log"
1068 Some influential environment variables:
1069 CC C compiler command
1070 CFLAGS C compiler flags
1071 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1072 nonstandard directory <lib dir>
1073 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074 headers in a nonstandard directory <include dir>
1075 CXX C++ compiler command
1076 CXXFLAGS C++ compiler flags
1078 CXXCPP C++ preprocessor
1079 F77 Fortran 77 compiler command
1080 FFLAGS Fortran 77 compiler flags
1082 Use these variables to override the choices made by `configure' or to help
1083 it to find libraries and programs with nonstandard names/locations.
1085 Report bugs to <sebastian.marsching@suphp.org>.
1089 if test "$ac_init_help" = "recursive"; then
1090 # If there are subdirs, report their specific --help.
1092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093 test -d $ac_dir || continue
1096 if test "$ac_dir" != .; then
1097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098 # A "../" for each directory in $ac_dir_suffix.
1099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1101 ac_dir_suffix= ac_top_builddir=
1105 .) # No --srcdir option. We are building in place.
1107 if test -z "$ac_top_builddir"; then
1110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1112 [\\/]* | ?:[\\/]* ) # Absolute path.
1113 ac_srcdir=$srcdir$ac_dir_suffix;
1114 ac_top_srcdir=$srcdir ;;
1116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1120 # Do not use `cd foo && pwd` to compute absolute paths, because
1121 # the directories may not exist.
1123 .) ac_abs_builddir="$ac_dir";;
1126 .) ac_abs_builddir=`pwd`;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1134 case ${ac_top_builddir}. in
1135 .) ac_abs_top_builddir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1140 case $ac_abs_builddir in
1141 .) ac_abs_srcdir=$ac_srcdir;;
1144 .) ac_abs_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1152 case $ac_top_srcdir in
1153 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1160 # Check for guested configure; otherwise get Cygnus style configure.
1161 if test -f $ac_srcdir/configure.gnu; then
1163 $SHELL $ac_srcdir/configure.gnu --help=recursive
1164 elif test -f $ac_srcdir/configure; then
1166 $SHELL $ac_srcdir/configure --help=recursive
1167 elif test -f $ac_srcdir/configure.ac ||
1168 test -f $ac_srcdir/configure.in; then
1170 $ac_configure --help
1172 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1178 test -n "$ac_init_help" && exit 0
1179 if $ac_init_version; then
1181 suPHP configure 0.6.1
1182 generated by GNU Autoconf 2.59
1184 Copyright (C) 2003 Free Software Foundation, Inc.
1185 This configure script is free software; the Free Software Foundation
1186 gives unlimited permission to copy, distribute and modify it.
1192 This file contains any messages produced by compilers while
1193 running configure, to aid debugging if configure makes a mistake.
1195 It was created by suPHP $as_me 0.6.1, which was
1196 generated by GNU Autoconf 2.59. Invocation command line was
1207 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1213 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1216 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1217 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1220 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1221 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1222 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1230 test -z "$as_dir" && as_dir=.
1231 echo "PATH: $as_dir"
1246 # Keep a trace of the command line.
1247 # Strip out --no-create and --no-recursion so they do not pile up.
1248 # Strip out --silent because we don't want to record it for future runs.
1249 # Also quote any args containing shell meta-characters.
1250 # Make two passes to allow for proper duplicate-argument suppression.
1255 ac_must_keep_next=false
1261 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263 | -silent | --silent | --silen | --sile | --sil)
1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1271 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272 if test $ac_must_keep_next = true; then
1273 ac_must_keep_next=false # Got value, back to normal.
1276 *=* | --config-cache | -C | -disable-* | --disable-* \
1277 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279 | -with-* | --with-* | -without-* | --without-* | --x)
1280 case "$ac_configure_args0 " in
1281 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1284 -* ) ac_must_keep_next=true ;;
1287 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288 # Get rid of the leading space.
1294 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1297 # When interrupted or exit'd, cleanup temporary files, and complete
1298 # config.log. We remove comments because anyway the quotes in there
1299 # would cause problems or look ugly.
1300 # WARNING: Be sure not to use single quotes in there, as some shells,
1301 # such as our DU 5.0 friend, will then `close' the trap.
1302 trap 'exit_status=$?
1303 # Save into config.log some information that might help in debugging.
1308 ## ---------------- ##
1309 ## Cache variables. ##
1310 ## ---------------- ##
1313 # The following way of writing the cache mishandles newlines in values,
1316 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1319 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1331 ## ----------------- ##
1332 ## Output variables. ##
1333 ## ----------------- ##
1336 for ac_var in $ac_subst_vars
1338 eval ac_val=$`echo $ac_var`
1339 echo "$ac_var='"'"'$ac_val'"'"'"
1343 if test -n "$ac_subst_files"; then
1350 for ac_var in $ac_subst_files
1352 eval ac_val=$`echo $ac_var`
1353 echo "$ac_var='"'"'$ac_val'"'"'"
1358 if test -s confdefs.h; then
1365 sed "/^$/d" confdefs.h | sort
1368 test "$ac_signal" != 0 &&
1369 echo "$as_me: caught signal $ac_signal"
1370 echo "$as_me: exit $exit_status"
1372 rm -f core *.core &&
1373 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1376 for ac_signal in 1 2 13 15; do
1377 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1382 rm -rf conftest* confdefs.h
1383 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1386 # Predefined preprocessor variables.
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_NAME "$PACKAGE_NAME"
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_STRING "$PACKAGE_STRING"
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1413 # Let the site file select an alternate cache file if it wants to.
1414 # Prefer explicitly selected file to automatically selected ones.
1415 if test -z "$CONFIG_SITE"; then
1416 if test "x$prefix" != xNONE; then
1417 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1419 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1422 for ac_site_file in $CONFIG_SITE; do
1423 if test -r "$ac_site_file"; then
1424 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425 echo "$as_me: loading site script $ac_site_file" >&6;}
1426 sed 's/^/| /' "$ac_site_file" >&5
1431 if test -r "$cache_file"; then
1432 # Some versions of bash will fail to source /dev/null (special
1433 # files actually), so we avoid doing that.
1434 if test -f "$cache_file"; then
1435 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436 echo "$as_me: loading cache $cache_file" >&6;}
1438 [\\/]* | ?:[\\/]* ) . $cache_file;;
1439 *) . ./$cache_file;;
1443 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444 echo "$as_me: creating cache $cache_file" >&6;}
1448 # Check that the precious variables saved in the cache have kept the same
1450 ac_cache_corrupted=false
1451 for ac_var in `(set) 2>&1 |
1452 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1453 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454 eval ac_new_set=\$ac_env_${ac_var}_set
1455 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456 eval ac_new_val="\$ac_env_${ac_var}_value"
1457 case $ac_old_set,$ac_new_set in
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1463 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465 ac_cache_corrupted=: ;;
1468 if test "x$ac_old_val" != "x$ac_new_val"; then
1469 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1470 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1471 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1472 echo "$as_me: former value: $ac_old_val" >&2;}
1473 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1474 echo "$as_me: current value: $ac_new_val" >&2;}
1475 ac_cache_corrupted=:
1478 # Pass precious variables to config.status.
1479 if test "$ac_new_set" = set; then
1481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483 *) ac_arg=$ac_var=$ac_new_val ;;
1485 case " $ac_configure_args " in
1486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1487 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1491 if $ac_cache_corrupted; then
1492 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496 { (exit 1); exit 1; }; }
1500 ac_cpp='$CPP $CPPFLAGS'
1501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1534 for ac_dir in config $srcdir/config; do
1535 if test -f $ac_dir/install-sh; then
1537 ac_install_sh="$ac_aux_dir/install-sh -c"
1539 elif test -f $ac_dir/install.sh; then
1541 ac_install_sh="$ac_aux_dir/install.sh -c"
1543 elif test -f $ac_dir/shtool; then
1545 ac_install_sh="$ac_aux_dir/shtool install -c"
1549 if test -z "$ac_aux_dir"; then
1550 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1551 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1552 { (exit 1); exit 1; }; }
1554 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1555 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1556 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559 am__api_version="1.9"
1560 # Find a good install program. We prefer a C program (faster),
1561 # so one script is as good as another. But avoid the broken or
1562 # incompatible versions:
1563 # SysV /etc/install, /usr/sbin/install
1564 # SunOS /usr/etc/install
1565 # IRIX /sbin/install
1567 # AmigaOS /C/install, which installs bootblocks on floppy discs
1568 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1569 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1570 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1571 # OS/2's system install, which has a completely different semantic
1572 # ./install, which can be erroneously created by make from ./install.sh.
1573 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1574 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1575 if test -z "$INSTALL"; then
1576 if test "${ac_cv_path_install+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 test -z "$as_dir" && as_dir=.
1584 # Account for people who put trailing slashes in PATH elements.
1586 ./ | .// | /cC/* | \
1587 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1588 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1591 # OSF1 and SCO ODT 3.0 have their own names for install.
1592 # Don't use installbsd from OSF since it installs stuff as root
1594 for ac_prog in ginstall scoinst install; do
1595 for ac_exec_ext in '' $ac_executable_extensions; do
1596 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1597 if test $ac_prog = install &&
1598 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1599 # AIX install. It has an incompatible calling convention.
1601 elif test $ac_prog = install &&
1602 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1603 # program-specific install script used by HP pwplus--don't use.
1606 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1618 if test "${ac_cv_path_install+set}" = set; then
1619 INSTALL=$ac_cv_path_install
1621 # As a last resort, use the slow shell script. We don't cache a
1622 # path for INSTALL within a source directory, because that will
1623 # break other packages using the cache if that directory is
1624 # removed, or if the path is relative.
1625 INSTALL=$ac_install_sh
1628 echo "$as_me:$LINENO: result: $INSTALL" >&5
1629 echo "${ECHO_T}$INSTALL" >&6
1631 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1632 # It thinks the first close brace ends the variable substitution.
1633 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1635 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1637 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1639 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1640 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1643 echo timestamp > conftest.file
1644 # Do `set' in a subshell so we don't clobber the current shell's
1645 # arguments. Must try -L first in case configure is actually a
1646 # symlink; some systems play weird games with the mod time of symlinks
1647 # (eg FreeBSD returns the mod time of the symlink's containing
1650 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1651 if test "$*" = "X"; then
1653 set X `ls -t $srcdir/configure conftest.file`
1656 if test "$*" != "X $srcdir/configure conftest.file" \
1657 && test "$*" != "X conftest.file $srcdir/configure"; then
1659 # If neither matched, then we have a broken ls. This can happen
1660 # if, for instance, CONFIG_SHELL is bash and it inherits a
1661 # broken ls alias from the environment. This has actually
1662 # happened. Such a system could not be considered "sane".
1663 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1664 alias in your environment" >&5
1665 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1666 alias in your environment" >&2;}
1667 { (exit 1); exit 1; }; }
1670 test "$2" = conftest.file
1676 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1677 Check your system clock" >&5
1678 echo "$as_me: error: newly created file is older than distributed files!
1679 Check your system clock" >&2;}
1680 { (exit 1); exit 1; }; }
1682 echo "$as_me:$LINENO: result: yes" >&5
1683 echo "${ECHO_T}yes" >&6
1684 test "$program_prefix" != NONE &&
1685 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1686 # Use a double $ so make ignores it.
1687 test "$program_suffix" != NONE &&
1688 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1689 # Double any \ or $. echo might interpret backslashes.
1690 # By default was `s,x,x', remove it if useless.
1691 cat <<\_ACEOF >conftest.sed
1692 s/[\\$]/&&/g;s/;s,x,x,$//
1694 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1697 # expand $ac_aux_dir to an absolute path
1698 am_aux_dir=`cd $ac_aux_dir && pwd`
1700 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1701 # Use eval to expand $SHELL
1702 if eval "$MISSING --run true"; then
1703 am_missing_run="$MISSING --run "
1706 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1707 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1710 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1711 # We used to keeping the `.' as first argument, in order to
1712 # allow $(mkdir_p) to be used without argument. As in
1713 # $(mkdir_p) $(somedir)
1714 # where $(somedir) is conditionally defined. However this is wrong
1716 # 1. if the package is installed by a user who cannot write `.'
1717 # make install will fail,
1718 # 2. the above comment should most certainly read
1719 # $(mkdir_p) $(DESTDIR)$(somedir)
1720 # so it does not work when $(somedir) is undefined and
1721 # $(DESTDIR) is not.
1722 # To support the latter case, we have to write
1723 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1724 # so the `.' trick is pointless.
1725 mkdir_p='mkdir -p --'
1727 # On NextStep and OpenStep, the `mkdir' command does not
1728 # recognize any option. It will interpret all options as
1729 # directories to create, and then abort because `.' already
1731 for d in ./-p ./--version;
1733 test -d $d && rmdir $d
1735 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1736 if test -f "$ac_aux_dir/mkinstalldirs"; then
1737 mkdir_p='$(mkinstalldirs)'
1739 mkdir_p='$(install_sh) -d'
1743 for ac_prog in gawk mawk nawk awk
1745 # Extract the first word of "$ac_prog", so it can be a program name with args.
1746 set dummy $ac_prog; ac_word=$2
1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 if test "${ac_cv_prog_AWK+set}" = set; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 if test -n "$AWK"; then
1753 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 test -z "$as_dir" && as_dir=.
1760 for ac_exec_ext in '' $ac_executable_extensions; do
1761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762 ac_cv_prog_AWK="$ac_prog"
1763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772 if test -n "$AWK"; then
1773 echo "$as_me:$LINENO: result: $AWK" >&5
1774 echo "${ECHO_T}$AWK" >&6
1776 echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1780 test -n "$AWK" && break
1783 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1784 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1785 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1786 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 cat >conftest.make <<\_ACEOF
1791 @echo 'ac_maketemp="$(MAKE)"'
1793 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1794 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1795 if test -n "$ac_maketemp"; then
1796 eval ac_cv_prog_make_${ac_make}_set=yes
1798 eval ac_cv_prog_make_${ac_make}_set=no
1802 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1803 echo "$as_me:$LINENO: result: yes" >&5
1804 echo "${ECHO_T}yes" >&6
1807 echo "$as_me:$LINENO: result: no" >&5
1808 echo "${ECHO_T}no" >&6
1809 SET_MAKE="MAKE=${MAKE-make}"
1812 rm -rf .tst 2>/dev/null
1813 mkdir .tst 2>/dev/null
1814 if test -d .tst; then
1819 rmdir .tst 2>/dev/null
1821 # test to see if srcdir already configured
1822 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1823 test -f $srcdir/config.status; then
1824 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1825 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1826 { (exit 1); exit 1; }; }
1829 # test whether we have cygpath
1830 if test -z "$CYGPATH_W"; then
1831 if (cygpath --version) >/dev/null 2>/dev/null; then
1832 CYGPATH_W='cygpath -w'
1839 # Define the identity of the package.
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE "$PACKAGE"
1849 cat >>confdefs.h <<_ACEOF
1850 #define VERSION "$VERSION"
1853 # Some tools Automake needs.
1855 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1858 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1861 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1864 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1867 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1869 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1871 # Installed binaries are usually stripped using `strip' when the user
1872 # run `make install-strip'. However `strip' might not be the right
1873 # tool to use in cross-compilation environments, therefore Automake
1874 # will honor the `STRIP' environment variable to overrule this program.
1875 if test "$cross_compiling" != no; then
1876 if test -n "$ac_tool_prefix"; then
1877 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1878 set dummy ${ac_tool_prefix}strip; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_STRIP+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 if test -n "$STRIP"; then
1885 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 test -z "$as_dir" && as_dir=.
1892 for ac_exec_ext in '' $ac_executable_extensions; do
1893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 STRIP=$ac_cv_prog_STRIP
1904 if test -n "$STRIP"; then
1905 echo "$as_me:$LINENO: result: $STRIP" >&5
1906 echo "${ECHO_T}$STRIP" >&6
1908 echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1913 if test -z "$ac_cv_prog_STRIP"; then
1915 # Extract the first word of "strip", so it can be a program name with args.
1916 set dummy strip; ac_word=$2
1917 echo "$as_me:$LINENO: checking for $ac_word" >&5
1918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 if test -n "$ac_ct_STRIP"; then
1923 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 test -z "$as_dir" && as_dir=.
1930 for ac_exec_ext in '' $ac_executable_extensions; do
1931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932 ac_cv_prog_ac_ct_STRIP="strip"
1933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1942 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1943 if test -n "$ac_ct_STRIP"; then
1944 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1945 echo "${ECHO_T}$ac_ct_STRIP" >&6
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1953 STRIP="$ac_cv_prog_STRIP"
1957 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1959 # We need awk for the "check" target. The system "awk" is bad on
1961 # Always define AMTAR for backward compatibility.
1963 AMTAR=${AMTAR-"${am_missing_run}tar"}
1965 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1971 # Check for right directory
1973 # Config headers for automake
1974 ac_config_headers="$ac_config_headers src/config.h"
1977 # Build time sanity check
1978 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1979 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1982 echo timestamp > conftest.file
1983 # Do `set' in a subshell so we don't clobber the current shell's
1984 # arguments. Must try -L first in case configure is actually a
1985 # symlink; some systems play weird games with the mod time of symlinks
1986 # (eg FreeBSD returns the mod time of the symlink's containing
1989 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1990 if test "$*" = "X"; then
1992 set X `ls -t $srcdir/configure conftest.file`
1995 if test "$*" != "X $srcdir/configure conftest.file" \
1996 && test "$*" != "X conftest.file $srcdir/configure"; then
1998 # If neither matched, then we have a broken ls. This can happen
1999 # if, for instance, CONFIG_SHELL is bash and it inherits a
2000 # broken ls alias from the environment. This has actually
2001 # happened. Such a system could not be considered "sane".
2002 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2003 alias in your environment" >&5
2004 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2005 alias in your environment" >&2;}
2006 { (exit 1); exit 1; }; }
2009 test "$2" = conftest.file
2015 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2016 Check your system clock" >&5
2017 echo "$as_me: error: newly created file is older than distributed files!
2018 Check your system clock" >&2;}
2019 { (exit 1); exit 1; }; }
2021 echo "$as_me:$LINENO: result: yes" >&5
2022 echo "${ECHO_T}yes" >&6
2024 # Look for install program
2025 # Find a good install program. We prefer a C program (faster),
2026 # so one script is as good as another. But avoid the broken or
2027 # incompatible versions:
2028 # SysV /etc/install, /usr/sbin/install
2029 # SunOS /usr/etc/install
2030 # IRIX /sbin/install
2032 # AmigaOS /C/install, which installs bootblocks on floppy discs
2033 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2034 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2035 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2036 # OS/2's system install, which has a completely different semantic
2037 # ./install, which can be erroneously created by make from ./install.sh.
2038 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2039 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2040 if test -z "$INSTALL"; then
2041 if test "${ac_cv_path_install+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 test -z "$as_dir" && as_dir=.
2049 # Account for people who put trailing slashes in PATH elements.
2051 ./ | .// | /cC/* | \
2052 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2053 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2056 # OSF1 and SCO ODT 3.0 have their own names for install.
2057 # Don't use installbsd from OSF since it installs stuff as root
2059 for ac_prog in ginstall scoinst install; do
2060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2062 if test $ac_prog = install &&
2063 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2064 # AIX install. It has an incompatible calling convention.
2066 elif test $ac_prog = install &&
2067 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2068 # program-specific install script used by HP pwplus--don't use.
2071 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2083 if test "${ac_cv_path_install+set}" = set; then
2084 INSTALL=$ac_cv_path_install
2086 # As a last resort, use the slow shell script. We don't cache a
2087 # path for INSTALL within a source directory, because that will
2088 # break other packages using the cache if that directory is
2089 # removed, or if the path is relative.
2090 INSTALL=$ac_install_sh
2093 echo "$as_me:$LINENO: result: $INSTALL" >&5
2094 echo "${ECHO_T}$INSTALL" >&6
2096 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2097 # It thinks the first close brace ends the variable substitution.
2098 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2100 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2102 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2107 ac_cpp='$CPP $CPPFLAGS'
2108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2111 if test -n "$ac_tool_prefix"; then
2112 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2113 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2114 echo "$as_me:$LINENO: checking for $ac_word" >&5
2115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2116 if test "${ac_cv_prog_CC+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
2119 if test -n "$CC"; then
2120 ac_cv_prog_CC="$CC" # Let the user override the test.
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 test -z "$as_dir" && as_dir=.
2127 for ac_exec_ext in '' $ac_executable_extensions; do
2128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2129 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139 if test -n "$CC"; then
2140 echo "$as_me:$LINENO: result: $CC" >&5
2141 echo "${ECHO_T}$CC" >&6
2143 echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6
2148 if test -z "$ac_cv_prog_CC"; then
2150 # Extract the first word of "gcc", so it can be a program name with args.
2151 set dummy gcc; ac_word=$2
2152 echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2154 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 if test -n "$ac_ct_CC"; then
2158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2167 ac_cv_prog_ac_ct_CC="gcc"
2168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2177 if test -n "$ac_ct_CC"; then
2178 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2179 echo "${ECHO_T}$ac_ct_CC" >&6
2181 echo "$as_me:$LINENO: result: no" >&5
2182 echo "${ECHO_T}no" >&6
2190 if test -z "$CC"; then
2191 if test -n "$ac_tool_prefix"; then
2192 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2193 set dummy ${ac_tool_prefix}cc; ac_word=$2
2194 echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 if test -n "$CC"; then
2200 ac_cv_prog_CC="$CC" # Let the user override the test.
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209 ac_cv_prog_CC="${ac_tool_prefix}cc"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219 if test -n "$CC"; then
2220 echo "$as_me:$LINENO: result: $CC" >&5
2221 echo "${ECHO_T}$CC" >&6
2223 echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6
2228 if test -z "$ac_cv_prog_CC"; then
2230 # Extract the first word of "cc", so it can be a program name with args.
2231 set dummy cc; ac_word=$2
2232 echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 if test -n "$ac_ct_CC"; then
2238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247 ac_cv_prog_ac_ct_CC="cc"
2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2257 if test -n "$ac_ct_CC"; then
2258 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2259 echo "${ECHO_T}$ac_ct_CC" >&6
2261 echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6
2271 if test -z "$CC"; then
2272 # Extract the first word of "cc", so it can be a program name with args.
2273 set dummy cc; ac_word=$2
2274 echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276 if test "${ac_cv_prog_CC+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 if test -n "$CC"; then
2280 ac_cv_prog_CC="$CC" # Let the user override the test.
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
2289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2290 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2291 ac_prog_rejected=yes
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301 if test $ac_prog_rejected = yes; then
2302 # We found a bogon in the path, so make sure we never use it.
2303 set dummy $ac_cv_prog_CC
2305 if test $# != 0; then
2306 # We chose a different compiler from the bogus one.
2307 # However, it has the same basename, so the bogon will be chosen
2308 # first if we set CC to just the basename; use the full file name.
2310 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2316 if test -n "$CC"; then
2317 echo "$as_me:$LINENO: result: $CC" >&5
2318 echo "${ECHO_T}$CC" >&6
2320 echo "$as_me:$LINENO: result: no" >&5
2321 echo "${ECHO_T}no" >&6
2325 if test -z "$CC"; then
2326 if test -n "$ac_tool_prefix"; then
2329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2331 echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2333 if test "${ac_cv_prog_CC+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 if test -n "$CC"; then
2337 ac_cv_prog_CC="$CC" # Let the user override the test.
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2346 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 if test -n "$CC"; then
2357 echo "$as_me:$LINENO: result: $CC" >&5
2358 echo "${ECHO_T}$CC" >&6
2360 echo "$as_me:$LINENO: result: no" >&5
2361 echo "${ECHO_T}no" >&6
2364 test -n "$CC" && break
2367 if test -z "$CC"; then
2371 # Extract the first word of "$ac_prog", so it can be a program name with args.
2372 set dummy $ac_prog; ac_word=$2
2373 echo "$as_me:$LINENO: checking for $ac_word" >&5
2374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2375 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 if test -n "$ac_ct_CC"; then
2379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 test -z "$as_dir" && as_dir=.
2386 for ac_exec_ext in '' $ac_executable_extensions; do
2387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2388 ac_cv_prog_ac_ct_CC="$ac_prog"
2389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2398 if test -n "$ac_ct_CC"; then
2399 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2400 echo "${ECHO_T}$ac_ct_CC" >&6
2402 echo "$as_me:$LINENO: result: no" >&5
2403 echo "${ECHO_T}no" >&6
2406 test -n "$ac_ct_CC" && break
2415 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2416 See \`config.log' for more details." >&5
2417 echo "$as_me: error: no acceptable C compiler found in \$PATH
2418 See \`config.log' for more details." >&2;}
2419 { (exit 1); exit 1; }; }
2421 # Provide some information about the compiler.
2422 echo "$as_me:$LINENO:" \
2423 "checking for C compiler version" >&5
2424 ac_compiler=`set X $ac_compile; echo $2`
2425 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2426 (eval $ac_compiler --version </dev/null >&5) 2>&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }
2430 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2431 (eval $ac_compiler -v </dev/null >&5) 2>&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }
2435 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2436 (eval $ac_compiler -V </dev/null >&5) 2>&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }
2441 cat >conftest.$ac_ext <<_ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h. */
2456 ac_clean_files_save=$ac_clean_files
2457 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2458 # Try to create an executable without -o first, disregard a.out.
2459 # It will help us diagnose broken compilers, and finding out an intuition
2461 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2462 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2463 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2464 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2465 (eval $ac_link_default) 2>&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; then
2469 # Find the output, starting from the most likely. This scheme is
2470 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2473 # Be careful to initialize this variable, since it used to be cached.
2474 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2476 # b.out is created by i960 compilers.
2477 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2479 test -f "$ac_file" || continue
2481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2484 # This is the source file.
2487 # We found the default executable, but exeext='' is most
2491 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2492 # FIXME: I believe we export ac_cv_exeext for Libtool,
2493 # but it would be cool to find out if it's true. Does anybody
2494 # maintain Libtool? --akim.
2502 echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2505 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2506 See \`config.log' for more details." >&5
2507 echo "$as_me: error: C compiler cannot create executables
2508 See \`config.log' for more details." >&2;}
2509 { (exit 77); exit 77; }; }
2512 ac_exeext=$ac_cv_exeext
2513 echo "$as_me:$LINENO: result: $ac_file" >&5
2514 echo "${ECHO_T}$ac_file" >&6
2516 # Check the compiler produces executables we can run. If not, either
2517 # the compiler is broken, or we cross compile.
2518 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2519 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2520 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2521 # If not cross compiling, check that we can run a simple program.
2522 if test "$cross_compiling" != yes; then
2523 if { ac_try='./$ac_file'
2524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; }; then
2531 if test "$cross_compiling" = maybe; then
2534 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2535 If you meant to cross compile, use \`--host'.
2536 See \`config.log' for more details." >&5
2537 echo "$as_me: error: cannot run C compiled programs.
2538 If you meant to cross compile, use \`--host'.
2539 See \`config.log' for more details." >&2;}
2540 { (exit 1); exit 1; }; }
2544 echo "$as_me:$LINENO: result: yes" >&5
2545 echo "${ECHO_T}yes" >&6
2547 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2548 ac_clean_files=$ac_clean_files_save
2549 # Check the compiler produces executables we can run. If not, either
2550 # the compiler is broken, or we cross compile.
2551 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2552 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2553 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2554 echo "${ECHO_T}$cross_compiling" >&6
2556 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2557 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2559 (eval $ac_link) 2>&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; then
2563 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2564 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2565 # work properly (i.e., refer to `conftest.exe'), while it won't with
2567 for ac_file in conftest.exe conftest conftest.*; do
2568 test -f "$ac_file" || continue
2570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2571 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2578 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2579 See \`config.log' for more details." >&5
2580 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2581 See \`config.log' for more details." >&2;}
2582 { (exit 1); exit 1; }; }
2585 rm -f conftest$ac_cv_exeext
2586 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2587 echo "${ECHO_T}$ac_cv_exeext" >&6
2589 rm -f conftest.$ac_ext
2590 EXEEXT=$ac_cv_exeext
2592 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2593 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2594 if test "${ac_cv_objext+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2597 cat >conftest.$ac_ext <<_ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h. */
2612 rm -f conftest.o conftest.obj
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614 (eval $ac_compile) 2>&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; then
2618 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2621 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.$ac_ext >&5
2629 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2630 See \`config.log' for more details." >&5
2631 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2632 See \`config.log' for more details." >&2;}
2633 { (exit 1); exit 1; }; }
2636 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2638 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2639 echo "${ECHO_T}$ac_cv_objext" >&6
2640 OBJEXT=$ac_cv_objext
2642 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2643 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2644 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 cat >conftest.$ac_ext <<_ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2665 rm -f conftest.$ac_objext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667 (eval $ac_compile) 2>conftest.er1
2669 grep -v '^ *+' conftest.er1 >conftest.err
2671 cat conftest.err >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); } &&
2674 { ac_try='test -z "$ac_c_werror_flag"
2675 || test ! -s conftest.err'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; } &&
2681 { ac_try='test -s conftest.$ac_objext'
2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; }; then
2689 echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2698 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2699 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2700 GCC=`test $ac_compiler_gnu = yes && echo yes`
2701 ac_test_CFLAGS=${CFLAGS+set}
2702 ac_save_CFLAGS=$CFLAGS
2704 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2705 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2706 if test "${ac_cv_prog_cc_g+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 cat >conftest.$ac_ext <<_ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2724 rm -f conftest.$ac_objext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726 (eval $ac_compile) 2>conftest.er1
2728 grep -v '^ *+' conftest.er1 >conftest.err
2730 cat conftest.err >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } &&
2733 { ac_try='test -z "$ac_c_werror_flag"
2734 || test ! -s conftest.err'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; } &&
2740 { ac_try='test -s conftest.$ac_objext'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2748 echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2755 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2756 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2757 if test "$ac_test_CFLAGS" = set; then
2758 CFLAGS=$ac_save_CFLAGS
2759 elif test $ac_cv_prog_cc_g = yes; then
2760 if test "$GCC" = yes; then
2766 if test "$GCC" = yes; then
2772 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2773 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2774 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 ac_cv_prog_cc_stdc=no
2779 cat >conftest.$ac_ext <<_ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2787 #include <sys/types.h>
2788 #include <sys/stat.h>
2789 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2790 struct buf { int x; };
2791 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2792 static char *e (p, i)
2798 static char *f (char * (*g) (char **, int), char **p, ...)
2803 s = g (p, va_arg (v,int));
2808 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2809 function prototypes and stuff, but not '\xHH' hex character constants.
2810 These don't provoke an error unfortunately, instead are silently treated
2811 as 'x'. The following induces an error, until -std1 is added to get
2812 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2813 array size at least. It's necessary to write '\x00'==0 to get something
2814 that's true only with -std1. */
2815 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2817 int test (int i, double x);
2818 struct s1 {int (*f) (int a);};
2819 struct s2 {int (*f) (double a);};
2820 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2826 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2831 # Don't try gcc -ansi; that turns off useful extensions and
2832 # breaks some systems' header files.
2833 # AIX -qlanglvl=ansi
2834 # Ultrix and OSF/1 -std1
2835 # HP-UX 10.20 and later -Ae
2836 # HP-UX older versions -Aa -D_HPUX_SOURCE
2837 # SVR4 -Xc -D__EXTENSIONS__
2838 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2840 CC="$ac_save_CC $ac_arg"
2841 rm -f conftest.$ac_objext
2842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843 (eval $ac_compile) 2>conftest.er1
2845 grep -v '^ *+' conftest.er1 >conftest.err
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } &&
2850 { ac_try='test -z "$ac_c_werror_flag"
2851 || test ! -s conftest.err'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; } &&
2857 { ac_try='test -s conftest.$ac_objext'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2863 ac_cv_prog_cc_stdc=$ac_arg
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2870 rm -f conftest.err conftest.$ac_objext
2872 rm -f conftest.$ac_ext conftest.$ac_objext
2877 case "x$ac_cv_prog_cc_stdc" in
2879 echo "$as_me:$LINENO: result: none needed" >&5
2880 echo "${ECHO_T}none needed" >&6 ;;
2882 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2883 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2884 CC="$CC $ac_cv_prog_cc_stdc" ;;
2887 # Some people use a C++ compiler to compile C. Since we use `exit',
2888 # in C++ we need to declare it. In case someone uses the same compiler
2889 # for both compiling C and C++ we need to have the C++ compiler decide
2890 # the declaration of exit, since it's the most demanding environment.
2891 cat >conftest.$ac_ext <<_ACEOF
2896 rm -f conftest.$ac_objext
2897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898 (eval $ac_compile) 2>conftest.er1
2900 grep -v '^ *+' conftest.er1 >conftest.err
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } &&
2905 { ac_try='test -z "$ac_c_werror_flag"
2906 || test ! -s conftest.err'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; } &&
2912 { ac_try='test -s conftest.$ac_objext'
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2918 for ac_declaration in \
2920 'extern "C" void std::exit (int) throw (); using std::exit;' \
2921 'extern "C" void std::exit (int); using std::exit;' \
2922 'extern "C" void exit (int) throw ();' \
2923 'extern "C" void exit (int);' \
2926 cat >conftest.$ac_ext <<_ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>conftest.er1
2946 grep -v '^ *+' conftest.er1 >conftest.err
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } &&
2951 { ac_try='test -z "$ac_c_werror_flag"
2952 || test ! -s conftest.err'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; } &&
2958 { ac_try='test -s conftest.$ac_objext'
2959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2972 cat >conftest.$ac_ext <<_ACEOF
2975 cat confdefs.h >>conftest.$ac_ext
2976 cat >>conftest.$ac_ext <<_ACEOF
2977 /* end confdefs.h. */
2987 rm -f conftest.$ac_objext
2988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2989 (eval $ac_compile) 2>conftest.er1
2991 grep -v '^ *+' conftest.er1 >conftest.err
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
2996 { ac_try='test -z "$ac_c_werror_flag"
2997 || test ! -s conftest.err'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; } &&
3003 { ac_try='test -s conftest.$ac_objext'
3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; }; then
3011 echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3018 if test -n "$ac_declaration"; then
3019 echo '#ifdef __cplusplus' >>confdefs.h
3020 echo $ac_declaration >>confdefs.h
3021 echo '#endif' >>confdefs.h
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3031 ac_cpp='$CPP $CPPFLAGS'
3032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035 DEPDIR="${am__leading_dot}deps"
3037 ac_config_commands="$ac_config_commands depfiles"
3040 am_make=${MAKE-make}
3041 cat > confinc << 'END'
3046 # If we don't find an include directive, just comment out the code.
3047 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3048 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3052 # First try GNU make style include.
3053 echo "include confinc" > confmf
3054 # We grep out `Entering directory' and `Leaving directory'
3055 # messages which can occur if `w' ends up in MAKEFLAGS.
3056 # In particular we don't look at `^make:' because GNU make might
3057 # be invoked under some other name (usually "gmake"), in which
3058 # case it prints its new name instead of `make'.
3059 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3064 # Now try BSD make style include.
3065 if test "$am__include" = "#"; then
3066 echo '.include "confinc"' > confmf
3067 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3068 am__include=.include
3075 echo "$as_me:$LINENO: result: $_am_result" >&5
3076 echo "${ECHO_T}$_am_result" >&6
3077 rm -f confinc confmf
3079 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3080 if test "${enable_dependency_tracking+set}" = set; then
3081 enableval="$enable_dependency_tracking"
3084 if test "x$enable_dependency_tracking" != xno; then
3085 am_depcomp="$ac_aux_dir/depcomp"
3090 if test "x$enable_dependency_tracking" != xno; then
3101 depcc="$CC" am_compiler_list=
3103 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3104 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3105 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3109 # We make a subdir and do the tests there. Otherwise we can end up
3110 # making bogus files that we don't know about and never remove. For
3111 # instance it was reported that on HP-UX the gcc test will end up
3112 # making a dummy file named `D' -- because `-MD' means `put the output
3115 # Copy depcomp to subdir because otherwise we won't find it if we're
3116 # using a relative directory.
3117 cp "$am_depcomp" conftest.dir
3119 # We will build objects and dependencies in a subdirectory because
3120 # it helps to detect inapplicable dependency modes. For instance
3121 # both Tru64's cc and ICC support -MD to output dependencies as a
3122 # side effect of compilation, but ICC will put the dependencies in
3123 # the current directory while Tru64 will put them in the object
3127 am_cv_CC_dependencies_compiler_type=none
3128 if test "$am_compiler_list" = ""; then
3129 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3131 for depmode in $am_compiler_list; do
3132 # Setup a source with many dependencies, because some compilers
3133 # like to wrap large dependency lists on column 80 (with \), and
3134 # we should not choose a depcomp mode which is confused by this.
3136 # We need to recreate these files for each test, as the compiler may
3137 # overwrite some of them when testing with obscure command lines.
3138 # This happens at least with the AIX C compiler.
3140 for i in 1 2 3 4 5 6; do
3141 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3142 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3143 # Solaris 8's {/usr,}/bin/sh.
3144 touch sub/conftst$i.h
3146 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3150 # after this tag, mechanisms are not by side-effect, so they'll
3151 # only be used when explicitly requested
3152 if test "x$enable_dependency_tracking" = xyes; then
3160 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3161 # mode. It turns out that the SunPro C++ compiler does not properly
3162 # handle `-M -o', and we need to detect this.
3163 if depmode=$depmode \
3164 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3165 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3166 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3167 >/dev/null 2>conftest.err &&
3168 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3169 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3170 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3171 # icc doesn't choke on unknown options, it will just issue warnings
3172 # or remarks (even with -Werror). So we grep stderr for any message
3173 # that says an option was ignored or not supported.
3174 # When given -MP, icc 7.0 and 7.1 complain thusly:
3175 # icc: Command line warning: ignoring option '-M'; no argument required
3176 # The diagnosis changed in icc 8.0:
3177 # icc: Command line remark: option '-MP' not supported
3178 if (grep 'ignoring option' conftest.err ||
3179 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3180 am_cv_CC_dependencies_compiler_type=$depmode
3189 am_cv_CC_dependencies_compiler_type=none
3193 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3194 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3195 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3200 test "x$enable_dependency_tracking" != xno \
3201 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3203 am__fastdepCC_FALSE='#'
3205 am__fastdepCC_TRUE='#'
3206 am__fastdepCC_FALSE=
3211 ac_cpp='$CXXCPP $CPPFLAGS'
3212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3215 if test -n "$ac_tool_prefix"; then
3216 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_prog_CXX+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 if test -n "$CXX"; then
3226 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 if test -n "$CXX"; then
3246 echo "$as_me:$LINENO: result: $CXX" >&5
3247 echo "${ECHO_T}$CXX" >&6
3249 echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3253 test -n "$CXX" && break
3256 if test -z "$CXX"; then
3258 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3260 # Extract the first word of "$ac_prog", so it can be a program name with args.
3261 set dummy $ac_prog; ac_word=$2
3262 echo "$as_me:$LINENO: checking for $ac_word" >&5
3263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3264 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 if test -n "$ac_ct_CXX"; then
3268 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277 ac_cv_prog_ac_ct_CXX="$ac_prog"
3278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3287 if test -n "$ac_ct_CXX"; then
3288 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3289 echo "${ECHO_T}$ac_ct_CXX" >&6
3291 echo "$as_me:$LINENO: result: no" >&5
3292 echo "${ECHO_T}no" >&6
3295 test -n "$ac_ct_CXX" && break
3297 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3303 # Provide some information about the compiler.
3304 echo "$as_me:$LINENO:" \
3305 "checking for C++ compiler version" >&5
3306 ac_compiler=`set X $ac_compile; echo $2`
3307 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3308 (eval $ac_compiler --version </dev/null >&5) 2>&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }
3312 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3313 (eval $ac_compiler -v </dev/null >&5) 2>&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }
3317 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3318 (eval $ac_compiler -V </dev/null >&5) 2>&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }
3323 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3324 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3325 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 cat >conftest.$ac_ext <<_ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3346 rm -f conftest.$ac_objext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3348 (eval $ac_compile) 2>conftest.er1
3350 grep -v '^ *+' conftest.er1 >conftest.err
3352 cat conftest.err >&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); } &&
3355 { ac_try='test -z "$ac_cxx_werror_flag"
3356 || test ! -s conftest.err'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; } &&
3362 { ac_try='test -s conftest.$ac_objext'
3363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; }; then
3370 echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3376 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3379 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3380 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3381 GXX=`test $ac_compiler_gnu = yes && echo yes`
3382 ac_test_CXXFLAGS=${CXXFLAGS+set}
3383 ac_save_CXXFLAGS=$CXXFLAGS
3385 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3386 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3387 if test "${ac_cv_prog_cxx_g+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 cat >conftest.$ac_ext <<_ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3405 rm -f conftest.$ac_objext
3406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3407 (eval $ac_compile) 2>conftest.er1
3409 grep -v '^ *+' conftest.er1 >conftest.err
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } &&
3414 { ac_try='test -z "$ac_cxx_werror_flag"
3415 || test ! -s conftest.err'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; } &&
3421 { ac_try='test -s conftest.$ac_objext'
3422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; }; then
3427 ac_cv_prog_cxx_g=yes
3429 echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3436 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3437 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3438 if test "$ac_test_CXXFLAGS" = set; then
3439 CXXFLAGS=$ac_save_CXXFLAGS
3440 elif test $ac_cv_prog_cxx_g = yes; then
3441 if test "$GXX" = yes; then
3447 if test "$GXX" = yes; then
3453 for ac_declaration in \
3455 'extern "C" void std::exit (int) throw (); using std::exit;' \
3456 'extern "C" void std::exit (int); using std::exit;' \
3457 'extern "C" void exit (int) throw ();' \
3458 'extern "C" void exit (int);' \
3461 cat >conftest.$ac_ext <<_ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h. */
3477 rm -f conftest.$ac_objext
3478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479 (eval $ac_compile) 2>conftest.er1
3481 grep -v '^ *+' conftest.er1 >conftest.err
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } &&
3486 { ac_try='test -z "$ac_cxx_werror_flag"
3487 || test ! -s conftest.err'
3488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }; } &&
3493 { ac_try='test -s conftest.$ac_objext'
3494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; }; then
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3507 cat >conftest.$ac_ext <<_ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3522 rm -f conftest.$ac_objext
3523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3524 (eval $ac_compile) 2>conftest.er1
3526 grep -v '^ *+' conftest.er1 >conftest.err
3528 cat conftest.err >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } &&
3531 { ac_try='test -z "$ac_cxx_werror_flag"
3532 || test ! -s conftest.err'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; } &&
3538 { ac_try='test -s conftest.$ac_objext'
3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; }; then
3546 echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3553 if test -n "$ac_declaration"; then
3554 echo '#ifdef __cplusplus' >>confdefs.h
3555 echo $ac_declaration >>confdefs.h
3556 echo '#endif' >>confdefs.h
3560 ac_cpp='$CPP $CPPFLAGS'
3561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565 depcc="$CXX" am_compiler_list=
3567 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3568 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3569 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3573 # We make a subdir and do the tests there. Otherwise we can end up
3574 # making bogus files that we don't know about and never remove. For
3575 # instance it was reported that on HP-UX the gcc test will end up
3576 # making a dummy file named `D' -- because `-MD' means `put the output
3579 # Copy depcomp to subdir because otherwise we won't find it if we're
3580 # using a relative directory.
3581 cp "$am_depcomp" conftest.dir
3583 # We will build objects and dependencies in a subdirectory because
3584 # it helps to detect inapplicable dependency modes. For instance
3585 # both Tru64's cc and ICC support -MD to output dependencies as a
3586 # side effect of compilation, but ICC will put the dependencies in
3587 # the current directory while Tru64 will put them in the object
3591 am_cv_CXX_dependencies_compiler_type=none
3592 if test "$am_compiler_list" = ""; then
3593 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3595 for depmode in $am_compiler_list; do
3596 # Setup a source with many dependencies, because some compilers
3597 # like to wrap large dependency lists on column 80 (with \), and
3598 # we should not choose a depcomp mode which is confused by this.
3600 # We need to recreate these files for each test, as the compiler may
3601 # overwrite some of them when testing with obscure command lines.
3602 # This happens at least with the AIX C compiler.
3604 for i in 1 2 3 4 5 6; do
3605 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3606 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3607 # Solaris 8's {/usr,}/bin/sh.
3608 touch sub/conftst$i.h
3610 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3614 # after this tag, mechanisms are not by side-effect, so they'll
3615 # only be used when explicitly requested
3616 if test "x$enable_dependency_tracking" = xyes; then
3624 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3625 # mode. It turns out that the SunPro C++ compiler does not properly
3626 # handle `-M -o', and we need to detect this.
3627 if depmode=$depmode \
3628 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3629 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3630 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3631 >/dev/null 2>conftest.err &&
3632 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3633 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3634 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3635 # icc doesn't choke on unknown options, it will just issue warnings
3636 # or remarks (even with -Werror). So we grep stderr for any message
3637 # that says an option was ignored or not supported.
3638 # When given -MP, icc 7.0 and 7.1 complain thusly:
3639 # icc: Command line warning: ignoring option '-M'; no argument required
3640 # The diagnosis changed in icc 8.0:
3641 # icc: Command line remark: option '-MP' not supported
3642 if (grep 'ignoring option' conftest.err ||
3643 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3644 am_cv_CXX_dependencies_compiler_type=$depmode
3653 am_cv_CXX_dependencies_compiler_type=none
3657 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3658 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3659 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3664 test "x$enable_dependency_tracking" != xno \
3665 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3666 am__fastdepCXX_TRUE=
3667 am__fastdepCXX_FALSE='#'
3669 am__fastdepCXX_TRUE='#'
3670 am__fastdepCXX_FALSE=
3674 # Check whether --enable-shared or --disable-shared was given.
3675 if test "${enable_shared+set}" = set; then
3676 enableval="$enable_shared"
3677 p=${PACKAGE-default}
3679 yes) enable_shared=yes ;;
3680 no) enable_shared=no ;;
3683 # Look at the argument we got. We use all the common list separators.
3684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3685 for pkg in $enableval; do
3687 if test "X$pkg" = "X$p"; then
3698 # Check whether --enable-static or --disable-static was given.
3699 if test "${enable_static+set}" = set; then
3700 enableval="$enable_static"
3701 p=${PACKAGE-default}
3703 yes) enable_static=yes ;;
3704 no) enable_static=no ;;
3707 # Look at the argument we got. We use all the common list separators.
3708 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3709 for pkg in $enableval; do
3711 if test "X$pkg" = "X$p"; then
3722 # Check whether --enable-fast-install or --disable-fast-install was given.
3723 if test "${enable_fast_install+set}" = set; then
3724 enableval="$enable_fast_install"
3725 p=${PACKAGE-default}
3727 yes) enable_fast_install=yes ;;
3728 no) enable_fast_install=no ;;
3730 enable_fast_install=no
3731 # Look at the argument we got. We use all the common list separators.
3732 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3733 for pkg in $enableval; do
3735 if test "X$pkg" = "X$p"; then
3736 enable_fast_install=yes
3743 enable_fast_install=yes
3746 # Make sure we can run config.sub.
3747 $ac_config_sub sun4 >/dev/null 2>&1 ||
3748 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3749 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3750 { (exit 1); exit 1; }; }
3752 echo "$as_me:$LINENO: checking build system type" >&5
3753 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3754 if test "${ac_cv_build+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 ac_cv_build_alias=$build_alias
3758 test -z "$ac_cv_build_alias" &&
3759 ac_cv_build_alias=`$ac_config_guess`
3760 test -z "$ac_cv_build_alias" &&
3761 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3762 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3763 { (exit 1); exit 1; }; }
3764 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3765 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3766 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3767 { (exit 1); exit 1; }; }
3770 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3771 echo "${ECHO_T}$ac_cv_build" >&6
3773 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3774 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3775 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3778 echo "$as_me:$LINENO: checking host system type" >&5
3779 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3780 if test "${ac_cv_host+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 ac_cv_host_alias=$host_alias
3784 test -z "$ac_cv_host_alias" &&
3785 ac_cv_host_alias=$ac_cv_build_alias
3786 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3787 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3788 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3789 { (exit 1); exit 1; }; }
3792 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3793 echo "${ECHO_T}$ac_cv_host" >&6
3795 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3796 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3797 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3800 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3801 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3802 if test "${lt_cv_path_SED+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 # Loop through the user's path and test for sed and gsed.
3806 # Then use that list of sed's as ones to test for truncation.
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 test -z "$as_dir" && as_dir=.
3812 for lt_ac_prog in sed gsed; do
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3815 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3822 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3823 # along with /bin/sed that truncates output.
3824 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3825 test ! -f $lt_ac_sed && continue
3826 cat /dev/null > conftest.in
3828 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3829 # Check for GNU sed and select it if it is found.
3830 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3831 lt_cv_path_SED=$lt_ac_sed
3835 cat conftest.in conftest.in >conftest.tmp
3836 mv conftest.tmp conftest.in
3837 cp conftest.in conftest.nl
3839 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3840 cmp -s conftest.out conftest.nl || break
3841 # 10000 chars as input seems more than enough
3842 test $lt_ac_count -gt 10 && break
3843 lt_ac_count=`expr $lt_ac_count + 1`
3844 if test $lt_ac_count -gt $lt_ac_max; then
3845 lt_ac_max=$lt_ac_count
3846 lt_cv_path_SED=$lt_ac_sed
3854 echo "$as_me:$LINENO: result: $SED" >&5
3855 echo "${ECHO_T}$SED" >&6
3857 echo "$as_me:$LINENO: checking for egrep" >&5
3858 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3859 if test "${ac_cv_prog_egrep+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3863 then ac_cv_prog_egrep='grep -E'
3864 else ac_cv_prog_egrep='egrep'
3867 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3868 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3869 EGREP=$ac_cv_prog_egrep
3873 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3874 if test "${with_gnu_ld+set}" = set; then
3875 withval="$with_gnu_ld"
3876 test "$withval" = no || with_gnu_ld=yes
3881 if test "$GCC" = yes; then
3882 # Check if gcc -print-prog-name=ld gives a path.
3883 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3884 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3887 # gcc leaves a trailing carriage return which upsets mingw
3888 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3890 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3893 # Accept absolute paths.
3895 re_direlt='/[^/][^/]*/\.\./'
3896 # Canonicalize the pathname of ld
3897 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3898 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3899 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3901 test -z "$LD" && LD="$ac_prog"
3904 # If it fails, then pretend we aren't using GCC.
3908 # If it is relative, then search for the first ld in PATH.
3912 elif test "$with_gnu_ld" = yes; then
3913 echo "$as_me:$LINENO: checking for GNU ld" >&5
3914 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3916 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3917 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3919 if test "${lt_cv_path_LD+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 if test -z "$LD"; then
3923 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3924 for ac_dir in $PATH; do
3926 test -z "$ac_dir" && ac_dir=.
3927 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3928 lt_cv_path_LD="$ac_dir/$ac_prog"
3929 # Check to see if the program is GNU ld. I'd rather use --version,
3930 # but apparently some GNU ld's only accept -v.
3931 # Break only if it was the GNU/non-GNU ld that we prefer.
3932 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3933 *GNU* | *'with BFD'*)
3934 test "$with_gnu_ld" != no && break
3937 test "$with_gnu_ld" != yes && break
3944 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3949 if test -n "$LD"; then
3950 echo "$as_me:$LINENO: result: $LD" >&5
3951 echo "${ECHO_T}$LD" >&6
3953 echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3956 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3957 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3958 { (exit 1); exit 1; }; }
3959 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3960 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3961 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3965 case `$LD -v 2>&1 </dev/null` in
3966 *GNU* | *'with BFD'*)
3967 lt_cv_prog_gnu_ld=yes
3970 lt_cv_prog_gnu_ld=no
3974 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3975 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3976 with_gnu_ld=$lt_cv_prog_gnu_ld
3979 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3980 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3981 if test "${lt_cv_ld_reload_flag+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 lt_cv_ld_reload_flag='-r'
3986 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3987 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3988 reload_flag=$lt_cv_ld_reload_flag
3989 case $reload_flag in
3991 *) reload_flag=" $reload_flag" ;;
3993 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3996 if test "$GCC" = yes; then
3997 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3999 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4004 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4005 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4006 if test "${lt_cv_path_NM+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 if test -n "$NM"; then
4010 # Let the user override the test.
4013 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4014 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4016 test -z "$ac_dir" && ac_dir=.
4017 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4018 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4019 # Check to see if the nm accepts a BSD-compat flag.
4020 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4021 # nm: unknown option "B" ignored
4022 # Tru64's nm complains that /dev/null is an invalid object file
4023 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4024 */dev/null* | *'Invalid file or object type'*)
4025 lt_cv_path_NM="$tmp_nm -B"
4029 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4031 lt_cv_path_NM="$tmp_nm -p"
4035 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4036 continue # so that we can try to find one that supports BSD flags
4043 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4046 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4047 echo "${ECHO_T}$lt_cv_path_NM" >&6
4050 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4051 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4053 if test "$LN_S" = "ln -s"; then
4054 echo "$as_me:$LINENO: result: yes" >&5
4055 echo "${ECHO_T}yes" >&6
4057 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4058 echo "${ECHO_T}no, using $LN_S" >&6
4061 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4062 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4063 if test "${lt_cv_deplibs_check_method+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 lt_cv_file_magic_cmd='$MAGIC_CMD'
4067 lt_cv_file_magic_test_file=
4068 lt_cv_deplibs_check_method='unknown'
4069 # Need to set the preceding variable on all platforms that support
4070 # interlibrary dependencies.
4071 # 'none' -- dependencies not supported.
4072 # `unknown' -- same as none, but documents that we really don't know.
4073 # 'pass_all' -- all dependencies passed with no checks.
4074 # 'test_compile' -- check by making test program.
4075 # 'file_magic [[regex]]' -- check by looking for files in library path
4076 # which responds to the $file_magic_cmd with a given extended regex.
4077 # If you have `file' or equivalent on your system and you're not sure
4078 # whether `pass_all' will *always* work, you probably want this one.
4082 lt_cv_deplibs_check_method=pass_all
4086 lt_cv_deplibs_check_method=pass_all
4090 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4091 lt_cv_file_magic_cmd='/usr/bin/file -L'
4092 lt_cv_file_magic_test_file=/shlib/libc.so
4096 # func_win32_libid is a shell function defined in ltmain.sh
4097 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4098 lt_cv_file_magic_cmd='func_win32_libid'
4102 # Base MSYS/MinGW do not provide the 'file' command needed by
4103 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4104 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4105 lt_cv_file_magic_cmd='$OBJDUMP -f'
4108 darwin* | rhapsody*)
4109 lt_cv_deplibs_check_method=pass_all
4112 freebsd* | kfreebsd*-gnu | dragonfly*)
4113 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4116 # Not sure whether the presence of OpenBSD here was a mistake.
4117 # Let's accept both of them until this is cleared up.
4118 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4119 lt_cv_file_magic_cmd=/usr/bin/file
4120 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4124 lt_cv_deplibs_check_method=pass_all
4129 lt_cv_deplibs_check_method=pass_all
4132 hpux10.20* | hpux11*)
4133 lt_cv_file_magic_cmd=/usr/bin/file
4136 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4137 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4140 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]'
4141 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4144 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4145 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4150 irix5* | irix6* | nonstopux*)
4152 *-32|*"-32 ") libmagic=32-bit;;
4153 *-n32|*"-n32 ") libmagic=N32;;
4154 *-64|*"-64 ") libmagic=64-bit;;
4155 *) libmagic=never-match;;
4157 lt_cv_deplibs_check_method=pass_all
4160 # This must be Linux ELF.
4162 lt_cv_deplibs_check_method=pass_all
4166 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4174 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4175 lt_cv_file_magic_cmd=/usr/bin/file
4176 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4180 lt_cv_deplibs_check_method=unknown
4184 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4185 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4187 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4191 osf3* | osf4* | osf5*)
4192 lt_cv_deplibs_check_method=pass_all
4196 lt_cv_deplibs_check_method=pass_all
4200 lt_cv_deplibs_check_method=pass_all
4203 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4204 case $host_vendor in
4206 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]'
4207 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4210 lt_cv_deplibs_check_method=pass_all
4213 lt_cv_file_magic_cmd='/bin/file'
4214 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4217 lt_cv_file_magic_cmd='/bin/file'
4218 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4219 lt_cv_file_magic_test_file=/lib/libc.so
4222 lt_cv_deplibs_check_method=pass_all
4227 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4228 lt_cv_deplibs_check_method=pass_all
4233 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4234 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4235 file_magic_cmd=$lt_cv_file_magic_cmd
4236 deplibs_check_method=$lt_cv_deplibs_check_method
4237 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4242 # If no C compiler was specified, use CC.
4245 # Allow CC to be a program name with arguments.
4249 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4250 if test "${enable_libtool_lock+set}" = set; then
4251 enableval="$enable_libtool_lock"
4254 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4256 # Some flags need to be propagated to the compiler or linker for good
4260 # Find out which ABI we are using.
4261 echo 'int i;' > conftest.$ac_ext
4262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4263 (eval $ac_compile) 2>&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; then
4267 case `/usr/bin/file conftest.$ac_objext` in
4279 # Find out which ABI we are using.
4280 echo '#line 4280 "configure"' > conftest.$ac_ext
4281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4282 (eval $ac_compile) 2>&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; then
4286 if test "$lt_cv_prog_gnu_ld" = yes; then
4287 case `/usr/bin/file conftest.$ac_objext` in
4289 LD="${LD-ld} -melf32bsmip"
4292 LD="${LD-ld} -melf32bmipn32"
4295 LD="${LD-ld} -melf64bmip"
4299 case `/usr/bin/file conftest.$ac_objext` in
4315 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4316 # Find out which ABI we are using.
4317 echo 'int i;' > conftest.$ac_ext
4318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4319 (eval $ac_compile) 2>&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; then
4323 case "`/usr/bin/file conftest.o`" in
4327 LD="${LD-ld} -m elf_i386"
4329 ppc64-*linux*|powerpc64-*linux*)
4330 LD="${LD-ld} -m elf32ppclinux"
4333 LD="${LD-ld} -m elf_s390"
4336 LD="${LD-ld} -m elf32_sparc"
4343 LD="${LD-ld} -m elf_x86_64"
4345 ppc*-*linux*|powerpc*-*linux*)
4346 LD="${LD-ld} -m elf64ppc"
4349 LD="${LD-ld} -m elf64_s390"
4352 LD="${LD-ld} -m elf64_sparc"
4362 # Test if the compiler is 64bit
4363 echo 'int i;' > conftest.$ac_ext
4364 lt_cv_cc_64bit_output=no
4365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366 (eval $ac_compile) 2>&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; then
4370 case `/usr/bin/file conftest.$ac_objext` in
4372 lt_cv_cc_64bit_output=yes
4380 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4381 SAVE_CFLAGS="$CFLAGS"
4382 CFLAGS="$CFLAGS -belf"
4383 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4384 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4385 if test "${lt_cv_cc_needs_belf+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 ac_cpp='$CPP $CPPFLAGS'
4390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4394 cat >conftest.$ac_ext <<_ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4409 rm -f conftest.$ac_objext conftest$ac_exeext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4411 (eval $ac_link) 2>conftest.er1
4413 grep -v '^ *+' conftest.er1 >conftest.err
4415 cat conftest.err >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } &&
4418 { ac_try='test -z "$ac_c_werror_flag"
4419 || test ! -s conftest.err'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; } &&
4425 { ac_try='test -s conftest$ac_exeext'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 lt_cv_cc_needs_belf=yes
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 lt_cv_cc_needs_belf=no
4438 rm -f conftest.err conftest.$ac_objext \
4439 conftest$ac_exeext conftest.$ac_ext
4441 ac_cpp='$CPP $CPPFLAGS'
4442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4447 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4448 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4449 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4450 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4451 CFLAGS="$SAVE_CFLAGS"
4457 need_locks="$enable_libtool_lock"
4461 ac_cpp='$CPP $CPPFLAGS'
4462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4465 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4466 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4467 # On Suns, sometimes $CPP names a directory.
4468 if test -n "$CPP" && test -d "$CPP"; then
4471 if test -z "$CPP"; then
4472 if test "${ac_cv_prog_CPP+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 # Double quotes because CPP needs to be expanded
4476 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4479 for ac_c_preproc_warn_flag in '' yes
4481 # Use a header file that comes with gcc, so configuring glibc
4482 # with a fresh cross-compiler works.
4483 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4484 # <limits.h> exists even on freestanding compilers.
4485 # On the NeXT, cc -E runs the code through the compiler's parser,
4486 # not just through cpp. "Syntax error" is here to catch this case.
4487 cat >conftest.$ac_ext <<_ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4494 # include <limits.h>
4496 # include <assert.h>
4500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4503 grep -v '^ *+' conftest.er1 >conftest.err
4505 cat conftest.err >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); } >/dev/null; then
4508 if test -s conftest.err; then
4509 ac_cpp_err=$ac_c_preproc_warn_flag
4510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4517 if test -z "$ac_cpp_err"; then
4520 echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4523 # Broken: fails on valid input.
4526 rm -f conftest.err conftest.$ac_ext
4528 # OK, works on sane cases. Now check whether non-existent headers
4529 # can be detected and how.
4530 cat >conftest.$ac_ext <<_ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4536 #include <ac_nonexistent.h>
4538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4541 grep -v '^ *+' conftest.er1 >conftest.err
4543 cat conftest.err >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } >/dev/null; then
4546 if test -s conftest.err; then
4547 ac_cpp_err=$ac_c_preproc_warn_flag
4548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4555 if test -z "$ac_cpp_err"; then
4556 # Broken: success on invalid input.
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4562 # Passes both tests.
4566 rm -f conftest.err conftest.$ac_ext
4569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4570 rm -f conftest.err conftest.$ac_ext
4571 if $ac_preproc_ok; then
4583 echo "$as_me:$LINENO: result: $CPP" >&5
4584 echo "${ECHO_T}$CPP" >&6
4586 for ac_c_preproc_warn_flag in '' yes
4588 # Use a header file that comes with gcc, so configuring glibc
4589 # with a fresh cross-compiler works.
4590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4591 # <limits.h> exists even on freestanding compilers.
4592 # On the NeXT, cc -E runs the code through the compiler's parser,
4593 # not just through cpp. "Syntax error" is here to catch this case.
4594 cat >conftest.$ac_ext <<_ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4601 # include <limits.h>
4603 # include <assert.h>
4607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4610 grep -v '^ *+' conftest.er1 >conftest.err
4612 cat conftest.err >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } >/dev/null; then
4615 if test -s conftest.err; then
4616 ac_cpp_err=$ac_c_preproc_warn_flag
4617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4624 if test -z "$ac_cpp_err"; then
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4630 # Broken: fails on valid input.
4633 rm -f conftest.err conftest.$ac_ext
4635 # OK, works on sane cases. Now check whether non-existent headers
4636 # can be detected and how.
4637 cat >conftest.$ac_ext <<_ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 #include <ac_nonexistent.h>
4645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4648 grep -v '^ *+' conftest.er1 >conftest.err
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } >/dev/null; then
4653 if test -s conftest.err; then
4654 ac_cpp_err=$ac_c_preproc_warn_flag
4655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4662 if test -z "$ac_cpp_err"; then
4663 # Broken: success on invalid input.
4666 echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4669 # Passes both tests.
4673 rm -f conftest.err conftest.$ac_ext
4676 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4677 rm -f conftest.err conftest.$ac_ext
4678 if $ac_preproc_ok; then
4681 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4682 See \`config.log' for more details." >&5
4683 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4684 See \`config.log' for more details." >&2;}
4685 { (exit 1); exit 1; }; }
4689 ac_cpp='$CPP $CPPFLAGS'
4690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4695 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4696 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4697 if test "${ac_cv_header_stdc+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 cat >conftest.$ac_ext <<_ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4719 rm -f conftest.$ac_objext
4720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4721 (eval $ac_compile) 2>conftest.er1
4723 grep -v '^ *+' conftest.er1 >conftest.err
4725 cat conftest.err >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } &&
4728 { ac_try='test -z "$ac_c_werror_flag"
4729 || test ! -s conftest.err'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; } &&
4735 { ac_try='test -s conftest.$ac_objext'
4736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }; }; then
4741 ac_cv_header_stdc=yes
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4746 ac_cv_header_stdc=no
4748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4750 if test $ac_cv_header_stdc = yes; then
4751 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4752 cat >conftest.$ac_ext <<_ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4762 $EGREP "memchr" >/dev/null 2>&1; then
4765 ac_cv_header_stdc=no
4771 if test $ac_cv_header_stdc = yes; then
4772 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4773 cat >conftest.$ac_ext <<_ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4783 $EGREP "free" >/dev/null 2>&1; then
4786 ac_cv_header_stdc=no
4792 if test $ac_cv_header_stdc = yes; then
4793 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4794 if test "$cross_compiling" = yes; then
4797 cat >conftest.$ac_ext <<_ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h. */
4804 #if ((' ' & 0x0FF) == 0x020)
4805 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4806 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4808 # define ISLOWER(c) \
4809 (('a' <= (c) && (c) <= 'i') \
4810 || ('j' <= (c) && (c) <= 'r') \
4811 || ('s' <= (c) && (c) <= 'z'))
4812 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4820 for (i = 0; i < 256; i++)
4821 if (XOR (islower (i), ISLOWER (i))
4822 || toupper (i) != TOUPPER (i))
4827 rm -f conftest$ac_exeext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4829 (eval $ac_link) 2>&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4840 echo "$as_me: program exited with status $ac_status" >&5
4841 echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4845 ac_cv_header_stdc=no
4847 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4851 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4852 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4853 if test $ac_cv_header_stdc = yes; then
4855 cat >>confdefs.h <<\_ACEOF
4856 #define STDC_HEADERS 1
4861 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4871 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4872 inttypes.h stdint.h unistd.h
4874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4875 echo "$as_me:$LINENO: checking for $ac_header" >&5
4876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 cat >conftest.$ac_ext <<_ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4886 $ac_includes_default
4888 #include <$ac_header>
4890 rm -f conftest.$ac_objext
4891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4892 (eval $ac_compile) 2>conftest.er1
4894 grep -v '^ *+' conftest.er1 >conftest.err
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } &&
4899 { ac_try='test -z "$ac_c_werror_flag"
4900 || test ! -s conftest.err'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; } &&
4906 { ac_try='test -s conftest.$ac_objext'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4912 eval "$as_ac_Header=yes"
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4917 eval "$as_ac_Header=no"
4919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4924 cat >>confdefs.h <<_ACEOF
4925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4934 for ac_header in dlfcn.h
4936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4938 echo "$as_me:$LINENO: checking for $ac_header" >&5
4939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4946 # Is the header compilable?
4947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4949 cat >conftest.$ac_ext <<_ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4955 $ac_includes_default
4956 #include <$ac_header>
4958 rm -f conftest.$ac_objext
4959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4960 (eval $ac_compile) 2>conftest.er1
4962 grep -v '^ *+' conftest.er1 >conftest.err
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } &&
4967 { ac_try='test -z "$ac_c_werror_flag"
4968 || test ! -s conftest.err'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; } &&
4974 { ac_try='test -s conftest.$ac_objext'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4980 ac_header_compiler=yes
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4985 ac_header_compiler=no
4987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4989 echo "${ECHO_T}$ac_header_compiler" >&6
4991 # Is the header present?
4992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4994 cat >conftest.$ac_ext <<_ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5000 #include <$ac_header>
5002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5005 grep -v '^ *+' conftest.er1 >conftest.err
5007 cat conftest.err >&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } >/dev/null; then
5010 if test -s conftest.err; then
5011 ac_cpp_err=$ac_c_preproc_warn_flag
5012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5019 if test -z "$ac_cpp_err"; then
5020 ac_header_preproc=yes
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5025 ac_header_preproc=no
5027 rm -f conftest.err conftest.$ac_ext
5028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5029 echo "${ECHO_T}$ac_header_preproc" >&6
5031 # So? What about this header?
5032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5038 ac_header_preproc=yes
5041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5048 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5055 ## -------------------------------------------- ##
5056 ## Report this to sebastian.marsching@suphp.org ##
5057 ## -------------------------------------------- ##
5060 sed "s/^/$as_me: WARNING: /" >&2
5063 echo "$as_me:$LINENO: checking for $ac_header" >&5
5064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 eval "$as_ac_Header=\$ac_header_preproc"
5070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5075 cat >>confdefs.h <<_ACEOF
5076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5085 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5086 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5087 (test "X$CXX" != "Xg++"))) ; then
5089 ac_cpp='$CXXCPP $CPPFLAGS'
5090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5093 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5094 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5095 if test -z "$CXXCPP"; then
5096 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 # Double quotes because CXXCPP needs to be expanded
5100 for CXXCPP in "$CXX -E" "/lib/cpp"
5103 for ac_cxx_preproc_warn_flag in '' yes
5105 # Use a header file that comes with gcc, so configuring glibc
5106 # with a fresh cross-compiler works.
5107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5108 # <limits.h> exists even on freestanding compilers.
5109 # On the NeXT, cc -E runs the code through the compiler's parser,
5110 # not just through cpp. "Syntax error" is here to catch this case.
5111 cat >conftest.$ac_ext <<_ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5118 # include <limits.h>
5120 # include <assert.h>
5124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5127 grep -v '^ *+' conftest.er1 >conftest.err
5129 cat conftest.err >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } >/dev/null; then
5132 if test -s conftest.err; then
5133 ac_cpp_err=$ac_cxx_preproc_warn_flag
5134 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5141 if test -z "$ac_cpp_err"; then
5144 echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5147 # Broken: fails on valid input.
5150 rm -f conftest.err conftest.$ac_ext
5152 # OK, works on sane cases. Now check whether non-existent headers
5153 # can be detected and how.
5154 cat >conftest.$ac_ext <<_ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h. */
5160 #include <ac_nonexistent.h>
5162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5165 grep -v '^ *+' conftest.er1 >conftest.err
5167 cat conftest.err >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); } >/dev/null; then
5170 if test -s conftest.err; then
5171 ac_cpp_err=$ac_cxx_preproc_warn_flag
5172 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5179 if test -z "$ac_cpp_err"; then
5180 # Broken: success on invalid input.
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5186 # Passes both tests.
5190 rm -f conftest.err conftest.$ac_ext
5193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5194 rm -f conftest.err conftest.$ac_ext
5195 if $ac_preproc_ok; then
5200 ac_cv_prog_CXXCPP=$CXXCPP
5203 CXXCPP=$ac_cv_prog_CXXCPP
5205 ac_cv_prog_CXXCPP=$CXXCPP
5207 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5208 echo "${ECHO_T}$CXXCPP" >&6
5210 for ac_cxx_preproc_warn_flag in '' yes
5212 # Use a header file that comes with gcc, so configuring glibc
5213 # with a fresh cross-compiler works.
5214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5215 # <limits.h> exists even on freestanding compilers.
5216 # On the NeXT, cc -E runs the code through the compiler's parser,
5217 # not just through cpp. "Syntax error" is here to catch this case.
5218 cat >conftest.$ac_ext <<_ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5225 # include <limits.h>
5227 # include <assert.h>
5231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5234 grep -v '^ *+' conftest.er1 >conftest.err
5236 cat conftest.err >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } >/dev/null; then
5239 if test -s conftest.err; then
5240 ac_cpp_err=$ac_cxx_preproc_warn_flag
5241 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5248 if test -z "$ac_cpp_err"; then
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5254 # Broken: fails on valid input.
5257 rm -f conftest.err conftest.$ac_ext
5259 # OK, works on sane cases. Now check whether non-existent headers
5260 # can be detected and how.
5261 cat >conftest.$ac_ext <<_ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5267 #include <ac_nonexistent.h>
5269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5272 grep -v '^ *+' conftest.er1 >conftest.err
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } >/dev/null; then
5277 if test -s conftest.err; then
5278 ac_cpp_err=$ac_cxx_preproc_warn_flag
5279 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5286 if test -z "$ac_cpp_err"; then
5287 # Broken: success on invalid input.
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5293 # Passes both tests.
5297 rm -f conftest.err conftest.$ac_ext
5300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5301 rm -f conftest.err conftest.$ac_ext
5302 if $ac_preproc_ok; then
5305 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5306 See \`config.log' for more details." >&5
5307 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5308 See \`config.log' for more details." >&2;}
5309 { (exit 1); exit 1; }; }
5313 ac_cpp='$CXXCPP $CPPFLAGS'
5314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5322 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5323 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5324 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5325 if test -n "$ac_tool_prefix"; then
5326 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5328 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5329 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5330 echo "$as_me:$LINENO: checking for $ac_word" >&5
5331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5332 if test "${ac_cv_prog_F77+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 if test -n "$F77"; then
5336 ac_cv_prog_F77="$F77" # Let the user override the test.
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 test -z "$as_dir" && as_dir=.
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 if test -n "$F77"; then
5356 echo "$as_me:$LINENO: result: $F77" >&5
5357 echo "${ECHO_T}$F77" >&6
5359 echo "$as_me:$LINENO: result: no" >&5
5360 echo "${ECHO_T}no" >&6
5363 test -n "$F77" && break
5366 if test -z "$F77"; then
5368 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5370 # Extract the first word of "$ac_prog", so it can be a program name with args.
5371 set dummy $ac_prog; ac_word=$2
5372 echo "$as_me:$LINENO: checking for $ac_word" >&5
5373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5374 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 if test -n "$ac_ct_F77"; then
5378 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 test -z "$as_dir" && as_dir=.
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5387 ac_cv_prog_ac_ct_F77="$ac_prog"
5388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5397 if test -n "$ac_ct_F77"; then
5398 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5399 echo "${ECHO_T}$ac_ct_F77" >&6
5401 echo "$as_me:$LINENO: result: no" >&5
5402 echo "${ECHO_T}no" >&6
5405 test -n "$ac_ct_F77" && break
5412 # Provide some information about the compiler.
5413 echo "$as_me:5413:" \
5414 "checking for Fortran 77 compiler version" >&5
5415 ac_compiler=`set X $ac_compile; echo $2`
5416 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5417 (eval $ac_compiler --version </dev/null >&5) 2>&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }
5421 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5422 (eval $ac_compiler -v </dev/null >&5) 2>&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }
5426 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5427 (eval $ac_compiler -V </dev/null >&5) 2>&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }
5433 # If we don't use `.F' as extension, the preprocessor is not run on the
5434 # input file. (Note that this only needs to work for GNU compilers.)
5437 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5438 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5439 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 cat >conftest.$ac_ext <<_ACEOF
5450 rm -f conftest.$ac_objext
5451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5452 (eval $ac_compile) 2>conftest.er1
5454 grep -v '^ *+' conftest.er1 >conftest.err
5456 cat conftest.err >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } &&
5459 { ac_try='test -z "$ac_f77_werror_flag"
5460 || test ! -s conftest.err'
5461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; } &&
5466 { ac_try='test -s conftest.$ac_objext'
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; }; then
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5480 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5483 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5484 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5486 ac_test_FFLAGS=${FFLAGS+set}
5487 ac_save_FFLAGS=$FFLAGS
5489 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5490 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5491 if test "${ac_cv_prog_f77_g+set}" = set; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 cat >conftest.$ac_ext <<_ACEOF
5500 rm -f conftest.$ac_objext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5502 (eval $ac_compile) 2>conftest.er1
5504 grep -v '^ *+' conftest.er1 >conftest.err
5506 cat conftest.err >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } &&
5509 { ac_try='test -z "$ac_f77_werror_flag"
5510 || test ! -s conftest.err'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; } &&
5516 { ac_try='test -s conftest.$ac_objext'
5517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; }; then
5522 ac_cv_prog_f77_g=yes
5524 echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5532 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5533 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5534 if test "$ac_test_FFLAGS" = set; then
5535 FFLAGS=$ac_save_FFLAGS
5536 elif test $ac_cv_prog_f77_g = yes; then
5537 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5543 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5550 G77=`test $ac_compiler_gnu = yes && echo yes`
5552 ac_cpp='$CPP $CPPFLAGS'
5553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5559 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5561 # find the maximum length of command line arguments
5562 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5563 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5564 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 # On DJGPP, this test can blow up pretty badly due to problems in libc
5573 # (any single argument exceeding 2000 bytes causes a buffer overrun
5574 # during glob expansion). Even if it were fixed, the result of this
5575 # check would be larger than it should be.
5576 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5580 # Under GNU Hurd, this test is not required because there is
5581 # no limit to the length of command line arguments.
5582 # Libtool will interpret -1 as no limit whatsoever
5583 lt_cv_sys_max_cmd_len=-1;
5587 # On Win9x/ME, this test blows up -- it succeeds, but takes
5588 # about 5 minutes as the teststring grows exponentially.
5589 # Worse, since 9x/ME are not pre-emptively multitasking,
5590 # you end up with a "frozen" computer, even though with patience
5591 # the test eventually succeeds (with a max line length of 256k).
5592 # Instead, let's just punt: use the minimum linelength reported by
5593 # all of the supported platforms: 8192 (on NT/2K/XP).
5594 lt_cv_sys_max_cmd_len=8192;
5598 # On AmigaOS with pdksh, this test takes hours, literally.
5599 # So we just punt and use a minimum line length of 8192.
5600 lt_cv_sys_max_cmd_len=8192;
5603 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5604 # This has been around since 386BSD, at least. Likely further.
5605 if test -x /sbin/sysctl; then
5606 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5607 elif test -x /usr/sbin/sysctl; then
5608 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5610 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5612 # And add a safety zone
5613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5614 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5617 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5618 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5619 # nice to cause kernel panics so lets avoid the loop below.
5620 # First set a reasonable default.
5621 lt_cv_sys_max_cmd_len=16384
5623 if test -x /sbin/sysconfig; then
5624 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5625 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5630 # If test is not a shell built-in, we'll probably end up computing a
5631 # maximum length that is only half of the actual maximum length, but
5633 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5634 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5635 = "XX$teststring") >/dev/null 2>&1 &&
5636 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5637 lt_cv_sys_max_cmd_len=$new_result &&
5638 test $i != 17 # 1/2 MB should be enough
5641 teststring=$teststring$teststring
5644 # Add a significant safety factor because C++ compilers can tack on massive
5645 # amounts of additional arguments before passing them to the linker.
5646 # It appears as though 1/2 is a usable value.
5647 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5653 if test -n $lt_cv_sys_max_cmd_len ; then
5654 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5655 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5657 echo "$as_me:$LINENO: result: none" >&5
5658 echo "${ECHO_T}none" >&6
5664 # Check for command to grab the raw symbol name followed by C symbol from nm.
5665 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5666 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5667 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 # These are sane defaults that work on at least a few old systems.
5672 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5674 # Character class describing NM global symbol codes.
5675 symcode='[BCDEGRST]'
5677 # Regexp to match symbols that can be accessed directly from C.
5678 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5680 # Transform an extracted symbol line into a proper C declaration
5681 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5683 # Transform an extracted symbol line into symbol name and symbol address
5684 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'"
5686 # Define system-specific variables.
5691 cygwin* | mingw* | pw32*)
5692 symcode='[ABCDGISTW]'
5694 hpux*) # Its linker distinguishes data from code symbols
5695 if test "$host_cpu" = ia64; then
5696 symcode='[ABCDEGRST]'
5698 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5699 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'"
5702 if test "$host_cpu" = ia64; then
5703 symcode='[ABCDGIRSTW]'
5704 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5705 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'"
5709 symcode='[BCDEGRST]'
5712 symcode='[BCDEGQRST]'
5722 # Handle CRLF in mingw tool chain
5726 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5730 # If we're using GNU nm, then use its standard symbol codes.
5731 case `$NM -V 2>&1` in
5732 *GNU* | *'with BFD'*)
5733 symcode='[ABCDGIRSTW]' ;;
5736 # Try without a prefix undercore, then with it.
5737 for ac_symprfx in "" "_"; do
5739 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5740 symxfrm="\\1 $ac_symprfx\\2 \\2"
5742 # Write the raw and C identifiers.
5743 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5745 # Check to see that the pipe works correctly.
5749 cat > conftest.$ac_ext <<EOF
5754 void nm_test_func(){}
5758 int main(){nm_test_var='a';nm_test_func();return(0);}
5761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5762 (eval $ac_compile) 2>&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }; then
5766 # Now try to grab the symbols.
5768 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5769 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } && test -s "$nlist"; then
5773 # Try sorting and uniquifying the output.
5774 if sort "$nlist" | uniq > "$nlist"T; then
5775 mv -f "$nlist"T "$nlist"
5780 # Make sure that we snagged all the symbols we need.
5781 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5782 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5783 cat <<EOF > conftest.$ac_ext
5789 # Now generate the symbol file.
5790 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5792 cat <<EOF >> conftest.$ac_ext
5793 #if defined (__STDC__) && __STDC__
5794 # define lt_ptr_t void *
5796 # define lt_ptr_t char *
5800 /* The mapping between symbol names and symbols. */
5805 lt_preloaded_symbols[] =
5808 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5809 cat <<\EOF >> conftest.$ac_ext
5817 # Now try linking the two files.
5818 mv conftest.$ac_objext conftstm.$ac_objext
5819 lt_save_LIBS="$LIBS"
5820 lt_save_CFLAGS="$CFLAGS"
5821 LIBS="conftstm.$ac_objext"
5822 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5824 (eval $ac_link) 2>&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5830 LIBS="$lt_save_LIBS"
5831 CFLAGS="$lt_save_CFLAGS"
5833 echo "cannot find nm_test_func in $nlist" >&5
5836 echo "cannot find nm_test_var in $nlist" >&5
5839 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5842 echo "$progname: failed program was:" >&5
5843 cat conftest.$ac_ext >&5
5845 rm -f conftest* conftst*
5847 # Do not use the global_symbol_pipe unless it works.
5848 if test "$pipe_works" = yes; then
5851 lt_cv_sys_global_symbol_pipe=
5857 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5858 lt_cv_sys_global_symbol_to_cdecl=
5860 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5861 echo "$as_me:$LINENO: result: failed" >&5
5862 echo "${ECHO_T}failed" >&6
5864 echo "$as_me:$LINENO: result: ok" >&5
5865 echo "${ECHO_T}ok" >&6
5868 echo "$as_me:$LINENO: checking for objdir" >&5
5869 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5870 if test "${lt_cv_objdir+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 rm -f .libs 2>/dev/null
5874 mkdir .libs 2>/dev/null
5875 if test -d .libs; then
5878 # MS-DOS does not allow filenames that begin with a dot.
5881 rmdir .libs 2>/dev/null
5883 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5884 echo "${ECHO_T}$lt_cv_objdir" >&6
5885 objdir=$lt_cv_objdir
5893 # AIX sometimes has problems with the GCC collect2 program. For some
5894 # reason, if we set the COLLECT_NAMES environment variable, the problems
5895 # vanish in a puff of smoke.
5896 if test "X${COLLECT_NAMES+set}" != Xset; then
5898 export COLLECT_NAMES
5903 # Sed substitution that helps us do robust quoting. It backslashifies
5904 # metacharacters that are still active within double-quoted strings.
5905 Xsed='sed -e 1s/^X//'
5906 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5908 # Same as above, but do not quote variable references.
5909 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5911 # Sed substitution to delay expansion of an escaped shell variable in a
5912 # double_quote_subst'ed string.
5913 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5915 # Sed substitution to avoid accidental globbing in evaled expressions
5916 no_glob_subst='s/\*/\\\*/g'
5922 default_ofile=libtool
5923 can_build_shared=yes
5925 # All known linkers require a `.a' archive for static linking (except M$VC,
5926 # which needs '.lib').
5928 ltmain="$ac_aux_dir/ltmain.sh"
5929 ofile="$default_ofile"
5930 with_gnu_ld="$lt_cv_prog_gnu_ld"
5932 if test -n "$ac_tool_prefix"; then
5933 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5934 set dummy ${ac_tool_prefix}ar; ac_word=$2
5935 echo "$as_me:$LINENO: checking for $ac_word" >&5
5936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5937 if test "${ac_cv_prog_AR+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 if test -n "$AR"; then
5941 ac_cv_prog_AR="$AR" # Let the user override the test.
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5950 ac_cv_prog_AR="${ac_tool_prefix}ar"
5951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 if test -n "$AR"; then
5961 echo "$as_me:$LINENO: result: $AR" >&5
5962 echo "${ECHO_T}$AR" >&6
5964 echo "$as_me:$LINENO: result: no" >&5
5965 echo "${ECHO_T}no" >&6
5969 if test -z "$ac_cv_prog_AR"; then
5971 # Extract the first word of "ar", so it can be a program name with args.
5972 set dummy ar; ac_word=$2
5973 echo "$as_me:$LINENO: checking for $ac_word" >&5
5974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5975 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 if test -n "$ac_ct_AR"; then
5979 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988 ac_cv_prog_ac_ct_AR="ar"
5989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5998 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5999 if test -n "$ac_ct_AR"; then
6000 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6001 echo "${ECHO_T}$ac_ct_AR" >&6
6003 echo "$as_me:$LINENO: result: no" >&5
6004 echo "${ECHO_T}no" >&6
6012 if test -n "$ac_tool_prefix"; then
6013 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6014 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6015 echo "$as_me:$LINENO: checking for $ac_word" >&5
6016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6017 if test "${ac_cv_prog_RANLIB+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 if test -n "$RANLIB"; then
6021 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6030 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 RANLIB=$ac_cv_prog_RANLIB
6040 if test -n "$RANLIB"; then
6041 echo "$as_me:$LINENO: result: $RANLIB" >&5
6042 echo "${ECHO_T}$RANLIB" >&6
6044 echo "$as_me:$LINENO: result: no" >&5
6045 echo "${ECHO_T}no" >&6
6049 if test -z "$ac_cv_prog_RANLIB"; then
6050 ac_ct_RANLIB=$RANLIB
6051 # Extract the first word of "ranlib", so it can be a program name with args.
6052 set dummy ranlib; ac_word=$2
6053 echo "$as_me:$LINENO: checking for $ac_word" >&5
6054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6055 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 if test -n "$ac_ct_RANLIB"; then
6059 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6068 ac_cv_prog_ac_ct_RANLIB="ranlib"
6069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6078 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6079 if test -n "$ac_ct_RANLIB"; then
6080 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6081 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6083 echo "$as_me:$LINENO: result: no" >&5
6084 echo "${ECHO_T}no" >&6
6087 RANLIB=$ac_ct_RANLIB
6089 RANLIB="$ac_cv_prog_RANLIB"
6092 if test -n "$ac_tool_prefix"; then
6093 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6094 set dummy ${ac_tool_prefix}strip; ac_word=$2
6095 echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6097 if test "${ac_cv_prog_STRIP+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 if test -n "$STRIP"; then
6101 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6110 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6119 STRIP=$ac_cv_prog_STRIP
6120 if test -n "$STRIP"; then
6121 echo "$as_me:$LINENO: result: $STRIP" >&5
6122 echo "${ECHO_T}$STRIP" >&6
6124 echo "$as_me:$LINENO: result: no" >&5
6125 echo "${ECHO_T}no" >&6
6129 if test -z "$ac_cv_prog_STRIP"; then
6131 # Extract the first word of "strip", so it can be a program name with args.
6132 set dummy strip; ac_word=$2
6133 echo "$as_me:$LINENO: checking for $ac_word" >&5
6134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6135 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 if test -n "$ac_ct_STRIP"; then
6139 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148 ac_cv_prog_ac_ct_STRIP="strip"
6149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6158 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6159 if test -n "$ac_ct_STRIP"; then
6160 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6161 echo "${ECHO_T}$ac_ct_STRIP" >&6
6163 echo "$as_me:$LINENO: result: no" >&5
6164 echo "${ECHO_T}no" >&6
6169 STRIP="$ac_cv_prog_STRIP"
6174 old_CFLAGS="$CFLAGS"
6176 # Set sane defaults for various variables
6177 test -z "$AR" && AR=ar
6178 test -z "$AR_FLAGS" && AR_FLAGS=cru
6179 test -z "$AS" && AS=as
6180 test -z "$CC" && CC=cc
6181 test -z "$LTCC" && LTCC=$CC
6182 test -z "$DLLTOOL" && DLLTOOL=dlltool
6183 test -z "$LD" && LD=ld
6184 test -z "$LN_S" && LN_S="ln -s"
6185 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6186 test -z "$NM" && NM=nm
6187 test -z "$SED" && SED=sed
6188 test -z "$OBJDUMP" && OBJDUMP=objdump
6189 test -z "$RANLIB" && RANLIB=:
6190 test -z "$STRIP" && STRIP=:
6191 test -z "$ac_objext" && ac_objext=o
6193 # Determine commands to create old-style static archives.
6194 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6195 old_postinstall_cmds='chmod 644 $oldlib'
6196 old_postuninstall_cmds=
6198 if test -n "$RANLIB"; then
6201 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6204 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6207 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6210 for cc_temp in $compiler""; do
6212 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6213 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6218 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6221 # Only perform the check for file, if the check method requires it
6222 case $deplibs_check_method in
6224 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6225 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6226 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6227 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6235 lt_save_MAGIC_CMD="$MAGIC_CMD"
6236 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6237 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6238 for ac_dir in $ac_dummy; do
6240 test -z "$ac_dir" && ac_dir=.
6241 if test -f $ac_dir/${ac_tool_prefix}file; then
6242 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6243 if test -n "$file_magic_test_file"; then
6244 case $deplibs_check_method in
6246 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6248 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6249 $EGREP "$file_magic_regex" > /dev/null; then
6254 *** Warning: the command libtool uses to detect shared libraries,
6255 *** $file_magic_cmd, produces output that libtool cannot recognize.
6256 *** The result is that libtool may fail to recognize shared libraries
6257 *** as such. This will affect the creation of libtool libraries that
6258 *** depend on shared libraries, but programs linked with such libtool
6259 *** libraries will work regardless of this problem. Nevertheless, you
6260 *** may want to report the problem to your system manager and/or to
6261 *** bug-libtool@gnu.org
6271 MAGIC_CMD="$lt_save_MAGIC_CMD"
6276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6277 if test -n "$MAGIC_CMD"; then
6278 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6279 echo "${ECHO_T}$MAGIC_CMD" >&6
6281 echo "$as_me:$LINENO: result: no" >&5
6282 echo "${ECHO_T}no" >&6
6285 if test -z "$lt_cv_path_MAGIC_CMD"; then
6286 if test -n "$ac_tool_prefix"; then
6287 echo "$as_me:$LINENO: checking for file" >&5
6288 echo $ECHO_N "checking for file... $ECHO_C" >&6
6289 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6297 lt_save_MAGIC_CMD="$MAGIC_CMD"
6298 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6299 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6300 for ac_dir in $ac_dummy; do
6302 test -z "$ac_dir" && ac_dir=.
6303 if test -f $ac_dir/file; then
6304 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6305 if test -n "$file_magic_test_file"; then
6306 case $deplibs_check_method in
6308 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6310 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6311 $EGREP "$file_magic_regex" > /dev/null; then
6316 *** Warning: the command libtool uses to detect shared libraries,
6317 *** $file_magic_cmd, produces output that libtool cannot recognize.
6318 *** The result is that libtool may fail to recognize shared libraries
6319 *** as such. This will affect the creation of libtool libraries that
6320 *** depend on shared libraries, but programs linked with such libtool
6321 *** libraries will work regardless of this problem. Nevertheless, you
6322 *** may want to report the problem to your system manager and/or to
6323 *** bug-libtool@gnu.org
6333 MAGIC_CMD="$lt_save_MAGIC_CMD"
6338 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6339 if test -n "$MAGIC_CMD"; then
6340 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6341 echo "${ECHO_T}$MAGIC_CMD" >&6
6343 echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6
6359 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6360 if test "${enable_libtool_lock+set}" = set; then
6361 enableval="$enable_libtool_lock"
6364 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6367 # Check whether --with-pic or --without-pic was given.
6368 if test "${with_pic+set}" = set; then
6374 test -z "$pic_mode" && pic_mode=default
6376 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6378 # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6379 # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6380 # calls AC_LIBTOOL_CONFIG and creates libtool.
6382 echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6383 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6
6384 if test -z "$ltmain"; then
6385 echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6
6388 echo "*** Gentoo sanity check failed! ***"
6389 echo "*** \$ltmain is not defined, please check the patch for consistency! ***"
6393 gentoo_lt_version="1.5.18"
6394 gentoo_ltmain_version=`grep '^[:space:]*VERSION=' $ltmain | sed -e 's|^[:space:]*VERSION=||'`
6395 if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then
6396 echo "$as_me:$LINENO: result: no" >&5
6397 echo "${ECHO_T}no" >&6
6399 echo "*** Gentoo sanity check failed! ***"
6400 echo "*** libtool.m4 and ltmain.sh have a version mismatch! ***"
6401 echo "*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***"
6405 echo " libtoolize --copy --force"
6407 echo "if appropriate, please contact the maintainer of this"
6408 echo "package (or your distribution) for help."
6412 echo "$as_me:$LINENO: result: yes" >&5
6413 echo "${ECHO_T}yes" >&6
6417 # Use C for the default configuration in the libtool script
6421 ac_cpp='$CPP $CPPFLAGS'
6422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6427 # Source file extension for C test sources.
6430 # Object file extension for compiled C test sources.
6434 # Code to be used in simple compile tests
6435 lt_simple_compile_test_code="int some_variable = 0;\n"
6437 # Code to be used in simple link tests
6438 lt_simple_link_test_code='int main(){return(0);}\n'
6441 # If no C compiler was specified, use CC.
6444 # Allow CC to be a program name with arguments.
6448 # save warnings/boilerplate of simple test code
6449 ac_outfile=conftest.$ac_objext
6450 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6451 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6452 _lt_compiler_boilerplate=`cat conftest.err`
6455 ac_outfile=conftest.$ac_objext
6456 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6457 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6458 _lt_linker_boilerplate=`cat conftest.err`
6463 # Check for any special shared library compilation flags.
6466 if test "$GCC" = no; then
6469 lt_prog_cc_shlib='-belf'
6473 if test -n "$lt_prog_cc_shlib"; then
6474 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6475 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6476 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6478 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6479 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6480 lt_cv_prog_cc_can_build_shared=no
6486 # Check to make sure the static flag actually works.
6488 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6489 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6490 if test "${lt_prog_compiler_static_works+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 lt_prog_compiler_static_works=no
6494 save_LDFLAGS="$LDFLAGS"
6495 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6496 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6497 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6498 # The compiler can only warn and ignore the option if not recognized
6499 # So say no if there are warnings
6500 if test -s conftest.err; then
6501 # Append any errors to the config.log.
6502 cat conftest.err 1>&5
6503 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6504 $SED '/^$/d' conftest.err >conftest.er2
6505 if diff conftest.exp conftest.er2 >/dev/null; then
6506 lt_prog_compiler_static_works=yes
6509 lt_prog_compiler_static_works=yes
6513 LDFLAGS="$save_LDFLAGS"
6516 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6517 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6519 if test x"$lt_prog_compiler_static_works" = xyes; then
6522 lt_prog_compiler_static=
6528 lt_prog_compiler_no_builtin_flag=
6530 if test "$GCC" = yes; then
6531 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6534 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6535 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6536 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 lt_cv_prog_compiler_rtti_exceptions=no
6540 ac_outfile=conftest.$ac_objext
6541 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6542 lt_compiler_flag="-fno-rtti -fno-exceptions"
6543 # Insert the option either (1) after the last *FLAGS variable, or
6544 # (2) before a word containing "conftest.", or (3) at the end.
6545 # Note that $ac_compile itself does not contain backslashes and begins
6546 # with a dollar sign (not a hyphen), so the echo should work correctly.
6547 # The option is referenced via a variable to avoid confusing sed.
6548 lt_compile=`echo "$ac_compile" | $SED \
6549 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6551 -e 's:$: $lt_compiler_flag:'`
6552 (eval echo "\"\$as_me:6552: $lt_compile\"" >&5)
6553 (eval "$lt_compile" 2>conftest.err)
6555 cat conftest.err >&5
6556 echo "$as_me:6556: \$? = $ac_status" >&5
6557 if (exit $ac_status) && test -s "$ac_outfile"; then
6558 # The compiler can only warn and ignore the option if not recognized
6559 # So say no if there are warnings other than the usual output.
6560 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6561 $SED '/^$/d' conftest.err >conftest.er2
6562 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6563 lt_cv_prog_compiler_rtti_exceptions=yes
6569 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6570 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6572 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6573 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6580 lt_prog_compiler_wl=
6581 lt_prog_compiler_pic=
6582 lt_prog_compiler_static=
6584 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6585 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6587 if test "$GCC" = yes; then
6588 lt_prog_compiler_wl='-Wl,'
6589 lt_prog_compiler_static='-static'
6593 # All AIX code is PIC.
6594 if test "$host_cpu" = ia64; then
6595 # AIX 5 now supports IA64 processor
6596 lt_prog_compiler_static='-Bstatic'
6601 # FIXME: we need at least 68020 code to build shared libraries, but
6602 # adding the `-m68020' flag to GCC prevents building anything better,
6604 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6607 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6608 # PIC is the default for these OSes.
6611 mingw* | pw32* | os2*)
6612 # This hack is so that the source file can tell whether it is being
6613 # built for inclusion in a dll (and should export symbols for example).
6614 lt_prog_compiler_pic='-DDLL_EXPORT'
6617 darwin* | rhapsody*)
6618 # PIC is the default on this platform
6619 # Common symbols not allowed in MH_DYLIB files
6620 lt_prog_compiler_pic='-fno-common'
6624 # Just because we use GCC doesn't mean we suddenly get shared libraries
6625 # on systems that don't support them.
6626 lt_prog_compiler_can_build_shared=no
6631 if test -d /usr/nec; then
6632 lt_prog_compiler_pic=-Kconform_pic
6637 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6644 lt_prog_compiler_pic='-fPIC'
6650 lt_prog_compiler_pic='-fPIC'
6654 # PORTME Check for flag to pass linker flags through the system compiler.
6657 lt_prog_compiler_wl='-Wl,'
6658 if test "$host_cpu" = ia64; then
6659 # AIX 5 now supports IA64 processor
6660 lt_prog_compiler_static='-Bstatic'
6662 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6666 # PIC is the default on this platform
6667 # Common symbols not allowed in MH_DYLIB files
6668 case $cc_basename in
6670 lt_prog_compiler_pic='-qnocommon'
6671 lt_prog_compiler_wl='-Wl,'
6676 mingw* | pw32* | os2*)
6677 # This hack is so that the source file can tell whether it is being
6678 # built for inclusion in a dll (and should export symbols for example).
6679 lt_prog_compiler_pic='-DDLL_EXPORT'
6682 hpux9* | hpux10* | hpux11*)
6683 lt_prog_compiler_wl='-Wl,'
6684 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6691 lt_prog_compiler_pic='+Z'
6694 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6695 lt_prog_compiler_static='${wl}-a ${wl}archive'
6698 irix5* | irix6* | nonstopux*)
6699 lt_prog_compiler_wl='-Wl,'
6700 # PIC (with -KPIC) is the default.
6701 lt_prog_compiler_static='-non_shared'
6705 lt_prog_compiler_pic='-KPIC'
6706 lt_prog_compiler_static='-Bstatic'
6710 case $cc_basename in
6712 lt_prog_compiler_wl='-Wl,'
6713 lt_prog_compiler_pic='-KPIC'
6714 lt_prog_compiler_static='-static'
6716 pgcc* | pgf77* | pgf90*)
6717 # Portland Group compilers (*not* the Pentium gcc compiler,
6718 # which looks to be a dead project)
6719 lt_prog_compiler_wl='-Wl,'
6720 lt_prog_compiler_pic='-fpic'
6721 lt_prog_compiler_static='-static'
6724 lt_prog_compiler_wl='-Wl,'
6725 # All Alpha code is PIC.
6726 lt_prog_compiler_static='-non_shared'
6731 osf3* | osf4* | osf5*)
6732 lt_prog_compiler_wl='-Wl,'
6733 # All OSF/1 code is PIC.
6734 lt_prog_compiler_static='-non_shared'
6738 lt_prog_compiler_pic='-Kpic'
6739 lt_prog_compiler_static='-dn'
6743 lt_prog_compiler_pic='-KPIC'
6744 lt_prog_compiler_static='-Bstatic'
6745 case $cc_basename in
6747 lt_prog_compiler_wl='-Qoption ld ';;
6749 lt_prog_compiler_wl='-Wl,';;
6754 lt_prog_compiler_wl='-Qoption ld '
6755 lt_prog_compiler_pic='-PIC'
6756 lt_prog_compiler_static='-Bstatic'
6759 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6760 lt_prog_compiler_wl='-Wl,'
6761 lt_prog_compiler_pic='-KPIC'
6762 lt_prog_compiler_static='-Bstatic'
6766 if test -d /usr/nec ;then
6767 lt_prog_compiler_pic='-Kconform_pic'
6768 lt_prog_compiler_static='-Bstatic'
6773 lt_prog_compiler_wl='-Wl,'
6774 lt_prog_compiler_can_build_shared=no
6778 lt_prog_compiler_pic='-pic'
6779 lt_prog_compiler_static='-Bstatic'
6783 lt_prog_compiler_can_build_shared=no
6788 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6789 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6792 # Check to make sure the PIC flag actually works.
6794 if test -n "$lt_prog_compiler_pic"; then
6796 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6797 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6798 if test "${lt_prog_compiler_pic_works+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 lt_prog_compiler_pic_works=no
6802 ac_outfile=conftest.$ac_objext
6803 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6804 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6805 # Insert the option either (1) after the last *FLAGS variable, or
6806 # (2) before a word containing "conftest.", or (3) at the end.
6807 # Note that $ac_compile itself does not contain backslashes and begins
6808 # with a dollar sign (not a hyphen), so the echo should work correctly.
6809 # The option is referenced via a variable to avoid confusing sed.
6810 lt_compile=`echo "$ac_compile" | $SED \
6811 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6813 -e 's:$: $lt_compiler_flag:'`
6814 (eval echo "\"\$as_me:6814: $lt_compile\"" >&5)
6815 (eval "$lt_compile" 2>conftest.err)
6817 cat conftest.err >&5
6818 echo "$as_me:6818: \$? = $ac_status" >&5
6819 if (exit $ac_status) && test -s "$ac_outfile"; then
6820 # The compiler can only warn and ignore the option if not recognized
6821 # So say no if there are warnings other than the usual output.
6822 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6823 $SED '/^$/d' conftest.err >conftest.er2
6824 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6825 lt_prog_compiler_pic_works=yes
6831 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6832 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6834 if test x"$lt_prog_compiler_pic_works" = xyes; then
6835 case $lt_prog_compiler_pic in
6837 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6840 lt_prog_compiler_pic=
6841 lt_prog_compiler_can_build_shared=no
6846 # For platforms which do not support PIC, -DPIC is meaningless:
6848 lt_prog_compiler_pic=
6851 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6855 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6856 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6857 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 lt_cv_prog_compiler_c_o=no
6861 $rm -r conftest 2>/dev/null
6865 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6867 lt_compiler_flag="-o out/conftest2.$ac_objext"
6868 # Insert the option either (1) after the last *FLAGS variable, or
6869 # (2) before a word containing "conftest.", or (3) at the end.
6870 # Note that $ac_compile itself does not contain backslashes and begins
6871 # with a dollar sign (not a hyphen), so the echo should work correctly.
6872 lt_compile=`echo "$ac_compile" | $SED \
6873 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6875 -e 's:$: $lt_compiler_flag:'`
6876 (eval echo "\"\$as_me:6876: $lt_compile\"" >&5)
6877 (eval "$lt_compile" 2>out/conftest.err)
6879 cat out/conftest.err >&5
6880 echo "$as_me:6880: \$? = $ac_status" >&5
6881 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6883 # The compiler can only warn and ignore the option if not recognized
6884 # So say no if there are warnings
6885 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6886 $SED '/^$/d' out/conftest.err >out/conftest.er2
6887 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6888 lt_cv_prog_compiler_c_o=yes
6893 # SGI C++ compiler will create directory out/ii_files/ for
6894 # template instantiation
6895 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6896 $rm out/* && rmdir out
6902 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6903 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6906 hard_links="nottested"
6907 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6908 # do not overwrite the value of need_locks provided by the user
6909 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6910 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6913 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6915 ln conftest.a conftest.b 2>&5 || hard_links=no
6916 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6917 echo "$as_me:$LINENO: result: $hard_links" >&5
6918 echo "${ECHO_T}$hard_links" >&6
6919 if test "$hard_links" = no; then
6920 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6921 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6928 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6929 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6932 allow_undefined_flag=
6933 enable_shared_with_static_runtimes=no
6935 archive_expsym_cmds=
6936 old_archive_From_new_cmds=
6937 old_archive_from_expsyms_cmds=
6938 export_dynamic_flag_spec=
6939 whole_archive_flag_spec=
6940 thread_safe_flag_spec=
6941 hardcode_libdir_flag_spec=
6942 hardcode_libdir_flag_spec_ld=
6943 hardcode_libdir_separator=
6946 hardcode_shlibpath_var=unsupported
6947 link_all_deplibs=unknown
6948 hardcode_automatic=no
6951 always_export_symbols=no
6952 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6953 # include_expsyms should be a list of space-separated symbols to be *always*
6954 # included in the symbol list
6956 # exclude_expsyms can be an extended regexp of symbols to exclude
6957 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6958 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6959 # as well as any symbol that contains `d'.
6960 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6961 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6962 # platforms (ab)use it in PIC code, but their linkers get confused if
6963 # the symbol is explicitly referenced. Since portable code cannot
6964 # rely on this symbol name, it's probably fine to never include it in
6965 # preloaded symbol tables.
6966 extract_expsyms_cmds=
6967 # Just being paranoid about ensuring that cc_basename is set.
6968 for cc_temp in $compiler""; do
6970 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6971 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6976 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6979 cygwin* | mingw* | pw32*)
6980 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6981 # When not using gcc, we currently assume that we are using
6982 # Microsoft Visual C++.
6983 if test "$GCC" != yes; then
6993 if test "$with_gnu_ld" = yes; then
6994 # If archive_cmds runs LD, not CC, wlarc should be empty
6997 # Set some defaults for GNU ld with shared library support. These
6998 # are reset later if shared libraries are not supported. Putting them
6999 # here allows them to be overridden if necessary.
7000 runpath_var=LD_RUN_PATH
7001 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7002 export_dynamic_flag_spec='${wl}--export-dynamic'
7003 # ancient GNU ld didn't support --whole-archive et. al.
7004 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7005 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7007 whole_archive_flag_spec=
7009 supports_anon_versioning=no
7010 case `$LD -v 2>/dev/null` in
7011 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7012 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7013 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7014 *\ 2.11.*) ;; # other 2.11 versions
7015 *) supports_anon_versioning=yes ;;
7018 # See if GNU ld supports shared libraries.
7020 aix3* | aix4* | aix5*)
7021 # On AIX/PPC, the GNU linker is very broken
7022 if test "$host_cpu" != ia64; then
7026 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7027 *** to be unable to reliably create shared libraries on AIX.
7028 *** Therefore, libtool is disabling shared libraries support. If you
7029 *** really care for shared libraries, you may want to modify your PATH
7030 *** so that a non-GNU linker is found, and then restart.
7037 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)'
7038 hardcode_libdir_flag_spec='-L$libdir'
7039 hardcode_minus_L=yes
7041 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7042 # that the semantics of dynamic libraries on AmigaOS, at least up
7043 # to version 4, is to share data among multiple programs linked
7044 # with the same dynamic library. Since this doesn't match the
7045 # behavior of shared libraries on other platforms, we can't use
7051 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7052 allow_undefined_flag=unsupported
7053 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7054 # support --undefined. This deserves some investigation. FIXME
7055 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7061 cygwin* | mingw* | pw32*)
7062 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7063 # as there is no search path for DLLs.
7064 hardcode_libdir_flag_spec='-L$libdir'
7065 allow_undefined_flag=unsupported
7066 always_export_symbols=no
7067 enable_shared_with_static_runtimes=yes
7068 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7070 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7071 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7072 # If the export-symbols file already is a .def file (1st line
7073 # is EXPORTS), use it as is; otherwise, prepend...
7074 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7075 cp $export_symbols $output_objdir/$soname.def;
7077 echo EXPORTS > $output_objdir/$soname.def;
7078 cat $export_symbols >> $output_objdir/$soname.def;
7080 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7087 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7089 case $cc_basename,$host_cpu in
7090 pgcc*) # Portland Group C compiler
7091 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'
7092 tmp_addflag=' $pic_flag'
7094 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
7095 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'
7096 tmp_addflag=' $pic_flag -Mnomain' ;;
7097 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7098 tmp_addflag=' -i_dynamic' ;;
7099 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7100 tmp_addflag=' -i_dynamic -nofor_main' ;;
7101 ifc* | ifort*) # Intel Fortran compiler
7102 tmp_addflag=' -nofor_main' ;;
7104 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7106 if test $supports_anon_versioning = yes; then
7107 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7108 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7109 $echo "local: *; };" >> $output_objdir/$libname.ver~
7110 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7118 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7119 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7123 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7128 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7132 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7133 *** create shared libraries on Solaris systems. Therefore, libtool
7134 *** is disabling shared libraries support. We urge you to upgrade GNU
7135 *** binutils to release 2.9.1 or newer. Another option is to modify
7136 *** your PATH or compiler configuration so that the native linker is
7137 *** used, and then restart.
7140 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7142 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7149 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7152 hardcode_shlibpath_var=no
7156 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7158 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7165 if test "$ld_shlibs" = no; then
7167 hardcode_libdir_flag_spec=
7168 export_dynamic_flag_spec=
7169 whole_archive_flag_spec=
7172 # PORTME fill in a description of your system's linker (not GNU ld)
7175 allow_undefined_flag=unsupported
7176 always_export_symbols=yes
7177 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'
7178 # Note: this linker hardcodes the directories in LIBPATH if there
7179 # are no directories specified by -L.
7180 hardcode_minus_L=yes
7181 if test "$GCC" = yes && test -z "$link_static_flag"; then
7182 # Neither direct hardcoding nor static linking is supported with a
7184 hardcode_direct=unsupported
7189 if test "$host_cpu" = ia64; then
7190 # On IA64, the linker does run time linking by default, so we don't
7191 # have to do anything special.
7192 aix_use_runtimelinking=no
7193 exp_sym_flag='-Bexport'
7196 # If we're using GNU nm, then we don't want the "-C" option.
7197 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7198 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7199 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'
7201 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'
7203 aix_use_runtimelinking=no
7205 # Test if we are trying to use run time linking or normal
7206 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7207 # need to do runtime linking.
7208 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7209 for ld_flag in $LDFLAGS; do
7210 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7211 aix_use_runtimelinking=yes
7217 exp_sym_flag='-bexport'
7218 no_entry_flag='-bnoentry'
7221 # When large executables or shared objects are built, AIX ld can
7222 # have problems creating the table of contents. If linking a library
7223 # or program results in "error TOC overflow" add -mminimal-toc to
7224 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7225 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7229 hardcode_libdir_separator=':'
7230 link_all_deplibs=yes
7232 if test "$GCC" = yes; then
7233 case $host_os in aix4.[012]|aix4.[012].*)
7234 # We only want to do this on AIX 4.2 and lower, the check
7235 # below for broken collect2 doesn't work under 4.3+
7236 collect2name=`${CC} -print-prog-name=collect2`
7237 if test -f "$collect2name" && \
7238 strings "$collect2name" | grep resolve_lib_name >/dev/null
7240 # We have reworked collect2
7243 # We have old collect2
7244 hardcode_direct=unsupported
7245 # It fails to find uninstalled libraries when the uninstalled
7246 # path is not listed in the libpath. Setting hardcode_minus_L
7247 # to unsupported forces relinking
7248 hardcode_minus_L=yes
7249 hardcode_libdir_flag_spec='-L$libdir'
7250 hardcode_libdir_separator=
7253 shared_flag='-shared'
7254 if test "$aix_use_runtimelinking" = yes; then
7255 shared_flag="$shared_flag "'${wl}-G'
7259 if test "$host_cpu" = ia64; then
7260 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7261 # chokes on -Wl,-G. The following line is correct:
7264 if test "$aix_use_runtimelinking" = yes; then
7265 shared_flag='${wl}-G'
7267 shared_flag='${wl}-bM:SRE'
7272 # It seems that -bexpall does not export symbols beginning with
7273 # underscore (_), so it is better to generate a list of symbols to export.
7274 always_export_symbols=yes
7275 if test "$aix_use_runtimelinking" = yes; then
7276 # Warning - without using the other runtime loading flags (-brtl),
7277 # -berok will link without error, but may produce a broken library.
7278 allow_undefined_flag='-berok'
7279 # Determine the default libpath from the value encoded in an empty executable.
7280 cat >conftest.$ac_ext <<_ACEOF
7283 cat confdefs.h >>conftest.$ac_ext
7284 cat >>conftest.$ac_ext <<_ACEOF
7285 /* end confdefs.h. */
7295 rm -f conftest.$ac_objext conftest$ac_exeext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7297 (eval $ac_link) 2>conftest.er1
7299 grep -v '^ *+' conftest.er1 >conftest.err
7301 cat conftest.err >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } &&
7304 { ac_try='test -z "$ac_c_werror_flag"
7305 || test ! -s conftest.err'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; } &&
7311 { ac_try='test -s conftest$ac_exeext'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; }; then
7318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7320 # Check for a 64-bit object if we didn't find anything.
7321 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; }
7324 echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7328 rm -f conftest.err conftest.$ac_objext \
7329 conftest$ac_exeext conftest.$ac_ext
7330 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7332 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7333 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7335 if test "$host_cpu" = ia64; then
7336 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7337 allow_undefined_flag="-z nodefs"
7338 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7340 # Determine the default libpath from the value encoded in an empty executable.
7341 cat >conftest.$ac_ext <<_ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7356 rm -f conftest.$ac_objext conftest$ac_exeext
7357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7358 (eval $ac_link) 2>conftest.er1
7360 grep -v '^ *+' conftest.er1 >conftest.err
7362 cat conftest.err >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } &&
7365 { ac_try='test -z "$ac_c_werror_flag"
7366 || test ! -s conftest.err'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; } &&
7372 { ac_try='test -s conftest$ac_exeext'
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; }; then
7379 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7381 # Check for a 64-bit object if we didn't find anything.
7382 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; }
7385 echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7389 rm -f conftest.err conftest.$ac_objext \
7390 conftest$ac_exeext conftest.$ac_ext
7391 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7393 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7394 # Warning - without using the other run time loading flags,
7395 # -berok will link without error, but may produce a broken library.
7396 no_undefined_flag=' ${wl}-bernotok'
7397 allow_undefined_flag=' ${wl}-berok'
7398 # -bexpall does not export symbols beginning with underscore (_)
7399 always_export_symbols=yes
7400 # Exported symbols can be pulled into shared objects from archives
7401 whole_archive_flag_spec=' '
7402 archive_cmds_need_lc=yes
7403 # This is similar to how AIX traditionally builds it's shared libraries.
7404 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7410 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)'
7411 hardcode_libdir_flag_spec='-L$libdir'
7412 hardcode_minus_L=yes
7413 # see comment about different semantics on the GNU ld section
7418 export_dynamic_flag_spec=-rdynamic
7421 cygwin* | mingw* | pw32*)
7422 # When not using gcc, we currently assume that we are using
7423 # Microsoft Visual C++.
7424 # hardcode_libdir_flag_spec is actually meaningless, as there is
7425 # no search path for DLLs.
7426 hardcode_libdir_flag_spec=' '
7427 allow_undefined_flag=unsupported
7428 # Tell ltmain to make .lib files, not .a files.
7430 # Tell ltmain to make .dll files, not .so files.
7432 # FIXME: Setting linknames here is a bad hack.
7433 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7434 # The linker will automatically build a .lib file if we build a DLL.
7435 old_archive_From_new_cmds='true'
7436 # FIXME: Should let the user specify the lib program.
7437 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7438 fix_srcfile_path='`cygpath -w "$srcfile"`'
7439 enable_shared_with_static_runtimes=yes
7442 darwin* | rhapsody*)
7444 rhapsody* | darwin1.[012])
7445 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7448 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7449 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7451 case ${MACOSX_DEPLOYMENT_TARGET} in
7453 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7456 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7462 archive_cmds_need_lc=no
7464 hardcode_automatic=yes
7465 hardcode_shlibpath_var=unsupported
7466 whole_archive_flag_spec=''
7467 link_all_deplibs=yes
7468 if test "$GCC" = yes ; then
7469 output_verbose_link_cmd='echo'
7470 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7471 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7472 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7473 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}'
7474 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}'
7476 case $cc_basename in
7478 output_verbose_link_cmd='echo'
7479 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7480 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7481 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7482 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}'
7483 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}'
7493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7494 hardcode_libdir_flag_spec='-L$libdir'
7495 hardcode_shlibpath_var=no
7502 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7503 # support. Future versions do this automatically, but an explicit c++rt0.o
7504 # does not break anything, and helps significantly (at the cost of a little
7507 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7508 hardcode_libdir_flag_spec='-R$libdir'
7510 hardcode_shlibpath_var=no
7513 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7515 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7517 hardcode_minus_L=yes
7518 hardcode_shlibpath_var=no
7521 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7522 freebsd* | kfreebsd*-gnu | dragonfly*)
7523 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7524 hardcode_libdir_flag_spec='-R$libdir'
7526 hardcode_shlibpath_var=no
7530 if test "$GCC" = yes; then
7531 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'
7533 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'
7535 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7536 hardcode_libdir_separator=:
7539 # hardcode_minus_L: Not really in the search PATH,
7540 # but as the default location of the library.
7541 hardcode_minus_L=yes
7542 export_dynamic_flag_spec='${wl}-E'
7546 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7549 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7552 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7558 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7561 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7565 if test "$with_gnu_ld" = no; then
7568 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7569 hardcode_libdir_flag_spec_ld='+b $libdir'
7570 hardcode_libdir_separator=:
7572 hardcode_shlibpath_var=no
7575 hardcode_libdir_flag_spec='-L$libdir'
7577 hardcode_shlibpath_var=no
7579 # hardcode_minus_L: Not really in the search PATH,
7580 # but as the default location of the library.
7581 hardcode_minus_L=yes
7584 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7585 hardcode_libdir_separator=:
7587 export_dynamic_flag_spec='${wl}-E'
7589 # hardcode_minus_L: Not really in the search PATH,
7590 # but as the default location of the library.
7591 hardcode_minus_L=yes
7597 irix5* | irix6* | nonstopux*)
7598 if test "$GCC" = yes; then
7599 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'
7601 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'
7602 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7605 hardcode_libdir_separator=:
7606 link_all_deplibs=yes
7610 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7611 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7613 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7615 hardcode_libdir_flag_spec='-R$libdir'
7617 hardcode_shlibpath_var=no
7621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7624 hardcode_libdir_separator=:
7625 hardcode_shlibpath_var=no
7630 hardcode_shlibpath_var=no
7631 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7632 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7633 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7634 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7635 export_dynamic_flag_spec='${wl}-E'
7638 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7639 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7640 hardcode_libdir_flag_spec='-R$libdir'
7643 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7644 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7651 hardcode_libdir_flag_spec='-L$libdir'
7652 hardcode_minus_L=yes
7653 allow_undefined_flag=unsupported
7654 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'
7655 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7659 if test "$GCC" = yes; then
7660 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7661 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'
7663 allow_undefined_flag=' -expect_unresolved \*'
7664 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'
7666 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7667 hardcode_libdir_separator=:
7670 osf4* | osf5*) # as osf3* with the addition of -msym flag
7671 if test "$GCC" = yes; then
7672 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7673 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'
7674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7676 allow_undefined_flag=' -expect_unresolved \*'
7677 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'
7678 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7679 $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'
7681 # Both c and cxx compiler support -rpath directly
7682 hardcode_libdir_flag_spec='-rpath $libdir'
7684 hardcode_libdir_separator=:
7688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7689 hardcode_shlibpath_var=no
7690 export_dynamic_flag_spec='${wl}-Bexport'
7691 runpath_var=LD_RUN_PATH
7692 hardcode_runpath_var=yes
7696 no_undefined_flag=' -z text'
7697 if test "$GCC" = yes; then
7699 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7700 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7701 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7704 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7705 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7706 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7708 hardcode_libdir_flag_spec='-R$libdir'
7709 hardcode_shlibpath_var=no
7711 solaris2.[0-5] | solaris2.[0-5].*) ;;
7713 # The compiler driver will combine linker options so we
7714 # cannot just pass the convience library names through
7715 # without $wl, iff we do not link with $LD.
7716 # Luckily, gcc supports the same syntax we need for Sun Studio.
7717 # Supported since Solaris 2.6 (maybe 2.5.1?)
7720 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7722 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' ;;
7725 link_all_deplibs=yes
7729 if test "x$host_vendor" = xsequent; then
7730 # Use $CC to link under sequent, because it throws in some extra .o
7731 # files that make .init and .fini sections work.
7732 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7734 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7736 hardcode_libdir_flag_spec='-L$libdir'
7738 hardcode_minus_L=yes
7739 hardcode_shlibpath_var=no
7743 case $host_vendor in
7745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7746 hardcode_direct=yes # is this really true???
7749 ## LD is ld it makes a PLAMLIB
7750 ## CC just makes a GrossModule.
7751 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7752 reload_cmds='$CC -r -o $output$reload_objs'
7756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7757 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7760 runpath_var='LD_RUN_PATH'
7761 hardcode_shlibpath_var=no
7765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7766 hardcode_shlibpath_var=no
7767 export_dynamic_flag_spec='-Bexport'
7771 if test -d /usr/nec; then
7772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7773 hardcode_shlibpath_var=no
7774 runpath_var=LD_RUN_PATH
7775 hardcode_runpath_var=yes
7781 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7784 hardcode_shlibpath_var=no
7785 hardcode_runpath_var=yes
7786 runpath_var=LD_RUN_PATH
7789 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7790 no_undefined_flag='${wl}-z ${wl}text'
7791 if test "$GCC" = yes; then
7792 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7794 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7796 runpath_var='LD_RUN_PATH'
7797 hardcode_shlibpath_var=no
7801 no_undefined_flag=' -z text'
7802 # $CC -shared without GNU ld will not create a library from C++
7803 # object files and a static libstdc++, better avoid it by now
7804 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7805 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7806 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7807 hardcode_libdir_flag_spec=
7808 hardcode_shlibpath_var=no
7809 runpath_var='LD_RUN_PATH'
7813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7814 hardcode_libdir_flag_spec='-L$libdir'
7815 hardcode_shlibpath_var=no
7824 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7825 echo "${ECHO_T}$ld_shlibs" >&6
7826 test "$ld_shlibs" = no && can_build_shared=no
7828 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7829 if test "$GCC" = yes; then
7830 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7834 # Do we need to explicitly link libc?
7836 case "x$archive_cmds_need_lc" in
7838 # Assume -lc should be added
7839 archive_cmds_need_lc=yes
7841 if test "$enable_shared" = yes && test "$GCC" = yes; then
7842 case $archive_cmds in
7844 # FIXME: we may have to deal with multi-command sequences.
7847 # Test whether the compiler implicitly links with -lc since on some
7848 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7849 # to ld, don't add -lc before -lgcc.
7850 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7851 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7853 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7856 (eval $ac_compile) 2>&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } 2>conftest.err; then
7862 libobjs=conftest.$ac_objext
7864 wl=$lt_prog_compiler_wl
7870 lt_save_allow_undefined_flag=$allow_undefined_flag
7871 allow_undefined_flag=
7872 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7873 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }
7878 archive_cmds_need_lc=no
7880 archive_cmds_need_lc=yes
7882 allow_undefined_flag=$lt_save_allow_undefined_flag
7884 cat conftest.err 1>&5
7887 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7888 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7895 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7896 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7898 libname_spec='lib$name'
7906 shlibpath_overrides_runpath=unknown
7908 dynamic_linker="$host_os ld.so"
7909 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7910 if test "$GCC" = yes; then
7911 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7912 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7913 # if the path contains ";" then we assume it to be the separator
7914 # otherwise default to the standard path separator (i.e. ":") - it is
7915 # assumed that no part of a normal pathname contains ";" but that should
7916 # okay in the real world where ";" in dirpaths is itself problematic.
7917 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7922 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7924 need_lib_prefix=unknown
7925 hardcode_into_libs=no
7927 # when you set need_version to no, make sure it does not cause -set_version
7928 # flags to be left without arguments
7929 need_version=unknown
7934 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7935 shlibpath_var=LIBPATH
7937 # AIX 3 has no versioning support, so we append a major version to the name.
7938 soname_spec='${libname}${release}${shared_ext}$major'
7945 hardcode_into_libs=yes
7946 if test "$host_cpu" = ia64; then
7947 # AIX 5 supports IA64
7948 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7949 shlibpath_var=LD_LIBRARY_PATH
7951 # With GCC up to 2.95.x, collect2 would create an import file
7952 # for dependence libraries. The import file would start with
7953 # the line `#! .'. This would cause the generated library to
7954 # depend on `.', always an invalid library. This was fixed in
7955 # development snapshots of GCC prior to 3.0.
7957 aix4 | aix4.[01] | aix4.[01].*)
7958 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7960 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7967 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7968 # soname into executable. Probably we can add versioning support to
7969 # collect2, so additional links can be useful in future.
7970 if test "$aix_use_runtimelinking" = yes; then
7971 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7972 # instead of lib<name>.a to let people know that these are not
7973 # typical AIX shared libraries.
7974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7976 # We preserve .a as extension for shared libraries through AIX4.2
7977 # and later when we are not doing run time linking.
7978 library_names_spec='${libname}${release}.a $libname.a'
7979 soname_spec='${libname}${release}${shared_ext}$major'
7981 shlibpath_var=LIBPATH
7986 library_names_spec='$libname.ixlibrary $libname.a'
7987 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7988 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'
7992 library_names_spec='${libname}${shared_ext}'
7993 dynamic_linker="$host_os ld.so"
7994 shlibpath_var=LIBRARY_PATH
8000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8001 soname_spec='${libname}${release}${shared_ext}$major'
8002 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8003 shlibpath_var=LD_LIBRARY_PATH
8004 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8005 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8006 # the default ld.so.conf also contains /usr/contrib/lib and
8007 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8008 # libtool to hard-code these into programs
8011 cygwin* | mingw* | pw32*)
8012 version_type=windows
8017 case $GCC,$host_os in
8018 yes,cygwin* | yes,mingw* | yes,pw32*)
8019 library_names_spec='$libname.dll.a'
8020 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8021 postinstall_cmds='base_file=`basename \${file}`~
8022 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8023 dldir=$destdir/`dirname \$dlpath`~
8024 test -d \$dldir || mkdir -p \$dldir~
8025 $install_prog $dir/$dlname \$dldir/$dlname'
8026 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8027 dlpath=$dir/\$dldll~
8029 shlibpath_overrides_runpath=yes
8033 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8034 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8035 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8038 # MinGW DLLs use traditional 'lib' prefix
8039 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8040 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8041 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8042 # It is most probably a Windows format PATH printed by
8043 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8044 # path with ; separators, and with drive letters. We can handle the
8045 # drive letters (cygwin fileutils understands them), so leave them,
8046 # especially as we might pass files found there to a mingw objdump,
8047 # which wouldn't understand a cygwinified path. Ahh.
8048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8054 # pw32 DLLs use 'pw' prefix rather than 'lib'
8055 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8061 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8063 supports_anon_versioning=no
8064 case `$LD -v 2>/dev/null` in
8065 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8066 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8067 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8068 *\ 2.11.*) ;; # other 2.11 versions
8069 *) supports_anon_versioning=yes ;;
8071 if test $supports_anon_versioning = yes; then
8072 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8073 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8074 $echo "local: *; };" >> $output_objdir/$libname.ver~
8075 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8077 $archive_expsym_cmds="$archive_cmds"
8085 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8088 dynamic_linker='Win32 ld.exe'
8089 # FIXME: first we should search . and the directory the executable is in
8093 darwin* | rhapsody*)
8094 dynamic_linker="$host_os dyld"
8098 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8099 soname_spec='${libname}${release}${major}$shared_ext'
8100 shlibpath_overrides_runpath=yes
8101 shlibpath_var=DYLD_LIBRARY_PATH
8102 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8103 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8104 if test "$GCC" = yes; then
8105 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"`
8107 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8109 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8117 soname_spec='${libname}${release}${shared_ext}$major'
8118 shlibpath_var=LD_LIBRARY_PATH
8129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8130 soname_spec='${libname}${release}${shared_ext}$major'
8131 shlibpath_var=LD_LIBRARY_PATH
8132 shlibpath_overrides_runpath=no
8133 hardcode_into_libs=yes
8134 dynamic_linker='GNU ld.so'
8137 freebsd* | dragonfly*)
8138 # DragonFly does not have aout. When/if they implement a new
8139 # versioning mechanism, adjust this.
8140 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8141 version_type=freebsd-$objformat
8142 case $version_type in
8144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8149 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8153 shlibpath_var=LD_LIBRARY_PATH
8156 shlibpath_overrides_runpath=yes
8158 freebsd3.[01]* | freebsdelf3.[01]*)
8159 shlibpath_overrides_runpath=yes
8160 hardcode_into_libs=yes
8163 shlibpath_overrides_runpath=no
8164 hardcode_into_libs=yes
8173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8174 soname_spec='${libname}${release}${shared_ext}$major'
8175 shlibpath_var=LD_LIBRARY_PATH
8176 hardcode_into_libs=yes
8179 hpux9* | hpux10* | hpux11*)
8180 # Give a soname corresponding to the major version so that dld.sl refuses to
8181 # link against other versions.
8188 hardcode_into_libs=yes
8189 dynamic_linker="$host_os dld.so"
8190 shlibpath_var=LD_LIBRARY_PATH
8191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8193 soname_spec='${libname}${release}${shared_ext}$major'
8194 if test "X$HPUX_IA64_MODE" = X32; then
8195 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8197 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8199 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8203 hardcode_into_libs=yes
8204 dynamic_linker="$host_os dld.sl"
8205 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8206 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8208 soname_spec='${libname}${release}${shared_ext}$major'
8209 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8214 dynamic_linker="$host_os dld.sl"
8215 shlibpath_var=SHLIB_PATH
8216 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8218 soname_spec='${libname}${release}${shared_ext}$major'
8221 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8222 postinstall_cmds='chmod 555 $lib'
8225 irix5* | irix6* | nonstopux*)
8227 nonstopux*) version_type=nonstopux ;;
8229 if test "$lt_cv_prog_gnu_ld" = yes; then
8237 soname_spec='${libname}${release}${shared_ext}$major'
8238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8240 irix5* | nonstopux*)
8244 case $LD in # libtool.m4 will add one of these switches to LD
8245 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8246 libsuff= shlibsuff= libmagic=32-bit;;
8247 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8248 libsuff=32 shlibsuff=N32 libmagic=N32;;
8249 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8250 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8251 *) libsuff= shlibsuff= libmagic=never-match;;
8255 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8256 shlibpath_overrides_runpath=no
8257 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8258 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8259 hardcode_into_libs=yes
8262 # No shared lib support for Linux oldld, aout, or coff.
8263 linux*oldld* | linux*aout* | linux*coff*)
8267 # This must be Linux ELF.
8272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8273 soname_spec='${libname}${release}${shared_ext}$major'
8274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8275 shlibpath_var=LD_LIBRARY_PATH
8276 shlibpath_overrides_runpath=no
8277 # This implies no fast_install, which is unacceptable.
8278 # Some rework will be needed to allow for fast_install
8279 # before this can be enabled.
8280 hardcode_into_libs=yes
8282 # Append ld.so.conf contents to the search path
8283 if test -f /etc/ld.so.conf; then
8284 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' ' '`
8285 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8288 case $host_cpu:$lt_cv_cc_64bit_output in
8289 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
8290 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
8291 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
8295 # We used to test for /lib/ld.so.1 and disable shared libraries on
8296 # powerpc, because MkLinux only supported shared libraries with the
8297 # GNU dynamic linker. Since this was broken with cross compilers,
8298 # most powerpc-linux boxes support dynamic linking these days and
8299 # people can always --disable-shared, the test was removed, and we
8300 # assume the GNU/Linux dynamic linker is in use.
8301 dynamic_linker='GNU/Linux ld.so'
8303 # Find out which ABI we are using (multilib Linux x86_64 hack).
8307 echo '#line 8307 "configure"' > conftest.$ac_ext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8309 (eval $ac_compile) 2>&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; then
8313 case `/usr/bin/file conftest.$ac_objext` in
8324 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
8325 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8333 soname_spec='${libname}${release}${shared_ext}$major'
8334 shlibpath_var=LD_LIBRARY_PATH
8335 shlibpath_overrides_runpath=no
8336 hardcode_into_libs=yes
8337 dynamic_linker='GNU ld.so'
8344 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8347 dynamic_linker='NetBSD (a.out) ld.so'
8349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8350 soname_spec='${libname}${release}${shared_ext}$major'
8351 dynamic_linker='NetBSD ld.elf_so'
8353 shlibpath_var=LD_LIBRARY_PATH
8354 shlibpath_overrides_runpath=yes
8355 hardcode_into_libs=yes
8360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8361 shlibpath_var=LD_LIBRARY_PATH
8362 shlibpath_overrides_runpath=yes
8369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8370 soname_spec='${libname}${release}${shared_ext}$major'
8371 shlibpath_var=LD_LIBRARY_PATH
8372 shlibpath_overrides_runpath=yes
8378 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8380 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8381 *) need_version=no ;;
8383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8385 shlibpath_var=LD_LIBRARY_PATH
8386 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8388 openbsd2.[89] | openbsd2.[89].*)
8389 shlibpath_overrides_runpath=no
8392 shlibpath_overrides_runpath=yes
8396 shlibpath_overrides_runpath=yes
8401 libname_spec='$name'
8404 library_names_spec='$libname${shared_ext} $libname.a'
8405 dynamic_linker='OS/2 ld.exe'
8406 shlibpath_var=LIBPATH
8409 osf3* | osf4* | osf5*)
8413 soname_spec='${libname}${release}${shared_ext}$major'
8414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8415 shlibpath_var=LD_LIBRARY_PATH
8416 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8417 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8422 soname_spec='${libname}${release}${shared_ext}$major'
8423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8424 shlibpath_var=LD_LIBRARY_PATH
8431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8432 soname_spec='${libname}${release}${shared_ext}$major'
8433 shlibpath_var=LD_LIBRARY_PATH
8434 shlibpath_overrides_runpath=yes
8435 hardcode_into_libs=yes
8436 # ldd complains unless libraries are executable
8437 postinstall_cmds='chmod +x $lib'
8442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8443 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8444 shlibpath_var=LD_LIBRARY_PATH
8445 shlibpath_overrides_runpath=yes
8446 if test "$with_gnu_ld" = yes; then
8452 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8455 soname_spec='${libname}${release}${shared_ext}$major'
8456 shlibpath_var=LD_LIBRARY_PATH
8457 case $host_vendor in
8459 shlibpath_overrides_runpath=no
8461 export_dynamic_flag_spec='${wl}-Blargedynsym'
8462 runpath_var=LD_RUN_PATH
8470 shlibpath_overrides_runpath=no
8471 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8477 if test -d /usr/nec ;then
8479 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8480 soname_spec='$libname${shared_ext}.$major'
8481 shlibpath_var=LD_LIBRARY_PATH
8487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8488 soname_spec='${libname}${release}${shared_ext}$major'
8489 shlibpath_var=LD_LIBRARY_PATH
8496 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8497 echo "${ECHO_T}$dynamic_linker" >&6
8498 test "$dynamic_linker" = no && can_build_shared=no
8500 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8501 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8503 if test -n "$hardcode_libdir_flag_spec" || \
8504 test -n "$runpath_var" || \
8505 test "X$hardcode_automatic" = "Xyes" ; then
8507 # We can hardcode non-existant directories.
8508 if test "$hardcode_direct" != no &&
8509 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8510 # have to relink, otherwise we might link with an installed library
8511 # when we should be linking with a yet-to-be-installed one
8512 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8513 test "$hardcode_minus_L" != no; then
8514 # Linking always hardcodes the temporary library directory.
8515 hardcode_action=relink
8517 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8518 hardcode_action=immediate
8521 # We cannot hardcode anything, or else we can only hardcode existing
8523 hardcode_action=unsupported
8525 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8526 echo "${ECHO_T}$hardcode_action" >&6
8528 if test "$hardcode_action" = relink; then
8529 # Fast installation is not supported
8530 enable_fast_install=no
8531 elif test "$shlibpath_overrides_runpath" = yes ||
8532 test "$enable_shared" = no; then
8533 # Fast installation is not necessary
8534 enable_fast_install=needless
8539 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8540 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8541 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8542 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8543 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8544 echo "$as_me:$LINENO: result: yes" >&5
8545 echo "${ECHO_T}yes" >&6
8547 # FIXME - insert some real tests, host_os isn't really good enough
8550 if test -n "$STRIP" ; then
8551 striplib="$STRIP -x"
8552 echo "$as_me:$LINENO: result: yes" >&5
8553 echo "${ECHO_T}yes" >&6
8555 echo "$as_me:$LINENO: result: no" >&5
8556 echo "${ECHO_T}no" >&6
8560 echo "$as_me:$LINENO: result: no" >&5
8561 echo "${ECHO_T}no" >&6
8566 if test "x$enable_dlopen" != xyes; then
8567 enable_dlopen=unknown
8568 enable_dlopen_self=unknown
8569 enable_dlopen_self_static=unknown
8576 lt_cv_dlopen="load_add_on"
8578 lt_cv_dlopen_self=yes
8582 lt_cv_dlopen="LoadLibrary"
8587 lt_cv_dlopen="dlopen"
8592 # if libdl is installed we need to link against it
8593 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8594 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8595 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
8598 ac_check_lib_save_LIBS=$LIBS
8600 cat >conftest.$ac_ext <<_ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h. */
8607 /* Override any gcc2 internal prototype to avoid an error. */
8611 /* We use char because int might match the return type of a gcc2
8612 builtin and then its argument prototype would still apply. */
8622 rm -f conftest.$ac_objext conftest$ac_exeext
8623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8624 (eval $ac_link) 2>conftest.er1
8626 grep -v '^ *+' conftest.er1 >conftest.err
8628 cat conftest.err >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); } &&
8631 { ac_try='test -z "$ac_c_werror_flag"
8632 || test ! -s conftest.err'
8633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; } &&
8638 { ac_try='test -s conftest$ac_exeext'
8639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); }; }; then
8644 ac_cv_lib_dl_dlopen=yes
8646 echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8649 ac_cv_lib_dl_dlopen=no
8651 rm -f conftest.err conftest.$ac_objext \
8652 conftest$ac_exeext conftest.$ac_ext
8653 LIBS=$ac_check_lib_save_LIBS
8655 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8656 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8657 if test $ac_cv_lib_dl_dlopen = yes; then
8658 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8663 lt_cv_dlopen_self=yes
8670 echo "$as_me:$LINENO: checking for shl_load" >&5
8671 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8672 if test "${ac_cv_func_shl_load+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 cat >conftest.$ac_ext <<_ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8681 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8683 #define shl_load innocuous_shl_load
8685 /* System header to define __stub macros and hopefully few prototypes,
8686 which can conflict with char shl_load (); below.
8687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8688 <limits.h> exists even on freestanding compilers. */
8691 # include <limits.h>
8693 # include <assert.h>
8698 /* Override any gcc2 internal prototype to avoid an error. */
8703 /* We use char because int might match the return type of a gcc2
8704 builtin and then its argument prototype would still apply. */
8706 /* The GNU C library defines this for functions which it implements
8707 to always fail with ENOSYS. Some functions are actually named
8708 something starting with __ and the normal name is an alias. */
8709 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8712 char (*f) () = shl_load;
8721 return f != shl_load;
8726 rm -f conftest.$ac_objext conftest$ac_exeext
8727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8728 (eval $ac_link) 2>conftest.er1
8730 grep -v '^ *+' conftest.er1 >conftest.err
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } &&
8735 { ac_try='test -z "$ac_c_werror_flag"
8736 || test ! -s conftest.err'
8737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; } &&
8742 { ac_try='test -s conftest$ac_exeext'
8743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; }; then
8748 ac_cv_func_shl_load=yes
8750 echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8753 ac_cv_func_shl_load=no
8755 rm -f conftest.err conftest.$ac_objext \
8756 conftest$ac_exeext conftest.$ac_ext
8758 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8759 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8760 if test $ac_cv_func_shl_load = yes; then
8761 lt_cv_dlopen="shl_load"
8763 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8764 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8765 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 ac_check_lib_save_LIBS=$LIBS
8770 cat >conftest.$ac_ext <<_ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8777 /* Override any gcc2 internal prototype to avoid an error. */
8781 /* We use char because int might match the return type of a gcc2
8782 builtin and then its argument prototype would still apply. */
8792 rm -f conftest.$ac_objext conftest$ac_exeext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8794 (eval $ac_link) 2>conftest.er1
8796 grep -v '^ *+' conftest.er1 >conftest.err
8798 cat conftest.err >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } &&
8801 { ac_try='test -z "$ac_c_werror_flag"
8802 || test ! -s conftest.err'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; } &&
8808 { ac_try='test -s conftest$ac_exeext'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; }; then
8814 ac_cv_lib_dld_shl_load=yes
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8819 ac_cv_lib_dld_shl_load=no
8821 rm -f conftest.err conftest.$ac_objext \
8822 conftest$ac_exeext conftest.$ac_ext
8823 LIBS=$ac_check_lib_save_LIBS
8825 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8826 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8827 if test $ac_cv_lib_dld_shl_load = yes; then
8828 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8830 echo "$as_me:$LINENO: checking for dlopen" >&5
8831 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8832 if test "${ac_cv_func_dlopen+set}" = set; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 cat >conftest.$ac_ext <<_ACEOF
8838 cat confdefs.h >>conftest.$ac_ext
8839 cat >>conftest.$ac_ext <<_ACEOF
8840 /* end confdefs.h. */
8841 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8843 #define dlopen innocuous_dlopen
8845 /* System header to define __stub macros and hopefully few prototypes,
8846 which can conflict with char dlopen (); below.
8847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8848 <limits.h> exists even on freestanding compilers. */
8851 # include <limits.h>
8853 # include <assert.h>
8858 /* Override any gcc2 internal prototype to avoid an error. */
8863 /* We use char because int might match the return type of a gcc2
8864 builtin and then its argument prototype would still apply. */
8866 /* The GNU C library defines this for functions which it implements
8867 to always fail with ENOSYS. Some functions are actually named
8868 something starting with __ and the normal name is an alias. */
8869 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8872 char (*f) () = dlopen;
8886 rm -f conftest.$ac_objext conftest$ac_exeext
8887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8888 (eval $ac_link) 2>conftest.er1
8890 grep -v '^ *+' conftest.er1 >conftest.err
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } &&
8895 { ac_try='test -z "$ac_c_werror_flag"
8896 || test ! -s conftest.err'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; } &&
8902 { ac_try='test -s conftest$ac_exeext'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; }; then
8908 ac_cv_func_dlopen=yes
8910 echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8913 ac_cv_func_dlopen=no
8915 rm -f conftest.err conftest.$ac_objext \
8916 conftest$ac_exeext conftest.$ac_ext
8918 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8919 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8920 if test $ac_cv_func_dlopen = yes; then
8921 lt_cv_dlopen="dlopen"
8923 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8924 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8925 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8928 ac_check_lib_save_LIBS=$LIBS
8930 cat >conftest.$ac_ext <<_ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h. */
8937 /* Override any gcc2 internal prototype to avoid an error. */
8941 /* We use char because int might match the return type of a gcc2
8942 builtin and then its argument prototype would still apply. */
8952 rm -f conftest.$ac_objext conftest$ac_exeext
8953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8954 (eval $ac_link) 2>conftest.er1
8956 grep -v '^ *+' conftest.er1 >conftest.err
8958 cat conftest.err >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } &&
8961 { ac_try='test -z "$ac_c_werror_flag"
8962 || test ! -s conftest.err'
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; } &&
8968 { ac_try='test -s conftest$ac_exeext'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8974 ac_cv_lib_dl_dlopen=yes
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8979 ac_cv_lib_dl_dlopen=no
8981 rm -f conftest.err conftest.$ac_objext \
8982 conftest$ac_exeext conftest.$ac_ext
8983 LIBS=$ac_check_lib_save_LIBS
8985 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8986 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8987 if test $ac_cv_lib_dl_dlopen = yes; then
8988 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8990 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8991 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8992 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8995 ac_check_lib_save_LIBS=$LIBS
8997 cat >conftest.$ac_ext <<_ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h. */
9004 /* Override any gcc2 internal prototype to avoid an error. */
9008 /* We use char because int might match the return type of a gcc2
9009 builtin and then its argument prototype would still apply. */
9019 rm -f conftest.$ac_objext conftest$ac_exeext
9020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9021 (eval $ac_link) 2>conftest.er1
9023 grep -v '^ *+' conftest.er1 >conftest.err
9025 cat conftest.err >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } &&
9028 { ac_try='test -z "$ac_c_werror_flag"
9029 || test ! -s conftest.err'
9030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); }; } &&
9035 { ac_try='test -s conftest$ac_exeext'
9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; }; then
9041 ac_cv_lib_svld_dlopen=yes
9043 echo "$as_me: failed program was:" >&5
9044 sed 's/^/| /' conftest.$ac_ext >&5
9046 ac_cv_lib_svld_dlopen=no
9048 rm -f conftest.err conftest.$ac_objext \
9049 conftest$ac_exeext conftest.$ac_ext
9050 LIBS=$ac_check_lib_save_LIBS
9052 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9053 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9054 if test $ac_cv_lib_svld_dlopen = yes; then
9055 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9057 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9058 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9059 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9060 echo $ECHO_N "(cached) $ECHO_C" >&6
9062 ac_check_lib_save_LIBS=$LIBS
9064 cat >conftest.$ac_ext <<_ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h. */
9071 /* Override any gcc2 internal prototype to avoid an error. */
9075 /* We use char because int might match the return type of a gcc2
9076 builtin and then its argument prototype would still apply. */
9086 rm -f conftest.$ac_objext conftest$ac_exeext
9087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9088 (eval $ac_link) 2>conftest.er1
9090 grep -v '^ *+' conftest.er1 >conftest.err
9092 cat conftest.err >&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); } &&
9095 { ac_try='test -z "$ac_c_werror_flag"
9096 || test ! -s conftest.err'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; } &&
9102 { ac_try='test -s conftest$ac_exeext'
9103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); }; }; then
9108 ac_cv_lib_dld_dld_link=yes
9110 echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9113 ac_cv_lib_dld_dld_link=no
9115 rm -f conftest.err conftest.$ac_objext \
9116 conftest$ac_exeext conftest.$ac_ext
9117 LIBS=$ac_check_lib_save_LIBS
9119 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9120 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9121 if test $ac_cv_lib_dld_dld_link = yes; then
9122 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9143 if test "x$lt_cv_dlopen" != xno; then
9149 case $lt_cv_dlopen in
9151 save_CPPFLAGS="$CPPFLAGS"
9152 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9154 save_LDFLAGS="$LDFLAGS"
9155 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9158 LIBS="$lt_cv_dlopen_libs $LIBS"
9160 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9161 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9162 if test "${lt_cv_dlopen_self+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 if test "$cross_compiling" = yes; then :
9166 lt_cv_dlopen_self=cross
9168 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9169 lt_status=$lt_dlunknown
9170 cat > conftest.$ac_ext <<EOF
9171 #line 9171 "configure"
9172 #include "confdefs.h"
9181 # define LT_DLGLOBAL RTLD_GLOBAL
9184 # define LT_DLGLOBAL DL_GLOBAL
9186 # define LT_DLGLOBAL 0
9190 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9191 find out it does not work in some platform. */
9192 #ifndef LT_DLLAZY_OR_NOW
9194 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9197 # define LT_DLLAZY_OR_NOW DL_LAZY
9200 # define LT_DLLAZY_OR_NOW RTLD_NOW
9203 # define LT_DLLAZY_OR_NOW DL_NOW
9205 # define LT_DLLAZY_OR_NOW 0
9213 extern "C" void exit (int);
9216 void fnord() { int i=42;}
9219 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9220 int status = $lt_dlunknown;
9224 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9225 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9226 /* dlclose (self); */
9232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9233 (eval $ac_link) 2>&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9237 (./conftest; exit; ) 2>/dev/null
9240 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9241 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9242 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9245 # compilation failed
9246 lt_cv_dlopen_self=no
9253 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9254 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9256 if test "x$lt_cv_dlopen_self" = xyes; then
9257 LDFLAGS="$LDFLAGS $link_static_flag"
9258 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9259 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9260 if test "${lt_cv_dlopen_self_static+set}" = set; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
9263 if test "$cross_compiling" = yes; then :
9264 lt_cv_dlopen_self_static=cross
9266 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9267 lt_status=$lt_dlunknown
9268 cat > conftest.$ac_ext <<EOF
9269 #line 9269 "configure"
9270 #include "confdefs.h"
9279 # define LT_DLGLOBAL RTLD_GLOBAL
9282 # define LT_DLGLOBAL DL_GLOBAL
9284 # define LT_DLGLOBAL 0
9288 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9289 find out it does not work in some platform. */
9290 #ifndef LT_DLLAZY_OR_NOW
9292 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9295 # define LT_DLLAZY_OR_NOW DL_LAZY
9298 # define LT_DLLAZY_OR_NOW RTLD_NOW
9301 # define LT_DLLAZY_OR_NOW DL_NOW
9303 # define LT_DLLAZY_OR_NOW 0
9311 extern "C" void exit (int);
9314 void fnord() { int i=42;}
9317 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9318 int status = $lt_dlunknown;
9322 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9323 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9324 /* dlclose (self); */
9330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9331 (eval $ac_link) 2>&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9335 (./conftest; exit; ) 2>/dev/null
9338 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9339 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9340 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9343 # compilation failed
9344 lt_cv_dlopen_self_static=no
9351 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9352 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9355 CPPFLAGS="$save_CPPFLAGS"
9356 LDFLAGS="$save_LDFLAGS"
9361 case $lt_cv_dlopen_self in
9362 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9363 *) enable_dlopen_self=unknown ;;
9366 case $lt_cv_dlopen_self_static in
9367 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9368 *) enable_dlopen_self_static=unknown ;;
9373 # Report which librarie types wil actually be built
9374 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9375 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9376 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9377 echo "${ECHO_T}$can_build_shared" >&6
9379 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9380 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9381 test "$can_build_shared" = "no" && enable_shared=no
9383 # On AIX, shared libraries and static libraries use the same namespace, and
9384 # are all built from PIC.
9387 test "$enable_shared" = yes && enable_static=no
9388 if test -n "$RANLIB"; then
9389 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9390 postinstall_cmds='$RANLIB $lib'
9395 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9396 test "$enable_shared" = yes && enable_static=no
9400 echo "$as_me:$LINENO: result: $enable_shared" >&5
9401 echo "${ECHO_T}$enable_shared" >&6
9403 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9404 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9405 # Make sure either enable_shared or enable_static is yes.
9406 test "$enable_shared" = yes || enable_static=yes
9407 echo "$as_me:$LINENO: result: $enable_static" >&5
9408 echo "${ECHO_T}$enable_static" >&6
9410 # The else clause should only fire when bootstrapping the
9411 # libtool distribution, otherwise you forgot to ship ltmain.sh
9412 # with your package, and you will get complaints that there are
9413 # no rules to generate ltmain.sh.
9414 if test -f "$ltmain"; then
9415 # See if we are running on zsh, and set the options which allow our commands through
9416 # without removal of \ escapes.
9417 if test -n "${ZSH_VERSION+set}" ; then
9418 setopt NO_GLOB_SUBST
9420 # Now quote all the things that may contain metacharacters while being
9421 # careful not to overquote the AC_SUBSTed values. We take copies of the
9422 # variables and quote the copies for generation of the libtool script.
9423 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9425 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9426 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9427 deplibs_check_method reload_flag reload_cmds need_locks \
9428 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9429 lt_cv_sys_global_symbol_to_c_name_address \
9430 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9431 old_postinstall_cmds old_postuninstall_cmds \
9435 lt_prog_compiler_wl \
9436 lt_prog_compiler_pic \
9437 lt_prog_compiler_static \
9438 lt_prog_compiler_no_builtin_flag \
9439 export_dynamic_flag_spec \
9440 thread_safe_flag_spec \
9441 whole_archive_flag_spec \
9442 enable_shared_with_static_runtimes \
9444 old_archive_from_new_cmds \
9449 compiler_lib_search_path \
9451 archive_expsym_cmds \
9453 postuninstall_cmds \
9454 old_archive_from_expsyms_cmds \
9455 allow_undefined_flag \
9457 export_symbols_cmds \
9458 hardcode_libdir_flag_spec \
9459 hardcode_libdir_flag_spec_ld \
9460 hardcode_libdir_separator \
9461 hardcode_automatic \
9463 module_expsym_cmds \
9464 lt_cv_prog_compiler_c_o \
9469 old_archive_cmds | \
9470 old_archive_from_new_cmds | \
9472 archive_expsym_cmds | \
9474 module_expsym_cmds | \
9475 old_archive_from_expsyms_cmds | \
9476 export_symbols_cmds | \
9477 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9478 postinstall_cmds | postuninstall_cmds | \
9479 old_postinstall_cmds | old_postuninstall_cmds | \
9480 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9481 # Double-quote double-evaled strings.
9482 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9485 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9491 *'\$0 --fallback-echo"')
9492 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9497 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9499 { echo "$as_me:$LINENO: creating $ofile" >&5
9500 echo "$as_me: creating $ofile" >&6;}
9502 cat <<__EOF__ >> "$cfgfile"
9505 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9506 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9507 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9509 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9510 # Free Software Foundation, Inc.
9512 # This file is part of GNU Libtool:
9513 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9515 # This program is free software; you can redistribute it and/or modify
9516 # it under the terms of the GNU General Public License as published by
9517 # the Free Software Foundation; either version 2 of the License, or
9518 # (at your option) any later version.
9520 # This program is distributed in the hope that it will be useful, but
9521 # WITHOUT ANY WARRANTY; without even the implied warranty of
9522 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9523 # General Public License for more details.
9525 # You should have received a copy of the GNU General Public License
9526 # along with this program; if not, write to the Free Software
9527 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9529 # As a special exception to the GNU General Public License, if you
9530 # distribute this file as part of a program that contains a
9531 # configuration script generated by Autoconf, you may include it under
9532 # the same distribution terms that you use for the rest of that program.
9534 # A sed program that does not truncate output.
9537 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9538 Xsed="$SED -e 1s/^X//"
9540 # The HP-UX ksh and POSIX shell print the target directory to stdout
9542 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9544 # The names of the tagged configurations supported by this script.
9547 # ### BEGIN LIBTOOL CONFIG
9549 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9551 # Shell to use when invoking shell scripts.
9554 # Whether or not to build shared libraries.
9555 build_libtool_libs=$enable_shared
9557 # Whether or not to build static libraries.
9558 build_old_libs=$enable_static
9560 # Whether or not to add -lc for building shared libraries.
9561 build_libtool_need_lc=$archive_cmds_need_lc
9563 # Whether or not to disallow shared libs when runtime libs are static
9564 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9566 # Whether or not to optimize for fast installation.
9567 fast_install=$enable_fast_install
9570 host_alias=$host_alias
9575 build_alias=$build_alias
9579 # An echo program that does not interpret backslashes.
9584 AR_FLAGS=$lt_AR_FLAGS
9589 # A language-specific compiler.
9592 # Is the compiler the GNU C compiler?
9598 # The linker used to build libraries.
9601 # Whether we need hard or soft links.
9604 # A BSD-compatible nm program.
9607 # A symbol stripping program
9610 # Used to examine libraries when file_magic_cmd begins "file"
9611 MAGIC_CMD=$MAGIC_CMD
9613 # Used on cygwin: DLL creation program.
9616 # Used on cygwin: object dumper.
9619 # Used on cygwin: assembler.
9622 # The name of the directory that contains temporary libtool files.
9625 # How to create reloadable object files.
9626 reload_flag=$lt_reload_flag
9627 reload_cmds=$lt_reload_cmds
9629 # How to pass a linker flag through the compiler.
9630 wl=$lt_lt_prog_compiler_wl
9632 # Object file suffix (normally "o").
9635 # Old archive suffix (normally "a").
9638 # Shared library suffix (normally ".so").
9639 shrext_cmds='$shrext_cmds'
9641 # Executable file suffix (normally "").
9644 # Additional compiler flags for building library objects.
9645 pic_flag=$lt_lt_prog_compiler_pic
9648 # What is the maximum length of a command?
9649 max_cmd_len=$lt_cv_sys_max_cmd_len
9651 # Does compiler simultaneously support -c and -o options?
9652 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9654 # Must we lock files when doing compilation?
9655 need_locks=$lt_need_locks
9657 # Do we need the lib prefix for modules?
9658 need_lib_prefix=$need_lib_prefix
9660 # Do we need a version for libraries?
9661 need_version=$need_version
9663 # Whether dlopen is supported.
9664 dlopen_support=$enable_dlopen
9666 # Whether dlopen of programs is supported.
9667 dlopen_self=$enable_dlopen_self
9669 # Whether dlopen of statically linked programs is supported.
9670 dlopen_self_static=$enable_dlopen_self_static
9672 # Compiler flag to prevent dynamic linking.
9673 link_static_flag=$lt_lt_prog_compiler_static
9675 # Compiler flag to turn off builtin functions.
9676 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9678 # Compiler flag to allow reflexive dlopens.
9679 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9681 # Compiler flag to generate shared objects directly from archives.
9682 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9684 # Compiler flag to generate thread-safe objects.
9685 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9687 # Library versioning type.
9688 version_type=$version_type
9690 # Format of library name prefix.
9691 libname_spec=$lt_libname_spec
9693 # List of archive names. First name is the real one, the rest are links.
9694 # The last name is the one that the linker finds with -lNAME.
9695 library_names_spec=$lt_library_names_spec
9697 # The coded name of the library, if different from the real name.
9698 soname_spec=$lt_soname_spec
9700 # Commands used to build and install an old-style archive.
9702 old_archive_cmds=$lt_old_archive_cmds
9703 old_postinstall_cmds=$lt_old_postinstall_cmds
9704 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9706 # Create an old-style archive from a shared archive.
9707 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9709 # Create a temporary old-style archive to link instead of a shared archive.
9710 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9712 # Commands used to build and install a shared archive.
9713 archive_cmds=$lt_archive_cmds
9714 archive_expsym_cmds=$lt_archive_expsym_cmds
9715 postinstall_cmds=$lt_postinstall_cmds
9716 postuninstall_cmds=$lt_postuninstall_cmds
9718 # Commands used to build a loadable module (assumed same as above if empty)
9719 module_cmds=$lt_module_cmds
9720 module_expsym_cmds=$lt_module_expsym_cmds
9722 # Commands to strip libraries.
9723 old_striplib=$lt_old_striplib
9724 striplib=$lt_striplib
9726 # Dependencies to place before the objects being linked to create a
9728 predep_objects=$lt_predep_objects
9730 # Dependencies to place after the objects being linked to create a
9732 postdep_objects=$lt_postdep_objects
9734 # Dependencies to place before the objects being linked to create a
9738 # Dependencies to place after the objects being linked to create a
9740 postdeps=$lt_postdeps
9742 # The library search path used internally by the compiler when linking
9744 compiler_lib_search_path=$lt_compiler_lib_search_path
9746 # Method to check whether dependent libraries are shared objects.
9747 deplibs_check_method=$lt_deplibs_check_method
9749 # Command to use when deplibs_check_method == file_magic.
9750 file_magic_cmd=$lt_file_magic_cmd
9752 # Flag that allows shared libraries with undefined symbols to be built.
9753 allow_undefined_flag=$lt_allow_undefined_flag
9755 # Flag that forces no undefined symbols.
9756 no_undefined_flag=$lt_no_undefined_flag
9758 # Commands used to finish a libtool library installation in a directory.
9759 finish_cmds=$lt_finish_cmds
9761 # Same as above, but a single script fragment to be evaled but not shown.
9762 finish_eval=$lt_finish_eval
9764 # Take the output of nm and produce a listing of raw symbols and C names.
9765 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9767 # Transform the output of nm in a proper C declaration
9768 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9770 # Transform the output of nm in a C name address pair
9771 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9773 # This is the shared library runtime path variable.
9774 runpath_var=$runpath_var
9776 # This is the shared library path variable.
9777 shlibpath_var=$shlibpath_var
9779 # Is shlibpath searched before the hard-coded library search path?
9780 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9782 # How to hardcode a shared library path into an executable.
9783 hardcode_action=$hardcode_action
9785 # Whether we should hardcode library paths into libraries.
9786 hardcode_into_libs=$hardcode_into_libs
9788 # Flag to hardcode \$libdir into a binary during linking.
9789 # This must work even if \$libdir does not exist.
9790 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9792 # If ld is used when linking, flag to hardcode \$libdir into
9793 # a binary during linking. This must work even if \$libdir does
9795 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9797 # Whether we need a single -rpath flag with a separated argument.
9798 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9800 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9802 hardcode_direct=$hardcode_direct
9804 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9806 hardcode_minus_L=$hardcode_minus_L
9808 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9809 # the resulting binary.
9810 hardcode_shlibpath_var=$hardcode_shlibpath_var
9812 # Set to yes if building a shared library automatically hardcodes DIR into the library
9813 # and all subsequent libraries and executables linked against it.
9814 hardcode_automatic=$hardcode_automatic
9816 # Variables whose values should be saved in libtool wrapper scripts and
9817 # restored at relink time.
9818 variables_saved_for_relink="$variables_saved_for_relink"
9820 # Whether libtool must link a program against all its dependency libraries.
9821 link_all_deplibs=$link_all_deplibs
9823 # Compile-time system search path for libraries
9824 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9826 # Run-time system search path for libraries
9827 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9829 # Fix the shell variable \$srcfile for the compiler.
9830 fix_srcfile_path="$fix_srcfile_path"
9832 # Set to yes if exported symbols are required.
9833 always_export_symbols=$always_export_symbols
9835 # The commands to list exported symbols.
9836 export_symbols_cmds=$lt_export_symbols_cmds
9838 # The commands to extract the exported symbol list from a shared archive.
9839 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9841 # Symbols that should not be listed in the preloaded symbols.
9842 exclude_expsyms=$lt_exclude_expsyms
9844 # Symbols that must always be exported.
9845 include_expsyms=$lt_include_expsyms
9847 # ### END LIBTOOL CONFIG
9854 cat <<\EOF >> "$cfgfile"
9856 # AIX sometimes has problems with the GCC collect2 program. For some
9857 # reason, if we set the COLLECT_NAMES environment variable, the problems
9858 # vanish in a puff of smoke.
9859 if test "X${COLLECT_NAMES+set}" != Xset; then
9861 export COLLECT_NAMES
9867 # We use sed instead of cat because bash on DJGPP gets confused if
9868 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9869 # text mode, it properly converts lines to CR/LF. This bash problem
9870 # is reportedly fixed, but why not run on old versions too?
9871 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9873 mv -f "$cfgfile" "$ofile" || \
9874 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9878 # If there is no Makefile yet, we rely on a make rule to execute
9879 # `config.status --recheck' to rerun these tests and create the
9880 # libtool script then.
9881 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9882 if test -f "$ltmain_in"; then
9883 test -f Makefile && make "$ltmain"
9889 ac_cpp='$CPP $CPPFLAGS'
9890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9897 # Check whether --with-tags or --without-tags was given.
9898 if test "${with_tags+set}" = set; then
9899 withval="$with_tags"
9903 if test -f "$ltmain" && test -n "$tagnames"; then
9904 if test ! -f "${ofile}"; then
9905 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9906 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9909 if test -z "$LTCC"; then
9910 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9911 if test -z "$LTCC"; then
9912 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9913 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9915 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9916 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9920 # Extract list of available tagged configurations in $ofile.
9921 # Note that this assumes the entire list is on one line.
9922 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9924 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9925 for tagname in $tagnames; do
9927 # Check whether tagname contains only valid characters
9928 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9930 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9931 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9932 { (exit 1); exit 1; }; }
9936 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9938 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9939 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9940 { (exit 1); exit 1; }; }
9943 # Update the list of available tags.
9944 if test -n "$tagname"; then
9945 echo appending configuration tag \"$tagname\" to $ofile
9949 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9950 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9951 (test "X$CXX" != "Xg++"))) ; then
9953 ac_cpp='$CXXCPP $CPPFLAGS'
9954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9961 archive_cmds_need_lc_CXX=no
9962 allow_undefined_flag_CXX=
9963 always_export_symbols_CXX=no
9964 archive_expsym_cmds_CXX=
9965 export_dynamic_flag_spec_CXX=
9966 hardcode_direct_CXX=no
9967 hardcode_libdir_flag_spec_CXX=
9968 hardcode_libdir_flag_spec_ld_CXX=
9969 hardcode_libdir_separator_CXX=
9970 hardcode_minus_L_CXX=no
9971 hardcode_automatic_CXX=no
9973 module_expsym_cmds_CXX=
9974 link_all_deplibs_CXX=unknown
9975 old_archive_cmds_CXX=$old_archive_cmds
9976 no_undefined_flag_CXX=
9977 whole_archive_flag_spec_CXX=
9978 enable_shared_with_static_runtimes_CXX=no
9980 # Dependencies to place before and after the object being linked:
9982 postdep_objects_CXX=
9985 compiler_lib_search_path_CXX=
9987 # Source file extension for C++ test sources.
9990 # Object file extension for compiled C++ test sources.
9994 # Code to be used in simple compile tests
9995 lt_simple_compile_test_code="int some_variable = 0;\n"
9997 # Code to be used in simple link tests
9998 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10000 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10002 # If no C compiler was specified, use CC.
10005 # Allow CC to be a program name with arguments.
10009 # save warnings/boilerplate of simple test code
10010 ac_outfile=conftest.$ac_objext
10011 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10012 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10013 _lt_compiler_boilerplate=`cat conftest.err`
10016 ac_outfile=conftest.$ac_objext
10017 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10018 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10019 _lt_linker_boilerplate=`cat conftest.err`
10023 # Allow CC to be a program name with arguments.
10028 lt_save_with_gnu_ld=$with_gnu_ld
10029 lt_save_path_LD=$lt_cv_path_LD
10030 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10031 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10033 unset lt_cv_prog_gnu_ld
10035 if test -n "${lt_cv_path_LDCXX+set}"; then
10036 lt_cv_path_LD=$lt_cv_path_LDCXX
10038 unset lt_cv_path_LD
10040 test -z "${LDCXX+set}" || LD=$LDCXX
10044 for cc_temp in $compiler""; do
10046 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10047 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10052 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10055 # We don't want -fno-exception wen compiling C++ code, so set the
10056 # no_builtin_flag separately
10057 if test "$GXX" = yes; then
10058 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10060 lt_prog_compiler_no_builtin_flag_CXX=
10063 if test "$GXX" = yes; then
10064 # Set up default GNU C++ configuration
10067 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10068 if test "${with_gnu_ld+set}" = set; then
10069 withval="$with_gnu_ld"
10070 test "$withval" = no || with_gnu_ld=yes
10075 if test "$GCC" = yes; then
10076 # Check if gcc -print-prog-name=ld gives a path.
10077 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10078 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10081 # gcc leaves a trailing carriage return which upsets mingw
10082 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10084 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10087 # Accept absolute paths.
10089 re_direlt='/[^/][^/]*/\.\./'
10090 # Canonicalize the pathname of ld
10091 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10092 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10093 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10095 test -z "$LD" && LD="$ac_prog"
10098 # If it fails, then pretend we aren't using GCC.
10102 # If it is relative, then search for the first ld in PATH.
10103 with_gnu_ld=unknown
10106 elif test "$with_gnu_ld" = yes; then
10107 echo "$as_me:$LINENO: checking for GNU ld" >&5
10108 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10110 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10111 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10113 if test "${lt_cv_path_LD+set}" = set; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10116 if test -z "$LD"; then
10117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10118 for ac_dir in $PATH; do
10120 test -z "$ac_dir" && ac_dir=.
10121 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10122 lt_cv_path_LD="$ac_dir/$ac_prog"
10123 # Check to see if the program is GNU ld. I'd rather use --version,
10124 # but apparently some GNU ld's only accept -v.
10125 # Break only if it was the GNU/non-GNU ld that we prefer.
10126 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10127 *GNU* | *'with BFD'*)
10128 test "$with_gnu_ld" != no && break
10131 test "$with_gnu_ld" != yes && break
10138 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10142 LD="$lt_cv_path_LD"
10143 if test -n "$LD"; then
10144 echo "$as_me:$LINENO: result: $LD" >&5
10145 echo "${ECHO_T}$LD" >&6
10147 echo "$as_me:$LINENO: result: no" >&5
10148 echo "${ECHO_T}no" >&6
10150 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10151 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10152 { (exit 1); exit 1; }; }
10153 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10154 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10155 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10159 case `$LD -v 2>&1 </dev/null` in
10160 *GNU* | *'with BFD'*)
10161 lt_cv_prog_gnu_ld=yes
10164 lt_cv_prog_gnu_ld=no
10168 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10169 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10170 with_gnu_ld=$lt_cv_prog_gnu_ld
10174 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10175 # archiving commands below assume that GNU ld is being used.
10176 if test "$with_gnu_ld" = yes; then
10177 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10178 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'
10180 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10181 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10183 # If archive_cmds runs LD, not CC, wlarc should be empty
10184 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10185 # investigate it a little bit more. (MM)
10188 # ancient GNU ld didn't support --whole-archive et. al.
10189 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10190 grep 'no-whole-archive' > /dev/null; then
10191 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10193 whole_archive_flag_spec_CXX=
10199 # A generic and very simple default shared library creation
10200 # command for GNU C++ for the case where it uses the native
10201 # linker, instead of GNU ld. If possible, this setting should
10202 # overridden to take advantage of the native linker features on
10203 # the platform it is being used on.
10204 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10207 # Commands to make compiler produce verbose output that lists
10208 # what "hidden" libraries, object files and flags are used when
10209 # linking a shared library.
10210 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10218 # PORTME: fill in a description of your system's C++ link characteristics
10219 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10220 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10224 # FIXME: insert proper C++ library support
10228 if test "$host_cpu" = ia64; then
10229 # On IA64, the linker does run time linking by default, so we don't
10230 # have to do anything special.
10231 aix_use_runtimelinking=no
10232 exp_sym_flag='-Bexport'
10235 aix_use_runtimelinking=no
10237 # Test if we are trying to use run time linking or normal
10238 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10239 # need to do runtime linking.
10240 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10241 for ld_flag in $LDFLAGS; do
10244 aix_use_runtimelinking=yes
10251 exp_sym_flag='-bexport'
10252 no_entry_flag='-bnoentry'
10255 # When large executables or shared objects are built, AIX ld can
10256 # have problems creating the table of contents. If linking a library
10257 # or program results in "error TOC overflow" add -mminimal-toc to
10258 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10259 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10261 archive_cmds_CXX=''
10262 hardcode_direct_CXX=yes
10263 hardcode_libdir_separator_CXX=':'
10264 link_all_deplibs_CXX=yes
10266 if test "$GXX" = yes; then
10267 case $host_os in aix4.[012]|aix4.[012].*)
10268 # We only want to do this on AIX 4.2 and lower, the check
10269 # below for broken collect2 doesn't work under 4.3+
10270 collect2name=`${CC} -print-prog-name=collect2`
10271 if test -f "$collect2name" && \
10272 strings "$collect2name" | grep resolve_lib_name >/dev/null
10274 # We have reworked collect2
10275 hardcode_direct_CXX=yes
10277 # We have old collect2
10278 hardcode_direct_CXX=unsupported
10279 # It fails to find uninstalled libraries when the uninstalled
10280 # path is not listed in the libpath. Setting hardcode_minus_L
10281 # to unsupported forces relinking
10282 hardcode_minus_L_CXX=yes
10283 hardcode_libdir_flag_spec_CXX='-L$libdir'
10284 hardcode_libdir_separator_CXX=
10287 shared_flag='-shared'
10288 if test "$aix_use_runtimelinking" = yes; then
10289 shared_flag="$shared_flag "'${wl}-G'
10293 if test "$host_cpu" = ia64; then
10294 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10295 # chokes on -Wl,-G. The following line is correct:
10298 if test "$aix_use_runtimelinking" = yes; then
10299 shared_flag='${wl}-G'
10301 shared_flag='${wl}-bM:SRE'
10306 # It seems that -bexpall does not export symbols beginning with
10307 # underscore (_), so it is better to generate a list of symbols to export.
10308 always_export_symbols_CXX=yes
10309 if test "$aix_use_runtimelinking" = yes; then
10310 # Warning - without using the other runtime loading flags (-brtl),
10311 # -berok will link without error, but may produce a broken library.
10312 allow_undefined_flag_CXX='-berok'
10313 # Determine the default libpath from the value encoded in an empty executable.
10314 cat >conftest.$ac_ext <<_ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10329 rm -f conftest.$ac_objext conftest$ac_exeext
10330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10331 (eval $ac_link) 2>conftest.er1
10333 grep -v '^ *+' conftest.er1 >conftest.err
10335 cat conftest.err >&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } &&
10338 { ac_try='test -z "$ac_cxx_werror_flag"
10339 || test ! -s conftest.err'
10340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341 (eval $ac_try) 2>&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }; } &&
10345 { ac_try='test -s conftest$ac_exeext'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; }; then
10352 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10354 # Check for a 64-bit object if we didn't find anything.
10355 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; }
10358 echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10362 rm -f conftest.err conftest.$ac_objext \
10363 conftest$ac_exeext conftest.$ac_ext
10364 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10366 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10368 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10370 if test "$host_cpu" = ia64; then
10371 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10372 allow_undefined_flag_CXX="-z nodefs"
10373 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10375 # Determine the default libpath from the value encoded in an empty executable.
10376 cat >conftest.$ac_ext <<_ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h. */
10391 rm -f conftest.$ac_objext conftest$ac_exeext
10392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10393 (eval $ac_link) 2>conftest.er1
10395 grep -v '^ *+' conftest.er1 >conftest.err
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } &&
10400 { ac_try='test -z "$ac_cxx_werror_flag"
10401 || test ! -s conftest.err'
10402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; } &&
10407 { ac_try='test -s conftest$ac_exeext'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
10414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10416 # Check for a 64-bit object if we didn't find anything.
10417 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; }
10420 echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10424 rm -f conftest.err conftest.$ac_objext \
10425 conftest$ac_exeext conftest.$ac_ext
10426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10428 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10429 # Warning - without using the other run time loading flags,
10430 # -berok will link without error, but may produce a broken library.
10431 no_undefined_flag_CXX=' ${wl}-bernotok'
10432 allow_undefined_flag_CXX=' ${wl}-berok'
10433 # -bexpall does not export symbols beginning with underscore (_)
10434 always_export_symbols_CXX=yes
10435 # Exported symbols can be pulled into shared objects from archives
10436 whole_archive_flag_spec_CXX=' '
10437 archive_cmds_need_lc_CXX=yes
10438 # This is similar to how AIX traditionally builds it's shared libraries.
10439 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10444 case $cc_basename in
10446 # FIXME: insert proper C++ library support
10453 cygwin* | mingw* | pw32*)
10454 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10455 # as there is no search path for DLLs.
10456 hardcode_libdir_flag_spec_CXX='-L$libdir'
10457 allow_undefined_flag_CXX=unsupported
10458 always_export_symbols_CXX=no
10459 enable_shared_with_static_runtimes_CXX=yes
10461 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10462 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10463 # If the export-symbols file already is a .def file (1st line
10464 # is EXPORTS), use it as is; otherwise, prepend...
10465 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10466 cp $export_symbols $output_objdir/$soname.def;
10468 echo EXPORTS > $output_objdir/$soname.def;
10469 cat $export_symbols >> $output_objdir/$soname.def;
10471 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10476 darwin* | rhapsody*)
10478 rhapsody* | darwin1.[012])
10479 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10482 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10483 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10485 case ${MACOSX_DEPLOYMENT_TARGET} in
10487 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10490 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10496 archive_cmds_need_lc_CXX=no
10497 hardcode_direct_CXX=no
10498 hardcode_automatic_CXX=yes
10499 hardcode_shlibpath_var_CXX=unsupported
10500 whole_archive_flag_spec_CXX=''
10501 link_all_deplibs_CXX=yes
10503 if test "$GXX" = yes ; then
10504 lt_int_apple_cc_single_mod=no
10505 output_verbose_link_cmd='echo'
10506 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10507 lt_int_apple_cc_single_mod=yes
10509 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10510 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10512 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'
10514 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10515 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10516 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10517 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}'
10519 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}'
10521 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}'
10523 case $cc_basename in
10525 output_verbose_link_cmd='echo'
10526 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'
10527 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10528 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10529 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}'
10530 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}'
10540 case $cc_basename in
10542 # FIXME: insert proper C++ library support
10546 # Green Hills C++ Compiler
10547 # FIXME: insert proper C++ library support
10551 # FIXME: insert proper C++ library support
10557 # C++ shared libraries reported to be fairly broken before switch to ELF
10561 archive_cmds_need_lc_CXX=no
10563 freebsd* | kfreebsd*-gnu | dragonfly*)
10564 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10571 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10572 hardcode_libdir_separator_CXX=:
10573 export_dynamic_flag_spec_CXX='${wl}-E'
10574 hardcode_direct_CXX=yes
10575 hardcode_minus_L_CXX=yes # Not in the search PATH,
10576 # but as the default
10577 # location of the library.
10579 case $cc_basename in
10581 # FIXME: insert proper C++ library support
10585 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'
10586 # Commands to make compiler produce verbose output that lists
10587 # what "hidden" libraries, object files and flags are used when
10588 # linking a shared library.
10590 # There doesn't appear to be a way to prevent this compiler from
10591 # explicitly linking system object files so we need to strip them
10592 # from the output so that they don't get included in the library
10594 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'
10597 if test "$GXX" = yes; then
10598 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'
10600 # FIXME: insert proper C++ library support
10607 if test $with_gnu_ld = no; then
10608 case "$host_cpu" in
10610 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10611 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10612 hardcode_libdir_separator_CXX=:
10615 hardcode_libdir_flag_spec_CXX='-L$libdir'
10618 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10619 hardcode_libdir_separator_CXX=:
10620 export_dynamic_flag_spec_CXX='${wl}-E'
10624 case "$host_cpu" in
10626 hardcode_direct_CXX=no
10627 hardcode_shlibpath_var_CXX=no
10630 hardcode_direct_CXX=no
10631 hardcode_shlibpath_var_CXX=no
10632 hardcode_minus_L_CXX=yes # Not in the search PATH,
10633 # but as the default
10634 # location of the library.
10637 hardcode_direct_CXX=yes
10638 hardcode_minus_L_CXX=yes # Not in the search PATH,
10639 # but as the default
10640 # location of the library.
10644 case $cc_basename in
10646 # FIXME: insert proper C++ library support
10650 case "$host_cpu" in
10652 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10655 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10658 # Commands to make compiler produce verbose output that lists
10659 # what "hidden" libraries, object files and flags are used when
10660 # linking a shared library.
10662 # There doesn't appear to be a way to prevent this compiler from
10663 # explicitly linking system object files so we need to strip them
10664 # from the output so that they don't get included in the library
10666 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'
10669 if test "$GXX" = yes; then
10670 if test $with_gnu_ld = no; then
10671 case "$host_cpu" in
10673 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10676 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'
10681 # FIXME: insert proper C++ library support
10688 case $cc_basename in
10691 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'
10693 # Archives containing C++ object files must be created using
10694 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10695 # necessary to make sure instantiated templates are included
10697 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10700 if test "$GXX" = yes; then
10701 if test "$with_gnu_ld" = no; then
10702 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'
10704 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'
10707 link_all_deplibs_CXX=yes
10710 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10711 hardcode_libdir_separator_CXX=:
10714 case $cc_basename in
10716 # Kuck and Associates, Inc. (KAI) C++ Compiler
10718 # KCC will only create a shared library if the output file
10719 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10720 # to its proper name (with version) after linking.
10721 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'
10722 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'
10723 # Commands to make compiler produce verbose output that lists
10724 # what "hidden" libraries, object files and flags are used when
10725 # linking a shared library.
10727 # There doesn't appear to be a way to prevent this compiler from
10728 # explicitly linking system object files so we need to strip them
10729 # from the output so that they don't get included in the library
10731 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'
10733 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10734 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10736 # Archives containing C++ object files must be created using
10737 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10738 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10743 # version 8.0 and above of icpc choke on multiply defined symbols
10744 # if we add $predep_objects and $postdep_objects, however 7.1 and
10745 # earlier do not add the objects themselves.
10746 case `$CC -V 2>&1` in
10748 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10749 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'
10751 *) # Version 8.0 or newer
10754 ia64*) tmp_idyn=' -i_dynamic';;
10756 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10757 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'
10760 archive_cmds_need_lc_CXX=no
10761 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10762 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10763 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10766 # Portland Group C++ compiler
10767 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10768 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'
10770 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10771 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10772 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'
10776 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10777 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'
10779 runpath_var=LD_RUN_PATH
10780 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10781 hardcode_libdir_separator_CXX=:
10783 # Commands to make compiler produce verbose output that lists
10784 # what "hidden" libraries, object files and flags are used when
10785 # linking a shared library.
10787 # There doesn't appear to be a way to prevent this compiler from
10788 # explicitly linking system object files so we need to strip them
10789 # from the output so that they don't get included in the library
10791 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'
10796 # FIXME: insert proper C++ library support
10800 # FIXME: insert proper C++ library support
10804 case $cc_basename in
10806 # FIXME: insert proper C++ library support
10810 # FIXME: insert proper C++ library support
10816 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10817 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10819 hardcode_libdir_flag_spec_CXX='-R$libdir'
10820 hardcode_direct_CXX=yes
10821 hardcode_shlibpath_var_CXX=no
10823 # Workaround some broken pre-1.5 toolchains
10824 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10827 # C++ shared libraries are fairly broken
10831 hardcode_direct_CXX=yes
10832 hardcode_shlibpath_var_CXX=no
10833 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10834 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10835 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10836 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10837 export_dynamic_flag_spec_CXX='${wl}-E'
10838 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10840 output_verbose_link_cmd='echo'
10843 case $cc_basename in
10845 # Kuck and Associates, Inc. (KAI) C++ Compiler
10847 # KCC will only create a shared library if the output file
10848 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10849 # to its proper name (with version) after linking.
10850 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'
10852 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10853 hardcode_libdir_separator_CXX=:
10855 # Archives containing C++ object files must be created using
10856 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10857 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10861 # Rational C++ 2.4.1
10862 # FIXME: insert proper C++ library support
10866 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10867 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'
10869 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10870 hardcode_libdir_separator_CXX=:
10872 # Commands to make compiler produce verbose output that lists
10873 # what "hidden" libraries, object files and flags are used when
10874 # linking a shared library.
10876 # There doesn't appear to be a way to prevent this compiler from
10877 # explicitly linking system object files so we need to strip them
10878 # from the output so that they don't get included in the library
10880 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'
10883 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10884 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10885 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'
10887 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10888 hardcode_libdir_separator_CXX=:
10890 # Commands to make compiler produce verbose output that lists
10891 # what "hidden" libraries, object files and flags are used when
10892 # linking a shared library.
10893 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10896 # FIXME: insert proper C++ library support
10903 case $cc_basename in
10905 # Kuck and Associates, Inc. (KAI) C++ Compiler
10907 # KCC will only create a shared library if the output file
10908 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10909 # to its proper name (with version) after linking.
10910 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'
10912 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10913 hardcode_libdir_separator_CXX=:
10915 # Archives containing C++ object files must be created using
10916 # the KAI C++ compiler.
10917 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10920 # Rational C++ 2.4.1
10921 # FIXME: insert proper C++ library support
10925 allow_undefined_flag_CXX=' -expect_unresolved \*'
10926 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'
10927 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10928 echo "-hidden">> $lib.exp~
10929 $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~
10932 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10933 hardcode_libdir_separator_CXX=:
10935 # Commands to make compiler produce verbose output that lists
10936 # what "hidden" libraries, object files and flags are used when
10937 # linking a shared library.
10939 # There doesn't appear to be a way to prevent this compiler from
10940 # explicitly linking system object files so we need to strip them
10941 # from the output so that they don't get included in the library
10943 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'
10946 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10947 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10948 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'
10950 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10951 hardcode_libdir_separator_CXX=:
10953 # Commands to make compiler produce verbose output that lists
10954 # what "hidden" libraries, object files and flags are used when
10955 # linking a shared library.
10956 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10959 # FIXME: insert proper C++ library support
10966 # FIXME: insert proper C++ library support
10970 archive_cmds_need_lc_CXX=no
10971 case $cc_basename in
10973 # FIXME: insert proper C++ library support
10977 # FIXME: insert proper C++ library support
10983 case $cc_basename in
10986 # FIXME: insert proper C++ library support
10991 # FIXME: insert proper C++ library support
10995 # FIXME: insert proper C++ library support
11001 case $cc_basename in
11003 # Sun C++ 4.2, 5.x and Centerline C++
11004 no_undefined_flag_CXX=' -zdefs'
11005 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11006 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11007 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11009 hardcode_libdir_flag_spec_CXX='-R$libdir'
11010 hardcode_shlibpath_var_CXX=no
11012 solaris2.[0-5] | solaris2.[0-5].*) ;;
11014 # The C++ compiler is used as linker so we must use $wl
11015 # flag to pass the commands to the underlying system
11016 # linker. We must also pass each convience library through
11017 # to the system linker between allextract/defaultextract.
11018 # The C++ compiler will combine linker options so we
11019 # cannot just pass the convience library names through
11021 # Supported since Solaris 2.6 (maybe 2.5.1?)
11022 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'
11025 link_all_deplibs_CXX=yes
11027 # Commands to make compiler produce verbose output that lists
11028 # what "hidden" libraries, object files and flags are used when
11029 # linking a shared library.
11031 # There doesn't appear to be a way to prevent this compiler from
11032 # explicitly linking system object files so we need to strip them
11033 # from the output so that they don't get included in the library
11035 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11037 # Archives containing C++ object files must be created using
11038 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11039 # necessary to make sure instantiated templates are included
11041 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11044 # Green Hills C++ Compiler
11045 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11047 # The C++ compiler must be used to create the archive.
11048 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11051 # GNU C++ compiler with Solaris linker
11052 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11053 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11054 if $CC --version | grep -v '^2\.7' > /dev/null; then
11055 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11056 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11057 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11059 # Commands to make compiler produce verbose output that lists
11060 # what "hidden" libraries, object files and flags are used when
11061 # linking a shared library.
11062 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11064 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11066 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11067 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11068 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11070 # Commands to make compiler produce verbose output that lists
11071 # what "hidden" libraries, object files and flags are used when
11072 # linking a shared library.
11073 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11076 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11081 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11082 archive_cmds_need_lc_CXX=no
11085 case $cc_basename in
11087 # NonStop-UX NCC 3.20
11088 # FIXME: insert proper C++ library support
11092 # FIXME: insert proper C++ library support
11098 # FIXME: insert proper C++ library support
11102 # FIXME: insert proper C++ library support
11106 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11107 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11108 test "$ld_shlibs_CXX" = no && can_build_shared=no
11114 cat > conftest.$ac_ext <<EOF
11118 Foo (void) { a = 0; }
11124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11125 (eval $ac_compile) 2>&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; then
11129 # Parse the compiler output and extract the necessary
11130 # objects, libraries and library flags.
11132 # Sentinel used to keep track of whether or not we are before
11133 # the conftest object file.
11134 pre_test_object_deps_done=no
11136 # The `*' in the case matches for architectures that use `case' in
11137 # $output_verbose_cmd can trigger glob expansion during the loop
11138 # eval without this substitution.
11139 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11141 for p in `eval $output_verbose_link_cmd`; do
11145 # Some compilers place space between "-{L,R}" and the path.
11146 # Remove the space.
11147 if test $p = "-L" \
11148 || test $p = "-R"; then
11155 if test "$pre_test_object_deps_done" = no; then
11158 # Internal compiler library paths should come after those
11159 # provided the user. The postdeps already come after the
11160 # user supplied libs so there is no need to process them.
11161 if test -z "$compiler_lib_search_path_CXX"; then
11162 compiler_lib_search_path_CXX="${prev}${p}"
11164 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11167 # The "-l" case would never come before the object being
11168 # linked, so don't bother handling this case.
11171 if test -z "$postdeps_CXX"; then
11172 postdeps_CXX="${prev}${p}"
11174 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11180 # This assumes that the test object file only shows up
11181 # once in the compiler output.
11182 if test "$p" = "conftest.$objext"; then
11183 pre_test_object_deps_done=yes
11187 if test "$pre_test_object_deps_done" = no; then
11188 if test -z "$predep_objects_CXX"; then
11189 predep_objects_CXX="$p"
11191 predep_objects_CXX="$predep_objects_CXX $p"
11194 if test -z "$postdep_objects_CXX"; then
11195 postdep_objects_CXX="$p"
11197 postdep_objects_CXX="$postdep_objects_CXX $p"
11202 *) ;; # Ignore the rest.
11210 echo "libtool.m4: error: problem compiling CXX test program"
11213 $rm -f confest.$objext
11215 case " $postdeps_CXX " in
11216 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11219 lt_prog_compiler_wl_CXX=
11220 lt_prog_compiler_pic_CXX=
11221 lt_prog_compiler_static_CXX=
11223 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11224 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11226 # C++ specific cases for pic, static, wl, etc.
11227 if test "$GXX" = yes; then
11228 lt_prog_compiler_wl_CXX='-Wl,'
11229 lt_prog_compiler_static_CXX='-static'
11233 # All AIX code is PIC.
11234 if test "$host_cpu" = ia64; then
11235 # AIX 5 now supports IA64 processor
11236 lt_prog_compiler_static_CXX='-Bstatic'
11240 # FIXME: we need at least 68020 code to build shared libraries, but
11241 # adding the `-m68020' flag to GCC prevents building anything better,
11243 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11245 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11246 # PIC is the default for these OSes.
11248 mingw* | os2* | pw32*)
11249 # This hack is so that the source file can tell whether it is being
11250 # built for inclusion in a dll (and should export symbols for example).
11251 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11253 darwin* | rhapsody*)
11254 # PIC is the default on this platform
11255 # Common symbols not allowed in MH_DYLIB files
11256 lt_prog_compiler_pic_CXX='-fno-common'
11259 # DJGPP does not support shared libraries at all
11260 lt_prog_compiler_pic_CXX=
11263 if test -d /usr/nec; then
11264 lt_prog_compiler_pic_CXX=-Kconform_pic
11268 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11269 # not for PA HP-UX.
11270 case "$host_cpu" in
11274 lt_prog_compiler_pic_CXX='-fPIC'
11279 lt_prog_compiler_pic_CXX='-fPIC'
11285 # All AIX code is PIC.
11286 if test "$host_cpu" = ia64; then
11287 # AIX 5 now supports IA64 processor
11288 lt_prog_compiler_static_CXX='-Bstatic'
11290 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11294 case $cc_basename in
11296 # Green Hills C++ Compiler
11297 # _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"
11302 # PIC is the default on this platform
11303 # Common symbols not allowed in MH_DYLIB files
11304 case $cc_basename in
11306 lt_prog_compiler_pic_CXX='-qnocommon'
11307 lt_prog_compiler_wl_CXX='-Wl,'
11312 case $cc_basename in
11314 lt_prog_compiler_pic_CXX='-KPIC'
11317 # Green Hills C++ Compiler
11318 lt_prog_compiler_pic_CXX='-pic'
11324 freebsd* | kfreebsd*-gnu | dragonfly*)
11325 # FreeBSD uses GNU C++
11327 hpux9* | hpux10* | hpux11*)
11328 case $cc_basename in
11330 lt_prog_compiler_wl_CXX='-Wl,'
11331 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11332 if test "$host_cpu" != ia64; then
11333 lt_prog_compiler_pic_CXX='+Z'
11337 lt_prog_compiler_wl_CXX='-Wl,'
11338 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11339 case "$host_cpu" in
11344 lt_prog_compiler_pic_CXX='+Z'
11352 irix5* | irix6* | nonstopux*)
11353 case $cc_basename in
11355 lt_prog_compiler_wl_CXX='-Wl,'
11356 lt_prog_compiler_static_CXX='-non_shared'
11357 # CC pic flag -KPIC is the default.
11364 case $cc_basename in
11367 lt_prog_compiler_wl_CXX='--backend -Wl,'
11368 lt_prog_compiler_pic_CXX='-fPIC'
11372 lt_prog_compiler_wl_CXX='-Wl,'
11373 lt_prog_compiler_pic_CXX='-KPIC'
11374 lt_prog_compiler_static_CXX='-static'
11377 # Portland Group C++ compiler.
11378 lt_prog_compiler_wl_CXX='-Wl,'
11379 lt_prog_compiler_pic_CXX='-fpic'
11380 lt_prog_compiler_static_CXX='-static'
11384 # Make sure the PIC flag is empty. It appears that all Alpha
11385 # Linux and Compaq Tru64 Unix objects are PIC.
11386 lt_prog_compiler_pic_CXX=
11387 lt_prog_compiler_static_CXX='-non_shared'
11398 case $cc_basename in
11400 lt_prog_compiler_pic_CXX='-W c,exportall'
11408 osf3* | osf4* | osf5*)
11409 case $cc_basename in
11411 lt_prog_compiler_wl_CXX='--backend -Wl,'
11414 # Rational C++ 2.4.1
11415 lt_prog_compiler_pic_CXX='-pic'
11418 # Digital/Compaq C++
11419 lt_prog_compiler_wl_CXX='-Wl,'
11420 # Make sure the PIC flag is empty. It appears that all Alpha
11421 # Linux and Compaq Tru64 Unix objects are PIC.
11422 lt_prog_compiler_pic_CXX=
11423 lt_prog_compiler_static_CXX='-non_shared'
11432 case $cc_basename in
11434 lt_prog_compiler_pic_CXX='-fPIC'
11441 case $cc_basename in
11443 # Sun C++ 4.2, 5.x and Centerline C++
11444 lt_prog_compiler_pic_CXX='-KPIC'
11445 lt_prog_compiler_static_CXX='-Bstatic'
11446 lt_prog_compiler_wl_CXX='-Qoption ld '
11449 # Green Hills C++ Compiler
11450 lt_prog_compiler_pic_CXX='-PIC'
11457 case $cc_basename in
11460 lt_prog_compiler_pic_CXX='-pic'
11461 lt_prog_compiler_static_CXX='-Bstatic'
11465 lt_prog_compiler_pic_CXX='-pic'
11472 case $cc_basename in
11474 # NonStop-UX NCC 3.20
11475 lt_prog_compiler_pic_CXX='-KPIC'
11486 lt_prog_compiler_can_build_shared_CXX=no
11491 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11492 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11495 # Check to make sure the PIC flag actually works.
11497 if test -n "$lt_prog_compiler_pic_CXX"; then
11499 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11500 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11501 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11504 lt_prog_compiler_pic_works_CXX=no
11505 ac_outfile=conftest.$ac_objext
11506 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11507 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11508 # Insert the option either (1) after the last *FLAGS variable, or
11509 # (2) before a word containing "conftest.", or (3) at the end.
11510 # Note that $ac_compile itself does not contain backslashes and begins
11511 # with a dollar sign (not a hyphen), so the echo should work correctly.
11512 # The option is referenced via a variable to avoid confusing sed.
11513 lt_compile=`echo "$ac_compile" | $SED \
11514 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11516 -e 's:$: $lt_compiler_flag:'`
11517 (eval echo "\"\$as_me:11517: $lt_compile\"" >&5)
11518 (eval "$lt_compile" 2>conftest.err)
11520 cat conftest.err >&5
11521 echo "$as_me:11521: \$? = $ac_status" >&5
11522 if (exit $ac_status) && test -s "$ac_outfile"; then
11523 # The compiler can only warn and ignore the option if not recognized
11524 # So say no if there are warnings other than the usual output.
11525 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11526 $SED '/^$/d' conftest.err >conftest.er2
11527 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11528 lt_prog_compiler_pic_works_CXX=yes
11534 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11535 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11537 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11538 case $lt_prog_compiler_pic_CXX in
11540 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11543 lt_prog_compiler_pic_CXX=
11544 lt_prog_compiler_can_build_shared_CXX=no
11549 # For platforms which do not support PIC, -DPIC is meaningless:
11551 lt_prog_compiler_pic_CXX=
11554 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11558 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11559 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11560 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11563 lt_cv_prog_compiler_c_o_CXX=no
11564 $rm -r conftest 2>/dev/null
11568 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11570 lt_compiler_flag="-o out/conftest2.$ac_objext"
11571 # Insert the option either (1) after the last *FLAGS variable, or
11572 # (2) before a word containing "conftest.", or (3) at the end.
11573 # Note that $ac_compile itself does not contain backslashes and begins
11574 # with a dollar sign (not a hyphen), so the echo should work correctly.
11575 lt_compile=`echo "$ac_compile" | $SED \
11576 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11578 -e 's:$: $lt_compiler_flag:'`
11579 (eval echo "\"\$as_me:11579: $lt_compile\"" >&5)
11580 (eval "$lt_compile" 2>out/conftest.err)
11582 cat out/conftest.err >&5
11583 echo "$as_me:11583: \$? = $ac_status" >&5
11584 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11586 # The compiler can only warn and ignore the option if not recognized
11587 # So say no if there are warnings
11588 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11589 $SED '/^$/d' out/conftest.err >out/conftest.er2
11590 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11591 lt_cv_prog_compiler_c_o_CXX=yes
11596 # SGI C++ compiler will create directory out/ii_files/ for
11597 # template instantiation
11598 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11599 $rm out/* && rmdir out
11605 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11606 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11609 hard_links="nottested"
11610 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11611 # do not overwrite the value of need_locks provided by the user
11612 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11613 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11616 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11618 ln conftest.a conftest.b 2>&5 || hard_links=no
11619 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11620 echo "$as_me:$LINENO: result: $hard_links" >&5
11621 echo "${ECHO_T}$hard_links" >&6
11622 if test "$hard_links" = no; then
11623 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11624 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11631 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11632 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11634 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11637 # If we're using GNU nm, then we don't want the "-C" option.
11638 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11639 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11640 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'
11642 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'
11646 export_symbols_cmds_CXX="$ltdll_cmds"
11649 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'
11652 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11656 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11657 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11658 test "$ld_shlibs_CXX" = no && can_build_shared=no
11660 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11661 if test "$GCC" = yes; then
11662 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11666 # Do we need to explicitly link libc?
11668 case "x$archive_cmds_need_lc_CXX" in
11670 # Assume -lc should be added
11671 archive_cmds_need_lc_CXX=yes
11673 if test "$enable_shared" = yes && test "$GCC" = yes; then
11674 case $archive_cmds_CXX in
11676 # FIXME: we may have to deal with multi-command sequences.
11679 # Test whether the compiler implicitly links with -lc since on some
11680 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11681 # to ld, don't add -lc before -lgcc.
11682 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11683 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11685 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11688 (eval $ac_compile) 2>&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); } 2>conftest.err; then
11694 libobjs=conftest.$ac_objext
11696 wl=$lt_prog_compiler_wl_CXX
11702 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11703 allow_undefined_flag_CXX=
11704 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11705 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }
11710 archive_cmds_need_lc_CXX=no
11712 archive_cmds_need_lc_CXX=yes
11714 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11716 cat conftest.err 1>&5
11719 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11720 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11727 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11728 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11729 library_names_spec=
11730 libname_spec='lib$name'
11734 postuninstall_cmds=
11738 shlibpath_overrides_runpath=unknown
11740 dynamic_linker="$host_os ld.so"
11741 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11742 if test "$GCC" = yes; then
11743 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11744 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11745 # if the path contains ";" then we assume it to be the separator
11746 # otherwise default to the standard path separator (i.e. ":") - it is
11747 # assumed that no part of a normal pathname contains ";" but that should
11748 # okay in the real world where ";" in dirpaths is itself problematic.
11749 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11751 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11754 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11756 need_lib_prefix=unknown
11757 hardcode_into_libs=no
11759 # when you set need_version to no, make sure it does not cause -set_version
11760 # flags to be left without arguments
11761 need_version=unknown
11766 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11767 shlibpath_var=LIBPATH
11769 # AIX 3 has no versioning support, so we append a major version to the name.
11770 soname_spec='${libname}${release}${shared_ext}$major'
11777 hardcode_into_libs=yes
11778 if test "$host_cpu" = ia64; then
11779 # AIX 5 supports IA64
11780 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11781 shlibpath_var=LD_LIBRARY_PATH
11783 # With GCC up to 2.95.x, collect2 would create an import file
11784 # for dependence libraries. The import file would start with
11785 # the line `#! .'. This would cause the generated library to
11786 # depend on `.', always an invalid library. This was fixed in
11787 # development snapshots of GCC prior to 3.0.
11789 aix4 | aix4.[01] | aix4.[01].*)
11790 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11792 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11795 can_build_shared=no
11799 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11800 # soname into executable. Probably we can add versioning support to
11801 # collect2, so additional links can be useful in future.
11802 if test "$aix_use_runtimelinking" = yes; then
11803 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11804 # instead of lib<name>.a to let people know that these are not
11805 # typical AIX shared libraries.
11806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808 # We preserve .a as extension for shared libraries through AIX4.2
11809 # and later when we are not doing run time linking.
11810 library_names_spec='${libname}${release}.a $libname.a'
11811 soname_spec='${libname}${release}${shared_ext}$major'
11813 shlibpath_var=LIBPATH
11818 library_names_spec='$libname.ixlibrary $libname.a'
11819 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11820 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'
11824 library_names_spec='${libname}${shared_ext}'
11825 dynamic_linker="$host_os ld.so"
11826 shlibpath_var=LIBRARY_PATH
11832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11833 soname_spec='${libname}${release}${shared_ext}$major'
11834 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11835 shlibpath_var=LD_LIBRARY_PATH
11836 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11837 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11838 # the default ld.so.conf also contains /usr/contrib/lib and
11839 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11840 # libtool to hard-code these into programs
11843 cygwin* | mingw* | pw32*)
11844 version_type=windows
11849 case $GCC,$host_os in
11850 yes,cygwin* | yes,mingw* | yes,pw32*)
11851 library_names_spec='$libname.dll.a'
11852 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11853 postinstall_cmds='base_file=`basename \${file}`~
11854 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11855 dldir=$destdir/`dirname \$dlpath`~
11856 test -d \$dldir || mkdir -p \$dldir~
11857 $install_prog $dir/$dlname \$dldir/$dlname'
11858 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11859 dlpath=$dir/\$dldll~
11861 shlibpath_overrides_runpath=yes
11865 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11866 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11867 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11870 # MinGW DLLs use traditional 'lib' prefix
11871 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11872 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11873 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11874 # It is most probably a Windows format PATH printed by
11875 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11876 # path with ; separators, and with drive letters. We can handle the
11877 # drive letters (cygwin fileutils understands them), so leave them,
11878 # especially as we might pass files found there to a mingw objdump,
11879 # which wouldn't understand a cygwinified path. Ahh.
11880 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11882 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11886 # pw32 DLLs use 'pw' prefix rather than 'lib'
11887 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11893 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
11894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11895 supports_anon_versioning=no
11896 case `$LD -v 2>/dev/null` in
11897 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11898 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11899 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11900 *\ 2.11.*) ;; # other 2.11 versions
11901 *) supports_anon_versioning=yes ;;
11903 if test $supports_anon_versioning = yes; then
11904 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11905 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11906 $echo "local: *; };" >> $output_objdir/$libname.ver~
11907 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11909 $archive_expsym_cmds="$archive_cmds"
11917 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11920 dynamic_linker='Win32 ld.exe'
11921 # FIXME: first we should search . and the directory the executable is in
11925 darwin* | rhapsody*)
11926 dynamic_linker="$host_os dyld"
11927 version_type=darwin
11930 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11931 soname_spec='${libname}${release}${major}$shared_ext'
11932 shlibpath_overrides_runpath=yes
11933 shlibpath_var=DYLD_LIBRARY_PATH
11934 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11935 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11936 if test "$GCC" = yes; then
11937 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"`
11939 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11941 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11949 soname_spec='${libname}${release}${shared_ext}$major'
11950 shlibpath_var=LD_LIBRARY_PATH
11961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11962 soname_spec='${libname}${release}${shared_ext}$major'
11963 shlibpath_var=LD_LIBRARY_PATH
11964 shlibpath_overrides_runpath=no
11965 hardcode_into_libs=yes
11966 dynamic_linker='GNU ld.so'
11969 freebsd* | dragonfly*)
11970 # DragonFly does not have aout. When/if they implement a new
11971 # versioning mechanism, adjust this.
11972 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11973 version_type=freebsd-$objformat
11974 case $version_type in
11976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11981 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11985 shlibpath_var=LD_LIBRARY_PATH
11988 shlibpath_overrides_runpath=yes
11990 freebsd3.[01]* | freebsdelf3.[01]*)
11991 shlibpath_overrides_runpath=yes
11992 hardcode_into_libs=yes
11995 shlibpath_overrides_runpath=no
11996 hardcode_into_libs=yes
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 hardcode_into_libs=yes
12011 hpux9* | hpux10* | hpux11*)
12012 # Give a soname corresponding to the major version so that dld.sl refuses to
12013 # link against other versions.
12017 case "$host_cpu" in
12020 hardcode_into_libs=yes
12021 dynamic_linker="$host_os dld.so"
12022 shlibpath_var=LD_LIBRARY_PATH
12023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12025 soname_spec='${libname}${release}${shared_ext}$major'
12026 if test "X$HPUX_IA64_MODE" = X32; then
12027 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12029 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12031 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12035 hardcode_into_libs=yes
12036 dynamic_linker="$host_os dld.sl"
12037 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12038 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12040 soname_spec='${libname}${release}${shared_ext}$major'
12041 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12046 dynamic_linker="$host_os dld.sl"
12047 shlibpath_var=SHLIB_PATH
12048 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12050 soname_spec='${libname}${release}${shared_ext}$major'
12053 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12054 postinstall_cmds='chmod 555 $lib'
12057 irix5* | irix6* | nonstopux*)
12059 nonstopux*) version_type=nonstopux ;;
12061 if test "$lt_cv_prog_gnu_ld" = yes; then
12069 soname_spec='${libname}${release}${shared_ext}$major'
12070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12072 irix5* | nonstopux*)
12073 libsuff= shlibsuff=
12076 case $LD in # libtool.m4 will add one of these switches to LD
12077 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12078 libsuff= shlibsuff= libmagic=32-bit;;
12079 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12080 libsuff=32 shlibsuff=N32 libmagic=N32;;
12081 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12082 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12083 *) libsuff= shlibsuff= libmagic=never-match;;
12087 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12088 shlibpath_overrides_runpath=no
12089 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12090 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12091 hardcode_into_libs=yes
12094 # No shared lib support for Linux oldld, aout, or coff.
12095 linux*oldld* | linux*aout* | linux*coff*)
12099 # This must be Linux ELF.
12104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12105 soname_spec='${libname}${release}${shared_ext}$major'
12106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12107 shlibpath_var=LD_LIBRARY_PATH
12108 shlibpath_overrides_runpath=no
12109 # This implies no fast_install, which is unacceptable.
12110 # Some rework will be needed to allow for fast_install
12111 # before this can be enabled.
12112 hardcode_into_libs=yes
12114 # Append ld.so.conf contents to the search path
12115 if test -f /etc/ld.so.conf; then
12116 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' ' '`
12117 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12120 case $host_cpu:$lt_cv_cc_64bit_output in
12121 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
12122 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
12123 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
12127 # We used to test for /lib/ld.so.1 and disable shared libraries on
12128 # powerpc, because MkLinux only supported shared libraries with the
12129 # GNU dynamic linker. Since this was broken with cross compilers,
12130 # most powerpc-linux boxes support dynamic linking these days and
12131 # people can always --disable-shared, the test was removed, and we
12132 # assume the GNU/Linux dynamic linker is in use.
12133 dynamic_linker='GNU/Linux ld.so'
12135 # Find out which ABI we are using (multilib Linux x86_64 hack).
12137 case "$host_cpu" in
12139 echo '#line 12139 "configure"' > conftest.$ac_ext
12140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12141 (eval $ac_compile) 2>&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; then
12145 case `/usr/bin/file conftest.$ac_objext` in
12156 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
12157 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12165 soname_spec='${libname}${release}${shared_ext}$major'
12166 shlibpath_var=LD_LIBRARY_PATH
12167 shlibpath_overrides_runpath=no
12168 hardcode_into_libs=yes
12169 dynamic_linker='GNU ld.so'
12176 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12179 dynamic_linker='NetBSD (a.out) ld.so'
12181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12182 soname_spec='${libname}${release}${shared_ext}$major'
12183 dynamic_linker='NetBSD ld.elf_so'
12185 shlibpath_var=LD_LIBRARY_PATH
12186 shlibpath_overrides_runpath=yes
12187 hardcode_into_libs=yes
12192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12193 shlibpath_var=LD_LIBRARY_PATH
12194 shlibpath_overrides_runpath=yes
12201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12202 soname_spec='${libname}${release}${shared_ext}$major'
12203 shlibpath_var=LD_LIBRARY_PATH
12204 shlibpath_overrides_runpath=yes
12210 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12212 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12213 *) need_version=no ;;
12215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12216 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12217 shlibpath_var=LD_LIBRARY_PATH
12218 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12220 openbsd2.[89] | openbsd2.[89].*)
12221 shlibpath_overrides_runpath=no
12224 shlibpath_overrides_runpath=yes
12228 shlibpath_overrides_runpath=yes
12233 libname_spec='$name'
12236 library_names_spec='$libname${shared_ext} $libname.a'
12237 dynamic_linker='OS/2 ld.exe'
12238 shlibpath_var=LIBPATH
12241 osf3* | osf4* | osf5*)
12245 soname_spec='${libname}${release}${shared_ext}$major'
12246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12247 shlibpath_var=LD_LIBRARY_PATH
12248 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12249 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12254 soname_spec='${libname}${release}${shared_ext}$major'
12255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12256 shlibpath_var=LD_LIBRARY_PATH
12263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12264 soname_spec='${libname}${release}${shared_ext}$major'
12265 shlibpath_var=LD_LIBRARY_PATH
12266 shlibpath_overrides_runpath=yes
12267 hardcode_into_libs=yes
12268 # ldd complains unless libraries are executable
12269 postinstall_cmds='chmod +x $lib'
12274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12275 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12276 shlibpath_var=LD_LIBRARY_PATH
12277 shlibpath_overrides_runpath=yes
12278 if test "$with_gnu_ld" = yes; then
12284 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12287 soname_spec='${libname}${release}${shared_ext}$major'
12288 shlibpath_var=LD_LIBRARY_PATH
12289 case $host_vendor in
12291 shlibpath_overrides_runpath=no
12293 export_dynamic_flag_spec='${wl}-Blargedynsym'
12294 runpath_var=LD_RUN_PATH
12302 shlibpath_overrides_runpath=no
12303 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12309 if test -d /usr/nec ;then
12311 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12312 soname_spec='$libname${shared_ext}.$major'
12313 shlibpath_var=LD_LIBRARY_PATH
12319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12320 soname_spec='${libname}${release}${shared_ext}$major'
12321 shlibpath_var=LD_LIBRARY_PATH
12328 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12329 echo "${ECHO_T}$dynamic_linker" >&6
12330 test "$dynamic_linker" = no && can_build_shared=no
12332 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12333 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12334 hardcode_action_CXX=
12335 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12336 test -n "$runpath_var_CXX" || \
12337 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12339 # We can hardcode non-existant directories.
12340 if test "$hardcode_direct_CXX" != no &&
12341 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12342 # have to relink, otherwise we might link with an installed library
12343 # when we should be linking with a yet-to-be-installed one
12344 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12345 test "$hardcode_minus_L_CXX" != no; then
12346 # Linking always hardcodes the temporary library directory.
12347 hardcode_action_CXX=relink
12349 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12350 hardcode_action_CXX=immediate
12353 # We cannot hardcode anything, or else we can only hardcode existing
12355 hardcode_action_CXX=unsupported
12357 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12358 echo "${ECHO_T}$hardcode_action_CXX" >&6
12360 if test "$hardcode_action_CXX" = relink; then
12361 # Fast installation is not supported
12362 enable_fast_install=no
12363 elif test "$shlibpath_overrides_runpath" = yes ||
12364 test "$enable_shared" = no; then
12365 # Fast installation is not necessary
12366 enable_fast_install=needless
12371 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12372 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12373 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12374 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12375 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12376 echo "$as_me:$LINENO: result: yes" >&5
12377 echo "${ECHO_T}yes" >&6
12379 # FIXME - insert some real tests, host_os isn't really good enough
12382 if test -n "$STRIP" ; then
12383 striplib="$STRIP -x"
12384 echo "$as_me:$LINENO: result: yes" >&5
12385 echo "${ECHO_T}yes" >&6
12387 echo "$as_me:$LINENO: result: no" >&5
12388 echo "${ECHO_T}no" >&6
12392 echo "$as_me:$LINENO: result: no" >&5
12393 echo "${ECHO_T}no" >&6
12398 if test "x$enable_dlopen" != xyes; then
12399 enable_dlopen=unknown
12400 enable_dlopen_self=unknown
12401 enable_dlopen_self_static=unknown
12408 lt_cv_dlopen="load_add_on"
12410 lt_cv_dlopen_self=yes
12414 lt_cv_dlopen="LoadLibrary"
12419 lt_cv_dlopen="dlopen"
12424 # if libdl is installed we need to link against it
12425 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12426 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12427 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
12430 ac_check_lib_save_LIBS=$LIBS
12432 cat >conftest.$ac_ext <<_ACEOF
12435 cat confdefs.h >>conftest.$ac_ext
12436 cat >>conftest.$ac_ext <<_ACEOF
12437 /* end confdefs.h. */
12439 /* Override any gcc2 internal prototype to avoid an error. */
12443 /* We use char because int might match the return type of a gcc2
12444 builtin and then its argument prototype would still apply. */
12454 rm -f conftest.$ac_objext conftest$ac_exeext
12455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12456 (eval $ac_link) 2>conftest.er1
12458 grep -v '^ *+' conftest.er1 >conftest.err
12460 cat conftest.err >&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } &&
12463 { ac_try='test -z "$ac_cxx_werror_flag"
12464 || test ! -s conftest.err'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; } &&
12470 { ac_try='test -s conftest$ac_exeext'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; }; then
12476 ac_cv_lib_dl_dlopen=yes
12478 echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12481 ac_cv_lib_dl_dlopen=no
12483 rm -f conftest.err conftest.$ac_objext \
12484 conftest$ac_exeext conftest.$ac_ext
12485 LIBS=$ac_check_lib_save_LIBS
12487 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12488 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12489 if test $ac_cv_lib_dl_dlopen = yes; then
12490 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12493 lt_cv_dlopen="dyld"
12495 lt_cv_dlopen_self=yes
12502 echo "$as_me:$LINENO: checking for shl_load" >&5
12503 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12504 if test "${ac_cv_func_shl_load+set}" = set; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
12507 cat >conftest.$ac_ext <<_ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12513 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12515 #define shl_load innocuous_shl_load
12517 /* System header to define __stub macros and hopefully few prototypes,
12518 which can conflict with char shl_load (); below.
12519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12520 <limits.h> exists even on freestanding compilers. */
12523 # include <limits.h>
12525 # include <assert.h>
12530 /* Override any gcc2 internal prototype to avoid an error. */
12535 /* We use char because int might match the return type of a gcc2
12536 builtin and then its argument prototype would still apply. */
12538 /* The GNU C library defines this for functions which it implements
12539 to always fail with ENOSYS. Some functions are actually named
12540 something starting with __ and the normal name is an alias. */
12541 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12544 char (*f) () = shl_load;
12553 return f != shl_load;
12558 rm -f conftest.$ac_objext conftest$ac_exeext
12559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12560 (eval $ac_link) 2>conftest.er1
12562 grep -v '^ *+' conftest.er1 >conftest.err
12564 cat conftest.err >&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } &&
12567 { ac_try='test -z "$ac_cxx_werror_flag"
12568 || test ! -s conftest.err'
12569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570 (eval $ac_try) 2>&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; } &&
12574 { ac_try='test -s conftest$ac_exeext'
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; }; then
12580 ac_cv_func_shl_load=yes
12582 echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12585 ac_cv_func_shl_load=no
12587 rm -f conftest.err conftest.$ac_objext \
12588 conftest$ac_exeext conftest.$ac_ext
12590 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12591 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12592 if test $ac_cv_func_shl_load = yes; then
12593 lt_cv_dlopen="shl_load"
12595 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12596 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12597 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12598 echo $ECHO_N "(cached) $ECHO_C" >&6
12600 ac_check_lib_save_LIBS=$LIBS
12602 cat >conftest.$ac_ext <<_ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h. */
12609 /* Override any gcc2 internal prototype to avoid an error. */
12613 /* We use char because int might match the return type of a gcc2
12614 builtin and then its argument prototype would still apply. */
12624 rm -f conftest.$ac_objext conftest$ac_exeext
12625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12626 (eval $ac_link) 2>conftest.er1
12628 grep -v '^ *+' conftest.er1 >conftest.err
12630 cat conftest.err >&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } &&
12633 { ac_try='test -z "$ac_cxx_werror_flag"
12634 || test ! -s conftest.err'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; } &&
12640 { ac_try='test -s conftest$ac_exeext'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; }; then
12646 ac_cv_lib_dld_shl_load=yes
12648 echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12651 ac_cv_lib_dld_shl_load=no
12653 rm -f conftest.err conftest.$ac_objext \
12654 conftest$ac_exeext conftest.$ac_ext
12655 LIBS=$ac_check_lib_save_LIBS
12657 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12658 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12659 if test $ac_cv_lib_dld_shl_load = yes; then
12660 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12662 echo "$as_me:$LINENO: checking for dlopen" >&5
12663 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12664 if test "${ac_cv_func_dlopen+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12667 cat >conftest.$ac_ext <<_ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h. */
12673 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12675 #define dlopen innocuous_dlopen
12677 /* System header to define __stub macros and hopefully few prototypes,
12678 which can conflict with char dlopen (); below.
12679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12680 <limits.h> exists even on freestanding compilers. */
12683 # include <limits.h>
12685 # include <assert.h>
12690 /* Override any gcc2 internal prototype to avoid an error. */
12695 /* We use char because int might match the return type of a gcc2
12696 builtin and then its argument prototype would still apply. */
12698 /* The GNU C library defines this for functions which it implements
12699 to always fail with ENOSYS. Some functions are actually named
12700 something starting with __ and the normal name is an alias. */
12701 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12704 char (*f) () = dlopen;
12713 return f != dlopen;
12718 rm -f conftest.$ac_objext conftest$ac_exeext
12719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12720 (eval $ac_link) 2>conftest.er1
12722 grep -v '^ *+' conftest.er1 >conftest.err
12724 cat conftest.err >&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } &&
12727 { ac_try='test -z "$ac_cxx_werror_flag"
12728 || test ! -s conftest.err'
12729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730 (eval $ac_try) 2>&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; } &&
12734 { ac_try='test -s conftest$ac_exeext'
12735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; }; then
12740 ac_cv_func_dlopen=yes
12742 echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12745 ac_cv_func_dlopen=no
12747 rm -f conftest.err conftest.$ac_objext \
12748 conftest$ac_exeext conftest.$ac_ext
12750 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12751 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12752 if test $ac_cv_func_dlopen = yes; then
12753 lt_cv_dlopen="dlopen"
12755 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12756 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12757 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12760 ac_check_lib_save_LIBS=$LIBS
12762 cat >conftest.$ac_ext <<_ACEOF
12765 cat confdefs.h >>conftest.$ac_ext
12766 cat >>conftest.$ac_ext <<_ACEOF
12767 /* end confdefs.h. */
12769 /* Override any gcc2 internal prototype to avoid an error. */
12773 /* We use char because int might match the return type of a gcc2
12774 builtin and then its argument prototype would still apply. */
12784 rm -f conftest.$ac_objext conftest$ac_exeext
12785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12786 (eval $ac_link) 2>conftest.er1
12788 grep -v '^ *+' conftest.er1 >conftest.err
12790 cat conftest.err >&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } &&
12793 { ac_try='test -z "$ac_cxx_werror_flag"
12794 || test ! -s conftest.err'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; } &&
12800 { ac_try='test -s conftest$ac_exeext'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 ac_cv_lib_dl_dlopen=yes
12808 echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12811 ac_cv_lib_dl_dlopen=no
12813 rm -f conftest.err conftest.$ac_objext \
12814 conftest$ac_exeext conftest.$ac_ext
12815 LIBS=$ac_check_lib_save_LIBS
12817 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12818 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12819 if test $ac_cv_lib_dl_dlopen = yes; then
12820 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12822 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12823 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12824 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12827 ac_check_lib_save_LIBS=$LIBS
12828 LIBS="-lsvld $LIBS"
12829 cat >conftest.$ac_ext <<_ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h. */
12836 /* Override any gcc2 internal prototype to avoid an error. */
12840 /* We use char because int might match the return type of a gcc2
12841 builtin and then its argument prototype would still apply. */
12851 rm -f conftest.$ac_objext conftest$ac_exeext
12852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12853 (eval $ac_link) 2>conftest.er1
12855 grep -v '^ *+' conftest.er1 >conftest.err
12857 cat conftest.err >&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } &&
12860 { ac_try='test -z "$ac_cxx_werror_flag"
12861 || test ! -s conftest.err'
12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; } &&
12867 { ac_try='test -s conftest$ac_exeext'
12868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869 (eval $ac_try) 2>&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; }; then
12873 ac_cv_lib_svld_dlopen=yes
12875 echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.$ac_ext >&5
12878 ac_cv_lib_svld_dlopen=no
12880 rm -f conftest.err conftest.$ac_objext \
12881 conftest$ac_exeext conftest.$ac_ext
12882 LIBS=$ac_check_lib_save_LIBS
12884 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12885 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12886 if test $ac_cv_lib_svld_dlopen = yes; then
12887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12889 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12890 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12891 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12894 ac_check_lib_save_LIBS=$LIBS
12896 cat >conftest.$ac_ext <<_ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h. */
12903 /* Override any gcc2 internal prototype to avoid an error. */
12907 /* We use char because int might match the return type of a gcc2
12908 builtin and then its argument prototype would still apply. */
12918 rm -f conftest.$ac_objext conftest$ac_exeext
12919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12920 (eval $ac_link) 2>conftest.er1
12922 grep -v '^ *+' conftest.er1 >conftest.err
12924 cat conftest.err >&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } &&
12927 { ac_try='test -z "$ac_cxx_werror_flag"
12928 || test ! -s conftest.err'
12929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930 (eval $ac_try) 2>&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; } &&
12934 { ac_try='test -s conftest$ac_exeext'
12935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12936 (eval $ac_try) 2>&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); }; }; then
12940 ac_cv_lib_dld_dld_link=yes
12942 echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12945 ac_cv_lib_dld_dld_link=no
12947 rm -f conftest.err conftest.$ac_objext \
12948 conftest$ac_exeext conftest.$ac_ext
12949 LIBS=$ac_check_lib_save_LIBS
12951 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12952 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12953 if test $ac_cv_lib_dld_dld_link = yes; then
12954 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12975 if test "x$lt_cv_dlopen" != xno; then
12981 case $lt_cv_dlopen in
12983 save_CPPFLAGS="$CPPFLAGS"
12984 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12986 save_LDFLAGS="$LDFLAGS"
12987 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12990 LIBS="$lt_cv_dlopen_libs $LIBS"
12992 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12993 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12994 if test "${lt_cv_dlopen_self+set}" = set; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12997 if test "$cross_compiling" = yes; then :
12998 lt_cv_dlopen_self=cross
13000 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13001 lt_status=$lt_dlunknown
13002 cat > conftest.$ac_ext <<EOF
13003 #line 13003 "configure"
13004 #include "confdefs.h"
13013 # define LT_DLGLOBAL RTLD_GLOBAL
13016 # define LT_DLGLOBAL DL_GLOBAL
13018 # define LT_DLGLOBAL 0
13022 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13023 find out it does not work in some platform. */
13024 #ifndef LT_DLLAZY_OR_NOW
13026 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13029 # define LT_DLLAZY_OR_NOW DL_LAZY
13032 # define LT_DLLAZY_OR_NOW RTLD_NOW
13035 # define LT_DLLAZY_OR_NOW DL_NOW
13037 # define LT_DLLAZY_OR_NOW 0
13045 extern "C" void exit (int);
13048 void fnord() { int i=42;}
13051 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13052 int status = $lt_dlunknown;
13056 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13057 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13058 /* dlclose (self); */
13064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13065 (eval $ac_link) 2>&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13069 (./conftest; exit; ) 2>/dev/null
13071 case x$lt_status in
13072 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13073 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13074 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13077 # compilation failed
13078 lt_cv_dlopen_self=no
13085 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13086 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13088 if test "x$lt_cv_dlopen_self" = xyes; then
13089 LDFLAGS="$LDFLAGS $link_static_flag"
13090 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13091 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13092 if test "${lt_cv_dlopen_self_static+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 if test "$cross_compiling" = yes; then :
13096 lt_cv_dlopen_self_static=cross
13098 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13099 lt_status=$lt_dlunknown
13100 cat > conftest.$ac_ext <<EOF
13101 #line 13101 "configure"
13102 #include "confdefs.h"
13111 # define LT_DLGLOBAL RTLD_GLOBAL
13114 # define LT_DLGLOBAL DL_GLOBAL
13116 # define LT_DLGLOBAL 0
13120 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13121 find out it does not work in some platform. */
13122 #ifndef LT_DLLAZY_OR_NOW
13124 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13127 # define LT_DLLAZY_OR_NOW DL_LAZY
13130 # define LT_DLLAZY_OR_NOW RTLD_NOW
13133 # define LT_DLLAZY_OR_NOW DL_NOW
13135 # define LT_DLLAZY_OR_NOW 0
13143 extern "C" void exit (int);
13146 void fnord() { int i=42;}
13149 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13150 int status = $lt_dlunknown;
13154 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13155 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13156 /* dlclose (self); */
13162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13163 (eval $ac_link) 2>&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13167 (./conftest; exit; ) 2>/dev/null
13169 case x$lt_status in
13170 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13171 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13172 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13175 # compilation failed
13176 lt_cv_dlopen_self_static=no
13183 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13184 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13187 CPPFLAGS="$save_CPPFLAGS"
13188 LDFLAGS="$save_LDFLAGS"
13193 case $lt_cv_dlopen_self in
13194 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13195 *) enable_dlopen_self=unknown ;;
13198 case $lt_cv_dlopen_self_static in
13199 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13200 *) enable_dlopen_self_static=unknown ;;
13205 # The else clause should only fire when bootstrapping the
13206 # libtool distribution, otherwise you forgot to ship ltmain.sh
13207 # with your package, and you will get complaints that there are
13208 # no rules to generate ltmain.sh.
13209 if test -f "$ltmain"; then
13210 # See if we are running on zsh, and set the options which allow our commands through
13211 # without removal of \ escapes.
13212 if test -n "${ZSH_VERSION+set}" ; then
13213 setopt NO_GLOB_SUBST
13215 # Now quote all the things that may contain metacharacters while being
13216 # careful not to overquote the AC_SUBSTed values. We take copies of the
13217 # variables and quote the copies for generation of the libtool script.
13218 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13220 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13221 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13222 deplibs_check_method reload_flag reload_cmds need_locks \
13223 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13224 lt_cv_sys_global_symbol_to_c_name_address \
13225 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13226 old_postinstall_cmds old_postuninstall_cmds \
13230 lt_prog_compiler_wl_CXX \
13231 lt_prog_compiler_pic_CXX \
13232 lt_prog_compiler_static_CXX \
13233 lt_prog_compiler_no_builtin_flag_CXX \
13234 export_dynamic_flag_spec_CXX \
13235 thread_safe_flag_spec_CXX \
13236 whole_archive_flag_spec_CXX \
13237 enable_shared_with_static_runtimes_CXX \
13238 old_archive_cmds_CXX \
13239 old_archive_from_new_cmds_CXX \
13240 predep_objects_CXX \
13241 postdep_objects_CXX \
13244 compiler_lib_search_path_CXX \
13246 archive_expsym_cmds_CXX \
13247 postinstall_cmds_CXX \
13248 postuninstall_cmds_CXX \
13249 old_archive_from_expsyms_cmds_CXX \
13250 allow_undefined_flag_CXX \
13251 no_undefined_flag_CXX \
13252 export_symbols_cmds_CXX \
13253 hardcode_libdir_flag_spec_CXX \
13254 hardcode_libdir_flag_spec_ld_CXX \
13255 hardcode_libdir_separator_CXX \
13256 hardcode_automatic_CXX \
13258 module_expsym_cmds_CXX \
13259 lt_cv_prog_compiler_c_o_CXX \
13260 exclude_expsyms_CXX \
13261 include_expsyms_CXX; do
13264 old_archive_cmds_CXX | \
13265 old_archive_from_new_cmds_CXX | \
13266 archive_cmds_CXX | \
13267 archive_expsym_cmds_CXX | \
13268 module_cmds_CXX | \
13269 module_expsym_cmds_CXX | \
13270 old_archive_from_expsyms_cmds_CXX | \
13271 export_symbols_cmds_CXX | \
13272 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13273 postinstall_cmds | postuninstall_cmds | \
13274 old_postinstall_cmds | old_postuninstall_cmds | \
13275 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13276 # Double-quote double-evaled strings.
13277 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13280 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13286 *'\$0 --fallback-echo"')
13287 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13293 cat <<__EOF__ >> "$cfgfile"
13294 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13296 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13298 # Shell to use when invoking shell scripts.
13301 # Whether or not to build shared libraries.
13302 build_libtool_libs=$enable_shared
13304 # Whether or not to build static libraries.
13305 build_old_libs=$enable_static
13307 # Whether or not to add -lc for building shared libraries.
13308 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13310 # Whether or not to disallow shared libs when runtime libs are static
13311 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13313 # Whether or not to optimize for fast installation.
13314 fast_install=$enable_fast_install
13317 host_alias=$host_alias
13321 # The build system.
13322 build_alias=$build_alias
13326 # An echo program that does not interpret backslashes.
13331 AR_FLAGS=$lt_AR_FLAGS
13336 # A language-specific compiler.
13337 CC=$lt_compiler_CXX
13339 # Is the compiler the GNU C compiler?
13345 # The linker used to build libraries.
13348 # Whether we need hard or soft links.
13351 # A BSD-compatible nm program.
13354 # A symbol stripping program
13357 # Used to examine libraries when file_magic_cmd begins "file"
13358 MAGIC_CMD=$MAGIC_CMD
13360 # Used on cygwin: DLL creation program.
13363 # Used on cygwin: object dumper.
13366 # Used on cygwin: assembler.
13369 # The name of the directory that contains temporary libtool files.
13372 # How to create reloadable object files.
13373 reload_flag=$lt_reload_flag
13374 reload_cmds=$lt_reload_cmds
13376 # How to pass a linker flag through the compiler.
13377 wl=$lt_lt_prog_compiler_wl_CXX
13379 # Object file suffix (normally "o").
13380 objext="$ac_objext"
13382 # Old archive suffix (normally "a").
13385 # Shared library suffix (normally ".so").
13386 shrext_cmds='$shrext_cmds'
13388 # Executable file suffix (normally "").
13391 # Additional compiler flags for building library objects.
13392 pic_flag=$lt_lt_prog_compiler_pic_CXX
13395 # What is the maximum length of a command?
13396 max_cmd_len=$lt_cv_sys_max_cmd_len
13398 # Does compiler simultaneously support -c and -o options?
13399 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13401 # Must we lock files when doing compilation?
13402 need_locks=$lt_need_locks
13404 # Do we need the lib prefix for modules?
13405 need_lib_prefix=$need_lib_prefix
13407 # Do we need a version for libraries?
13408 need_version=$need_version
13410 # Whether dlopen is supported.
13411 dlopen_support=$enable_dlopen
13413 # Whether dlopen of programs is supported.
13414 dlopen_self=$enable_dlopen_self
13416 # Whether dlopen of statically linked programs is supported.
13417 dlopen_self_static=$enable_dlopen_self_static
13419 # Compiler flag to prevent dynamic linking.
13420 link_static_flag=$lt_lt_prog_compiler_static_CXX
13422 # Compiler flag to turn off builtin functions.
13423 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13425 # Compiler flag to allow reflexive dlopens.
13426 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13428 # Compiler flag to generate shared objects directly from archives.
13429 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13431 # Compiler flag to generate thread-safe objects.
13432 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13434 # Library versioning type.
13435 version_type=$version_type
13437 # Format of library name prefix.
13438 libname_spec=$lt_libname_spec
13440 # List of archive names. First name is the real one, the rest are links.
13441 # The last name is the one that the linker finds with -lNAME.
13442 library_names_spec=$lt_library_names_spec
13444 # The coded name of the library, if different from the real name.
13445 soname_spec=$lt_soname_spec
13447 # Commands used to build and install an old-style archive.
13449 old_archive_cmds=$lt_old_archive_cmds_CXX
13450 old_postinstall_cmds=$lt_old_postinstall_cmds
13451 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13453 # Create an old-style archive from a shared archive.
13454 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13456 # Create a temporary old-style archive to link instead of a shared archive.
13457 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13459 # Commands used to build and install a shared archive.
13460 archive_cmds=$lt_archive_cmds_CXX
13461 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13462 postinstall_cmds=$lt_postinstall_cmds
13463 postuninstall_cmds=$lt_postuninstall_cmds
13465 # Commands used to build a loadable module (assumed same as above if empty)
13466 module_cmds=$lt_module_cmds_CXX
13467 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13469 # Commands to strip libraries.
13470 old_striplib=$lt_old_striplib
13471 striplib=$lt_striplib
13473 # Dependencies to place before the objects being linked to create a
13475 predep_objects=$lt_predep_objects_CXX
13477 # Dependencies to place after the objects being linked to create a
13479 postdep_objects=$lt_postdep_objects_CXX
13481 # Dependencies to place before the objects being linked to create a
13483 predeps=$lt_predeps_CXX
13485 # Dependencies to place after the objects being linked to create a
13487 postdeps=$lt_postdeps_CXX
13489 # The library search path used internally by the compiler when linking
13490 # a shared library.
13491 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13493 # Method to check whether dependent libraries are shared objects.
13494 deplibs_check_method=$lt_deplibs_check_method
13496 # Command to use when deplibs_check_method == file_magic.
13497 file_magic_cmd=$lt_file_magic_cmd
13499 # Flag that allows shared libraries with undefined symbols to be built.
13500 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13502 # Flag that forces no undefined symbols.
13503 no_undefined_flag=$lt_no_undefined_flag_CXX
13505 # Commands used to finish a libtool library installation in a directory.
13506 finish_cmds=$lt_finish_cmds
13508 # Same as above, but a single script fragment to be evaled but not shown.
13509 finish_eval=$lt_finish_eval
13511 # Take the output of nm and produce a listing of raw symbols and C names.
13512 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13514 # Transform the output of nm in a proper C declaration
13515 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13517 # Transform the output of nm in a C name address pair
13518 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13520 # This is the shared library runtime path variable.
13521 runpath_var=$runpath_var
13523 # This is the shared library path variable.
13524 shlibpath_var=$shlibpath_var
13526 # Is shlibpath searched before the hard-coded library search path?
13527 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13529 # How to hardcode a shared library path into an executable.
13530 hardcode_action=$hardcode_action_CXX
13532 # Whether we should hardcode library paths into libraries.
13533 hardcode_into_libs=$hardcode_into_libs
13535 # Flag to hardcode \$libdir into a binary during linking.
13536 # This must work even if \$libdir does not exist.
13537 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13539 # If ld is used when linking, flag to hardcode \$libdir into
13540 # a binary during linking. This must work even if \$libdir does
13542 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13544 # Whether we need a single -rpath flag with a separated argument.
13545 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13547 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13548 # resulting binary.
13549 hardcode_direct=$hardcode_direct_CXX
13551 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13552 # resulting binary.
13553 hardcode_minus_L=$hardcode_minus_L_CXX
13555 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13556 # the resulting binary.
13557 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13559 # Set to yes if building a shared library automatically hardcodes DIR into the library
13560 # and all subsequent libraries and executables linked against it.
13561 hardcode_automatic=$hardcode_automatic_CXX
13563 # Variables whose values should be saved in libtool wrapper scripts and
13564 # restored at relink time.
13565 variables_saved_for_relink="$variables_saved_for_relink"
13567 # Whether libtool must link a program against all its dependency libraries.
13568 link_all_deplibs=$link_all_deplibs_CXX
13570 # Compile-time system search path for libraries
13571 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13573 # Run-time system search path for libraries
13574 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13576 # Fix the shell variable \$srcfile for the compiler.
13577 fix_srcfile_path="$fix_srcfile_path_CXX"
13579 # Set to yes if exported symbols are required.
13580 always_export_symbols=$always_export_symbols_CXX
13582 # The commands to list exported symbols.
13583 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13585 # The commands to extract the exported symbol list from a shared archive.
13586 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13588 # Symbols that should not be listed in the preloaded symbols.
13589 exclude_expsyms=$lt_exclude_expsyms_CXX
13591 # Symbols that must always be exported.
13592 include_expsyms=$lt_include_expsyms_CXX
13594 # ### END LIBTOOL TAG CONFIG: $tagname
13600 # If there is no Makefile yet, we rely on a make rule to execute
13601 # `config.status --recheck' to rerun these tests and create the
13602 # libtool script then.
13603 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13604 if test -f "$ltmain_in"; then
13605 test -f Makefile && make "$ltmain"
13611 ac_cpp='$CPP $CPPFLAGS'
13612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13620 with_gnu_ldcxx=$with_gnu_ld
13621 with_gnu_ld=$lt_save_with_gnu_ld
13622 lt_cv_path_LDCXX=$lt_cv_path_LD
13623 lt_cv_path_LD=$lt_save_path_LD
13624 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13625 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13633 if test -n "$F77" && test "X$F77" != "Xno"; then
13636 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13637 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13638 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13641 archive_cmds_need_lc_F77=no
13642 allow_undefined_flag_F77=
13643 always_export_symbols_F77=no
13644 archive_expsym_cmds_F77=
13645 export_dynamic_flag_spec_F77=
13646 hardcode_direct_F77=no
13647 hardcode_libdir_flag_spec_F77=
13648 hardcode_libdir_flag_spec_ld_F77=
13649 hardcode_libdir_separator_F77=
13650 hardcode_minus_L_F77=no
13651 hardcode_automatic_F77=no
13653 module_expsym_cmds_F77=
13654 link_all_deplibs_F77=unknown
13655 old_archive_cmds_F77=$old_archive_cmds
13656 no_undefined_flag_F77=
13657 whole_archive_flag_spec_F77=
13658 enable_shared_with_static_runtimes_F77=no
13660 # Source file extension for f77 test sources.
13663 # Object file extension for compiled f77 test sources.
13667 # Code to be used in simple compile tests
13668 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13670 # Code to be used in simple link tests
13671 lt_simple_link_test_code=" program t\n end\n"
13673 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13675 # If no C compiler was specified, use CC.
13678 # Allow CC to be a program name with arguments.
13682 # save warnings/boilerplate of simple test code
13683 ac_outfile=conftest.$ac_objext
13684 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13685 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13686 _lt_compiler_boilerplate=`cat conftest.err`
13689 ac_outfile=conftest.$ac_objext
13690 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13691 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13692 _lt_linker_boilerplate=`cat conftest.err`
13696 # Allow CC to be a program name with arguments.
13701 for cc_temp in $compiler""; do
13703 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13704 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13709 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13712 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13713 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13714 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13715 echo "${ECHO_T}$can_build_shared" >&6
13717 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13718 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13719 test "$can_build_shared" = "no" && enable_shared=no
13721 # On AIX, shared libraries and static libraries use the same namespace, and
13722 # are all built from PIC.
13725 test "$enable_shared" = yes && enable_static=no
13726 if test -n "$RANLIB"; then
13727 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13728 postinstall_cmds='$RANLIB $lib'
13732 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13733 test "$enable_shared" = yes && enable_static=no
13737 echo "$as_me:$LINENO: result: $enable_shared" >&5
13738 echo "${ECHO_T}$enable_shared" >&6
13740 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13741 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13742 # Make sure either enable_shared or enable_static is yes.
13743 test "$enable_shared" = yes || enable_static=yes
13744 echo "$as_me:$LINENO: result: $enable_static" >&5
13745 echo "${ECHO_T}$enable_static" >&6
13747 test "$ld_shlibs_F77" = no && can_build_shared=no
13752 lt_prog_compiler_wl_F77=
13753 lt_prog_compiler_pic_F77=
13754 lt_prog_compiler_static_F77=
13756 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13757 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13759 if test "$GCC" = yes; then
13760 lt_prog_compiler_wl_F77='-Wl,'
13761 lt_prog_compiler_static_F77='-static'
13765 # All AIX code is PIC.
13766 if test "$host_cpu" = ia64; then
13767 # AIX 5 now supports IA64 processor
13768 lt_prog_compiler_static_F77='-Bstatic'
13773 # FIXME: we need at least 68020 code to build shared libraries, but
13774 # adding the `-m68020' flag to GCC prevents building anything better,
13776 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13779 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13780 # PIC is the default for these OSes.
13783 mingw* | pw32* | os2*)
13784 # This hack is so that the source file can tell whether it is being
13785 # built for inclusion in a dll (and should export symbols for example).
13786 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13789 darwin* | rhapsody*)
13790 # PIC is the default on this platform
13791 # Common symbols not allowed in MH_DYLIB files
13792 lt_prog_compiler_pic_F77='-fno-common'
13796 # Just because we use GCC doesn't mean we suddenly get shared libraries
13797 # on systems that don't support them.
13798 lt_prog_compiler_can_build_shared_F77=no
13803 if test -d /usr/nec; then
13804 lt_prog_compiler_pic_F77=-Kconform_pic
13809 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13810 # not for PA HP-UX.
13811 case "$host_cpu" in
13816 lt_prog_compiler_pic_F77='-fPIC'
13822 lt_prog_compiler_pic_F77='-fPIC'
13826 # PORTME Check for flag to pass linker flags through the system compiler.
13829 lt_prog_compiler_wl_F77='-Wl,'
13830 if test "$host_cpu" = ia64; then
13831 # AIX 5 now supports IA64 processor
13832 lt_prog_compiler_static_F77='-Bstatic'
13834 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13838 # PIC is the default on this platform
13839 # Common symbols not allowed in MH_DYLIB files
13840 case $cc_basename in
13842 lt_prog_compiler_pic_F77='-qnocommon'
13843 lt_prog_compiler_wl_F77='-Wl,'
13848 mingw* | pw32* | os2*)
13849 # This hack is so that the source file can tell whether it is being
13850 # built for inclusion in a dll (and should export symbols for example).
13851 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13854 hpux9* | hpux10* | hpux11*)
13855 lt_prog_compiler_wl_F77='-Wl,'
13856 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13857 # not for PA HP-UX.
13858 case "$host_cpu" in
13863 lt_prog_compiler_pic_F77='+Z'
13866 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13867 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13870 irix5* | irix6* | nonstopux*)
13871 lt_prog_compiler_wl_F77='-Wl,'
13872 # PIC (with -KPIC) is the default.
13873 lt_prog_compiler_static_F77='-non_shared'
13877 lt_prog_compiler_pic_F77='-KPIC'
13878 lt_prog_compiler_static_F77='-Bstatic'
13882 case $cc_basename in
13884 lt_prog_compiler_wl_F77='-Wl,'
13885 lt_prog_compiler_pic_F77='-KPIC'
13886 lt_prog_compiler_static_F77='-static'
13888 pgcc* | pgf77* | pgf90*)
13889 # Portland Group compilers (*not* the Pentium gcc compiler,
13890 # which looks to be a dead project)
13891 lt_prog_compiler_wl_F77='-Wl,'
13892 lt_prog_compiler_pic_F77='-fpic'
13893 lt_prog_compiler_static_F77='-static'
13896 lt_prog_compiler_wl_F77='-Wl,'
13897 # All Alpha code is PIC.
13898 lt_prog_compiler_static_F77='-non_shared'
13903 osf3* | osf4* | osf5*)
13904 lt_prog_compiler_wl_F77='-Wl,'
13905 # All OSF/1 code is PIC.
13906 lt_prog_compiler_static_F77='-non_shared'
13910 lt_prog_compiler_pic_F77='-Kpic'
13911 lt_prog_compiler_static_F77='-dn'
13915 lt_prog_compiler_pic_F77='-KPIC'
13916 lt_prog_compiler_static_F77='-Bstatic'
13917 case $cc_basename in
13918 f77* | f90* | f95*)
13919 lt_prog_compiler_wl_F77='-Qoption ld ';;
13921 lt_prog_compiler_wl_F77='-Wl,';;
13926 lt_prog_compiler_wl_F77='-Qoption ld '
13927 lt_prog_compiler_pic_F77='-PIC'
13928 lt_prog_compiler_static_F77='-Bstatic'
13931 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13932 lt_prog_compiler_wl_F77='-Wl,'
13933 lt_prog_compiler_pic_F77='-KPIC'
13934 lt_prog_compiler_static_F77='-Bstatic'
13938 if test -d /usr/nec ;then
13939 lt_prog_compiler_pic_F77='-Kconform_pic'
13940 lt_prog_compiler_static_F77='-Bstatic'
13945 lt_prog_compiler_wl_F77='-Wl,'
13946 lt_prog_compiler_can_build_shared_F77=no
13950 lt_prog_compiler_pic_F77='-pic'
13951 lt_prog_compiler_static_F77='-Bstatic'
13955 lt_prog_compiler_can_build_shared_F77=no
13960 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13961 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13964 # Check to make sure the PIC flag actually works.
13966 if test -n "$lt_prog_compiler_pic_F77"; then
13968 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13969 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13970 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13973 lt_prog_compiler_pic_works_F77=no
13974 ac_outfile=conftest.$ac_objext
13975 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13976 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13977 # Insert the option either (1) after the last *FLAGS variable, or
13978 # (2) before a word containing "conftest.", or (3) at the end.
13979 # Note that $ac_compile itself does not contain backslashes and begins
13980 # with a dollar sign (not a hyphen), so the echo should work correctly.
13981 # The option is referenced via a variable to avoid confusing sed.
13982 lt_compile=`echo "$ac_compile" | $SED \
13983 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13985 -e 's:$: $lt_compiler_flag:'`
13986 (eval echo "\"\$as_me:13986: $lt_compile\"" >&5)
13987 (eval "$lt_compile" 2>conftest.err)
13989 cat conftest.err >&5
13990 echo "$as_me:13990: \$? = $ac_status" >&5
13991 if (exit $ac_status) && test -s "$ac_outfile"; then
13992 # The compiler can only warn and ignore the option if not recognized
13993 # So say no if there are warnings other than the usual output.
13994 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13995 $SED '/^$/d' conftest.err >conftest.er2
13996 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13997 lt_prog_compiler_pic_works_F77=yes
14003 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14004 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14006 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14007 case $lt_prog_compiler_pic_F77 in
14009 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14012 lt_prog_compiler_pic_F77=
14013 lt_prog_compiler_can_build_shared_F77=no
14018 # For platforms which do not support PIC, -DPIC is meaningless:
14020 lt_prog_compiler_pic_F77=
14023 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14027 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14028 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14029 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14030 echo $ECHO_N "(cached) $ECHO_C" >&6
14032 lt_cv_prog_compiler_c_o_F77=no
14033 $rm -r conftest 2>/dev/null
14037 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14039 lt_compiler_flag="-o out/conftest2.$ac_objext"
14040 # Insert the option either (1) after the last *FLAGS variable, or
14041 # (2) before a word containing "conftest.", or (3) at the end.
14042 # Note that $ac_compile itself does not contain backslashes and begins
14043 # with a dollar sign (not a hyphen), so the echo should work correctly.
14044 lt_compile=`echo "$ac_compile" | $SED \
14045 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14047 -e 's:$: $lt_compiler_flag:'`
14048 (eval echo "\"\$as_me:14048: $lt_compile\"" >&5)
14049 (eval "$lt_compile" 2>out/conftest.err)
14051 cat out/conftest.err >&5
14052 echo "$as_me:14052: \$? = $ac_status" >&5
14053 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14055 # The compiler can only warn and ignore the option if not recognized
14056 # So say no if there are warnings
14057 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14058 $SED '/^$/d' out/conftest.err >out/conftest.er2
14059 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14060 lt_cv_prog_compiler_c_o_F77=yes
14065 # SGI C++ compiler will create directory out/ii_files/ for
14066 # template instantiation
14067 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14068 $rm out/* && rmdir out
14074 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14075 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14078 hard_links="nottested"
14079 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14080 # do not overwrite the value of need_locks provided by the user
14081 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14082 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14085 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14087 ln conftest.a conftest.b 2>&5 || hard_links=no
14088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14089 echo "$as_me:$LINENO: result: $hard_links" >&5
14090 echo "${ECHO_T}$hard_links" >&6
14091 if test "$hard_links" = no; then
14092 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14093 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14100 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14101 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14104 allow_undefined_flag_F77=
14105 enable_shared_with_static_runtimes_F77=no
14107 archive_expsym_cmds_F77=
14108 old_archive_From_new_cmds_F77=
14109 old_archive_from_expsyms_cmds_F77=
14110 export_dynamic_flag_spec_F77=
14111 whole_archive_flag_spec_F77=
14112 thread_safe_flag_spec_F77=
14113 hardcode_libdir_flag_spec_F77=
14114 hardcode_libdir_flag_spec_ld_F77=
14115 hardcode_libdir_separator_F77=
14116 hardcode_direct_F77=no
14117 hardcode_minus_L_F77=no
14118 hardcode_shlibpath_var_F77=unsupported
14119 link_all_deplibs_F77=unknown
14120 hardcode_automatic_F77=no
14122 module_expsym_cmds_F77=
14123 always_export_symbols_F77=no
14124 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14125 # include_expsyms should be a list of space-separated symbols to be *always*
14126 # included in the symbol list
14127 include_expsyms_F77=
14128 # exclude_expsyms can be an extended regexp of symbols to exclude
14129 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14130 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14131 # as well as any symbol that contains `d'.
14132 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14133 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14134 # platforms (ab)use it in PIC code, but their linkers get confused if
14135 # the symbol is explicitly referenced. Since portable code cannot
14136 # rely on this symbol name, it's probably fine to never include it in
14137 # preloaded symbol tables.
14138 extract_expsyms_cmds=
14139 # Just being paranoid about ensuring that cc_basename is set.
14140 for cc_temp in $compiler""; do
14142 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14143 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14148 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14151 cygwin* | mingw* | pw32*)
14152 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14153 # When not using gcc, we currently assume that we are using
14154 # Microsoft Visual C++.
14155 if test "$GCC" != yes; then
14165 if test "$with_gnu_ld" = yes; then
14166 # If archive_cmds runs LD, not CC, wlarc should be empty
14169 # Set some defaults for GNU ld with shared library support. These
14170 # are reset later if shared libraries are not supported. Putting them
14171 # here allows them to be overridden if necessary.
14172 runpath_var=LD_RUN_PATH
14173 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14174 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14175 # ancient GNU ld didn't support --whole-archive et. al.
14176 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14177 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14179 whole_archive_flag_spec_F77=
14181 supports_anon_versioning=no
14182 case `$LD -v 2>/dev/null` in
14183 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14184 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14185 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14186 *\ 2.11.*) ;; # other 2.11 versions
14187 *) supports_anon_versioning=yes ;;
14190 # See if GNU ld supports shared libraries.
14192 aix3* | aix4* | aix5*)
14193 # On AIX/PPC, the GNU linker is very broken
14194 if test "$host_cpu" != ia64; then
14198 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14199 *** to be unable to reliably create shared libraries on AIX.
14200 *** Therefore, libtool is disabling shared libraries support. If you
14201 *** really care for shared libraries, you may want to modify your PATH
14202 *** so that a non-GNU linker is found, and then restart.
14209 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)'
14210 hardcode_libdir_flag_spec_F77='-L$libdir'
14211 hardcode_minus_L_F77=yes
14213 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14214 # that the semantics of dynamic libraries on AmigaOS, at least up
14215 # to version 4, is to share data among multiple programs linked
14216 # with the same dynamic library. Since this doesn't match the
14217 # behavior of shared libraries on other platforms, we can't use
14223 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14224 allow_undefined_flag_F77=unsupported
14225 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14226 # support --undefined. This deserves some investigation. FIXME
14227 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14233 cygwin* | mingw* | pw32*)
14234 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14235 # as there is no search path for DLLs.
14236 hardcode_libdir_flag_spec_F77='-L$libdir'
14237 allow_undefined_flag_F77=unsupported
14238 always_export_symbols_F77=no
14239 enable_shared_with_static_runtimes_F77=yes
14240 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14242 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14243 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14244 # If the export-symbols file already is a .def file (1st line
14245 # is EXPORTS), use it as is; otherwise, prepend...
14246 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14247 cp $export_symbols $output_objdir/$soname.def;
14249 echo EXPORTS > $output_objdir/$soname.def;
14250 cat $export_symbols >> $output_objdir/$soname.def;
14252 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14259 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14261 case $cc_basename,$host_cpu in
14262 pgcc*) # Portland Group C compiler
14263 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'
14264 tmp_addflag=' $pic_flag'
14266 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
14267 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'
14268 tmp_addflag=' $pic_flag -Mnomain' ;;
14269 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14270 tmp_addflag=' -i_dynamic' ;;
14271 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14272 tmp_addflag=' -i_dynamic -nofor_main' ;;
14273 ifc* | ifort*) # Intel Fortran compiler
14274 tmp_addflag=' -nofor_main' ;;
14276 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14278 if test $supports_anon_versioning = yes; then
14279 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14280 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14281 $echo "local: *; };" >> $output_objdir/$libname.ver~
14282 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14291 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14294 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14295 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14300 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14304 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14305 *** create shared libraries on Solaris systems. Therefore, libtool
14306 *** is disabling shared libraries support. We urge you to upgrade GNU
14307 *** binutils to release 2.9.1 or newer. Another option is to modify
14308 *** your PATH or compiler configuration so that the native linker is
14309 *** used, and then restart.
14312 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14313 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14314 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14321 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14323 hardcode_direct_F77=yes
14324 hardcode_shlibpath_var_F77=no
14328 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14329 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14330 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14337 if test "$ld_shlibs_F77" = no; then
14339 hardcode_libdir_flag_spec_F77=
14340 export_dynamic_flag_spec_F77=
14341 whole_archive_flag_spec_F77=
14344 # PORTME fill in a description of your system's linker (not GNU ld)
14347 allow_undefined_flag_F77=unsupported
14348 always_export_symbols_F77=yes
14349 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'
14350 # Note: this linker hardcodes the directories in LIBPATH if there
14351 # are no directories specified by -L.
14352 hardcode_minus_L_F77=yes
14353 if test "$GCC" = yes && test -z "$link_static_flag"; then
14354 # Neither direct hardcoding nor static linking is supported with a
14356 hardcode_direct_F77=unsupported
14361 if test "$host_cpu" = ia64; then
14362 # On IA64, the linker does run time linking by default, so we don't
14363 # have to do anything special.
14364 aix_use_runtimelinking=no
14365 exp_sym_flag='-Bexport'
14368 # If we're using GNU nm, then we don't want the "-C" option.
14369 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14370 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14371 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'
14373 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'
14375 aix_use_runtimelinking=no
14377 # Test if we are trying to use run time linking or normal
14378 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14379 # need to do runtime linking.
14380 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14381 for ld_flag in $LDFLAGS; do
14382 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14383 aix_use_runtimelinking=yes
14389 exp_sym_flag='-bexport'
14390 no_entry_flag='-bnoentry'
14393 # When large executables or shared objects are built, AIX ld can
14394 # have problems creating the table of contents. If linking a library
14395 # or program results in "error TOC overflow" add -mminimal-toc to
14396 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14397 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14399 archive_cmds_F77=''
14400 hardcode_direct_F77=yes
14401 hardcode_libdir_separator_F77=':'
14402 link_all_deplibs_F77=yes
14404 if test "$GCC" = yes; then
14405 case $host_os in aix4.[012]|aix4.[012].*)
14406 # We only want to do this on AIX 4.2 and lower, the check
14407 # below for broken collect2 doesn't work under 4.3+
14408 collect2name=`${CC} -print-prog-name=collect2`
14409 if test -f "$collect2name" && \
14410 strings "$collect2name" | grep resolve_lib_name >/dev/null
14412 # We have reworked collect2
14413 hardcode_direct_F77=yes
14415 # We have old collect2
14416 hardcode_direct_F77=unsupported
14417 # It fails to find uninstalled libraries when the uninstalled
14418 # path is not listed in the libpath. Setting hardcode_minus_L
14419 # to unsupported forces relinking
14420 hardcode_minus_L_F77=yes
14421 hardcode_libdir_flag_spec_F77='-L$libdir'
14422 hardcode_libdir_separator_F77=
14425 shared_flag='-shared'
14426 if test "$aix_use_runtimelinking" = yes; then
14427 shared_flag="$shared_flag "'${wl}-G'
14431 if test "$host_cpu" = ia64; then
14432 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14433 # chokes on -Wl,-G. The following line is correct:
14436 if test "$aix_use_runtimelinking" = yes; then
14437 shared_flag='${wl}-G'
14439 shared_flag='${wl}-bM:SRE'
14444 # It seems that -bexpall does not export symbols beginning with
14445 # underscore (_), so it is better to generate a list of symbols to export.
14446 always_export_symbols_F77=yes
14447 if test "$aix_use_runtimelinking" = yes; then
14448 # Warning - without using the other runtime loading flags (-brtl),
14449 # -berok will link without error, but may produce a broken library.
14450 allow_undefined_flag_F77='-berok'
14451 # Determine the default libpath from the value encoded in an empty executable.
14452 cat >conftest.$ac_ext <<_ACEOF
14457 rm -f conftest.$ac_objext conftest$ac_exeext
14458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14459 (eval $ac_link) 2>conftest.er1
14461 grep -v '^ *+' conftest.er1 >conftest.err
14463 cat conftest.err >&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } &&
14466 { ac_try='test -z "$ac_f77_werror_flag"
14467 || test ! -s conftest.err'
14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; } &&
14473 { ac_try='test -s conftest$ac_exeext'
14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475 (eval $ac_try) 2>&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; }; then
14480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14482 # Check for a 64-bit object if we didn't find anything.
14483 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; }
14486 echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.$ac_ext >&5
14490 rm -f conftest.err conftest.$ac_objext \
14491 conftest$ac_exeext conftest.$ac_ext
14492 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14494 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14495 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14497 if test "$host_cpu" = ia64; then
14498 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14499 allow_undefined_flag_F77="-z nodefs"
14500 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14502 # Determine the default libpath from the value encoded in an empty executable.
14503 cat >conftest.$ac_ext <<_ACEOF
14508 rm -f conftest.$ac_objext conftest$ac_exeext
14509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14510 (eval $ac_link) 2>conftest.er1
14512 grep -v '^ *+' conftest.er1 >conftest.err
14514 cat conftest.err >&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); } &&
14517 { ac_try='test -z "$ac_f77_werror_flag"
14518 || test ! -s conftest.err'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } &&
14524 { ac_try='test -s conftest$ac_exeext'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14531 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14533 # Check for a 64-bit object if we didn't find anything.
14534 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; }
14537 echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14541 rm -f conftest.err conftest.$ac_objext \
14542 conftest$ac_exeext conftest.$ac_ext
14543 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14545 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14546 # Warning - without using the other run time loading flags,
14547 # -berok will link without error, but may produce a broken library.
14548 no_undefined_flag_F77=' ${wl}-bernotok'
14549 allow_undefined_flag_F77=' ${wl}-berok'
14550 # -bexpall does not export symbols beginning with underscore (_)
14551 always_export_symbols_F77=yes
14552 # Exported symbols can be pulled into shared objects from archives
14553 whole_archive_flag_spec_F77=' '
14554 archive_cmds_need_lc_F77=yes
14555 # This is similar to how AIX traditionally builds it's shared libraries.
14556 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14562 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)'
14563 hardcode_libdir_flag_spec_F77='-L$libdir'
14564 hardcode_minus_L_F77=yes
14565 # see comment about different semantics on the GNU ld section
14570 export_dynamic_flag_spec_F77=-rdynamic
14573 cygwin* | mingw* | pw32*)
14574 # When not using gcc, we currently assume that we are using
14575 # Microsoft Visual C++.
14576 # hardcode_libdir_flag_spec is actually meaningless, as there is
14577 # no search path for DLLs.
14578 hardcode_libdir_flag_spec_F77=' '
14579 allow_undefined_flag_F77=unsupported
14580 # Tell ltmain to make .lib files, not .a files.
14582 # Tell ltmain to make .dll files, not .so files.
14584 # FIXME: Setting linknames here is a bad hack.
14585 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14586 # The linker will automatically build a .lib file if we build a DLL.
14587 old_archive_From_new_cmds_F77='true'
14588 # FIXME: Should let the user specify the lib program.
14589 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14590 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14591 enable_shared_with_static_runtimes_F77=yes
14594 darwin* | rhapsody*)
14596 rhapsody* | darwin1.[012])
14597 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14600 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14601 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14603 case ${MACOSX_DEPLOYMENT_TARGET} in
14605 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14608 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14614 archive_cmds_need_lc_F77=no
14615 hardcode_direct_F77=no
14616 hardcode_automatic_F77=yes
14617 hardcode_shlibpath_var_F77=unsupported
14618 whole_archive_flag_spec_F77=''
14619 link_all_deplibs_F77=yes
14620 if test "$GCC" = yes ; then
14621 output_verbose_link_cmd='echo'
14622 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14623 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14624 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14625 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}'
14626 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}'
14628 case $cc_basename in
14630 output_verbose_link_cmd='echo'
14631 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14632 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14633 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14634 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}'
14635 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}'
14645 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14646 hardcode_libdir_flag_spec_F77='-L$libdir'
14647 hardcode_shlibpath_var_F77=no
14654 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14655 # support. Future versions do this automatically, but an explicit c++rt0.o
14656 # does not break anything, and helps significantly (at the cost of a little
14659 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14660 hardcode_libdir_flag_spec_F77='-R$libdir'
14661 hardcode_direct_F77=yes
14662 hardcode_shlibpath_var_F77=no
14665 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14667 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14668 hardcode_direct_F77=yes
14669 hardcode_minus_L_F77=yes
14670 hardcode_shlibpath_var_F77=no
14673 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14674 freebsd* | kfreebsd*-gnu | dragonfly*)
14675 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14676 hardcode_libdir_flag_spec_F77='-R$libdir'
14677 hardcode_direct_F77=yes
14678 hardcode_shlibpath_var_F77=no
14682 if test "$GCC" = yes; then
14683 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'
14685 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'
14687 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14688 hardcode_libdir_separator_F77=:
14689 hardcode_direct_F77=yes
14691 # hardcode_minus_L: Not really in the search PATH,
14692 # but as the default location of the library.
14693 hardcode_minus_L_F77=yes
14694 export_dynamic_flag_spec_F77='${wl}-E'
14698 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14699 case "$host_cpu" in
14701 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14704 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14708 case "$host_cpu" in
14710 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14713 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14717 if test "$with_gnu_ld" = no; then
14718 case "$host_cpu" in
14720 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14721 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14722 hardcode_libdir_separator_F77=:
14723 hardcode_direct_F77=no
14724 hardcode_shlibpath_var_F77=no
14727 hardcode_libdir_flag_spec_F77='-L$libdir'
14728 hardcode_direct_F77=no
14729 hardcode_shlibpath_var_F77=no
14731 # hardcode_minus_L: Not really in the search PATH,
14732 # but as the default location of the library.
14733 hardcode_minus_L_F77=yes
14736 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14737 hardcode_libdir_separator_F77=:
14738 hardcode_direct_F77=yes
14739 export_dynamic_flag_spec_F77='${wl}-E'
14741 # hardcode_minus_L: Not really in the search PATH,
14742 # but as the default location of the library.
14743 hardcode_minus_L_F77=yes
14749 irix5* | irix6* | nonstopux*)
14750 if test "$GCC" = yes; then
14751 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'
14753 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'
14754 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14756 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14757 hardcode_libdir_separator_F77=:
14758 link_all_deplibs_F77=yes
14762 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14763 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14765 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14767 hardcode_libdir_flag_spec_F77='-R$libdir'
14768 hardcode_direct_F77=yes
14769 hardcode_shlibpath_var_F77=no
14773 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14774 hardcode_direct_F77=yes
14775 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14776 hardcode_libdir_separator_F77=:
14777 hardcode_shlibpath_var_F77=no
14781 hardcode_direct_F77=yes
14782 hardcode_shlibpath_var_F77=no
14783 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14784 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14785 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14786 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14787 export_dynamic_flag_spec_F77='${wl}-E'
14790 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14791 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14792 hardcode_libdir_flag_spec_F77='-R$libdir'
14795 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14796 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14803 hardcode_libdir_flag_spec_F77='-L$libdir'
14804 hardcode_minus_L_F77=yes
14805 allow_undefined_flag_F77=unsupported
14806 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'
14807 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14811 if test "$GCC" = yes; then
14812 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14813 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'
14815 allow_undefined_flag_F77=' -expect_unresolved \*'
14816 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'
14818 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14819 hardcode_libdir_separator_F77=:
14822 osf4* | osf5*) # as osf3* with the addition of -msym flag
14823 if test "$GCC" = yes; then
14824 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14825 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'
14826 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14828 allow_undefined_flag_F77=' -expect_unresolved \*'
14829 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'
14830 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~
14831 $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'
14833 # Both c and cxx compiler support -rpath directly
14834 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14836 hardcode_libdir_separator_F77=:
14840 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14841 hardcode_shlibpath_var_F77=no
14842 export_dynamic_flag_spec_F77='${wl}-Bexport'
14843 runpath_var=LD_RUN_PATH
14844 hardcode_runpath_var=yes
14848 no_undefined_flag_F77=' -z text'
14849 if test "$GCC" = yes; then
14851 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14852 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14853 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14856 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14857 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14858 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14860 hardcode_libdir_flag_spec_F77='-R$libdir'
14861 hardcode_shlibpath_var_F77=no
14863 solaris2.[0-5] | solaris2.[0-5].*) ;;
14865 # The compiler driver will combine linker options so we
14866 # cannot just pass the convience library names through
14867 # without $wl, iff we do not link with $LD.
14868 # Luckily, gcc supports the same syntax we need for Sun Studio.
14869 # Supported since Solaris 2.6 (maybe 2.5.1?)
14872 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14874 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' ;;
14877 link_all_deplibs_F77=yes
14881 if test "x$host_vendor" = xsequent; then
14882 # Use $CC to link under sequent, because it throws in some extra .o
14883 # files that make .init and .fini sections work.
14884 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14886 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14888 hardcode_libdir_flag_spec_F77='-L$libdir'
14889 hardcode_direct_F77=yes
14890 hardcode_minus_L_F77=yes
14891 hardcode_shlibpath_var_F77=no
14895 case $host_vendor in
14897 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14898 hardcode_direct_F77=yes # is this really true???
14901 ## LD is ld it makes a PLAMLIB
14902 ## CC just makes a GrossModule.
14903 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14904 reload_cmds_F77='$CC -r -o $output$reload_objs'
14905 hardcode_direct_F77=no
14908 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14909 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14912 runpath_var='LD_RUN_PATH'
14913 hardcode_shlibpath_var_F77=no
14917 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14918 hardcode_shlibpath_var_F77=no
14919 export_dynamic_flag_spec_F77='-Bexport'
14923 if test -d /usr/nec; then
14924 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14925 hardcode_shlibpath_var_F77=no
14926 runpath_var=LD_RUN_PATH
14927 hardcode_runpath_var=yes
14933 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14934 hardcode_direct_F77=yes
14935 hardcode_minus_L_F77=no
14936 hardcode_shlibpath_var_F77=no
14937 hardcode_runpath_var=yes
14938 runpath_var=LD_RUN_PATH
14941 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14942 no_undefined_flag_F77='${wl}-z ${wl}text'
14943 if test "$GCC" = yes; then
14944 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14946 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14948 runpath_var='LD_RUN_PATH'
14949 hardcode_shlibpath_var_F77=no
14953 no_undefined_flag_F77=' -z text'
14954 # $CC -shared without GNU ld will not create a library from C++
14955 # object files and a static libstdc++, better avoid it by now
14956 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14957 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14958 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14959 hardcode_libdir_flag_spec_F77=
14960 hardcode_shlibpath_var_F77=no
14961 runpath_var='LD_RUN_PATH'
14965 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14966 hardcode_libdir_flag_spec_F77='-L$libdir'
14967 hardcode_shlibpath_var_F77=no
14976 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14977 echo "${ECHO_T}$ld_shlibs_F77" >&6
14978 test "$ld_shlibs_F77" = no && can_build_shared=no
14980 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14981 if test "$GCC" = yes; then
14982 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14986 # Do we need to explicitly link libc?
14988 case "x$archive_cmds_need_lc_F77" in
14990 # Assume -lc should be added
14991 archive_cmds_need_lc_F77=yes
14993 if test "$enable_shared" = yes && test "$GCC" = yes; then
14994 case $archive_cmds_F77 in
14996 # FIXME: we may have to deal with multi-command sequences.
14999 # Test whether the compiler implicitly links with -lc since on some
15000 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15001 # to ld, don't add -lc before -lgcc.
15002 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15003 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15005 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15008 (eval $ac_compile) 2>&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); } 2>conftest.err; then
15014 libobjs=conftest.$ac_objext
15016 wl=$lt_prog_compiler_wl_F77
15022 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15023 allow_undefined_flag_F77=
15024 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15025 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); }
15030 archive_cmds_need_lc_F77=no
15032 archive_cmds_need_lc_F77=yes
15034 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15036 cat conftest.err 1>&5
15039 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15040 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15047 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15048 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15049 library_names_spec=
15050 libname_spec='lib$name'
15054 postuninstall_cmds=
15058 shlibpath_overrides_runpath=unknown
15060 dynamic_linker="$host_os ld.so"
15061 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15062 if test "$GCC" = yes; then
15063 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15064 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15065 # if the path contains ";" then we assume it to be the separator
15066 # otherwise default to the standard path separator (i.e. ":") - it is
15067 # assumed that no part of a normal pathname contains ";" but that should
15068 # okay in the real world where ";" in dirpaths is itself problematic.
15069 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15071 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15074 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15076 need_lib_prefix=unknown
15077 hardcode_into_libs=no
15079 # when you set need_version to no, make sure it does not cause -set_version
15080 # flags to be left without arguments
15081 need_version=unknown
15086 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15087 shlibpath_var=LIBPATH
15089 # AIX 3 has no versioning support, so we append a major version to the name.
15090 soname_spec='${libname}${release}${shared_ext}$major'
15097 hardcode_into_libs=yes
15098 if test "$host_cpu" = ia64; then
15099 # AIX 5 supports IA64
15100 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15101 shlibpath_var=LD_LIBRARY_PATH
15103 # With GCC up to 2.95.x, collect2 would create an import file
15104 # for dependence libraries. The import file would start with
15105 # the line `#! .'. This would cause the generated library to
15106 # depend on `.', always an invalid library. This was fixed in
15107 # development snapshots of GCC prior to 3.0.
15109 aix4 | aix4.[01] | aix4.[01].*)
15110 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15112 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15115 can_build_shared=no
15119 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15120 # soname into executable. Probably we can add versioning support to
15121 # collect2, so additional links can be useful in future.
15122 if test "$aix_use_runtimelinking" = yes; then
15123 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15124 # instead of lib<name>.a to let people know that these are not
15125 # typical AIX shared libraries.
15126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15128 # We preserve .a as extension for shared libraries through AIX4.2
15129 # and later when we are not doing run time linking.
15130 library_names_spec='${libname}${release}.a $libname.a'
15131 soname_spec='${libname}${release}${shared_ext}$major'
15133 shlibpath_var=LIBPATH
15138 library_names_spec='$libname.ixlibrary $libname.a'
15139 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15140 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'
15144 library_names_spec='${libname}${shared_ext}'
15145 dynamic_linker="$host_os ld.so"
15146 shlibpath_var=LIBRARY_PATH
15152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15153 soname_spec='${libname}${release}${shared_ext}$major'
15154 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15155 shlibpath_var=LD_LIBRARY_PATH
15156 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15157 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15158 # the default ld.so.conf also contains /usr/contrib/lib and
15159 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15160 # libtool to hard-code these into programs
15163 cygwin* | mingw* | pw32*)
15164 version_type=windows
15169 case $GCC,$host_os in
15170 yes,cygwin* | yes,mingw* | yes,pw32*)
15171 library_names_spec='$libname.dll.a'
15172 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15173 postinstall_cmds='base_file=`basename \${file}`~
15174 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15175 dldir=$destdir/`dirname \$dlpath`~
15176 test -d \$dldir || mkdir -p \$dldir~
15177 $install_prog $dir/$dlname \$dldir/$dlname'
15178 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15179 dlpath=$dir/\$dldll~
15181 shlibpath_overrides_runpath=yes
15185 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15186 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15187 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15190 # MinGW DLLs use traditional 'lib' prefix
15191 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15192 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15193 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15194 # It is most probably a Windows format PATH printed by
15195 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15196 # path with ; separators, and with drive letters. We can handle the
15197 # drive letters (cygwin fileutils understands them), so leave them,
15198 # especially as we might pass files found there to a mingw objdump,
15199 # which wouldn't understand a cygwinified path. Ahh.
15200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15202 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15206 # pw32 DLLs use 'pw' prefix rather than 'lib'
15207 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15213 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15215 supports_anon_versioning=no
15216 case `$LD -v 2>/dev/null` in
15217 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15218 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15219 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15220 *\ 2.11.*) ;; # other 2.11 versions
15221 *) supports_anon_versioning=yes ;;
15223 if test $supports_anon_versioning = yes; then
15224 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15225 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15226 $echo "local: *; };" >> $output_objdir/$libname.ver~
15227 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15229 $archive_expsym_cmds="$archive_cmds"
15237 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15240 dynamic_linker='Win32 ld.exe'
15241 # FIXME: first we should search . and the directory the executable is in
15245 darwin* | rhapsody*)
15246 dynamic_linker="$host_os dyld"
15247 version_type=darwin
15250 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15251 soname_spec='${libname}${release}${major}$shared_ext'
15252 shlibpath_overrides_runpath=yes
15253 shlibpath_var=DYLD_LIBRARY_PATH
15254 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15255 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15256 if test "$GCC" = yes; then
15257 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"`
15259 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15261 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15269 soname_spec='${libname}${release}${shared_ext}$major'
15270 shlibpath_var=LD_LIBRARY_PATH
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15282 soname_spec='${libname}${release}${shared_ext}$major'
15283 shlibpath_var=LD_LIBRARY_PATH
15284 shlibpath_overrides_runpath=no
15285 hardcode_into_libs=yes
15286 dynamic_linker='GNU ld.so'
15289 freebsd* | dragonfly*)
15290 # DragonFly does not have aout. When/if they implement a new
15291 # versioning mechanism, adjust this.
15292 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15293 version_type=freebsd-$objformat
15294 case $version_type in
15296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15305 shlibpath_var=LD_LIBRARY_PATH
15308 shlibpath_overrides_runpath=yes
15310 freebsd3.[01]* | freebsdelf3.[01]*)
15311 shlibpath_overrides_runpath=yes
15312 hardcode_into_libs=yes
15315 shlibpath_overrides_runpath=no
15316 hardcode_into_libs=yes
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15326 soname_spec='${libname}${release}${shared_ext}$major'
15327 shlibpath_var=LD_LIBRARY_PATH
15328 hardcode_into_libs=yes
15331 hpux9* | hpux10* | hpux11*)
15332 # Give a soname corresponding to the major version so that dld.sl refuses to
15333 # link against other versions.
15337 case "$host_cpu" in
15340 hardcode_into_libs=yes
15341 dynamic_linker="$host_os dld.so"
15342 shlibpath_var=LD_LIBRARY_PATH
15343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15345 soname_spec='${libname}${release}${shared_ext}$major'
15346 if test "X$HPUX_IA64_MODE" = X32; then
15347 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15349 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15351 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15355 hardcode_into_libs=yes
15356 dynamic_linker="$host_os dld.sl"
15357 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15360 soname_spec='${libname}${release}${shared_ext}$major'
15361 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15366 dynamic_linker="$host_os dld.sl"
15367 shlibpath_var=SHLIB_PATH
15368 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15370 soname_spec='${libname}${release}${shared_ext}$major'
15373 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15374 postinstall_cmds='chmod 555 $lib'
15377 irix5* | irix6* | nonstopux*)
15379 nonstopux*) version_type=nonstopux ;;
15381 if test "$lt_cv_prog_gnu_ld" = yes; then
15389 soname_spec='${libname}${release}${shared_ext}$major'
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15392 irix5* | nonstopux*)
15393 libsuff= shlibsuff=
15396 case $LD in # libtool.m4 will add one of these switches to LD
15397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15398 libsuff= shlibsuff= libmagic=32-bit;;
15399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15400 libsuff=32 shlibsuff=N32 libmagic=N32;;
15401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15402 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15403 *) libsuff= shlibsuff= libmagic=never-match;;
15407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15408 shlibpath_overrides_runpath=no
15409 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15410 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15411 hardcode_into_libs=yes
15414 # No shared lib support for Linux oldld, aout, or coff.
15415 linux*oldld* | linux*aout* | linux*coff*)
15419 # This must be Linux ELF.
15424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15425 soname_spec='${libname}${release}${shared_ext}$major'
15426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15427 shlibpath_var=LD_LIBRARY_PATH
15428 shlibpath_overrides_runpath=no
15429 # This implies no fast_install, which is unacceptable.
15430 # Some rework will be needed to allow for fast_install
15431 # before this can be enabled.
15432 hardcode_into_libs=yes
15434 # Append ld.so.conf contents to the search path
15435 if test -f /etc/ld.so.conf; then
15436 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' ' '`
15437 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15440 case $host_cpu:$lt_cv_cc_64bit_output in
15441 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
15442 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
15443 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
15447 # We used to test for /lib/ld.so.1 and disable shared libraries on
15448 # powerpc, because MkLinux only supported shared libraries with the
15449 # GNU dynamic linker. Since this was broken with cross compilers,
15450 # most powerpc-linux boxes support dynamic linking these days and
15451 # people can always --disable-shared, the test was removed, and we
15452 # assume the GNU/Linux dynamic linker is in use.
15453 dynamic_linker='GNU/Linux ld.so'
15455 # Find out which ABI we are using (multilib Linux x86_64 hack).
15457 case "$host_cpu" in
15459 echo '#line 15459 "configure"' > conftest.$ac_ext
15460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15461 (eval $ac_compile) 2>&5
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); }; then
15465 case `/usr/bin/file conftest.$ac_objext` in
15476 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
15477 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15485 soname_spec='${libname}${release}${shared_ext}$major'
15486 shlibpath_var=LD_LIBRARY_PATH
15487 shlibpath_overrides_runpath=no
15488 hardcode_into_libs=yes
15489 dynamic_linker='GNU ld.so'
15496 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15499 dynamic_linker='NetBSD (a.out) ld.so'
15501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15502 soname_spec='${libname}${release}${shared_ext}$major'
15503 dynamic_linker='NetBSD ld.elf_so'
15505 shlibpath_var=LD_LIBRARY_PATH
15506 shlibpath_overrides_runpath=yes
15507 hardcode_into_libs=yes
15512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15513 shlibpath_var=LD_LIBRARY_PATH
15514 shlibpath_overrides_runpath=yes
15521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15522 soname_spec='${libname}${release}${shared_ext}$major'
15523 shlibpath_var=LD_LIBRARY_PATH
15524 shlibpath_overrides_runpath=yes
15530 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15532 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15533 *) need_version=no ;;
15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15537 shlibpath_var=LD_LIBRARY_PATH
15538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15540 openbsd2.[89] | openbsd2.[89].*)
15541 shlibpath_overrides_runpath=no
15544 shlibpath_overrides_runpath=yes
15548 shlibpath_overrides_runpath=yes
15553 libname_spec='$name'
15556 library_names_spec='$libname${shared_ext} $libname.a'
15557 dynamic_linker='OS/2 ld.exe'
15558 shlibpath_var=LIBPATH
15561 osf3* | osf4* | osf5*)
15565 soname_spec='${libname}${release}${shared_ext}$major'
15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15567 shlibpath_var=LD_LIBRARY_PATH
15568 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15569 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15574 soname_spec='${libname}${release}${shared_ext}$major'
15575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15576 shlibpath_var=LD_LIBRARY_PATH
15583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15584 soname_spec='${libname}${release}${shared_ext}$major'
15585 shlibpath_var=LD_LIBRARY_PATH
15586 shlibpath_overrides_runpath=yes
15587 hardcode_into_libs=yes
15588 # ldd complains unless libraries are executable
15589 postinstall_cmds='chmod +x $lib'
15594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15595 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15596 shlibpath_var=LD_LIBRARY_PATH
15597 shlibpath_overrides_runpath=yes
15598 if test "$with_gnu_ld" = yes; then
15604 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15607 soname_spec='${libname}${release}${shared_ext}$major'
15608 shlibpath_var=LD_LIBRARY_PATH
15609 case $host_vendor in
15611 shlibpath_overrides_runpath=no
15613 export_dynamic_flag_spec='${wl}-Blargedynsym'
15614 runpath_var=LD_RUN_PATH
15622 shlibpath_overrides_runpath=no
15623 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15629 if test -d /usr/nec ;then
15631 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15632 soname_spec='$libname${shared_ext}.$major'
15633 shlibpath_var=LD_LIBRARY_PATH
15639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640 soname_spec='${libname}${release}${shared_ext}$major'
15641 shlibpath_var=LD_LIBRARY_PATH
15648 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15649 echo "${ECHO_T}$dynamic_linker" >&6
15650 test "$dynamic_linker" = no && can_build_shared=no
15652 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15653 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15654 hardcode_action_F77=
15655 if test -n "$hardcode_libdir_flag_spec_F77" || \
15656 test -n "$runpath_var_F77" || \
15657 test "X$hardcode_automatic_F77" = "Xyes" ; then
15659 # We can hardcode non-existant directories.
15660 if test "$hardcode_direct_F77" != no &&
15661 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15662 # have to relink, otherwise we might link with an installed library
15663 # when we should be linking with a yet-to-be-installed one
15664 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15665 test "$hardcode_minus_L_F77" != no; then
15666 # Linking always hardcodes the temporary library directory.
15667 hardcode_action_F77=relink
15669 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15670 hardcode_action_F77=immediate
15673 # We cannot hardcode anything, or else we can only hardcode existing
15675 hardcode_action_F77=unsupported
15677 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15678 echo "${ECHO_T}$hardcode_action_F77" >&6
15680 if test "$hardcode_action_F77" = relink; then
15681 # Fast installation is not supported
15682 enable_fast_install=no
15683 elif test "$shlibpath_overrides_runpath" = yes ||
15684 test "$enable_shared" = no; then
15685 # Fast installation is not necessary
15686 enable_fast_install=needless
15691 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15692 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15693 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15694 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15695 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15696 echo "$as_me:$LINENO: result: yes" >&5
15697 echo "${ECHO_T}yes" >&6
15699 # FIXME - insert some real tests, host_os isn't really good enough
15702 if test -n "$STRIP" ; then
15703 striplib="$STRIP -x"
15704 echo "$as_me:$LINENO: result: yes" >&5
15705 echo "${ECHO_T}yes" >&6
15707 echo "$as_me:$LINENO: result: no" >&5
15708 echo "${ECHO_T}no" >&6
15712 echo "$as_me:$LINENO: result: no" >&5
15713 echo "${ECHO_T}no" >&6
15720 # The else clause should only fire when bootstrapping the
15721 # libtool distribution, otherwise you forgot to ship ltmain.sh
15722 # with your package, and you will get complaints that there are
15723 # no rules to generate ltmain.sh.
15724 if test -f "$ltmain"; then
15725 # See if we are running on zsh, and set the options which allow our commands through
15726 # without removal of \ escapes.
15727 if test -n "${ZSH_VERSION+set}" ; then
15728 setopt NO_GLOB_SUBST
15730 # Now quote all the things that may contain metacharacters while being
15731 # careful not to overquote the AC_SUBSTed values. We take copies of the
15732 # variables and quote the copies for generation of the libtool script.
15733 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15735 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15736 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15737 deplibs_check_method reload_flag reload_cmds need_locks \
15738 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15739 lt_cv_sys_global_symbol_to_c_name_address \
15740 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15741 old_postinstall_cmds old_postuninstall_cmds \
15745 lt_prog_compiler_wl_F77 \
15746 lt_prog_compiler_pic_F77 \
15747 lt_prog_compiler_static_F77 \
15748 lt_prog_compiler_no_builtin_flag_F77 \
15749 export_dynamic_flag_spec_F77 \
15750 thread_safe_flag_spec_F77 \
15751 whole_archive_flag_spec_F77 \
15752 enable_shared_with_static_runtimes_F77 \
15753 old_archive_cmds_F77 \
15754 old_archive_from_new_cmds_F77 \
15755 predep_objects_F77 \
15756 postdep_objects_F77 \
15759 compiler_lib_search_path_F77 \
15761 archive_expsym_cmds_F77 \
15762 postinstall_cmds_F77 \
15763 postuninstall_cmds_F77 \
15764 old_archive_from_expsyms_cmds_F77 \
15765 allow_undefined_flag_F77 \
15766 no_undefined_flag_F77 \
15767 export_symbols_cmds_F77 \
15768 hardcode_libdir_flag_spec_F77 \
15769 hardcode_libdir_flag_spec_ld_F77 \
15770 hardcode_libdir_separator_F77 \
15771 hardcode_automatic_F77 \
15773 module_expsym_cmds_F77 \
15774 lt_cv_prog_compiler_c_o_F77 \
15775 exclude_expsyms_F77 \
15776 include_expsyms_F77; do
15779 old_archive_cmds_F77 | \
15780 old_archive_from_new_cmds_F77 | \
15781 archive_cmds_F77 | \
15782 archive_expsym_cmds_F77 | \
15783 module_cmds_F77 | \
15784 module_expsym_cmds_F77 | \
15785 old_archive_from_expsyms_cmds_F77 | \
15786 export_symbols_cmds_F77 | \
15787 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15788 postinstall_cmds | postuninstall_cmds | \
15789 old_postinstall_cmds | old_postuninstall_cmds | \
15790 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15791 # Double-quote double-evaled strings.
15792 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15795 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15801 *'\$0 --fallback-echo"')
15802 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15808 cat <<__EOF__ >> "$cfgfile"
15809 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15811 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15813 # Shell to use when invoking shell scripts.
15816 # Whether or not to build shared libraries.
15817 build_libtool_libs=$enable_shared
15819 # Whether or not to build static libraries.
15820 build_old_libs=$enable_static
15822 # Whether or not to add -lc for building shared libraries.
15823 build_libtool_need_lc=$archive_cmds_need_lc_F77
15825 # Whether or not to disallow shared libs when runtime libs are static
15826 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15828 # Whether or not to optimize for fast installation.
15829 fast_install=$enable_fast_install
15832 host_alias=$host_alias
15836 # The build system.
15837 build_alias=$build_alias
15841 # An echo program that does not interpret backslashes.
15846 AR_FLAGS=$lt_AR_FLAGS
15851 # A language-specific compiler.
15852 CC=$lt_compiler_F77
15854 # Is the compiler the GNU C compiler?
15860 # The linker used to build libraries.
15863 # Whether we need hard or soft links.
15866 # A BSD-compatible nm program.
15869 # A symbol stripping program
15872 # Used to examine libraries when file_magic_cmd begins "file"
15873 MAGIC_CMD=$MAGIC_CMD
15875 # Used on cygwin: DLL creation program.
15878 # Used on cygwin: object dumper.
15881 # Used on cygwin: assembler.
15884 # The name of the directory that contains temporary libtool files.
15887 # How to create reloadable object files.
15888 reload_flag=$lt_reload_flag
15889 reload_cmds=$lt_reload_cmds
15891 # How to pass a linker flag through the compiler.
15892 wl=$lt_lt_prog_compiler_wl_F77
15894 # Object file suffix (normally "o").
15895 objext="$ac_objext"
15897 # Old archive suffix (normally "a").
15900 # Shared library suffix (normally ".so").
15901 shrext_cmds='$shrext_cmds'
15903 # Executable file suffix (normally "").
15906 # Additional compiler flags for building library objects.
15907 pic_flag=$lt_lt_prog_compiler_pic_F77
15910 # What is the maximum length of a command?
15911 max_cmd_len=$lt_cv_sys_max_cmd_len
15913 # Does compiler simultaneously support -c and -o options?
15914 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15916 # Must we lock files when doing compilation?
15917 need_locks=$lt_need_locks
15919 # Do we need the lib prefix for modules?
15920 need_lib_prefix=$need_lib_prefix
15922 # Do we need a version for libraries?
15923 need_version=$need_version
15925 # Whether dlopen is supported.
15926 dlopen_support=$enable_dlopen
15928 # Whether dlopen of programs is supported.
15929 dlopen_self=$enable_dlopen_self
15931 # Whether dlopen of statically linked programs is supported.
15932 dlopen_self_static=$enable_dlopen_self_static
15934 # Compiler flag to prevent dynamic linking.
15935 link_static_flag=$lt_lt_prog_compiler_static_F77
15937 # Compiler flag to turn off builtin functions.
15938 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15940 # Compiler flag to allow reflexive dlopens.
15941 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15943 # Compiler flag to generate shared objects directly from archives.
15944 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15946 # Compiler flag to generate thread-safe objects.
15947 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15949 # Library versioning type.
15950 version_type=$version_type
15952 # Format of library name prefix.
15953 libname_spec=$lt_libname_spec
15955 # List of archive names. First name is the real one, the rest are links.
15956 # The last name is the one that the linker finds with -lNAME.
15957 library_names_spec=$lt_library_names_spec
15959 # The coded name of the library, if different from the real name.
15960 soname_spec=$lt_soname_spec
15962 # Commands used to build and install an old-style archive.
15964 old_archive_cmds=$lt_old_archive_cmds_F77
15965 old_postinstall_cmds=$lt_old_postinstall_cmds
15966 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15968 # Create an old-style archive from a shared archive.
15969 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15971 # Create a temporary old-style archive to link instead of a shared archive.
15972 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15974 # Commands used to build and install a shared archive.
15975 archive_cmds=$lt_archive_cmds_F77
15976 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15977 postinstall_cmds=$lt_postinstall_cmds
15978 postuninstall_cmds=$lt_postuninstall_cmds
15980 # Commands used to build a loadable module (assumed same as above if empty)
15981 module_cmds=$lt_module_cmds_F77
15982 module_expsym_cmds=$lt_module_expsym_cmds_F77
15984 # Commands to strip libraries.
15985 old_striplib=$lt_old_striplib
15986 striplib=$lt_striplib
15988 # Dependencies to place before the objects being linked to create a
15990 predep_objects=$lt_predep_objects_F77
15992 # Dependencies to place after the objects being linked to create a
15994 postdep_objects=$lt_postdep_objects_F77
15996 # Dependencies to place before the objects being linked to create a
15998 predeps=$lt_predeps_F77
16000 # Dependencies to place after the objects being linked to create a
16002 postdeps=$lt_postdeps_F77
16004 # The library search path used internally by the compiler when linking
16005 # a shared library.
16006 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16008 # Method to check whether dependent libraries are shared objects.
16009 deplibs_check_method=$lt_deplibs_check_method
16011 # Command to use when deplibs_check_method == file_magic.
16012 file_magic_cmd=$lt_file_magic_cmd
16014 # Flag that allows shared libraries with undefined symbols to be built.
16015 allow_undefined_flag=$lt_allow_undefined_flag_F77
16017 # Flag that forces no undefined symbols.
16018 no_undefined_flag=$lt_no_undefined_flag_F77
16020 # Commands used to finish a libtool library installation in a directory.
16021 finish_cmds=$lt_finish_cmds
16023 # Same as above, but a single script fragment to be evaled but not shown.
16024 finish_eval=$lt_finish_eval
16026 # Take the output of nm and produce a listing of raw symbols and C names.
16027 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16029 # Transform the output of nm in a proper C declaration
16030 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16032 # Transform the output of nm in a C name address pair
16033 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16035 # This is the shared library runtime path variable.
16036 runpath_var=$runpath_var
16038 # This is the shared library path variable.
16039 shlibpath_var=$shlibpath_var
16041 # Is shlibpath searched before the hard-coded library search path?
16042 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16044 # How to hardcode a shared library path into an executable.
16045 hardcode_action=$hardcode_action_F77
16047 # Whether we should hardcode library paths into libraries.
16048 hardcode_into_libs=$hardcode_into_libs
16050 # Flag to hardcode \$libdir into a binary during linking.
16051 # This must work even if \$libdir does not exist.
16052 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16054 # If ld is used when linking, flag to hardcode \$libdir into
16055 # a binary during linking. This must work even if \$libdir does
16057 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16059 # Whether we need a single -rpath flag with a separated argument.
16060 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16062 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16063 # resulting binary.
16064 hardcode_direct=$hardcode_direct_F77
16066 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16067 # resulting binary.
16068 hardcode_minus_L=$hardcode_minus_L_F77
16070 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16071 # the resulting binary.
16072 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16074 # Set to yes if building a shared library automatically hardcodes DIR into the library
16075 # and all subsequent libraries and executables linked against it.
16076 hardcode_automatic=$hardcode_automatic_F77
16078 # Variables whose values should be saved in libtool wrapper scripts and
16079 # restored at relink time.
16080 variables_saved_for_relink="$variables_saved_for_relink"
16082 # Whether libtool must link a program against all its dependency libraries.
16083 link_all_deplibs=$link_all_deplibs_F77
16085 # Compile-time system search path for libraries
16086 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16088 # Run-time system search path for libraries
16089 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16091 # Fix the shell variable \$srcfile for the compiler.
16092 fix_srcfile_path="$fix_srcfile_path_F77"
16094 # Set to yes if exported symbols are required.
16095 always_export_symbols=$always_export_symbols_F77
16097 # The commands to list exported symbols.
16098 export_symbols_cmds=$lt_export_symbols_cmds_F77
16100 # The commands to extract the exported symbol list from a shared archive.
16101 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16103 # Symbols that should not be listed in the preloaded symbols.
16104 exclude_expsyms=$lt_exclude_expsyms_F77
16106 # Symbols that must always be exported.
16107 include_expsyms=$lt_include_expsyms_F77
16109 # ### END LIBTOOL TAG CONFIG: $tagname
16115 # If there is no Makefile yet, we rely on a make rule to execute
16116 # `config.status --recheck' to rerun these tests and create the
16117 # libtool script then.
16118 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16119 if test -f "$ltmain_in"; then
16120 test -f Makefile && make "$ltmain"
16126 ac_cpp='$CPP $CPPFLAGS'
16127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16139 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16143 # Source file extension for Java test sources.
16146 # Object file extension for compiled Java test sources.
16150 # Code to be used in simple compile tests
16151 lt_simple_compile_test_code="class foo {}\n"
16153 # Code to be used in simple link tests
16154 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16156 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16158 # If no C compiler was specified, use CC.
16161 # Allow CC to be a program name with arguments.
16165 # save warnings/boilerplate of simple test code
16166 ac_outfile=conftest.$ac_objext
16167 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16168 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16169 _lt_compiler_boilerplate=`cat conftest.err`
16172 ac_outfile=conftest.$ac_objext
16173 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16174 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16175 _lt_linker_boilerplate=`cat conftest.err`
16179 # Allow CC to be a program name with arguments.
16184 for cc_temp in $compiler""; do
16186 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16187 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16192 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16195 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16196 archive_cmds_need_lc_GCJ=no
16198 old_archive_cmds_GCJ=$old_archive_cmds
16201 lt_prog_compiler_no_builtin_flag_GCJ=
16203 if test "$GCC" = yes; then
16204 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16207 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16208 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16209 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16210 echo $ECHO_N "(cached) $ECHO_C" >&6
16212 lt_cv_prog_compiler_rtti_exceptions=no
16213 ac_outfile=conftest.$ac_objext
16214 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16215 lt_compiler_flag="-fno-rtti -fno-exceptions"
16216 # Insert the option either (1) after the last *FLAGS variable, or
16217 # (2) before a word containing "conftest.", or (3) at the end.
16218 # Note that $ac_compile itself does not contain backslashes and begins
16219 # with a dollar sign (not a hyphen), so the echo should work correctly.
16220 # The option is referenced via a variable to avoid confusing sed.
16221 lt_compile=`echo "$ac_compile" | $SED \
16222 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16224 -e 's:$: $lt_compiler_flag:'`
16225 (eval echo "\"\$as_me:16225: $lt_compile\"" >&5)
16226 (eval "$lt_compile" 2>conftest.err)
16228 cat conftest.err >&5
16229 echo "$as_me:16229: \$? = $ac_status" >&5
16230 if (exit $ac_status) && test -s "$ac_outfile"; then
16231 # The compiler can only warn and ignore the option if not recognized
16232 # So say no if there are warnings other than the usual output.
16233 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16234 $SED '/^$/d' conftest.err >conftest.er2
16235 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16236 lt_cv_prog_compiler_rtti_exceptions=yes
16242 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16243 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16245 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16246 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16253 lt_prog_compiler_wl_GCJ=
16254 lt_prog_compiler_pic_GCJ=
16255 lt_prog_compiler_static_GCJ=
16257 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16258 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16260 if test "$GCC" = yes; then
16261 lt_prog_compiler_wl_GCJ='-Wl,'
16262 lt_prog_compiler_static_GCJ='-static'
16266 # All AIX code is PIC.
16267 if test "$host_cpu" = ia64; then
16268 # AIX 5 now supports IA64 processor
16269 lt_prog_compiler_static_GCJ='-Bstatic'
16274 # FIXME: we need at least 68020 code to build shared libraries, but
16275 # adding the `-m68020' flag to GCC prevents building anything better,
16277 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16280 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16281 # PIC is the default for these OSes.
16284 mingw* | pw32* | os2*)
16285 # This hack is so that the source file can tell whether it is being
16286 # built for inclusion in a dll (and should export symbols for example).
16287 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16290 darwin* | rhapsody*)
16291 # PIC is the default on this platform
16292 # Common symbols not allowed in MH_DYLIB files
16293 lt_prog_compiler_pic_GCJ='-fno-common'
16297 # Just because we use GCC doesn't mean we suddenly get shared libraries
16298 # on systems that don't support them.
16299 lt_prog_compiler_can_build_shared_GCJ=no
16304 if test -d /usr/nec; then
16305 lt_prog_compiler_pic_GCJ=-Kconform_pic
16310 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16311 # not for PA HP-UX.
16312 case "$host_cpu" in
16317 lt_prog_compiler_pic_GCJ='-fPIC'
16323 lt_prog_compiler_pic_GCJ='-fPIC'
16327 # PORTME Check for flag to pass linker flags through the system compiler.
16330 lt_prog_compiler_wl_GCJ='-Wl,'
16331 if test "$host_cpu" = ia64; then
16332 # AIX 5 now supports IA64 processor
16333 lt_prog_compiler_static_GCJ='-Bstatic'
16335 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16339 # PIC is the default on this platform
16340 # Common symbols not allowed in MH_DYLIB files
16341 case $cc_basename in
16343 lt_prog_compiler_pic_GCJ='-qnocommon'
16344 lt_prog_compiler_wl_GCJ='-Wl,'
16349 mingw* | pw32* | os2*)
16350 # This hack is so that the source file can tell whether it is being
16351 # built for inclusion in a dll (and should export symbols for example).
16352 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16355 hpux9* | hpux10* | hpux11*)
16356 lt_prog_compiler_wl_GCJ='-Wl,'
16357 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16358 # not for PA HP-UX.
16359 case "$host_cpu" in
16364 lt_prog_compiler_pic_GCJ='+Z'
16367 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16368 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16371 irix5* | irix6* | nonstopux*)
16372 lt_prog_compiler_wl_GCJ='-Wl,'
16373 # PIC (with -KPIC) is the default.
16374 lt_prog_compiler_static_GCJ='-non_shared'
16378 lt_prog_compiler_pic_GCJ='-KPIC'
16379 lt_prog_compiler_static_GCJ='-Bstatic'
16383 case $cc_basename in
16385 lt_prog_compiler_wl_GCJ='-Wl,'
16386 lt_prog_compiler_pic_GCJ='-KPIC'
16387 lt_prog_compiler_static_GCJ='-static'
16389 pgcc* | pgf77* | pgf90*)
16390 # Portland Group compilers (*not* the Pentium gcc compiler,
16391 # which looks to be a dead project)
16392 lt_prog_compiler_wl_GCJ='-Wl,'
16393 lt_prog_compiler_pic_GCJ='-fpic'
16394 lt_prog_compiler_static_GCJ='-static'
16397 lt_prog_compiler_wl_GCJ='-Wl,'
16398 # All Alpha code is PIC.
16399 lt_prog_compiler_static_GCJ='-non_shared'
16404 osf3* | osf4* | osf5*)
16405 lt_prog_compiler_wl_GCJ='-Wl,'
16406 # All OSF/1 code is PIC.
16407 lt_prog_compiler_static_GCJ='-non_shared'
16411 lt_prog_compiler_pic_GCJ='-Kpic'
16412 lt_prog_compiler_static_GCJ='-dn'
16416 lt_prog_compiler_pic_GCJ='-KPIC'
16417 lt_prog_compiler_static_GCJ='-Bstatic'
16418 case $cc_basename in
16419 f77* | f90* | f95*)
16420 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16422 lt_prog_compiler_wl_GCJ='-Wl,';;
16427 lt_prog_compiler_wl_GCJ='-Qoption ld '
16428 lt_prog_compiler_pic_GCJ='-PIC'
16429 lt_prog_compiler_static_GCJ='-Bstatic'
16432 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16433 lt_prog_compiler_wl_GCJ='-Wl,'
16434 lt_prog_compiler_pic_GCJ='-KPIC'
16435 lt_prog_compiler_static_GCJ='-Bstatic'
16439 if test -d /usr/nec ;then
16440 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16441 lt_prog_compiler_static_GCJ='-Bstatic'
16446 lt_prog_compiler_wl_GCJ='-Wl,'
16447 lt_prog_compiler_can_build_shared_GCJ=no
16451 lt_prog_compiler_pic_GCJ='-pic'
16452 lt_prog_compiler_static_GCJ='-Bstatic'
16456 lt_prog_compiler_can_build_shared_GCJ=no
16461 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16462 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16465 # Check to make sure the PIC flag actually works.
16467 if test -n "$lt_prog_compiler_pic_GCJ"; then
16469 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16470 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16471 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16472 echo $ECHO_N "(cached) $ECHO_C" >&6
16474 lt_prog_compiler_pic_works_GCJ=no
16475 ac_outfile=conftest.$ac_objext
16476 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16477 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16478 # Insert the option either (1) after the last *FLAGS variable, or
16479 # (2) before a word containing "conftest.", or (3) at the end.
16480 # Note that $ac_compile itself does not contain backslashes and begins
16481 # with a dollar sign (not a hyphen), so the echo should work correctly.
16482 # The option is referenced via a variable to avoid confusing sed.
16483 lt_compile=`echo "$ac_compile" | $SED \
16484 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16486 -e 's:$: $lt_compiler_flag:'`
16487 (eval echo "\"\$as_me:16487: $lt_compile\"" >&5)
16488 (eval "$lt_compile" 2>conftest.err)
16490 cat conftest.err >&5
16491 echo "$as_me:16491: \$? = $ac_status" >&5
16492 if (exit $ac_status) && test -s "$ac_outfile"; then
16493 # The compiler can only warn and ignore the option if not recognized
16494 # So say no if there are warnings other than the usual output.
16495 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16496 $SED '/^$/d' conftest.err >conftest.er2
16497 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16498 lt_prog_compiler_pic_works_GCJ=yes
16504 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16505 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16507 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16508 case $lt_prog_compiler_pic_GCJ in
16510 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16513 lt_prog_compiler_pic_GCJ=
16514 lt_prog_compiler_can_build_shared_GCJ=no
16519 # For platforms which do not support PIC, -DPIC is meaningless:
16521 lt_prog_compiler_pic_GCJ=
16524 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16528 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16529 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16530 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16531 echo $ECHO_N "(cached) $ECHO_C" >&6
16533 lt_cv_prog_compiler_c_o_GCJ=no
16534 $rm -r conftest 2>/dev/null
16538 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16540 lt_compiler_flag="-o out/conftest2.$ac_objext"
16541 # Insert the option either (1) after the last *FLAGS variable, or
16542 # (2) before a word containing "conftest.", or (3) at the end.
16543 # Note that $ac_compile itself does not contain backslashes and begins
16544 # with a dollar sign (not a hyphen), so the echo should work correctly.
16545 lt_compile=`echo "$ac_compile" | $SED \
16546 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16548 -e 's:$: $lt_compiler_flag:'`
16549 (eval echo "\"\$as_me:16549: $lt_compile\"" >&5)
16550 (eval "$lt_compile" 2>out/conftest.err)
16552 cat out/conftest.err >&5
16553 echo "$as_me:16553: \$? = $ac_status" >&5
16554 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16556 # The compiler can only warn and ignore the option if not recognized
16557 # So say no if there are warnings
16558 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16559 $SED '/^$/d' out/conftest.err >out/conftest.er2
16560 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16561 lt_cv_prog_compiler_c_o_GCJ=yes
16566 # SGI C++ compiler will create directory out/ii_files/ for
16567 # template instantiation
16568 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16569 $rm out/* && rmdir out
16575 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16576 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16579 hard_links="nottested"
16580 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16581 # do not overwrite the value of need_locks provided by the user
16582 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16583 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16586 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16588 ln conftest.a conftest.b 2>&5 || hard_links=no
16589 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16590 echo "$as_me:$LINENO: result: $hard_links" >&5
16591 echo "${ECHO_T}$hard_links" >&6
16592 if test "$hard_links" = no; then
16593 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16594 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16601 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16602 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16605 allow_undefined_flag_GCJ=
16606 enable_shared_with_static_runtimes_GCJ=no
16608 archive_expsym_cmds_GCJ=
16609 old_archive_From_new_cmds_GCJ=
16610 old_archive_from_expsyms_cmds_GCJ=
16611 export_dynamic_flag_spec_GCJ=
16612 whole_archive_flag_spec_GCJ=
16613 thread_safe_flag_spec_GCJ=
16614 hardcode_libdir_flag_spec_GCJ=
16615 hardcode_libdir_flag_spec_ld_GCJ=
16616 hardcode_libdir_separator_GCJ=
16617 hardcode_direct_GCJ=no
16618 hardcode_minus_L_GCJ=no
16619 hardcode_shlibpath_var_GCJ=unsupported
16620 link_all_deplibs_GCJ=unknown
16621 hardcode_automatic_GCJ=no
16623 module_expsym_cmds_GCJ=
16624 always_export_symbols_GCJ=no
16625 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16626 # include_expsyms should be a list of space-separated symbols to be *always*
16627 # included in the symbol list
16628 include_expsyms_GCJ=
16629 # exclude_expsyms can be an extended regexp of symbols to exclude
16630 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16631 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16632 # as well as any symbol that contains `d'.
16633 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16634 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16635 # platforms (ab)use it in PIC code, but their linkers get confused if
16636 # the symbol is explicitly referenced. Since portable code cannot
16637 # rely on this symbol name, it's probably fine to never include it in
16638 # preloaded symbol tables.
16639 extract_expsyms_cmds=
16640 # Just being paranoid about ensuring that cc_basename is set.
16641 for cc_temp in $compiler""; do
16643 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16644 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16649 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16652 cygwin* | mingw* | pw32*)
16653 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16654 # When not using gcc, we currently assume that we are using
16655 # Microsoft Visual C++.
16656 if test "$GCC" != yes; then
16666 if test "$with_gnu_ld" = yes; then
16667 # If archive_cmds runs LD, not CC, wlarc should be empty
16670 # Set some defaults for GNU ld with shared library support. These
16671 # are reset later if shared libraries are not supported. Putting them
16672 # here allows them to be overridden if necessary.
16673 runpath_var=LD_RUN_PATH
16674 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16675 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16676 # ancient GNU ld didn't support --whole-archive et. al.
16677 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16678 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16680 whole_archive_flag_spec_GCJ=
16682 supports_anon_versioning=no
16683 case `$LD -v 2>/dev/null` in
16684 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16685 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16686 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16687 *\ 2.11.*) ;; # other 2.11 versions
16688 *) supports_anon_versioning=yes ;;
16691 # See if GNU ld supports shared libraries.
16693 aix3* | aix4* | aix5*)
16694 # On AIX/PPC, the GNU linker is very broken
16695 if test "$host_cpu" != ia64; then
16699 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16700 *** to be unable to reliably create shared libraries on AIX.
16701 *** Therefore, libtool is disabling shared libraries support. If you
16702 *** really care for shared libraries, you may want to modify your PATH
16703 *** so that a non-GNU linker is found, and then restart.
16710 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)'
16711 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16712 hardcode_minus_L_GCJ=yes
16714 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16715 # that the semantics of dynamic libraries on AmigaOS, at least up
16716 # to version 4, is to share data among multiple programs linked
16717 # with the same dynamic library. Since this doesn't match the
16718 # behavior of shared libraries on other platforms, we can't use
16724 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16725 allow_undefined_flag_GCJ=unsupported
16726 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16727 # support --undefined. This deserves some investigation. FIXME
16728 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16734 cygwin* | mingw* | pw32*)
16735 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16736 # as there is no search path for DLLs.
16737 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16738 allow_undefined_flag_GCJ=unsupported
16739 always_export_symbols_GCJ=no
16740 enable_shared_with_static_runtimes_GCJ=yes
16741 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16743 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16744 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16745 # If the export-symbols file already is a .def file (1st line
16746 # is EXPORTS), use it as is; otherwise, prepend...
16747 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16748 cp $export_symbols $output_objdir/$soname.def;
16750 echo EXPORTS > $output_objdir/$soname.def;
16751 cat $export_symbols >> $output_objdir/$soname.def;
16753 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16760 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16762 case $cc_basename,$host_cpu in
16763 pgcc*) # Portland Group C compiler
16764 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'
16765 tmp_addflag=' $pic_flag'
16767 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16768 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'
16769 tmp_addflag=' $pic_flag -Mnomain' ;;
16770 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16771 tmp_addflag=' -i_dynamic' ;;
16772 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16773 tmp_addflag=' -i_dynamic -nofor_main' ;;
16774 ifc* | ifort*) # Intel Fortran compiler
16775 tmp_addflag=' -nofor_main' ;;
16777 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16779 if test $supports_anon_versioning = yes; then
16780 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16782 $echo "local: *; };" >> $output_objdir/$libname.ver~
16783 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16791 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16792 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16795 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16796 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16801 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16805 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16806 *** create shared libraries on Solaris systems. Therefore, libtool
16807 *** is disabling shared libraries support. We urge you to upgrade GNU
16808 *** binutils to release 2.9.1 or newer. Another option is to modify
16809 *** your PATH or compiler configuration so that the native linker is
16810 *** used, and then restart.
16813 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16814 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16815 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16822 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16824 hardcode_direct_GCJ=yes
16825 hardcode_shlibpath_var_GCJ=no
16829 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16830 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16831 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16838 if test "$ld_shlibs_GCJ" = no; then
16840 hardcode_libdir_flag_spec_GCJ=
16841 export_dynamic_flag_spec_GCJ=
16842 whole_archive_flag_spec_GCJ=
16845 # PORTME fill in a description of your system's linker (not GNU ld)
16848 allow_undefined_flag_GCJ=unsupported
16849 always_export_symbols_GCJ=yes
16850 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'
16851 # Note: this linker hardcodes the directories in LIBPATH if there
16852 # are no directories specified by -L.
16853 hardcode_minus_L_GCJ=yes
16854 if test "$GCC" = yes && test -z "$link_static_flag"; then
16855 # Neither direct hardcoding nor static linking is supported with a
16857 hardcode_direct_GCJ=unsupported
16862 if test "$host_cpu" = ia64; then
16863 # On IA64, the linker does run time linking by default, so we don't
16864 # have to do anything special.
16865 aix_use_runtimelinking=no
16866 exp_sym_flag='-Bexport'
16869 # If we're using GNU nm, then we don't want the "-C" option.
16870 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16871 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16872 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'
16874 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'
16876 aix_use_runtimelinking=no
16878 # Test if we are trying to use run time linking or normal
16879 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16880 # need to do runtime linking.
16881 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16882 for ld_flag in $LDFLAGS; do
16883 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16884 aix_use_runtimelinking=yes
16890 exp_sym_flag='-bexport'
16891 no_entry_flag='-bnoentry'
16894 # When large executables or shared objects are built, AIX ld can
16895 # have problems creating the table of contents. If linking a library
16896 # or program results in "error TOC overflow" add -mminimal-toc to
16897 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16898 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16900 archive_cmds_GCJ=''
16901 hardcode_direct_GCJ=yes
16902 hardcode_libdir_separator_GCJ=':'
16903 link_all_deplibs_GCJ=yes
16905 if test "$GCC" = yes; then
16906 case $host_os in aix4.[012]|aix4.[012].*)
16907 # We only want to do this on AIX 4.2 and lower, the check
16908 # below for broken collect2 doesn't work under 4.3+
16909 collect2name=`${CC} -print-prog-name=collect2`
16910 if test -f "$collect2name" && \
16911 strings "$collect2name" | grep resolve_lib_name >/dev/null
16913 # We have reworked collect2
16914 hardcode_direct_GCJ=yes
16916 # We have old collect2
16917 hardcode_direct_GCJ=unsupported
16918 # It fails to find uninstalled libraries when the uninstalled
16919 # path is not listed in the libpath. Setting hardcode_minus_L
16920 # to unsupported forces relinking
16921 hardcode_minus_L_GCJ=yes
16922 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16923 hardcode_libdir_separator_GCJ=
16926 shared_flag='-shared'
16927 if test "$aix_use_runtimelinking" = yes; then
16928 shared_flag="$shared_flag "'${wl}-G'
16932 if test "$host_cpu" = ia64; then
16933 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16934 # chokes on -Wl,-G. The following line is correct:
16937 if test "$aix_use_runtimelinking" = yes; then
16938 shared_flag='${wl}-G'
16940 shared_flag='${wl}-bM:SRE'
16945 # It seems that -bexpall does not export symbols beginning with
16946 # underscore (_), so it is better to generate a list of symbols to export.
16947 always_export_symbols_GCJ=yes
16948 if test "$aix_use_runtimelinking" = yes; then
16949 # Warning - without using the other runtime loading flags (-brtl),
16950 # -berok will link without error, but may produce a broken library.
16951 allow_undefined_flag_GCJ='-berok'
16952 # Determine the default libpath from the value encoded in an empty executable.
16953 cat >conftest.$ac_ext <<_ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h. */
16968 rm -f conftest.$ac_objext conftest$ac_exeext
16969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16970 (eval $ac_link) 2>conftest.er1
16972 grep -v '^ *+' conftest.er1 >conftest.err
16974 cat conftest.err >&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); } &&
16977 { ac_try='test -z "$ac_c_werror_flag"
16978 || test ! -s conftest.err'
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; } &&
16984 { ac_try='test -s conftest$ac_exeext'
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; }; then
16991 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16993 # Check for a 64-bit object if we didn't find anything.
16994 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; }
16997 echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
17001 rm -f conftest.err conftest.$ac_objext \
17002 conftest$ac_exeext conftest.$ac_ext
17003 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17005 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17006 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17008 if test "$host_cpu" = ia64; then
17009 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17010 allow_undefined_flag_GCJ="-z nodefs"
17011 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17013 # Determine the default libpath from the value encoded in an empty executable.
17014 cat >conftest.$ac_ext <<_ACEOF
17017 cat confdefs.h >>conftest.$ac_ext
17018 cat >>conftest.$ac_ext <<_ACEOF
17019 /* end confdefs.h. */
17029 rm -f conftest.$ac_objext conftest$ac_exeext
17030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17031 (eval $ac_link) 2>conftest.er1
17033 grep -v '^ *+' conftest.er1 >conftest.err
17035 cat conftest.err >&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } &&
17038 { ac_try='test -z "$ac_c_werror_flag"
17039 || test ! -s conftest.err'
17040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041 (eval $ac_try) 2>&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; } &&
17045 { ac_try='test -s conftest$ac_exeext'
17046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; }; then
17052 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17054 # Check for a 64-bit object if we didn't find anything.
17055 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; }
17058 echo "$as_me: failed program was:" >&5
17059 sed 's/^/| /' conftest.$ac_ext >&5
17062 rm -f conftest.err conftest.$ac_objext \
17063 conftest$ac_exeext conftest.$ac_ext
17064 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17066 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17067 # Warning - without using the other run time loading flags,
17068 # -berok will link without error, but may produce a broken library.
17069 no_undefined_flag_GCJ=' ${wl}-bernotok'
17070 allow_undefined_flag_GCJ=' ${wl}-berok'
17071 # -bexpall does not export symbols beginning with underscore (_)
17072 always_export_symbols_GCJ=yes
17073 # Exported symbols can be pulled into shared objects from archives
17074 whole_archive_flag_spec_GCJ=' '
17075 archive_cmds_need_lc_GCJ=yes
17076 # This is similar to how AIX traditionally builds it's shared libraries.
17077 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17083 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)'
17084 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17085 hardcode_minus_L_GCJ=yes
17086 # see comment about different semantics on the GNU ld section
17091 export_dynamic_flag_spec_GCJ=-rdynamic
17094 cygwin* | mingw* | pw32*)
17095 # When not using gcc, we currently assume that we are using
17096 # Microsoft Visual C++.
17097 # hardcode_libdir_flag_spec is actually meaningless, as there is
17098 # no search path for DLLs.
17099 hardcode_libdir_flag_spec_GCJ=' '
17100 allow_undefined_flag_GCJ=unsupported
17101 # Tell ltmain to make .lib files, not .a files.
17103 # Tell ltmain to make .dll files, not .so files.
17105 # FIXME: Setting linknames here is a bad hack.
17106 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17107 # The linker will automatically build a .lib file if we build a DLL.
17108 old_archive_From_new_cmds_GCJ='true'
17109 # FIXME: Should let the user specify the lib program.
17110 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17111 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17112 enable_shared_with_static_runtimes_GCJ=yes
17115 darwin* | rhapsody*)
17117 rhapsody* | darwin1.[012])
17118 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17121 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17122 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17124 case ${MACOSX_DEPLOYMENT_TARGET} in
17126 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17129 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17135 archive_cmds_need_lc_GCJ=no
17136 hardcode_direct_GCJ=no
17137 hardcode_automatic_GCJ=yes
17138 hardcode_shlibpath_var_GCJ=unsupported
17139 whole_archive_flag_spec_GCJ=''
17140 link_all_deplibs_GCJ=yes
17141 if test "$GCC" = yes ; then
17142 output_verbose_link_cmd='echo'
17143 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17144 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17145 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17146 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}'
17147 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}'
17149 case $cc_basename in
17151 output_verbose_link_cmd='echo'
17152 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17153 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17154 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17155 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}'
17156 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}'
17166 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17167 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17168 hardcode_shlibpath_var_GCJ=no
17175 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17176 # support. Future versions do this automatically, but an explicit c++rt0.o
17177 # does not break anything, and helps significantly (at the cost of a little
17180 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17181 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17182 hardcode_direct_GCJ=yes
17183 hardcode_shlibpath_var_GCJ=no
17186 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17188 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17189 hardcode_direct_GCJ=yes
17190 hardcode_minus_L_GCJ=yes
17191 hardcode_shlibpath_var_GCJ=no
17194 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17195 freebsd* | kfreebsd*-gnu | dragonfly*)
17196 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17197 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17198 hardcode_direct_GCJ=yes
17199 hardcode_shlibpath_var_GCJ=no
17203 if test "$GCC" = yes; then
17204 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'
17206 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'
17208 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17209 hardcode_libdir_separator_GCJ=:
17210 hardcode_direct_GCJ=yes
17212 # hardcode_minus_L: Not really in the search PATH,
17213 # but as the default location of the library.
17214 hardcode_minus_L_GCJ=yes
17215 export_dynamic_flag_spec_GCJ='${wl}-E'
17219 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17220 case "$host_cpu" in
17222 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17225 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17229 case "$host_cpu" in
17231 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17234 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17238 if test "$with_gnu_ld" = no; then
17239 case "$host_cpu" in
17241 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17242 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17243 hardcode_libdir_separator_GCJ=:
17244 hardcode_direct_GCJ=no
17245 hardcode_shlibpath_var_GCJ=no
17248 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17249 hardcode_direct_GCJ=no
17250 hardcode_shlibpath_var_GCJ=no
17252 # hardcode_minus_L: Not really in the search PATH,
17253 # but as the default location of the library.
17254 hardcode_minus_L_GCJ=yes
17257 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17258 hardcode_libdir_separator_GCJ=:
17259 hardcode_direct_GCJ=yes
17260 export_dynamic_flag_spec_GCJ='${wl}-E'
17262 # hardcode_minus_L: Not really in the search PATH,
17263 # but as the default location of the library.
17264 hardcode_minus_L_GCJ=yes
17270 irix5* | irix6* | nonstopux*)
17271 if test "$GCC" = yes; then
17272 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'
17274 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'
17275 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17277 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17278 hardcode_libdir_separator_GCJ=:
17279 link_all_deplibs_GCJ=yes
17283 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17284 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17286 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17288 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17289 hardcode_direct_GCJ=yes
17290 hardcode_shlibpath_var_GCJ=no
17294 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17295 hardcode_direct_GCJ=yes
17296 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17297 hardcode_libdir_separator_GCJ=:
17298 hardcode_shlibpath_var_GCJ=no
17302 hardcode_direct_GCJ=yes
17303 hardcode_shlibpath_var_GCJ=no
17304 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17305 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17306 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17307 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17308 export_dynamic_flag_spec_GCJ='${wl}-E'
17311 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17312 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17313 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17316 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17317 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17324 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17325 hardcode_minus_L_GCJ=yes
17326 allow_undefined_flag_GCJ=unsupported
17327 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'
17328 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17332 if test "$GCC" = yes; then
17333 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17334 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'
17336 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17337 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'
17339 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17340 hardcode_libdir_separator_GCJ=:
17343 osf4* | osf5*) # as osf3* with the addition of -msym flag
17344 if test "$GCC" = yes; then
17345 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17346 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'
17347 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17349 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17350 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'
17351 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~
17352 $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'
17354 # Both c and cxx compiler support -rpath directly
17355 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17357 hardcode_libdir_separator_GCJ=:
17361 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17362 hardcode_shlibpath_var_GCJ=no
17363 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17364 runpath_var=LD_RUN_PATH
17365 hardcode_runpath_var=yes
17369 no_undefined_flag_GCJ=' -z text'
17370 if test "$GCC" = yes; then
17372 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17373 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17374 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17377 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17378 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17379 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17381 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17382 hardcode_shlibpath_var_GCJ=no
17384 solaris2.[0-5] | solaris2.[0-5].*) ;;
17386 # The compiler driver will combine linker options so we
17387 # cannot just pass the convience library names through
17388 # without $wl, iff we do not link with $LD.
17389 # Luckily, gcc supports the same syntax we need for Sun Studio.
17390 # Supported since Solaris 2.6 (maybe 2.5.1?)
17393 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17395 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' ;;
17398 link_all_deplibs_GCJ=yes
17402 if test "x$host_vendor" = xsequent; then
17403 # Use $CC to link under sequent, because it throws in some extra .o
17404 # files that make .init and .fini sections work.
17405 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17407 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17409 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17410 hardcode_direct_GCJ=yes
17411 hardcode_minus_L_GCJ=yes
17412 hardcode_shlibpath_var_GCJ=no
17416 case $host_vendor in
17418 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17419 hardcode_direct_GCJ=yes # is this really true???
17422 ## LD is ld it makes a PLAMLIB
17423 ## CC just makes a GrossModule.
17424 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17425 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17426 hardcode_direct_GCJ=no
17429 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17430 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17433 runpath_var='LD_RUN_PATH'
17434 hardcode_shlibpath_var_GCJ=no
17438 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17439 hardcode_shlibpath_var_GCJ=no
17440 export_dynamic_flag_spec_GCJ='-Bexport'
17444 if test -d /usr/nec; then
17445 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17446 hardcode_shlibpath_var_GCJ=no
17447 runpath_var=LD_RUN_PATH
17448 hardcode_runpath_var=yes
17454 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17455 hardcode_direct_GCJ=yes
17456 hardcode_minus_L_GCJ=no
17457 hardcode_shlibpath_var_GCJ=no
17458 hardcode_runpath_var=yes
17459 runpath_var=LD_RUN_PATH
17462 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17463 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17464 if test "$GCC" = yes; then
17465 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17467 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17469 runpath_var='LD_RUN_PATH'
17470 hardcode_shlibpath_var_GCJ=no
17474 no_undefined_flag_GCJ=' -z text'
17475 # $CC -shared without GNU ld will not create a library from C++
17476 # object files and a static libstdc++, better avoid it by now
17477 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17478 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17479 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17480 hardcode_libdir_flag_spec_GCJ=
17481 hardcode_shlibpath_var_GCJ=no
17482 runpath_var='LD_RUN_PATH'
17486 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17487 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17488 hardcode_shlibpath_var_GCJ=no
17497 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17498 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17499 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17501 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17502 if test "$GCC" = yes; then
17503 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17507 # Do we need to explicitly link libc?
17509 case "x$archive_cmds_need_lc_GCJ" in
17511 # Assume -lc should be added
17512 archive_cmds_need_lc_GCJ=yes
17514 if test "$enable_shared" = yes && test "$GCC" = yes; then
17515 case $archive_cmds_GCJ in
17517 # FIXME: we may have to deal with multi-command sequences.
17520 # Test whether the compiler implicitly links with -lc since on some
17521 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17522 # to ld, don't add -lc before -lgcc.
17523 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17524 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17526 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17529 (eval $ac_compile) 2>&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } 2>conftest.err; then
17535 libobjs=conftest.$ac_objext
17537 wl=$lt_prog_compiler_wl_GCJ
17543 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17544 allow_undefined_flag_GCJ=
17545 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17546 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }
17551 archive_cmds_need_lc_GCJ=no
17553 archive_cmds_need_lc_GCJ=yes
17555 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17557 cat conftest.err 1>&5
17560 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17561 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17568 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17569 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17570 library_names_spec=
17571 libname_spec='lib$name'
17575 postuninstall_cmds=
17579 shlibpath_overrides_runpath=unknown
17581 dynamic_linker="$host_os ld.so"
17582 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17583 if test "$GCC" = yes; then
17584 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17585 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17586 # if the path contains ";" then we assume it to be the separator
17587 # otherwise default to the standard path separator (i.e. ":") - it is
17588 # assumed that no part of a normal pathname contains ";" but that should
17589 # okay in the real world where ";" in dirpaths is itself problematic.
17590 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17592 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17595 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17597 need_lib_prefix=unknown
17598 hardcode_into_libs=no
17600 # when you set need_version to no, make sure it does not cause -set_version
17601 # flags to be left without arguments
17602 need_version=unknown
17607 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17608 shlibpath_var=LIBPATH
17610 # AIX 3 has no versioning support, so we append a major version to the name.
17611 soname_spec='${libname}${release}${shared_ext}$major'
17618 hardcode_into_libs=yes
17619 if test "$host_cpu" = ia64; then
17620 # AIX 5 supports IA64
17621 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17622 shlibpath_var=LD_LIBRARY_PATH
17624 # With GCC up to 2.95.x, collect2 would create an import file
17625 # for dependence libraries. The import file would start with
17626 # the line `#! .'. This would cause the generated library to
17627 # depend on `.', always an invalid library. This was fixed in
17628 # development snapshots of GCC prior to 3.0.
17630 aix4 | aix4.[01] | aix4.[01].*)
17631 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17633 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17636 can_build_shared=no
17640 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17641 # soname into executable. Probably we can add versioning support to
17642 # collect2, so additional links can be useful in future.
17643 if test "$aix_use_runtimelinking" = yes; then
17644 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17645 # instead of lib<name>.a to let people know that these are not
17646 # typical AIX shared libraries.
17647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17649 # We preserve .a as extension for shared libraries through AIX4.2
17650 # and later when we are not doing run time linking.
17651 library_names_spec='${libname}${release}.a $libname.a'
17652 soname_spec='${libname}${release}${shared_ext}$major'
17654 shlibpath_var=LIBPATH
17659 library_names_spec='$libname.ixlibrary $libname.a'
17660 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17661 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'
17665 library_names_spec='${libname}${shared_ext}'
17666 dynamic_linker="$host_os ld.so"
17667 shlibpath_var=LIBRARY_PATH
17673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17674 soname_spec='${libname}${release}${shared_ext}$major'
17675 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17676 shlibpath_var=LD_LIBRARY_PATH
17677 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17678 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17679 # the default ld.so.conf also contains /usr/contrib/lib and
17680 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17681 # libtool to hard-code these into programs
17684 cygwin* | mingw* | pw32*)
17685 version_type=windows
17690 case $GCC,$host_os in
17691 yes,cygwin* | yes,mingw* | yes,pw32*)
17692 library_names_spec='$libname.dll.a'
17693 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17694 postinstall_cmds='base_file=`basename \${file}`~
17695 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17696 dldir=$destdir/`dirname \$dlpath`~
17697 test -d \$dldir || mkdir -p \$dldir~
17698 $install_prog $dir/$dlname \$dldir/$dlname'
17699 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17700 dlpath=$dir/\$dldll~
17702 shlibpath_overrides_runpath=yes
17706 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17707 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17708 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17711 # MinGW DLLs use traditional 'lib' prefix
17712 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17713 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17714 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17715 # It is most probably a Windows format PATH printed by
17716 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17717 # path with ; separators, and with drive letters. We can handle the
17718 # drive letters (cygwin fileutils understands them), so leave them,
17719 # especially as we might pass files found there to a mingw objdump,
17720 # which wouldn't understand a cygwinified path. Ahh.
17721 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17723 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17727 # pw32 DLLs use 'pw' prefix rather than 'lib'
17728 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17734 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17736 supports_anon_versioning=no
17737 case `$LD -v 2>/dev/null` in
17738 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17739 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17740 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17741 *\ 2.11.*) ;; # other 2.11 versions
17742 *) supports_anon_versioning=yes ;;
17744 if test $supports_anon_versioning = yes; then
17745 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17747 $echo "local: *; };" >> $output_objdir/$libname.ver~
17748 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17750 $archive_expsym_cmds="$archive_cmds"
17758 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17761 dynamic_linker='Win32 ld.exe'
17762 # FIXME: first we should search . and the directory the executable is in
17766 darwin* | rhapsody*)
17767 dynamic_linker="$host_os dyld"
17768 version_type=darwin
17771 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17772 soname_spec='${libname}${release}${major}$shared_ext'
17773 shlibpath_overrides_runpath=yes
17774 shlibpath_var=DYLD_LIBRARY_PATH
17775 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17776 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17777 if test "$GCC" = yes; then
17778 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"`
17780 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17782 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17790 soname_spec='${libname}${release}${shared_ext}$major'
17791 shlibpath_var=LD_LIBRARY_PATH
17802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17803 soname_spec='${libname}${release}${shared_ext}$major'
17804 shlibpath_var=LD_LIBRARY_PATH
17805 shlibpath_overrides_runpath=no
17806 hardcode_into_libs=yes
17807 dynamic_linker='GNU ld.so'
17810 freebsd* | dragonfly*)
17811 # DragonFly does not have aout. When/if they implement a new
17812 # versioning mechanism, adjust this.
17813 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17814 version_type=freebsd-$objformat
17815 case $version_type in
17817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17822 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17826 shlibpath_var=LD_LIBRARY_PATH
17829 shlibpath_overrides_runpath=yes
17831 freebsd3.[01]* | freebsdelf3.[01]*)
17832 shlibpath_overrides_runpath=yes
17833 hardcode_into_libs=yes
17836 shlibpath_overrides_runpath=no
17837 hardcode_into_libs=yes
17846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17847 soname_spec='${libname}${release}${shared_ext}$major'
17848 shlibpath_var=LD_LIBRARY_PATH
17849 hardcode_into_libs=yes
17852 hpux9* | hpux10* | hpux11*)
17853 # Give a soname corresponding to the major version so that dld.sl refuses to
17854 # link against other versions.
17858 case "$host_cpu" in
17861 hardcode_into_libs=yes
17862 dynamic_linker="$host_os dld.so"
17863 shlibpath_var=LD_LIBRARY_PATH
17864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17866 soname_spec='${libname}${release}${shared_ext}$major'
17867 if test "X$HPUX_IA64_MODE" = X32; then
17868 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17870 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17876 hardcode_into_libs=yes
17877 dynamic_linker="$host_os dld.sl"
17878 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17879 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17881 soname_spec='${libname}${release}${shared_ext}$major'
17882 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17887 dynamic_linker="$host_os dld.sl"
17888 shlibpath_var=SHLIB_PATH
17889 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17891 soname_spec='${libname}${release}${shared_ext}$major'
17894 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17895 postinstall_cmds='chmod 555 $lib'
17898 irix5* | irix6* | nonstopux*)
17900 nonstopux*) version_type=nonstopux ;;
17902 if test "$lt_cv_prog_gnu_ld" = yes; then
17910 soname_spec='${libname}${release}${shared_ext}$major'
17911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17913 irix5* | nonstopux*)
17914 libsuff= shlibsuff=
17917 case $LD in # libtool.m4 will add one of these switches to LD
17918 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17919 libsuff= shlibsuff= libmagic=32-bit;;
17920 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17921 libsuff=32 shlibsuff=N32 libmagic=N32;;
17922 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17923 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17924 *) libsuff= shlibsuff= libmagic=never-match;;
17928 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17929 shlibpath_overrides_runpath=no
17930 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17931 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17932 hardcode_into_libs=yes
17935 # No shared lib support for Linux oldld, aout, or coff.
17936 linux*oldld* | linux*aout* | linux*coff*)
17940 # This must be Linux ELF.
17945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17946 soname_spec='${libname}${release}${shared_ext}$major'
17947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17948 shlibpath_var=LD_LIBRARY_PATH
17949 shlibpath_overrides_runpath=no
17950 # This implies no fast_install, which is unacceptable.
17951 # Some rework will be needed to allow for fast_install
17952 # before this can be enabled.
17953 hardcode_into_libs=yes
17955 # Append ld.so.conf contents to the search path
17956 if test -f /etc/ld.so.conf; then
17957 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' ' '`
17958 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17961 case $host_cpu:$lt_cv_cc_64bit_output in
17962 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
17963 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
17964 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
17968 # We used to test for /lib/ld.so.1 and disable shared libraries on
17969 # powerpc, because MkLinux only supported shared libraries with the
17970 # GNU dynamic linker. Since this was broken with cross compilers,
17971 # most powerpc-linux boxes support dynamic linking these days and
17972 # people can always --disable-shared, the test was removed, and we
17973 # assume the GNU/Linux dynamic linker is in use.
17974 dynamic_linker='GNU/Linux ld.so'
17976 # Find out which ABI we are using (multilib Linux x86_64 hack).
17978 case "$host_cpu" in
17980 echo '#line 17980 "configure"' > conftest.$ac_ext
17981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17982 (eval $ac_compile) 2>&5
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); }; then
17986 case `/usr/bin/file conftest.$ac_objext` in
17997 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
17998 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18006 soname_spec='${libname}${release}${shared_ext}$major'
18007 shlibpath_var=LD_LIBRARY_PATH
18008 shlibpath_overrides_runpath=no
18009 hardcode_into_libs=yes
18010 dynamic_linker='GNU ld.so'
18017 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18020 dynamic_linker='NetBSD (a.out) ld.so'
18022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18023 soname_spec='${libname}${release}${shared_ext}$major'
18024 dynamic_linker='NetBSD ld.elf_so'
18026 shlibpath_var=LD_LIBRARY_PATH
18027 shlibpath_overrides_runpath=yes
18028 hardcode_into_libs=yes
18033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18034 shlibpath_var=LD_LIBRARY_PATH
18035 shlibpath_overrides_runpath=yes
18042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18043 soname_spec='${libname}${release}${shared_ext}$major'
18044 shlibpath_var=LD_LIBRARY_PATH
18045 shlibpath_overrides_runpath=yes
18051 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18053 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18054 *) need_version=no ;;
18056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18058 shlibpath_var=LD_LIBRARY_PATH
18059 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18061 openbsd2.[89] | openbsd2.[89].*)
18062 shlibpath_overrides_runpath=no
18065 shlibpath_overrides_runpath=yes
18069 shlibpath_overrides_runpath=yes
18074 libname_spec='$name'
18077 library_names_spec='$libname${shared_ext} $libname.a'
18078 dynamic_linker='OS/2 ld.exe'
18079 shlibpath_var=LIBPATH
18082 osf3* | osf4* | osf5*)
18086 soname_spec='${libname}${release}${shared_ext}$major'
18087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18088 shlibpath_var=LD_LIBRARY_PATH
18089 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18090 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18095 soname_spec='${libname}${release}${shared_ext}$major'
18096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18097 shlibpath_var=LD_LIBRARY_PATH
18104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18105 soname_spec='${libname}${release}${shared_ext}$major'
18106 shlibpath_var=LD_LIBRARY_PATH
18107 shlibpath_overrides_runpath=yes
18108 hardcode_into_libs=yes
18109 # ldd complains unless libraries are executable
18110 postinstall_cmds='chmod +x $lib'
18115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18116 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18117 shlibpath_var=LD_LIBRARY_PATH
18118 shlibpath_overrides_runpath=yes
18119 if test "$with_gnu_ld" = yes; then
18125 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18128 soname_spec='${libname}${release}${shared_ext}$major'
18129 shlibpath_var=LD_LIBRARY_PATH
18130 case $host_vendor in
18132 shlibpath_overrides_runpath=no
18134 export_dynamic_flag_spec='${wl}-Blargedynsym'
18135 runpath_var=LD_RUN_PATH
18143 shlibpath_overrides_runpath=no
18144 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18150 if test -d /usr/nec ;then
18152 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18153 soname_spec='$libname${shared_ext}.$major'
18154 shlibpath_var=LD_LIBRARY_PATH
18160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18161 soname_spec='${libname}${release}${shared_ext}$major'
18162 shlibpath_var=LD_LIBRARY_PATH
18169 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18170 echo "${ECHO_T}$dynamic_linker" >&6
18171 test "$dynamic_linker" = no && can_build_shared=no
18173 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18174 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18175 hardcode_action_GCJ=
18176 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18177 test -n "$runpath_var_GCJ" || \
18178 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18180 # We can hardcode non-existant directories.
18181 if test "$hardcode_direct_GCJ" != no &&
18182 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18183 # have to relink, otherwise we might link with an installed library
18184 # when we should be linking with a yet-to-be-installed one
18185 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18186 test "$hardcode_minus_L_GCJ" != no; then
18187 # Linking always hardcodes the temporary library directory.
18188 hardcode_action_GCJ=relink
18190 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18191 hardcode_action_GCJ=immediate
18194 # We cannot hardcode anything, or else we can only hardcode existing
18196 hardcode_action_GCJ=unsupported
18198 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18199 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18201 if test "$hardcode_action_GCJ" = relink; then
18202 # Fast installation is not supported
18203 enable_fast_install=no
18204 elif test "$shlibpath_overrides_runpath" = yes ||
18205 test "$enable_shared" = no; then
18206 # Fast installation is not necessary
18207 enable_fast_install=needless
18212 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18213 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18214 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18215 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18216 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18217 echo "$as_me:$LINENO: result: yes" >&5
18218 echo "${ECHO_T}yes" >&6
18220 # FIXME - insert some real tests, host_os isn't really good enough
18223 if test -n "$STRIP" ; then
18224 striplib="$STRIP -x"
18225 echo "$as_me:$LINENO: result: yes" >&5
18226 echo "${ECHO_T}yes" >&6
18228 echo "$as_me:$LINENO: result: no" >&5
18229 echo "${ECHO_T}no" >&6
18233 echo "$as_me:$LINENO: result: no" >&5
18234 echo "${ECHO_T}no" >&6
18239 if test "x$enable_dlopen" != xyes; then
18240 enable_dlopen=unknown
18241 enable_dlopen_self=unknown
18242 enable_dlopen_self_static=unknown
18249 lt_cv_dlopen="load_add_on"
18251 lt_cv_dlopen_self=yes
18255 lt_cv_dlopen="LoadLibrary"
18260 lt_cv_dlopen="dlopen"
18265 # if libdl is installed we need to link against it
18266 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18267 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18268 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18269 echo $ECHO_N "(cached) $ECHO_C" >&6
18271 ac_check_lib_save_LIBS=$LIBS
18273 cat >conftest.$ac_ext <<_ACEOF
18276 cat confdefs.h >>conftest.$ac_ext
18277 cat >>conftest.$ac_ext <<_ACEOF
18278 /* end confdefs.h. */
18280 /* Override any gcc2 internal prototype to avoid an error. */
18284 /* We use char because int might match the return type of a gcc2
18285 builtin and then its argument prototype would still apply. */
18295 rm -f conftest.$ac_objext conftest$ac_exeext
18296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18297 (eval $ac_link) 2>conftest.er1
18299 grep -v '^ *+' conftest.er1 >conftest.err
18301 cat conftest.err >&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); } &&
18304 { ac_try='test -z "$ac_c_werror_flag"
18305 || test ! -s conftest.err'
18306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18307 (eval $ac_try) 2>&5
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); }; } &&
18311 { ac_try='test -s conftest$ac_exeext'
18312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18313 (eval $ac_try) 2>&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); }; }; then
18317 ac_cv_lib_dl_dlopen=yes
18319 echo "$as_me: failed program was:" >&5
18320 sed 's/^/| /' conftest.$ac_ext >&5
18322 ac_cv_lib_dl_dlopen=no
18324 rm -f conftest.err conftest.$ac_objext \
18325 conftest$ac_exeext conftest.$ac_ext
18326 LIBS=$ac_check_lib_save_LIBS
18328 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18329 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18330 if test $ac_cv_lib_dl_dlopen = yes; then
18331 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18334 lt_cv_dlopen="dyld"
18336 lt_cv_dlopen_self=yes
18343 echo "$as_me:$LINENO: checking for shl_load" >&5
18344 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18345 if test "${ac_cv_func_shl_load+set}" = set; then
18346 echo $ECHO_N "(cached) $ECHO_C" >&6
18348 cat >conftest.$ac_ext <<_ACEOF
18351 cat confdefs.h >>conftest.$ac_ext
18352 cat >>conftest.$ac_ext <<_ACEOF
18353 /* end confdefs.h. */
18354 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18356 #define shl_load innocuous_shl_load
18358 /* System header to define __stub macros and hopefully few prototypes,
18359 which can conflict with char shl_load (); below.
18360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18361 <limits.h> exists even on freestanding compilers. */
18364 # include <limits.h>
18366 # include <assert.h>
18371 /* Override any gcc2 internal prototype to avoid an error. */
18376 /* We use char because int might match the return type of a gcc2
18377 builtin and then its argument prototype would still apply. */
18379 /* The GNU C library defines this for functions which it implements
18380 to always fail with ENOSYS. Some functions are actually named
18381 something starting with __ and the normal name is an alias. */
18382 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18385 char (*f) () = shl_load;
18394 return f != shl_load;
18399 rm -f conftest.$ac_objext conftest$ac_exeext
18400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18401 (eval $ac_link) 2>conftest.er1
18403 grep -v '^ *+' conftest.er1 >conftest.err
18405 cat conftest.err >&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); } &&
18408 { ac_try='test -z "$ac_c_werror_flag"
18409 || test ! -s conftest.err'
18410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18411 (eval $ac_try) 2>&5
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); }; } &&
18415 { ac_try='test -s conftest$ac_exeext'
18416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18417 (eval $ac_try) 2>&5
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; }; then
18421 ac_cv_func_shl_load=yes
18423 echo "$as_me: failed program was:" >&5
18424 sed 's/^/| /' conftest.$ac_ext >&5
18426 ac_cv_func_shl_load=no
18428 rm -f conftest.err conftest.$ac_objext \
18429 conftest$ac_exeext conftest.$ac_ext
18431 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18432 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18433 if test $ac_cv_func_shl_load = yes; then
18434 lt_cv_dlopen="shl_load"
18436 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18437 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18438 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18439 echo $ECHO_N "(cached) $ECHO_C" >&6
18441 ac_check_lib_save_LIBS=$LIBS
18443 cat >conftest.$ac_ext <<_ACEOF
18446 cat confdefs.h >>conftest.$ac_ext
18447 cat >>conftest.$ac_ext <<_ACEOF
18448 /* end confdefs.h. */
18450 /* Override any gcc2 internal prototype to avoid an error. */
18454 /* We use char because int might match the return type of a gcc2
18455 builtin and then its argument prototype would still apply. */
18465 rm -f conftest.$ac_objext conftest$ac_exeext
18466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18467 (eval $ac_link) 2>conftest.er1
18469 grep -v '^ *+' conftest.er1 >conftest.err
18471 cat conftest.err >&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); } &&
18474 { ac_try='test -z "$ac_c_werror_flag"
18475 || test ! -s conftest.err'
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; } &&
18481 { ac_try='test -s conftest$ac_exeext'
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
18487 ac_cv_lib_dld_shl_load=yes
18489 echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.$ac_ext >&5
18492 ac_cv_lib_dld_shl_load=no
18494 rm -f conftest.err conftest.$ac_objext \
18495 conftest$ac_exeext conftest.$ac_ext
18496 LIBS=$ac_check_lib_save_LIBS
18498 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18499 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18500 if test $ac_cv_lib_dld_shl_load = yes; then
18501 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18503 echo "$as_me:$LINENO: checking for dlopen" >&5
18504 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18505 if test "${ac_cv_func_dlopen+set}" = set; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18508 cat >conftest.$ac_ext <<_ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18514 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18516 #define dlopen innocuous_dlopen
18518 /* System header to define __stub macros and hopefully few prototypes,
18519 which can conflict with char dlopen (); below.
18520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18521 <limits.h> exists even on freestanding compilers. */
18524 # include <limits.h>
18526 # include <assert.h>
18531 /* Override any gcc2 internal prototype to avoid an error. */
18536 /* We use char because int might match the return type of a gcc2
18537 builtin and then its argument prototype would still apply. */
18539 /* The GNU C library defines this for functions which it implements
18540 to always fail with ENOSYS. Some functions are actually named
18541 something starting with __ and the normal name is an alias. */
18542 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18545 char (*f) () = dlopen;
18554 return f != dlopen;
18559 rm -f conftest.$ac_objext conftest$ac_exeext
18560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18561 (eval $ac_link) 2>conftest.er1
18563 grep -v '^ *+' conftest.er1 >conftest.err
18565 cat conftest.err >&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); } &&
18568 { ac_try='test -z "$ac_c_werror_flag"
18569 || test ! -s conftest.err'
18570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571 (eval $ac_try) 2>&5
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); }; } &&
18575 { ac_try='test -s conftest$ac_exeext'
18576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577 (eval $ac_try) 2>&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; }; then
18581 ac_cv_func_dlopen=yes
18583 echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18586 ac_cv_func_dlopen=no
18588 rm -f conftest.err conftest.$ac_objext \
18589 conftest$ac_exeext conftest.$ac_ext
18591 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18592 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18593 if test $ac_cv_func_dlopen = yes; then
18594 lt_cv_dlopen="dlopen"
18596 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18597 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18598 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18599 echo $ECHO_N "(cached) $ECHO_C" >&6
18601 ac_check_lib_save_LIBS=$LIBS
18603 cat >conftest.$ac_ext <<_ACEOF
18606 cat confdefs.h >>conftest.$ac_ext
18607 cat >>conftest.$ac_ext <<_ACEOF
18608 /* end confdefs.h. */
18610 /* Override any gcc2 internal prototype to avoid an error. */
18614 /* We use char because int might match the return type of a gcc2
18615 builtin and then its argument prototype would still apply. */
18625 rm -f conftest.$ac_objext conftest$ac_exeext
18626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18627 (eval $ac_link) 2>conftest.er1
18629 grep -v '^ *+' conftest.er1 >conftest.err
18631 cat conftest.err >&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } &&
18634 { ac_try='test -z "$ac_c_werror_flag"
18635 || test ! -s conftest.err'
18636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 (eval $ac_try) 2>&5
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; } &&
18641 { ac_try='test -s conftest$ac_exeext'
18642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18643 (eval $ac_try) 2>&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; }; then
18647 ac_cv_lib_dl_dlopen=yes
18649 echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.$ac_ext >&5
18652 ac_cv_lib_dl_dlopen=no
18654 rm -f conftest.err conftest.$ac_objext \
18655 conftest$ac_exeext conftest.$ac_ext
18656 LIBS=$ac_check_lib_save_LIBS
18658 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18659 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18660 if test $ac_cv_lib_dl_dlopen = yes; then
18661 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18663 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18664 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18665 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18666 echo $ECHO_N "(cached) $ECHO_C" >&6
18668 ac_check_lib_save_LIBS=$LIBS
18669 LIBS="-lsvld $LIBS"
18670 cat >conftest.$ac_ext <<_ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h. */
18677 /* Override any gcc2 internal prototype to avoid an error. */
18681 /* We use char because int might match the return type of a gcc2
18682 builtin and then its argument prototype would still apply. */
18692 rm -f conftest.$ac_objext conftest$ac_exeext
18693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18694 (eval $ac_link) 2>conftest.er1
18696 grep -v '^ *+' conftest.er1 >conftest.err
18698 cat conftest.err >&5
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); } &&
18701 { ac_try='test -z "$ac_c_werror_flag"
18702 || test ! -s conftest.err'
18703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18704 (eval $ac_try) 2>&5
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); }; } &&
18708 { ac_try='test -s conftest$ac_exeext'
18709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18710 (eval $ac_try) 2>&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; }; then
18714 ac_cv_lib_svld_dlopen=yes
18716 echo "$as_me: failed program was:" >&5
18717 sed 's/^/| /' conftest.$ac_ext >&5
18719 ac_cv_lib_svld_dlopen=no
18721 rm -f conftest.err conftest.$ac_objext \
18722 conftest$ac_exeext conftest.$ac_ext
18723 LIBS=$ac_check_lib_save_LIBS
18725 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18726 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18727 if test $ac_cv_lib_svld_dlopen = yes; then
18728 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18730 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18731 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18732 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18733 echo $ECHO_N "(cached) $ECHO_C" >&6
18735 ac_check_lib_save_LIBS=$LIBS
18737 cat >conftest.$ac_ext <<_ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h. */
18744 /* Override any gcc2 internal prototype to avoid an error. */
18748 /* We use char because int might match the return type of a gcc2
18749 builtin and then its argument prototype would still apply. */
18759 rm -f conftest.$ac_objext conftest$ac_exeext
18760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18761 (eval $ac_link) 2>conftest.er1
18763 grep -v '^ *+' conftest.er1 >conftest.err
18765 cat conftest.err >&5
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); } &&
18768 { ac_try='test -z "$ac_c_werror_flag"
18769 || test ! -s conftest.err'
18770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18771 (eval $ac_try) 2>&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); }; } &&
18775 { ac_try='test -s conftest$ac_exeext'
18776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18777 (eval $ac_try) 2>&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); }; }; then
18781 ac_cv_lib_dld_dld_link=yes
18783 echo "$as_me: failed program was:" >&5
18784 sed 's/^/| /' conftest.$ac_ext >&5
18786 ac_cv_lib_dld_dld_link=no
18788 rm -f conftest.err conftest.$ac_objext \
18789 conftest$ac_exeext conftest.$ac_ext
18790 LIBS=$ac_check_lib_save_LIBS
18792 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18793 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18794 if test $ac_cv_lib_dld_dld_link = yes; then
18795 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18816 if test "x$lt_cv_dlopen" != xno; then
18822 case $lt_cv_dlopen in
18824 save_CPPFLAGS="$CPPFLAGS"
18825 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18827 save_LDFLAGS="$LDFLAGS"
18828 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18831 LIBS="$lt_cv_dlopen_libs $LIBS"
18833 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18834 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18835 if test "${lt_cv_dlopen_self+set}" = set; then
18836 echo $ECHO_N "(cached) $ECHO_C" >&6
18838 if test "$cross_compiling" = yes; then :
18839 lt_cv_dlopen_self=cross
18841 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18842 lt_status=$lt_dlunknown
18843 cat > conftest.$ac_ext <<EOF
18844 #line 18844 "configure"
18845 #include "confdefs.h"
18854 # define LT_DLGLOBAL RTLD_GLOBAL
18857 # define LT_DLGLOBAL DL_GLOBAL
18859 # define LT_DLGLOBAL 0
18863 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18864 find out it does not work in some platform. */
18865 #ifndef LT_DLLAZY_OR_NOW
18867 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18870 # define LT_DLLAZY_OR_NOW DL_LAZY
18873 # define LT_DLLAZY_OR_NOW RTLD_NOW
18876 # define LT_DLLAZY_OR_NOW DL_NOW
18878 # define LT_DLLAZY_OR_NOW 0
18886 extern "C" void exit (int);
18889 void fnord() { int i=42;}
18892 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18893 int status = $lt_dlunknown;
18897 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18898 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18899 /* dlclose (self); */
18905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18906 (eval $ac_link) 2>&5
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18910 (./conftest; exit; ) 2>/dev/null
18912 case x$lt_status in
18913 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18914 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18915 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18918 # compilation failed
18919 lt_cv_dlopen_self=no
18926 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18927 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18929 if test "x$lt_cv_dlopen_self" = xyes; then
18930 LDFLAGS="$LDFLAGS $link_static_flag"
18931 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18932 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18933 if test "${lt_cv_dlopen_self_static+set}" = set; then
18934 echo $ECHO_N "(cached) $ECHO_C" >&6
18936 if test "$cross_compiling" = yes; then :
18937 lt_cv_dlopen_self_static=cross
18939 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18940 lt_status=$lt_dlunknown
18941 cat > conftest.$ac_ext <<EOF
18942 #line 18942 "configure"
18943 #include "confdefs.h"
18952 # define LT_DLGLOBAL RTLD_GLOBAL
18955 # define LT_DLGLOBAL DL_GLOBAL
18957 # define LT_DLGLOBAL 0
18961 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18962 find out it does not work in some platform. */
18963 #ifndef LT_DLLAZY_OR_NOW
18965 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18968 # define LT_DLLAZY_OR_NOW DL_LAZY
18971 # define LT_DLLAZY_OR_NOW RTLD_NOW
18974 # define LT_DLLAZY_OR_NOW DL_NOW
18976 # define LT_DLLAZY_OR_NOW 0
18984 extern "C" void exit (int);
18987 void fnord() { int i=42;}
18990 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18991 int status = $lt_dlunknown;
18995 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18996 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18997 /* dlclose (self); */
19003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19004 (eval $ac_link) 2>&5
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19008 (./conftest; exit; ) 2>/dev/null
19010 case x$lt_status in
19011 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19012 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19013 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19016 # compilation failed
19017 lt_cv_dlopen_self_static=no
19024 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19025 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19028 CPPFLAGS="$save_CPPFLAGS"
19029 LDFLAGS="$save_LDFLAGS"
19034 case $lt_cv_dlopen_self in
19035 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19036 *) enable_dlopen_self=unknown ;;
19039 case $lt_cv_dlopen_self_static in
19040 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19041 *) enable_dlopen_self_static=unknown ;;
19046 # The else clause should only fire when bootstrapping the
19047 # libtool distribution, otherwise you forgot to ship ltmain.sh
19048 # with your package, and you will get complaints that there are
19049 # no rules to generate ltmain.sh.
19050 if test -f "$ltmain"; then
19051 # See if we are running on zsh, and set the options which allow our commands through
19052 # without removal of \ escapes.
19053 if test -n "${ZSH_VERSION+set}" ; then
19054 setopt NO_GLOB_SUBST
19056 # Now quote all the things that may contain metacharacters while being
19057 # careful not to overquote the AC_SUBSTed values. We take copies of the
19058 # variables and quote the copies for generation of the libtool script.
19059 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19061 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19062 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19063 deplibs_check_method reload_flag reload_cmds need_locks \
19064 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19065 lt_cv_sys_global_symbol_to_c_name_address \
19066 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19067 old_postinstall_cmds old_postuninstall_cmds \
19071 lt_prog_compiler_wl_GCJ \
19072 lt_prog_compiler_pic_GCJ \
19073 lt_prog_compiler_static_GCJ \
19074 lt_prog_compiler_no_builtin_flag_GCJ \
19075 export_dynamic_flag_spec_GCJ \
19076 thread_safe_flag_spec_GCJ \
19077 whole_archive_flag_spec_GCJ \
19078 enable_shared_with_static_runtimes_GCJ \
19079 old_archive_cmds_GCJ \
19080 old_archive_from_new_cmds_GCJ \
19081 predep_objects_GCJ \
19082 postdep_objects_GCJ \
19085 compiler_lib_search_path_GCJ \
19087 archive_expsym_cmds_GCJ \
19088 postinstall_cmds_GCJ \
19089 postuninstall_cmds_GCJ \
19090 old_archive_from_expsyms_cmds_GCJ \
19091 allow_undefined_flag_GCJ \
19092 no_undefined_flag_GCJ \
19093 export_symbols_cmds_GCJ \
19094 hardcode_libdir_flag_spec_GCJ \
19095 hardcode_libdir_flag_spec_ld_GCJ \
19096 hardcode_libdir_separator_GCJ \
19097 hardcode_automatic_GCJ \
19099 module_expsym_cmds_GCJ \
19100 lt_cv_prog_compiler_c_o_GCJ \
19101 exclude_expsyms_GCJ \
19102 include_expsyms_GCJ; do
19105 old_archive_cmds_GCJ | \
19106 old_archive_from_new_cmds_GCJ | \
19107 archive_cmds_GCJ | \
19108 archive_expsym_cmds_GCJ | \
19109 module_cmds_GCJ | \
19110 module_expsym_cmds_GCJ | \
19111 old_archive_from_expsyms_cmds_GCJ | \
19112 export_symbols_cmds_GCJ | \
19113 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19114 postinstall_cmds | postuninstall_cmds | \
19115 old_postinstall_cmds | old_postuninstall_cmds | \
19116 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19117 # Double-quote double-evaled strings.
19118 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19121 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19127 *'\$0 --fallback-echo"')
19128 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19134 cat <<__EOF__ >> "$cfgfile"
19135 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19137 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19139 # Shell to use when invoking shell scripts.
19142 # Whether or not to build shared libraries.
19143 build_libtool_libs=$enable_shared
19145 # Whether or not to build static libraries.
19146 build_old_libs=$enable_static
19148 # Whether or not to add -lc for building shared libraries.
19149 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19151 # Whether or not to disallow shared libs when runtime libs are static
19152 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19154 # Whether or not to optimize for fast installation.
19155 fast_install=$enable_fast_install
19158 host_alias=$host_alias
19162 # The build system.
19163 build_alias=$build_alias
19167 # An echo program that does not interpret backslashes.
19172 AR_FLAGS=$lt_AR_FLAGS
19177 # A language-specific compiler.
19178 CC=$lt_compiler_GCJ
19180 # Is the compiler the GNU C compiler?
19186 # The linker used to build libraries.
19189 # Whether we need hard or soft links.
19192 # A BSD-compatible nm program.
19195 # A symbol stripping program
19198 # Used to examine libraries when file_magic_cmd begins "file"
19199 MAGIC_CMD=$MAGIC_CMD
19201 # Used on cygwin: DLL creation program.
19204 # Used on cygwin: object dumper.
19207 # Used on cygwin: assembler.
19210 # The name of the directory that contains temporary libtool files.
19213 # How to create reloadable object files.
19214 reload_flag=$lt_reload_flag
19215 reload_cmds=$lt_reload_cmds
19217 # How to pass a linker flag through the compiler.
19218 wl=$lt_lt_prog_compiler_wl_GCJ
19220 # Object file suffix (normally "o").
19221 objext="$ac_objext"
19223 # Old archive suffix (normally "a").
19226 # Shared library suffix (normally ".so").
19227 shrext_cmds='$shrext_cmds'
19229 # Executable file suffix (normally "").
19232 # Additional compiler flags for building library objects.
19233 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19236 # What is the maximum length of a command?
19237 max_cmd_len=$lt_cv_sys_max_cmd_len
19239 # Does compiler simultaneously support -c and -o options?
19240 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19242 # Must we lock files when doing compilation?
19243 need_locks=$lt_need_locks
19245 # Do we need the lib prefix for modules?
19246 need_lib_prefix=$need_lib_prefix
19248 # Do we need a version for libraries?
19249 need_version=$need_version
19251 # Whether dlopen is supported.
19252 dlopen_support=$enable_dlopen
19254 # Whether dlopen of programs is supported.
19255 dlopen_self=$enable_dlopen_self
19257 # Whether dlopen of statically linked programs is supported.
19258 dlopen_self_static=$enable_dlopen_self_static
19260 # Compiler flag to prevent dynamic linking.
19261 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19263 # Compiler flag to turn off builtin functions.
19264 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19266 # Compiler flag to allow reflexive dlopens.
19267 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19269 # Compiler flag to generate shared objects directly from archives.
19270 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19272 # Compiler flag to generate thread-safe objects.
19273 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19275 # Library versioning type.
19276 version_type=$version_type
19278 # Format of library name prefix.
19279 libname_spec=$lt_libname_spec
19281 # List of archive names. First name is the real one, the rest are links.
19282 # The last name is the one that the linker finds with -lNAME.
19283 library_names_spec=$lt_library_names_spec
19285 # The coded name of the library, if different from the real name.
19286 soname_spec=$lt_soname_spec
19288 # Commands used to build and install an old-style archive.
19290 old_archive_cmds=$lt_old_archive_cmds_GCJ
19291 old_postinstall_cmds=$lt_old_postinstall_cmds
19292 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19294 # Create an old-style archive from a shared archive.
19295 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19297 # Create a temporary old-style archive to link instead of a shared archive.
19298 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19300 # Commands used to build and install a shared archive.
19301 archive_cmds=$lt_archive_cmds_GCJ
19302 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19303 postinstall_cmds=$lt_postinstall_cmds
19304 postuninstall_cmds=$lt_postuninstall_cmds
19306 # Commands used to build a loadable module (assumed same as above if empty)
19307 module_cmds=$lt_module_cmds_GCJ
19308 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19310 # Commands to strip libraries.
19311 old_striplib=$lt_old_striplib
19312 striplib=$lt_striplib
19314 # Dependencies to place before the objects being linked to create a
19316 predep_objects=$lt_predep_objects_GCJ
19318 # Dependencies to place after the objects being linked to create a
19320 postdep_objects=$lt_postdep_objects_GCJ
19322 # Dependencies to place before the objects being linked to create a
19324 predeps=$lt_predeps_GCJ
19326 # Dependencies to place after the objects being linked to create a
19328 postdeps=$lt_postdeps_GCJ
19330 # The library search path used internally by the compiler when linking
19331 # a shared library.
19332 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19334 # Method to check whether dependent libraries are shared objects.
19335 deplibs_check_method=$lt_deplibs_check_method
19337 # Command to use when deplibs_check_method == file_magic.
19338 file_magic_cmd=$lt_file_magic_cmd
19340 # Flag that allows shared libraries with undefined symbols to be built.
19341 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19343 # Flag that forces no undefined symbols.
19344 no_undefined_flag=$lt_no_undefined_flag_GCJ
19346 # Commands used to finish a libtool library installation in a directory.
19347 finish_cmds=$lt_finish_cmds
19349 # Same as above, but a single script fragment to be evaled but not shown.
19350 finish_eval=$lt_finish_eval
19352 # Take the output of nm and produce a listing of raw symbols and C names.
19353 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19355 # Transform the output of nm in a proper C declaration
19356 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19358 # Transform the output of nm in a C name address pair
19359 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19361 # This is the shared library runtime path variable.
19362 runpath_var=$runpath_var
19364 # This is the shared library path variable.
19365 shlibpath_var=$shlibpath_var
19367 # Is shlibpath searched before the hard-coded library search path?
19368 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19370 # How to hardcode a shared library path into an executable.
19371 hardcode_action=$hardcode_action_GCJ
19373 # Whether we should hardcode library paths into libraries.
19374 hardcode_into_libs=$hardcode_into_libs
19376 # Flag to hardcode \$libdir into a binary during linking.
19377 # This must work even if \$libdir does not exist.
19378 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19380 # If ld is used when linking, flag to hardcode \$libdir into
19381 # a binary during linking. This must work even if \$libdir does
19383 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19385 # Whether we need a single -rpath flag with a separated argument.
19386 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19388 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19389 # resulting binary.
19390 hardcode_direct=$hardcode_direct_GCJ
19392 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19393 # resulting binary.
19394 hardcode_minus_L=$hardcode_minus_L_GCJ
19396 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19397 # the resulting binary.
19398 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19400 # Set to yes if building a shared library automatically hardcodes DIR into the library
19401 # and all subsequent libraries and executables linked against it.
19402 hardcode_automatic=$hardcode_automatic_GCJ
19404 # Variables whose values should be saved in libtool wrapper scripts and
19405 # restored at relink time.
19406 variables_saved_for_relink="$variables_saved_for_relink"
19408 # Whether libtool must link a program against all its dependency libraries.
19409 link_all_deplibs=$link_all_deplibs_GCJ
19411 # Compile-time system search path for libraries
19412 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19414 # Run-time system search path for libraries
19415 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19417 # Fix the shell variable \$srcfile for the compiler.
19418 fix_srcfile_path="$fix_srcfile_path_GCJ"
19420 # Set to yes if exported symbols are required.
19421 always_export_symbols=$always_export_symbols_GCJ
19423 # The commands to list exported symbols.
19424 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19426 # The commands to extract the exported symbol list from a shared archive.
19427 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19429 # Symbols that should not be listed in the preloaded symbols.
19430 exclude_expsyms=$lt_exclude_expsyms_GCJ
19432 # Symbols that must always be exported.
19433 include_expsyms=$lt_include_expsyms_GCJ
19435 # ### END LIBTOOL TAG CONFIG: $tagname
19441 # If there is no Makefile yet, we rely on a make rule to execute
19442 # `config.status --recheck' to rerun these tests and create the
19443 # libtool script then.
19444 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19445 if test -f "$ltmain_in"; then
19446 test -f Makefile && make "$ltmain"
19452 ac_cpp='$CPP $CPPFLAGS'
19453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19468 # Source file extension for RC test sources.
19471 # Object file extension for compiled RC test sources.
19475 # Code to be used in simple compile tests
19476 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19478 # Code to be used in simple link tests
19479 lt_simple_link_test_code="$lt_simple_compile_test_code"
19481 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19483 # If no C compiler was specified, use CC.
19486 # Allow CC to be a program name with arguments.
19490 # save warnings/boilerplate of simple test code
19491 ac_outfile=conftest.$ac_objext
19492 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19493 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19494 _lt_compiler_boilerplate=`cat conftest.err`
19497 ac_outfile=conftest.$ac_objext
19498 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19499 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19500 _lt_linker_boilerplate=`cat conftest.err`
19504 # Allow CC to be a program name with arguments.
19509 for cc_temp in $compiler""; do
19511 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19512 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19517 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19519 lt_cv_prog_compiler_c_o_RC=yes
19521 # The else clause should only fire when bootstrapping the
19522 # libtool distribution, otherwise you forgot to ship ltmain.sh
19523 # with your package, and you will get complaints that there are
19524 # no rules to generate ltmain.sh.
19525 if test -f "$ltmain"; then
19526 # See if we are running on zsh, and set the options which allow our commands through
19527 # without removal of \ escapes.
19528 if test -n "${ZSH_VERSION+set}" ; then
19529 setopt NO_GLOB_SUBST
19531 # Now quote all the things that may contain metacharacters while being
19532 # careful not to overquote the AC_SUBSTed values. We take copies of the
19533 # variables and quote the copies for generation of the libtool script.
19534 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19536 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19537 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19538 deplibs_check_method reload_flag reload_cmds need_locks \
19539 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19540 lt_cv_sys_global_symbol_to_c_name_address \
19541 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19542 old_postinstall_cmds old_postuninstall_cmds \
19546 lt_prog_compiler_wl_RC \
19547 lt_prog_compiler_pic_RC \
19548 lt_prog_compiler_static_RC \
19549 lt_prog_compiler_no_builtin_flag_RC \
19550 export_dynamic_flag_spec_RC \
19551 thread_safe_flag_spec_RC \
19552 whole_archive_flag_spec_RC \
19553 enable_shared_with_static_runtimes_RC \
19554 old_archive_cmds_RC \
19555 old_archive_from_new_cmds_RC \
19556 predep_objects_RC \
19557 postdep_objects_RC \
19560 compiler_lib_search_path_RC \
19562 archive_expsym_cmds_RC \
19563 postinstall_cmds_RC \
19564 postuninstall_cmds_RC \
19565 old_archive_from_expsyms_cmds_RC \
19566 allow_undefined_flag_RC \
19567 no_undefined_flag_RC \
19568 export_symbols_cmds_RC \
19569 hardcode_libdir_flag_spec_RC \
19570 hardcode_libdir_flag_spec_ld_RC \
19571 hardcode_libdir_separator_RC \
19572 hardcode_automatic_RC \
19574 module_expsym_cmds_RC \
19575 lt_cv_prog_compiler_c_o_RC \
19576 exclude_expsyms_RC \
19577 include_expsyms_RC; do
19580 old_archive_cmds_RC | \
19581 old_archive_from_new_cmds_RC | \
19582 archive_cmds_RC | \
19583 archive_expsym_cmds_RC | \
19585 module_expsym_cmds_RC | \
19586 old_archive_from_expsyms_cmds_RC | \
19587 export_symbols_cmds_RC | \
19588 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19589 postinstall_cmds | postuninstall_cmds | \
19590 old_postinstall_cmds | old_postuninstall_cmds | \
19591 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19592 # Double-quote double-evaled strings.
19593 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19596 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19602 *'\$0 --fallback-echo"')
19603 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19609 cat <<__EOF__ >> "$cfgfile"
19610 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19612 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19614 # Shell to use when invoking shell scripts.
19617 # Whether or not to build shared libraries.
19618 build_libtool_libs=$enable_shared
19620 # Whether or not to build static libraries.
19621 build_old_libs=$enable_static
19623 # Whether or not to add -lc for building shared libraries.
19624 build_libtool_need_lc=$archive_cmds_need_lc_RC
19626 # Whether or not to disallow shared libs when runtime libs are static
19627 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19629 # Whether or not to optimize for fast installation.
19630 fast_install=$enable_fast_install
19633 host_alias=$host_alias
19637 # The build system.
19638 build_alias=$build_alias
19642 # An echo program that does not interpret backslashes.
19647 AR_FLAGS=$lt_AR_FLAGS
19652 # A language-specific compiler.
19655 # Is the compiler the GNU C compiler?
19661 # The linker used to build libraries.
19664 # Whether we need hard or soft links.
19667 # A BSD-compatible nm program.
19670 # A symbol stripping program
19673 # Used to examine libraries when file_magic_cmd begins "file"
19674 MAGIC_CMD=$MAGIC_CMD
19676 # Used on cygwin: DLL creation program.
19679 # Used on cygwin: object dumper.
19682 # Used on cygwin: assembler.
19685 # The name of the directory that contains temporary libtool files.
19688 # How to create reloadable object files.
19689 reload_flag=$lt_reload_flag
19690 reload_cmds=$lt_reload_cmds
19692 # How to pass a linker flag through the compiler.
19693 wl=$lt_lt_prog_compiler_wl_RC
19695 # Object file suffix (normally "o").
19696 objext="$ac_objext"
19698 # Old archive suffix (normally "a").
19701 # Shared library suffix (normally ".so").
19702 shrext_cmds='$shrext_cmds'
19704 # Executable file suffix (normally "").
19707 # Additional compiler flags for building library objects.
19708 pic_flag=$lt_lt_prog_compiler_pic_RC
19711 # What is the maximum length of a command?
19712 max_cmd_len=$lt_cv_sys_max_cmd_len
19714 # Does compiler simultaneously support -c and -o options?
19715 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19717 # Must we lock files when doing compilation?
19718 need_locks=$lt_need_locks
19720 # Do we need the lib prefix for modules?
19721 need_lib_prefix=$need_lib_prefix
19723 # Do we need a version for libraries?
19724 need_version=$need_version
19726 # Whether dlopen is supported.
19727 dlopen_support=$enable_dlopen
19729 # Whether dlopen of programs is supported.
19730 dlopen_self=$enable_dlopen_self
19732 # Whether dlopen of statically linked programs is supported.
19733 dlopen_self_static=$enable_dlopen_self_static
19735 # Compiler flag to prevent dynamic linking.
19736 link_static_flag=$lt_lt_prog_compiler_static_RC
19738 # Compiler flag to turn off builtin functions.
19739 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19741 # Compiler flag to allow reflexive dlopens.
19742 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19744 # Compiler flag to generate shared objects directly from archives.
19745 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19747 # Compiler flag to generate thread-safe objects.
19748 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19750 # Library versioning type.
19751 version_type=$version_type
19753 # Format of library name prefix.
19754 libname_spec=$lt_libname_spec
19756 # List of archive names. First name is the real one, the rest are links.
19757 # The last name is the one that the linker finds with -lNAME.
19758 library_names_spec=$lt_library_names_spec
19760 # The coded name of the library, if different from the real name.
19761 soname_spec=$lt_soname_spec
19763 # Commands used to build and install an old-style archive.
19765 old_archive_cmds=$lt_old_archive_cmds_RC
19766 old_postinstall_cmds=$lt_old_postinstall_cmds
19767 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19769 # Create an old-style archive from a shared archive.
19770 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19772 # Create a temporary old-style archive to link instead of a shared archive.
19773 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19775 # Commands used to build and install a shared archive.
19776 archive_cmds=$lt_archive_cmds_RC
19777 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19778 postinstall_cmds=$lt_postinstall_cmds
19779 postuninstall_cmds=$lt_postuninstall_cmds
19781 # Commands used to build a loadable module (assumed same as above if empty)
19782 module_cmds=$lt_module_cmds_RC
19783 module_expsym_cmds=$lt_module_expsym_cmds_RC
19785 # Commands to strip libraries.
19786 old_striplib=$lt_old_striplib
19787 striplib=$lt_striplib
19789 # Dependencies to place before the objects being linked to create a
19791 predep_objects=$lt_predep_objects_RC
19793 # Dependencies to place after the objects being linked to create a
19795 postdep_objects=$lt_postdep_objects_RC
19797 # Dependencies to place before the objects being linked to create a
19799 predeps=$lt_predeps_RC
19801 # Dependencies to place after the objects being linked to create a
19803 postdeps=$lt_postdeps_RC
19805 # The library search path used internally by the compiler when linking
19806 # a shared library.
19807 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19809 # Method to check whether dependent libraries are shared objects.
19810 deplibs_check_method=$lt_deplibs_check_method
19812 # Command to use when deplibs_check_method == file_magic.
19813 file_magic_cmd=$lt_file_magic_cmd
19815 # Flag that allows shared libraries with undefined symbols to be built.
19816 allow_undefined_flag=$lt_allow_undefined_flag_RC
19818 # Flag that forces no undefined symbols.
19819 no_undefined_flag=$lt_no_undefined_flag_RC
19821 # Commands used to finish a libtool library installation in a directory.
19822 finish_cmds=$lt_finish_cmds
19824 # Same as above, but a single script fragment to be evaled but not shown.
19825 finish_eval=$lt_finish_eval
19827 # Take the output of nm and produce a listing of raw symbols and C names.
19828 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19830 # Transform the output of nm in a proper C declaration
19831 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19833 # Transform the output of nm in a C name address pair
19834 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19836 # This is the shared library runtime path variable.
19837 runpath_var=$runpath_var
19839 # This is the shared library path variable.
19840 shlibpath_var=$shlibpath_var
19842 # Is shlibpath searched before the hard-coded library search path?
19843 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19845 # How to hardcode a shared library path into an executable.
19846 hardcode_action=$hardcode_action_RC
19848 # Whether we should hardcode library paths into libraries.
19849 hardcode_into_libs=$hardcode_into_libs
19851 # Flag to hardcode \$libdir into a binary during linking.
19852 # This must work even if \$libdir does not exist.
19853 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19855 # If ld is used when linking, flag to hardcode \$libdir into
19856 # a binary during linking. This must work even if \$libdir does
19858 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19860 # Whether we need a single -rpath flag with a separated argument.
19861 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19863 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19864 # resulting binary.
19865 hardcode_direct=$hardcode_direct_RC
19867 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19868 # resulting binary.
19869 hardcode_minus_L=$hardcode_minus_L_RC
19871 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19872 # the resulting binary.
19873 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19875 # Set to yes if building a shared library automatically hardcodes DIR into the library
19876 # and all subsequent libraries and executables linked against it.
19877 hardcode_automatic=$hardcode_automatic_RC
19879 # Variables whose values should be saved in libtool wrapper scripts and
19880 # restored at relink time.
19881 variables_saved_for_relink="$variables_saved_for_relink"
19883 # Whether libtool must link a program against all its dependency libraries.
19884 link_all_deplibs=$link_all_deplibs_RC
19886 # Compile-time system search path for libraries
19887 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19889 # Run-time system search path for libraries
19890 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19892 # Fix the shell variable \$srcfile for the compiler.
19893 fix_srcfile_path="$fix_srcfile_path_RC"
19895 # Set to yes if exported symbols are required.
19896 always_export_symbols=$always_export_symbols_RC
19898 # The commands to list exported symbols.
19899 export_symbols_cmds=$lt_export_symbols_cmds_RC
19901 # The commands to extract the exported symbol list from a shared archive.
19902 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19904 # Symbols that should not be listed in the preloaded symbols.
19905 exclude_expsyms=$lt_exclude_expsyms_RC
19907 # Symbols that must always be exported.
19908 include_expsyms=$lt_include_expsyms_RC
19910 # ### END LIBTOOL TAG CONFIG: $tagname
19916 # If there is no Makefile yet, we rely on a make rule to execute
19917 # `config.status --recheck' to rerun these tests and create the
19918 # libtool script then.
19919 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19920 if test -f "$ltmain_in"; then
19921 test -f Makefile && make "$ltmain"
19927 ac_cpp='$CPP $CPPFLAGS'
19928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19937 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19938 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19939 { (exit 1); exit 1; }; }
19943 # Append the new tag name to the list of available tags.
19944 if test -n "$tagname" ; then
19945 available_tags="$available_tags $tagname"
19951 # Now substitute the updated list of available tags.
19952 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19953 mv "${ofile}T" "$ofile"
19957 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19958 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19959 { (exit 1); exit 1; }; }
19965 # This can be used to rebuild libtool when needed
19966 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19968 # Always use our own libtool.
19969 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19971 # Prevent multiple expansion
19993 # Checks for header files.
19994 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19995 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19996 if test "${ac_cv_header_stdc+set}" = set; then
19997 echo $ECHO_N "(cached) $ECHO_C" >&6
19999 cat >conftest.$ac_ext <<_ACEOF
20002 cat confdefs.h >>conftest.$ac_ext
20003 cat >>conftest.$ac_ext <<_ACEOF
20004 /* end confdefs.h. */
20005 #include <stdlib.h>
20006 #include <stdarg.h>
20007 #include <string.h>
20018 rm -f conftest.$ac_objext
20019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20020 (eval $ac_compile) 2>conftest.er1
20022 grep -v '^ *+' conftest.er1 >conftest.err
20024 cat conftest.err >&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } &&
20027 { ac_try='test -z "$ac_c_werror_flag"
20028 || test ! -s conftest.err'
20029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030 (eval $ac_try) 2>&5
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; } &&
20034 { ac_try='test -s conftest.$ac_objext'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; }; then
20040 ac_cv_header_stdc=yes
20042 echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20045 ac_cv_header_stdc=no
20047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20049 if test $ac_cv_header_stdc = yes; then
20050 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20051 cat >conftest.$ac_ext <<_ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h. */
20057 #include <string.h>
20060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20061 $EGREP "memchr" >/dev/null 2>&1; then
20064 ac_cv_header_stdc=no
20070 if test $ac_cv_header_stdc = yes; then
20071 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20072 cat >conftest.$ac_ext <<_ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h. */
20078 #include <stdlib.h>
20081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20082 $EGREP "free" >/dev/null 2>&1; then
20085 ac_cv_header_stdc=no
20091 if test $ac_cv_header_stdc = yes; then
20092 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20093 if test "$cross_compiling" = yes; then
20096 cat >conftest.$ac_ext <<_ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h. */
20103 #if ((' ' & 0x0FF) == 0x020)
20104 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20105 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20107 # define ISLOWER(c) \
20108 (('a' <= (c) && (c) <= 'i') \
20109 || ('j' <= (c) && (c) <= 'r') \
20110 || ('s' <= (c) && (c) <= 'z'))
20111 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20114 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20119 for (i = 0; i < 256; i++)
20120 if (XOR (islower (i), ISLOWER (i))
20121 || toupper (i) != TOUPPER (i))
20126 rm -f conftest$ac_exeext
20127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20128 (eval $ac_link) 2>&5
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133 (eval $ac_try) 2>&5
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); }; }; then
20139 echo "$as_me: program exited with status $ac_status" >&5
20140 echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20143 ( exit $ac_status )
20144 ac_cv_header_stdc=no
20146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20150 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20151 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20152 if test $ac_cv_header_stdc = yes; then
20154 cat >>confdefs.h <<\_ACEOF
20155 #define STDC_HEADERS 1
20164 for ac_header in fcntl.h stdlib.h string.h unistd.h
20166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20168 echo "$as_me:$LINENO: checking for $ac_header" >&5
20169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20171 echo $ECHO_N "(cached) $ECHO_C" >&6
20173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20176 # Is the header compilable?
20177 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20179 cat >conftest.$ac_ext <<_ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h. */
20185 $ac_includes_default
20186 #include <$ac_header>
20188 rm -f conftest.$ac_objext
20189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20190 (eval $ac_compile) 2>conftest.er1
20192 grep -v '^ *+' conftest.er1 >conftest.err
20194 cat conftest.err >&5
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); } &&
20197 { ac_try='test -z "$ac_c_werror_flag"
20198 || test ! -s conftest.err'
20199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200 (eval $ac_try) 2>&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); }; } &&
20204 { ac_try='test -s conftest.$ac_objext'
20205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206 (eval $ac_try) 2>&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); }; }; then
20210 ac_header_compiler=yes
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20215 ac_header_compiler=no
20217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20219 echo "${ECHO_T}$ac_header_compiler" >&6
20221 # Is the header present?
20222 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20224 cat >conftest.$ac_ext <<_ACEOF
20227 cat confdefs.h >>conftest.$ac_ext
20228 cat >>conftest.$ac_ext <<_ACEOF
20229 /* end confdefs.h. */
20230 #include <$ac_header>
20232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20235 grep -v '^ *+' conftest.er1 >conftest.err
20237 cat conftest.err >&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } >/dev/null; then
20240 if test -s conftest.err; then
20241 ac_cpp_err=$ac_c_preproc_warn_flag
20242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20249 if test -z "$ac_cpp_err"; then
20250 ac_header_preproc=yes
20252 echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20255 ac_header_preproc=no
20257 rm -f conftest.err conftest.$ac_ext
20258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20259 echo "${ECHO_T}$ac_header_preproc" >&6
20261 # So? What about this header?
20262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20268 ac_header_preproc=yes
20271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20278 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20285 ## -------------------------------------------- ##
20286 ## Report this to sebastian.marsching@suphp.org ##
20287 ## -------------------------------------------- ##
20290 sed "s/^/$as_me: WARNING: /" >&2
20293 echo "$as_me:$LINENO: checking for $ac_header" >&5
20294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20296 echo $ECHO_N "(cached) $ECHO_C" >&6
20298 eval "$as_ac_Header=\$ac_header_preproc"
20300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20305 cat >>confdefs.h <<_ACEOF
20306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20319 if test "$ac_cv_emxos2" = "yes"; then
20320 # Scripts don't pass test -x on OS/2
20326 echo "$as_me:$LINENO: checking for APR" >&5
20327 echo $ECHO_N "checking for APR... $ECHO_C" >&6
20329 # Check whether --with-apr or --without-apr was given.
20330 if test "${with_apr+set}" = set; then
20331 withval="$with_apr"
20333 if test "$withval" = "no" || test "$withval" = "yes"; then
20334 { { echo "$as_me:$LINENO: error: --with-apr requires a directory to be provided" >&5
20335 echo "$as_me: error: --with-apr requires a directory to be provided" >&2;}
20336 { (exit 1); exit 1; }; }
20339 if $TEST_X "$withval/bin/apr-config"; then
20341 apr_config="$withval/bin/apr-config"
20342 elif $TEST_X "$withval/apr-config"; then
20344 apr_config="$withval/apr-config"
20345 elif $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
20347 apr_config="$withval"
20350 if test "$apr_found" != "yes"; then
20351 { { echo "$as_me:$LINENO: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
20352 build directory, or an apr-config file." >&5
20353 echo "$as_me: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
20354 build directory, or an apr-config file." >&2;}
20355 { (exit 1); exit 1; }; }
20360 if test -d ""; then
20361 apr_temp_abs_srcdir="`cd && pwd`"
20362 apr_found="reconfig"
20363 if test -n ""; then
20364 apr_config="/apr-config"
20366 apr_config="/apr-config"
20369 if test "$apr_found" = "no" && test -n "1" && test "1" = "1"; then
20370 if apr-config --help > /dev/null 2>&1 ; then
20372 apr_config="apr-config"
20374 for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
20375 if $TEST_X "$lookdir/bin/apr-config"; then
20377 apr_config="$lookdir/bin/apr-config"
20386 echo "$as_me:$LINENO: result: $apr_found" >&5
20387 echo "${ECHO_T}$apr_found" >&6
20390 # Determine Apache version and find apxs
20392 echo "$as_me:$LINENO: checking for dynamic Apache module support (via APXS)" >&5
20393 echo $ECHO_N "checking for dynamic Apache module support (via APXS)... $ECHO_C" >&6
20395 # Check whether --with-apxs or --without-apxs was given.
20396 if test "${with_apxs+set}" = set; then
20397 withval="$with_apxs"
20399 if test "$withval" = "yes"; then
20407 if test -z "$APXS"; then
20411 if test "$BINNAME" = "" -a "$APXS" = "" -a "$FAIL_STATIC" = ""; then
20412 for i in /usr/sbin /usr/local/apache/bin ; do
20413 if test -f "$i/apxs"; then
20419 if test -n "$APXS"; then
20422 APACHE_VERSION=`\`$APXS -q SBINDIR\`/\`$APXS -q TARGET\` -v \
20423 | grep "Server version" \
20427 major_version=`echo $APACHE_VERSION|cut -f1,2 -d.`
20428 if test "$major_version" = "2.0"; then
20429 APACHE_VERSION_2=true
20430 APACHE_VERSION_1_3=false
20432 APACHE_VERSION_2=false
20433 APACHE_VERSION_1_3=true
20438 APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
20439 APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
20440 if test x"${APACHE_VERSION_2}" = xtrue ; then \
20441 APXS_EXTRA_CFLAGS=`$APXS -q EXTRA_CFLAGS`
20443 if test x"${APACHE_VERSION_1_3}" = xtrue; then \
20444 APXS_EXTRA_CFLAGS=`$APXS -q CFLAGS`
20450 echo "$as_me:$LINENO: result: found at $APXS (version $APACHE_VERSION)" >&5
20451 echo "${ECHO_T}found at $APXS (version $APACHE_VERSION)" >&6
20456 echo "$as_me:$LINENO: result: no" >&5
20457 echo "${ECHO_T}no" >&6
20460 if test x"${APACHE_VERSION_2}" = xtrue ; then \
20461 if test x"${apr_found}" = xyes ; then \
20462 APR_INCLUDEDIR=`${apr_config} --includedir`
20465 { { echo "$as_me:$LINENO: error: APR is needed to build mod_suphp for Apache 2.x but was not found" >&5
20466 echo "$as_me: error: APR is needed to build mod_suphp for Apache 2.x but was not found" >&2;}
20467 { (exit 1); exit 1; }; }
20473 echo "$as_me:$LINENO: checking for set-UID/set-GID mode" >&5
20474 echo $ECHO_N "checking for set-UID/set-GID mode... $ECHO_C" >&6
20476 # Check whether --with-setid-mode or --without-setid-mode was given.
20477 if test "${with_setid_mode+set}" = set; then
20478 withval="$with_setid_mode"
20480 if test "$withval" = "yes"; then
20481 SETID_MODE="paranoid"
20483 SETID_MODE="$withval"
20488 if test -z "$SETID_MODE" ; then
20489 SETID_MODE="paranoid"
20492 if test -n "$SETID_MODE"; then
20493 case "$SETID_MODE" in
20495 OPT_APACHEMOD_USERGROUP_DEF=""
20498 cat >>confdefs.h <<\_ACEOF
20499 #define OPT_USERGROUP_OWNER 1
20504 OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
20507 cat >>confdefs.h <<\_ACEOF
20508 #define OPT_USERGROUP_FORCE 1
20513 OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
20516 cat >>confdefs.h <<\_ACEOF
20517 #define OPT_USERGROUP_PARANOID 1
20522 { { echo "$as_me:$LINENO: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&5
20523 echo "$as_me: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&2;}
20524 { (exit 1); exit 1; }; }
20527 echo "$as_me:$LINENO: result: ok - using $SETID_MODE" >&5
20528 echo "${ECHO_T}ok - using $SETID_MODE" >&6
20532 # Checkpath (docroot) option
20535 # Check whether --enable-checkpath or --disable-checkpath was given.
20536 if test "${enable_checkpath+set}" = set; then
20537 enableval="$enable_checkpath"
20539 if test "$enableval" = "no"; then
20542 cat >>confdefs.h <<\_ACEOF
20543 #define OPT_DISABLE_CHECKPATH 1
20554 # Check whether --with-min-uid or --without-min-uid was given.
20555 if test "${with_min_uid+set}" = set; then
20556 withval="$with_min_uid"
20558 if test "$withval" -a ! "$withval" = "yes" ; then
20560 cat >>confdefs.h <<_ACEOF
20561 #define OPT_MIN_UID $withval
20569 cat >>confdefs.h <<\_ACEOF
20570 #define OPT_MIN_UID 100
20579 # Check whether --with-min-gid or --without-min-gid was given.
20580 if test "${with_min_gid+set}" = set; then
20581 withval="$with_min_gid"
20583 if test "$withval" -a ! "$withval" = "yes" ; then
20585 cat >>confdefs.h <<_ACEOF
20586 #define OPT_MIN_GID $withval
20594 cat >>confdefs.h <<\_ACEOF
20595 #define OPT_MIN_GID 100
20605 # Check whether --with-apache-user or --without-apache-user was given.
20606 if test "${with_apache_user+set}" = set; then
20607 withval="$with_apache_user"
20609 if test "$withval" -a ! "$withval" = "yes" ; then
20611 cat >>confdefs.h <<_ACEOF
20612 #define OPT_APACHE_USER "$withval"
20620 cat >>confdefs.h <<_ACEOF
20621 #define OPT_APACHE_USER "wwwrun"
20630 # Check whether --with-logfile or --without-logfile was given.
20631 if test "${with_logfile+set}" = set; then
20632 withval="$with_logfile"
20634 if test "$withval" -a ! "$withval" = "yes" ; then
20636 cat >>confdefs.h <<_ACEOF
20637 #define OPT_LOGFILE "$withval"
20645 cat >>confdefs.h <<_ACEOF
20646 #define OPT_LOGFILE "/var/log/httpd/suphp_log"
20653 # Conditional building of Apache module
20656 if test x"$APACHE_VERSION_1_3" = xtrue; then
20658 COND_AP13_FALSE='#'
20666 if test x"$APACHE_VERSION_2" = xtrue; then
20668 COND_AP20_FALSE='#'
20675 # Conditionally include UserGroup support
20678 if test \( x"$SETID_MODE" = xparanoid \) -o \( x"$SETID_MODE" = xforce \) ; then
20679 COND_APUSERGROUP_TRUE=
20680 COND_APUSERGROUP_FALSE='#'
20682 COND_APUSERGROUP_TRUE='#'
20683 COND_APUSERGROUP_FALSE=
20687 ac_config_files="$ac_config_files Makefile src/Makefile src/apache/Makefile src/apache2/Makefile"
20689 cat >confcache <<\_ACEOF
20690 # This file is a shell script that caches the results of configure
20691 # tests run on this system so they can be shared between configure
20692 # scripts and configure runs, see configure's option --config-cache.
20693 # It is not useful on other systems. If it contains results you don't
20694 # want to keep, you may remove or edit it.
20696 # config.status only pays attention to the cache file if you give it
20697 # the --recheck option to rerun configure.
20699 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20700 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20701 # following values.
20705 # The following way of writing the cache mishandles newlines in values,
20706 # but we know of no workaround that is simple, portable, and efficient.
20707 # So, don't put newlines in cache variables' values.
20708 # Ultrix sh set writes to stderr and can't be redirected directly,
20709 # and sets the high bit in the cache file unless we assign to the vars.
20712 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20714 # `set' does not quote correctly, so add quotes (double-quote
20715 # substitution turns \\\\ into \\, and sed turns \\ into \).
20718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20721 # `set' quotes correctly as required by POSIX, so do not add quotes.
20723 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20730 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20732 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20734 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20735 if test -w $cache_file; then
20736 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20737 cat confcache >$cache_file
20739 echo "not updating unwritable cache $cache_file"
20744 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20745 # Let make expand exec_prefix.
20746 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20748 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20749 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20750 # trailing colons and then remove the whole line if VPATH becomes empty
20751 # (actually we leave an empty line to preserve line numbers).
20752 if test "x$srcdir" = x.; then
20753 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20754 s/:*\$(srcdir):*/:/;
20755 s/:*\${srcdir}:*/:/;
20757 s/^\([^=]*=[ ]*\):*/\1/;
20763 DEFS=-DHAVE_CONFIG_H
20767 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20768 # 1. Remove the extension, and $U if already installed.
20769 ac_i=`echo "$ac_i" |
20770 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20772 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20773 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20775 LIBOBJS=$ac_libobjs
20777 LTLIBOBJS=$ac_ltlibobjs
20780 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20781 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20782 Usually this means the macro was only invoked conditionally." >&5
20783 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20784 Usually this means the macro was only invoked conditionally." >&2;}
20785 { (exit 1); exit 1; }; }
20787 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20788 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20789 Usually this means the macro was only invoked conditionally." >&5
20790 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20791 Usually this means the macro was only invoked conditionally." >&2;}
20792 { (exit 1); exit 1; }; }
20794 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20795 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20796 Usually this means the macro was only invoked conditionally." >&5
20797 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20798 Usually this means the macro was only invoked conditionally." >&2;}
20799 { (exit 1); exit 1; }; }
20801 if test -z "${COND_AP13_TRUE}" && test -z "${COND_AP13_FALSE}"; then
20802 { { echo "$as_me:$LINENO: error: conditional \"COND_AP13\" was never defined.
20803 Usually this means the macro was only invoked conditionally." >&5
20804 echo "$as_me: error: conditional \"COND_AP13\" was never defined.
20805 Usually this means the macro was only invoked conditionally." >&2;}
20806 { (exit 1); exit 1; }; }
20808 if test -z "${COND_AP20_TRUE}" && test -z "${COND_AP20_FALSE}"; then
20809 { { echo "$as_me:$LINENO: error: conditional \"COND_AP20\" was never defined.
20810 Usually this means the macro was only invoked conditionally." >&5
20811 echo "$as_me: error: conditional \"COND_AP20\" was never defined.
20812 Usually this means the macro was only invoked conditionally." >&2;}
20813 { (exit 1); exit 1; }; }
20815 if test -z "${COND_APUSERGROUP_TRUE}" && test -z "${COND_APUSERGROUP_FALSE}"; then
20816 { { echo "$as_me:$LINENO: error: conditional \"COND_APUSERGROUP\" was never defined.
20817 Usually this means the macro was only invoked conditionally." >&5
20818 echo "$as_me: error: conditional \"COND_APUSERGROUP\" was never defined.
20819 Usually this means the macro was only invoked conditionally." >&2;}
20820 { (exit 1); exit 1; }; }
20823 : ${CONFIG_STATUS=./config.status}
20824 ac_clean_files_save=$ac_clean_files
20825 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20826 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20827 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20828 cat >$CONFIG_STATUS <<_ACEOF
20830 # Generated by $as_me.
20831 # Run this file to recreate the current configuration.
20832 # Compiler output produced by configure, useful for debugging
20833 # configure, is in config.log if it exists.
20836 ac_cs_recheck=false
20838 SHELL=\${CONFIG_SHELL-$SHELL}
20841 cat >>$CONFIG_STATUS <<\_ACEOF
20842 ## --------------------- ##
20843 ## M4sh Initialization. ##
20844 ## --------------------- ##
20846 # Be Bourne compatible
20847 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20850 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20851 # is contrary to our usage. Disable this feature.
20852 alias -g '${1+"$@"}'='"$@"'
20853 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20856 DUALCASE=1; export DUALCASE # for MKS sh
20858 # Support unset when possible.
20859 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20866 # Work around bugs in pre-3.0 UWIN ksh.
20867 $as_unset ENV MAIL MAILPATH
20874 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20875 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20876 LC_TELEPHONE LC_TIME
20878 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20879 eval $as_var=C; export $as_var
20885 # Required to use basename.
20886 if expr a : '\(a\)' >/dev/null 2>&1; then
20892 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20893 as_basename=basename
20899 # Name of the executable.
20900 as_me=`$as_basename "$0" ||
20901 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20902 X"$0" : 'X\(//\)$' \| \
20903 X"$0" : 'X\(/\)$' \| \
20904 . : '\(.\)' 2>/dev/null ||
20906 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20907 /^X\/\(\/\/\)$/{ s//\1/; q; }
20908 /^X\/\(\/\).*/{ s//\1/; q; }
20912 # PATH needs CR, and LINENO needs CR and PATH.
20913 # Avoid depending upon Character Ranges.
20914 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20915 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20916 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20917 as_cr_digits='0123456789'
20918 as_cr_alnum=$as_cr_Letters$as_cr_digits
20920 # The user is always right.
20921 if test "${PATH_SEPARATOR+set}" != set; then
20922 echo "#! /bin/sh" >conf$$.sh
20923 echo "exit 0" >>conf$$.sh
20925 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20934 as_lineno_1=$LINENO
20935 as_lineno_2=$LINENO
20936 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20937 test "x$as_lineno_1" != "x$as_lineno_2" &&
20938 test "x$as_lineno_3" = "x$as_lineno_2" || {
20939 # Find who we are. Look in the path if we contain no path at all
20942 *[\\/]* ) as_myself=$0 ;;
20943 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20944 for as_dir in $PATH
20947 test -z "$as_dir" && as_dir=.
20948 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20953 # We did not find ourselves, most probably we were run as `sh COMMAND'
20954 # in which case we are not to be found in the path.
20955 if test "x$as_myself" = x; then
20958 if test ! -f "$as_myself"; then
20959 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20960 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20961 { (exit 1); exit 1; }; }
20963 case $CONFIG_SHELL in
20965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20966 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20969 test -z "$as_dir" && as_dir=.
20970 for as_base in sh bash ksh sh5; do
20973 if ("$as_dir/$as_base" -c '
20974 as_lineno_1=$LINENO
20975 as_lineno_2=$LINENO
20976 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20977 test "x$as_lineno_1" != "x$as_lineno_2" &&
20978 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20979 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20980 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20981 CONFIG_SHELL=$as_dir/$as_base
20982 export CONFIG_SHELL
20983 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20991 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20992 # uniformly replaced by the line number. The first 'sed' inserts a
20993 # line-number line before each line; the second 'sed' does the real
20994 # work. The second script uses 'N' to pair each line-number line
20995 # with the numbered line, and appends trailing '-' during
20996 # substitution so that $LINENO is not a special case at line end.
20997 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20998 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20999 sed '=' <$as_myself |
21004 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21007 s,^['$as_cr_digits']*\n,,
21008 ' >$as_me.lineno &&
21009 chmod +x $as_me.lineno ||
21010 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21011 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21012 { (exit 1); exit 1; }; }
21014 # Don't try to exec as it changes $[0], causing all sort of problems
21015 # (the dirname of $[0] is not the place where we might find the
21016 # original and so on. Autoconf is especially sensible to this).
21018 # Exit status is that of the last command.
21023 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21024 *c*,-n*) ECHO_N= ECHO_C='
21026 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21027 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21030 if expr a : '\(a\)' >/dev/null 2>&1; then
21036 rm -f conf$$ conf$$.exe conf$$.file
21038 if ln -s conf$$.file conf$$ 2>/dev/null; then
21039 # We could just check for DJGPP; but this test a) works b) is more generic
21040 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21041 if test -f conf$$.exe; then
21042 # Don't use ln at all; we don't have any links
21047 elif ln conf$$.file conf$$ 2>/dev/null; then
21052 rm -f conf$$ conf$$.exe conf$$.file
21054 if mkdir -p . 2>/dev/null; then
21057 test -d ./-p && rmdir ./-p
21061 as_executable_p="test -f"
21063 # Sed expression to map a string onto a valid CPP name.
21064 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21066 # Sed expression to map a string onto a valid variable name.
21067 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21071 # We need space, tab and new line, in precisely that order.
21081 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21082 # report actual input values of CONFIG_FILES etc. instead of their
21083 # values after options handling. Logging --version etc. is OK.
21087 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21088 ## Running $as_me. ##
21093 This file was extended by suPHP $as_me 0.6.1, which was
21094 generated by GNU Autoconf 2.59. Invocation command line was
21096 CONFIG_FILES = $CONFIG_FILES
21097 CONFIG_HEADERS = $CONFIG_HEADERS
21098 CONFIG_LINKS = $CONFIG_LINKS
21099 CONFIG_COMMANDS = $CONFIG_COMMANDS
21103 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21107 # Files that config.status was made for.
21108 if test -n "$ac_config_files"; then
21109 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21112 if test -n "$ac_config_headers"; then
21113 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21116 if test -n "$ac_config_links"; then
21117 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21120 if test -n "$ac_config_commands"; then
21121 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21124 cat >>$CONFIG_STATUS <<\_ACEOF
21127 \`$as_me' instantiates files from templates according to the
21128 current configuration.
21130 Usage: $0 [OPTIONS] [FILE]...
21132 -h, --help print this help, then exit
21133 -V, --version print version number, then exit
21134 -q, --quiet do not print progress messages
21135 -d, --debug don't remove temporary files
21136 --recheck update $as_me by reconfiguring in the same conditions
21137 --file=FILE[:TEMPLATE]
21138 instantiate the configuration file FILE
21139 --header=FILE[:TEMPLATE]
21140 instantiate the configuration header FILE
21142 Configuration files:
21145 Configuration headers:
21148 Configuration commands:
21151 Report bugs to <bug-autoconf@gnu.org>."
21154 cat >>$CONFIG_STATUS <<_ACEOF
21156 suPHP config.status 0.6.1
21157 configured by $0, generated by GNU Autoconf 2.59,
21158 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21160 Copyright (C) 2003 Free Software Foundation, Inc.
21161 This config.status script is free software; the Free Software Foundation
21162 gives unlimited permission to copy, distribute and modify it."
21167 cat >>$CONFIG_STATUS <<\_ACEOF
21168 # If no file are specified by the user, then we need to provide default
21169 # value. By we need to know if files were specified by the user.
21175 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21176 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21184 *) # This is not an option, so the user has probably given explicit
21187 ac_need_defaults=false;;
21191 # Handling of the options.
21193 cat >>$CONFIG_STATUS <<\_ACEOF
21194 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21196 --version | --vers* | -V )
21197 echo "$ac_cs_version"; exit 0 ;;
21199 # Conflict between --help and --header
21200 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21201 Try \`$0 --help' for more information." >&5
21202 echo "$as_me: error: ambiguous option: $1
21203 Try \`$0 --help' for more information." >&2;}
21204 { (exit 1); exit 1; }; };;
21205 --help | --hel | -h )
21206 echo "$ac_cs_usage"; exit 0 ;;
21207 --debug | --d* | -d )
21209 --file | --fil | --fi | --f )
21211 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21212 ac_need_defaults=false;;
21213 --header | --heade | --head | --hea )
21215 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21216 ac_need_defaults=false;;
21217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21218 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21221 # This is an error.
21222 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21223 Try \`$0 --help' for more information." >&5
21224 echo "$as_me: error: unrecognized option: $1
21225 Try \`$0 --help' for more information." >&2;}
21226 { (exit 1); exit 1; }; } ;;
21228 *) ac_config_targets="$ac_config_targets $1" ;;
21234 ac_configure_extra_args=
21236 if $ac_cs_silent; then
21238 ac_configure_extra_args="$ac_configure_extra_args --silent"
21242 cat >>$CONFIG_STATUS <<_ACEOF
21243 if \$ac_cs_recheck; then
21244 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21245 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21250 cat >>$CONFIG_STATUS <<_ACEOF
21252 # INIT-COMMANDS section.
21255 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21261 cat >>$CONFIG_STATUS <<\_ACEOF
21262 for ac_config_target in $ac_config_targets
21264 case "$ac_config_target" in
21265 # Handling of arguments.
21266 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21267 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21268 "src/apache/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/apache/Makefile" ;;
21269 "src/apache2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/apache2/Makefile" ;;
21270 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21271 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21272 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21273 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21274 { (exit 1); exit 1; }; };;
21278 # If the user did not use the arguments to specify the items to instantiate,
21279 # then the envvar interface is used. Set only those that are not.
21280 # We use the long form for the default assignment because of an extremely
21281 # bizarre bug on SunOS 4.1.3.
21282 if $ac_need_defaults; then
21283 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21284 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21285 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21288 # Have a temporary directory for convenience. Make it in the build tree
21289 # simply because there is no reason to put it here, and in addition,
21290 # creating and moving files from /tmp can sometimes cause problems.
21291 # Create a temporary directory, and hook for its removal unless debugging.
21294 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21295 trap '{ (exit 1); exit 1; }' 1 2 13 15
21298 # Create a (secure) tmp directory for tmp files.
21301 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21302 test -n "$tmp" && test -d "$tmp"
21305 tmp=./confstat$$-$RANDOM
21306 (umask 077 && mkdir $tmp)
21309 echo "$me: cannot create a temporary directory in ." >&2
21310 { (exit 1); exit 1; }
21315 cat >>$CONFIG_STATUS <<_ACEOF
21318 # CONFIG_FILES section.
21321 # No need to generate the scripts if there are no CONFIG_FILES.
21322 # This happens for instance when ./config.status config.h
21323 if test -n "\$CONFIG_FILES"; then
21324 # Protect against being on the right side of a sed subst in config.status.
21325 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21326 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21327 s,@SHELL@,$SHELL,;t t
21328 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21329 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21330 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21331 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21332 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21333 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21334 s,@exec_prefix@,$exec_prefix,;t t
21335 s,@prefix@,$prefix,;t t
21336 s,@program_transform_name@,$program_transform_name,;t t
21337 s,@bindir@,$bindir,;t t
21338 s,@sbindir@,$sbindir,;t t
21339 s,@libexecdir@,$libexecdir,;t t
21340 s,@datadir@,$datadir,;t t
21341 s,@sysconfdir@,$sysconfdir,;t t
21342 s,@sharedstatedir@,$sharedstatedir,;t t
21343 s,@localstatedir@,$localstatedir,;t t
21344 s,@libdir@,$libdir,;t t
21345 s,@includedir@,$includedir,;t t
21346 s,@oldincludedir@,$oldincludedir,;t t
21347 s,@infodir@,$infodir,;t t
21348 s,@mandir@,$mandir,;t t
21349 s,@build_alias@,$build_alias,;t t
21350 s,@host_alias@,$host_alias,;t t
21351 s,@target_alias@,$target_alias,;t t
21352 s,@DEFS@,$DEFS,;t t
21353 s,@ECHO_C@,$ECHO_C,;t t
21354 s,@ECHO_N@,$ECHO_N,;t t
21355 s,@ECHO_T@,$ECHO_T,;t t
21356 s,@LIBS@,$LIBS,;t t
21357 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21358 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21359 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21360 s,@CYGPATH_W@,$CYGPATH_W,;t t
21361 s,@PACKAGE@,$PACKAGE,;t t
21362 s,@VERSION@,$VERSION,;t t
21363 s,@ACLOCAL@,$ACLOCAL,;t t
21364 s,@AUTOCONF@,$AUTOCONF,;t t
21365 s,@AUTOMAKE@,$AUTOMAKE,;t t
21366 s,@AUTOHEADER@,$AUTOHEADER,;t t
21367 s,@MAKEINFO@,$MAKEINFO,;t t
21368 s,@install_sh@,$install_sh,;t t
21369 s,@STRIP@,$STRIP,;t t
21370 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21371 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21372 s,@mkdir_p@,$mkdir_p,;t t
21374 s,@SET_MAKE@,$SET_MAKE,;t t
21375 s,@am__leading_dot@,$am__leading_dot,;t t
21376 s,@AMTAR@,$AMTAR,;t t
21377 s,@am__tar@,$am__tar,;t t
21378 s,@am__untar@,$am__untar,;t t
21380 s,@CFLAGS@,$CFLAGS,;t t
21381 s,@LDFLAGS@,$LDFLAGS,;t t
21382 s,@CPPFLAGS@,$CPPFLAGS,;t t
21383 s,@ac_ct_CC@,$ac_ct_CC,;t t
21384 s,@EXEEXT@,$EXEEXT,;t t
21385 s,@OBJEXT@,$OBJEXT,;t t
21386 s,@DEPDIR@,$DEPDIR,;t t
21387 s,@am__include@,$am__include,;t t
21388 s,@am__quote@,$am__quote,;t t
21389 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21390 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21391 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21392 s,@CCDEPMODE@,$CCDEPMODE,;t t
21393 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21394 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21396 s,@CXXFLAGS@,$CXXFLAGS,;t t
21397 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21398 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21399 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21400 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21401 s,@build@,$build,;t t
21402 s,@build_cpu@,$build_cpu,;t t
21403 s,@build_vendor@,$build_vendor,;t t
21404 s,@build_os@,$build_os,;t t
21405 s,@host@,$host,;t t
21406 s,@host_cpu@,$host_cpu,;t t
21407 s,@host_vendor@,$host_vendor,;t t
21408 s,@host_os@,$host_os,;t t
21409 s,@EGREP@,$EGREP,;t t
21410 s,@LN_S@,$LN_S,;t t
21411 s,@ECHO@,$ECHO,;t t
21413 s,@ac_ct_AR@,$ac_ct_AR,;t t
21414 s,@RANLIB@,$RANLIB,;t t
21415 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21417 s,@CXXCPP@,$CXXCPP,;t t
21419 s,@FFLAGS@,$FFLAGS,;t t
21420 s,@ac_ct_F77@,$ac_ct_F77,;t t
21421 s,@LIBTOOL@,$LIBTOOL,;t t
21422 s,@APXS@,$APXS,;t t
21423 s,@APACHE_VERSION_1_3@,$APACHE_VERSION_1_3,;t t
21424 s,@APACHE_VERSION_2@,$APACHE_VERSION_2,;t t
21425 s,@APXS_INCLUDEDIR@,$APXS_INCLUDEDIR,;t t
21426 s,@APXS_LIBEXECDIR@,$APXS_LIBEXECDIR,;t t
21427 s,@APXS_EXTRA_CFLAGS@,$APXS_EXTRA_CFLAGS,;t t
21428 s,@APR_INCLUDEDIR@,$APR_INCLUDEDIR,;t t
21429 s,@OPT_APACHEMOD_USERGROUP_DEF@,$OPT_APACHEMOD_USERGROUP_DEF,;t t
21430 s,@COND_AP13_TRUE@,$COND_AP13_TRUE,;t t
21431 s,@COND_AP13_FALSE@,$COND_AP13_FALSE,;t t
21432 s,@COND_AP20_TRUE@,$COND_AP20_TRUE,;t t
21433 s,@COND_AP20_FALSE@,$COND_AP20_FALSE,;t t
21434 s,@COND_APUSERGROUP_TRUE@,$COND_APUSERGROUP_TRUE,;t t
21435 s,@COND_APUSERGROUP_FALSE@,$COND_APUSERGROUP_FALSE,;t t
21436 s,@LIBOBJS@,$LIBOBJS,;t t
21437 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21442 cat >>$CONFIG_STATUS <<\_ACEOF
21443 # Split the substitutions into bite-sized pieces for seds with
21444 # small command number limits, like on Digital OSF/1 and HP-UX.
21445 ac_max_sed_lines=48
21446 ac_sed_frag=1 # Number of current file.
21447 ac_beg=1 # First line for current file.
21448 ac_end=$ac_max_sed_lines # Line after last line for current file.
21451 while $ac_more_lines; do
21452 if test $ac_beg -gt 1; then
21453 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21455 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21457 if test ! -s $tmp/subs.frag; then
21458 ac_more_lines=false
21460 # The purpose of the label and of the branching condition is to
21461 # speed up the sed processing (if there are no `@' at all, there
21462 # is no need to browse any of the substitutions).
21463 # These are the two extra sed commands mentioned above.
21465 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21466 if test -z "$ac_sed_cmds"; then
21467 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21469 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21471 ac_sed_frag=`expr $ac_sed_frag + 1`
21473 ac_end=`expr $ac_end + $ac_max_sed_lines`
21476 if test -z "$ac_sed_cmds"; then
21479 fi # test -n "$CONFIG_FILES"
21482 cat >>$CONFIG_STATUS <<\_ACEOF
21483 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21484 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21486 - | *:- | *:-:* ) # input from stdin
21488 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21489 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21490 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21491 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21492 * ) ac_file_in=$ac_file.in ;;
21495 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21496 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21497 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21498 X"$ac_file" : 'X\(//\)[^/]' \| \
21499 X"$ac_file" : 'X\(//\)$' \| \
21500 X"$ac_file" : 'X\(/\)' \| \
21501 . : '\(.\)' 2>/dev/null ||
21503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21504 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21505 /^X\(\/\/\)$/{ s//\1/; q; }
21506 /^X\(\/\).*/{ s//\1/; q; }
21508 { if $as_mkdir_p; then
21513 while test ! -d "$as_dir"; do
21514 as_dirs="$as_dir $as_dirs"
21515 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21517 X"$as_dir" : 'X\(//\)[^/]' \| \
21518 X"$as_dir" : 'X\(//\)$' \| \
21519 X"$as_dir" : 'X\(/\)' \| \
21520 . : '\(.\)' 2>/dev/null ||
21522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21523 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21524 /^X\(\/\/\)$/{ s//\1/; q; }
21525 /^X\(\/\).*/{ s//\1/; q; }
21528 test ! -n "$as_dirs" || mkdir $as_dirs
21529 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21530 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21531 { (exit 1); exit 1; }; }; }
21535 if test "$ac_dir" != .; then
21536 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21537 # A "../" for each directory in $ac_dir_suffix.
21538 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21540 ac_dir_suffix= ac_top_builddir=
21544 .) # No --srcdir option. We are building in place.
21546 if test -z "$ac_top_builddir"; then
21549 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21551 [\\/]* | ?:[\\/]* ) # Absolute path.
21552 ac_srcdir=$srcdir$ac_dir_suffix;
21553 ac_top_srcdir=$srcdir ;;
21554 *) # Relative path.
21555 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21556 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21559 # Do not use `cd foo && pwd` to compute absolute paths, because
21560 # the directories may not exist.
21562 .) ac_abs_builddir="$ac_dir";;
21565 .) ac_abs_builddir=`pwd`;;
21566 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21567 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21570 case $ac_abs_builddir in
21571 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21573 case ${ac_top_builddir}. in
21574 .) ac_abs_top_builddir=$ac_abs_builddir;;
21575 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21576 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21579 case $ac_abs_builddir in
21580 .) ac_abs_srcdir=$ac_srcdir;;
21583 .) ac_abs_srcdir=$ac_abs_builddir;;
21584 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21585 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21588 case $ac_abs_builddir in
21589 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21591 case $ac_top_srcdir in
21592 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21593 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21594 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21600 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21601 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21604 if test x"$ac_file" != x-; then
21605 { echo "$as_me:$LINENO: creating $ac_file" >&5
21606 echo "$as_me: creating $ac_file" >&6;}
21609 # Let's still pretend it is `configure' which instantiates (i.e., don't
21610 # use $as_me), people would be surprised to read:
21611 # /* config.h. Generated by config.status. */
21612 if test x"$ac_file" = x-; then
21615 configure_input="$ac_file. "
21617 configure_input=$configure_input"Generated from `echo $ac_file_in |
21618 sed 's,.*/,,'` by configure."
21620 # First look for the input files in the build tree, otherwise in the
21622 ac_file_inputs=`IFS=:
21623 for f in $ac_file_in; do
21625 -) echo $tmp/stdin ;;
21627 # Absolute (can't be DOS-style, as IFS=:)
21628 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21629 echo "$as_me: error: cannot find input file: $f" >&2;}
21630 { (exit 1); exit 1; }; }
21633 if test -f "$f"; then
21636 elif test -f "$srcdir/$f"; then
21641 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21642 echo "$as_me: error: cannot find input file: $f" >&2;}
21643 { (exit 1); exit 1; }; }
21646 done` || { (exit 1); exit 1; }
21648 cat >>$CONFIG_STATUS <<_ACEOF
21652 cat >>$CONFIG_STATUS <<\_ACEOF
21654 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21655 s,@configure_input@,$configure_input,;t t
21656 s,@srcdir@,$ac_srcdir,;t t
21657 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21658 s,@top_srcdir@,$ac_top_srcdir,;t t
21659 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21660 s,@builddir@,$ac_builddir,;t t
21661 s,@abs_builddir@,$ac_abs_builddir,;t t
21662 s,@top_builddir@,$ac_top_builddir,;t t
21663 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21664 s,@INSTALL@,$ac_INSTALL,;t t
21665 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21667 if test x"$ac_file" != x-; then
21668 mv $tmp/out $ac_file
21676 cat >>$CONFIG_STATUS <<\_ACEOF
21679 # CONFIG_HEADER section.
21682 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21683 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21685 # ac_d sets the value in "#define NAME VALUE" lines.
21686 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21687 ac_dB='[ ].*$,\1#\2'
21690 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21691 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21692 ac_uB='$,\1#\2define\3'
21696 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21697 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21699 - | *:- | *:-:* ) # input from stdin
21701 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21702 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21703 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21704 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21705 * ) ac_file_in=$ac_file.in ;;
21708 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21709 echo "$as_me: creating $ac_file" >&6;}
21711 # First look for the input files in the build tree, otherwise in the
21713 ac_file_inputs=`IFS=:
21714 for f in $ac_file_in; do
21716 -) echo $tmp/stdin ;;
21718 # Absolute (can't be DOS-style, as IFS=:)
21719 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21720 echo "$as_me: error: cannot find input file: $f" >&2;}
21721 { (exit 1); exit 1; }; }
21722 # Do quote $f, to prevent DOS paths from being IFS'd.
21725 if test -f "$f"; then
21728 elif test -f "$srcdir/$f"; then
21733 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21734 echo "$as_me: error: cannot find input file: $f" >&2;}
21735 { (exit 1); exit 1; }; }
21738 done` || { (exit 1); exit 1; }
21739 # Remove the trailing spaces.
21740 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21744 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21745 # `conftest.undefs', that substitutes the proper values into
21746 # config.h.in to produce config.h. The first handles `#define'
21747 # templates, and the second `#undef' templates.
21748 # And first: Protect against being on the right side of a sed subst in
21749 # config.status. Protect against being in an unquoted here document
21750 # in config.status.
21751 rm -f conftest.defines conftest.undefs
21752 # Using a here document instead of a string reduces the quoting nightmare.
21753 # Putting comments in sed scripts is not portable.
21755 # `end' is used to avoid that the second main sed command (meant for
21756 # 0-ary CPP macros) applies to n-ary macro definitions.
21757 # See the Autoconf documentation for `clear'.
21758 cat >confdef2sed.sed <<\_ACEOF
21763 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21765 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21768 # If some macros were called several times there might be several times
21769 # the same #defines, which is useless. Nevertheless, we may not want to
21770 # sort them, since we want the *last* AC-DEFINE to be honored.
21771 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21772 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21773 rm -f confdef2sed.sed
21775 # This sed command replaces #undef with comments. This is necessary, for
21776 # example, in the case of _POSIX_SOURCE, which is predefined and required
21777 # on some systems where configure will not decide to define it.
21778 cat >>conftest.undefs <<\_ACEOF
21779 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21782 # Break up conftest.defines because some shells have a limit on the size
21783 # of here documents, and old seds have small limits too (100 cmds).
21784 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21785 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21786 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21787 echo ' :' >>$CONFIG_STATUS
21788 rm -f conftest.tail
21789 while grep . conftest.defines >/dev/null
21791 # Write a limited-size here document to $tmp/defines.sed.
21792 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21793 # Speed up: don't consider the non `#define' lines.
21794 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21795 # Work around the forget-to-reset-the-flag bug.
21796 echo 't clr' >>$CONFIG_STATUS
21797 echo ': clr' >>$CONFIG_STATUS
21798 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21800 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21802 mv $tmp/out $tmp/in
21804 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21805 rm -f conftest.defines
21806 mv conftest.tail conftest.defines
21808 rm -f conftest.defines
21809 echo ' fi # grep' >>$CONFIG_STATUS
21810 echo >>$CONFIG_STATUS
21812 # Break up conftest.undefs because some shells have a limit on the size
21813 # of here documents, and old seds have small limits too (100 cmds).
21814 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21815 rm -f conftest.tail
21816 while grep . conftest.undefs >/dev/null
21818 # Write a limited-size here document to $tmp/undefs.sed.
21819 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21820 # Speed up: don't consider the non `#undef'
21821 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21822 # Work around the forget-to-reset-the-flag bug.
21823 echo 't clr' >>$CONFIG_STATUS
21824 echo ': clr' >>$CONFIG_STATUS
21825 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21827 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21829 mv $tmp/out $tmp/in
21831 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21832 rm -f conftest.undefs
21833 mv conftest.tail conftest.undefs
21835 rm -f conftest.undefs
21837 cat >>$CONFIG_STATUS <<\_ACEOF
21838 # Let's still pretend it is `configure' which instantiates (i.e., don't
21839 # use $as_me), people would be surprised to read:
21840 # /* config.h. Generated by config.status. */
21841 if test x"$ac_file" = x-; then
21842 echo "/* Generated by configure. */" >$tmp/config.h
21844 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21846 cat $tmp/in >>$tmp/config.h
21848 if test x"$ac_file" != x-; then
21849 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21850 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21851 echo "$as_me: $ac_file is unchanged" >&6;}
21853 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21854 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21855 X"$ac_file" : 'X\(//\)[^/]' \| \
21856 X"$ac_file" : 'X\(//\)$' \| \
21857 X"$ac_file" : 'X\(/\)' \| \
21858 . : '\(.\)' 2>/dev/null ||
21860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21861 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21862 /^X\(\/\/\)$/{ s//\1/; q; }
21863 /^X\(\/\).*/{ s//\1/; q; }
21865 { if $as_mkdir_p; then
21870 while test ! -d "$as_dir"; do
21871 as_dirs="$as_dir $as_dirs"
21872 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21873 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21874 X"$as_dir" : 'X\(//\)[^/]' \| \
21875 X"$as_dir" : 'X\(//\)$' \| \
21876 X"$as_dir" : 'X\(/\)' \| \
21877 . : '\(.\)' 2>/dev/null ||
21879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21881 /^X\(\/\/\)$/{ s//\1/; q; }
21882 /^X\(\/\).*/{ s//\1/; q; }
21885 test ! -n "$as_dirs" || mkdir $as_dirs
21886 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21887 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21888 { (exit 1); exit 1; }; }; }
21891 mv $tmp/config.h $ac_file
21895 rm -f $tmp/config.h
21897 # Compute $ac_file's index in $config_headers.
21899 for _am_header in $config_headers :; do
21900 case $_am_header in
21901 $ac_file | $ac_file:* )
21904 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21907 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21908 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21909 X$ac_file : 'X\(//\)[^/]' \| \
21910 X$ac_file : 'X\(//\)$' \| \
21911 X$ac_file : 'X\(/\)' \| \
21912 . : '\(.\)' 2>/dev/null ||
21914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21915 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21916 /^X\(\/\/\)$/{ s//\1/; q; }
21917 /^X\(\/\).*/{ s//\1/; q; }
21918 s/.*/./; q'`/stamp-h$_am_stamp_count
21921 cat >>$CONFIG_STATUS <<\_ACEOF
21924 # CONFIG_COMMANDS section.
21926 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21927 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21928 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21929 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21930 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21931 X"$ac_dest" : 'X\(//\)[^/]' \| \
21932 X"$ac_dest" : 'X\(//\)$' \| \
21933 X"$ac_dest" : 'X\(/\)' \| \
21934 . : '\(.\)' 2>/dev/null ||
21936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21937 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21938 /^X\(\/\/\)$/{ s//\1/; q; }
21939 /^X\(\/\).*/{ s//\1/; q; }
21941 { if $as_mkdir_p; then
21946 while test ! -d "$as_dir"; do
21947 as_dirs="$as_dir $as_dirs"
21948 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21949 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21950 X"$as_dir" : 'X\(//\)[^/]' \| \
21951 X"$as_dir" : 'X\(//\)$' \| \
21952 X"$as_dir" : 'X\(/\)' \| \
21953 . : '\(.\)' 2>/dev/null ||
21955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21956 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21957 /^X\(\/\/\)$/{ s//\1/; q; }
21958 /^X\(\/\).*/{ s//\1/; q; }
21961 test ! -n "$as_dirs" || mkdir $as_dirs
21962 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21963 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21964 { (exit 1); exit 1; }; }; }
21968 if test "$ac_dir" != .; then
21969 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21970 # A "../" for each directory in $ac_dir_suffix.
21971 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21973 ac_dir_suffix= ac_top_builddir=
21977 .) # No --srcdir option. We are building in place.
21979 if test -z "$ac_top_builddir"; then
21982 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21984 [\\/]* | ?:[\\/]* ) # Absolute path.
21985 ac_srcdir=$srcdir$ac_dir_suffix;
21986 ac_top_srcdir=$srcdir ;;
21987 *) # Relative path.
21988 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21989 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21992 # Do not use `cd foo && pwd` to compute absolute paths, because
21993 # the directories may not exist.
21995 .) ac_abs_builddir="$ac_dir";;
21998 .) ac_abs_builddir=`pwd`;;
21999 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22000 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22003 case $ac_abs_builddir in
22004 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22006 case ${ac_top_builddir}. in
22007 .) ac_abs_top_builddir=$ac_abs_builddir;;
22008 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22009 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22012 case $ac_abs_builddir in
22013 .) ac_abs_srcdir=$ac_srcdir;;
22016 .) ac_abs_srcdir=$ac_abs_builddir;;
22017 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22018 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22021 case $ac_abs_builddir in
22022 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22024 case $ac_top_srcdir in
22025 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22026 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22027 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22032 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22033 echo "$as_me: executing $ac_dest commands" >&6;}
22035 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22036 # Strip MF so we end up with the name of the file.
22037 mf=`echo "$mf" | sed -e 's/:.*$//'`
22038 # Check whether this is an Automake generated Makefile or not.
22039 # We used to match only the files named `Makefile.in', but
22040 # some people rename them; so instead we look at the file content.
22041 # Grep'ing the first line is not enough: some people post-process
22042 # each Makefile.in and add a new line on top of each file to say so.
22043 # So let's grep whole file.
22044 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22045 dirpart=`(dirname "$mf") 2>/dev/null ||
22046 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22047 X"$mf" : 'X\(//\)[^/]' \| \
22048 X"$mf" : 'X\(//\)$' \| \
22049 X"$mf" : 'X\(/\)' \| \
22050 . : '\(.\)' 2>/dev/null ||
22052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22053 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22054 /^X\(\/\/\)$/{ s//\1/; q; }
22055 /^X\(\/\).*/{ s//\1/; q; }
22060 # Extract the definition of DEPDIR, am__include, and am__quote
22061 # from the Makefile without running `make'.
22062 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22063 test -z "$DEPDIR" && continue
22064 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22065 test -z "am__include" && continue
22066 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22067 # When using ansi2knr, U may be empty or an underscore; expand it
22068 U=`sed -n 's/^U = //p' < "$mf"`
22069 # Find all dependency output files, they are included files with
22070 # $(DEPDIR) in their names. We invoke sed twice because it is the
22071 # simplest approach to changing $(DEPDIR) to its actual value in the
22073 for file in `sed -n "
22074 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22075 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22076 # Make sure the directory exists.
22077 test -f "$dirpart/$file" && continue
22078 fdir=`(dirname "$file") 2>/dev/null ||
22079 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22080 X"$file" : 'X\(//\)[^/]' \| \
22081 X"$file" : 'X\(//\)$' \| \
22082 X"$file" : 'X\(/\)' \| \
22083 . : '\(.\)' 2>/dev/null ||
22085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22087 /^X\(\/\/\)$/{ s//\1/; q; }
22088 /^X\(\/\).*/{ s//\1/; q; }
22090 { if $as_mkdir_p; then
22091 mkdir -p $dirpart/$fdir
22093 as_dir=$dirpart/$fdir
22095 while test ! -d "$as_dir"; do
22096 as_dirs="$as_dir $as_dirs"
22097 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22099 X"$as_dir" : 'X\(//\)[^/]' \| \
22100 X"$as_dir" : 'X\(//\)$' \| \
22101 X"$as_dir" : 'X\(/\)' \| \
22102 . : '\(.\)' 2>/dev/null ||
22104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22106 /^X\(\/\/\)$/{ s//\1/; q; }
22107 /^X\(\/\).*/{ s//\1/; q; }
22110 test ! -n "$as_dirs" || mkdir $as_dirs
22111 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22112 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22113 { (exit 1); exit 1; }; }; }
22115 # echo "creating $dirpart/$file"
22116 echo '# dummy' > "$dirpart/$file"
22124 cat >>$CONFIG_STATUS <<\_ACEOF
22126 { (exit 0); exit 0; }
22128 chmod +x $CONFIG_STATUS
22129 ac_clean_files=$ac_clean_files_save
22132 # configure is writing to config.log, and then calls config.status.
22133 # config.status does its own redirection, appending to config.log.
22134 # Unfortunately, on DOS this fails, as config.log is still kept open
22135 # by configure, so config.status won't be able to write to it; its
22136 # output is simply discarded. So we exec the FD to /dev/null,
22137 # effectively closing config.log, so it can be properly (re)opened and
22138 # appended to by config.status. When coming back to configure, we
22139 # need to make the FD available again.
22140 if test "$no_create" != yes; then
22142 ac_config_status_args=
22143 test "$silent" = yes &&
22144 ac_config_status_args="$ac_config_status_args --quiet"
22146 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22148 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22149 # would make configure fail if this is the last instruction.
22150 $ac_cs_success || { (exit 1); exit 1; }
22154 if test "$APXS" = "/notfound/"; then
22155 { echo "$as_me:$LINENO: WARNING:
22156 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22157 !!*** APXS was not found, so mod_suphp will not be built! ***!!
22158 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22160 echo "$as_me: WARNING:
22161 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22162 !!*** APXS was not found, so mod_suphp will not be built! ***!!
22163 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!