2 # From configure.in Id: configure.in 1054607 2011-01-03 13:13:49Z rjung .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 DUALCASE=1; export DUALCASE # for MKS sh
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
222 test -d ./-p && rmdir ./-p
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # We need space, tab and new line, in precisely that order.
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
257 if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
260 elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264 # Yippee, $echo works!
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
271 if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
307 # So, first we look for a working echo in the user's PATH.
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
360 # maybe with a smaller string...
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 # Oops. We lost completely, so just stick with echo.
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 tagnames=${tagnames+${tagnames},}CXX
397 tagnames=${tagnames+${tagnames},}F77
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
415 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete. It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
422 # Identity of this package.
429 ac_unique_file="common/jk_worker.h"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar TEST RM GREP ECHO SED CP MKDIR CFLAGS PERL APXS APACHE_CONFIG_VARS CC LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL int32_value int32_t_fmt uint32_t_fmt uint32_t_hex_fmt int64_value int64_t_fmt uint64_t_fmt uint64_t_hex_fmt pid_t_fmt pthread_t_fmt pthread_t_value apache_include APACHE_DIR JK_JNI_WORKER APXSCFLAGS APXSCPPFLAGS APXSLDFLAGS JAVA_HOME OS WEBSERVER MAKE_DYNAMIC_APACHE_TRUE MAKE_DYNAMIC_APACHE_FALSE APACHE20_OEXT LIB_JK_TYPE INSTALL_TYPE LIBOBJS LTLIBOBJS'
470 # Initialize some variables set by options.
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
482 program_transform_name=s,x,x,
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
585 -help | --help | --hel | --he | -h)
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 # Obsolete; use --without-fp.
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
715 -site=* | --site=* | --sit=*)
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 -version | --version | --versio | --versi | --vers | -V)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
764 # Obsolete; use --with-x.
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
877 if test ! -r $srcdir/$ac_unique_file; then
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
956 \`configure' configures this package to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1010 --program-prefix=PREFIX prepend PREFIX to installed program names
1011 --program-suffix=SUFFIX append SUFFIX to installed program names
1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015 --build=BUILD configure for building on BUILD [guessed]
1016 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1017 --target=TARGET configure for building compilers for TARGET [HOST]
1021 if test -n "$ac_init_help"; then
1026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1028 --disable-dependency-tracking speeds up one-time build
1029 --enable-dependency-tracking do not reject slow dependency extractors
1030 --enable-shared[=PKGS]
1031 build shared libraries [default=yes]
1032 --enable-static[=PKGS]
1033 build static libraries [default=yes]
1034 --enable-fast-install[=PKGS]
1035 optimize for fast installation [default=yes]
1036 --disable-libtool-lock avoid locking (might break parallel builds)
1037 --enable-netscape=DIR Build Netscape/iPlanet/SunONE nsapi redirector
1039 --enable-jni DEPRECATED: Build jni_connect.so and enable
1041 --enable-EAPI Enable EAPI support (mod_ssl, Apache 1.3)
1042 --enable-maintainer-mode
1043 Turn on debugging and compile time warnings
1044 --enable-prefork Turn on prefork web server mode (single-threaded)
1045 --disable-trace Exclude trace log code from compilation
1046 --enable-api-compatibility
1047 Only use httpd API functions available in all
1048 production releases. This improves binary
1049 compatibility of module builds with httpd releases
1050 older than the release against we build (only
1051 between minor versions).
1052 --enable-flock Turn on flock for shared locking if present
1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1057 --with-apxs[=FILE] Build shared Apache module.
1058 FILE is the optional pathname to the apxs tool;
1059 defaults to finding apxs in your PATH.
1060 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1061 --with-pic try to use only PIC/non-PIC objects [default=use
1064 include additional configurations [automatic]
1065 --with-apache=DIR Build static Apache module. DIR is the pathname to
1066 the Apache source directory.
1067 --with-java-home=DIR DEPRECATED: Where is your JDK root directory
1068 --with-java-platform=VAL
1069 DEPRECATED: Force the Java platform (value is 1 for
1070 1.1.x or 2 for 1.2.x or greater)
1071 --with-os-type=SUBDIR DEPRECATED: Where is your JDK os-type subdirectory
1073 Some influential environment variables:
1074 CC C compiler command
1075 CFLAGS C compiler flags
1076 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1077 nonstandard directory <lib dir>
1078 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1079 headers in a nonstandard directory <include dir>
1081 CXX C++ compiler command
1082 CXXFLAGS C++ compiler flags
1083 CXXCPP C++ preprocessor
1084 F77 Fortran 77 compiler command
1085 FFLAGS Fortran 77 compiler flags
1087 Use these variables to override the choices made by `configure' or to help
1088 it to find libraries and programs with nonstandard names/locations.
1093 if test "$ac_init_help" = "recursive"; then
1094 # If there are subdirs, report their specific --help.
1096 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1097 test -d $ac_dir || continue
1100 if test "$ac_dir" != .; then
1101 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1102 # A "../" for each directory in $ac_dir_suffix.
1103 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1105 ac_dir_suffix= ac_top_builddir=
1109 .) # No --srcdir option. We are building in place.
1111 if test -z "$ac_top_builddir"; then
1114 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1116 [\\/]* | ?:[\\/]* ) # Absolute path.
1117 ac_srcdir=$srcdir$ac_dir_suffix;
1118 ac_top_srcdir=$srcdir ;;
1120 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1121 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1124 # Do not use `cd foo && pwd` to compute absolute paths, because
1125 # the directories may not exist.
1127 .) ac_abs_builddir="$ac_dir";;
1130 .) ac_abs_builddir=`pwd`;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1132 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1135 case $ac_abs_builddir in
1136 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1138 case ${ac_top_builddir}. in
1139 .) ac_abs_top_builddir=$ac_abs_builddir;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1141 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1144 case $ac_abs_builddir in
1145 .) ac_abs_srcdir=$ac_srcdir;;
1148 .) ac_abs_srcdir=$ac_abs_builddir;;
1149 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1150 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1153 case $ac_abs_builddir in
1154 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1156 case $ac_top_srcdir in
1157 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1158 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1159 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1164 # Check for guested configure; otherwise get Cygnus style configure.
1165 if test -f $ac_srcdir/configure.gnu; then
1167 $SHELL $ac_srcdir/configure.gnu --help=recursive
1168 elif test -f $ac_srcdir/configure; then
1170 $SHELL $ac_srcdir/configure --help=recursive
1171 elif test -f $ac_srcdir/configure.ac ||
1172 test -f $ac_srcdir/configure.in; then
1174 $ac_configure --help
1176 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1182 test -n "$ac_init_help" && exit 0
1183 if $ac_init_version; then
1186 Copyright (C) 2003 Free Software Foundation, Inc.
1187 This configure script is free software; the Free Software Foundation
1188 gives unlimited permission to copy, distribute and modify it.
1194 This file contains any messages produced by compilers while
1195 running configure, to aid debugging if configure makes a mistake.
1197 It was created by $as_me, which was
1198 generated by GNU Autoconf 2.59. Invocation command line was
1209 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1210 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1211 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1212 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1213 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1215 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1216 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1218 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1219 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1220 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1221 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1222 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1223 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1224 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1232 test -z "$as_dir" && as_dir=.
1233 echo "PATH: $as_dir"
1248 # Keep a trace of the command line.
1249 # Strip out --no-create and --no-recursion so they do not pile up.
1250 # Strip out --silent because we don't want to record it for future runs.
1251 # Also quote any args containing shell meta-characters.
1252 # Make two passes to allow for proper duplicate-argument suppression.
1257 ac_must_keep_next=false
1263 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265 | -silent | --silent | --silen | --sile | --sil)
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1271 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1273 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1274 if test $ac_must_keep_next = true; then
1275 ac_must_keep_next=false # Got value, back to normal.
1278 *=* | --config-cache | -C | -disable-* | --disable-* \
1279 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1280 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1281 | -with-* | --with-* | -without-* | --without-* | --x)
1282 case "$ac_configure_args0 " in
1283 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1286 -* ) ac_must_keep_next=true ;;
1289 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1290 # Get rid of the leading space.
1296 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1297 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1299 # When interrupted or exit'd, cleanup temporary files, and complete
1300 # config.log. We remove comments because anyway the quotes in there
1301 # would cause problems or look ugly.
1302 # WARNING: Be sure not to use single quotes in there, as some shells,
1303 # such as our DU 5.0 friend, will then `close' the trap.
1304 trap 'exit_status=$?
1305 # Save into config.log some information that might help in debugging.
1310 ## ---------------- ##
1311 ## Cache variables. ##
1312 ## ---------------- ##
1315 # The following way of writing the cache mishandles newlines in values,
1318 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1321 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1322 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1326 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1333 ## ----------------- ##
1334 ## Output variables. ##
1335 ## ----------------- ##
1338 for ac_var in $ac_subst_vars
1340 eval ac_val=$`echo $ac_var`
1341 echo "$ac_var='"'"'$ac_val'"'"'"
1345 if test -n "$ac_subst_files"; then
1352 for ac_var in $ac_subst_files
1354 eval ac_val=$`echo $ac_var`
1355 echo "$ac_var='"'"'$ac_val'"'"'"
1360 if test -s confdefs.h; then
1367 sed "/^$/d" confdefs.h | sort
1370 test "$ac_signal" != 0 &&
1371 echo "$as_me: caught signal $ac_signal"
1372 echo "$as_me: exit $exit_status"
1374 rm -f core *.core &&
1375 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1378 for ac_signal in 1 2 13 15; do
1379 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1383 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1384 rm -rf conftest* confdefs.h
1385 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1388 # Predefined preprocessor variables.
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_NAME "$PACKAGE_NAME"
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_STRING "$PACKAGE_STRING"
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1415 # Let the site file select an alternate cache file if it wants to.
1416 # Prefer explicitly selected file to automatically selected ones.
1417 if test -z "$CONFIG_SITE"; then
1418 if test "x$prefix" != xNONE; then
1419 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1421 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1424 for ac_site_file in $CONFIG_SITE; do
1425 if test -r "$ac_site_file"; then
1426 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1427 echo "$as_me: loading site script $ac_site_file" >&6;}
1428 sed 's/^/| /' "$ac_site_file" >&5
1433 if test -r "$cache_file"; then
1434 # Some versions of bash will fail to source /dev/null (special
1435 # files actually), so we avoid doing that.
1436 if test -f "$cache_file"; then
1437 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1438 echo "$as_me: loading cache $cache_file" >&6;}
1440 [\\/]* | ?:[\\/]* ) . $cache_file;;
1441 *) . ./$cache_file;;
1445 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1446 echo "$as_me: creating cache $cache_file" >&6;}
1450 # Check that the precious variables saved in the cache have kept the same
1452 ac_cache_corrupted=false
1453 for ac_var in `(set) 2>&1 |
1454 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1455 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1456 eval ac_new_set=\$ac_env_${ac_var}_set
1457 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1458 eval ac_new_val="\$ac_env_${ac_var}_value"
1459 case $ac_old_set,$ac_new_set in
1461 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1463 ac_cache_corrupted=: ;;
1465 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1466 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1467 ac_cache_corrupted=: ;;
1470 if test "x$ac_old_val" != "x$ac_new_val"; then
1471 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1472 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1473 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1474 echo "$as_me: former value: $ac_old_val" >&2;}
1475 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1476 echo "$as_me: current value: $ac_new_val" >&2;}
1477 ac_cache_corrupted=:
1480 # Pass precious variables to config.status.
1481 if test "$ac_new_set" = set; then
1483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1484 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1485 *) ac_arg=$ac_var=$ac_new_val ;;
1487 case " $ac_configure_args " in
1488 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1489 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1493 if $ac_cache_corrupted; then
1494 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1495 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1496 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1497 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1498 { (exit 1); exit 1; }; }
1502 ac_cpp='$CPP $CPPFLAGS'
1503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1525 ac_config_headers="$ac_config_headers common/config.h"
1528 for ac_dir in scripts/build/unix $srcdir/scripts/build/unix; do
1529 if test -f $ac_dir/install-sh; then
1531 ac_install_sh="$ac_aux_dir/install-sh -c"
1533 elif test -f $ac_dir/install.sh; then
1535 ac_install_sh="$ac_aux_dir/install.sh -c"
1537 elif test -f $ac_dir/shtool; then
1539 ac_install_sh="$ac_aux_dir/shtool install -c"
1543 if test -z "$ac_aux_dir"; then
1544 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/build/unix $srcdir/scripts/build/unix" >&5
1545 echo "$as_me: error: cannot find install-sh or install.sh in scripts/build/unix $srcdir/scripts/build/unix" >&2;}
1546 { (exit 1); exit 1; }; }
1548 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1549 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1550 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1552 # Make sure we can run config.sub.
1553 $ac_config_sub sun4 >/dev/null 2>&1 ||
1554 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1555 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1556 { (exit 1); exit 1; }; }
1558 echo "$as_me:$LINENO: checking build system type" >&5
1559 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1560 if test "${ac_cv_build+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 ac_cv_build_alias=$build_alias
1564 test -z "$ac_cv_build_alias" &&
1565 ac_cv_build_alias=`$ac_config_guess`
1566 test -z "$ac_cv_build_alias" &&
1567 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1568 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1569 { (exit 1); exit 1; }; }
1570 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1571 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1572 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1573 { (exit 1); exit 1; }; }
1576 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1577 echo "${ECHO_T}$ac_cv_build" >&6
1579 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1580 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1581 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1584 echo "$as_me:$LINENO: checking host system type" >&5
1585 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1586 if test "${ac_cv_host+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 ac_cv_host_alias=$host_alias
1590 test -z "$ac_cv_host_alias" &&
1591 ac_cv_host_alias=$ac_cv_build_alias
1592 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1593 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1594 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1595 { (exit 1); exit 1; }; }
1598 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1599 echo "${ECHO_T}$ac_cv_host" >&6
1601 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606 echo "$as_me:$LINENO: checking target system type" >&5
1607 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1608 if test "${ac_cv_target+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 ac_cv_target_alias=$target_alias
1612 test "x$ac_cv_target_alias" = "x" &&
1613 ac_cv_target_alias=$ac_cv_host_alias
1614 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1615 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1616 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1617 { (exit 1); exit 1; }; }
1620 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1621 echo "${ECHO_T}$ac_cv_target" >&6
1622 target=$ac_cv_target
1623 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1624 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1625 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628 # The aliases save the names the user supplied, while $host etc.
1629 # will get canonicalized.
1630 test -n "$target_alias" &&
1631 test "$program_prefix$program_suffix$program_transform_name" = \
1633 program_prefix=${target_alias}-
1638 am__api_version="1.9"
1639 # Find a good install program. We prefer a C program (faster),
1640 # so one script is as good as another. But avoid the broken or
1641 # incompatible versions:
1642 # SysV /etc/install, /usr/sbin/install
1643 # SunOS /usr/etc/install
1644 # IRIX /sbin/install
1646 # AmigaOS /C/install, which installs bootblocks on floppy discs
1647 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1648 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1649 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1650 # OS/2's system install, which has a completely different semantic
1651 # ./install, which can be erroneously created by make from ./install.sh.
1652 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1653 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1654 if test -z "$INSTALL"; then
1655 if test "${ac_cv_path_install+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 test -z "$as_dir" && as_dir=.
1663 # Account for people who put trailing slashes in PATH elements.
1665 ./ | .// | /cC/* | \
1666 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1667 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1670 # OSF1 and SCO ODT 3.0 have their own names for install.
1671 # Don't use installbsd from OSF since it installs stuff as root
1673 for ac_prog in ginstall scoinst install; do
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1676 if test $ac_prog = install &&
1677 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1678 # AIX install. It has an incompatible calling convention.
1680 elif test $ac_prog = install &&
1681 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1682 # program-specific install script used by HP pwplus--don't use.
1685 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1697 if test "${ac_cv_path_install+set}" = set; then
1698 INSTALL=$ac_cv_path_install
1700 # As a last resort, use the slow shell script. We don't cache a
1701 # path for INSTALL within a source directory, because that will
1702 # break other packages using the cache if that directory is
1703 # removed, or if the path is relative.
1704 INSTALL=$ac_install_sh
1707 echo "$as_me:$LINENO: result: $INSTALL" >&5
1708 echo "${ECHO_T}$INSTALL" >&6
1710 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1711 # It thinks the first close brace ends the variable substitution.
1712 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1714 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1716 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1718 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1719 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1722 echo timestamp > conftest.file
1723 # Do `set' in a subshell so we don't clobber the current shell's
1724 # arguments. Must try -L first in case configure is actually a
1725 # symlink; some systems play weird games with the mod time of symlinks
1726 # (eg FreeBSD returns the mod time of the symlink's containing
1729 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1730 if test "$*" = "X"; then
1732 set X `ls -t $srcdir/configure conftest.file`
1735 if test "$*" != "X $srcdir/configure conftest.file" \
1736 && test "$*" != "X conftest.file $srcdir/configure"; then
1738 # If neither matched, then we have a broken ls. This can happen
1739 # if, for instance, CONFIG_SHELL is bash and it inherits a
1740 # broken ls alias from the environment. This has actually
1741 # happened. Such a system could not be considered "sane".
1742 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1743 alias in your environment" >&5
1744 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1745 alias in your environment" >&2;}
1746 { (exit 1); exit 1; }; }
1749 test "$2" = conftest.file
1755 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1756 Check your system clock" >&5
1757 echo "$as_me: error: newly created file is older than distributed files!
1758 Check your system clock" >&2;}
1759 { (exit 1); exit 1; }; }
1761 echo "$as_me:$LINENO: result: yes" >&5
1762 echo "${ECHO_T}yes" >&6
1763 test "$program_prefix" != NONE &&
1764 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1765 # Use a double $ so make ignores it.
1766 test "$program_suffix" != NONE &&
1767 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1768 # Double any \ or $. echo might interpret backslashes.
1769 # By default was `s,x,x', remove it if useless.
1770 cat <<\_ACEOF >conftest.sed
1771 s/[\\$]/&&/g;s/;s,x,x,$//
1773 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1776 # expand $ac_aux_dir to an absolute path
1777 am_aux_dir=`cd $ac_aux_dir && pwd`
1779 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1780 # Use eval to expand $SHELL
1781 if eval "$MISSING --run true"; then
1782 am_missing_run="$MISSING --run "
1785 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1786 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1789 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1790 # We used to keeping the `.' as first argument, in order to
1791 # allow $(mkdir_p) to be used without argument. As in
1792 # $(mkdir_p) $(somedir)
1793 # where $(somedir) is conditionally defined. However this is wrong
1795 # 1. if the package is installed by a user who cannot write `.'
1796 # make install will fail,
1797 # 2. the above comment should most certainly read
1798 # $(mkdir_p) $(DESTDIR)$(somedir)
1799 # so it does not work when $(somedir) is undefined and
1800 # $(DESTDIR) is not.
1801 # To support the latter case, we have to write
1802 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1803 # so the `.' trick is pointless.
1804 mkdir_p='mkdir -p --'
1806 # On NextStep and OpenStep, the `mkdir' command does not
1807 # recognize any option. It will interpret all options as
1808 # directories to create, and then abort because `.' already
1810 for d in ./-p ./--version;
1812 test -d $d && rmdir $d
1814 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1815 if test -f "$ac_aux_dir/mkinstalldirs"; then
1816 mkdir_p='$(mkinstalldirs)'
1818 mkdir_p='$(install_sh) -d'
1822 for ac_prog in gawk mawk nawk awk
1824 # Extract the first word of "$ac_prog", so it can be a program name with args.
1825 set dummy $ac_prog; ac_word=$2
1826 echo "$as_me:$LINENO: checking for $ac_word" >&5
1827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1828 if test "${ac_cv_prog_AWK+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1831 if test -n "$AWK"; then
1832 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838 test -z "$as_dir" && as_dir=.
1839 for ac_exec_ext in '' $ac_executable_extensions; do
1840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1841 ac_cv_prog_AWK="$ac_prog"
1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851 if test -n "$AWK"; then
1852 echo "$as_me:$LINENO: result: $AWK" >&5
1853 echo "${ECHO_T}$AWK" >&6
1855 echo "$as_me:$LINENO: result: no" >&5
1856 echo "${ECHO_T}no" >&6
1859 test -n "$AWK" && break
1862 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1863 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1864 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1865 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1868 cat >conftest.make <<\_ACEOF
1870 @echo 'ac_maketemp="$(MAKE)"'
1872 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1873 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1874 if test -n "$ac_maketemp"; then
1875 eval ac_cv_prog_make_${ac_make}_set=yes
1877 eval ac_cv_prog_make_${ac_make}_set=no
1881 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1882 echo "$as_me:$LINENO: result: yes" >&5
1883 echo "${ECHO_T}yes" >&6
1886 echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1888 SET_MAKE="MAKE=${MAKE-make}"
1891 rm -rf .tst 2>/dev/null
1892 mkdir .tst 2>/dev/null
1893 if test -d .tst; then
1898 rmdir .tst 2>/dev/null
1900 # test to see if srcdir already configured
1901 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1902 test -f $srcdir/config.status; then
1903 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1904 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1905 { (exit 1); exit 1; }; }
1908 # test whether we have cygpath
1909 if test -z "$CYGPATH_W"; then
1910 if (cygpath --version) >/dev/null 2>/dev/null; then
1911 CYGPATH_W='cygpath -w'
1918 # Define the identity of the package.
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE "$PACKAGE"
1928 cat >>confdefs.h <<_ACEOF
1929 #define VERSION "$VERSION"
1932 # Some tools Automake needs.
1934 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1937 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1940 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1943 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1946 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1948 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1950 # Installed binaries are usually stripped using `strip' when the user
1951 # run `make install-strip'. However `strip' might not be the right
1952 # tool to use in cross-compilation environments, therefore Automake
1953 # will honor the `STRIP' environment variable to overrule this program.
1954 if test "$cross_compiling" != no; then
1955 if test -n "$ac_tool_prefix"; then
1956 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1957 set dummy ${ac_tool_prefix}strip; ac_word=$2
1958 echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960 if test "${ac_cv_prog_STRIP+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1963 if test -n "$STRIP"; then
1964 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 test -z "$as_dir" && as_dir=.
1971 for ac_exec_ext in '' $ac_executable_extensions; do
1972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1973 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982 STRIP=$ac_cv_prog_STRIP
1983 if test -n "$STRIP"; then
1984 echo "$as_me:$LINENO: result: $STRIP" >&5
1985 echo "${ECHO_T}$STRIP" >&6
1987 echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6
1992 if test -z "$ac_cv_prog_STRIP"; then
1994 # Extract the first word of "strip", so it can be a program name with args.
1995 set dummy strip; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 if test -n "$ac_ct_STRIP"; then
2002 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_ac_ct_STRIP="strip"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2021 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2022 if test -n "$ac_ct_STRIP"; then
2023 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2024 echo "${ECHO_T}$ac_ct_STRIP" >&6
2026 echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2032 STRIP="$ac_cv_prog_STRIP"
2036 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2038 # We need awk for the "check" target. The system "awk" is bad on
2040 # Always define AMTAR for backward compatibility.
2042 AMTAR=${AMTAR-"${am_missing_run}tar"}
2044 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2062 cat >config.nice<<EOF
2065 # Created by configure
2068 if test -n "$CC"; then
2069 echo "CC=\"$CC\"; export CC" >> config.nice
2071 if test -n "$CFLAGS"; then
2072 echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
2074 if test -n "$CPPFLAGS"; then
2075 echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
2077 if test -n "$LDFLAGS"; then
2078 echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
2080 if test -n "$LTFLAGS"; then
2081 echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
2083 if test -n "$LIBS"; then
2084 echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
2086 if test -n "$INCLUDES"; then
2087 echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
2089 if test -n "$NOTEST_CFLAGS"; then
2090 echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
2092 if test -n "$NOTEST_CPPFLAGS"; then
2093 echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
2095 if test -n "$NOTEST_LDFLAGS"; then
2096 echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
2098 if test -n "$NOTEST_LIBS"; then
2099 echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
2102 # Retrieve command-line arguments.
2103 eval "set x $0 $ac_configure_args"
2111 while test "x${jk_cur}" != "x${jk_last}";
2114 jk_cur=`eval "echo ${jk_cur}"`
2118 echo "\"$arg\" \\" >> config.nice
2120 echo '"$@"' >> config.nice
2121 chmod +x config.nice
2124 # Extract the first word of "test", so it can be a program name with args.
2125 set dummy test; ac_word=$2
2126 echo "$as_me:$LINENO: checking for $ac_word" >&5
2127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2128 if test "${ac_cv_path_TEST+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 ac_cv_path_TEST="$TEST" # Let the user override the test with a path.
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143 ac_cv_path_TEST="$as_dir/$ac_word$ac_exec_ext"
2144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 test -z "$ac_cv_path_TEST" && ac_cv_path_TEST="$PATH"
2154 TEST=$ac_cv_path_TEST
2156 if test -n "$TEST"; then
2157 echo "$as_me:$LINENO: result: $TEST" >&5
2158 echo "${ECHO_T}$TEST" >&6
2160 echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6
2165 # Extract the first word of "rm", so it can be a program name with args.
2166 set dummy rm; ac_word=$2
2167 echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2169 if test "${ac_cv_path_RM+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 ac_cv_path_RM="$RM" # Let the user override the test with a path.
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191 test -z "$ac_cv_path_RM" && ac_cv_path_RM="$PATH"
2197 if test -n "$RM"; then
2198 echo "$as_me:$LINENO: result: $RM" >&5
2199 echo "${ECHO_T}$RM" >&6
2201 echo "$as_me:$LINENO: result: no" >&5
2202 echo "${ECHO_T}no" >&6
2206 # Extract the first word of "grep", so it can be a program name with args.
2207 set dummy grep; ac_word=$2
2208 echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2210 if test "${ac_cv_path_GREP+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 test -z "$as_dir" && as_dir=.
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2225 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="$PATH"
2236 GREP=$ac_cv_path_GREP
2238 if test -n "$GREP"; then
2239 echo "$as_me:$LINENO: result: $GREP" >&5
2240 echo "${ECHO_T}$GREP" >&6
2242 echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6
2247 # Extract the first word of "echo", so it can be a program name with args.
2248 set dummy echo; ac_word=$2
2249 echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2251 if test "${ac_cv_path_ECHO+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2266 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
2267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
2277 ECHO=$ac_cv_path_ECHO
2279 if test -n "$ECHO"; then
2280 echo "$as_me:$LINENO: result: $ECHO" >&5
2281 echo "${ECHO_T}$ECHO" >&6
2283 echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6
2288 # Extract the first word of "sed", so it can be a program name with args.
2289 set dummy sed; ac_word=$2
2290 echo "$as_me:$LINENO: checking for $ac_word" >&5
2291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2292 if test "${ac_cv_path_SED+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 ac_cv_path_SED="$SED" # Let the user override the test with a path.
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2307 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2314 test -z "$ac_cv_path_SED" && ac_cv_path_SED="$PATH"
2320 if test -n "$SED"; then
2321 echo "$as_me:$LINENO: result: $SED" >&5
2322 echo "${ECHO_T}$SED" >&6
2324 echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6
2329 # Extract the first word of "cp", so it can be a program name with args.
2330 set dummy cp; 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_path_CP+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 ac_cv_path_CP="$CP" # Let the user override the test with a path.
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2348 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 test -z "$ac_cv_path_CP" && ac_cv_path_CP="$PATH"
2361 if test -n "$CP"; then
2362 echo "$as_me:$LINENO: result: $CP" >&5
2363 echo "${ECHO_T}$CP" >&6
2365 echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6
2370 # Extract the first word of "mkdir", so it can be a program name with args.
2371 set dummy mkdir; ac_word=$2
2372 echo "$as_me:$LINENO: checking for $ac_word" >&5
2373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2374 if test "${ac_cv_path_MKDIR+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2389 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
2390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="$PATH"
2400 MKDIR=$ac_cv_path_MKDIR
2402 if test -n "$MKDIR"; then
2403 echo "$as_me:$LINENO: result: $MKDIR" >&5
2404 echo "${ECHO_T}$MKDIR" >&6
2406 echo "$as_me:$LINENO: result: no" >&5
2407 echo "${ECHO_T}no" >&6
2411 CFLAGS="${CFLAGS} -DHAVE_CONFIG_H"
2414 APACHE_CONFIG_VARS=`pwd`/scripts/build/config_vars.mk
2420 # Check whether --with-apxs or --without-apxs was given.
2421 if test "${with_apxs+set}" = set; then
2422 withval="$with_apxs"
2424 case "${withval}" in
2425 y | yes | true) find_apxs=true ;;
2426 n | no | false) find_apxs= ;;
2427 *) find_apxs=${withval} ;;
2430 if ${TEST} ${find_apxs} ; then
2431 echo "$as_me:$LINENO: result: need to check for Perl first, apxs depends on it..." >&5
2432 echo "${ECHO_T}need to check for Perl first, apxs depends on it..." >&6
2433 # Extract the first word of "perl", so it can be a program name with args.
2434 set dummy perl; ac_word=$2
2435 echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2437 if test "${ac_cv_path_PERL+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2452 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$PATH"
2463 PERL=$ac_cv_path_PERL
2465 if test -n "$PERL"; then
2466 echo "$as_me:$LINENO: result: $PERL" >&5
2467 echo "${ECHO_T}$PERL" >&6
2469 echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6
2473 if ${TEST} ${find_apxs} = true ; then
2474 # Extract the first word of "apxs", so it can be a program name with args.
2475 set dummy apxs; ac_word=$2
2476 echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2478 if test "${ac_cv_path_APXS+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2493 ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="$PATH"
2504 APXS=$ac_cv_path_APXS
2506 if test -n "$APXS"; then
2507 echo "$as_me:$LINENO: result: $APXS" >&5
2508 echo "${ECHO_T}$APXS" >&6
2510 echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6
2517 if ${TEST} -n "${APXS}" ; then
2518 if ${TEST} ! -x "${APXS}" ; then
2519 { { echo "$as_me:$LINENO: error: Invalid location for apxs: '${APXS}'" >&5
2520 echo "$as_me: error: Invalid location for apxs: '${APXS}'" >&2;}
2521 { (exit 1); exit 1; }; }
2524 ${APXS} -q PREFIX >/dev/null 2>/dev/null || apxs_support=false
2526 if ${TEST} "${apxs_support}" = "false" ; then
2527 echo "$as_me:$LINENO: result: could not find ${APXS}" >&5
2528 echo "${ECHO_T}could not find ${APXS}" >&6
2529 { { echo "$as_me:$LINENO: error: You must specify a valid --with-apxs path" >&5
2530 echo "$as_me: error: You must specify a valid --with-apxs path" >&2;}
2531 { (exit 1); exit 1; }; }
2534 apache_dir=`$APXS -q PREFIX`
2535 apache_include="-I`$APXS -q INCLUDEDIR`"
2537 APA=`${GREP} STANDARD20 ${APXS}`
2538 if ${TEST} -z "$APA" ; then
2539 WEBSERVER="apache-1.3"
2540 APXSCC="`$APXS -q CC`"
2541 APXSCFLAGS="`$APXS -q CFLAGS` -DJK_PREFORK"
2543 APXSLDFLAGS="`$APXS -q LDFLAGS_SHLIB`"
2545 WEBSERVER="apache-2.0"
2547 INCTEMP="`$APXS -q APR_INCLUDEDIR` `$APXS -q APU_INCLUDEDIR`"
2548 for INC in ${INCTEMP}; do
2549 APRINCLUDEDIR="${APRINCLUDEDIR} -I${INC}"
2551 echo "$as_me:$LINENO: result: APRINCLUDEDIR is $APRINCLUDEDIR" >&5
2552 echo "${ECHO_T}APRINCLUDEDIR is $APRINCLUDEDIR" >&6
2553 APXSCC="`$APXS -q CC`"
2554 APXSCFLAGS="`${APXS} -q CFLAGS` `${APXS} -q EXTRA_CFLAGS` -DHAVE_APR ${APRINCLUDEDIR}"
2555 APXSCPPFLAGS="`${APXS} -q EXTRA_CPPFLAGS`"
2556 APXSLDFLAGS="`$APXS -q LDFLAGS`"
2557 APACHE_CONFIG_VARS="`${APXS} -q exp_installbuilddir`/config_vars.mk"
2558 LIBTOOL=`$APXS -q LIBTOOL`
2560 echo "$as_me:$LINENO: result: building connector for \"$WEBSERVER\"" >&5
2561 echo "${ECHO_T}building connector for \"$WEBSERVER\"" >&6
2562 if ${TEST} -z "${CC}" ; then
2565 if ${TEST} "${CC}" != "$APXSCC" ; then
2576 echo "$as_me:$LINENO: result: no apxs given" >&5
2577 echo "${ECHO_T}no apxs given" >&6
2584 ac_cpp='$CPP $CPPFLAGS'
2585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588 if test -n "$ac_tool_prefix"; then
2589 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2590 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2591 echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2593 if test "${ac_cv_prog_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 if test -n "$CC"; then
2597 ac_cv_prog_CC="$CC" # Let the user override the test.
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 if test -n "$CC"; then
2617 echo "$as_me:$LINENO: result: $CC" >&5
2618 echo "${ECHO_T}$CC" >&6
2620 echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6
2625 if test -z "$ac_cv_prog_CC"; then
2627 # Extract the first word of "gcc", so it can be a program name with args.
2628 set dummy gcc; ac_word=$2
2629 echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 if test -n "$ac_ct_CC"; then
2635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2644 ac_cv_prog_ac_ct_CC="gcc"
2645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2654 if test -n "$ac_ct_CC"; then
2655 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2656 echo "${ECHO_T}$ac_ct_CC" >&6
2658 echo "$as_me:$LINENO: result: no" >&5
2659 echo "${ECHO_T}no" >&6
2667 if test -z "$CC"; then
2668 if test -n "$ac_tool_prefix"; then
2669 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2670 set dummy ${ac_tool_prefix}cc; ac_word=$2
2671 echo "$as_me:$LINENO: checking for $ac_word" >&5
2672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2673 if test "${ac_cv_prog_CC+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 if test -n "$CC"; then
2677 ac_cv_prog_CC="$CC" # Let the user override the test.
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686 ac_cv_prog_CC="${ac_tool_prefix}cc"
2687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 if test -n "$CC"; then
2697 echo "$as_me:$LINENO: result: $CC" >&5
2698 echo "${ECHO_T}$CC" >&6
2700 echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6
2705 if test -z "$ac_cv_prog_CC"; then
2707 # Extract the first word of "cc", so it can be a program name with args.
2708 set dummy cc; ac_word=$2
2709 echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2711 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 if test -n "$ac_ct_CC"; then
2715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2724 ac_cv_prog_ac_ct_CC="cc"
2725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2734 if test -n "$ac_ct_CC"; then
2735 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2736 echo "${ECHO_T}$ac_ct_CC" >&6
2738 echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2748 if test -z "$CC"; then
2749 # Extract the first word of "cc", so it can be a program name with args.
2750 set dummy cc; ac_word=$2
2751 echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2753 if test "${ac_cv_prog_CC+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 if test -n "$CC"; then
2757 ac_cv_prog_CC="$CC" # Let the user override the test.
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2768 ac_prog_rejected=yes
2772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 if test $ac_prog_rejected = yes; then
2779 # We found a bogon in the path, so make sure we never use it.
2780 set dummy $ac_cv_prog_CC
2782 if test $# != 0; then
2783 # We chose a different compiler from the bogus one.
2784 # However, it has the same basename, so the bogon will be chosen
2785 # first if we set CC to just the basename; use the full file name.
2787 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2793 if test -n "$CC"; then
2794 echo "$as_me:$LINENO: result: $CC" >&5
2795 echo "${ECHO_T}$CC" >&6
2797 echo "$as_me:$LINENO: result: no" >&5
2798 echo "${ECHO_T}no" >&6
2802 if test -z "$CC"; then
2803 if test -n "$ac_tool_prefix"; then
2806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2808 echo "$as_me:$LINENO: checking for $ac_word" >&5
2809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2810 if test "${ac_cv_prog_CC+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC="$CC" # Let the user override the test.
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 if test -n "$CC"; then
2834 echo "$as_me:$LINENO: result: $CC" >&5
2835 echo "${ECHO_T}$CC" >&6
2837 echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6
2841 test -n "$CC" && break
2844 if test -z "$CC"; then
2848 # Extract the first word of "$ac_prog", so it can be a program name with args.
2849 set dummy $ac_prog; ac_word=$2
2850 echo "$as_me:$LINENO: checking for $ac_word" >&5
2851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 if test -n "$ac_ct_CC"; then
2856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865 ac_cv_prog_ac_ct_CC="$ac_prog"
2866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2875 if test -n "$ac_ct_CC"; then
2876 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2877 echo "${ECHO_T}$ac_ct_CC" >&6
2879 echo "$as_me:$LINENO: result: no" >&5
2880 echo "${ECHO_T}no" >&6
2883 test -n "$ac_ct_CC" && break
2892 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2893 See \`config.log' for more details." >&5
2894 echo "$as_me: error: no acceptable C compiler found in \$PATH
2895 See \`config.log' for more details." >&2;}
2896 { (exit 1); exit 1; }; }
2898 # Provide some information about the compiler.
2899 echo "$as_me:$LINENO:" \
2900 "checking for C compiler version" >&5
2901 ac_compiler=`set X $ac_compile; echo $2`
2902 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2903 (eval $ac_compiler --version </dev/null >&5) 2>&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }
2907 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2908 (eval $ac_compiler -v </dev/null >&5) 2>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2913 (eval $ac_compiler -V </dev/null >&5) 2>&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }
2918 cat >conftest.$ac_ext <<_ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2933 ac_clean_files_save=$ac_clean_files
2934 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2935 # Try to create an executable without -o first, disregard a.out.
2936 # It will help us diagnose broken compilers, and finding out an intuition
2938 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2939 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2940 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2941 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2942 (eval $ac_link_default) 2>&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; then
2946 # Find the output, starting from the most likely. This scheme is
2947 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2950 # Be careful to initialize this variable, since it used to be cached.
2951 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2953 # b.out is created by i960 compilers.
2954 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2956 test -f "$ac_file" || continue
2958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2961 # This is the source file.
2964 # We found the default executable, but exeext='' is most
2968 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2969 # FIXME: I believe we export ac_cv_exeext for Libtool,
2970 # but it would be cool to find out if it's true. Does anybody
2971 # maintain Libtool? --akim.
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2982 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2983 See \`config.log' for more details." >&5
2984 echo "$as_me: error: C compiler cannot create executables
2985 See \`config.log' for more details." >&2;}
2986 { (exit 77); exit 77; }; }
2989 ac_exeext=$ac_cv_exeext
2990 echo "$as_me:$LINENO: result: $ac_file" >&5
2991 echo "${ECHO_T}$ac_file" >&6
2993 # Check the compiler produces executables we can run. If not, either
2994 # the compiler is broken, or we cross compile.
2995 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2996 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2997 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2998 # If not cross compiling, check that we can run a simple program.
2999 if test "$cross_compiling" != yes; then
3000 if { ac_try='./$ac_file'
3001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }; }; then
3008 if test "$cross_compiling" = maybe; then
3011 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3012 If you meant to cross compile, use \`--host'.
3013 See \`config.log' for more details." >&5
3014 echo "$as_me: error: cannot run C compiled programs.
3015 If you meant to cross compile, use \`--host'.
3016 See \`config.log' for more details." >&2;}
3017 { (exit 1); exit 1; }; }
3021 echo "$as_me:$LINENO: result: yes" >&5
3022 echo "${ECHO_T}yes" >&6
3024 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3025 ac_clean_files=$ac_clean_files_save
3026 # Check the compiler produces executables we can run. If not, either
3027 # the compiler is broken, or we cross compile.
3028 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3029 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3030 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3031 echo "${ECHO_T}$cross_compiling" >&6
3033 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3034 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3036 (eval $ac_link) 2>&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; then
3040 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3041 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3042 # work properly (i.e., refer to `conftest.exe'), while it won't with
3044 for ac_file in conftest.exe conftest conftest.*; do
3045 test -f "$ac_file" || continue
3047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3048 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3055 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3056 See \`config.log' for more details." >&5
3057 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3058 See \`config.log' for more details." >&2;}
3059 { (exit 1); exit 1; }; }
3062 rm -f conftest$ac_cv_exeext
3063 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3064 echo "${ECHO_T}$ac_cv_exeext" >&6
3066 rm -f conftest.$ac_ext
3067 EXEEXT=$ac_cv_exeext
3069 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3070 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3071 if test "${ac_cv_objext+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3074 cat >conftest.$ac_ext <<_ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3089 rm -f conftest.o conftest.obj
3090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091 (eval $ac_compile) 2>&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; then
3095 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3098 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3106 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3107 See \`config.log' for more details." >&5
3108 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3109 See \`config.log' for more details." >&2;}
3110 { (exit 1); exit 1; }; }
3113 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3115 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3116 echo "${ECHO_T}$ac_cv_objext" >&6
3117 OBJEXT=$ac_cv_objext
3119 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3120 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3121 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 cat >conftest.$ac_ext <<_ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3142 rm -f conftest.$ac_objext
3143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3144 (eval $ac_compile) 2>conftest.er1
3146 grep -v '^ *+' conftest.er1 >conftest.err
3148 cat conftest.err >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } &&
3151 { ac_try='test -z "$ac_c_werror_flag"
3152 || test ! -s conftest.err'
3153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; } &&
3158 { ac_try='test -s conftest.$ac_objext'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3172 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3175 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3176 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3177 GCC=`test $ac_compiler_gnu = yes && echo yes`
3178 ac_test_CFLAGS=${CFLAGS+set}
3179 ac_save_CFLAGS=$CFLAGS
3181 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3182 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3183 if test "${ac_cv_prog_cc_g+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 cat >conftest.$ac_ext <<_ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3201 rm -f conftest.$ac_objext
3202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3203 (eval $ac_compile) 2>conftest.er1
3205 grep -v '^ *+' conftest.er1 >conftest.err
3207 cat conftest.err >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } &&
3210 { ac_try='test -z "$ac_c_werror_flag"
3211 || test ! -s conftest.err'
3212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; } &&
3217 { ac_try='test -s conftest.$ac_objext'
3218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; }; then
3225 echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3232 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3233 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3234 if test "$ac_test_CFLAGS" = set; then
3235 CFLAGS=$ac_save_CFLAGS
3236 elif test $ac_cv_prog_cc_g = yes; then
3237 if test "$GCC" = yes; then
3243 if test "$GCC" = yes; then
3249 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3250 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3251 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 ac_cv_prog_cc_stdc=no
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3264 #include <sys/types.h>
3265 #include <sys/stat.h>
3266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3267 struct buf { int x; };
3268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269 static char *e (p, i)
3275 static char *f (char * (*g) (char **, int), char **p, ...)
3280 s = g (p, va_arg (v,int));
3285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3286 function prototypes and stuff, but not '\xHH' hex character constants.
3287 These don't provoke an error unfortunately, instead are silently treated
3288 as 'x'. The following induces an error, until -std1 is added to get
3289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3290 array size at least. It's necessary to write '\x00'==0 to get something
3291 that's true only with -std1. */
3292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3294 int test (int i, double x);
3295 struct s1 {int (*f) (int a);};
3296 struct s2 {int (*f) (double a);};
3297 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3308 # Don't try gcc -ansi; that turns off useful extensions and
3309 # breaks some systems' header files.
3310 # AIX -qlanglvl=ansi
3311 # Ultrix and OSF/1 -std1
3312 # HP-UX 10.20 and later -Ae
3313 # HP-UX older versions -Aa -D_HPUX_SOURCE
3314 # SVR4 -Xc -D__EXTENSIONS__
3315 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3317 CC="$ac_save_CC $ac_arg"
3318 rm -f conftest.$ac_objext
3319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3320 (eval $ac_compile) 2>conftest.er1
3322 grep -v '^ *+' conftest.er1 >conftest.err
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } &&
3327 { ac_try='test -z "$ac_c_werror_flag"
3328 || test ! -s conftest.err'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; } &&
3334 { ac_try='test -s conftest.$ac_objext'
3335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; }; then
3340 ac_cv_prog_cc_stdc=$ac_arg
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3347 rm -f conftest.err conftest.$ac_objext
3349 rm -f conftest.$ac_ext conftest.$ac_objext
3354 case "x$ac_cv_prog_cc_stdc" in
3356 echo "$as_me:$LINENO: result: none needed" >&5
3357 echo "${ECHO_T}none needed" >&6 ;;
3359 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3360 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3361 CC="$CC $ac_cv_prog_cc_stdc" ;;
3364 # Some people use a C++ compiler to compile C. Since we use `exit',
3365 # in C++ we need to declare it. In case someone uses the same compiler
3366 # for both compiling C and C++ we need to have the C++ compiler decide
3367 # the declaration of exit, since it's the most demanding environment.
3368 cat >conftest.$ac_ext <<_ACEOF
3373 rm -f conftest.$ac_objext
3374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375 (eval $ac_compile) 2>conftest.er1
3377 grep -v '^ *+' conftest.er1 >conftest.err
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } &&
3382 { ac_try='test -z "$ac_c_werror_flag"
3383 || test ! -s conftest.err'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; } &&
3389 { ac_try='test -s conftest.$ac_objext'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
3395 for ac_declaration in \
3397 'extern "C" void std::exit (int) throw (); using std::exit;' \
3398 'extern "C" void std::exit (int); using std::exit;' \
3399 'extern "C" void exit (int) throw ();' \
3400 'extern "C" void exit (int);' \
3403 cat >conftest.$ac_ext <<_ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3419 rm -f conftest.$ac_objext
3420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3421 (eval $ac_compile) 2>conftest.er1
3423 grep -v '^ *+' conftest.er1 >conftest.err
3425 cat conftest.err >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } &&
3428 { ac_try='test -z "$ac_c_werror_flag"
3429 || test ! -s conftest.err'
3430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }; } &&
3435 { ac_try='test -s conftest.$ac_objext'
3436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; }; then
3443 echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3449 cat >conftest.$ac_ext <<_ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3464 rm -f conftest.$ac_objext
3465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466 (eval $ac_compile) 2>conftest.er1
3468 grep -v '^ *+' conftest.er1 >conftest.err
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } &&
3473 { ac_try='test -z "$ac_c_werror_flag"
3474 || test ! -s conftest.err'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; } &&
3480 { ac_try='test -s conftest.$ac_objext'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3495 if test -n "$ac_declaration"; then
3496 echo '#ifdef __cplusplus' >>confdefs.h
3497 echo $ac_declaration >>confdefs.h
3498 echo '#endif' >>confdefs.h
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3508 ac_cpp='$CPP $CPPFLAGS'
3509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3512 DEPDIR="${am__leading_dot}deps"
3514 ac_config_commands="$ac_config_commands depfiles"
3517 am_make=${MAKE-make}
3518 cat > confinc << 'END'
3523 # If we don't find an include directive, just comment out the code.
3524 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3525 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3529 # First try GNU make style include.
3530 echo "include confinc" > confmf
3531 # We grep out `Entering directory' and `Leaving directory'
3532 # messages which can occur if `w' ends up in MAKEFLAGS.
3533 # In particular we don't look at `^make:' because GNU make might
3534 # be invoked under some other name (usually "gmake"), in which
3535 # case it prints its new name instead of `make'.
3536 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3541 # Now try BSD make style include.
3542 if test "$am__include" = "#"; then
3543 echo '.include "confinc"' > confmf
3544 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3545 am__include=.include
3552 echo "$as_me:$LINENO: result: $_am_result" >&5
3553 echo "${ECHO_T}$_am_result" >&6
3554 rm -f confinc confmf
3556 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3557 if test "${enable_dependency_tracking+set}" = set; then
3558 enableval="$enable_dependency_tracking"
3561 if test "x$enable_dependency_tracking" != xno; then
3562 am_depcomp="$ac_aux_dir/depcomp"
3567 if test "x$enable_dependency_tracking" != xno; then
3578 depcc="$CC" am_compiler_list=
3580 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3581 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3582 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3586 # We make a subdir and do the tests there. Otherwise we can end up
3587 # making bogus files that we don't know about and never remove. For
3588 # instance it was reported that on HP-UX the gcc test will end up
3589 # making a dummy file named `D' -- because `-MD' means `put the output
3592 # Copy depcomp to subdir because otherwise we won't find it if we're
3593 # using a relative directory.
3594 cp "$am_depcomp" conftest.dir
3596 # We will build objects and dependencies in a subdirectory because
3597 # it helps to detect inapplicable dependency modes. For instance
3598 # both Tru64's cc and ICC support -MD to output dependencies as a
3599 # side effect of compilation, but ICC will put the dependencies in
3600 # the current directory while Tru64 will put them in the object
3604 am_cv_CC_dependencies_compiler_type=none
3605 if test "$am_compiler_list" = ""; then
3606 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3608 for depmode in $am_compiler_list; do
3609 # Setup a source with many dependencies, because some compilers
3610 # like to wrap large dependency lists on column 80 (with \), and
3611 # we should not choose a depcomp mode which is confused by this.
3613 # We need to recreate these files for each test, as the compiler may
3614 # overwrite some of them when testing with obscure command lines.
3615 # This happens at least with the AIX C compiler.
3617 for i in 1 2 3 4 5 6; do
3618 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3619 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3620 # Solaris 8's {/usr,}/bin/sh.
3621 touch sub/conftst$i.h
3623 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3627 # after this tag, mechanisms are not by side-effect, so they'll
3628 # only be used when explicitly requested
3629 if test "x$enable_dependency_tracking" = xyes; then
3637 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3638 # mode. It turns out that the SunPro C++ compiler does not properly
3639 # handle `-M -o', and we need to detect this.
3640 if depmode=$depmode \
3641 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3642 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3643 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3644 >/dev/null 2>conftest.err &&
3645 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3646 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3647 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3648 # icc doesn't choke on unknown options, it will just issue warnings
3649 # or remarks (even with -Werror). So we grep stderr for any message
3650 # that says an option was ignored or not supported.
3651 # When given -MP, icc 7.0 and 7.1 complain thusly:
3652 # icc: Command line warning: ignoring option '-M'; no argument required
3653 # The diagnosis changed in icc 8.0:
3654 # icc: Command line remark: option '-MP' not supported
3655 if (grep 'ignoring option' conftest.err ||
3656 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3657 am_cv_CC_dependencies_compiler_type=$depmode
3666 am_cv_CC_dependencies_compiler_type=none
3670 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3671 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3672 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3677 test "x$enable_dependency_tracking" != xno \
3678 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3680 am__fastdepCC_FALSE='#'
3682 am__fastdepCC_TRUE='#'
3683 am__fastdepCC_FALSE=
3687 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3688 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3689 if test "${lt_cv_path_SED+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 # Loop through the user's path and test for sed and gsed.
3693 # Then use that list of sed's as ones to test for truncation.
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 test -z "$as_dir" && as_dir=.
3699 for lt_ac_prog in sed gsed; do
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3702 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3709 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3710 # along with /bin/sed that truncates output.
3711 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3712 test ! -f $lt_ac_sed && break
3713 cat /dev/null > conftest.in
3715 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3716 # Check for GNU sed and select it if it is found.
3717 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3718 lt_cv_path_SED=$lt_ac_sed
3722 cat conftest.in conftest.in >conftest.tmp
3723 mv conftest.tmp conftest.in
3724 cp conftest.in conftest.nl
3726 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3727 cmp -s conftest.out conftest.nl || break
3728 # 10000 chars as input seems more than enough
3729 test $lt_ac_count -gt 10 && break
3730 lt_ac_count=`expr $lt_ac_count + 1`
3731 if test $lt_ac_count -gt $lt_ac_max; then
3732 lt_ac_max=$lt_ac_count
3733 lt_cv_path_SED=$lt_ac_sed
3741 echo "$as_me:$LINENO: result: $SED" >&5
3742 echo "${ECHO_T}$SED" >&6
3744 echo "$as_me:$LINENO: checking for egrep" >&5
3745 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3746 if test "${ac_cv_prog_egrep+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3750 then ac_cv_prog_egrep='grep -E'
3751 else ac_cv_prog_egrep='egrep'
3754 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3755 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3756 EGREP=$ac_cv_prog_egrep
3760 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3761 if test "${with_gnu_ld+set}" = set; then
3762 withval="$with_gnu_ld"
3763 test "$withval" = no || with_gnu_ld=yes
3768 if test "$GCC" = yes; then
3769 # Check if gcc -print-prog-name=ld gives a path.
3770 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3771 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3774 # gcc leaves a trailing carriage return which upsets mingw
3775 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3777 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3780 # Accept absolute paths.
3782 re_direlt='/[^/][^/]*/\.\./'
3783 # Canonicalize the pathname of ld
3784 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3785 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3786 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3788 test -z "$LD" && LD="$ac_prog"
3791 # If it fails, then pretend we aren't using GCC.
3795 # If it is relative, then search for the first ld in PATH.
3799 elif test "$with_gnu_ld" = yes; then
3800 echo "$as_me:$LINENO: checking for GNU ld" >&5
3801 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3803 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3804 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3806 if test "${lt_cv_path_LD+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 if test -z "$LD"; then
3810 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3811 for ac_dir in $PATH; do
3813 test -z "$ac_dir" && ac_dir=.
3814 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3815 lt_cv_path_LD="$ac_dir/$ac_prog"
3816 # Check to see if the program is GNU ld. I'd rather use --version,
3817 # but apparently some GNU ld's only accept -v.
3818 # Break only if it was the GNU/non-GNU ld that we prefer.
3819 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3820 *GNU* | *'with BFD'*)
3821 test "$with_gnu_ld" != no && break
3824 test "$with_gnu_ld" != yes && break
3831 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3836 if test -n "$LD"; then
3837 echo "$as_me:$LINENO: result: $LD" >&5
3838 echo "${ECHO_T}$LD" >&6
3840 echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3843 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3844 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3845 { (exit 1); exit 1; }; }
3846 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3847 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3848 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3852 case `$LD -v 2>&1 </dev/null` in
3853 *GNU* | *'with BFD'*)
3854 lt_cv_prog_gnu_ld=yes
3857 lt_cv_prog_gnu_ld=no
3861 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3862 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3863 with_gnu_ld=$lt_cv_prog_gnu_ld
3867 SAVE_LIBTOOL="$LIBTOOL"
3872 # Check whether --enable-shared or --disable-shared was given.
3873 if test "${enable_shared+set}" = set; then
3874 enableval="$enable_shared"
3875 p=${PACKAGE-default}
3877 yes) enable_shared=yes ;;
3878 no) enable_shared=no ;;
3881 # Look at the argument we got. We use all the common list separators.
3882 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3883 for pkg in $enableval; do
3885 if test "X$pkg" = "X$p"; then
3896 # Check whether --enable-static or --disable-static was given.
3897 if test "${enable_static+set}" = set; then
3898 enableval="$enable_static"
3899 p=${PACKAGE-default}
3901 yes) enable_static=yes ;;
3902 no) enable_static=no ;;
3905 # Look at the argument we got. We use all the common list separators.
3906 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3907 for pkg in $enableval; do
3909 if test "X$pkg" = "X$p"; then
3920 # Check whether --enable-fast-install or --disable-fast-install was given.
3921 if test "${enable_fast_install+set}" = set; then
3922 enableval="$enable_fast_install"
3923 p=${PACKAGE-default}
3925 yes) enable_fast_install=yes ;;
3926 no) enable_fast_install=no ;;
3928 enable_fast_install=no
3929 # Look at the argument we got. We use all the common list separators.
3930 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3931 for pkg in $enableval; do
3933 if test "X$pkg" = "X$p"; then
3934 enable_fast_install=yes
3941 enable_fast_install=yes
3944 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3945 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3946 if test "${lt_cv_ld_reload_flag+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 lt_cv_ld_reload_flag='-r'
3951 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3952 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3953 reload_flag=$lt_cv_ld_reload_flag
3954 case $reload_flag in
3956 *) reload_flag=" $reload_flag" ;;
3958 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3960 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3961 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3962 if test "${lt_cv_path_NM+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 if test -n "$NM"; then
3966 # Let the user override the test.
3969 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3970 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3972 test -z "$ac_dir" && ac_dir=.
3973 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3974 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3975 # Check to see if the nm accepts a BSD-compat flag.
3976 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3977 # nm: unknown option "B" ignored
3978 # Tru64's nm complains that /dev/null is an invalid object file
3979 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3980 */dev/null* | *'Invalid file or object type'*)
3981 lt_cv_path_NM="$tmp_nm -B"
3985 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3987 lt_cv_path_NM="$tmp_nm -p"
3991 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3992 continue # so that we can try to find one that supports BSD flags
3999 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4002 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4003 echo "${ECHO_T}$lt_cv_path_NM" >&6
4006 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4007 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4009 if test "$LN_S" = "ln -s"; then
4010 echo "$as_me:$LINENO: result: yes" >&5
4011 echo "${ECHO_T}yes" >&6
4013 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4014 echo "${ECHO_T}no, using $LN_S" >&6
4017 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4018 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4019 if test "${lt_cv_deplibs_check_method+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 lt_cv_file_magic_cmd='$MAGIC_CMD'
4023 lt_cv_file_magic_test_file=
4024 lt_cv_deplibs_check_method='unknown'
4025 # Need to set the preceding variable on all platforms that support
4026 # interlibrary dependencies.
4027 # 'none' -- dependencies not supported.
4028 # `unknown' -- same as none, but documents that we really don't know.
4029 # 'pass_all' -- all dependencies passed with no checks.
4030 # 'test_compile' -- check by making test program.
4031 # 'file_magic [[regex]]' -- check by looking for files in library path
4032 # which responds to the $file_magic_cmd with a given extended regex.
4033 # If you have `file' or equivalent on your system and you're not sure
4034 # whether `pass_all' will *always* work, you probably want this one.
4038 lt_cv_deplibs_check_method=pass_all
4042 lt_cv_deplibs_check_method=pass_all
4046 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4047 lt_cv_file_magic_cmd='/usr/bin/file -L'
4048 lt_cv_file_magic_test_file=/shlib/libc.so
4052 # func_win32_libid is a shell function defined in ltmain.sh
4053 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4054 lt_cv_file_magic_cmd='func_win32_libid'
4058 # Base MSYS/MinGW do not provide the 'file' command needed by
4059 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4060 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4061 lt_cv_file_magic_cmd='$OBJDUMP -f'
4064 darwin* | rhapsody*)
4065 lt_cv_deplibs_check_method=pass_all
4068 freebsd* | kfreebsd*-gnu)
4069 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4072 # Not sure whether the presence of OpenBSD here was a mistake.
4073 # Let's accept both of them until this is cleared up.
4074 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4075 lt_cv_file_magic_cmd=/usr/bin/file
4076 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4080 lt_cv_deplibs_check_method=pass_all
4085 lt_cv_deplibs_check_method=pass_all
4088 hpux10.20* | hpux11*)
4089 lt_cv_file_magic_cmd=/usr/bin/file
4092 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4093 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4096 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]'
4097 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4100 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4101 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4106 irix5* | irix6* | nonstopux*)
4108 *-32|*"-32 ") libmagic=32-bit;;
4109 *-n32|*"-n32 ") libmagic=N32;;
4110 *-64|*"-64 ") libmagic=64-bit;;
4111 *) libmagic=never-match;;
4113 lt_cv_deplibs_check_method=pass_all
4116 # This must be Linux ELF.
4119 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
4120 lt_cv_deplibs_check_method=pass_all ;;
4122 # glibc up to 2.1.1 does not perform some relocations on ARM
4123 # this will be overridden with pass_all, but let us keep it just in case
4124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4126 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4127 lt_cv_deplibs_check_method=pass_all
4131 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4139 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4140 lt_cv_file_magic_cmd=/usr/bin/file
4141 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4145 lt_cv_deplibs_check_method=unknown
4149 lt_cv_file_magic_cmd=/usr/bin/file
4150 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4151 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4152 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4154 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4158 osf3* | osf4* | osf5*)
4159 lt_cv_deplibs_check_method=pass_all
4163 lt_cv_deplibs_check_method=pass_all
4167 lt_cv_deplibs_check_method=pass_all
4170 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4171 case $host_vendor in
4173 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]'
4174 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4177 lt_cv_deplibs_check_method=pass_all
4180 lt_cv_file_magic_cmd='/bin/file'
4181 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4184 lt_cv_file_magic_cmd='/bin/file'
4185 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4186 lt_cv_file_magic_test_file=/lib/libc.so
4189 lt_cv_deplibs_check_method=pass_all
4194 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4195 lt_cv_deplibs_check_method=pass_all
4200 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4201 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4202 file_magic_cmd=$lt_cv_file_magic_cmd
4203 deplibs_check_method=$lt_cv_deplibs_check_method
4204 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4209 # If no C compiler was specified, use CC.
4212 # Allow CC to be a program name with arguments.
4216 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4217 if test "${enable_libtool_lock+set}" = set; then
4218 enableval="$enable_libtool_lock"
4221 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4223 # Some flags need to be propagated to the compiler or linker for good
4227 # Find out which ABI we are using.
4228 echo 'int i;' > conftest.$ac_ext
4229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4230 (eval $ac_compile) 2>&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; then
4234 case `/usr/bin/file conftest.$ac_objext` in
4246 # Find out which ABI we are using.
4247 echo '#line 4247 "configure"' > conftest.$ac_ext
4248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4249 (eval $ac_compile) 2>&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; then
4253 if test "$lt_cv_prog_gnu_ld" = yes; then
4254 case `/usr/bin/file conftest.$ac_objext` in
4256 LD="${LD-ld} -melf32bsmip"
4259 LD="${LD-ld} -melf32bmipn32"
4262 LD="${LD-ld} -melf64bmip"
4266 case `/usr/bin/file conftest.$ac_objext` in
4282 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4283 # Find out which ABI we are using.
4284 echo 'int i;' > conftest.$ac_ext
4285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4286 (eval $ac_compile) 2>&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; then
4290 case "`/usr/bin/file conftest.o`" in
4294 LD="${LD-ld} -m elf_i386"
4296 ppc64-*linux*|powerpc64-*linux*)
4297 LD="${LD-ld} -m elf32ppclinux"
4300 LD="${LD-ld} -m elf_s390"
4303 LD="${LD-ld} -m elf32_sparc"
4310 LD="${LD-ld} -m elf_x86_64"
4312 ppc*-*linux*|powerpc*-*linux*)
4313 LD="${LD-ld} -m elf64ppc"
4316 LD="${LD-ld} -m elf64_s390"
4319 LD="${LD-ld} -m elf64_sparc"
4329 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4330 SAVE_CFLAGS="$CFLAGS"
4331 CFLAGS="$CFLAGS -belf"
4332 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4333 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4334 if test "${lt_cv_cc_needs_belf+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343 cat >conftest.$ac_ext <<_ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4358 rm -f conftest.$ac_objext conftest$ac_exeext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4360 (eval $ac_link) 2>conftest.er1
4362 grep -v '^ *+' conftest.er1 >conftest.err
4364 cat conftest.err >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } &&
4367 { ac_try='test -z "$ac_c_werror_flag"
4368 || test ! -s conftest.err'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; } &&
4374 { ac_try='test -s conftest$ac_exeext'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; }; then
4380 lt_cv_cc_needs_belf=yes
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4385 lt_cv_cc_needs_belf=no
4387 rm -f conftest.err conftest.$ac_objext \
4388 conftest$ac_exeext conftest.$ac_ext
4390 ac_cpp='$CPP $CPPFLAGS'
4391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4397 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4398 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4399 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4400 CFLAGS="$SAVE_CFLAGS"
4406 need_locks="$enable_libtool_lock"
4410 ac_cpp='$CPP $CPPFLAGS'
4411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4415 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4416 # On Suns, sometimes $CPP names a directory.
4417 if test -n "$CPP" && test -d "$CPP"; then
4420 if test -z "$CPP"; then
4421 if test "${ac_cv_prog_CPP+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 # Double quotes because CPP needs to be expanded
4425 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4428 for ac_c_preproc_warn_flag in '' yes
4430 # Use a header file that comes with gcc, so configuring glibc
4431 # with a fresh cross-compiler works.
4432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4433 # <limits.h> exists even on freestanding compilers.
4434 # On the NeXT, cc -E runs the code through the compiler's parser,
4435 # not just through cpp. "Syntax error" is here to catch this case.
4436 cat >conftest.$ac_ext <<_ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4443 # include <limits.h>
4445 # include <assert.h>
4449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4452 grep -v '^ *+' conftest.er1 >conftest.err
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } >/dev/null; then
4457 if test -s conftest.err; then
4458 ac_cpp_err=$ac_c_preproc_warn_flag
4459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4466 if test -z "$ac_cpp_err"; then
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4472 # Broken: fails on valid input.
4475 rm -f conftest.err conftest.$ac_ext
4477 # OK, works on sane cases. Now check whether non-existent headers
4478 # can be detected and how.
4479 cat >conftest.$ac_ext <<_ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 #include <ac_nonexistent.h>
4487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4490 grep -v '^ *+' conftest.er1 >conftest.err
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } >/dev/null; then
4495 if test -s conftest.err; then
4496 ac_cpp_err=$ac_c_preproc_warn_flag
4497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4504 if test -z "$ac_cpp_err"; then
4505 # Broken: success on invalid input.
4508 echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4511 # Passes both tests.
4515 rm -f conftest.err conftest.$ac_ext
4518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4519 rm -f conftest.err conftest.$ac_ext
4520 if $ac_preproc_ok; then
4532 echo "$as_me:$LINENO: result: $CPP" >&5
4533 echo "${ECHO_T}$CPP" >&6
4535 for ac_c_preproc_warn_flag in '' yes
4537 # Use a header file that comes with gcc, so configuring glibc
4538 # with a fresh cross-compiler works.
4539 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4540 # <limits.h> exists even on freestanding compilers.
4541 # On the NeXT, cc -E runs the code through the compiler's parser,
4542 # not just through cpp. "Syntax error" is here to catch this case.
4543 cat >conftest.$ac_ext <<_ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4550 # include <limits.h>
4552 # include <assert.h>
4556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4559 grep -v '^ *+' conftest.er1 >conftest.err
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } >/dev/null; then
4564 if test -s conftest.err; then
4565 ac_cpp_err=$ac_c_preproc_warn_flag
4566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4573 if test -z "$ac_cpp_err"; then
4576 echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4579 # Broken: fails on valid input.
4582 rm -f conftest.err conftest.$ac_ext
4584 # OK, works on sane cases. Now check whether non-existent headers
4585 # can be detected and how.
4586 cat >conftest.$ac_ext <<_ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4592 #include <ac_nonexistent.h>
4594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4597 grep -v '^ *+' conftest.er1 >conftest.err
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } >/dev/null; then
4602 if test -s conftest.err; then
4603 ac_cpp_err=$ac_c_preproc_warn_flag
4604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4611 if test -z "$ac_cpp_err"; then
4612 # Broken: success on invalid input.
4615 echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4618 # Passes both tests.
4622 rm -f conftest.err conftest.$ac_ext
4625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4626 rm -f conftest.err conftest.$ac_ext
4627 if $ac_preproc_ok; then
4630 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4631 See \`config.log' for more details." >&5
4632 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4633 See \`config.log' for more details." >&2;}
4634 { (exit 1); exit 1; }; }
4638 ac_cpp='$CPP $CPPFLAGS'
4639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4644 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4645 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4646 if test "${ac_cv_header_stdc+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 cat >conftest.$ac_ext <<_ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h. */
4668 rm -f conftest.$ac_objext
4669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4670 (eval $ac_compile) 2>conftest.er1
4672 grep -v '^ *+' conftest.er1 >conftest.err
4674 cat conftest.err >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } &&
4677 { ac_try='test -z "$ac_c_werror_flag"
4678 || test ! -s conftest.err'
4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; } &&
4684 { ac_try='test -s conftest.$ac_objext'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4690 ac_cv_header_stdc=yes
4692 echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4695 ac_cv_header_stdc=no
4697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4699 if test $ac_cv_header_stdc = yes; then
4700 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4701 cat >conftest.$ac_ext <<_ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4711 $EGREP "memchr" >/dev/null 2>&1; then
4714 ac_cv_header_stdc=no
4720 if test $ac_cv_header_stdc = yes; then
4721 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4722 cat >conftest.$ac_ext <<_ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4732 $EGREP "free" >/dev/null 2>&1; then
4735 ac_cv_header_stdc=no
4741 if test $ac_cv_header_stdc = yes; then
4742 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4743 if test "$cross_compiling" = yes; then
4746 cat >conftest.$ac_ext <<_ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h. */
4753 #if ((' ' & 0x0FF) == 0x020)
4754 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4755 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4757 # define ISLOWER(c) \
4758 (('a' <= (c) && (c) <= 'i') \
4759 || ('j' <= (c) && (c) <= 'r') \
4760 || ('s' <= (c) && (c) <= 'z'))
4761 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4764 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4769 for (i = 0; i < 256; i++)
4770 if (XOR (islower (i), ISLOWER (i))
4771 || toupper (i) != TOUPPER (i))
4776 rm -f conftest$ac_exeext
4777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4778 (eval $ac_link) 2>&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; }; then
4789 echo "$as_me: program exited with status $ac_status" >&5
4790 echo "$as_me: failed program was:" >&5
4791 sed 's/^/| /' conftest.$ac_ext >&5
4794 ac_cv_header_stdc=no
4796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4800 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4801 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4802 if test $ac_cv_header_stdc = yes; then
4804 cat >>confdefs.h <<\_ACEOF
4805 #define STDC_HEADERS 1
4810 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4820 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4821 inttypes.h stdint.h unistd.h
4823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4824 echo "$as_me:$LINENO: checking for $ac_header" >&5
4825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 cat >conftest.$ac_ext <<_ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h. */
4835 $ac_includes_default
4837 #include <$ac_header>
4839 rm -f conftest.$ac_objext
4840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4841 (eval $ac_compile) 2>conftest.er1
4843 grep -v '^ *+' conftest.er1 >conftest.err
4845 cat conftest.err >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } &&
4848 { ac_try='test -z "$ac_c_werror_flag"
4849 || test ! -s conftest.err'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; } &&
4855 { ac_try='test -s conftest.$ac_objext'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; }; then
4861 eval "$as_ac_Header=yes"
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4866 eval "$as_ac_Header=no"
4868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4873 cat >>confdefs.h <<_ACEOF
4874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4883 for ac_header in dlfcn.h
4885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4887 echo "$as_me:$LINENO: checking for $ac_header" >&5
4888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4895 # Is the header compilable?
4896 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4898 cat >conftest.$ac_ext <<_ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4904 $ac_includes_default
4905 #include <$ac_header>
4907 rm -f conftest.$ac_objext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909 (eval $ac_compile) 2>conftest.er1
4911 grep -v '^ *+' conftest.er1 >conftest.err
4913 cat conftest.err >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } &&
4916 { ac_try='test -z "$ac_c_werror_flag"
4917 || test ! -s conftest.err'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; } &&
4923 { ac_try='test -s conftest.$ac_objext'
4924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); }; }; then
4929 ac_header_compiler=yes
4931 echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4934 ac_header_compiler=no
4936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4938 echo "${ECHO_T}$ac_header_compiler" >&6
4940 # Is the header present?
4941 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4943 cat >conftest.$ac_ext <<_ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4949 #include <$ac_header>
4951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4954 grep -v '^ *+' conftest.er1 >conftest.err
4956 cat conftest.err >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } >/dev/null; then
4959 if test -s conftest.err; then
4960 ac_cpp_err=$ac_c_preproc_warn_flag
4961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4968 if test -z "$ac_cpp_err"; then
4969 ac_header_preproc=yes
4971 echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4974 ac_header_preproc=no
4976 rm -f conftest.err conftest.$ac_ext
4977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4978 echo "${ECHO_T}$ac_header_preproc" >&6
4980 # So? What about this header?
4981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4987 ac_header_preproc=yes
4990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5004 ## ------------------------------------------ ##
5005 ## Report this to the AC_PACKAGE_NAME lists. ##
5006 ## ------------------------------------------ ##
5009 sed "s/^/$as_me: WARNING: /" >&2
5012 echo "$as_me:$LINENO: checking for $ac_header" >&5
5013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 eval "$as_ac_Header=\$ac_header_preproc"
5019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5024 cat >>confdefs.h <<_ACEOF
5025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5033 ac_cpp='$CXXCPP $CPPFLAGS'
5034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5037 if test -n "$ac_tool_prefix"; then
5038 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5042 echo "$as_me:$LINENO: checking for $ac_word" >&5
5043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5044 if test "${ac_cv_prog_CXX+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 if test -n "$CXX"; then
5048 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5057 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 if test -n "$CXX"; then
5068 echo "$as_me:$LINENO: result: $CXX" >&5
5069 echo "${ECHO_T}$CXX" >&6
5071 echo "$as_me:$LINENO: result: no" >&5
5072 echo "${ECHO_T}no" >&6
5075 test -n "$CXX" && break
5078 if test -z "$CXX"; then
5080 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5082 # Extract the first word of "$ac_prog", so it can be a program name with args.
5083 set dummy $ac_prog; ac_word=$2
5084 echo "$as_me:$LINENO: checking for $ac_word" >&5
5085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5086 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 if test -n "$ac_ct_CXX"; then
5090 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099 ac_cv_prog_ac_ct_CXX="$ac_prog"
5100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5109 if test -n "$ac_ct_CXX"; then
5110 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5111 echo "${ECHO_T}$ac_ct_CXX" >&6
5113 echo "$as_me:$LINENO: result: no" >&5
5114 echo "${ECHO_T}no" >&6
5117 test -n "$ac_ct_CXX" && break
5119 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5125 # Provide some information about the compiler.
5126 echo "$as_me:$LINENO:" \
5127 "checking for C++ compiler version" >&5
5128 ac_compiler=`set X $ac_compile; echo $2`
5129 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5130 (eval $ac_compiler --version </dev/null >&5) 2>&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }
5134 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5135 (eval $ac_compiler -v </dev/null >&5) 2>&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }
5139 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5140 (eval $ac_compiler -V </dev/null >&5) 2>&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }
5145 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5146 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5147 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 cat >conftest.$ac_ext <<_ACEOF
5153 cat confdefs.h >>conftest.$ac_ext
5154 cat >>conftest.$ac_ext <<_ACEOF
5155 /* end confdefs.h. */
5168 rm -f conftest.$ac_objext
5169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5170 (eval $ac_compile) 2>conftest.er1
5172 grep -v '^ *+' conftest.er1 >conftest.err
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } &&
5177 { ac_try='test -z "$ac_cxx_werror_flag"
5178 || test ! -s conftest.err'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; } &&
5184 { ac_try='test -s conftest.$ac_objext'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; }; then
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5198 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5201 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5202 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5203 GXX=`test $ac_compiler_gnu = yes && echo yes`
5204 ac_test_CXXFLAGS=${CXXFLAGS+set}
5205 ac_save_CXXFLAGS=$CXXFLAGS
5207 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5208 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5209 if test "${ac_cv_prog_cxx_g+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 cat >conftest.$ac_ext <<_ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5227 rm -f conftest.$ac_objext
5228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5229 (eval $ac_compile) 2>conftest.er1
5231 grep -v '^ *+' conftest.er1 >conftest.err
5233 cat conftest.err >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } &&
5236 { ac_try='test -z "$ac_cxx_werror_flag"
5237 || test ! -s conftest.err'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; } &&
5243 { ac_try='test -s conftest.$ac_objext'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; }; then
5249 ac_cv_prog_cxx_g=yes
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5258 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5259 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5260 if test "$ac_test_CXXFLAGS" = set; then
5261 CXXFLAGS=$ac_save_CXXFLAGS
5262 elif test $ac_cv_prog_cxx_g = yes; then
5263 if test "$GXX" = yes; then
5269 if test "$GXX" = yes; then
5275 for ac_declaration in \
5277 'extern "C" void std::exit (int) throw (); using std::exit;' \
5278 'extern "C" void std::exit (int); using std::exit;' \
5279 'extern "C" void exit (int) throw ();' \
5280 'extern "C" void exit (int);' \
5283 cat >conftest.$ac_ext <<_ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5299 rm -f conftest.$ac_objext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5301 (eval $ac_compile) 2>conftest.er1
5303 grep -v '^ *+' conftest.er1 >conftest.err
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } &&
5308 { ac_try='test -z "$ac_cxx_werror_flag"
5309 || test ! -s conftest.err'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; } &&
5315 { ac_try='test -s conftest.$ac_objext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5329 cat >conftest.$ac_ext <<_ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5344 rm -f conftest.$ac_objext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346 (eval $ac_compile) 2>conftest.er1
5348 grep -v '^ *+' conftest.er1 >conftest.err
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } &&
5353 { ac_try='test -z "$ac_cxx_werror_flag"
5354 || test ! -s conftest.err'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; } &&
5360 { ac_try='test -s conftest.$ac_objext'
5361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); }; }; then
5368 echo "$as_me: failed program was:" >&5
5369 sed 's/^/| /' conftest.$ac_ext >&5
5372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5375 if test -n "$ac_declaration"; then
5376 echo '#ifdef __cplusplus' >>confdefs.h
5377 echo $ac_declaration >>confdefs.h
5378 echo '#endif' >>confdefs.h
5382 ac_cpp='$CXXCPP $CPPFLAGS'
5383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5387 depcc="$CXX" am_compiler_list=
5389 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5390 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5391 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5395 # We make a subdir and do the tests there. Otherwise we can end up
5396 # making bogus files that we don't know about and never remove. For
5397 # instance it was reported that on HP-UX the gcc test will end up
5398 # making a dummy file named `D' -- because `-MD' means `put the output
5401 # Copy depcomp to subdir because otherwise we won't find it if we're
5402 # using a relative directory.
5403 cp "$am_depcomp" conftest.dir
5405 # We will build objects and dependencies in a subdirectory because
5406 # it helps to detect inapplicable dependency modes. For instance
5407 # both Tru64's cc and ICC support -MD to output dependencies as a
5408 # side effect of compilation, but ICC will put the dependencies in
5409 # the current directory while Tru64 will put them in the object
5413 am_cv_CXX_dependencies_compiler_type=none
5414 if test "$am_compiler_list" = ""; then
5415 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5417 for depmode in $am_compiler_list; do
5418 # Setup a source with many dependencies, because some compilers
5419 # like to wrap large dependency lists on column 80 (with \), and
5420 # we should not choose a depcomp mode which is confused by this.
5422 # We need to recreate these files for each test, as the compiler may
5423 # overwrite some of them when testing with obscure command lines.
5424 # This happens at least with the AIX C compiler.
5426 for i in 1 2 3 4 5 6; do
5427 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5428 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5429 # Solaris 8's {/usr,}/bin/sh.
5430 touch sub/conftst$i.h
5432 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5436 # after this tag, mechanisms are not by side-effect, so they'll
5437 # only be used when explicitly requested
5438 if test "x$enable_dependency_tracking" = xyes; then
5446 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5447 # mode. It turns out that the SunPro C++ compiler does not properly
5448 # handle `-M -o', and we need to detect this.
5449 if depmode=$depmode \
5450 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5451 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5452 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5453 >/dev/null 2>conftest.err &&
5454 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5455 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5456 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5457 # icc doesn't choke on unknown options, it will just issue warnings
5458 # or remarks (even with -Werror). So we grep stderr for any message
5459 # that says an option was ignored or not supported.
5460 # When given -MP, icc 7.0 and 7.1 complain thusly:
5461 # icc: Command line warning: ignoring option '-M'; no argument required
5462 # The diagnosis changed in icc 8.0:
5463 # icc: Command line remark: option '-MP' not supported
5464 if (grep 'ignoring option' conftest.err ||
5465 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5466 am_cv_CXX_dependencies_compiler_type=$depmode
5475 am_cv_CXX_dependencies_compiler_type=none
5479 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5480 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5481 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5486 test "x$enable_dependency_tracking" != xno \
5487 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5488 am__fastdepCXX_TRUE=
5489 am__fastdepCXX_FALSE='#'
5491 am__fastdepCXX_TRUE='#'
5492 am__fastdepCXX_FALSE=
5497 ac_cpp='$CXXCPP $CPPFLAGS'
5498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5501 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5502 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5503 if test -z "$CXXCPP"; then
5504 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5507 # Double quotes because CXXCPP needs to be expanded
5508 for CXXCPP in "$CXX -E" "/lib/cpp"
5511 for ac_cxx_preproc_warn_flag in '' yes
5513 # Use a header file that comes with gcc, so configuring glibc
5514 # with a fresh cross-compiler works.
5515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5516 # <limits.h> exists even on freestanding compilers.
5517 # On the NeXT, cc -E runs the code through the compiler's parser,
5518 # not just through cpp. "Syntax error" is here to catch this case.
5519 cat >conftest.$ac_ext <<_ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5526 # include <limits.h>
5528 # include <assert.h>
5532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5535 grep -v '^ *+' conftest.er1 >conftest.err
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } >/dev/null; then
5540 if test -s conftest.err; then
5541 ac_cpp_err=$ac_cxx_preproc_warn_flag
5542 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5549 if test -z "$ac_cpp_err"; then
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5555 # Broken: fails on valid input.
5558 rm -f conftest.err conftest.$ac_ext
5560 # OK, works on sane cases. Now check whether non-existent headers
5561 # can be detected and how.
5562 cat >conftest.$ac_ext <<_ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5568 #include <ac_nonexistent.h>
5570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5573 grep -v '^ *+' conftest.er1 >conftest.err
5575 cat conftest.err >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } >/dev/null; then
5578 if test -s conftest.err; then
5579 ac_cpp_err=$ac_cxx_preproc_warn_flag
5580 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5587 if test -z "$ac_cpp_err"; then
5588 # Broken: success on invalid input.
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5594 # Passes both tests.
5598 rm -f conftest.err conftest.$ac_ext
5601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5602 rm -f conftest.err conftest.$ac_ext
5603 if $ac_preproc_ok; then
5608 ac_cv_prog_CXXCPP=$CXXCPP
5611 CXXCPP=$ac_cv_prog_CXXCPP
5613 ac_cv_prog_CXXCPP=$CXXCPP
5615 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5616 echo "${ECHO_T}$CXXCPP" >&6
5618 for ac_cxx_preproc_warn_flag in '' yes
5620 # Use a header file that comes with gcc, so configuring glibc
5621 # with a fresh cross-compiler works.
5622 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5623 # <limits.h> exists even on freestanding compilers.
5624 # On the NeXT, cc -E runs the code through the compiler's parser,
5625 # not just through cpp. "Syntax error" is here to catch this case.
5626 cat >conftest.$ac_ext <<_ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5633 # include <limits.h>
5635 # include <assert.h>
5639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5642 grep -v '^ *+' conftest.er1 >conftest.err
5644 cat conftest.err >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } >/dev/null; then
5647 if test -s conftest.err; then
5648 ac_cpp_err=$ac_cxx_preproc_warn_flag
5649 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5656 if test -z "$ac_cpp_err"; then
5659 echo "$as_me: failed program was:" >&5
5660 sed 's/^/| /' conftest.$ac_ext >&5
5662 # Broken: fails on valid input.
5665 rm -f conftest.err conftest.$ac_ext
5667 # OK, works on sane cases. Now check whether non-existent headers
5668 # can be detected and how.
5669 cat >conftest.$ac_ext <<_ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h. */
5675 #include <ac_nonexistent.h>
5677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5680 grep -v '^ *+' conftest.er1 >conftest.err
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } >/dev/null; then
5685 if test -s conftest.err; then
5686 ac_cpp_err=$ac_cxx_preproc_warn_flag
5687 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5694 if test -z "$ac_cpp_err"; then
5695 # Broken: success on invalid input.
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5701 # Passes both tests.
5705 rm -f conftest.err conftest.$ac_ext
5708 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5709 rm -f conftest.err conftest.$ac_ext
5710 if $ac_preproc_ok; then
5713 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5714 See \`config.log' for more details." >&5
5715 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5716 See \`config.log' for more details." >&2;}
5717 { (exit 1); exit 1; }; }
5721 ac_cpp='$CXXCPP $CPPFLAGS'
5722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5728 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5729 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5731 if test -n "$ac_tool_prefix"; then
5732 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5734 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5736 echo "$as_me:$LINENO: checking for $ac_word" >&5
5737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5738 if test "${ac_cv_prog_F77+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 if test -n "$F77"; then
5742 ac_cv_prog_F77="$F77" # Let the user override the test.
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 test -z "$as_dir" && as_dir=.
5749 for ac_exec_ext in '' $ac_executable_extensions; do
5750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5751 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 if test -n "$F77"; then
5762 echo "$as_me:$LINENO: result: $F77" >&5
5763 echo "${ECHO_T}$F77" >&6
5765 echo "$as_me:$LINENO: result: no" >&5
5766 echo "${ECHO_T}no" >&6
5769 test -n "$F77" && break
5772 if test -z "$F77"; then
5774 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5776 # Extract the first word of "$ac_prog", so it can be a program name with args.
5777 set dummy $ac_prog; ac_word=$2
5778 echo "$as_me:$LINENO: checking for $ac_word" >&5
5779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5780 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 if test -n "$ac_ct_F77"; then
5784 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 test -z "$as_dir" && as_dir=.
5791 for ac_exec_ext in '' $ac_executable_extensions; do
5792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5793 ac_cv_prog_ac_ct_F77="$ac_prog"
5794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5802 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5803 if test -n "$ac_ct_F77"; then
5804 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5805 echo "${ECHO_T}$ac_ct_F77" >&6
5807 echo "$as_me:$LINENO: result: no" >&5
5808 echo "${ECHO_T}no" >&6
5811 test -n "$ac_ct_F77" && break
5818 # Provide some information about the compiler.
5819 echo "$as_me:5819:" \
5820 "checking for Fortran 77 compiler version" >&5
5821 ac_compiler=`set X $ac_compile; echo $2`
5822 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5823 (eval $ac_compiler --version </dev/null >&5) 2>&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }
5827 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5828 (eval $ac_compiler -v </dev/null >&5) 2>&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }
5832 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5833 (eval $ac_compiler -V </dev/null >&5) 2>&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }
5839 # If we don't use `.F' as extension, the preprocessor is not run on the
5840 # input file. (Note that this only needs to work for GNU compilers.)
5843 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5844 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5845 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 cat >conftest.$ac_ext <<_ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858 (eval $ac_compile) 2>conftest.er1
5860 grep -v '^ *+' conftest.er1 >conftest.err
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } &&
5865 { ac_try='test -z "$ac_f77_werror_flag"
5866 || test ! -s conftest.err'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; } &&
5872 { ac_try='test -s conftest.$ac_objext'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
5880 echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5886 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5889 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5890 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5892 ac_test_FFLAGS=${FFLAGS+set}
5893 ac_save_FFLAGS=$FFLAGS
5895 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5896 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5897 if test "${ac_cv_prog_f77_g+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 cat >conftest.$ac_ext <<_ACEOF
5906 rm -f conftest.$ac_objext
5907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5908 (eval $ac_compile) 2>conftest.er1
5910 grep -v '^ *+' conftest.er1 >conftest.err
5912 cat conftest.err >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } &&
5915 { ac_try='test -z "$ac_f77_werror_flag"
5916 || test ! -s conftest.err'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; } &&
5922 { ac_try='test -s conftest.$ac_objext'
5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; }; then
5928 ac_cv_prog_f77_g=yes
5930 echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5938 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5939 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5940 if test "$ac_test_FFLAGS" = set; then
5941 FFLAGS=$ac_save_FFLAGS
5942 elif test $ac_cv_prog_f77_g = yes; then
5943 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5949 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5956 G77=`test $ac_compiler_gnu = yes && echo yes`
5958 ac_cpp='$CPP $CPPFLAGS'
5959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5965 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5967 # find the maximum length of command line arguments
5968 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5969 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5970 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 # On DJGPP, this test can blow up pretty badly due to problems in libc
5979 # (any single argument exceeding 2000 bytes causes a buffer overrun
5980 # during glob expansion). Even if it were fixed, the result of this
5981 # check would be larger than it should be.
5982 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5986 # Under GNU Hurd, this test is not required because there is
5987 # no limit to the length of command line arguments.
5988 # Libtool will interpret -1 as no limit whatsoever
5989 lt_cv_sys_max_cmd_len=-1;
5993 # On Win9x/ME, this test blows up -- it succeeds, but takes
5994 # about 5 minutes as the teststring grows exponentially.
5995 # Worse, since 9x/ME are not pre-emptively multitasking,
5996 # you end up with a "frozen" computer, even though with patience
5997 # the test eventually succeeds (with a max line length of 256k).
5998 # Instead, let's just punt: use the minimum linelength reported by
5999 # all of the supported platforms: 8192 (on NT/2K/XP).
6000 lt_cv_sys_max_cmd_len=8192;
6004 # On AmigaOS with pdksh, this test takes hours, literally.
6005 # So we just punt and use a minimum line length of 8192.
6006 lt_cv_sys_max_cmd_len=8192;
6010 # If test is not a shell built-in, we'll probably end up computing a
6011 # maximum length that is only half of the actual maximum length, but
6013 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6014 = "XX$teststring") >/dev/null 2>&1 &&
6015 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6016 lt_cv_sys_max_cmd_len=$new_result &&
6017 test $i != 17 # 1/2 MB should be enough
6020 teststring=$teststring$teststring
6023 # Add a significant safety factor because C++ compilers can tack on massive
6024 # amounts of additional arguments before passing them to the linker.
6025 # It appears as though 1/2 is a usable value.
6026 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6032 if test -n $lt_cv_sys_max_cmd_len ; then
6033 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6034 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6036 echo "$as_me:$LINENO: result: none" >&5
6037 echo "${ECHO_T}none" >&6
6043 # Check for command to grab the raw symbol name followed by C symbol from nm.
6044 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6045 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6046 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 # These are sane defaults that work on at least a few old systems.
6051 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6053 # Character class describing NM global symbol codes.
6054 symcode='[BCDEGRST]'
6056 # Regexp to match symbols that can be accessed directly from C.
6057 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6059 # Transform the above into a raw symbol and a C symbol.
6060 symxfrm='\1 \2\3 \3'
6062 # Transform an extracted symbol line into a proper C declaration
6063 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6065 # Transform an extracted symbol line into symbol name and symbol address
6066 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'"
6068 # Define system-specific variables.
6073 cygwin* | mingw* | pw32*)
6074 symcode='[ABCDGISTW]'
6076 hpux*) # Its linker distinguishes data from code symbols
6077 if test "$host_cpu" = ia64; then
6078 symcode='[ABCDEGRST]'
6080 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6081 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'"
6084 symcode='[BCDEGRST]'
6087 symcode='[BCDEGQRST]'
6097 # Handle CRLF in mingw tool chain
6101 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6105 # If we're using GNU nm, then use its standard symbol codes.
6106 case `$NM -V 2>&1` in
6107 *GNU* | *'with BFD'*)
6108 symcode='[ABCDGIRSTW]' ;;
6111 # Try without a prefix undercore, then with it.
6112 for ac_symprfx in "" "_"; do
6114 # Write the raw and C identifiers.
6115 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6117 # Check to see that the pipe works correctly.
6121 cat > conftest.$ac_ext <<EOF
6126 void nm_test_func(){}
6130 int main(){nm_test_var='a';nm_test_func();return(0);}
6133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6134 (eval $ac_compile) 2>&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; then
6138 # Now try to grab the symbols.
6140 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6141 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } && test -s "$nlist"; then
6145 # Try sorting and uniquifying the output.
6146 if sort "$nlist" | uniq > "$nlist"T; then
6147 mv -f "$nlist"T "$nlist"
6152 # Make sure that we snagged all the symbols we need.
6153 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6154 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6155 cat <<EOF > conftest.$ac_ext
6161 # Now generate the symbol file.
6162 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6164 cat <<EOF >> conftest.$ac_ext
6165 #if defined (__STDC__) && __STDC__
6166 # define lt_ptr_t void *
6168 # define lt_ptr_t char *
6172 /* The mapping between symbol names and symbols. */
6177 lt_preloaded_symbols[] =
6180 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6181 cat <<\EOF >> conftest.$ac_ext
6189 # Now try linking the two files.
6190 mv conftest.$ac_objext conftstm.$ac_objext
6191 lt_save_LIBS="$LIBS"
6192 lt_save_CFLAGS="$CFLAGS"
6193 LIBS="conftstm.$ac_objext"
6194 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6196 (eval $ac_link) 2>&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6202 LIBS="$lt_save_LIBS"
6203 CFLAGS="$lt_save_CFLAGS"
6205 echo "cannot find nm_test_func in $nlist" >&5
6208 echo "cannot find nm_test_var in $nlist" >&5
6211 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6214 echo "$progname: failed program was:" >&5
6215 cat conftest.$ac_ext >&5
6217 rm -f conftest* conftst*
6219 # Do not use the global_symbol_pipe unless it works.
6220 if test "$pipe_works" = yes; then
6223 lt_cv_sys_global_symbol_pipe=
6229 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6230 lt_cv_sys_global_symbol_to_cdecl=
6232 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6233 echo "$as_me:$LINENO: result: failed" >&5
6234 echo "${ECHO_T}failed" >&6
6236 echo "$as_me:$LINENO: result: ok" >&5
6237 echo "${ECHO_T}ok" >&6
6240 echo "$as_me:$LINENO: checking for objdir" >&5
6241 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6242 if test "${lt_cv_objdir+set}" = set; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6245 rm -f .libs 2>/dev/null
6246 mkdir .libs 2>/dev/null
6247 if test -d .libs; then
6250 # MS-DOS does not allow filenames that begin with a dot.
6253 rmdir .libs 2>/dev/null
6255 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6256 echo "${ECHO_T}$lt_cv_objdir" >&6
6257 objdir=$lt_cv_objdir
6265 # AIX sometimes has problems with the GCC collect2 program. For some
6266 # reason, if we set the COLLECT_NAMES environment variable, the problems
6267 # vanish in a puff of smoke.
6268 if test "X${COLLECT_NAMES+set}" != Xset; then
6270 export COLLECT_NAMES
6275 # Sed substitution that helps us do robust quoting. It backslashifies
6276 # metacharacters that are still active within double-quoted strings.
6277 Xsed='sed -e s/^X//'
6278 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6280 # Same as above, but do not quote variable references.
6281 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6283 # Sed substitution to delay expansion of an escaped shell variable in a
6284 # double_quote_subst'ed string.
6285 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6287 # Sed substitution to avoid accidental globbing in evaled expressions
6288 no_glob_subst='s/\*/\\\*/g'
6294 default_ofile=libtool
6295 can_build_shared=yes
6297 # All known linkers require a `.a' archive for static linking (except M$VC,
6298 # which needs '.lib').
6300 ltmain="$ac_aux_dir/ltmain.sh"
6301 ofile="$default_ofile"
6302 with_gnu_ld="$lt_cv_prog_gnu_ld"
6304 if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6306 set dummy ${ac_tool_prefix}ar; ac_word=$2
6307 echo "$as_me:$LINENO: checking for $ac_word" >&5
6308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6309 if test "${ac_cv_prog_AR+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6312 if test -n "$AR"; then
6313 ac_cv_prog_AR="$AR" # Let the user override the test.
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322 ac_cv_prog_AR="${ac_tool_prefix}ar"
6323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 if test -n "$AR"; then
6333 echo "$as_me:$LINENO: result: $AR" >&5
6334 echo "${ECHO_T}$AR" >&6
6336 echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6
6341 if test -z "$ac_cv_prog_AR"; then
6343 # Extract the first word of "ar", so it can be a program name with args.
6344 set dummy ar; ac_word=$2
6345 echo "$as_me:$LINENO: checking for $ac_word" >&5
6346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6347 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 if test -n "$ac_ct_AR"; then
6351 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360 ac_cv_prog_ac_ct_AR="ar"
6361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6370 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6371 if test -n "$ac_ct_AR"; then
6372 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6373 echo "${ECHO_T}$ac_ct_AR" >&6
6375 echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6
6384 if test -n "$ac_tool_prefix"; then
6385 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6386 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6387 echo "$as_me:$LINENO: checking for $ac_word" >&5
6388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6389 if test "${ac_cv_prog_RANLIB+set}" = set; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 if test -n "$RANLIB"; then
6393 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 test -z "$as_dir" && as_dir=.
6400 for ac_exec_ext in '' $ac_executable_extensions; do
6401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6402 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 RANLIB=$ac_cv_prog_RANLIB
6412 if test -n "$RANLIB"; then
6413 echo "$as_me:$LINENO: result: $RANLIB" >&5
6414 echo "${ECHO_T}$RANLIB" >&6
6416 echo "$as_me:$LINENO: result: no" >&5
6417 echo "${ECHO_T}no" >&6
6421 if test -z "$ac_cv_prog_RANLIB"; then
6422 ac_ct_RANLIB=$RANLIB
6423 # Extract the first word of "ranlib", so it can be a program name with args.
6424 set dummy ranlib; ac_word=$2
6425 echo "$as_me:$LINENO: checking for $ac_word" >&5
6426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6427 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 if test -n "$ac_ct_RANLIB"; then
6431 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6440 ac_cv_prog_ac_ct_RANLIB="ranlib"
6441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6450 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6451 if test -n "$ac_ct_RANLIB"; then
6452 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6453 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6455 echo "$as_me:$LINENO: result: no" >&5
6456 echo "${ECHO_T}no" >&6
6459 RANLIB=$ac_ct_RANLIB
6461 RANLIB="$ac_cv_prog_RANLIB"
6464 if test -n "$ac_tool_prefix"; then
6465 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6466 set dummy ${ac_tool_prefix}strip; ac_word=$2
6467 echo "$as_me:$LINENO: checking for $ac_word" >&5
6468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6469 if test "${ac_cv_prog_STRIP+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 if test -n "$STRIP"; then
6473 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 test -z "$as_dir" && as_dir=.
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6482 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 STRIP=$ac_cv_prog_STRIP
6492 if test -n "$STRIP"; then
6493 echo "$as_me:$LINENO: result: $STRIP" >&5
6494 echo "${ECHO_T}$STRIP" >&6
6496 echo "$as_me:$LINENO: result: no" >&5
6497 echo "${ECHO_T}no" >&6
6501 if test -z "$ac_cv_prog_STRIP"; then
6503 # Extract the first word of "strip", so it can be a program name with args.
6504 set dummy strip; ac_word=$2
6505 echo "$as_me:$LINENO: checking for $ac_word" >&5
6506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 if test -n "$ac_ct_STRIP"; then
6511 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6520 ac_cv_prog_ac_ct_STRIP="strip"
6521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6531 if test -n "$ac_ct_STRIP"; then
6532 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6533 echo "${ECHO_T}$ac_ct_STRIP" >&6
6535 echo "$as_me:$LINENO: result: no" >&5
6536 echo "${ECHO_T}no" >&6
6541 STRIP="$ac_cv_prog_STRIP"
6546 old_CFLAGS="$CFLAGS"
6548 # Set sane defaults for various variables
6549 test -z "$AR" && AR=ar
6550 test -z "$AR_FLAGS" && AR_FLAGS=cru
6551 test -z "$AS" && AS=as
6552 test -z "$CC" && CC=cc
6553 test -z "$LTCC" && LTCC=$CC
6554 test -z "$DLLTOOL" && DLLTOOL=dlltool
6555 test -z "$LD" && LD=ld
6556 test -z "$LN_S" && LN_S="ln -s"
6557 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6558 test -z "$NM" && NM=nm
6559 test -z "$SED" && SED=sed
6560 test -z "$OBJDUMP" && OBJDUMP=objdump
6561 test -z "$RANLIB" && RANLIB=:
6562 test -z "$STRIP" && STRIP=:
6563 test -z "$ac_objext" && ac_objext=o
6565 # Determine commands to create old-style static archives.
6566 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6567 old_postinstall_cmds='chmod 644 $oldlib'
6568 old_postuninstall_cmds=
6570 if test -n "$RANLIB"; then
6573 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6576 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6579 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6582 # Only perform the check for file, if the check method requires it
6583 case $deplibs_check_method in
6585 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6586 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6587 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6588 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6596 lt_save_MAGIC_CMD="$MAGIC_CMD"
6597 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6598 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6599 for ac_dir in $ac_dummy; do
6601 test -z "$ac_dir" && ac_dir=.
6602 if test -f $ac_dir/${ac_tool_prefix}file; then
6603 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6604 if test -n "$file_magic_test_file"; then
6605 case $deplibs_check_method in
6607 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6609 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6610 $EGREP "$file_magic_regex" > /dev/null; then
6615 *** Warning: the command libtool uses to detect shared libraries,
6616 *** $file_magic_cmd, produces output that libtool cannot recognize.
6617 *** The result is that libtool may fail to recognize shared libraries
6618 *** as such. This will affect the creation of libtool libraries that
6619 *** depend on shared libraries, but programs linked with such libtool
6620 *** libraries will work regardless of this problem. Nevertheless, you
6621 *** may want to report the problem to your system manager and/or to
6622 *** bug-libtool@gnu.org
6632 MAGIC_CMD="$lt_save_MAGIC_CMD"
6637 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6638 if test -n "$MAGIC_CMD"; then
6639 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6640 echo "${ECHO_T}$MAGIC_CMD" >&6
6642 echo "$as_me:$LINENO: result: no" >&5
6643 echo "${ECHO_T}no" >&6
6646 if test -z "$lt_cv_path_MAGIC_CMD"; then
6647 if test -n "$ac_tool_prefix"; then
6648 echo "$as_me:$LINENO: checking for file" >&5
6649 echo $ECHO_N "checking for file... $ECHO_C" >&6
6650 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6658 lt_save_MAGIC_CMD="$MAGIC_CMD"
6659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6660 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6661 for ac_dir in $ac_dummy; do
6663 test -z "$ac_dir" && ac_dir=.
6664 if test -f $ac_dir/file; then
6665 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6666 if test -n "$file_magic_test_file"; then
6667 case $deplibs_check_method in
6669 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6671 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6672 $EGREP "$file_magic_regex" > /dev/null; then
6677 *** Warning: the command libtool uses to detect shared libraries,
6678 *** $file_magic_cmd, produces output that libtool cannot recognize.
6679 *** The result is that libtool may fail to recognize shared libraries
6680 *** as such. This will affect the creation of libtool libraries that
6681 *** depend on shared libraries, but programs linked with such libtool
6682 *** libraries will work regardless of this problem. Nevertheless, you
6683 *** may want to report the problem to your system manager and/or to
6684 *** bug-libtool@gnu.org
6694 MAGIC_CMD="$lt_save_MAGIC_CMD"
6699 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6700 if test -n "$MAGIC_CMD"; then
6701 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6702 echo "${ECHO_T}$MAGIC_CMD" >&6
6704 echo "$as_me:$LINENO: result: no" >&5
6705 echo "${ECHO_T}no" >&6
6720 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6721 if test "${enable_libtool_lock+set}" = set; then
6722 enableval="$enable_libtool_lock"
6725 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6728 # Check whether --with-pic or --without-pic was given.
6729 if test "${with_pic+set}" = set; then
6735 test -z "$pic_mode" && pic_mode=default
6737 # Use C for the default configuration in the libtool script
6741 ac_cpp='$CPP $CPPFLAGS'
6742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6747 # Source file extension for C test sources.
6750 # Object file extension for compiled C test sources.
6754 # Code to be used in simple compile tests
6755 lt_simple_compile_test_code="int some_variable = 0;\n"
6757 # Code to be used in simple link tests
6758 lt_simple_link_test_code='int main(){return(0);}\n'
6761 # If no C compiler was specified, use CC.
6764 # Allow CC to be a program name with arguments.
6769 # Check for any special shared library compilation flags.
6772 if test "$GCC" = no; then
6775 lt_prog_cc_shlib='-belf'
6779 if test -n "$lt_prog_cc_shlib"; then
6780 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6781 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6782 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6784 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6785 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6786 lt_cv_prog_cc_can_build_shared=no
6792 # Check to make sure the static flag actually works.
6794 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6795 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6796 if test "${lt_prog_compiler_static_works+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 lt_prog_compiler_static_works=no
6800 save_LDFLAGS="$LDFLAGS"
6801 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6802 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6803 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6804 # The compiler can only warn and ignore the option if not recognized
6805 # So say no if there are warnings
6806 if test -s conftest.err; then
6807 # Append any errors to the config.log.
6808 cat conftest.err 1>&5
6810 lt_prog_compiler_static_works=yes
6814 LDFLAGS="$save_LDFLAGS"
6817 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6818 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6820 if test x"$lt_prog_compiler_static_works" = xyes; then
6823 lt_prog_compiler_static=
6829 lt_prog_compiler_no_builtin_flag=
6831 if test "$GCC" = yes; then
6832 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6835 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6836 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6837 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 lt_cv_prog_compiler_rtti_exceptions=no
6841 ac_outfile=conftest.$ac_objext
6842 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6843 lt_compiler_flag="-fno-rtti -fno-exceptions"
6844 # Insert the option either (1) after the last *FLAGS variable, or
6845 # (2) before a word containing "conftest.", or (3) at the end.
6846 # Note that $ac_compile itself does not contain backslashes and begins
6847 # with a dollar sign (not a hyphen), so the echo should work correctly.
6848 # The option is referenced via a variable to avoid confusing sed.
6849 lt_compile=`echo "$ac_compile" | $SED \
6850 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6852 -e 's:$: $lt_compiler_flag:'`
6853 (eval echo "\"\$as_me:6853: $lt_compile\"" >&5)
6854 (eval "$lt_compile" 2>conftest.err)
6856 cat conftest.err >&5
6857 echo "$as_me:6857: \$? = $ac_status" >&5
6858 if (exit $ac_status) && test -s "$ac_outfile"; then
6859 # The compiler can only warn and ignore the option if not recognized
6860 # So say no if there are warnings
6861 if test ! -s conftest.err; then
6862 lt_cv_prog_compiler_rtti_exceptions=yes
6868 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6869 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6871 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6872 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6879 lt_prog_compiler_wl=
6880 lt_prog_compiler_pic=
6881 lt_prog_compiler_static=
6883 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6884 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6886 if test "$GCC" = yes; then
6887 lt_prog_compiler_wl='-Wl,'
6888 lt_prog_compiler_static='-static'
6892 # All AIX code is PIC.
6893 if test "$host_cpu" = ia64; then
6894 # AIX 5 now supports IA64 processor
6895 lt_prog_compiler_static='-Bstatic'
6900 # FIXME: we need at least 68020 code to build shared libraries, but
6901 # adding the `-m68020' flag to GCC prevents building anything better,
6903 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6906 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6907 # PIC is the default for these OSes.
6910 mingw* | pw32* | os2*)
6911 # This hack is so that the source file can tell whether it is being
6912 # built for inclusion in a dll (and should export symbols for example).
6913 lt_prog_compiler_pic='-DDLL_EXPORT'
6916 darwin* | rhapsody*)
6917 # PIC is the default on this platform
6918 # Common symbols not allowed in MH_DYLIB files
6919 lt_prog_compiler_pic='-fno-common'
6923 # Just because we use GCC doesn't mean we suddenly get shared libraries
6924 # on systems that don't support them.
6925 lt_prog_compiler_can_build_shared=no
6930 if test -d /usr/nec; then
6931 lt_prog_compiler_pic=-Kconform_pic
6936 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6943 lt_prog_compiler_pic='-fPIC'
6949 lt_prog_compiler_pic='-fPIC'
6953 # PORTME Check for flag to pass linker flags through the system compiler.
6956 lt_prog_compiler_wl='-Wl,'
6957 if test "$host_cpu" = ia64; then
6958 # AIX 5 now supports IA64 processor
6959 lt_prog_compiler_static='-Bstatic'
6961 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6965 mingw* | pw32* | os2*)
6966 # This hack is so that the source file can tell whether it is being
6967 # built for inclusion in a dll (and should export symbols for example).
6968 lt_prog_compiler_pic='-DDLL_EXPORT'
6971 hpux9* | hpux10* | hpux11*)
6972 lt_prog_compiler_wl='-Wl,'
6973 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6980 lt_prog_compiler_pic='+Z'
6983 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6984 lt_prog_compiler_static='${wl}-a ${wl}archive'
6987 irix5* | irix6* | nonstopux*)
6988 lt_prog_compiler_wl='-Wl,'
6989 # PIC (with -KPIC) is the default.
6990 lt_prog_compiler_static='-non_shared'
6994 lt_prog_compiler_pic='-KPIC'
6995 lt_prog_compiler_static='-Bstatic'
7001 lt_prog_compiler_wl='-Wl,'
7002 lt_prog_compiler_pic='-KPIC'
7003 lt_prog_compiler_static='-static'
7006 lt_prog_compiler_wl='-Wl,'
7007 # All Alpha code is PIC.
7008 lt_prog_compiler_static='-non_shared'
7013 osf3* | osf4* | osf5*)
7014 lt_prog_compiler_wl='-Wl,'
7015 # All OSF/1 code is PIC.
7016 lt_prog_compiler_static='-non_shared'
7020 lt_prog_compiler_pic='-Kpic'
7021 lt_prog_compiler_static='-dn'
7025 lt_prog_compiler_wl='-Wl,'
7026 lt_prog_compiler_pic='-KPIC'
7027 lt_prog_compiler_static='-Bstatic'
7031 lt_prog_compiler_wl='-Qoption ld '
7032 lt_prog_compiler_pic='-PIC'
7033 lt_prog_compiler_static='-Bstatic'
7036 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7037 lt_prog_compiler_wl='-Wl,'
7038 lt_prog_compiler_pic='-KPIC'
7039 lt_prog_compiler_static='-Bstatic'
7043 if test -d /usr/nec ;then
7044 lt_prog_compiler_pic='-Kconform_pic'
7045 lt_prog_compiler_static='-Bstatic'
7050 lt_prog_compiler_pic='-pic'
7051 lt_prog_compiler_static='-Bstatic'
7055 lt_prog_compiler_can_build_shared=no
7060 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7061 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7064 # Check to make sure the PIC flag actually works.
7066 if test -n "$lt_prog_compiler_pic"; then
7068 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7069 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7070 if test "${lt_prog_compiler_pic_works+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 lt_prog_compiler_pic_works=no
7074 ac_outfile=conftest.$ac_objext
7075 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7076 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7077 # Insert the option either (1) after the last *FLAGS variable, or
7078 # (2) before a word containing "conftest.", or (3) at the end.
7079 # Note that $ac_compile itself does not contain backslashes and begins
7080 # with a dollar sign (not a hyphen), so the echo should work correctly.
7081 # The option is referenced via a variable to avoid confusing sed.
7082 lt_compile=`echo "$ac_compile" | $SED \
7083 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7085 -e 's:$: $lt_compiler_flag:'`
7086 (eval echo "\"\$as_me:7086: $lt_compile\"" >&5)
7087 (eval "$lt_compile" 2>conftest.err)
7089 cat conftest.err >&5
7090 echo "$as_me:7090: \$? = $ac_status" >&5
7091 if (exit $ac_status) && test -s "$ac_outfile"; then
7092 # The compiler can only warn and ignore the option if not recognized
7093 # So say no if there are warnings
7094 if test ! -s conftest.err; then
7095 lt_prog_compiler_pic_works=yes
7101 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7102 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7104 if test x"$lt_prog_compiler_pic_works" = xyes; then
7105 case $lt_prog_compiler_pic in
7107 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7110 lt_prog_compiler_pic=
7111 lt_prog_compiler_can_build_shared=no
7116 # For platforms which do not support PIC, -DPIC is meaningless:
7118 lt_prog_compiler_pic=
7121 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7125 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7126 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7127 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 lt_cv_prog_compiler_c_o=no
7131 $rm -r conftest 2>/dev/null
7135 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7137 lt_compiler_flag="-o out/conftest2.$ac_objext"
7138 # Insert the option either (1) after the last *FLAGS variable, or
7139 # (2) before a word containing "conftest.", or (3) at the end.
7140 # Note that $ac_compile itself does not contain backslashes and begins
7141 # with a dollar sign (not a hyphen), so the echo should work correctly.
7142 lt_compile=`echo "$ac_compile" | $SED \
7143 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7145 -e 's:$: $lt_compiler_flag:'`
7146 (eval echo "\"\$as_me:7146: $lt_compile\"" >&5)
7147 (eval "$lt_compile" 2>out/conftest.err)
7149 cat out/conftest.err >&5
7150 echo "$as_me:7150: \$? = $ac_status" >&5
7151 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7153 # The compiler can only warn and ignore the option if not recognized
7154 # So say no if there are warnings
7155 if test ! -s out/conftest.err; then
7156 lt_cv_prog_compiler_c_o=yes
7161 # SGI C++ compiler will create directory out/ii_files/ for
7162 # template instantiation
7163 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7164 $rm out/* && rmdir out
7170 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7171 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7174 hard_links="nottested"
7175 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7176 # do not overwrite the value of need_locks provided by the user
7177 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7178 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7181 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7183 ln conftest.a conftest.b 2>&5 || hard_links=no
7184 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7185 echo "$as_me:$LINENO: result: $hard_links" >&5
7186 echo "${ECHO_T}$hard_links" >&6
7187 if test "$hard_links" = no; then
7188 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7189 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7196 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7197 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7200 allow_undefined_flag=
7201 enable_shared_with_static_runtimes=no
7203 archive_expsym_cmds=
7204 old_archive_From_new_cmds=
7205 old_archive_from_expsyms_cmds=
7206 export_dynamic_flag_spec=
7207 whole_archive_flag_spec=
7208 thread_safe_flag_spec=
7209 hardcode_libdir_flag_spec=
7210 hardcode_libdir_flag_spec_ld=
7211 hardcode_libdir_separator=
7214 hardcode_shlibpath_var=unsupported
7215 link_all_deplibs=unknown
7216 hardcode_automatic=no
7219 always_export_symbols=no
7220 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7221 # include_expsyms should be a list of space-separated symbols to be *always*
7222 # included in the symbol list
7224 # exclude_expsyms can be an extended regexp of symbols to exclude
7225 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7226 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7227 # as well as any symbol that contains `d'.
7228 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7229 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7230 # platforms (ab)use it in PIC code, but their linkers get confused if
7231 # the symbol is explicitly referenced. Since portable code cannot
7232 # rely on this symbol name, it's probably fine to never include it in
7233 # preloaded symbol tables.
7234 extract_expsyms_cmds=
7237 cygwin* | mingw* | pw32*)
7238 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7239 # When not using gcc, we currently assume that we are using
7240 # Microsoft Visual C++.
7241 if test "$GCC" != yes; then
7251 if test "$with_gnu_ld" = yes; then
7252 # If archive_cmds runs LD, not CC, wlarc should be empty
7255 # See if GNU ld supports shared libraries.
7257 aix3* | aix4* | aix5*)
7258 # On AIX/PPC, the GNU linker is very broken
7259 if test "$host_cpu" != ia64; then
7263 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7264 *** to be unable to reliably create shared libraries on AIX.
7265 *** Therefore, libtool is disabling shared libraries support. If you
7266 *** really care for shared libraries, you may want to modify your PATH
7267 *** so that a non-GNU linker is found, and then restart.
7274 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)'
7275 hardcode_libdir_flag_spec='-L$libdir'
7276 hardcode_minus_L=yes
7278 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7279 # that the semantics of dynamic libraries on AmigaOS, at least up
7280 # to version 4, is to share data among multiple programs linked
7281 # with the same dynamic library. Since this doesn't match the
7282 # behavior of shared libraries on other platforms, we can't use
7288 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7289 allow_undefined_flag=unsupported
7290 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7291 # support --undefined. This deserves some investigation. FIXME
7292 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7298 cygwin* | mingw* | pw32*)
7299 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7300 # as there is no search path for DLLs.
7301 hardcode_libdir_flag_spec='-L$libdir'
7302 allow_undefined_flag=unsupported
7303 always_export_symbols=no
7304 enable_shared_with_static_runtimes=yes
7305 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7307 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7309 # If the export-symbols file already is a .def file (1st line
7310 # is EXPORTS), use it as is; otherwise, prepend...
7311 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7312 cp $export_symbols $output_objdir/$soname.def;
7314 echo EXPORTS > $output_objdir/$soname.def;
7315 cat $export_symbols >> $output_objdir/$soname.def;
7317 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7324 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7325 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7329 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7334 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7338 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7339 *** create shared libraries on Solaris systems. Therefore, libtool
7340 *** is disabling shared libraries support. We urge you to upgrade GNU
7341 *** binutils to release 2.9.1 or newer. Another option is to modify
7342 *** your PATH or compiler configuration so that the native linker is
7343 *** used, and then restart.
7346 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7348 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7355 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7358 hardcode_shlibpath_var=no
7362 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7363 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7364 archive_cmds="$tmp_archive_cmds"
7365 supports_anon_versioning=no
7366 case `$LD -v 2>/dev/null` in
7367 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7368 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7369 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7370 *\ 2.11.*) ;; # other 2.11 versions
7371 *) supports_anon_versioning=yes ;;
7373 if test $supports_anon_versioning = yes; then
7374 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7375 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7376 $echo "local: *; };" >> $output_objdir/$libname.ver~
7377 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7379 archive_expsym_cmds="$tmp_archive_cmds"
7387 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7389 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7396 if test "$ld_shlibs" = yes; then
7397 runpath_var=LD_RUN_PATH
7398 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7399 export_dynamic_flag_spec='${wl}--export-dynamic'
7400 # ancient GNU ld didn't support --whole-archive et. al.
7401 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7402 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7404 whole_archive_flag_spec=
7408 # PORTME fill in a description of your system's linker (not GNU ld)
7411 allow_undefined_flag=unsupported
7412 always_export_symbols=yes
7413 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'
7414 # Note: this linker hardcodes the directories in LIBPATH if there
7415 # are no directories specified by -L.
7416 hardcode_minus_L=yes
7417 if test "$GCC" = yes && test -z "$link_static_flag"; then
7418 # Neither direct hardcoding nor static linking is supported with a
7420 hardcode_direct=unsupported
7425 if test "$host_cpu" = ia64; then
7426 # On IA64, the linker does run time linking by default, so we don't
7427 # have to do anything special.
7428 aix_use_runtimelinking=no
7429 exp_sym_flag='-Bexport'
7432 # If we're using GNU nm, then we don't want the "-C" option.
7433 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7434 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7435 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'
7437 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'
7439 aix_use_runtimelinking=no
7441 # Test if we are trying to use run time linking or normal
7442 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7443 # need to do runtime linking.
7444 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7445 for ld_flag in $LDFLAGS; do
7446 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7447 aix_use_runtimelinking=yes
7453 exp_sym_flag='-bexport'
7454 no_entry_flag='-bnoentry'
7457 # When large executables or shared objects are built, AIX ld can
7458 # have problems creating the table of contents. If linking a library
7459 # or program results in "error TOC overflow" add -mminimal-toc to
7460 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7461 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7465 hardcode_libdir_separator=':'
7466 link_all_deplibs=yes
7468 if test "$GCC" = yes; then
7469 case $host_os in aix4.012|aix4.012.*)
7470 # We only want to do this on AIX 4.2 and lower, the check
7471 # below for broken collect2 doesn't work under 4.3+
7472 collect2name=`${CC} -print-prog-name=collect2`
7473 if test -f "$collect2name" && \
7474 strings "$collect2name" | grep resolve_lib_name >/dev/null
7476 # We have reworked collect2
7479 # We have old collect2
7480 hardcode_direct=unsupported
7481 # It fails to find uninstalled libraries when the uninstalled
7482 # path is not listed in the libpath. Setting hardcode_minus_L
7483 # to unsupported forces relinking
7484 hardcode_minus_L=yes
7485 hardcode_libdir_flag_spec='-L$libdir'
7486 hardcode_libdir_separator=
7489 shared_flag='-shared'
7492 if test "$host_cpu" = ia64; then
7493 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7494 # chokes on -Wl,-G. The following line is correct:
7497 if test "$aix_use_runtimelinking" = yes; then
7498 shared_flag='${wl}-G'
7500 shared_flag='${wl}-bM:SRE'
7505 # It seems that -bexpall does not export symbols beginning with
7506 # underscore (_), so it is better to generate a list of symbols to export.
7507 always_export_symbols=yes
7508 if test "$aix_use_runtimelinking" = yes; then
7509 # Warning - without using the other runtime loading flags (-brtl),
7510 # -berok will link without error, but may produce a broken library.
7511 allow_undefined_flag='-berok'
7512 # Determine the default libpath from the value encoded in an empty executable.
7513 cat >conftest.$ac_ext <<_ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7528 rm -f conftest.$ac_objext conftest$ac_exeext
7529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7530 (eval $ac_link) 2>conftest.er1
7532 grep -v '^ *+' conftest.er1 >conftest.err
7534 cat conftest.err >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } &&
7537 { ac_try='test -z "$ac_c_werror_flag"
7538 || test ! -s conftest.err'
7539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }; } &&
7544 { ac_try='test -s conftest$ac_exeext'
7545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); }; }; then
7551 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7553 # Check for a 64-bit object if we didn't find anything.
7554 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; }
7557 echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7561 rm -f conftest.err conftest.$ac_objext \
7562 conftest$ac_exeext conftest.$ac_ext
7563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7565 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7566 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"
7568 if test "$host_cpu" = ia64; then
7569 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7570 allow_undefined_flag="-z nodefs"
7571 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"
7573 # Determine the default libpath from the value encoded in an empty executable.
7574 cat >conftest.$ac_ext <<_ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h. */
7589 rm -f conftest.$ac_objext conftest$ac_exeext
7590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7591 (eval $ac_link) 2>conftest.er1
7593 grep -v '^ *+' conftest.er1 >conftest.err
7595 cat conftest.err >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
7598 { ac_try='test -z "$ac_c_werror_flag"
7599 || test ! -s conftest.err'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; } &&
7605 { ac_try='test -s conftest$ac_exeext'
7606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; }; then
7612 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7614 # Check for a 64-bit object if we didn't find anything.
7615 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; }
7618 echo "$as_me: failed program was:" >&5
7619 sed 's/^/| /' conftest.$ac_ext >&5
7622 rm -f conftest.err conftest.$ac_objext \
7623 conftest$ac_exeext conftest.$ac_ext
7624 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7626 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7627 # Warning - without using the other run time loading flags,
7628 # -berok will link without error, but may produce a broken library.
7629 no_undefined_flag=' ${wl}-bernotok'
7630 allow_undefined_flag=' ${wl}-berok'
7631 # -bexpall does not export symbols beginning with underscore (_)
7632 always_export_symbols=yes
7633 # Exported symbols can be pulled into shared objects from archives
7634 whole_archive_flag_spec=' '
7635 archive_cmds_need_lc=yes
7636 # This is similar to how AIX traditionally builds it's shared libraries.
7637 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'
7643 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)'
7644 hardcode_libdir_flag_spec='-L$libdir'
7645 hardcode_minus_L=yes
7646 # see comment about different semantics on the GNU ld section
7651 export_dynamic_flag_spec=-rdynamic
7654 cygwin* | mingw* | pw32*)
7655 # When not using gcc, we currently assume that we are using
7656 # Microsoft Visual C++.
7657 # hardcode_libdir_flag_spec is actually meaningless, as there is
7658 # no search path for DLLs.
7659 hardcode_libdir_flag_spec=' '
7660 allow_undefined_flag=unsupported
7661 # Tell ltmain to make .lib files, not .a files.
7663 # Tell ltmain to make .dll files, not .so files.
7665 # FIXME: Setting linknames here is a bad hack.
7666 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7667 # The linker will automatically build a .lib file if we build a DLL.
7668 old_archive_From_new_cmds='true'
7669 # FIXME: Should let the user specify the lib program.
7670 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7671 fix_srcfile_path='`cygpath -w "$srcfile"`'
7672 enable_shared_with_static_runtimes=yes
7675 darwin* | rhapsody*)
7676 if test "$GXX" = yes ; then
7677 archive_cmds_need_lc=no
7679 rhapsody* | darwin1.[012])
7680 allow_undefined_flag='-undefined suppress'
7683 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7684 allow_undefined_flag='-flat_namespace -undefined suppress'
7686 case ${MACOSX_DEPLOYMENT_TARGET} in
7688 allow_undefined_flag='-flat_namespace -undefined suppress'
7691 allow_undefined_flag='-undefined dynamic_lookup'
7697 lt_int_apple_cc_single_mod=no
7698 output_verbose_link_cmd='echo'
7699 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7700 lt_int_apple_cc_single_mod=yes
7702 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7703 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7705 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7707 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7708 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7709 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7710 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7712 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7714 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}'
7716 hardcode_automatic=yes
7717 hardcode_shlibpath_var=unsupported
7718 whole_archive_flag_spec='-all_load $convenience'
7719 link_all_deplibs=yes
7726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7727 hardcode_libdir_flag_spec='-L$libdir'
7728 hardcode_shlibpath_var=no
7735 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7736 # support. Future versions do this automatically, but an explicit c++rt0.o
7737 # does not break anything, and helps significantly (at the cost of a little
7740 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7741 hardcode_libdir_flag_spec='-R$libdir'
7743 hardcode_shlibpath_var=no
7746 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7748 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7750 hardcode_minus_L=yes
7751 hardcode_shlibpath_var=no
7754 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7755 freebsd* | kfreebsd*-gnu)
7756 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7757 hardcode_libdir_flag_spec='-R$libdir'
7759 hardcode_shlibpath_var=no
7763 if test "$GCC" = yes; then
7764 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'
7766 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'
7768 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7769 hardcode_libdir_separator=:
7772 # hardcode_minus_L: Not really in the search PATH,
7773 # but as the default location of the library.
7774 hardcode_minus_L=yes
7775 export_dynamic_flag_spec='${wl}-E'
7779 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7782 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7785 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7791 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7794 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7798 if test "$with_gnu_ld" = no; then
7801 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7802 hardcode_libdir_flag_spec_ld='+b $libdir'
7803 hardcode_libdir_separator=:
7805 hardcode_shlibpath_var=no
7808 hardcode_libdir_flag_spec='-L$libdir'
7810 hardcode_shlibpath_var=no
7812 # hardcode_minus_L: Not really in the search PATH,
7813 # but as the default location of the library.
7814 hardcode_minus_L=yes
7817 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7818 hardcode_libdir_separator=:
7820 export_dynamic_flag_spec='${wl}-E'
7822 # hardcode_minus_L: Not really in the search PATH,
7823 # but as the default location of the library.
7824 hardcode_minus_L=yes
7830 irix5* | irix6* | nonstopux*)
7831 if test "$GCC" = yes; then
7832 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'
7834 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'
7835 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7838 hardcode_libdir_separator=:
7839 link_all_deplibs=yes
7843 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7844 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7846 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7848 hardcode_libdir_flag_spec='-R$libdir'
7850 hardcode_shlibpath_var=no
7854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7857 hardcode_libdir_separator=:
7858 hardcode_shlibpath_var=no
7863 hardcode_shlibpath_var=no
7864 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7865 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7866 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7867 export_dynamic_flag_spec='${wl}-E'
7870 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7871 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7872 hardcode_libdir_flag_spec='-R$libdir'
7875 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7876 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7883 hardcode_libdir_flag_spec='-L$libdir'
7884 hardcode_minus_L=yes
7885 allow_undefined_flag=unsupported
7886 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'
7887 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7891 if test "$GCC" = yes; then
7892 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7893 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'
7895 allow_undefined_flag=' -expect_unresolved \*'
7896 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'
7898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7899 hardcode_libdir_separator=:
7902 osf4* | osf5*) # as osf3* with the addition of -msym flag
7903 if test "$GCC" = yes; then
7904 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7905 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'
7906 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7908 allow_undefined_flag=' -expect_unresolved \*'
7909 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'
7910 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7911 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7913 # Both c and cxx compiler support -rpath directly
7914 hardcode_libdir_flag_spec='-rpath $libdir'
7916 hardcode_libdir_separator=:
7920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7921 hardcode_shlibpath_var=no
7922 export_dynamic_flag_spec='${wl}-Bexport'
7923 runpath_var=LD_RUN_PATH
7924 hardcode_runpath_var=yes
7928 no_undefined_flag=' -z text'
7929 if test "$GCC" = yes; then
7930 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7931 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7932 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7934 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7935 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7936 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7938 hardcode_libdir_flag_spec='-R$libdir'
7939 hardcode_shlibpath_var=no
7941 solaris2.[0-5] | solaris2.[0-5].*) ;;
7942 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7943 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7945 link_all_deplibs=yes
7949 if test "x$host_vendor" = xsequent; then
7950 # Use $CC to link under sequent, because it throws in some extra .o
7951 # files that make .init and .fini sections work.
7952 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7954 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7956 hardcode_libdir_flag_spec='-L$libdir'
7958 hardcode_minus_L=yes
7959 hardcode_shlibpath_var=no
7963 case $host_vendor in
7965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7966 hardcode_direct=yes # is this really true???
7969 ## LD is ld it makes a PLAMLIB
7970 ## CC just makes a GrossModule.
7971 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7972 reload_cmds='$CC -r -o $output$reload_objs'
7976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7977 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7980 runpath_var='LD_RUN_PATH'
7981 hardcode_shlibpath_var=no
7985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7986 hardcode_shlibpath_var=no
7987 export_dynamic_flag_spec='-Bexport'
7991 if test -d /usr/nec; then
7992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7993 hardcode_shlibpath_var=no
7994 runpath_var=LD_RUN_PATH
7995 hardcode_runpath_var=yes
8001 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8004 hardcode_shlibpath_var=no
8005 hardcode_runpath_var=yes
8006 runpath_var=LD_RUN_PATH
8009 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8010 no_undefined_flag='${wl}-z ${wl}text'
8011 if test "$GCC" = yes; then
8012 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8014 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8016 runpath_var='LD_RUN_PATH'
8017 hardcode_shlibpath_var=no
8021 no_undefined_flag=' -z text'
8022 # $CC -shared without GNU ld will not create a library from C++
8023 # object files and a static libstdc++, better avoid it by now
8024 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8025 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8026 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8027 hardcode_libdir_flag_spec=
8028 hardcode_shlibpath_var=no
8029 runpath_var='LD_RUN_PATH'
8033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8034 hardcode_libdir_flag_spec='-L$libdir'
8035 hardcode_shlibpath_var=no
8044 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8045 echo "${ECHO_T}$ld_shlibs" >&6
8046 test "$ld_shlibs" = no && can_build_shared=no
8048 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8049 if test "$GCC" = yes; then
8050 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8054 # Do we need to explicitly link libc?
8056 case "x$archive_cmds_need_lc" in
8058 # Assume -lc should be added
8059 archive_cmds_need_lc=yes
8061 if test "$enable_shared" = yes && test "$GCC" = yes; then
8062 case $archive_cmds in
8064 # FIXME: we may have to deal with multi-command sequences.
8067 # Test whether the compiler implicitly links with -lc since on some
8068 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8069 # to ld, don't add -lc before -lgcc.
8070 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8071 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8073 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8076 (eval $ac_compile) 2>&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); } 2>conftest.err; then
8082 libobjs=conftest.$ac_objext
8084 wl=$lt_prog_compiler_wl
8090 lt_save_allow_undefined_flag=$allow_undefined_flag
8091 allow_undefined_flag=
8092 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8093 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }
8098 archive_cmds_need_lc=no
8100 archive_cmds_need_lc=yes
8102 allow_undefined_flag=$lt_save_allow_undefined_flag
8104 cat conftest.err 1>&5
8107 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8108 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8115 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8116 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8118 libname_spec='lib$name'
8126 shlibpath_overrides_runpath=unknown
8128 dynamic_linker="$host_os ld.so"
8129 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8130 if test "$GCC" = yes; then
8131 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8132 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8133 # if the path contains ";" then we assume it to be the separator
8134 # otherwise default to the standard path separator (i.e. ":") - it is
8135 # assumed that no part of a normal pathname contains ";" but that should
8136 # okay in the real world where ";" in dirpaths is itself problematic.
8137 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8139 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8142 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8144 need_lib_prefix=unknown
8145 hardcode_into_libs=no
8147 # when you set need_version to no, make sure it does not cause -set_version
8148 # flags to be left without arguments
8149 need_version=unknown
8154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8155 shlibpath_var=LIBPATH
8157 # AIX 3 has no versioning support, so we append a major version to the name.
8158 soname_spec='${libname}${release}${shared_ext}$major'
8165 hardcode_into_libs=yes
8166 if test "$host_cpu" = ia64; then
8167 # AIX 5 supports IA64
8168 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8169 shlibpath_var=LD_LIBRARY_PATH
8171 # With GCC up to 2.95.x, collect2 would create an import file
8172 # for dependence libraries. The import file would start with
8173 # the line `#! .'. This would cause the generated library to
8174 # depend on `.', always an invalid library. This was fixed in
8175 # development snapshots of GCC prior to 3.0.
8177 aix4 | aix4.[01] | aix4.[01].*)
8178 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8180 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8187 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8188 # soname into executable. Probably we can add versioning support to
8189 # collect2, so additional links can be useful in future.
8190 if test "$aix_use_runtimelinking" = yes; then
8191 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8192 # instead of lib<name>.a to let people know that these are not
8193 # typical AIX shared libraries.
8194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8196 # We preserve .a as extension for shared libraries through AIX4.2
8197 # and later when we are not doing run time linking.
8198 library_names_spec='${libname}${release}.a $libname.a'
8199 soname_spec='${libname}${release}${shared_ext}$major'
8201 shlibpath_var=LIBPATH
8206 library_names_spec='$libname.ixlibrary $libname.a'
8207 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8208 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'
8212 library_names_spec='${libname}${shared_ext}'
8213 dynamic_linker="$host_os ld.so"
8214 shlibpath_var=LIBRARY_PATH
8220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8221 soname_spec='${libname}${release}${shared_ext}$major'
8222 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8223 shlibpath_var=LD_LIBRARY_PATH
8224 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8225 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8226 # the default ld.so.conf also contains /usr/contrib/lib and
8227 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8228 # libtool to hard-code these into programs
8231 cygwin* | mingw* | pw32*)
8232 version_type=windows
8237 case $GCC,$host_os in
8238 yes,cygwin* | yes,mingw* | yes,pw32*)
8239 library_names_spec='$libname.dll.a'
8240 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8241 postinstall_cmds='base_file=`basename \${file}`~
8242 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8243 dldir=$destdir/`dirname \$dlpath`~
8244 test -d \$dldir || mkdir -p \$dldir~
8245 $install_prog $dir/$dlname \$dldir/$dlname'
8246 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8247 dlpath=$dir/\$dldll~
8249 shlibpath_overrides_runpath=yes
8253 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8254 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8255 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8258 # MinGW DLLs use traditional 'lib' prefix
8259 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8260 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8261 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8262 # It is most probably a Windows format PATH printed by
8263 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8264 # path with ; separators, and with drive letters. We can handle the
8265 # drive letters (cygwin fileutils understands them), so leave them,
8266 # especially as we might pass files found there to a mingw objdump,
8267 # which wouldn't understand a cygwinified path. Ahh.
8268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8270 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8274 # pw32 DLLs use 'pw' prefix rather than 'lib'
8275 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8281 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8284 dynamic_linker='Win32 ld.exe'
8285 # FIXME: first we should search . and the directory the executable is in
8289 darwin* | rhapsody*)
8290 dynamic_linker="$host_os dyld"
8294 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8295 soname_spec='${libname}${release}${major}$shared_ext'
8296 shlibpath_overrides_runpath=yes
8297 shlibpath_var=DYLD_LIBRARY_PATH
8298 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8299 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8300 if test "$GCC" = yes; then
8301 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"`
8303 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8305 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8313 soname_spec='${libname}${release}${shared_ext}$major'
8314 shlibpath_var=LD_LIBRARY_PATH
8325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8326 soname_spec='${libname}${release}${shared_ext}$major'
8327 shlibpath_var=LD_LIBRARY_PATH
8328 shlibpath_overrides_runpath=no
8329 hardcode_into_libs=yes
8330 dynamic_linker='GNU ld.so'
8334 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8335 version_type=freebsd-$objformat
8336 case $version_type in
8338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8343 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8347 shlibpath_var=LD_LIBRARY_PATH
8350 shlibpath_overrides_runpath=yes
8352 freebsd3.01* | freebsdelf3.01*)
8353 shlibpath_overrides_runpath=yes
8354 hardcode_into_libs=yes
8357 shlibpath_overrides_runpath=no
8358 hardcode_into_libs=yes
8367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8368 soname_spec='${libname}${release}${shared_ext}$major'
8369 shlibpath_var=LD_LIBRARY_PATH
8370 hardcode_into_libs=yes
8373 hpux9* | hpux10* | hpux11*)
8374 # Give a soname corresponding to the major version so that dld.sl refuses to
8375 # link against other versions.
8382 hardcode_into_libs=yes
8383 dynamic_linker="$host_os dld.so"
8384 shlibpath_var=LD_LIBRARY_PATH
8385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8387 soname_spec='${libname}${release}${shared_ext}$major'
8388 if test "X$HPUX_IA64_MODE" = X32; then
8389 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8391 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8393 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8397 hardcode_into_libs=yes
8398 dynamic_linker="$host_os dld.sl"
8399 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8400 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8402 soname_spec='${libname}${release}${shared_ext}$major'
8403 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8404 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8408 dynamic_linker="$host_os dld.sl"
8409 shlibpath_var=SHLIB_PATH
8410 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8412 soname_spec='${libname}${release}${shared_ext}$major'
8415 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8416 postinstall_cmds='chmod 555 $lib'
8419 irix5* | irix6* | nonstopux*)
8421 nonstopux*) version_type=nonstopux ;;
8423 if test "$lt_cv_prog_gnu_ld" = yes; then
8431 soname_spec='${libname}${release}${shared_ext}$major'
8432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8434 irix5* | nonstopux*)
8438 case $LD in # libtool.m4 will add one of these switches to LD
8439 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8440 libsuff= shlibsuff= libmagic=32-bit;;
8441 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8442 libsuff=32 shlibsuff=N32 libmagic=N32;;
8443 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8444 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8445 *) libsuff= shlibsuff= libmagic=never-match;;
8449 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8450 shlibpath_overrides_runpath=no
8451 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8452 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8453 hardcode_into_libs=yes
8456 # No shared lib support for Linux oldld, aout, or coff.
8457 linux*oldld* | linux*aout* | linux*coff*)
8461 # This must be Linux ELF.
8466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8467 soname_spec='${libname}${release}${shared_ext}$major'
8468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8469 shlibpath_var=LD_LIBRARY_PATH
8470 shlibpath_overrides_runpath=no
8471 # This implies no fast_install, which is unacceptable.
8472 # Some rework will be needed to allow for fast_install
8473 # before this can be enabled.
8474 hardcode_into_libs=yes
8476 # find out which ABI we are using
8479 x86_64*|s390x*|powerpc64*)
8480 echo '#line 8480 "configure"' > conftest.$ac_ext
8481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8482 (eval $ac_compile) 2>&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; then
8486 case `/usr/bin/file conftest.$ac_objext` in
8489 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8497 # Append ld.so.conf contents to the search path
8498 if test -f /etc/ld.so.conf; then
8499 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8500 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8503 # We used to test for /lib/ld.so.1 and disable shared libraries on
8504 # powerpc, because MkLinux only supported shared libraries with the
8505 # GNU dynamic linker. Since this was broken with cross compilers,
8506 # most powerpc-linux boxes support dynamic linking these days and
8507 # people can always --disable-shared, the test was removed, and we
8508 # assume the GNU/Linux dynamic linker is in use.
8509 dynamic_linker='GNU/Linux ld.so'
8516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8517 soname_spec='${libname}${release}${shared_ext}$major'
8518 shlibpath_var=LD_LIBRARY_PATH
8519 shlibpath_overrides_runpath=no
8520 hardcode_into_libs=yes
8521 dynamic_linker='GNU ld.so'
8528 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8531 dynamic_linker='NetBSD (a.out) ld.so'
8533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8534 soname_spec='${libname}${release}${shared_ext}$major'
8535 dynamic_linker='NetBSD ld.elf_so'
8537 shlibpath_var=LD_LIBRARY_PATH
8538 shlibpath_overrides_runpath=yes
8539 hardcode_into_libs=yes
8544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8545 shlibpath_var=LD_LIBRARY_PATH
8546 shlibpath_overrides_runpath=yes
8553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8554 soname_spec='${libname}${release}${shared_ext}$major'
8555 shlibpath_var=LD_LIBRARY_PATH
8556 shlibpath_overrides_runpath=yes
8563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8564 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8565 shlibpath_var=LD_LIBRARY_PATH
8566 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8568 openbsd2.[89] | openbsd2.[89].*)
8569 shlibpath_overrides_runpath=no
8572 shlibpath_overrides_runpath=yes
8576 shlibpath_overrides_runpath=yes
8581 libname_spec='$name'
8584 library_names_spec='$libname${shared_ext} $libname.a'
8585 dynamic_linker='OS/2 ld.exe'
8586 shlibpath_var=LIBPATH
8589 osf3* | osf4* | osf5*)
8593 soname_spec='${libname}${release}${shared_ext}$major'
8594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8595 shlibpath_var=LD_LIBRARY_PATH
8596 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8597 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8602 soname_spec='${libname}${release}${shared_ext}$major'
8603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8604 shlibpath_var=LD_LIBRARY_PATH
8611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8612 soname_spec='${libname}${release}${shared_ext}$major'
8613 shlibpath_var=LD_LIBRARY_PATH
8614 shlibpath_overrides_runpath=yes
8615 hardcode_into_libs=yes
8616 # ldd complains unless libraries are executable
8617 postinstall_cmds='chmod +x $lib'
8622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8623 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8624 shlibpath_var=LD_LIBRARY_PATH
8625 shlibpath_overrides_runpath=yes
8626 if test "$with_gnu_ld" = yes; then
8632 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8635 soname_spec='${libname}${release}${shared_ext}$major'
8636 shlibpath_var=LD_LIBRARY_PATH
8637 case $host_vendor in
8639 shlibpath_overrides_runpath=no
8641 export_dynamic_flag_spec='${wl}-Blargedynsym'
8642 runpath_var=LD_RUN_PATH
8650 shlibpath_overrides_runpath=no
8651 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8657 if test -d /usr/nec ;then
8659 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8660 soname_spec='$libname${shared_ext}.$major'
8661 shlibpath_var=LD_LIBRARY_PATH
8667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8668 soname_spec='${libname}${release}${shared_ext}$major'
8669 shlibpath_var=LD_LIBRARY_PATH
8676 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8677 echo "${ECHO_T}$dynamic_linker" >&6
8678 test "$dynamic_linker" = no && can_build_shared=no
8680 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8681 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8683 if test -n "$hardcode_libdir_flag_spec" || \
8684 test -n "$runpath_var " || \
8685 test "X$hardcode_automatic"="Xyes" ; then
8687 # We can hardcode non-existant directories.
8688 if test "$hardcode_direct" != no &&
8689 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8690 # have to relink, otherwise we might link with an installed library
8691 # when we should be linking with a yet-to-be-installed one
8692 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8693 test "$hardcode_minus_L" != no; then
8694 # Linking always hardcodes the temporary library directory.
8695 hardcode_action=relink
8697 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8698 hardcode_action=immediate
8701 # We cannot hardcode anything, or else we can only hardcode existing
8703 hardcode_action=unsupported
8705 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8706 echo "${ECHO_T}$hardcode_action" >&6
8708 if test "$hardcode_action" = relink; then
8709 # Fast installation is not supported
8710 enable_fast_install=no
8711 elif test "$shlibpath_overrides_runpath" = yes ||
8712 test "$enable_shared" = no; then
8713 # Fast installation is not necessary
8714 enable_fast_install=needless
8719 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8720 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8721 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8722 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8723 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8724 echo "$as_me:$LINENO: result: yes" >&5
8725 echo "${ECHO_T}yes" >&6
8727 # FIXME - insert some real tests, host_os isn't really good enough
8730 if test -n "$STRIP" ; then
8731 striplib="$STRIP -x"
8732 echo "$as_me:$LINENO: result: yes" >&5
8733 echo "${ECHO_T}yes" >&6
8735 echo "$as_me:$LINENO: result: no" >&5
8736 echo "${ECHO_T}no" >&6
8740 echo "$as_me:$LINENO: result: no" >&5
8741 echo "${ECHO_T}no" >&6
8746 if test "x$enable_dlopen" != xyes; then
8747 enable_dlopen=unknown
8748 enable_dlopen_self=unknown
8749 enable_dlopen_self_static=unknown
8756 lt_cv_dlopen="load_add_on"
8758 lt_cv_dlopen_self=yes
8762 lt_cv_dlopen="LoadLibrary"
8767 lt_cv_dlopen="dlopen"
8772 # if libdl is installed we need to link against it
8773 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8774 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8775 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8776 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 ac_check_lib_save_LIBS=$LIBS
8780 cat >conftest.$ac_ext <<_ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8787 /* Override any gcc2 internal prototype to avoid an error. */
8791 /* We use char because int might match the return type of a gcc2
8792 builtin and then its argument prototype would still apply. */
8802 rm -f conftest.$ac_objext conftest$ac_exeext
8803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8804 (eval $ac_link) 2>conftest.er1
8806 grep -v '^ *+' conftest.er1 >conftest.err
8808 cat conftest.err >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); } &&
8811 { ac_try='test -z "$ac_c_werror_flag"
8812 || test ! -s conftest.err'
8813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; } &&
8818 { ac_try='test -s conftest$ac_exeext'
8819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); }; }; then
8824 ac_cv_lib_dl_dlopen=yes
8826 echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8829 ac_cv_lib_dl_dlopen=no
8831 rm -f conftest.err conftest.$ac_objext \
8832 conftest$ac_exeext conftest.$ac_ext
8833 LIBS=$ac_check_lib_save_LIBS
8835 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8836 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8837 if test $ac_cv_lib_dl_dlopen = yes; then
8838 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8843 lt_cv_dlopen_self=yes
8850 echo "$as_me:$LINENO: checking for shl_load" >&5
8851 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8852 if test "${ac_cv_func_shl_load+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8855 cat >conftest.$ac_ext <<_ACEOF
8858 cat confdefs.h >>conftest.$ac_ext
8859 cat >>conftest.$ac_ext <<_ACEOF
8860 /* end confdefs.h. */
8861 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8863 #define shl_load innocuous_shl_load
8865 /* System header to define __stub macros and hopefully few prototypes,
8866 which can conflict with char shl_load (); below.
8867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8868 <limits.h> exists even on freestanding compilers. */
8871 # include <limits.h>
8873 # include <assert.h>
8878 /* Override any gcc2 internal prototype to avoid an error. */
8883 /* We use char because int might match the return type of a gcc2
8884 builtin and then its argument prototype would still apply. */
8886 /* The GNU C library defines this for functions which it implements
8887 to always fail with ENOSYS. Some functions are actually named
8888 something starting with __ and the normal name is an alias. */
8889 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8892 char (*f) () = shl_load;
8901 return f != shl_load;
8906 rm -f conftest.$ac_objext conftest$ac_exeext
8907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8908 (eval $ac_link) 2>conftest.er1
8910 grep -v '^ *+' conftest.er1 >conftest.err
8912 cat conftest.err >&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); } &&
8915 { ac_try='test -z "$ac_c_werror_flag"
8916 || test ! -s conftest.err'
8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; } &&
8922 { ac_try='test -s conftest$ac_exeext'
8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; }; then
8928 ac_cv_func_shl_load=yes
8930 echo "$as_me: failed program was:" >&5
8931 sed 's/^/| /' conftest.$ac_ext >&5
8933 ac_cv_func_shl_load=no
8935 rm -f conftest.err conftest.$ac_objext \
8936 conftest$ac_exeext conftest.$ac_ext
8938 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8939 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8940 if test $ac_cv_func_shl_load = yes; then
8941 lt_cv_dlopen="shl_load"
8943 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8944 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8945 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8946 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 ac_check_lib_save_LIBS=$LIBS
8950 cat >conftest.$ac_ext <<_ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h. */
8957 /* Override any gcc2 internal prototype to avoid an error. */
8961 /* We use char because int might match the return type of a gcc2
8962 builtin and then its argument prototype would still apply. */
8972 rm -f conftest.$ac_objext conftest$ac_exeext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8974 (eval $ac_link) 2>conftest.er1
8976 grep -v '^ *+' conftest.er1 >conftest.err
8978 cat conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
8981 { ac_try='test -z "$ac_c_werror_flag"
8982 || test ! -s conftest.err'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; } &&
8988 { ac_try='test -s conftest$ac_exeext'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 ac_cv_lib_dld_shl_load=yes
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8999 ac_cv_lib_dld_shl_load=no
9001 rm -f conftest.err conftest.$ac_objext \
9002 conftest$ac_exeext conftest.$ac_ext
9003 LIBS=$ac_check_lib_save_LIBS
9005 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9006 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9007 if test $ac_cv_lib_dld_shl_load = yes; then
9008 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9010 echo "$as_me:$LINENO: checking for dlopen" >&5
9011 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9012 if test "${ac_cv_func_dlopen+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 cat >conftest.$ac_ext <<_ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h. */
9021 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9023 #define dlopen innocuous_dlopen
9025 /* System header to define __stub macros and hopefully few prototypes,
9026 which can conflict with char dlopen (); below.
9027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9028 <limits.h> exists even on freestanding compilers. */
9031 # include <limits.h>
9033 # include <assert.h>
9038 /* Override any gcc2 internal prototype to avoid an error. */
9043 /* We use char because int might match the return type of a gcc2
9044 builtin and then its argument prototype would still apply. */
9046 /* The GNU C library defines this for functions which it implements
9047 to always fail with ENOSYS. Some functions are actually named
9048 something starting with __ and the normal name is an alias. */
9049 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9052 char (*f) () = dlopen;
9066 rm -f conftest.$ac_objext conftest$ac_exeext
9067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9068 (eval $ac_link) 2>conftest.er1
9070 grep -v '^ *+' conftest.er1 >conftest.err
9072 cat conftest.err >&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); } &&
9075 { ac_try='test -z "$ac_c_werror_flag"
9076 || test ! -s conftest.err'
9077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); }; } &&
9082 { ac_try='test -s conftest$ac_exeext'
9083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; }; then
9088 ac_cv_func_dlopen=yes
9090 echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9093 ac_cv_func_dlopen=no
9095 rm -f conftest.err conftest.$ac_objext \
9096 conftest$ac_exeext conftest.$ac_ext
9098 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9099 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9100 if test $ac_cv_func_dlopen = yes; then
9101 lt_cv_dlopen="dlopen"
9103 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9104 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9105 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
9108 ac_check_lib_save_LIBS=$LIBS
9110 cat >conftest.$ac_ext <<_ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h. */
9117 /* Override any gcc2 internal prototype to avoid an error. */
9121 /* We use char because int might match the return type of a gcc2
9122 builtin and then its argument prototype would still apply. */
9132 rm -f conftest.$ac_objext conftest$ac_exeext
9133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9134 (eval $ac_link) 2>conftest.er1
9136 grep -v '^ *+' conftest.er1 >conftest.err
9138 cat conftest.err >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } &&
9141 { ac_try='test -z "$ac_c_werror_flag"
9142 || test ! -s conftest.err'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; } &&
9148 { ac_try='test -s conftest$ac_exeext'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9154 ac_cv_lib_dl_dlopen=yes
9156 echo "$as_me: failed program was:" >&5
9157 sed 's/^/| /' conftest.$ac_ext >&5
9159 ac_cv_lib_dl_dlopen=no
9161 rm -f conftest.err conftest.$ac_objext \
9162 conftest$ac_exeext conftest.$ac_ext
9163 LIBS=$ac_check_lib_save_LIBS
9165 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9166 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9167 if test $ac_cv_lib_dl_dlopen = yes; then
9168 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9170 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9171 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9172 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9175 ac_check_lib_save_LIBS=$LIBS
9177 cat >conftest.$ac_ext <<_ACEOF
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9184 /* Override any gcc2 internal prototype to avoid an error. */
9188 /* We use char because int might match the return type of a gcc2
9189 builtin and then its argument prototype would still apply. */
9199 rm -f conftest.$ac_objext conftest$ac_exeext
9200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9201 (eval $ac_link) 2>conftest.er1
9203 grep -v '^ *+' conftest.er1 >conftest.err
9205 cat conftest.err >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } &&
9208 { ac_try='test -z "$ac_c_werror_flag"
9209 || test ! -s conftest.err'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; } &&
9215 { ac_try='test -s conftest$ac_exeext'
9216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); }; }; then
9221 ac_cv_lib_svld_dlopen=yes
9223 echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9226 ac_cv_lib_svld_dlopen=no
9228 rm -f conftest.err conftest.$ac_objext \
9229 conftest$ac_exeext conftest.$ac_ext
9230 LIBS=$ac_check_lib_save_LIBS
9232 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9233 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9234 if test $ac_cv_lib_svld_dlopen = yes; then
9235 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9237 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9238 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9239 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9242 ac_check_lib_save_LIBS=$LIBS
9244 cat >conftest.$ac_ext <<_ACEOF
9247 cat confdefs.h >>conftest.$ac_ext
9248 cat >>conftest.$ac_ext <<_ACEOF
9249 /* end confdefs.h. */
9251 /* Override any gcc2 internal prototype to avoid an error. */
9255 /* We use char because int might match the return type of a gcc2
9256 builtin and then its argument prototype would still apply. */
9266 rm -f conftest.$ac_objext conftest$ac_exeext
9267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9268 (eval $ac_link) 2>conftest.er1
9270 grep -v '^ *+' conftest.er1 >conftest.err
9272 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } &&
9275 { ac_try='test -z "$ac_c_werror_flag"
9276 || test ! -s conftest.err'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; } &&
9282 { ac_try='test -s conftest$ac_exeext'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; }; then
9288 ac_cv_lib_dld_dld_link=yes
9290 echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.$ac_ext >&5
9293 ac_cv_lib_dld_dld_link=no
9295 rm -f conftest.err conftest.$ac_objext \
9296 conftest$ac_exeext conftest.$ac_ext
9297 LIBS=$ac_check_lib_save_LIBS
9299 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9300 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9301 if test $ac_cv_lib_dld_dld_link = yes; then
9302 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9323 if test "x$lt_cv_dlopen" != xno; then
9329 case $lt_cv_dlopen in
9331 save_CPPFLAGS="$CPPFLAGS"
9332 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9334 save_LDFLAGS="$LDFLAGS"
9335 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9338 LIBS="$lt_cv_dlopen_libs $LIBS"
9340 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9341 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9342 if test "${lt_cv_dlopen_self+set}" = set; then
9343 echo $ECHO_N "(cached) $ECHO_C" >&6
9345 if test "$cross_compiling" = yes; then :
9346 lt_cv_dlopen_self=cross
9348 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9349 lt_status=$lt_dlunknown
9350 cat > conftest.$ac_ext <<EOF
9351 #line 9351 "configure"
9352 #include "confdefs.h"
9361 # define LT_DLGLOBAL RTLD_GLOBAL
9364 # define LT_DLGLOBAL DL_GLOBAL
9366 # define LT_DLGLOBAL 0
9370 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9371 find out it does not work in some platform. */
9372 #ifndef LT_DLLAZY_OR_NOW
9374 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9377 # define LT_DLLAZY_OR_NOW DL_LAZY
9380 # define LT_DLLAZY_OR_NOW RTLD_NOW
9383 # define LT_DLLAZY_OR_NOW DL_NOW
9385 # define LT_DLLAZY_OR_NOW 0
9393 extern "C" void exit (int);
9396 void fnord() { int i=42;}
9399 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9400 int status = $lt_dlunknown;
9404 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9405 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9406 /* dlclose (self); */
9412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9413 (eval $ac_link) 2>&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9417 (./conftest; exit; ) 2>/dev/null
9420 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9421 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9422 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9425 # compilation failed
9426 lt_cv_dlopen_self=no
9433 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9434 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9436 if test "x$lt_cv_dlopen_self" = xyes; then
9437 LDFLAGS="$LDFLAGS $link_static_flag"
9438 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9439 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9440 if test "${lt_cv_dlopen_self_static+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 if test "$cross_compiling" = yes; then :
9444 lt_cv_dlopen_self_static=cross
9446 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9447 lt_status=$lt_dlunknown
9448 cat > conftest.$ac_ext <<EOF
9449 #line 9449 "configure"
9450 #include "confdefs.h"
9459 # define LT_DLGLOBAL RTLD_GLOBAL
9462 # define LT_DLGLOBAL DL_GLOBAL
9464 # define LT_DLGLOBAL 0
9468 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9469 find out it does not work in some platform. */
9470 #ifndef LT_DLLAZY_OR_NOW
9472 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9475 # define LT_DLLAZY_OR_NOW DL_LAZY
9478 # define LT_DLLAZY_OR_NOW RTLD_NOW
9481 # define LT_DLLAZY_OR_NOW DL_NOW
9483 # define LT_DLLAZY_OR_NOW 0
9491 extern "C" void exit (int);
9494 void fnord() { int i=42;}
9497 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9498 int status = $lt_dlunknown;
9502 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9503 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9504 /* dlclose (self); */
9510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9511 (eval $ac_link) 2>&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9515 (./conftest; exit; ) 2>/dev/null
9518 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9519 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9520 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9523 # compilation failed
9524 lt_cv_dlopen_self_static=no
9531 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9532 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9535 CPPFLAGS="$save_CPPFLAGS"
9536 LDFLAGS="$save_LDFLAGS"
9541 case $lt_cv_dlopen_self in
9542 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9543 *) enable_dlopen_self=unknown ;;
9546 case $lt_cv_dlopen_self_static in
9547 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9548 *) enable_dlopen_self_static=unknown ;;
9553 # Report which librarie types wil actually be built
9554 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9555 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9556 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9557 echo "${ECHO_T}$can_build_shared" >&6
9559 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9560 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9561 test "$can_build_shared" = "no" && enable_shared=no
9563 # On AIX, shared libraries and static libraries use the same namespace, and
9564 # are all built from PIC.
9567 test "$enable_shared" = yes && enable_static=no
9568 if test -n "$RANLIB"; then
9569 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9570 postinstall_cmds='$RANLIB $lib'
9575 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9576 test "$enable_shared" = yes && enable_static=no
9579 darwin* | rhapsody*)
9580 if test "$GCC" = yes; then
9581 archive_cmds_need_lc=no
9583 rhapsody* | darwin1.[012])
9584 allow_undefined_flag='-undefined suppress'
9587 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9588 allow_undefined_flag='-flat_namespace -undefined suppress'
9590 case ${MACOSX_DEPLOYMENT_TARGET} in
9592 allow_undefined_flag='-flat_namespace -undefined suppress'
9595 allow_undefined_flag='-undefined dynamic_lookup'
9601 output_verbose_link_cmd='echo'
9602 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9603 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9604 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9605 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}'
9606 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}'
9608 hardcode_automatic=yes
9609 hardcode_shlibpath_var=unsupported
9610 whole_archive_flag_spec='-all_load $convenience'
9611 link_all_deplibs=yes
9617 echo "$as_me:$LINENO: result: $enable_shared" >&5
9618 echo "${ECHO_T}$enable_shared" >&6
9620 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9621 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9622 # Make sure either enable_shared or enable_static is yes.
9623 test "$enable_shared" = yes || enable_static=yes
9624 echo "$as_me:$LINENO: result: $enable_static" >&5
9625 echo "${ECHO_T}$enable_static" >&6
9627 # The else clause should only fire when bootstrapping the
9628 # libtool distribution, otherwise you forgot to ship ltmain.sh
9629 # with your package, and you will get complaints that there are
9630 # no rules to generate ltmain.sh.
9631 if test -f "$ltmain"; then
9632 # See if we are running on zsh, and set the options which allow our commands through
9633 # without removal of \ escapes.
9634 if test -n "${ZSH_VERSION+set}" ; then
9635 setopt NO_GLOB_SUBST
9637 # Now quote all the things that may contain metacharacters while being
9638 # careful not to overquote the AC_SUBSTed values. We take copies of the
9639 # variables and quote the copies for generation of the libtool script.
9640 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9642 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9643 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9644 deplibs_check_method reload_flag reload_cmds need_locks \
9645 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9646 lt_cv_sys_global_symbol_to_c_name_address \
9647 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9648 old_postinstall_cmds old_postuninstall_cmds \
9652 lt_prog_compiler_wl \
9653 lt_prog_compiler_pic \
9654 lt_prog_compiler_static \
9655 lt_prog_compiler_no_builtin_flag \
9656 export_dynamic_flag_spec \
9657 thread_safe_flag_spec \
9658 whole_archive_flag_spec \
9659 enable_shared_with_static_runtimes \
9661 old_archive_from_new_cmds \
9666 compiler_lib_search_path \
9668 archive_expsym_cmds \
9670 postuninstall_cmds \
9671 old_archive_from_expsyms_cmds \
9672 allow_undefined_flag \
9674 export_symbols_cmds \
9675 hardcode_libdir_flag_spec \
9676 hardcode_libdir_flag_spec_ld \
9677 hardcode_libdir_separator \
9678 hardcode_automatic \
9680 module_expsym_cmds \
9681 lt_cv_prog_compiler_c_o \
9686 old_archive_cmds | \
9687 old_archive_from_new_cmds | \
9689 archive_expsym_cmds | \
9691 module_expsym_cmds | \
9692 old_archive_from_expsyms_cmds | \
9693 export_symbols_cmds | \
9694 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9695 postinstall_cmds | postuninstall_cmds | \
9696 old_postinstall_cmds | old_postuninstall_cmds | \
9697 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9698 # Double-quote double-evaled strings.
9699 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9702 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9708 *'\$0 --fallback-echo"')
9709 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9714 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9716 { echo "$as_me:$LINENO: creating $ofile" >&5
9717 echo "$as_me: creating $ofile" >&6;}
9719 cat <<__EOF__ >> "$cfgfile"
9722 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9723 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9724 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9726 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9727 # Free Software Foundation, Inc.
9729 # This file is part of GNU Libtool:
9730 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9732 # This program is free software; you can redistribute it and/or modify
9733 # it under the terms of the GNU General Public License as published by
9734 # the Free Software Foundation; either version 2 of the License, or
9735 # (at your option) any later version.
9737 # This program is distributed in the hope that it will be useful, but
9738 # WITHOUT ANY WARRANTY; without even the implied warranty of
9739 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9740 # General Public License for more details.
9742 # You should have received a copy of the GNU General Public License
9743 # along with this program; if not, write to the Free Software
9744 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9746 # As a special exception to the GNU General Public License, if you
9747 # distribute this file as part of a program that contains a
9748 # configuration script generated by Autoconf, you may include it under
9749 # the same distribution terms that you use for the rest of that program.
9751 # A sed program that does not truncate output.
9754 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9755 Xsed="$SED -e s/^X//"
9757 # The HP-UX ksh and POSIX shell print the target directory to stdout
9759 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9761 # The names of the tagged configurations supported by this script.
9764 # ### BEGIN LIBTOOL CONFIG
9766 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9768 # Shell to use when invoking shell scripts.
9771 # Whether or not to build shared libraries.
9772 build_libtool_libs=$enable_shared
9774 # Whether or not to build static libraries.
9775 build_old_libs=$enable_static
9777 # Whether or not to add -lc for building shared libraries.
9778 build_libtool_need_lc=$archive_cmds_need_lc
9780 # Whether or not to disallow shared libs when runtime libs are static
9781 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9783 # Whether or not to optimize for fast installation.
9784 fast_install=$enable_fast_install
9787 host_alias=$host_alias
9790 # An echo program that does not interpret backslashes.
9795 AR_FLAGS=$lt_AR_FLAGS
9800 # A language-specific compiler.
9803 # Is the compiler the GNU C compiler?
9809 # The linker used to build libraries.
9812 # Whether we need hard or soft links.
9815 # A BSD-compatible nm program.
9818 # A symbol stripping program
9821 # Used to examine libraries when file_magic_cmd begins "file"
9822 MAGIC_CMD=$MAGIC_CMD
9824 # Used on cygwin: DLL creation program.
9827 # Used on cygwin: object dumper.
9830 # Used on cygwin: assembler.
9833 # The name of the directory that contains temporary libtool files.
9836 # How to create reloadable object files.
9837 reload_flag=$lt_reload_flag
9838 reload_cmds=$lt_reload_cmds
9840 # How to pass a linker flag through the compiler.
9841 wl=$lt_lt_prog_compiler_wl
9843 # Object file suffix (normally "o").
9846 # Old archive suffix (normally "a").
9849 # Shared library suffix (normally ".so").
9850 shrext_cmds='$shrext_cmds'
9852 # Executable file suffix (normally "").
9855 # Additional compiler flags for building library objects.
9856 pic_flag=$lt_lt_prog_compiler_pic
9859 # What is the maximum length of a command?
9860 max_cmd_len=$lt_cv_sys_max_cmd_len
9862 # Does compiler simultaneously support -c and -o options?
9863 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9865 # Must we lock files when doing compilation ?
9866 need_locks=$lt_need_locks
9868 # Do we need the lib prefix for modules?
9869 need_lib_prefix=$need_lib_prefix
9871 # Do we need a version for libraries?
9872 need_version=$need_version
9874 # Whether dlopen is supported.
9875 dlopen_support=$enable_dlopen
9877 # Whether dlopen of programs is supported.
9878 dlopen_self=$enable_dlopen_self
9880 # Whether dlopen of statically linked programs is supported.
9881 dlopen_self_static=$enable_dlopen_self_static
9883 # Compiler flag to prevent dynamic linking.
9884 link_static_flag=$lt_lt_prog_compiler_static
9886 # Compiler flag to turn off builtin functions.
9887 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9889 # Compiler flag to allow reflexive dlopens.
9890 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9892 # Compiler flag to generate shared objects directly from archives.
9893 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9895 # Compiler flag to generate thread-safe objects.
9896 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9898 # Library versioning type.
9899 version_type=$version_type
9901 # Format of library name prefix.
9902 libname_spec=$lt_libname_spec
9904 # List of archive names. First name is the real one, the rest are links.
9905 # The last name is the one that the linker finds with -lNAME.
9906 library_names_spec=$lt_library_names_spec
9908 # The coded name of the library, if different from the real name.
9909 soname_spec=$lt_soname_spec
9911 # Commands used to build and install an old-style archive.
9913 old_archive_cmds=$lt_old_archive_cmds
9914 old_postinstall_cmds=$lt_old_postinstall_cmds
9915 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9917 # Create an old-style archive from a shared archive.
9918 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9920 # Create a temporary old-style archive to link instead of a shared archive.
9921 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9923 # Commands used to build and install a shared archive.
9924 archive_cmds=$lt_archive_cmds
9925 archive_expsym_cmds=$lt_archive_expsym_cmds
9926 postinstall_cmds=$lt_postinstall_cmds
9927 postuninstall_cmds=$lt_postuninstall_cmds
9929 # Commands used to build a loadable module (assumed same as above if empty)
9930 module_cmds=$lt_module_cmds
9931 module_expsym_cmds=$lt_module_expsym_cmds
9933 # Commands to strip libraries.
9934 old_striplib=$lt_old_striplib
9935 striplib=$lt_striplib
9937 # Dependencies to place before the objects being linked to create a
9939 predep_objects=$lt_predep_objects
9941 # Dependencies to place after the objects being linked to create a
9943 postdep_objects=$lt_postdep_objects
9945 # Dependencies to place before the objects being linked to create a
9949 # Dependencies to place after the objects being linked to create a
9951 postdeps=$lt_postdeps
9953 # The library search path used internally by the compiler when linking
9955 compiler_lib_search_path=$lt_compiler_lib_search_path
9957 # Method to check whether dependent libraries are shared objects.
9958 deplibs_check_method=$lt_deplibs_check_method
9960 # Command to use when deplibs_check_method == file_magic.
9961 file_magic_cmd=$lt_file_magic_cmd
9963 # Flag that allows shared libraries with undefined symbols to be built.
9964 allow_undefined_flag=$lt_allow_undefined_flag
9966 # Flag that forces no undefined symbols.
9967 no_undefined_flag=$lt_no_undefined_flag
9969 # Commands used to finish a libtool library installation in a directory.
9970 finish_cmds=$lt_finish_cmds
9972 # Same as above, but a single script fragment to be evaled but not shown.
9973 finish_eval=$lt_finish_eval
9975 # Take the output of nm and produce a listing of raw symbols and C names.
9976 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9978 # Transform the output of nm in a proper C declaration
9979 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9981 # Transform the output of nm in a C name address pair
9982 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9984 # This is the shared library runtime path variable.
9985 runpath_var=$runpath_var
9987 # This is the shared library path variable.
9988 shlibpath_var=$shlibpath_var
9990 # Is shlibpath searched before the hard-coded library search path?
9991 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9993 # How to hardcode a shared library path into an executable.
9994 hardcode_action=$hardcode_action
9996 # Whether we should hardcode library paths into libraries.
9997 hardcode_into_libs=$hardcode_into_libs
9999 # Flag to hardcode \$libdir into a binary during linking.
10000 # This must work even if \$libdir does not exist.
10001 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10003 # If ld is used when linking, flag to hardcode \$libdir into
10004 # a binary during linking. This must work even if \$libdir does
10006 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10008 # Whether we need a single -rpath flag with a separated argument.
10009 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10011 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10012 # resulting binary.
10013 hardcode_direct=$hardcode_direct
10015 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10016 # resulting binary.
10017 hardcode_minus_L=$hardcode_minus_L
10019 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10020 # the resulting binary.
10021 hardcode_shlibpath_var=$hardcode_shlibpath_var
10023 # Set to yes if building a shared library automatically hardcodes DIR into the library
10024 # and all subsequent libraries and executables linked against it.
10025 hardcode_automatic=$hardcode_automatic
10027 # Variables whose values should be saved in libtool wrapper scripts and
10028 # restored at relink time.
10029 variables_saved_for_relink="$variables_saved_for_relink"
10031 # Whether libtool must link a program against all its dependency libraries.
10032 link_all_deplibs=$link_all_deplibs
10034 # Compile-time system search path for libraries
10035 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10037 # Run-time system search path for libraries
10038 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10040 # Fix the shell variable \$srcfile for the compiler.
10041 fix_srcfile_path="$fix_srcfile_path"
10043 # Set to yes if exported symbols are required.
10044 always_export_symbols=$always_export_symbols
10046 # The commands to list exported symbols.
10047 export_symbols_cmds=$lt_export_symbols_cmds
10049 # The commands to extract the exported symbol list from a shared archive.
10050 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10052 # Symbols that should not be listed in the preloaded symbols.
10053 exclude_expsyms=$lt_exclude_expsyms
10055 # Symbols that must always be exported.
10056 include_expsyms=$lt_include_expsyms
10058 # ### END LIBTOOL CONFIG
10065 cat <<\EOF >> "$cfgfile"
10067 # AIX sometimes has problems with the GCC collect2 program. For some
10068 # reason, if we set the COLLECT_NAMES environment variable, the problems
10069 # vanish in a puff of smoke.
10070 if test "X${COLLECT_NAMES+set}" != Xset; then
10072 export COLLECT_NAMES
10078 # We use sed instead of cat because bash on DJGPP gets confused if
10079 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10080 # text mode, it properly converts lines to CR/LF. This bash problem
10081 # is reportedly fixed, but why not run on old versions too?
10082 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10084 mv -f "$cfgfile" "$ofile" || \
10085 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10089 # If there is no Makefile yet, we rely on a make rule to execute
10090 # `config.status --recheck' to rerun these tests and create the
10091 # libtool script then.
10092 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10093 if test -f "$ltmain_in"; then
10094 test -f Makefile && make "$ltmain"
10100 ac_cpp='$CPP $CPPFLAGS'
10101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10108 # Check whether --with-tags or --without-tags was given.
10109 if test "${with_tags+set}" = set; then
10110 withval="$with_tags"
10111 tagnames="$withval"
10114 if test -f "$ltmain" && test -n "$tagnames"; then
10115 if test ! -f "${ofile}"; then
10116 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10117 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10120 if test -z "$LTCC"; then
10121 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10122 if test -z "$LTCC"; then
10123 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10124 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10126 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10127 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10131 # Extract list of available tagged configurations in $ofile.
10132 # Note that this assumes the entire list is on one line.
10133 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10135 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10136 for tagname in $tagnames; do
10138 # Check whether tagname contains only valid characters
10139 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10141 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10142 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10143 { (exit 1); exit 1; }; }
10147 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10149 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10150 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10151 { (exit 1); exit 1; }; }
10154 # Update the list of available tags.
10155 if test -n "$tagname"; then
10156 echo appending configuration tag \"$tagname\" to $ofile
10160 if test -n "$CXX" && test "X$CXX" != "Xno"; then
10162 ac_cpp='$CXXCPP $CPPFLAGS'
10163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10170 archive_cmds_need_lc_CXX=no
10171 allow_undefined_flag_CXX=
10172 always_export_symbols_CXX=no
10173 archive_expsym_cmds_CXX=
10174 export_dynamic_flag_spec_CXX=
10175 hardcode_direct_CXX=no
10176 hardcode_libdir_flag_spec_CXX=
10177 hardcode_libdir_flag_spec_ld_CXX=
10178 hardcode_libdir_separator_CXX=
10179 hardcode_minus_L_CXX=no
10180 hardcode_automatic_CXX=no
10182 module_expsym_cmds_CXX=
10183 link_all_deplibs_CXX=unknown
10184 old_archive_cmds_CXX=$old_archive_cmds
10185 no_undefined_flag_CXX=
10186 whole_archive_flag_spec_CXX=
10187 enable_shared_with_static_runtimes_CXX=no
10189 # Dependencies to place before and after the object being linked:
10190 predep_objects_CXX=
10191 postdep_objects_CXX=
10194 compiler_lib_search_path_CXX=
10196 # Source file extension for C++ test sources.
10199 # Object file extension for compiled C++ test sources.
10203 # Code to be used in simple compile tests
10204 lt_simple_compile_test_code="int some_variable = 0;\n"
10206 # Code to be used in simple link tests
10207 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10209 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10211 # If no C compiler was specified, use CC.
10214 # Allow CC to be a program name with arguments.
10218 # Allow CC to be a program name with arguments.
10223 lt_save_with_gnu_ld=$with_gnu_ld
10224 lt_save_path_LD=$lt_cv_path_LD
10225 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10226 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10228 unset lt_cv_prog_gnu_ld
10230 if test -n "${lt_cv_path_LDCXX+set}"; then
10231 lt_cv_path_LD=$lt_cv_path_LDCXX
10233 unset lt_cv_path_LD
10235 test -z "${LDCXX+set}" || LD=$LDCXX
10239 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10241 # We don't want -fno-exception wen compiling C++ code, so set the
10242 # no_builtin_flag separately
10243 if test "$GXX" = yes; then
10244 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10246 lt_prog_compiler_no_builtin_flag_CXX=
10249 if test "$GXX" = yes; then
10250 # Set up default GNU C++ configuration
10253 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10254 if test "${with_gnu_ld+set}" = set; then
10255 withval="$with_gnu_ld"
10256 test "$withval" = no || with_gnu_ld=yes
10261 if test "$GCC" = yes; then
10262 # Check if gcc -print-prog-name=ld gives a path.
10263 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10264 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10267 # gcc leaves a trailing carriage return which upsets mingw
10268 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10270 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10273 # Accept absolute paths.
10275 re_direlt='/[^/][^/]*/\.\./'
10276 # Canonicalize the pathname of ld
10277 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10278 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10279 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10281 test -z "$LD" && LD="$ac_prog"
10284 # If it fails, then pretend we aren't using GCC.
10288 # If it is relative, then search for the first ld in PATH.
10289 with_gnu_ld=unknown
10292 elif test "$with_gnu_ld" = yes; then
10293 echo "$as_me:$LINENO: checking for GNU ld" >&5
10294 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10296 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10297 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10299 if test "${lt_cv_path_LD+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 if test -z "$LD"; then
10303 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10304 for ac_dir in $PATH; do
10306 test -z "$ac_dir" && ac_dir=.
10307 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10308 lt_cv_path_LD="$ac_dir/$ac_prog"
10309 # Check to see if the program is GNU ld. I'd rather use --version,
10310 # but apparently some GNU ld's only accept -v.
10311 # Break only if it was the GNU/non-GNU ld that we prefer.
10312 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10313 *GNU* | *'with BFD'*)
10314 test "$with_gnu_ld" != no && break
10317 test "$with_gnu_ld" != yes && break
10324 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10328 LD="$lt_cv_path_LD"
10329 if test -n "$LD"; then
10330 echo "$as_me:$LINENO: result: $LD" >&5
10331 echo "${ECHO_T}$LD" >&6
10333 echo "$as_me:$LINENO: result: no" >&5
10334 echo "${ECHO_T}no" >&6
10336 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10337 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10338 { (exit 1); exit 1; }; }
10339 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10340 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10341 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10345 case `$LD -v 2>&1 </dev/null` in
10346 *GNU* | *'with BFD'*)
10347 lt_cv_prog_gnu_ld=yes
10350 lt_cv_prog_gnu_ld=no
10354 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10355 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10356 with_gnu_ld=$lt_cv_prog_gnu_ld
10360 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10361 # archiving commands below assume that GNU ld is being used.
10362 if test "$with_gnu_ld" = yes; then
10363 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10364 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'
10366 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10367 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10369 # If archive_cmds runs LD, not CC, wlarc should be empty
10370 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10371 # investigate it a little bit more. (MM)
10374 # ancient GNU ld didn't support --whole-archive et. al.
10375 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10376 grep 'no-whole-archive' > /dev/null; then
10377 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10379 whole_archive_flag_spec_CXX=
10385 # A generic and very simple default shared library creation
10386 # command for GNU C++ for the case where it uses the native
10387 # linker, instead of GNU ld. If possible, this setting should
10388 # overridden to take advantage of the native linker features on
10389 # the platform it is being used on.
10390 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10393 # Commands to make compiler produce verbose output that lists
10394 # what "hidden" libraries, object files and flags are used when
10395 # linking a shared library.
10396 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10404 # PORTME: fill in a description of your system's C++ link characteristics
10405 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10406 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10410 # FIXME: insert proper C++ library support
10414 if test "$host_cpu" = ia64; then
10415 # On IA64, the linker does run time linking by default, so we don't
10416 # have to do anything special.
10417 aix_use_runtimelinking=no
10418 exp_sym_flag='-Bexport'
10421 aix_use_runtimelinking=no
10423 # Test if we are trying to use run time linking or normal
10424 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10425 # need to do runtime linking.
10426 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10427 for ld_flag in $LDFLAGS; do
10430 aix_use_runtimelinking=yes
10437 exp_sym_flag='-bexport'
10438 no_entry_flag='-bnoentry'
10441 # When large executables or shared objects are built, AIX ld can
10442 # have problems creating the table of contents. If linking a library
10443 # or program results in "error TOC overflow" add -mminimal-toc to
10444 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10445 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10447 archive_cmds_CXX=''
10448 hardcode_direct_CXX=yes
10449 hardcode_libdir_separator_CXX=':'
10450 link_all_deplibs_CXX=yes
10452 if test "$GXX" = yes; then
10453 case $host_os in aix4.012|aix4.012.*)
10454 # We only want to do this on AIX 4.2 and lower, the check
10455 # below for broken collect2 doesn't work under 4.3+
10456 collect2name=`${CC} -print-prog-name=collect2`
10457 if test -f "$collect2name" && \
10458 strings "$collect2name" | grep resolve_lib_name >/dev/null
10460 # We have reworked collect2
10461 hardcode_direct_CXX=yes
10463 # We have old collect2
10464 hardcode_direct_CXX=unsupported
10465 # It fails to find uninstalled libraries when the uninstalled
10466 # path is not listed in the libpath. Setting hardcode_minus_L
10467 # to unsupported forces relinking
10468 hardcode_minus_L_CXX=yes
10469 hardcode_libdir_flag_spec_CXX='-L$libdir'
10470 hardcode_libdir_separator_CXX=
10473 shared_flag='-shared'
10476 if test "$host_cpu" = ia64; then
10477 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10478 # chokes on -Wl,-G. The following line is correct:
10481 if test "$aix_use_runtimelinking" = yes; then
10482 shared_flag='${wl}-G'
10484 shared_flag='${wl}-bM:SRE'
10489 # It seems that -bexpall does not export symbols beginning with
10490 # underscore (_), so it is better to generate a list of symbols to export.
10491 always_export_symbols_CXX=yes
10492 if test "$aix_use_runtimelinking" = yes; then
10493 # Warning - without using the other runtime loading flags (-brtl),
10494 # -berok will link without error, but may produce a broken library.
10495 allow_undefined_flag_CXX='-berok'
10496 # Determine the default libpath from the value encoded in an empty executable.
10497 cat >conftest.$ac_ext <<_ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10512 rm -f conftest.$ac_objext conftest$ac_exeext
10513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10514 (eval $ac_link) 2>conftest.er1
10516 grep -v '^ *+' conftest.er1 >conftest.err
10518 cat conftest.err >&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } &&
10521 { ac_try='test -z "$ac_cxx_werror_flag"
10522 || test ! -s conftest.err'
10523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; } &&
10528 { ac_try='test -s conftest$ac_exeext'
10529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530 (eval $ac_try) 2>&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; }; then
10535 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10537 # Check for a 64-bit object if we didn't find anything.
10538 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; }
10541 echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.$ac_ext >&5
10545 rm -f conftest.err conftest.$ac_objext \
10546 conftest$ac_exeext conftest.$ac_ext
10547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10549 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10551 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"
10553 if test "$host_cpu" = ia64; then
10554 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10555 allow_undefined_flag_CXX="-z nodefs"
10556 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"
10558 # Determine the default libpath from the value encoded in an empty executable.
10559 cat >conftest.$ac_ext <<_ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h. */
10574 rm -f conftest.$ac_objext conftest$ac_exeext
10575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10576 (eval $ac_link) 2>conftest.er1
10578 grep -v '^ *+' conftest.er1 >conftest.err
10580 cat conftest.err >&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } &&
10583 { ac_try='test -z "$ac_cxx_werror_flag"
10584 || test ! -s conftest.err'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; } &&
10590 { ac_try='test -s conftest$ac_exeext'
10591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10592 (eval $ac_try) 2>&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; }; then
10597 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10599 # Check for a 64-bit object if we didn't find anything.
10600 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; }
10603 echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10607 rm -f conftest.err conftest.$ac_objext \
10608 conftest$ac_exeext conftest.$ac_ext
10609 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10611 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10612 # Warning - without using the other run time loading flags,
10613 # -berok will link without error, but may produce a broken library.
10614 no_undefined_flag_CXX=' ${wl}-bernotok'
10615 allow_undefined_flag_CXX=' ${wl}-berok'
10616 # -bexpall does not export symbols beginning with underscore (_)
10617 always_export_symbols_CXX=yes
10618 # Exported symbols can be pulled into shared objects from archives
10619 whole_archive_flag_spec_CXX=' '
10620 archive_cmds_need_lc_CXX=yes
10621 # This is similar to how AIX traditionally builds it's shared libraries.
10622 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'
10627 case $cc_basename in
10629 # FIXME: insert proper C++ library support
10635 cygwin* | mingw* | pw32*)
10636 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10637 # as there is no search path for DLLs.
10638 hardcode_libdir_flag_spec_CXX='-L$libdir'
10639 allow_undefined_flag_CXX=unsupported
10640 always_export_symbols_CXX=no
10641 enable_shared_with_static_runtimes_CXX=yes
10643 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10644 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'
10645 # If the export-symbols file already is a .def file (1st line
10646 # is EXPORTS), use it as is; otherwise, prepend...
10647 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10648 cp $export_symbols $output_objdir/$soname.def;
10650 echo EXPORTS > $output_objdir/$soname.def;
10651 cat $export_symbols >> $output_objdir/$soname.def;
10653 $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'
10659 darwin* | rhapsody*)
10660 if test "$GXX" = yes; then
10661 archive_cmds_need_lc_CXX=no
10663 rhapsody* | darwin1.[012])
10664 allow_undefined_flag_CXX='-undefined suppress'
10667 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10668 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10670 case ${MACOSX_DEPLOYMENT_TARGET} in
10672 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10675 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10681 lt_int_apple_cc_single_mod=no
10682 output_verbose_link_cmd='echo'
10683 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10684 lt_int_apple_cc_single_mod=yes
10686 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10687 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10689 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10691 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10693 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10694 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10695 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}'
10697 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10699 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}'
10700 hardcode_direct_CXX=no
10701 hardcode_automatic_CXX=yes
10702 hardcode_shlibpath_var_CXX=unsupported
10703 whole_archive_flag_spec_CXX='-all_load $convenience'
10704 link_all_deplibs_CXX=yes
10711 case $cc_basename in
10713 # FIXME: insert proper C++ library support
10717 # Green Hills C++ Compiler
10718 # FIXME: insert proper C++ library support
10722 # FIXME: insert proper C++ library support
10728 # C++ shared libraries reported to be fairly broken before switch to ELF
10732 archive_cmds_need_lc_CXX=no
10734 freebsd* | kfreebsd*-gnu)
10735 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10742 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10743 hardcode_libdir_separator_CXX=:
10744 export_dynamic_flag_spec_CXX='${wl}-E'
10745 hardcode_direct_CXX=yes
10746 hardcode_minus_L_CXX=yes # Not in the search PATH,
10747 # but as the default
10748 # location of the library.
10750 case $cc_basename in
10752 # FIXME: insert proper C++ library support
10756 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'
10757 # Commands to make compiler produce verbose output that lists
10758 # what "hidden" libraries, object files and flags are used when
10759 # linking a shared library.
10761 # There doesn't appear to be a way to prevent this compiler from
10762 # explicitly linking system object files so we need to strip them
10763 # from the output so that they don't get included in the library
10765 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'
10768 if test "$GXX" = yes; then
10769 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'
10771 # FIXME: insert proper C++ library support
10778 if test $with_gnu_ld = no; then
10779 case "$host_cpu" in
10781 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10782 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10783 hardcode_libdir_separator_CXX=:
10786 hardcode_libdir_flag_spec_CXX='-L$libdir'
10789 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10790 hardcode_libdir_separator_CXX=:
10791 export_dynamic_flag_spec_CXX='${wl}-E'
10795 case "$host_cpu" in
10797 hardcode_direct_CXX=no
10798 hardcode_shlibpath_var_CXX=no
10801 hardcode_direct_CXX=no
10802 hardcode_shlibpath_var_CXX=no
10803 hardcode_minus_L_CXX=yes # Not in the search PATH,
10804 # but as the default
10805 # location of the library.
10808 hardcode_direct_CXX=yes
10809 hardcode_minus_L_CXX=yes # Not in the search PATH,
10810 # but as the default
10811 # location of the library.
10815 case $cc_basename in
10817 # FIXME: insert proper C++ library support
10821 case "$host_cpu" in
10823 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10826 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10829 # Commands to make compiler produce verbose output that lists
10830 # what "hidden" libraries, object files and flags are used when
10831 # linking a shared library.
10833 # There doesn't appear to be a way to prevent this compiler from
10834 # explicitly linking system object files so we need to strip them
10835 # from the output so that they don't get included in the library
10837 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'
10840 if test "$GXX" = yes; then
10841 if test $with_gnu_ld = no; then
10842 case "$host_cpu" in
10844 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10847 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'
10852 # FIXME: insert proper C++ library support
10859 case $cc_basename in
10862 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10864 # Archives containing C++ object files must be created using
10865 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10866 # necessary to make sure instantiated templates are included
10868 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10871 if test "$GXX" = yes; then
10872 if test "$with_gnu_ld" = no; then
10873 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10875 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'
10878 link_all_deplibs_CXX=yes
10881 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10882 hardcode_libdir_separator_CXX=:
10885 case $cc_basename in
10887 # Kuck and Associates, Inc. (KAI) C++ Compiler
10889 # KCC will only create a shared library if the output file
10890 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10891 # to its proper name (with version) after linking.
10892 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'
10893 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'
10894 # Commands to make compiler produce verbose output that lists
10895 # what "hidden" libraries, object files and flags are used when
10896 # linking a shared library.
10898 # There doesn't appear to be a way to prevent this compiler from
10899 # explicitly linking system object files so we need to strip them
10900 # from the output so that they don't get included in the library
10902 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'
10904 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10905 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10907 # Archives containing C++ object files must be created using
10908 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10909 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10914 archive_cmds_need_lc_CXX=no
10915 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10916 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'
10917 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10918 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10919 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10923 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10924 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'
10926 runpath_var=LD_RUN_PATH
10927 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10928 hardcode_libdir_separator_CXX=:
10930 # Commands to make compiler produce verbose output that lists
10931 # what "hidden" libraries, object files and flags are used when
10932 # linking a shared library.
10934 # There doesn't appear to be a way to prevent this compiler from
10935 # explicitly linking system object files so we need to strip them
10936 # from the output so that they don't get included in the library
10938 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'
10943 # FIXME: insert proper C++ library support
10947 # FIXME: insert proper C++ library support
10951 case $cc_basename in
10953 # FIXME: insert proper C++ library support
10957 # FIXME: insert proper C++ library support
10963 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10964 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10966 hardcode_libdir_flag_spec_CXX='-R$libdir'
10967 hardcode_direct_CXX=yes
10968 hardcode_shlibpath_var_CXX=no
10970 # Workaround some broken pre-1.5 toolchains
10971 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10974 case $cc_basename in
10976 # Kuck and Associates, Inc. (KAI) C++ Compiler
10978 # KCC will only create a shared library if the output file
10979 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10980 # to its proper name (with version) after linking.
10981 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'
10983 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10984 hardcode_libdir_separator_CXX=:
10986 # Archives containing C++ object files must be created using
10987 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10988 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10992 # Rational C++ 2.4.1
10993 # FIXME: insert proper C++ library support
10997 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10998 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11000 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11001 hardcode_libdir_separator_CXX=:
11003 # Commands to make compiler produce verbose output that lists
11004 # what "hidden" libraries, object files and flags are used when
11005 # linking a shared library.
11007 # There doesn't appear to be a way to prevent this compiler from
11008 # explicitly linking system object files so we need to strip them
11009 # from the output so that they don't get included in the library
11011 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'
11014 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11015 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11016 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11018 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11019 hardcode_libdir_separator_CXX=:
11021 # Commands to make compiler produce verbose output that lists
11022 # what "hidden" libraries, object files and flags are used when
11023 # linking a shared library.
11024 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11027 # FIXME: insert proper C++ library support
11034 case $cc_basename in
11036 # Kuck and Associates, Inc. (KAI) C++ Compiler
11038 # KCC will only create a shared library if the output file
11039 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11040 # to its proper name (with version) after linking.
11041 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'
11043 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11044 hardcode_libdir_separator_CXX=:
11046 # Archives containing C++ object files must be created using
11047 # the KAI C++ compiler.
11048 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11051 # Rational C++ 2.4.1
11052 # FIXME: insert proper C++ library support
11056 allow_undefined_flag_CXX=' -expect_unresolved \*'
11057 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11058 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11059 echo "-hidden">> $lib.exp~
11060 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
11063 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11064 hardcode_libdir_separator_CXX=:
11066 # Commands to make compiler produce verbose output that lists
11067 # what "hidden" libraries, object files and flags are used when
11068 # linking a shared library.
11070 # There doesn't appear to be a way to prevent this compiler from
11071 # explicitly linking system object files so we need to strip them
11072 # from the output so that they don't get included in the library
11074 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'
11077 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11078 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11079 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11081 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11082 hardcode_libdir_separator_CXX=:
11084 # Commands to make compiler produce verbose output that lists
11085 # what "hidden" libraries, object files and flags are used when
11086 # linking a shared library.
11087 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11090 # FIXME: insert proper C++ library support
11097 # FIXME: insert proper C++ library support
11101 archive_cmds_need_lc_CXX=no
11102 case $cc_basename in
11104 # FIXME: insert proper C++ library support
11108 # FIXME: insert proper C++ library support
11114 case $cc_basename in
11117 # FIXME: insert proper C++ library support
11122 # FIXME: insert proper C++ library support
11126 # FIXME: insert proper C++ library support
11132 case $cc_basename in
11134 # Sun C++ 4.2, 5.x and Centerline C++
11135 no_undefined_flag_CXX=' -zdefs'
11136 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11137 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11138 $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'
11140 hardcode_libdir_flag_spec_CXX='-R$libdir'
11141 hardcode_shlibpath_var_CXX=no
11143 solaris2.0-5 | solaris2.0-5.*) ;;
11145 # The C++ compiler is used as linker so we must use $wl
11146 # flag to pass the commands to the underlying system
11148 # Supported since Solaris 2.6 (maybe 2.5.1?)
11149 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11152 link_all_deplibs_CXX=yes
11154 # Commands to make compiler produce verbose output that lists
11155 # what "hidden" libraries, object files and flags are used when
11156 # linking a shared library.
11158 # There doesn't appear to be a way to prevent this compiler from
11159 # explicitly linking system object files so we need to strip them
11160 # from the output so that they don't get included in the library
11162 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'
11164 # Archives containing C++ object files must be created using
11165 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11166 # necessary to make sure instantiated templates are included
11168 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11171 # Green Hills C++ Compiler
11172 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11174 # The C++ compiler must be used to create the archive.
11175 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11178 # GNU C++ compiler with Solaris linker
11179 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11180 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11181 if $CC --version | grep -v '^2\.7' > /dev/null; then
11182 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11183 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11184 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11186 # Commands to make compiler produce verbose output that lists
11187 # what "hidden" libraries, object files and flags are used when
11188 # linking a shared library.
11189 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11191 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11193 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11194 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11195 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11197 # Commands to make compiler produce verbose output that lists
11198 # what "hidden" libraries, object files and flags are used when
11199 # linking a shared library.
11200 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11203 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11208 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11209 archive_cmds_need_lc_CXX=no
11212 case $cc_basename in
11214 # NonStop-UX NCC 3.20
11215 # FIXME: insert proper C++ library support
11219 # FIXME: insert proper C++ library support
11225 # FIXME: insert proper C++ library support
11229 # FIXME: insert proper C++ library support
11233 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11234 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11235 test "$ld_shlibs_CXX" = no && can_build_shared=no
11241 cat > conftest.$ac_ext <<EOF
11245 Foo (void) { a = 0; }
11251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11252 (eval $ac_compile) 2>&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; then
11256 # Parse the compiler output and extract the necessary
11257 # objects, libraries and library flags.
11259 # Sentinel used to keep track of whether or not we are before
11260 # the conftest object file.
11261 pre_test_object_deps_done=no
11263 # The `*' in the case matches for architectures that use `case' in
11264 # $output_verbose_cmd can trigger glob expansion during the loop
11265 # eval without this substitution.
11266 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11268 for p in `eval $output_verbose_link_cmd`; do
11272 # Some compilers place space between "-{L,R}" and the path.
11273 # Remove the space.
11274 if test $p = "-L" \
11275 || test $p = "-R"; then
11282 if test "$pre_test_object_deps_done" = no; then
11285 # Internal compiler library paths should come after those
11286 # provided the user. The postdeps already come after the
11287 # user supplied libs so there is no need to process them.
11288 if test -z "$compiler_lib_search_path_CXX"; then
11289 compiler_lib_search_path_CXX="${prev}${p}"
11291 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11294 # The "-l" case would never come before the object being
11295 # linked, so don't bother handling this case.
11298 if test -z "$postdeps_CXX"; then
11299 postdeps_CXX="${prev}${p}"
11301 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11307 # This assumes that the test object file only shows up
11308 # once in the compiler output.
11309 if test "$p" = "conftest.$objext"; then
11310 pre_test_object_deps_done=yes
11314 if test "$pre_test_object_deps_done" = no; then
11315 if test -z "$predep_objects_CXX"; then
11316 predep_objects_CXX="$p"
11318 predep_objects_CXX="$predep_objects_CXX $p"
11321 if test -z "$postdep_objects_CXX"; then
11322 postdep_objects_CXX="$p"
11324 postdep_objects_CXX="$postdep_objects_CXX $p"
11329 *) ;; # Ignore the rest.
11337 echo "libtool.m4: error: problem compiling CXX test program"
11340 $rm -f confest.$objext
11342 case " $postdeps_CXX " in
11343 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11346 lt_prog_compiler_wl_CXX=
11347 lt_prog_compiler_pic_CXX=
11348 lt_prog_compiler_static_CXX=
11350 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11351 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11353 # C++ specific cases for pic, static, wl, etc.
11354 if test "$GXX" = yes; then
11355 lt_prog_compiler_wl_CXX='-Wl,'
11356 lt_prog_compiler_static_CXX='-static'
11360 # All AIX code is PIC.
11361 if test "$host_cpu" = ia64; then
11362 # AIX 5 now supports IA64 processor
11363 lt_prog_compiler_static_CXX='-Bstatic'
11367 # FIXME: we need at least 68020 code to build shared libraries, but
11368 # adding the `-m68020' flag to GCC prevents building anything better,
11370 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11372 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11373 # PIC is the default for these OSes.
11375 mingw* | os2* | pw32*)
11376 # This hack is so that the source file can tell whether it is being
11377 # built for inclusion in a dll (and should export symbols for example).
11378 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11380 darwin* | rhapsody*)
11381 # PIC is the default on this platform
11382 # Common symbols not allowed in MH_DYLIB files
11383 lt_prog_compiler_pic_CXX='-fno-common'
11386 # DJGPP does not support shared libraries at all
11387 lt_prog_compiler_pic_CXX=
11390 if test -d /usr/nec; then
11391 lt_prog_compiler_pic_CXX=-Kconform_pic
11395 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11396 # not for PA HP-UX.
11397 case "$host_cpu" in
11401 lt_prog_compiler_pic_CXX='-fPIC'
11406 lt_prog_compiler_pic_CXX='-fPIC'
11412 # All AIX code is PIC.
11413 if test "$host_cpu" = ia64; then
11414 # AIX 5 now supports IA64 processor
11415 lt_prog_compiler_static_CXX='-Bstatic'
11417 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11421 case $cc_basename in
11423 # Green Hills C++ Compiler
11424 # _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"
11429 case $cc_basename in
11431 lt_prog_compiler_pic_CXX='-KPIC'
11434 # Green Hills C++ Compiler
11435 lt_prog_compiler_pic_CXX='-pic'
11441 freebsd* | kfreebsd*-gnu)
11442 # FreeBSD uses GNU C++
11444 hpux9* | hpux10* | hpux11*)
11445 case $cc_basename in
11447 lt_prog_compiler_wl_CXX='-Wl,'
11448 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11449 if test "$host_cpu" != ia64; then
11450 lt_prog_compiler_pic_CXX='+Z'
11454 lt_prog_compiler_wl_CXX='-Wl,'
11455 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11456 case "$host_cpu" in
11461 lt_prog_compiler_pic_CXX='+Z'
11469 irix5* | irix6* | nonstopux*)
11470 case $cc_basename in
11472 lt_prog_compiler_wl_CXX='-Wl,'
11473 lt_prog_compiler_static_CXX='-non_shared'
11474 # CC pic flag -KPIC is the default.
11481 case $cc_basename in
11484 lt_prog_compiler_wl_CXX='--backend -Wl,'
11485 lt_prog_compiler_pic_CXX='-fPIC'
11489 lt_prog_compiler_wl_CXX='-Wl,'
11490 lt_prog_compiler_pic_CXX='-KPIC'
11491 lt_prog_compiler_static_CXX='-static'
11495 # Make sure the PIC flag is empty. It appears that all Alpha
11496 # Linux and Compaq Tru64 Unix objects are PIC.
11497 lt_prog_compiler_pic_CXX=
11498 lt_prog_compiler_static_CXX='-non_shared'
11509 case $cc_basename in
11511 lt_prog_compiler_pic_CXX='-W c,exportall'
11519 osf3* | osf4* | osf5*)
11520 case $cc_basename in
11522 lt_prog_compiler_wl_CXX='--backend -Wl,'
11525 # Rational C++ 2.4.1
11526 lt_prog_compiler_pic_CXX='-pic'
11529 # Digital/Compaq C++
11530 lt_prog_compiler_wl_CXX='-Wl,'
11531 # Make sure the PIC flag is empty. It appears that all Alpha
11532 # Linux and Compaq Tru64 Unix objects are PIC.
11533 lt_prog_compiler_pic_CXX=
11534 lt_prog_compiler_static_CXX='-non_shared'
11543 case $cc_basename in
11545 lt_prog_compiler_pic_CXX='-fPIC'
11552 case $cc_basename in
11554 # Sun C++ 4.2, 5.x and Centerline C++
11555 lt_prog_compiler_pic_CXX='-KPIC'
11556 lt_prog_compiler_static_CXX='-Bstatic'
11557 lt_prog_compiler_wl_CXX='-Qoption ld '
11560 # Green Hills C++ Compiler
11561 lt_prog_compiler_pic_CXX='-PIC'
11568 case $cc_basename in
11571 lt_prog_compiler_pic_CXX='-pic'
11572 lt_prog_compiler_static_CXX='-Bstatic'
11576 lt_prog_compiler_pic_CXX='-pic'
11583 case $cc_basename in
11585 # NonStop-UX NCC 3.20
11586 lt_prog_compiler_pic_CXX='-KPIC'
11597 lt_prog_compiler_can_build_shared_CXX=no
11602 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11603 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11606 # Check to make sure the PIC flag actually works.
11608 if test -n "$lt_prog_compiler_pic_CXX"; then
11610 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11611 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11612 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 lt_prog_compiler_pic_works_CXX=no
11616 ac_outfile=conftest.$ac_objext
11617 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11618 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11619 # Insert the option either (1) after the last *FLAGS variable, or
11620 # (2) before a word containing "conftest.", or (3) at the end.
11621 # Note that $ac_compile itself does not contain backslashes and begins
11622 # with a dollar sign (not a hyphen), so the echo should work correctly.
11623 # The option is referenced via a variable to avoid confusing sed.
11624 lt_compile=`echo "$ac_compile" | $SED \
11625 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11627 -e 's:$: $lt_compiler_flag:'`
11628 (eval echo "\"\$as_me:11628: $lt_compile\"" >&5)
11629 (eval "$lt_compile" 2>conftest.err)
11631 cat conftest.err >&5
11632 echo "$as_me:11632: \$? = $ac_status" >&5
11633 if (exit $ac_status) && test -s "$ac_outfile"; then
11634 # The compiler can only warn and ignore the option if not recognized
11635 # So say no if there are warnings
11636 if test ! -s conftest.err; then
11637 lt_prog_compiler_pic_works_CXX=yes
11643 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11644 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11646 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11647 case $lt_prog_compiler_pic_CXX in
11649 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11652 lt_prog_compiler_pic_CXX=
11653 lt_prog_compiler_can_build_shared_CXX=no
11658 # For platforms which do not support PIC, -DPIC is meaningless:
11660 lt_prog_compiler_pic_CXX=
11663 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11667 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11668 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11669 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11672 lt_cv_prog_compiler_c_o_CXX=no
11673 $rm -r conftest 2>/dev/null
11677 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11679 lt_compiler_flag="-o out/conftest2.$ac_objext"
11680 # Insert the option either (1) after the last *FLAGS variable, or
11681 # (2) before a word containing "conftest.", or (3) at the end.
11682 # Note that $ac_compile itself does not contain backslashes and begins
11683 # with a dollar sign (not a hyphen), so the echo should work correctly.
11684 lt_compile=`echo "$ac_compile" | $SED \
11685 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11687 -e 's:$: $lt_compiler_flag:'`
11688 (eval echo "\"\$as_me:11688: $lt_compile\"" >&5)
11689 (eval "$lt_compile" 2>out/conftest.err)
11691 cat out/conftest.err >&5
11692 echo "$as_me:11692: \$? = $ac_status" >&5
11693 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11695 # The compiler can only warn and ignore the option if not recognized
11696 # So say no if there are warnings
11697 if test ! -s out/conftest.err; then
11698 lt_cv_prog_compiler_c_o_CXX=yes
11703 # SGI C++ compiler will create directory out/ii_files/ for
11704 # template instantiation
11705 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11706 $rm out/* && rmdir out
11712 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11713 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11716 hard_links="nottested"
11717 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11718 # do not overwrite the value of need_locks provided by the user
11719 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11720 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11723 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11725 ln conftest.a conftest.b 2>&5 || hard_links=no
11726 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11727 echo "$as_me:$LINENO: result: $hard_links" >&5
11728 echo "${ECHO_T}$hard_links" >&6
11729 if test "$hard_links" = no; then
11730 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11731 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11738 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11739 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11741 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11744 # If we're using GNU nm, then we don't want the "-C" option.
11745 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11746 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11747 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'
11749 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'
11753 export_symbols_cmds_CXX="$ltdll_cmds"
11756 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11759 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11763 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11764 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11765 test "$ld_shlibs_CXX" = no && can_build_shared=no
11767 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11768 if test "$GCC" = yes; then
11769 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11773 # Do we need to explicitly link libc?
11775 case "x$archive_cmds_need_lc_CXX" in
11777 # Assume -lc should be added
11778 archive_cmds_need_lc_CXX=yes
11780 if test "$enable_shared" = yes && test "$GCC" = yes; then
11781 case $archive_cmds_CXX in
11783 # FIXME: we may have to deal with multi-command sequences.
11786 # Test whether the compiler implicitly links with -lc since on some
11787 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11788 # to ld, don't add -lc before -lgcc.
11789 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11790 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11792 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11795 (eval $ac_compile) 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } 2>conftest.err; then
11801 libobjs=conftest.$ac_objext
11803 wl=$lt_prog_compiler_wl_CXX
11809 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11810 allow_undefined_flag_CXX=
11811 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11812 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }
11817 archive_cmds_need_lc_CXX=no
11819 archive_cmds_need_lc_CXX=yes
11821 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11823 cat conftest.err 1>&5
11826 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11827 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11834 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11835 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11836 library_names_spec=
11837 libname_spec='lib$name'
11841 postuninstall_cmds=
11845 shlibpath_overrides_runpath=unknown
11847 dynamic_linker="$host_os ld.so"
11848 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11849 if test "$GCC" = yes; then
11850 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11851 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11852 # if the path contains ";" then we assume it to be the separator
11853 # otherwise default to the standard path separator (i.e. ":") - it is
11854 # assumed that no part of a normal pathname contains ";" but that should
11855 # okay in the real world where ";" in dirpaths is itself problematic.
11856 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11858 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11861 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11863 need_lib_prefix=unknown
11864 hardcode_into_libs=no
11866 # when you set need_version to no, make sure it does not cause -set_version
11867 # flags to be left without arguments
11868 need_version=unknown
11873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11874 shlibpath_var=LIBPATH
11876 # AIX 3 has no versioning support, so we append a major version to the name.
11877 soname_spec='${libname}${release}${shared_ext}$major'
11884 hardcode_into_libs=yes
11885 if test "$host_cpu" = ia64; then
11886 # AIX 5 supports IA64
11887 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11888 shlibpath_var=LD_LIBRARY_PATH
11890 # With GCC up to 2.95.x, collect2 would create an import file
11891 # for dependence libraries. The import file would start with
11892 # the line `#! .'. This would cause the generated library to
11893 # depend on `.', always an invalid library. This was fixed in
11894 # development snapshots of GCC prior to 3.0.
11896 aix4 | aix4.[01] | aix4.[01].*)
11897 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11899 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11902 can_build_shared=no
11906 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11907 # soname into executable. Probably we can add versioning support to
11908 # collect2, so additional links can be useful in future.
11909 if test "$aix_use_runtimelinking" = yes; then
11910 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11911 # instead of lib<name>.a to let people know that these are not
11912 # typical AIX shared libraries.
11913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11915 # We preserve .a as extension for shared libraries through AIX4.2
11916 # and later when we are not doing run time linking.
11917 library_names_spec='${libname}${release}.a $libname.a'
11918 soname_spec='${libname}${release}${shared_ext}$major'
11920 shlibpath_var=LIBPATH
11925 library_names_spec='$libname.ixlibrary $libname.a'
11926 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11927 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'
11931 library_names_spec='${libname}${shared_ext}'
11932 dynamic_linker="$host_os ld.so"
11933 shlibpath_var=LIBRARY_PATH
11939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11940 soname_spec='${libname}${release}${shared_ext}$major'
11941 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11942 shlibpath_var=LD_LIBRARY_PATH
11943 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11944 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11945 # the default ld.so.conf also contains /usr/contrib/lib and
11946 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11947 # libtool to hard-code these into programs
11950 cygwin* | mingw* | pw32*)
11951 version_type=windows
11956 case $GCC,$host_os in
11957 yes,cygwin* | yes,mingw* | yes,pw32*)
11958 library_names_spec='$libname.dll.a'
11959 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11960 postinstall_cmds='base_file=`basename \${file}`~
11961 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11962 dldir=$destdir/`dirname \$dlpath`~
11963 test -d \$dldir || mkdir -p \$dldir~
11964 $install_prog $dir/$dlname \$dldir/$dlname'
11965 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11966 dlpath=$dir/\$dldll~
11968 shlibpath_overrides_runpath=yes
11972 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11973 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11974 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11977 # MinGW DLLs use traditional 'lib' prefix
11978 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11979 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11980 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11981 # It is most probably a Windows format PATH printed by
11982 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11983 # path with ; separators, and with drive letters. We can handle the
11984 # drive letters (cygwin fileutils understands them), so leave them,
11985 # especially as we might pass files found there to a mingw objdump,
11986 # which wouldn't understand a cygwinified path. Ahh.
11987 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11989 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11993 # pw32 DLLs use 'pw' prefix rather than 'lib'
11994 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12000 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12003 dynamic_linker='Win32 ld.exe'
12004 # FIXME: first we should search . and the directory the executable is in
12008 darwin* | rhapsody*)
12009 dynamic_linker="$host_os dyld"
12010 version_type=darwin
12013 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12014 soname_spec='${libname}${release}${major}$shared_ext'
12015 shlibpath_overrides_runpath=yes
12016 shlibpath_var=DYLD_LIBRARY_PATH
12017 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12018 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12019 if test "$GCC" = yes; then
12020 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"`
12022 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12024 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12032 soname_spec='${libname}${release}${shared_ext}$major'
12033 shlibpath_var=LD_LIBRARY_PATH
12044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12045 soname_spec='${libname}${release}${shared_ext}$major'
12046 shlibpath_var=LD_LIBRARY_PATH
12047 shlibpath_overrides_runpath=no
12048 hardcode_into_libs=yes
12049 dynamic_linker='GNU ld.so'
12053 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12054 version_type=freebsd-$objformat
12055 case $version_type in
12057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12062 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12066 shlibpath_var=LD_LIBRARY_PATH
12069 shlibpath_overrides_runpath=yes
12071 freebsd3.01* | freebsdelf3.01*)
12072 shlibpath_overrides_runpath=yes
12073 hardcode_into_libs=yes
12076 shlibpath_overrides_runpath=no
12077 hardcode_into_libs=yes
12086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12087 soname_spec='${libname}${release}${shared_ext}$major'
12088 shlibpath_var=LD_LIBRARY_PATH
12089 hardcode_into_libs=yes
12092 hpux9* | hpux10* | hpux11*)
12093 # Give a soname corresponding to the major version so that dld.sl refuses to
12094 # link against other versions.
12098 case "$host_cpu" in
12101 hardcode_into_libs=yes
12102 dynamic_linker="$host_os dld.so"
12103 shlibpath_var=LD_LIBRARY_PATH
12104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12106 soname_spec='${libname}${release}${shared_ext}$major'
12107 if test "X$HPUX_IA64_MODE" = X32; then
12108 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12110 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12116 hardcode_into_libs=yes
12117 dynamic_linker="$host_os dld.sl"
12118 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12121 soname_spec='${libname}${release}${shared_ext}$major'
12122 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12127 dynamic_linker="$host_os dld.sl"
12128 shlibpath_var=SHLIB_PATH
12129 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12131 soname_spec='${libname}${release}${shared_ext}$major'
12134 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12135 postinstall_cmds='chmod 555 $lib'
12138 irix5* | irix6* | nonstopux*)
12140 nonstopux*) version_type=nonstopux ;;
12142 if test "$lt_cv_prog_gnu_ld" = yes; then
12150 soname_spec='${libname}${release}${shared_ext}$major'
12151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12153 irix5* | nonstopux*)
12154 libsuff= shlibsuff=
12157 case $LD in # libtool.m4 will add one of these switches to LD
12158 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12159 libsuff= shlibsuff= libmagic=32-bit;;
12160 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12161 libsuff=32 shlibsuff=N32 libmagic=N32;;
12162 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12163 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12164 *) libsuff= shlibsuff= libmagic=never-match;;
12168 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12169 shlibpath_overrides_runpath=no
12170 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12171 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12172 hardcode_into_libs=yes
12175 # No shared lib support for Linux oldld, aout, or coff.
12176 linux*oldld* | linux*aout* | linux*coff*)
12180 # This must be Linux ELF.
12185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12186 soname_spec='${libname}${release}${shared_ext}$major'
12187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12188 shlibpath_var=LD_LIBRARY_PATH
12189 shlibpath_overrides_runpath=no
12190 # This implies no fast_install, which is unacceptable.
12191 # Some rework will be needed to allow for fast_install
12192 # before this can be enabled.
12193 hardcode_into_libs=yes
12195 # find out which ABI we are using
12197 case "$host_cpu" in
12198 x86_64*|s390x*|powerpc64*)
12199 echo '#line 12199 "configure"' > conftest.$ac_ext
12200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12201 (eval $ac_compile) 2>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; then
12205 case `/usr/bin/file conftest.$ac_objext` in
12208 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12216 # Append ld.so.conf contents to the search path
12217 if test -f /etc/ld.so.conf; then
12218 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12219 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12222 # We used to test for /lib/ld.so.1 and disable shared libraries on
12223 # powerpc, because MkLinux only supported shared libraries with the
12224 # GNU dynamic linker. Since this was broken with cross compilers,
12225 # most powerpc-linux boxes support dynamic linking these days and
12226 # people can always --disable-shared, the test was removed, and we
12227 # assume the GNU/Linux dynamic linker is in use.
12228 dynamic_linker='GNU/Linux ld.so'
12235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12236 soname_spec='${libname}${release}${shared_ext}$major'
12237 shlibpath_var=LD_LIBRARY_PATH
12238 shlibpath_overrides_runpath=no
12239 hardcode_into_libs=yes
12240 dynamic_linker='GNU ld.so'
12247 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12250 dynamic_linker='NetBSD (a.out) ld.so'
12252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12253 soname_spec='${libname}${release}${shared_ext}$major'
12254 dynamic_linker='NetBSD ld.elf_so'
12256 shlibpath_var=LD_LIBRARY_PATH
12257 shlibpath_overrides_runpath=yes
12258 hardcode_into_libs=yes
12263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12264 shlibpath_var=LD_LIBRARY_PATH
12265 shlibpath_overrides_runpath=yes
12272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12273 soname_spec='${libname}${release}${shared_ext}$major'
12274 shlibpath_var=LD_LIBRARY_PATH
12275 shlibpath_overrides_runpath=yes
12282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12284 shlibpath_var=LD_LIBRARY_PATH
12285 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12287 openbsd2.[89] | openbsd2.[89].*)
12288 shlibpath_overrides_runpath=no
12291 shlibpath_overrides_runpath=yes
12295 shlibpath_overrides_runpath=yes
12300 libname_spec='$name'
12303 library_names_spec='$libname${shared_ext} $libname.a'
12304 dynamic_linker='OS/2 ld.exe'
12305 shlibpath_var=LIBPATH
12308 osf3* | osf4* | osf5*)
12312 soname_spec='${libname}${release}${shared_ext}$major'
12313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12314 shlibpath_var=LD_LIBRARY_PATH
12315 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12316 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12321 soname_spec='${libname}${release}${shared_ext}$major'
12322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12323 shlibpath_var=LD_LIBRARY_PATH
12330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12331 soname_spec='${libname}${release}${shared_ext}$major'
12332 shlibpath_var=LD_LIBRARY_PATH
12333 shlibpath_overrides_runpath=yes
12334 hardcode_into_libs=yes
12335 # ldd complains unless libraries are executable
12336 postinstall_cmds='chmod +x $lib'
12341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12342 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12343 shlibpath_var=LD_LIBRARY_PATH
12344 shlibpath_overrides_runpath=yes
12345 if test "$with_gnu_ld" = yes; then
12351 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12354 soname_spec='${libname}${release}${shared_ext}$major'
12355 shlibpath_var=LD_LIBRARY_PATH
12356 case $host_vendor in
12358 shlibpath_overrides_runpath=no
12360 export_dynamic_flag_spec='${wl}-Blargedynsym'
12361 runpath_var=LD_RUN_PATH
12369 shlibpath_overrides_runpath=no
12370 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12376 if test -d /usr/nec ;then
12378 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12379 soname_spec='$libname${shared_ext}.$major'
12380 shlibpath_var=LD_LIBRARY_PATH
12386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12387 soname_spec='${libname}${release}${shared_ext}$major'
12388 shlibpath_var=LD_LIBRARY_PATH
12395 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12396 echo "${ECHO_T}$dynamic_linker" >&6
12397 test "$dynamic_linker" = no && can_build_shared=no
12399 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12400 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12401 hardcode_action_CXX=
12402 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12403 test -n "$runpath_var CXX" || \
12404 test "X$hardcode_automatic_CXX"="Xyes" ; then
12406 # We can hardcode non-existant directories.
12407 if test "$hardcode_direct_CXX" != no &&
12408 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12409 # have to relink, otherwise we might link with an installed library
12410 # when we should be linking with a yet-to-be-installed one
12411 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12412 test "$hardcode_minus_L_CXX" != no; then
12413 # Linking always hardcodes the temporary library directory.
12414 hardcode_action_CXX=relink
12416 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12417 hardcode_action_CXX=immediate
12420 # We cannot hardcode anything, or else we can only hardcode existing
12422 hardcode_action_CXX=unsupported
12424 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12425 echo "${ECHO_T}$hardcode_action_CXX" >&6
12427 if test "$hardcode_action_CXX" = relink; then
12428 # Fast installation is not supported
12429 enable_fast_install=no
12430 elif test "$shlibpath_overrides_runpath" = yes ||
12431 test "$enable_shared" = no; then
12432 # Fast installation is not necessary
12433 enable_fast_install=needless
12438 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12439 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12440 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12441 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12442 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12443 echo "$as_me:$LINENO: result: yes" >&5
12444 echo "${ECHO_T}yes" >&6
12446 # FIXME - insert some real tests, host_os isn't really good enough
12449 if test -n "$STRIP" ; then
12450 striplib="$STRIP -x"
12451 echo "$as_me:$LINENO: result: yes" >&5
12452 echo "${ECHO_T}yes" >&6
12454 echo "$as_me:$LINENO: result: no" >&5
12455 echo "${ECHO_T}no" >&6
12459 echo "$as_me:$LINENO: result: no" >&5
12460 echo "${ECHO_T}no" >&6
12465 if test "x$enable_dlopen" != xyes; then
12466 enable_dlopen=unknown
12467 enable_dlopen_self=unknown
12468 enable_dlopen_self_static=unknown
12475 lt_cv_dlopen="load_add_on"
12477 lt_cv_dlopen_self=yes
12481 lt_cv_dlopen="LoadLibrary"
12486 lt_cv_dlopen="dlopen"
12491 # if libdl is installed we need to link against it
12492 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12493 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12494 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12497 ac_check_lib_save_LIBS=$LIBS
12499 cat >conftest.$ac_ext <<_ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12506 /* Override any gcc2 internal prototype to avoid an error. */
12510 /* We use char because int might match the return type of a gcc2
12511 builtin and then its argument prototype would still apply. */
12521 rm -f conftest.$ac_objext conftest$ac_exeext
12522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12523 (eval $ac_link) 2>conftest.er1
12525 grep -v '^ *+' conftest.er1 >conftest.err
12527 cat conftest.err >&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -z "$ac_cxx_werror_flag"
12531 || test ! -s conftest.err'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest$ac_exeext'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12543 ac_cv_lib_dl_dlopen=yes
12545 echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12548 ac_cv_lib_dl_dlopen=no
12550 rm -f conftest.err conftest.$ac_objext \
12551 conftest$ac_exeext conftest.$ac_ext
12552 LIBS=$ac_check_lib_save_LIBS
12554 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12555 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12556 if test $ac_cv_lib_dl_dlopen = yes; then
12557 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12560 lt_cv_dlopen="dyld"
12562 lt_cv_dlopen_self=yes
12569 echo "$as_me:$LINENO: checking for shl_load" >&5
12570 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12571 if test "${ac_cv_func_shl_load+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12574 cat >conftest.$ac_ext <<_ACEOF
12577 cat confdefs.h >>conftest.$ac_ext
12578 cat >>conftest.$ac_ext <<_ACEOF
12579 /* end confdefs.h. */
12580 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12582 #define shl_load innocuous_shl_load
12584 /* System header to define __stub macros and hopefully few prototypes,
12585 which can conflict with char shl_load (); below.
12586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12587 <limits.h> exists even on freestanding compilers. */
12590 # include <limits.h>
12592 # include <assert.h>
12597 /* Override any gcc2 internal prototype to avoid an error. */
12602 /* We use char because int might match the return type of a gcc2
12603 builtin and then its argument prototype would still apply. */
12605 /* The GNU C library defines this for functions which it implements
12606 to always fail with ENOSYS. Some functions are actually named
12607 something starting with __ and the normal name is an alias. */
12608 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12611 char (*f) () = shl_load;
12620 return f != shl_load;
12625 rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12627 (eval $ac_link) 2>conftest.er1
12629 grep -v '^ *+' conftest.er1 >conftest.err
12631 cat conftest.err >&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try='test -z "$ac_cxx_werror_flag"
12635 || test ! -s conftest.err'
12636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637 (eval $ac_try) 2>&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; } &&
12641 { ac_try='test -s conftest$ac_exeext'
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
12647 ac_cv_func_shl_load=yes
12649 echo "$as_me: failed program was:" >&5
12650 sed 's/^/| /' conftest.$ac_ext >&5
12652 ac_cv_func_shl_load=no
12654 rm -f conftest.err conftest.$ac_objext \
12655 conftest$ac_exeext conftest.$ac_ext
12657 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12658 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12659 if test $ac_cv_func_shl_load = yes; then
12660 lt_cv_dlopen="shl_load"
12662 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12663 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12664 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12667 ac_check_lib_save_LIBS=$LIBS
12669 cat >conftest.$ac_ext <<_ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12676 /* Override any gcc2 internal prototype to avoid an error. */
12680 /* We use char because int might match the return type of a gcc2
12681 builtin and then its argument prototype would still apply. */
12691 rm -f conftest.$ac_objext conftest$ac_exeext
12692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12693 (eval $ac_link) 2>conftest.er1
12695 grep -v '^ *+' conftest.er1 >conftest.err
12697 cat conftest.err >&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } &&
12700 { ac_try='test -z "$ac_cxx_werror_flag"
12701 || test ! -s conftest.err'
12702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703 (eval $ac_try) 2>&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }; } &&
12707 { ac_try='test -s conftest$ac_exeext'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 ac_cv_lib_dld_shl_load=yes
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12718 ac_cv_lib_dld_shl_load=no
12720 rm -f conftest.err conftest.$ac_objext \
12721 conftest$ac_exeext conftest.$ac_ext
12722 LIBS=$ac_check_lib_save_LIBS
12724 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12725 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12726 if test $ac_cv_lib_dld_shl_load = yes; then
12727 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12729 echo "$as_me:$LINENO: checking for dlopen" >&5
12730 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12731 if test "${ac_cv_func_dlopen+set}" = set; then
12732 echo $ECHO_N "(cached) $ECHO_C" >&6
12734 cat >conftest.$ac_ext <<_ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h. */
12740 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12742 #define dlopen innocuous_dlopen
12744 /* System header to define __stub macros and hopefully few prototypes,
12745 which can conflict with char dlopen (); below.
12746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12747 <limits.h> exists even on freestanding compilers. */
12750 # include <limits.h>
12752 # include <assert.h>
12757 /* Override any gcc2 internal prototype to avoid an error. */
12762 /* We use char because int might match the return type of a gcc2
12763 builtin and then its argument prototype would still apply. */
12765 /* The GNU C library defines this for functions which it implements
12766 to always fail with ENOSYS. Some functions are actually named
12767 something starting with __ and the normal name is an alias. */
12768 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12771 char (*f) () = dlopen;
12780 return f != dlopen;
12785 rm -f conftest.$ac_objext conftest$ac_exeext
12786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12787 (eval $ac_link) 2>conftest.er1
12789 grep -v '^ *+' conftest.er1 >conftest.err
12791 cat conftest.err >&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } &&
12794 { ac_try='test -z "$ac_cxx_werror_flag"
12795 || test ! -s conftest.err'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; } &&
12801 { ac_try='test -s conftest$ac_exeext'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 ac_cv_func_dlopen=yes
12809 echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12812 ac_cv_func_dlopen=no
12814 rm -f conftest.err conftest.$ac_objext \
12815 conftest$ac_exeext conftest.$ac_ext
12817 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12818 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12819 if test $ac_cv_func_dlopen = yes; then
12820 lt_cv_dlopen="dlopen"
12822 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12823 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12824 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12827 ac_check_lib_save_LIBS=$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_dl_dlopen=yes
12875 echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.$ac_ext >&5
12878 ac_cv_lib_dl_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_dl_dlopen" >&5
12885 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12886 if test $ac_cv_lib_dl_dlopen = yes; then
12887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12889 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12890 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12891 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12894 ac_check_lib_save_LIBS=$LIBS
12895 LIBS="-lsvld $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_svld_dlopen=yes
12942 echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12945 ac_cv_lib_svld_dlopen=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_svld_dlopen" >&5
12952 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12953 if test $ac_cv_lib_svld_dlopen = yes; then
12954 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12956 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12957 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12958 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 ac_check_lib_save_LIBS=$LIBS
12963 cat >conftest.$ac_ext <<_ACEOF
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h. */
12970 /* Override any gcc2 internal prototype to avoid an error. */
12974 /* We use char because int might match the return type of a gcc2
12975 builtin and then its argument prototype would still apply. */
12985 rm -f conftest.$ac_objext conftest$ac_exeext
12986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12987 (eval $ac_link) 2>conftest.er1
12989 grep -v '^ *+' conftest.er1 >conftest.err
12991 cat conftest.err >&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } &&
12994 { ac_try='test -z "$ac_cxx_werror_flag"
12995 || test ! -s conftest.err'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; } &&
13001 { ac_try='test -s conftest$ac_exeext'
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; }; then
13007 ac_cv_lib_dld_dld_link=yes
13009 echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13012 ac_cv_lib_dld_dld_link=no
13014 rm -f conftest.err conftest.$ac_objext \
13015 conftest$ac_exeext conftest.$ac_ext
13016 LIBS=$ac_check_lib_save_LIBS
13018 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13019 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13020 if test $ac_cv_lib_dld_dld_link = yes; then
13021 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13042 if test "x$lt_cv_dlopen" != xno; then
13048 case $lt_cv_dlopen in
13050 save_CPPFLAGS="$CPPFLAGS"
13051 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13053 save_LDFLAGS="$LDFLAGS"
13054 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13057 LIBS="$lt_cv_dlopen_libs $LIBS"
13059 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13060 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13061 if test "${lt_cv_dlopen_self+set}" = set; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13064 if test "$cross_compiling" = yes; then :
13065 lt_cv_dlopen_self=cross
13067 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13068 lt_status=$lt_dlunknown
13069 cat > conftest.$ac_ext <<EOF
13070 #line 13070 "configure"
13071 #include "confdefs.h"
13080 # define LT_DLGLOBAL RTLD_GLOBAL
13083 # define LT_DLGLOBAL DL_GLOBAL
13085 # define LT_DLGLOBAL 0
13089 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13090 find out it does not work in some platform. */
13091 #ifndef LT_DLLAZY_OR_NOW
13093 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13096 # define LT_DLLAZY_OR_NOW DL_LAZY
13099 # define LT_DLLAZY_OR_NOW RTLD_NOW
13102 # define LT_DLLAZY_OR_NOW DL_NOW
13104 # define LT_DLLAZY_OR_NOW 0
13112 extern "C" void exit (int);
13115 void fnord() { int i=42;}
13118 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13119 int status = $lt_dlunknown;
13123 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13124 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13125 /* dlclose (self); */
13131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13132 (eval $ac_link) 2>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13136 (./conftest; exit; ) 2>/dev/null
13138 case x$lt_status in
13139 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13140 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13141 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13144 # compilation failed
13145 lt_cv_dlopen_self=no
13152 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13153 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13155 if test "x$lt_cv_dlopen_self" = xyes; then
13156 LDFLAGS="$LDFLAGS $link_static_flag"
13157 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13158 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13159 if test "${lt_cv_dlopen_self_static+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 if test "$cross_compiling" = yes; then :
13163 lt_cv_dlopen_self_static=cross
13165 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13166 lt_status=$lt_dlunknown
13167 cat > conftest.$ac_ext <<EOF
13168 #line 13168 "configure"
13169 #include "confdefs.h"
13178 # define LT_DLGLOBAL RTLD_GLOBAL
13181 # define LT_DLGLOBAL DL_GLOBAL
13183 # define LT_DLGLOBAL 0
13187 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13188 find out it does not work in some platform. */
13189 #ifndef LT_DLLAZY_OR_NOW
13191 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13194 # define LT_DLLAZY_OR_NOW DL_LAZY
13197 # define LT_DLLAZY_OR_NOW RTLD_NOW
13200 # define LT_DLLAZY_OR_NOW DL_NOW
13202 # define LT_DLLAZY_OR_NOW 0
13210 extern "C" void exit (int);
13213 void fnord() { int i=42;}
13216 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13217 int status = $lt_dlunknown;
13221 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13222 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13223 /* dlclose (self); */
13229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13230 (eval $ac_link) 2>&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13234 (./conftest; exit; ) 2>/dev/null
13236 case x$lt_status in
13237 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13238 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13239 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13242 # compilation failed
13243 lt_cv_dlopen_self_static=no
13250 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13251 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13254 CPPFLAGS="$save_CPPFLAGS"
13255 LDFLAGS="$save_LDFLAGS"
13260 case $lt_cv_dlopen_self in
13261 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13262 *) enable_dlopen_self=unknown ;;
13265 case $lt_cv_dlopen_self_static in
13266 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13267 *) enable_dlopen_self_static=unknown ;;
13272 # The else clause should only fire when bootstrapping the
13273 # libtool distribution, otherwise you forgot to ship ltmain.sh
13274 # with your package, and you will get complaints that there are
13275 # no rules to generate ltmain.sh.
13276 if test -f "$ltmain"; then
13277 # See if we are running on zsh, and set the options which allow our commands through
13278 # without removal of \ escapes.
13279 if test -n "${ZSH_VERSION+set}" ; then
13280 setopt NO_GLOB_SUBST
13282 # Now quote all the things that may contain metacharacters while being
13283 # careful not to overquote the AC_SUBSTed values. We take copies of the
13284 # variables and quote the copies for generation of the libtool script.
13285 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13287 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13288 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13289 deplibs_check_method reload_flag reload_cmds need_locks \
13290 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13291 lt_cv_sys_global_symbol_to_c_name_address \
13292 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13293 old_postinstall_cmds old_postuninstall_cmds \
13297 lt_prog_compiler_wl_CXX \
13298 lt_prog_compiler_pic_CXX \
13299 lt_prog_compiler_static_CXX \
13300 lt_prog_compiler_no_builtin_flag_CXX \
13301 export_dynamic_flag_spec_CXX \
13302 thread_safe_flag_spec_CXX \
13303 whole_archive_flag_spec_CXX \
13304 enable_shared_with_static_runtimes_CXX \
13305 old_archive_cmds_CXX \
13306 old_archive_from_new_cmds_CXX \
13307 predep_objects_CXX \
13308 postdep_objects_CXX \
13311 compiler_lib_search_path_CXX \
13313 archive_expsym_cmds_CXX \
13314 postinstall_cmds_CXX \
13315 postuninstall_cmds_CXX \
13316 old_archive_from_expsyms_cmds_CXX \
13317 allow_undefined_flag_CXX \
13318 no_undefined_flag_CXX \
13319 export_symbols_cmds_CXX \
13320 hardcode_libdir_flag_spec_CXX \
13321 hardcode_libdir_flag_spec_ld_CXX \
13322 hardcode_libdir_separator_CXX \
13323 hardcode_automatic_CXX \
13325 module_expsym_cmds_CXX \
13326 lt_cv_prog_compiler_c_o_CXX \
13327 exclude_expsyms_CXX \
13328 include_expsyms_CXX; do
13331 old_archive_cmds_CXX | \
13332 old_archive_from_new_cmds_CXX | \
13333 archive_cmds_CXX | \
13334 archive_expsym_cmds_CXX | \
13335 module_cmds_CXX | \
13336 module_expsym_cmds_CXX | \
13337 old_archive_from_expsyms_cmds_CXX | \
13338 export_symbols_cmds_CXX | \
13339 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13340 postinstall_cmds | postuninstall_cmds | \
13341 old_postinstall_cmds | old_postuninstall_cmds | \
13342 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13343 # Double-quote double-evaled strings.
13344 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13347 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13353 *'\$0 --fallback-echo"')
13354 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13360 cat <<__EOF__ >> "$cfgfile"
13361 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13363 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13365 # Shell to use when invoking shell scripts.
13368 # Whether or not to build shared libraries.
13369 build_libtool_libs=$enable_shared
13371 # Whether or not to build static libraries.
13372 build_old_libs=$enable_static
13374 # Whether or not to add -lc for building shared libraries.
13375 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13377 # Whether or not to disallow shared libs when runtime libs are static
13378 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13380 # Whether or not to optimize for fast installation.
13381 fast_install=$enable_fast_install
13384 host_alias=$host_alias
13387 # An echo program that does not interpret backslashes.
13392 AR_FLAGS=$lt_AR_FLAGS
13397 # A language-specific compiler.
13398 CC=$lt_compiler_CXX
13400 # Is the compiler the GNU C compiler?
13406 # The linker used to build libraries.
13409 # Whether we need hard or soft links.
13412 # A BSD-compatible nm program.
13415 # A symbol stripping program
13418 # Used to examine libraries when file_magic_cmd begins "file"
13419 MAGIC_CMD=$MAGIC_CMD
13421 # Used on cygwin: DLL creation program.
13424 # Used on cygwin: object dumper.
13427 # Used on cygwin: assembler.
13430 # The name of the directory that contains temporary libtool files.
13433 # How to create reloadable object files.
13434 reload_flag=$lt_reload_flag
13435 reload_cmds=$lt_reload_cmds
13437 # How to pass a linker flag through the compiler.
13438 wl=$lt_lt_prog_compiler_wl_CXX
13440 # Object file suffix (normally "o").
13441 objext="$ac_objext"
13443 # Old archive suffix (normally "a").
13446 # Shared library suffix (normally ".so").
13447 shrext_cmds='$shrext_cmds'
13449 # Executable file suffix (normally "").
13452 # Additional compiler flags for building library objects.
13453 pic_flag=$lt_lt_prog_compiler_pic_CXX
13456 # What is the maximum length of a command?
13457 max_cmd_len=$lt_cv_sys_max_cmd_len
13459 # Does compiler simultaneously support -c and -o options?
13460 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13462 # Must we lock files when doing compilation ?
13463 need_locks=$lt_need_locks
13465 # Do we need the lib prefix for modules?
13466 need_lib_prefix=$need_lib_prefix
13468 # Do we need a version for libraries?
13469 need_version=$need_version
13471 # Whether dlopen is supported.
13472 dlopen_support=$enable_dlopen
13474 # Whether dlopen of programs is supported.
13475 dlopen_self=$enable_dlopen_self
13477 # Whether dlopen of statically linked programs is supported.
13478 dlopen_self_static=$enable_dlopen_self_static
13480 # Compiler flag to prevent dynamic linking.
13481 link_static_flag=$lt_lt_prog_compiler_static_CXX
13483 # Compiler flag to turn off builtin functions.
13484 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13486 # Compiler flag to allow reflexive dlopens.
13487 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13489 # Compiler flag to generate shared objects directly from archives.
13490 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13492 # Compiler flag to generate thread-safe objects.
13493 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13495 # Library versioning type.
13496 version_type=$version_type
13498 # Format of library name prefix.
13499 libname_spec=$lt_libname_spec
13501 # List of archive names. First name is the real one, the rest are links.
13502 # The last name is the one that the linker finds with -lNAME.
13503 library_names_spec=$lt_library_names_spec
13505 # The coded name of the library, if different from the real name.
13506 soname_spec=$lt_soname_spec
13508 # Commands used to build and install an old-style archive.
13510 old_archive_cmds=$lt_old_archive_cmds_CXX
13511 old_postinstall_cmds=$lt_old_postinstall_cmds
13512 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13514 # Create an old-style archive from a shared archive.
13515 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13517 # Create a temporary old-style archive to link instead of a shared archive.
13518 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13520 # Commands used to build and install a shared archive.
13521 archive_cmds=$lt_archive_cmds_CXX
13522 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13523 postinstall_cmds=$lt_postinstall_cmds
13524 postuninstall_cmds=$lt_postuninstall_cmds
13526 # Commands used to build a loadable module (assumed same as above if empty)
13527 module_cmds=$lt_module_cmds_CXX
13528 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13530 # Commands to strip libraries.
13531 old_striplib=$lt_old_striplib
13532 striplib=$lt_striplib
13534 # Dependencies to place before the objects being linked to create a
13536 predep_objects=$lt_predep_objects_CXX
13538 # Dependencies to place after the objects being linked to create a
13540 postdep_objects=$lt_postdep_objects_CXX
13542 # Dependencies to place before the objects being linked to create a
13544 predeps=$lt_predeps_CXX
13546 # Dependencies to place after the objects being linked to create a
13548 postdeps=$lt_postdeps_CXX
13550 # The library search path used internally by the compiler when linking
13551 # a shared library.
13552 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13554 # Method to check whether dependent libraries are shared objects.
13555 deplibs_check_method=$lt_deplibs_check_method
13557 # Command to use when deplibs_check_method == file_magic.
13558 file_magic_cmd=$lt_file_magic_cmd
13560 # Flag that allows shared libraries with undefined symbols to be built.
13561 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13563 # Flag that forces no undefined symbols.
13564 no_undefined_flag=$lt_no_undefined_flag_CXX
13566 # Commands used to finish a libtool library installation in a directory.
13567 finish_cmds=$lt_finish_cmds
13569 # Same as above, but a single script fragment to be evaled but not shown.
13570 finish_eval=$lt_finish_eval
13572 # Take the output of nm and produce a listing of raw symbols and C names.
13573 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13575 # Transform the output of nm in a proper C declaration
13576 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13578 # Transform the output of nm in a C name address pair
13579 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13581 # This is the shared library runtime path variable.
13582 runpath_var=$runpath_var
13584 # This is the shared library path variable.
13585 shlibpath_var=$shlibpath_var
13587 # Is shlibpath searched before the hard-coded library search path?
13588 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13590 # How to hardcode a shared library path into an executable.
13591 hardcode_action=$hardcode_action_CXX
13593 # Whether we should hardcode library paths into libraries.
13594 hardcode_into_libs=$hardcode_into_libs
13596 # Flag to hardcode \$libdir into a binary during linking.
13597 # This must work even if \$libdir does not exist.
13598 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13600 # If ld is used when linking, flag to hardcode \$libdir into
13601 # a binary during linking. This must work even if \$libdir does
13603 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13605 # Whether we need a single -rpath flag with a separated argument.
13606 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13608 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13609 # resulting binary.
13610 hardcode_direct=$hardcode_direct_CXX
13612 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13613 # resulting binary.
13614 hardcode_minus_L=$hardcode_minus_L_CXX
13616 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13617 # the resulting binary.
13618 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13620 # Set to yes if building a shared library automatically hardcodes DIR into the library
13621 # and all subsequent libraries and executables linked against it.
13622 hardcode_automatic=$hardcode_automatic_CXX
13624 # Variables whose values should be saved in libtool wrapper scripts and
13625 # restored at relink time.
13626 variables_saved_for_relink="$variables_saved_for_relink"
13628 # Whether libtool must link a program against all its dependency libraries.
13629 link_all_deplibs=$link_all_deplibs_CXX
13631 # Compile-time system search path for libraries
13632 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13634 # Run-time system search path for libraries
13635 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13637 # Fix the shell variable \$srcfile for the compiler.
13638 fix_srcfile_path="$fix_srcfile_path_CXX"
13640 # Set to yes if exported symbols are required.
13641 always_export_symbols=$always_export_symbols_CXX
13643 # The commands to list exported symbols.
13644 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13646 # The commands to extract the exported symbol list from a shared archive.
13647 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13649 # Symbols that should not be listed in the preloaded symbols.
13650 exclude_expsyms=$lt_exclude_expsyms_CXX
13652 # Symbols that must always be exported.
13653 include_expsyms=$lt_include_expsyms_CXX
13655 # ### END LIBTOOL TAG CONFIG: $tagname
13661 # If there is no Makefile yet, we rely on a make rule to execute
13662 # `config.status --recheck' to rerun these tests and create the
13663 # libtool script then.
13664 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13665 if test -f "$ltmain_in"; then
13666 test -f Makefile && make "$ltmain"
13672 ac_cpp='$CPP $CPPFLAGS'
13673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13681 with_gnu_ldcxx=$with_gnu_ld
13682 with_gnu_ld=$lt_save_with_gnu_ld
13683 lt_cv_path_LDCXX=$lt_cv_path_LD
13684 lt_cv_path_LD=$lt_save_path_LD
13685 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13686 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13694 if test -n "$F77" && test "X$F77" != "Xno"; then
13697 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13698 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13699 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13702 archive_cmds_need_lc_F77=no
13703 allow_undefined_flag_F77=
13704 always_export_symbols_F77=no
13705 archive_expsym_cmds_F77=
13706 export_dynamic_flag_spec_F77=
13707 hardcode_direct_F77=no
13708 hardcode_libdir_flag_spec_F77=
13709 hardcode_libdir_flag_spec_ld_F77=
13710 hardcode_libdir_separator_F77=
13711 hardcode_minus_L_F77=no
13712 hardcode_automatic_F77=no
13714 module_expsym_cmds_F77=
13715 link_all_deplibs_F77=unknown
13716 old_archive_cmds_F77=$old_archive_cmds
13717 no_undefined_flag_F77=
13718 whole_archive_flag_spec_F77=
13719 enable_shared_with_static_runtimes_F77=no
13721 # Source file extension for f77 test sources.
13724 # Object file extension for compiled f77 test sources.
13728 # Code to be used in simple compile tests
13729 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13731 # Code to be used in simple link tests
13732 lt_simple_link_test_code=" program t\n end\n"
13734 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13736 # If no C compiler was specified, use CC.
13739 # Allow CC to be a program name with arguments.
13743 # Allow CC to be a program name with arguments.
13748 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13750 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13751 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13752 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13753 echo "${ECHO_T}$can_build_shared" >&6
13755 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13756 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13757 test "$can_build_shared" = "no" && enable_shared=no
13759 # On AIX, shared libraries and static libraries use the same namespace, and
13760 # are all built from PIC.
13763 test "$enable_shared" = yes && enable_static=no
13764 if test -n "$RANLIB"; then
13765 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13766 postinstall_cmds='$RANLIB $lib'
13770 test "$enable_shared" = yes && enable_static=no
13773 echo "$as_me:$LINENO: result: $enable_shared" >&5
13774 echo "${ECHO_T}$enable_shared" >&6
13776 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13777 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13778 # Make sure either enable_shared or enable_static is yes.
13779 test "$enable_shared" = yes || enable_static=yes
13780 echo "$as_me:$LINENO: result: $enable_static" >&5
13781 echo "${ECHO_T}$enable_static" >&6
13783 test "$ld_shlibs_F77" = no && can_build_shared=no
13788 lt_prog_compiler_wl_F77=
13789 lt_prog_compiler_pic_F77=
13790 lt_prog_compiler_static_F77=
13792 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13793 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13795 if test "$GCC" = yes; then
13796 lt_prog_compiler_wl_F77='-Wl,'
13797 lt_prog_compiler_static_F77='-static'
13801 # All AIX code is PIC.
13802 if test "$host_cpu" = ia64; then
13803 # AIX 5 now supports IA64 processor
13804 lt_prog_compiler_static_F77='-Bstatic'
13809 # FIXME: we need at least 68020 code to build shared libraries, but
13810 # adding the `-m68020' flag to GCC prevents building anything better,
13812 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13815 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13816 # PIC is the default for these OSes.
13819 mingw* | pw32* | os2*)
13820 # This hack is so that the source file can tell whether it is being
13821 # built for inclusion in a dll (and should export symbols for example).
13822 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13825 darwin* | rhapsody*)
13826 # PIC is the default on this platform
13827 # Common symbols not allowed in MH_DYLIB files
13828 lt_prog_compiler_pic_F77='-fno-common'
13832 # Just because we use GCC doesn't mean we suddenly get shared libraries
13833 # on systems that don't support them.
13834 lt_prog_compiler_can_build_shared_F77=no
13839 if test -d /usr/nec; then
13840 lt_prog_compiler_pic_F77=-Kconform_pic
13845 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13846 # not for PA HP-UX.
13847 case "$host_cpu" in
13852 lt_prog_compiler_pic_F77='-fPIC'
13858 lt_prog_compiler_pic_F77='-fPIC'
13862 # PORTME Check for flag to pass linker flags through the system compiler.
13865 lt_prog_compiler_wl_F77='-Wl,'
13866 if test "$host_cpu" = ia64; then
13867 # AIX 5 now supports IA64 processor
13868 lt_prog_compiler_static_F77='-Bstatic'
13870 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13874 mingw* | pw32* | os2*)
13875 # This hack is so that the source file can tell whether it is being
13876 # built for inclusion in a dll (and should export symbols for example).
13877 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13880 hpux9* | hpux10* | hpux11*)
13881 lt_prog_compiler_wl_F77='-Wl,'
13882 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13883 # not for PA HP-UX.
13884 case "$host_cpu" in
13889 lt_prog_compiler_pic_F77='+Z'
13892 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13893 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13896 irix5* | irix6* | nonstopux*)
13897 lt_prog_compiler_wl_F77='-Wl,'
13898 # PIC (with -KPIC) is the default.
13899 lt_prog_compiler_static_F77='-non_shared'
13903 lt_prog_compiler_pic_F77='-KPIC'
13904 lt_prog_compiler_static_F77='-Bstatic'
13910 lt_prog_compiler_wl_F77='-Wl,'
13911 lt_prog_compiler_pic_F77='-KPIC'
13912 lt_prog_compiler_static_F77='-static'
13915 lt_prog_compiler_wl_F77='-Wl,'
13916 # All Alpha code is PIC.
13917 lt_prog_compiler_static_F77='-non_shared'
13922 osf3* | osf4* | osf5*)
13923 lt_prog_compiler_wl_F77='-Wl,'
13924 # All OSF/1 code is PIC.
13925 lt_prog_compiler_static_F77='-non_shared'
13929 lt_prog_compiler_pic_F77='-Kpic'
13930 lt_prog_compiler_static_F77='-dn'
13934 lt_prog_compiler_wl_F77='-Wl,'
13935 lt_prog_compiler_pic_F77='-KPIC'
13936 lt_prog_compiler_static_F77='-Bstatic'
13940 lt_prog_compiler_wl_F77='-Qoption ld '
13941 lt_prog_compiler_pic_F77='-PIC'
13942 lt_prog_compiler_static_F77='-Bstatic'
13945 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13946 lt_prog_compiler_wl_F77='-Wl,'
13947 lt_prog_compiler_pic_F77='-KPIC'
13948 lt_prog_compiler_static_F77='-Bstatic'
13952 if test -d /usr/nec ;then
13953 lt_prog_compiler_pic_F77='-Kconform_pic'
13954 lt_prog_compiler_static_F77='-Bstatic'
13959 lt_prog_compiler_pic_F77='-pic'
13960 lt_prog_compiler_static_F77='-Bstatic'
13964 lt_prog_compiler_can_build_shared_F77=no
13969 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13970 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13973 # Check to make sure the PIC flag actually works.
13975 if test -n "$lt_prog_compiler_pic_F77"; then
13977 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13978 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13979 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13982 lt_prog_compiler_pic_works_F77=no
13983 ac_outfile=conftest.$ac_objext
13984 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13985 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13986 # Insert the option either (1) after the last *FLAGS variable, or
13987 # (2) before a word containing "conftest.", or (3) at the end.
13988 # Note that $ac_compile itself does not contain backslashes and begins
13989 # with a dollar sign (not a hyphen), so the echo should work correctly.
13990 # The option is referenced via a variable to avoid confusing sed.
13991 lt_compile=`echo "$ac_compile" | $SED \
13992 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13994 -e 's:$: $lt_compiler_flag:'`
13995 (eval echo "\"\$as_me:13995: $lt_compile\"" >&5)
13996 (eval "$lt_compile" 2>conftest.err)
13998 cat conftest.err >&5
13999 echo "$as_me:13999: \$? = $ac_status" >&5
14000 if (exit $ac_status) && test -s "$ac_outfile"; then
14001 # The compiler can only warn and ignore the option if not recognized
14002 # So say no if there are warnings
14003 if test ! -s conftest.err; then
14004 lt_prog_compiler_pic_works_F77=yes
14010 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14011 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14013 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14014 case $lt_prog_compiler_pic_F77 in
14016 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14019 lt_prog_compiler_pic_F77=
14020 lt_prog_compiler_can_build_shared_F77=no
14025 # For platforms which do not support PIC, -DPIC is meaningless:
14027 lt_prog_compiler_pic_F77=
14030 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14034 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14035 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14036 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14037 echo $ECHO_N "(cached) $ECHO_C" >&6
14039 lt_cv_prog_compiler_c_o_F77=no
14040 $rm -r conftest 2>/dev/null
14044 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14046 lt_compiler_flag="-o out/conftest2.$ac_objext"
14047 # Insert the option either (1) after the last *FLAGS variable, or
14048 # (2) before a word containing "conftest.", or (3) at the end.
14049 # Note that $ac_compile itself does not contain backslashes and begins
14050 # with a dollar sign (not a hyphen), so the echo should work correctly.
14051 lt_compile=`echo "$ac_compile" | $SED \
14052 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14054 -e 's:$: $lt_compiler_flag:'`
14055 (eval echo "\"\$as_me:14055: $lt_compile\"" >&5)
14056 (eval "$lt_compile" 2>out/conftest.err)
14058 cat out/conftest.err >&5
14059 echo "$as_me:14059: \$? = $ac_status" >&5
14060 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14062 # The compiler can only warn and ignore the option if not recognized
14063 # So say no if there are warnings
14064 if test ! -s out/conftest.err; then
14065 lt_cv_prog_compiler_c_o_F77=yes
14070 # SGI C++ compiler will create directory out/ii_files/ for
14071 # template instantiation
14072 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14073 $rm out/* && rmdir out
14079 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14080 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14083 hard_links="nottested"
14084 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14085 # do not overwrite the value of need_locks provided by the user
14086 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14087 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14090 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14092 ln conftest.a conftest.b 2>&5 || hard_links=no
14093 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14094 echo "$as_me:$LINENO: result: $hard_links" >&5
14095 echo "${ECHO_T}$hard_links" >&6
14096 if test "$hard_links" = no; then
14097 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14098 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14105 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14106 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14109 allow_undefined_flag_F77=
14110 enable_shared_with_static_runtimes_F77=no
14112 archive_expsym_cmds_F77=
14113 old_archive_From_new_cmds_F77=
14114 old_archive_from_expsyms_cmds_F77=
14115 export_dynamic_flag_spec_F77=
14116 whole_archive_flag_spec_F77=
14117 thread_safe_flag_spec_F77=
14118 hardcode_libdir_flag_spec_F77=
14119 hardcode_libdir_flag_spec_ld_F77=
14120 hardcode_libdir_separator_F77=
14121 hardcode_direct_F77=no
14122 hardcode_minus_L_F77=no
14123 hardcode_shlibpath_var_F77=unsupported
14124 link_all_deplibs_F77=unknown
14125 hardcode_automatic_F77=no
14127 module_expsym_cmds_F77=
14128 always_export_symbols_F77=no
14129 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14130 # include_expsyms should be a list of space-separated symbols to be *always*
14131 # included in the symbol list
14132 include_expsyms_F77=
14133 # exclude_expsyms can be an extended regexp of symbols to exclude
14134 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14135 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14136 # as well as any symbol that contains `d'.
14137 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14138 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14139 # platforms (ab)use it in PIC code, but their linkers get confused if
14140 # the symbol is explicitly referenced. Since portable code cannot
14141 # rely on this symbol name, it's probably fine to never include it in
14142 # preloaded symbol tables.
14143 extract_expsyms_cmds=
14146 cygwin* | mingw* | pw32*)
14147 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14148 # When not using gcc, we currently assume that we are using
14149 # Microsoft Visual C++.
14150 if test "$GCC" != yes; then
14160 if test "$with_gnu_ld" = yes; then
14161 # If archive_cmds runs LD, not CC, wlarc should be empty
14164 # See if GNU ld supports shared libraries.
14166 aix3* | aix4* | aix5*)
14167 # On AIX/PPC, the GNU linker is very broken
14168 if test "$host_cpu" != ia64; then
14172 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14173 *** to be unable to reliably create shared libraries on AIX.
14174 *** Therefore, libtool is disabling shared libraries support. If you
14175 *** really care for shared libraries, you may want to modify your PATH
14176 *** so that a non-GNU linker is found, and then restart.
14183 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)'
14184 hardcode_libdir_flag_spec_F77='-L$libdir'
14185 hardcode_minus_L_F77=yes
14187 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14188 # that the semantics of dynamic libraries on AmigaOS, at least up
14189 # to version 4, is to share data among multiple programs linked
14190 # with the same dynamic library. Since this doesn't match the
14191 # behavior of shared libraries on other platforms, we can't use
14197 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14198 allow_undefined_flag_F77=unsupported
14199 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14200 # support --undefined. This deserves some investigation. FIXME
14201 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14207 cygwin* | mingw* | pw32*)
14208 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14209 # as there is no search path for DLLs.
14210 hardcode_libdir_flag_spec_F77='-L$libdir'
14211 allow_undefined_flag_F77=unsupported
14212 always_export_symbols_F77=no
14213 enable_shared_with_static_runtimes_F77=yes
14214 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14216 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14217 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14218 # If the export-symbols file already is a .def file (1st line
14219 # is EXPORTS), use it as is; otherwise, prepend...
14220 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14221 cp $export_symbols $output_objdir/$soname.def;
14223 echo EXPORTS > $output_objdir/$soname.def;
14224 cat $export_symbols >> $output_objdir/$soname.def;
14226 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14233 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14234 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14237 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14238 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14243 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14247 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14248 *** create shared libraries on Solaris systems. Therefore, libtool
14249 *** is disabling shared libraries support. We urge you to upgrade GNU
14250 *** binutils to release 2.9.1 or newer. Another option is to modify
14251 *** your PATH or compiler configuration so that the native linker is
14252 *** used, and then restart.
14255 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14256 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14257 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14264 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14266 hardcode_direct_F77=yes
14267 hardcode_shlibpath_var_F77=no
14271 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14272 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14273 archive_cmds_F77="$tmp_archive_cmds"
14274 supports_anon_versioning=no
14275 case `$LD -v 2>/dev/null` in
14276 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14277 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14278 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14279 *\ 2.11.*) ;; # other 2.11 versions
14280 *) supports_anon_versioning=yes ;;
14282 if test $supports_anon_versioning = yes; then
14283 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14284 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14285 $echo "local: *; };" >> $output_objdir/$libname.ver~
14286 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14288 archive_expsym_cmds_F77="$tmp_archive_cmds"
14296 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14297 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14298 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14305 if test "$ld_shlibs_F77" = yes; then
14306 runpath_var=LD_RUN_PATH
14307 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14308 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14309 # ancient GNU ld didn't support --whole-archive et. al.
14310 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14311 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14313 whole_archive_flag_spec_F77=
14317 # PORTME fill in a description of your system's linker (not GNU ld)
14320 allow_undefined_flag_F77=unsupported
14321 always_export_symbols_F77=yes
14322 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'
14323 # Note: this linker hardcodes the directories in LIBPATH if there
14324 # are no directories specified by -L.
14325 hardcode_minus_L_F77=yes
14326 if test "$GCC" = yes && test -z "$link_static_flag"; then
14327 # Neither direct hardcoding nor static linking is supported with a
14329 hardcode_direct_F77=unsupported
14334 if test "$host_cpu" = ia64; then
14335 # On IA64, the linker does run time linking by default, so we don't
14336 # have to do anything special.
14337 aix_use_runtimelinking=no
14338 exp_sym_flag='-Bexport'
14341 # If we're using GNU nm, then we don't want the "-C" option.
14342 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14343 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14344 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'
14346 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'
14348 aix_use_runtimelinking=no
14350 # Test if we are trying to use run time linking or normal
14351 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14352 # need to do runtime linking.
14353 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14354 for ld_flag in $LDFLAGS; do
14355 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14356 aix_use_runtimelinking=yes
14362 exp_sym_flag='-bexport'
14363 no_entry_flag='-bnoentry'
14366 # When large executables or shared objects are built, AIX ld can
14367 # have problems creating the table of contents. If linking a library
14368 # or program results in "error TOC overflow" add -mminimal-toc to
14369 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14370 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14372 archive_cmds_F77=''
14373 hardcode_direct_F77=yes
14374 hardcode_libdir_separator_F77=':'
14375 link_all_deplibs_F77=yes
14377 if test "$GCC" = yes; then
14378 case $host_os in aix4.012|aix4.012.*)
14379 # We only want to do this on AIX 4.2 and lower, the check
14380 # below for broken collect2 doesn't work under 4.3+
14381 collect2name=`${CC} -print-prog-name=collect2`
14382 if test -f "$collect2name" && \
14383 strings "$collect2name" | grep resolve_lib_name >/dev/null
14385 # We have reworked collect2
14386 hardcode_direct_F77=yes
14388 # We have old collect2
14389 hardcode_direct_F77=unsupported
14390 # It fails to find uninstalled libraries when the uninstalled
14391 # path is not listed in the libpath. Setting hardcode_minus_L
14392 # to unsupported forces relinking
14393 hardcode_minus_L_F77=yes
14394 hardcode_libdir_flag_spec_F77='-L$libdir'
14395 hardcode_libdir_separator_F77=
14398 shared_flag='-shared'
14401 if test "$host_cpu" = ia64; then
14402 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14403 # chokes on -Wl,-G. The following line is correct:
14406 if test "$aix_use_runtimelinking" = yes; then
14407 shared_flag='${wl}-G'
14409 shared_flag='${wl}-bM:SRE'
14414 # It seems that -bexpall does not export symbols beginning with
14415 # underscore (_), so it is better to generate a list of symbols to export.
14416 always_export_symbols_F77=yes
14417 if test "$aix_use_runtimelinking" = yes; then
14418 # Warning - without using the other runtime loading flags (-brtl),
14419 # -berok will link without error, but may produce a broken library.
14420 allow_undefined_flag_F77='-berok'
14421 # Determine the default libpath from the value encoded in an empty executable.
14422 cat >conftest.$ac_ext <<_ACEOF
14427 rm -f conftest.$ac_objext conftest$ac_exeext
14428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14429 (eval $ac_link) 2>conftest.er1
14431 grep -v '^ *+' conftest.er1 >conftest.err
14433 cat conftest.err >&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } &&
14436 { ac_try='test -z "$ac_f77_werror_flag"
14437 || test ! -s conftest.err'
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; } &&
14443 { ac_try='test -s conftest$ac_exeext'
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; }; then
14450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14452 # Check for a 64-bit object if we didn't find anything.
14453 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; }
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14460 rm -f conftest.err conftest.$ac_objext \
14461 conftest$ac_exeext conftest.$ac_ext
14462 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14464 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14465 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"
14467 if test "$host_cpu" = ia64; then
14468 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14469 allow_undefined_flag_F77="-z nodefs"
14470 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"
14472 # Determine the default libpath from the value encoded in an empty executable.
14473 cat >conftest.$ac_ext <<_ACEOF
14478 rm -f conftest.$ac_objext conftest$ac_exeext
14479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14480 (eval $ac_link) 2>conftest.er1
14482 grep -v '^ *+' conftest.er1 >conftest.err
14484 cat conftest.err >&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); } &&
14487 { ac_try='test -z "$ac_f77_werror_flag"
14488 || test ! -s conftest.err'
14489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; } &&
14494 { ac_try='test -s conftest$ac_exeext'
14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; }; then
14501 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14503 # Check for a 64-bit object if we didn't find anything.
14504 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; }
14507 echo "$as_me: failed program was:" >&5
14508 sed 's/^/| /' conftest.$ac_ext >&5
14511 rm -f conftest.err conftest.$ac_objext \
14512 conftest$ac_exeext conftest.$ac_ext
14513 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14515 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14516 # Warning - without using the other run time loading flags,
14517 # -berok will link without error, but may produce a broken library.
14518 no_undefined_flag_F77=' ${wl}-bernotok'
14519 allow_undefined_flag_F77=' ${wl}-berok'
14520 # -bexpall does not export symbols beginning with underscore (_)
14521 always_export_symbols_F77=yes
14522 # Exported symbols can be pulled into shared objects from archives
14523 whole_archive_flag_spec_F77=' '
14524 archive_cmds_need_lc_F77=yes
14525 # This is similar to how AIX traditionally builds it's shared libraries.
14526 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'
14532 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)'
14533 hardcode_libdir_flag_spec_F77='-L$libdir'
14534 hardcode_minus_L_F77=yes
14535 # see comment about different semantics on the GNU ld section
14540 export_dynamic_flag_spec_F77=-rdynamic
14543 cygwin* | mingw* | pw32*)
14544 # When not using gcc, we currently assume that we are using
14545 # Microsoft Visual C++.
14546 # hardcode_libdir_flag_spec is actually meaningless, as there is
14547 # no search path for DLLs.
14548 hardcode_libdir_flag_spec_F77=' '
14549 allow_undefined_flag_F77=unsupported
14550 # Tell ltmain to make .lib files, not .a files.
14552 # Tell ltmain to make .dll files, not .so files.
14554 # FIXME: Setting linknames here is a bad hack.
14555 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14556 # The linker will automatically build a .lib file if we build a DLL.
14557 old_archive_From_new_cmds_F77='true'
14558 # FIXME: Should let the user specify the lib program.
14559 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14560 fix_srcfile_path='`cygpath -w "$srcfile"`'
14561 enable_shared_with_static_runtimes_F77=yes
14564 darwin* | rhapsody*)
14565 if test "$GXX" = yes ; then
14566 archive_cmds_need_lc_F77=no
14568 rhapsody* | darwin1.[012])
14569 allow_undefined_flag_F77='-undefined suppress'
14572 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14573 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14575 case ${MACOSX_DEPLOYMENT_TARGET} in
14577 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14580 allow_undefined_flag_F77='-undefined dynamic_lookup'
14586 lt_int_apple_cc_single_mod=no
14587 output_verbose_link_cmd='echo'
14588 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14589 lt_int_apple_cc_single_mod=yes
14591 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14592 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14594 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14596 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14597 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14598 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14599 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14601 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14603 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}'
14604 hardcode_direct_F77=no
14605 hardcode_automatic_F77=yes
14606 hardcode_shlibpath_var_F77=unsupported
14607 whole_archive_flag_spec_F77='-all_load $convenience'
14608 link_all_deplibs_F77=yes
14615 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14616 hardcode_libdir_flag_spec_F77='-L$libdir'
14617 hardcode_shlibpath_var_F77=no
14624 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14625 # support. Future versions do this automatically, but an explicit c++rt0.o
14626 # does not break anything, and helps significantly (at the cost of a little
14629 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14630 hardcode_libdir_flag_spec_F77='-R$libdir'
14631 hardcode_direct_F77=yes
14632 hardcode_shlibpath_var_F77=no
14635 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14637 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14638 hardcode_direct_F77=yes
14639 hardcode_minus_L_F77=yes
14640 hardcode_shlibpath_var_F77=no
14643 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14644 freebsd* | kfreebsd*-gnu)
14645 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14646 hardcode_libdir_flag_spec_F77='-R$libdir'
14647 hardcode_direct_F77=yes
14648 hardcode_shlibpath_var_F77=no
14652 if test "$GCC" = yes; then
14653 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'
14655 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'
14657 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14658 hardcode_libdir_separator_F77=:
14659 hardcode_direct_F77=yes
14661 # hardcode_minus_L: Not really in the search PATH,
14662 # but as the default location of the library.
14663 hardcode_minus_L_F77=yes
14664 export_dynamic_flag_spec_F77='${wl}-E'
14668 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14669 case "$host_cpu" in
14671 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14674 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14678 case "$host_cpu" in
14680 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14683 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14687 if test "$with_gnu_ld" = no; then
14688 case "$host_cpu" in
14690 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14691 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14692 hardcode_libdir_separator_F77=:
14693 hardcode_direct_F77=no
14694 hardcode_shlibpath_var_F77=no
14697 hardcode_libdir_flag_spec_F77='-L$libdir'
14698 hardcode_direct_F77=no
14699 hardcode_shlibpath_var_F77=no
14701 # hardcode_minus_L: Not really in the search PATH,
14702 # but as the default location of the library.
14703 hardcode_minus_L_F77=yes
14706 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14707 hardcode_libdir_separator_F77=:
14708 hardcode_direct_F77=yes
14709 export_dynamic_flag_spec_F77='${wl}-E'
14711 # hardcode_minus_L: Not really in the search PATH,
14712 # but as the default location of the library.
14713 hardcode_minus_L_F77=yes
14719 irix5* | irix6* | nonstopux*)
14720 if test "$GCC" = yes; then
14721 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'
14723 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'
14724 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14726 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14727 hardcode_libdir_separator_F77=:
14728 link_all_deplibs_F77=yes
14732 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14733 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14735 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14737 hardcode_libdir_flag_spec_F77='-R$libdir'
14738 hardcode_direct_F77=yes
14739 hardcode_shlibpath_var_F77=no
14743 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14744 hardcode_direct_F77=yes
14745 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14746 hardcode_libdir_separator_F77=:
14747 hardcode_shlibpath_var_F77=no
14751 hardcode_direct_F77=yes
14752 hardcode_shlibpath_var_F77=no
14753 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14754 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14755 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14756 export_dynamic_flag_spec_F77='${wl}-E'
14759 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14760 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14761 hardcode_libdir_flag_spec_F77='-R$libdir'
14764 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14765 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14772 hardcode_libdir_flag_spec_F77='-L$libdir'
14773 hardcode_minus_L_F77=yes
14774 allow_undefined_flag_F77=unsupported
14775 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'
14776 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14780 if test "$GCC" = yes; then
14781 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14782 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'
14784 allow_undefined_flag_F77=' -expect_unresolved \*'
14785 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'
14787 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14788 hardcode_libdir_separator_F77=:
14791 osf4* | osf5*) # as osf3* with the addition of -msym flag
14792 if test "$GCC" = yes; then
14793 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14794 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'
14795 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14797 allow_undefined_flag_F77=' -expect_unresolved \*'
14798 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'
14799 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~
14800 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14802 # Both c and cxx compiler support -rpath directly
14803 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14805 hardcode_libdir_separator_F77=:
14809 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14810 hardcode_shlibpath_var_F77=no
14811 export_dynamic_flag_spec_F77='${wl}-Bexport'
14812 runpath_var=LD_RUN_PATH
14813 hardcode_runpath_var=yes
14817 no_undefined_flag_F77=' -z text'
14818 if test "$GCC" = yes; then
14819 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14820 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14821 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14823 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14824 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14825 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14827 hardcode_libdir_flag_spec_F77='-R$libdir'
14828 hardcode_shlibpath_var_F77=no
14830 solaris2.[0-5] | solaris2.[0-5].*) ;;
14831 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14832 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14834 link_all_deplibs_F77=yes
14838 if test "x$host_vendor" = xsequent; then
14839 # Use $CC to link under sequent, because it throws in some extra .o
14840 # files that make .init and .fini sections work.
14841 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14843 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14845 hardcode_libdir_flag_spec_F77='-L$libdir'
14846 hardcode_direct_F77=yes
14847 hardcode_minus_L_F77=yes
14848 hardcode_shlibpath_var_F77=no
14852 case $host_vendor in
14854 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14855 hardcode_direct_F77=yes # is this really true???
14858 ## LD is ld it makes a PLAMLIB
14859 ## CC just makes a GrossModule.
14860 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14861 reload_cmds_F77='$CC -r -o $output$reload_objs'
14862 hardcode_direct_F77=no
14865 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14866 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14869 runpath_var='LD_RUN_PATH'
14870 hardcode_shlibpath_var_F77=no
14874 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14875 hardcode_shlibpath_var_F77=no
14876 export_dynamic_flag_spec_F77='-Bexport'
14880 if test -d /usr/nec; then
14881 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14882 hardcode_shlibpath_var_F77=no
14883 runpath_var=LD_RUN_PATH
14884 hardcode_runpath_var=yes
14890 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14891 hardcode_direct_F77=yes
14892 hardcode_minus_L_F77=no
14893 hardcode_shlibpath_var_F77=no
14894 hardcode_runpath_var=yes
14895 runpath_var=LD_RUN_PATH
14898 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14899 no_undefined_flag_F77='${wl}-z ${wl}text'
14900 if test "$GCC" = yes; then
14901 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14903 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14905 runpath_var='LD_RUN_PATH'
14906 hardcode_shlibpath_var_F77=no
14910 no_undefined_flag_F77=' -z text'
14911 # $CC -shared without GNU ld will not create a library from C++
14912 # object files and a static libstdc++, better avoid it by now
14913 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14914 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14915 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14916 hardcode_libdir_flag_spec_F77=
14917 hardcode_shlibpath_var_F77=no
14918 runpath_var='LD_RUN_PATH'
14922 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14923 hardcode_libdir_flag_spec_F77='-L$libdir'
14924 hardcode_shlibpath_var_F77=no
14933 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14934 echo "${ECHO_T}$ld_shlibs_F77" >&6
14935 test "$ld_shlibs_F77" = no && can_build_shared=no
14937 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14938 if test "$GCC" = yes; then
14939 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14943 # Do we need to explicitly link libc?
14945 case "x$archive_cmds_need_lc_F77" in
14947 # Assume -lc should be added
14948 archive_cmds_need_lc_F77=yes
14950 if test "$enable_shared" = yes && test "$GCC" = yes; then
14951 case $archive_cmds_F77 in
14953 # FIXME: we may have to deal with multi-command sequences.
14956 # Test whether the compiler implicitly links with -lc since on some
14957 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14958 # to ld, don't add -lc before -lgcc.
14959 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14960 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14962 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14965 (eval $ac_compile) 2>&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); } 2>conftest.err; then
14971 libobjs=conftest.$ac_objext
14973 wl=$lt_prog_compiler_wl_F77
14979 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14980 allow_undefined_flag_F77=
14981 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14982 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); }
14987 archive_cmds_need_lc_F77=no
14989 archive_cmds_need_lc_F77=yes
14991 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14993 cat conftest.err 1>&5
14996 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14997 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15004 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15005 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15006 library_names_spec=
15007 libname_spec='lib$name'
15011 postuninstall_cmds=
15015 shlibpath_overrides_runpath=unknown
15017 dynamic_linker="$host_os ld.so"
15018 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15019 if test "$GCC" = yes; then
15020 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15021 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15022 # if the path contains ";" then we assume it to be the separator
15023 # otherwise default to the standard path separator (i.e. ":") - it is
15024 # assumed that no part of a normal pathname contains ";" but that should
15025 # okay in the real world where ";" in dirpaths is itself problematic.
15026 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15028 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15031 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15033 need_lib_prefix=unknown
15034 hardcode_into_libs=no
15036 # when you set need_version to no, make sure it does not cause -set_version
15037 # flags to be left without arguments
15038 need_version=unknown
15043 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15044 shlibpath_var=LIBPATH
15046 # AIX 3 has no versioning support, so we append a major version to the name.
15047 soname_spec='${libname}${release}${shared_ext}$major'
15054 hardcode_into_libs=yes
15055 if test "$host_cpu" = ia64; then
15056 # AIX 5 supports IA64
15057 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15058 shlibpath_var=LD_LIBRARY_PATH
15060 # With GCC up to 2.95.x, collect2 would create an import file
15061 # for dependence libraries. The import file would start with
15062 # the line `#! .'. This would cause the generated library to
15063 # depend on `.', always an invalid library. This was fixed in
15064 # development snapshots of GCC prior to 3.0.
15066 aix4 | aix4.[01] | aix4.[01].*)
15067 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15069 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15072 can_build_shared=no
15076 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15077 # soname into executable. Probably we can add versioning support to
15078 # collect2, so additional links can be useful in future.
15079 if test "$aix_use_runtimelinking" = yes; then
15080 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15081 # instead of lib<name>.a to let people know that these are not
15082 # typical AIX shared libraries.
15083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15085 # We preserve .a as extension for shared libraries through AIX4.2
15086 # and later when we are not doing run time linking.
15087 library_names_spec='${libname}${release}.a $libname.a'
15088 soname_spec='${libname}${release}${shared_ext}$major'
15090 shlibpath_var=LIBPATH
15095 library_names_spec='$libname.ixlibrary $libname.a'
15096 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15097 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'
15101 library_names_spec='${libname}${shared_ext}'
15102 dynamic_linker="$host_os ld.so"
15103 shlibpath_var=LIBRARY_PATH
15109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15110 soname_spec='${libname}${release}${shared_ext}$major'
15111 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15112 shlibpath_var=LD_LIBRARY_PATH
15113 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15114 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15115 # the default ld.so.conf also contains /usr/contrib/lib and
15116 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15117 # libtool to hard-code these into programs
15120 cygwin* | mingw* | pw32*)
15121 version_type=windows
15126 case $GCC,$host_os in
15127 yes,cygwin* | yes,mingw* | yes,pw32*)
15128 library_names_spec='$libname.dll.a'
15129 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15130 postinstall_cmds='base_file=`basename \${file}`~
15131 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15132 dldir=$destdir/`dirname \$dlpath`~
15133 test -d \$dldir || mkdir -p \$dldir~
15134 $install_prog $dir/$dlname \$dldir/$dlname'
15135 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15136 dlpath=$dir/\$dldll~
15138 shlibpath_overrides_runpath=yes
15142 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15143 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15144 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15147 # MinGW DLLs use traditional 'lib' prefix
15148 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15149 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15150 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15151 # It is most probably a Windows format PATH printed by
15152 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15153 # path with ; separators, and with drive letters. We can handle the
15154 # drive letters (cygwin fileutils understands them), so leave them,
15155 # especially as we might pass files found there to a mingw objdump,
15156 # which wouldn't understand a cygwinified path. Ahh.
15157 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15159 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15163 # pw32 DLLs use 'pw' prefix rather than 'lib'
15164 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15170 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15173 dynamic_linker='Win32 ld.exe'
15174 # FIXME: first we should search . and the directory the executable is in
15178 darwin* | rhapsody*)
15179 dynamic_linker="$host_os dyld"
15180 version_type=darwin
15183 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15184 soname_spec='${libname}${release}${major}$shared_ext'
15185 shlibpath_overrides_runpath=yes
15186 shlibpath_var=DYLD_LIBRARY_PATH
15187 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15188 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15189 if test "$GCC" = yes; then
15190 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"`
15192 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15194 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15202 soname_spec='${libname}${release}${shared_ext}$major'
15203 shlibpath_var=LD_LIBRARY_PATH
15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15215 soname_spec='${libname}${release}${shared_ext}$major'
15216 shlibpath_var=LD_LIBRARY_PATH
15217 shlibpath_overrides_runpath=no
15218 hardcode_into_libs=yes
15219 dynamic_linker='GNU ld.so'
15223 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15224 version_type=freebsd-$objformat
15225 case $version_type in
15227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15232 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15236 shlibpath_var=LD_LIBRARY_PATH
15239 shlibpath_overrides_runpath=yes
15241 freebsd3.01* | freebsdelf3.01*)
15242 shlibpath_overrides_runpath=yes
15243 hardcode_into_libs=yes
15246 shlibpath_overrides_runpath=no
15247 hardcode_into_libs=yes
15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15257 soname_spec='${libname}${release}${shared_ext}$major'
15258 shlibpath_var=LD_LIBRARY_PATH
15259 hardcode_into_libs=yes
15262 hpux9* | hpux10* | hpux11*)
15263 # Give a soname corresponding to the major version so that dld.sl refuses to
15264 # link against other versions.
15268 case "$host_cpu" in
15271 hardcode_into_libs=yes
15272 dynamic_linker="$host_os dld.so"
15273 shlibpath_var=LD_LIBRARY_PATH
15274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15276 soname_spec='${libname}${release}${shared_ext}$major'
15277 if test "X$HPUX_IA64_MODE" = X32; then
15278 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15280 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15282 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15286 hardcode_into_libs=yes
15287 dynamic_linker="$host_os dld.sl"
15288 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15291 soname_spec='${libname}${release}${shared_ext}$major'
15292 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15293 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15297 dynamic_linker="$host_os dld.sl"
15298 shlibpath_var=SHLIB_PATH
15299 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15301 soname_spec='${libname}${release}${shared_ext}$major'
15304 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15305 postinstall_cmds='chmod 555 $lib'
15308 irix5* | irix6* | nonstopux*)
15310 nonstopux*) version_type=nonstopux ;;
15312 if test "$lt_cv_prog_gnu_ld" = yes; then
15320 soname_spec='${libname}${release}${shared_ext}$major'
15321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15323 irix5* | nonstopux*)
15324 libsuff= shlibsuff=
15327 case $LD in # libtool.m4 will add one of these switches to LD
15328 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15329 libsuff= shlibsuff= libmagic=32-bit;;
15330 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15331 libsuff=32 shlibsuff=N32 libmagic=N32;;
15332 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15333 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15334 *) libsuff= shlibsuff= libmagic=never-match;;
15338 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15339 shlibpath_overrides_runpath=no
15340 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15341 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15342 hardcode_into_libs=yes
15345 # No shared lib support for Linux oldld, aout, or coff.
15346 linux*oldld* | linux*aout* | linux*coff*)
15350 # This must be Linux ELF.
15355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15356 soname_spec='${libname}${release}${shared_ext}$major'
15357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15358 shlibpath_var=LD_LIBRARY_PATH
15359 shlibpath_overrides_runpath=no
15360 # This implies no fast_install, which is unacceptable.
15361 # Some rework will be needed to allow for fast_install
15362 # before this can be enabled.
15363 hardcode_into_libs=yes
15365 # find out which ABI we are using
15367 case "$host_cpu" in
15368 x86_64*|s390x*|powerpc64*)
15369 echo '#line 15369 "configure"' > conftest.$ac_ext
15370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15371 (eval $ac_compile) 2>&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; then
15375 case `/usr/bin/file conftest.$ac_objext` in
15378 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15386 # Append ld.so.conf contents to the search path
15387 if test -f /etc/ld.so.conf; then
15388 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15389 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15392 # We used to test for /lib/ld.so.1 and disable shared libraries on
15393 # powerpc, because MkLinux only supported shared libraries with the
15394 # GNU dynamic linker. Since this was broken with cross compilers,
15395 # most powerpc-linux boxes support dynamic linking these days and
15396 # people can always --disable-shared, the test was removed, and we
15397 # assume the GNU/Linux dynamic linker is in use.
15398 dynamic_linker='GNU/Linux ld.so'
15405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15406 soname_spec='${libname}${release}${shared_ext}$major'
15407 shlibpath_var=LD_LIBRARY_PATH
15408 shlibpath_overrides_runpath=no
15409 hardcode_into_libs=yes
15410 dynamic_linker='GNU ld.so'
15417 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15420 dynamic_linker='NetBSD (a.out) ld.so'
15422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15423 soname_spec='${libname}${release}${shared_ext}$major'
15424 dynamic_linker='NetBSD ld.elf_so'
15426 shlibpath_var=LD_LIBRARY_PATH
15427 shlibpath_overrides_runpath=yes
15428 hardcode_into_libs=yes
15433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434 shlibpath_var=LD_LIBRARY_PATH
15435 shlibpath_overrides_runpath=yes
15442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15443 soname_spec='${libname}${release}${shared_ext}$major'
15444 shlibpath_var=LD_LIBRARY_PATH
15445 shlibpath_overrides_runpath=yes
15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15454 shlibpath_var=LD_LIBRARY_PATH
15455 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15457 openbsd2.[89] | openbsd2.[89].*)
15458 shlibpath_overrides_runpath=no
15461 shlibpath_overrides_runpath=yes
15465 shlibpath_overrides_runpath=yes
15470 libname_spec='$name'
15473 library_names_spec='$libname${shared_ext} $libname.a'
15474 dynamic_linker='OS/2 ld.exe'
15475 shlibpath_var=LIBPATH
15478 osf3* | osf4* | osf5*)
15482 soname_spec='${libname}${release}${shared_ext}$major'
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484 shlibpath_var=LD_LIBRARY_PATH
15485 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15486 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15491 soname_spec='${libname}${release}${shared_ext}$major'
15492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15493 shlibpath_var=LD_LIBRARY_PATH
15500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15501 soname_spec='${libname}${release}${shared_ext}$major'
15502 shlibpath_var=LD_LIBRARY_PATH
15503 shlibpath_overrides_runpath=yes
15504 hardcode_into_libs=yes
15505 # ldd complains unless libraries are executable
15506 postinstall_cmds='chmod +x $lib'
15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15512 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15513 shlibpath_var=LD_LIBRARY_PATH
15514 shlibpath_overrides_runpath=yes
15515 if test "$with_gnu_ld" = yes; then
15521 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15524 soname_spec='${libname}${release}${shared_ext}$major'
15525 shlibpath_var=LD_LIBRARY_PATH
15526 case $host_vendor in
15528 shlibpath_overrides_runpath=no
15530 export_dynamic_flag_spec='${wl}-Blargedynsym'
15531 runpath_var=LD_RUN_PATH
15539 shlibpath_overrides_runpath=no
15540 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15546 if test -d /usr/nec ;then
15548 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15549 soname_spec='$libname${shared_ext}.$major'
15550 shlibpath_var=LD_LIBRARY_PATH
15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557 soname_spec='${libname}${release}${shared_ext}$major'
15558 shlibpath_var=LD_LIBRARY_PATH
15565 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15566 echo "${ECHO_T}$dynamic_linker" >&6
15567 test "$dynamic_linker" = no && can_build_shared=no
15569 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15570 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15571 hardcode_action_F77=
15572 if test -n "$hardcode_libdir_flag_spec_F77" || \
15573 test -n "$runpath_var F77" || \
15574 test "X$hardcode_automatic_F77"="Xyes" ; then
15576 # We can hardcode non-existant directories.
15577 if test "$hardcode_direct_F77" != no &&
15578 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15579 # have to relink, otherwise we might link with an installed library
15580 # when we should be linking with a yet-to-be-installed one
15581 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15582 test "$hardcode_minus_L_F77" != no; then
15583 # Linking always hardcodes the temporary library directory.
15584 hardcode_action_F77=relink
15586 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15587 hardcode_action_F77=immediate
15590 # We cannot hardcode anything, or else we can only hardcode existing
15592 hardcode_action_F77=unsupported
15594 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15595 echo "${ECHO_T}$hardcode_action_F77" >&6
15597 if test "$hardcode_action_F77" = relink; then
15598 # Fast installation is not supported
15599 enable_fast_install=no
15600 elif test "$shlibpath_overrides_runpath" = yes ||
15601 test "$enable_shared" = no; then
15602 # Fast installation is not necessary
15603 enable_fast_install=needless
15608 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15609 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15610 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15611 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15612 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15613 echo "$as_me:$LINENO: result: yes" >&5
15614 echo "${ECHO_T}yes" >&6
15616 # FIXME - insert some real tests, host_os isn't really good enough
15619 if test -n "$STRIP" ; then
15620 striplib="$STRIP -x"
15621 echo "$as_me:$LINENO: result: yes" >&5
15622 echo "${ECHO_T}yes" >&6
15624 echo "$as_me:$LINENO: result: no" >&5
15625 echo "${ECHO_T}no" >&6
15629 echo "$as_me:$LINENO: result: no" >&5
15630 echo "${ECHO_T}no" >&6
15637 # The else clause should only fire when bootstrapping the
15638 # libtool distribution, otherwise you forgot to ship ltmain.sh
15639 # with your package, and you will get complaints that there are
15640 # no rules to generate ltmain.sh.
15641 if test -f "$ltmain"; then
15642 # See if we are running on zsh, and set the options which allow our commands through
15643 # without removal of \ escapes.
15644 if test -n "${ZSH_VERSION+set}" ; then
15645 setopt NO_GLOB_SUBST
15647 # Now quote all the things that may contain metacharacters while being
15648 # careful not to overquote the AC_SUBSTed values. We take copies of the
15649 # variables and quote the copies for generation of the libtool script.
15650 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15652 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15653 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15654 deplibs_check_method reload_flag reload_cmds need_locks \
15655 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15656 lt_cv_sys_global_symbol_to_c_name_address \
15657 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15658 old_postinstall_cmds old_postuninstall_cmds \
15662 lt_prog_compiler_wl_F77 \
15663 lt_prog_compiler_pic_F77 \
15664 lt_prog_compiler_static_F77 \
15665 lt_prog_compiler_no_builtin_flag_F77 \
15666 export_dynamic_flag_spec_F77 \
15667 thread_safe_flag_spec_F77 \
15668 whole_archive_flag_spec_F77 \
15669 enable_shared_with_static_runtimes_F77 \
15670 old_archive_cmds_F77 \
15671 old_archive_from_new_cmds_F77 \
15672 predep_objects_F77 \
15673 postdep_objects_F77 \
15676 compiler_lib_search_path_F77 \
15678 archive_expsym_cmds_F77 \
15679 postinstall_cmds_F77 \
15680 postuninstall_cmds_F77 \
15681 old_archive_from_expsyms_cmds_F77 \
15682 allow_undefined_flag_F77 \
15683 no_undefined_flag_F77 \
15684 export_symbols_cmds_F77 \
15685 hardcode_libdir_flag_spec_F77 \
15686 hardcode_libdir_flag_spec_ld_F77 \
15687 hardcode_libdir_separator_F77 \
15688 hardcode_automatic_F77 \
15690 module_expsym_cmds_F77 \
15691 lt_cv_prog_compiler_c_o_F77 \
15692 exclude_expsyms_F77 \
15693 include_expsyms_F77; do
15696 old_archive_cmds_F77 | \
15697 old_archive_from_new_cmds_F77 | \
15698 archive_cmds_F77 | \
15699 archive_expsym_cmds_F77 | \
15700 module_cmds_F77 | \
15701 module_expsym_cmds_F77 | \
15702 old_archive_from_expsyms_cmds_F77 | \
15703 export_symbols_cmds_F77 | \
15704 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15705 postinstall_cmds | postuninstall_cmds | \
15706 old_postinstall_cmds | old_postuninstall_cmds | \
15707 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15708 # Double-quote double-evaled strings.
15709 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15712 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15718 *'\$0 --fallback-echo"')
15719 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15725 cat <<__EOF__ >> "$cfgfile"
15726 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15728 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15730 # Shell to use when invoking shell scripts.
15733 # Whether or not to build shared libraries.
15734 build_libtool_libs=$enable_shared
15736 # Whether or not to build static libraries.
15737 build_old_libs=$enable_static
15739 # Whether or not to add -lc for building shared libraries.
15740 build_libtool_need_lc=$archive_cmds_need_lc_F77
15742 # Whether or not to disallow shared libs when runtime libs are static
15743 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15745 # Whether or not to optimize for fast installation.
15746 fast_install=$enable_fast_install
15749 host_alias=$host_alias
15752 # An echo program that does not interpret backslashes.
15757 AR_FLAGS=$lt_AR_FLAGS
15762 # A language-specific compiler.
15763 CC=$lt_compiler_F77
15765 # Is the compiler the GNU C compiler?
15771 # The linker used to build libraries.
15774 # Whether we need hard or soft links.
15777 # A BSD-compatible nm program.
15780 # A symbol stripping program
15783 # Used to examine libraries when file_magic_cmd begins "file"
15784 MAGIC_CMD=$MAGIC_CMD
15786 # Used on cygwin: DLL creation program.
15789 # Used on cygwin: object dumper.
15792 # Used on cygwin: assembler.
15795 # The name of the directory that contains temporary libtool files.
15798 # How to create reloadable object files.
15799 reload_flag=$lt_reload_flag
15800 reload_cmds=$lt_reload_cmds
15802 # How to pass a linker flag through the compiler.
15803 wl=$lt_lt_prog_compiler_wl_F77
15805 # Object file suffix (normally "o").
15806 objext="$ac_objext"
15808 # Old archive suffix (normally "a").
15811 # Shared library suffix (normally ".so").
15812 shrext_cmds='$shrext_cmds'
15814 # Executable file suffix (normally "").
15817 # Additional compiler flags for building library objects.
15818 pic_flag=$lt_lt_prog_compiler_pic_F77
15821 # What is the maximum length of a command?
15822 max_cmd_len=$lt_cv_sys_max_cmd_len
15824 # Does compiler simultaneously support -c and -o options?
15825 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15827 # Must we lock files when doing compilation ?
15828 need_locks=$lt_need_locks
15830 # Do we need the lib prefix for modules?
15831 need_lib_prefix=$need_lib_prefix
15833 # Do we need a version for libraries?
15834 need_version=$need_version
15836 # Whether dlopen is supported.
15837 dlopen_support=$enable_dlopen
15839 # Whether dlopen of programs is supported.
15840 dlopen_self=$enable_dlopen_self
15842 # Whether dlopen of statically linked programs is supported.
15843 dlopen_self_static=$enable_dlopen_self_static
15845 # Compiler flag to prevent dynamic linking.
15846 link_static_flag=$lt_lt_prog_compiler_static_F77
15848 # Compiler flag to turn off builtin functions.
15849 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15851 # Compiler flag to allow reflexive dlopens.
15852 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15854 # Compiler flag to generate shared objects directly from archives.
15855 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15857 # Compiler flag to generate thread-safe objects.
15858 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15860 # Library versioning type.
15861 version_type=$version_type
15863 # Format of library name prefix.
15864 libname_spec=$lt_libname_spec
15866 # List of archive names. First name is the real one, the rest are links.
15867 # The last name is the one that the linker finds with -lNAME.
15868 library_names_spec=$lt_library_names_spec
15870 # The coded name of the library, if different from the real name.
15871 soname_spec=$lt_soname_spec
15873 # Commands used to build and install an old-style archive.
15875 old_archive_cmds=$lt_old_archive_cmds_F77
15876 old_postinstall_cmds=$lt_old_postinstall_cmds
15877 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15879 # Create an old-style archive from a shared archive.
15880 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15882 # Create a temporary old-style archive to link instead of a shared archive.
15883 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15885 # Commands used to build and install a shared archive.
15886 archive_cmds=$lt_archive_cmds_F77
15887 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15888 postinstall_cmds=$lt_postinstall_cmds
15889 postuninstall_cmds=$lt_postuninstall_cmds
15891 # Commands used to build a loadable module (assumed same as above if empty)
15892 module_cmds=$lt_module_cmds_F77
15893 module_expsym_cmds=$lt_module_expsym_cmds_F77
15895 # Commands to strip libraries.
15896 old_striplib=$lt_old_striplib
15897 striplib=$lt_striplib
15899 # Dependencies to place before the objects being linked to create a
15901 predep_objects=$lt_predep_objects_F77
15903 # Dependencies to place after the objects being linked to create a
15905 postdep_objects=$lt_postdep_objects_F77
15907 # Dependencies to place before the objects being linked to create a
15909 predeps=$lt_predeps_F77
15911 # Dependencies to place after the objects being linked to create a
15913 postdeps=$lt_postdeps_F77
15915 # The library search path used internally by the compiler when linking
15916 # a shared library.
15917 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15919 # Method to check whether dependent libraries are shared objects.
15920 deplibs_check_method=$lt_deplibs_check_method
15922 # Command to use when deplibs_check_method == file_magic.
15923 file_magic_cmd=$lt_file_magic_cmd
15925 # Flag that allows shared libraries with undefined symbols to be built.
15926 allow_undefined_flag=$lt_allow_undefined_flag_F77
15928 # Flag that forces no undefined symbols.
15929 no_undefined_flag=$lt_no_undefined_flag_F77
15931 # Commands used to finish a libtool library installation in a directory.
15932 finish_cmds=$lt_finish_cmds
15934 # Same as above, but a single script fragment to be evaled but not shown.
15935 finish_eval=$lt_finish_eval
15937 # Take the output of nm and produce a listing of raw symbols and C names.
15938 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15940 # Transform the output of nm in a proper C declaration
15941 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15943 # Transform the output of nm in a C name address pair
15944 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15946 # This is the shared library runtime path variable.
15947 runpath_var=$runpath_var
15949 # This is the shared library path variable.
15950 shlibpath_var=$shlibpath_var
15952 # Is shlibpath searched before the hard-coded library search path?
15953 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15955 # How to hardcode a shared library path into an executable.
15956 hardcode_action=$hardcode_action_F77
15958 # Whether we should hardcode library paths into libraries.
15959 hardcode_into_libs=$hardcode_into_libs
15961 # Flag to hardcode \$libdir into a binary during linking.
15962 # This must work even if \$libdir does not exist.
15963 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15965 # If ld is used when linking, flag to hardcode \$libdir into
15966 # a binary during linking. This must work even if \$libdir does
15968 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15970 # Whether we need a single -rpath flag with a separated argument.
15971 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15973 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15974 # resulting binary.
15975 hardcode_direct=$hardcode_direct_F77
15977 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15978 # resulting binary.
15979 hardcode_minus_L=$hardcode_minus_L_F77
15981 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15982 # the resulting binary.
15983 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15985 # Set to yes if building a shared library automatically hardcodes DIR into the library
15986 # and all subsequent libraries and executables linked against it.
15987 hardcode_automatic=$hardcode_automatic_F77
15989 # Variables whose values should be saved in libtool wrapper scripts and
15990 # restored at relink time.
15991 variables_saved_for_relink="$variables_saved_for_relink"
15993 # Whether libtool must link a program against all its dependency libraries.
15994 link_all_deplibs=$link_all_deplibs_F77
15996 # Compile-time system search path for libraries
15997 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15999 # Run-time system search path for libraries
16000 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16002 # Fix the shell variable \$srcfile for the compiler.
16003 fix_srcfile_path="$fix_srcfile_path_F77"
16005 # Set to yes if exported symbols are required.
16006 always_export_symbols=$always_export_symbols_F77
16008 # The commands to list exported symbols.
16009 export_symbols_cmds=$lt_export_symbols_cmds_F77
16011 # The commands to extract the exported symbol list from a shared archive.
16012 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16014 # Symbols that should not be listed in the preloaded symbols.
16015 exclude_expsyms=$lt_exclude_expsyms_F77
16017 # Symbols that must always be exported.
16018 include_expsyms=$lt_include_expsyms_F77
16020 # ### END LIBTOOL TAG CONFIG: $tagname
16026 # If there is no Makefile yet, we rely on a make rule to execute
16027 # `config.status --recheck' to rerun these tests and create the
16028 # libtool script then.
16029 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16030 if test -f "$ltmain_in"; then
16031 test -f Makefile && make "$ltmain"
16037 ac_cpp='$CPP $CPPFLAGS'
16038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16050 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16054 # Source file extension for Java test sources.
16057 # Object file extension for compiled Java test sources.
16061 # Code to be used in simple compile tests
16062 lt_simple_compile_test_code="class foo {}\n"
16064 # Code to be used in simple link tests
16065 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16067 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16069 # If no C compiler was specified, use CC.
16072 # Allow CC to be a program name with arguments.
16076 # Allow CC to be a program name with arguments.
16082 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16083 archive_cmds_need_lc_GCJ=no
16086 lt_prog_compiler_no_builtin_flag_GCJ=
16088 if test "$GCC" = yes; then
16089 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16092 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16093 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16094 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16095 echo $ECHO_N "(cached) $ECHO_C" >&6
16097 lt_cv_prog_compiler_rtti_exceptions=no
16098 ac_outfile=conftest.$ac_objext
16099 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16100 lt_compiler_flag="-fno-rtti -fno-exceptions"
16101 # Insert the option either (1) after the last *FLAGS variable, or
16102 # (2) before a word containing "conftest.", or (3) at the end.
16103 # Note that $ac_compile itself does not contain backslashes and begins
16104 # with a dollar sign (not a hyphen), so the echo should work correctly.
16105 # The option is referenced via a variable to avoid confusing sed.
16106 lt_compile=`echo "$ac_compile" | $SED \
16107 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16109 -e 's:$: $lt_compiler_flag:'`
16110 (eval echo "\"\$as_me:16110: $lt_compile\"" >&5)
16111 (eval "$lt_compile" 2>conftest.err)
16113 cat conftest.err >&5
16114 echo "$as_me:16114: \$? = $ac_status" >&5
16115 if (exit $ac_status) && test -s "$ac_outfile"; then
16116 # The compiler can only warn and ignore the option if not recognized
16117 # So say no if there are warnings
16118 if test ! -s conftest.err; then
16119 lt_cv_prog_compiler_rtti_exceptions=yes
16125 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16126 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16128 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16129 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16136 lt_prog_compiler_wl_GCJ=
16137 lt_prog_compiler_pic_GCJ=
16138 lt_prog_compiler_static_GCJ=
16140 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16141 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16143 if test "$GCC" = yes; then
16144 lt_prog_compiler_wl_GCJ='-Wl,'
16145 lt_prog_compiler_static_GCJ='-static'
16149 # All AIX code is PIC.
16150 if test "$host_cpu" = ia64; then
16151 # AIX 5 now supports IA64 processor
16152 lt_prog_compiler_static_GCJ='-Bstatic'
16157 # FIXME: we need at least 68020 code to build shared libraries, but
16158 # adding the `-m68020' flag to GCC prevents building anything better,
16160 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16163 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16164 # PIC is the default for these OSes.
16167 mingw* | pw32* | os2*)
16168 # This hack is so that the source file can tell whether it is being
16169 # built for inclusion in a dll (and should export symbols for example).
16170 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16173 darwin* | rhapsody*)
16174 # PIC is the default on this platform
16175 # Common symbols not allowed in MH_DYLIB files
16176 lt_prog_compiler_pic_GCJ='-fno-common'
16180 # Just because we use GCC doesn't mean we suddenly get shared libraries
16181 # on systems that don't support them.
16182 lt_prog_compiler_can_build_shared_GCJ=no
16187 if test -d /usr/nec; then
16188 lt_prog_compiler_pic_GCJ=-Kconform_pic
16193 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16194 # not for PA HP-UX.
16195 case "$host_cpu" in
16200 lt_prog_compiler_pic_GCJ='-fPIC'
16206 lt_prog_compiler_pic_GCJ='-fPIC'
16210 # PORTME Check for flag to pass linker flags through the system compiler.
16213 lt_prog_compiler_wl_GCJ='-Wl,'
16214 if test "$host_cpu" = ia64; then
16215 # AIX 5 now supports IA64 processor
16216 lt_prog_compiler_static_GCJ='-Bstatic'
16218 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16222 mingw* | pw32* | os2*)
16223 # This hack is so that the source file can tell whether it is being
16224 # built for inclusion in a dll (and should export symbols for example).
16225 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16228 hpux9* | hpux10* | hpux11*)
16229 lt_prog_compiler_wl_GCJ='-Wl,'
16230 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16231 # not for PA HP-UX.
16232 case "$host_cpu" in
16237 lt_prog_compiler_pic_GCJ='+Z'
16240 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16241 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16244 irix5* | irix6* | nonstopux*)
16245 lt_prog_compiler_wl_GCJ='-Wl,'
16246 # PIC (with -KPIC) is the default.
16247 lt_prog_compiler_static_GCJ='-non_shared'
16251 lt_prog_compiler_pic_GCJ='-KPIC'
16252 lt_prog_compiler_static_GCJ='-Bstatic'
16258 lt_prog_compiler_wl_GCJ='-Wl,'
16259 lt_prog_compiler_pic_GCJ='-KPIC'
16260 lt_prog_compiler_static_GCJ='-static'
16263 lt_prog_compiler_wl_GCJ='-Wl,'
16264 # All Alpha code is PIC.
16265 lt_prog_compiler_static_GCJ='-non_shared'
16270 osf3* | osf4* | osf5*)
16271 lt_prog_compiler_wl_GCJ='-Wl,'
16272 # All OSF/1 code is PIC.
16273 lt_prog_compiler_static_GCJ='-non_shared'
16277 lt_prog_compiler_pic_GCJ='-Kpic'
16278 lt_prog_compiler_static_GCJ='-dn'
16282 lt_prog_compiler_wl_GCJ='-Wl,'
16283 lt_prog_compiler_pic_GCJ='-KPIC'
16284 lt_prog_compiler_static_GCJ='-Bstatic'
16288 lt_prog_compiler_wl_GCJ='-Qoption ld '
16289 lt_prog_compiler_pic_GCJ='-PIC'
16290 lt_prog_compiler_static_GCJ='-Bstatic'
16293 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16294 lt_prog_compiler_wl_GCJ='-Wl,'
16295 lt_prog_compiler_pic_GCJ='-KPIC'
16296 lt_prog_compiler_static_GCJ='-Bstatic'
16300 if test -d /usr/nec ;then
16301 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16302 lt_prog_compiler_static_GCJ='-Bstatic'
16307 lt_prog_compiler_pic_GCJ='-pic'
16308 lt_prog_compiler_static_GCJ='-Bstatic'
16312 lt_prog_compiler_can_build_shared_GCJ=no
16317 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16318 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16321 # Check to make sure the PIC flag actually works.
16323 if test -n "$lt_prog_compiler_pic_GCJ"; then
16325 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16326 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16327 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16328 echo $ECHO_N "(cached) $ECHO_C" >&6
16330 lt_prog_compiler_pic_works_GCJ=no
16331 ac_outfile=conftest.$ac_objext
16332 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16333 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16334 # Insert the option either (1) after the last *FLAGS variable, or
16335 # (2) before a word containing "conftest.", or (3) at the end.
16336 # Note that $ac_compile itself does not contain backslashes and begins
16337 # with a dollar sign (not a hyphen), so the echo should work correctly.
16338 # The option is referenced via a variable to avoid confusing sed.
16339 lt_compile=`echo "$ac_compile" | $SED \
16340 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16342 -e 's:$: $lt_compiler_flag:'`
16343 (eval echo "\"\$as_me:16343: $lt_compile\"" >&5)
16344 (eval "$lt_compile" 2>conftest.err)
16346 cat conftest.err >&5
16347 echo "$as_me:16347: \$? = $ac_status" >&5
16348 if (exit $ac_status) && test -s "$ac_outfile"; then
16349 # The compiler can only warn and ignore the option if not recognized
16350 # So say no if there are warnings
16351 if test ! -s conftest.err; then
16352 lt_prog_compiler_pic_works_GCJ=yes
16358 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16359 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16361 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16362 case $lt_prog_compiler_pic_GCJ in
16364 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16367 lt_prog_compiler_pic_GCJ=
16368 lt_prog_compiler_can_build_shared_GCJ=no
16373 # For platforms which do not support PIC, -DPIC is meaningless:
16375 lt_prog_compiler_pic_GCJ=
16378 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16382 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16383 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16384 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16385 echo $ECHO_N "(cached) $ECHO_C" >&6
16387 lt_cv_prog_compiler_c_o_GCJ=no
16388 $rm -r conftest 2>/dev/null
16392 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16394 lt_compiler_flag="-o out/conftest2.$ac_objext"
16395 # Insert the option either (1) after the last *FLAGS variable, or
16396 # (2) before a word containing "conftest.", or (3) at the end.
16397 # Note that $ac_compile itself does not contain backslashes and begins
16398 # with a dollar sign (not a hyphen), so the echo should work correctly.
16399 lt_compile=`echo "$ac_compile" | $SED \
16400 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16402 -e 's:$: $lt_compiler_flag:'`
16403 (eval echo "\"\$as_me:16403: $lt_compile\"" >&5)
16404 (eval "$lt_compile" 2>out/conftest.err)
16406 cat out/conftest.err >&5
16407 echo "$as_me:16407: \$? = $ac_status" >&5
16408 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16410 # The compiler can only warn and ignore the option if not recognized
16411 # So say no if there are warnings
16412 if test ! -s out/conftest.err; then
16413 lt_cv_prog_compiler_c_o_GCJ=yes
16418 # SGI C++ compiler will create directory out/ii_files/ for
16419 # template instantiation
16420 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16421 $rm out/* && rmdir out
16427 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16428 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16431 hard_links="nottested"
16432 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16433 # do not overwrite the value of need_locks provided by the user
16434 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16435 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16438 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16440 ln conftest.a conftest.b 2>&5 || hard_links=no
16441 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16442 echo "$as_me:$LINENO: result: $hard_links" >&5
16443 echo "${ECHO_T}$hard_links" >&6
16444 if test "$hard_links" = no; then
16445 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16446 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16453 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16454 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16457 allow_undefined_flag_GCJ=
16458 enable_shared_with_static_runtimes_GCJ=no
16460 archive_expsym_cmds_GCJ=
16461 old_archive_From_new_cmds_GCJ=
16462 old_archive_from_expsyms_cmds_GCJ=
16463 export_dynamic_flag_spec_GCJ=
16464 whole_archive_flag_spec_GCJ=
16465 thread_safe_flag_spec_GCJ=
16466 hardcode_libdir_flag_spec_GCJ=
16467 hardcode_libdir_flag_spec_ld_GCJ=
16468 hardcode_libdir_separator_GCJ=
16469 hardcode_direct_GCJ=no
16470 hardcode_minus_L_GCJ=no
16471 hardcode_shlibpath_var_GCJ=unsupported
16472 link_all_deplibs_GCJ=unknown
16473 hardcode_automatic_GCJ=no
16475 module_expsym_cmds_GCJ=
16476 always_export_symbols_GCJ=no
16477 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16478 # include_expsyms should be a list of space-separated symbols to be *always*
16479 # included in the symbol list
16480 include_expsyms_GCJ=
16481 # exclude_expsyms can be an extended regexp of symbols to exclude
16482 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16483 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16484 # as well as any symbol that contains `d'.
16485 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16486 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16487 # platforms (ab)use it in PIC code, but their linkers get confused if
16488 # the symbol is explicitly referenced. Since portable code cannot
16489 # rely on this symbol name, it's probably fine to never include it in
16490 # preloaded symbol tables.
16491 extract_expsyms_cmds=
16494 cygwin* | mingw* | pw32*)
16495 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16496 # When not using gcc, we currently assume that we are using
16497 # Microsoft Visual C++.
16498 if test "$GCC" != yes; then
16508 if test "$with_gnu_ld" = yes; then
16509 # If archive_cmds runs LD, not CC, wlarc should be empty
16512 # See if GNU ld supports shared libraries.
16514 aix3* | aix4* | aix5*)
16515 # On AIX/PPC, the GNU linker is very broken
16516 if test "$host_cpu" != ia64; then
16520 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16521 *** to be unable to reliably create shared libraries on AIX.
16522 *** Therefore, libtool is disabling shared libraries support. If you
16523 *** really care for shared libraries, you may want to modify your PATH
16524 *** so that a non-GNU linker is found, and then restart.
16531 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)'
16532 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16533 hardcode_minus_L_GCJ=yes
16535 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16536 # that the semantics of dynamic libraries on AmigaOS, at least up
16537 # to version 4, is to share data among multiple programs linked
16538 # with the same dynamic library. Since this doesn't match the
16539 # behavior of shared libraries on other platforms, we can't use
16545 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16546 allow_undefined_flag_GCJ=unsupported
16547 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16548 # support --undefined. This deserves some investigation. FIXME
16549 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16555 cygwin* | mingw* | pw32*)
16556 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16557 # as there is no search path for DLLs.
16558 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16559 allow_undefined_flag_GCJ=unsupported
16560 always_export_symbols_GCJ=no
16561 enable_shared_with_static_runtimes_GCJ=yes
16562 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16564 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16565 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16566 # If the export-symbols file already is a .def file (1st line
16567 # is EXPORTS), use it as is; otherwise, prepend...
16568 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16569 cp $export_symbols $output_objdir/$soname.def;
16571 echo EXPORTS > $output_objdir/$soname.def;
16572 cat $export_symbols >> $output_objdir/$soname.def;
16574 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16581 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16582 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16585 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16586 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16591 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16595 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16596 *** create shared libraries on Solaris systems. Therefore, libtool
16597 *** is disabling shared libraries support. We urge you to upgrade GNU
16598 *** binutils to release 2.9.1 or newer. Another option is to modify
16599 *** your PATH or compiler configuration so that the native linker is
16600 *** used, and then restart.
16603 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16604 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16605 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16612 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16614 hardcode_direct_GCJ=yes
16615 hardcode_shlibpath_var_GCJ=no
16619 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16620 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16621 archive_cmds_GCJ="$tmp_archive_cmds"
16622 supports_anon_versioning=no
16623 case `$LD -v 2>/dev/null` in
16624 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16625 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16626 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16627 *\ 2.11.*) ;; # other 2.11 versions
16628 *) supports_anon_versioning=yes ;;
16630 if test $supports_anon_versioning = yes; then
16631 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16632 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16633 $echo "local: *; };" >> $output_objdir/$libname.ver~
16634 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16636 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16644 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16645 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16646 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16653 if test "$ld_shlibs_GCJ" = yes; then
16654 runpath_var=LD_RUN_PATH
16655 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16656 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16657 # ancient GNU ld didn't support --whole-archive et. al.
16658 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16659 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16661 whole_archive_flag_spec_GCJ=
16665 # PORTME fill in a description of your system's linker (not GNU ld)
16668 allow_undefined_flag_GCJ=unsupported
16669 always_export_symbols_GCJ=yes
16670 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'
16671 # Note: this linker hardcodes the directories in LIBPATH if there
16672 # are no directories specified by -L.
16673 hardcode_minus_L_GCJ=yes
16674 if test "$GCC" = yes && test -z "$link_static_flag"; then
16675 # Neither direct hardcoding nor static linking is supported with a
16677 hardcode_direct_GCJ=unsupported
16682 if test "$host_cpu" = ia64; then
16683 # On IA64, the linker does run time linking by default, so we don't
16684 # have to do anything special.
16685 aix_use_runtimelinking=no
16686 exp_sym_flag='-Bexport'
16689 # If we're using GNU nm, then we don't want the "-C" option.
16690 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16691 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16692 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'
16694 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'
16696 aix_use_runtimelinking=no
16698 # Test if we are trying to use run time linking or normal
16699 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16700 # need to do runtime linking.
16701 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16702 for ld_flag in $LDFLAGS; do
16703 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16704 aix_use_runtimelinking=yes
16710 exp_sym_flag='-bexport'
16711 no_entry_flag='-bnoentry'
16714 # When large executables or shared objects are built, AIX ld can
16715 # have problems creating the table of contents. If linking a library
16716 # or program results in "error TOC overflow" add -mminimal-toc to
16717 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16718 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16720 archive_cmds_GCJ=''
16721 hardcode_direct_GCJ=yes
16722 hardcode_libdir_separator_GCJ=':'
16723 link_all_deplibs_GCJ=yes
16725 if test "$GCC" = yes; then
16726 case $host_os in aix4.012|aix4.012.*)
16727 # We only want to do this on AIX 4.2 and lower, the check
16728 # below for broken collect2 doesn't work under 4.3+
16729 collect2name=`${CC} -print-prog-name=collect2`
16730 if test -f "$collect2name" && \
16731 strings "$collect2name" | grep resolve_lib_name >/dev/null
16733 # We have reworked collect2
16734 hardcode_direct_GCJ=yes
16736 # We have old collect2
16737 hardcode_direct_GCJ=unsupported
16738 # It fails to find uninstalled libraries when the uninstalled
16739 # path is not listed in the libpath. Setting hardcode_minus_L
16740 # to unsupported forces relinking
16741 hardcode_minus_L_GCJ=yes
16742 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16743 hardcode_libdir_separator_GCJ=
16746 shared_flag='-shared'
16749 if test "$host_cpu" = ia64; then
16750 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16751 # chokes on -Wl,-G. The following line is correct:
16754 if test "$aix_use_runtimelinking" = yes; then
16755 shared_flag='${wl}-G'
16757 shared_flag='${wl}-bM:SRE'
16762 # It seems that -bexpall does not export symbols beginning with
16763 # underscore (_), so it is better to generate a list of symbols to export.
16764 always_export_symbols_GCJ=yes
16765 if test "$aix_use_runtimelinking" = yes; then
16766 # Warning - without using the other runtime loading flags (-brtl),
16767 # -berok will link without error, but may produce a broken library.
16768 allow_undefined_flag_GCJ='-berok'
16769 # Determine the default libpath from the value encoded in an empty executable.
16770 cat >conftest.$ac_ext <<_ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16785 rm -f conftest.$ac_objext conftest$ac_exeext
16786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16787 (eval $ac_link) 2>conftest.er1
16789 grep -v '^ *+' conftest.er1 >conftest.err
16791 cat conftest.err >&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
16794 { ac_try='test -z "$ac_c_werror_flag"
16795 || test ! -s conftest.err'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; } &&
16801 { ac_try='test -s conftest$ac_exeext'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16808 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16810 # Check for a 64-bit object if we didn't find anything.
16811 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; }
16814 echo "$as_me: failed program was:" >&5
16815 sed 's/^/| /' conftest.$ac_ext >&5
16818 rm -f conftest.err conftest.$ac_objext \
16819 conftest$ac_exeext conftest.$ac_ext
16820 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16822 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16823 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"
16825 if test "$host_cpu" = ia64; then
16826 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16827 allow_undefined_flag_GCJ="-z nodefs"
16828 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"
16830 # Determine the default libpath from the value encoded in an empty executable.
16831 cat >conftest.$ac_ext <<_ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h. */
16846 rm -f conftest.$ac_objext conftest$ac_exeext
16847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16848 (eval $ac_link) 2>conftest.er1
16850 grep -v '^ *+' conftest.er1 >conftest.err
16852 cat conftest.err >&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } &&
16855 { ac_try='test -z "$ac_c_werror_flag"
16856 || test ! -s conftest.err'
16857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858 (eval $ac_try) 2>&5
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; } &&
16862 { ac_try='test -s conftest$ac_exeext'
16863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864 (eval $ac_try) 2>&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; }; then
16869 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16871 # Check for a 64-bit object if we didn't find anything.
16872 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; }
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16879 rm -f conftest.err conftest.$ac_objext \
16880 conftest$ac_exeext conftest.$ac_ext
16881 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16883 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16884 # Warning - without using the other run time loading flags,
16885 # -berok will link without error, but may produce a broken library.
16886 no_undefined_flag_GCJ=' ${wl}-bernotok'
16887 allow_undefined_flag_GCJ=' ${wl}-berok'
16888 # -bexpall does not export symbols beginning with underscore (_)
16889 always_export_symbols_GCJ=yes
16890 # Exported symbols can be pulled into shared objects from archives
16891 whole_archive_flag_spec_GCJ=' '
16892 archive_cmds_need_lc_GCJ=yes
16893 # This is similar to how AIX traditionally builds it's shared libraries.
16894 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'
16900 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)'
16901 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16902 hardcode_minus_L_GCJ=yes
16903 # see comment about different semantics on the GNU ld section
16908 export_dynamic_flag_spec_GCJ=-rdynamic
16911 cygwin* | mingw* | pw32*)
16912 # When not using gcc, we currently assume that we are using
16913 # Microsoft Visual C++.
16914 # hardcode_libdir_flag_spec is actually meaningless, as there is
16915 # no search path for DLLs.
16916 hardcode_libdir_flag_spec_GCJ=' '
16917 allow_undefined_flag_GCJ=unsupported
16918 # Tell ltmain to make .lib files, not .a files.
16920 # Tell ltmain to make .dll files, not .so files.
16922 # FIXME: Setting linknames here is a bad hack.
16923 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16924 # The linker will automatically build a .lib file if we build a DLL.
16925 old_archive_From_new_cmds_GCJ='true'
16926 # FIXME: Should let the user specify the lib program.
16927 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16928 fix_srcfile_path='`cygpath -w "$srcfile"`'
16929 enable_shared_with_static_runtimes_GCJ=yes
16932 darwin* | rhapsody*)
16933 if test "$GXX" = yes ; then
16934 archive_cmds_need_lc_GCJ=no
16936 rhapsody* | darwin1.[012])
16937 allow_undefined_flag_GCJ='-undefined suppress'
16940 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16941 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16943 case ${MACOSX_DEPLOYMENT_TARGET} in
16945 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16948 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16954 lt_int_apple_cc_single_mod=no
16955 output_verbose_link_cmd='echo'
16956 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16957 lt_int_apple_cc_single_mod=yes
16959 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16960 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16962 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16964 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16965 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16966 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16967 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16969 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16971 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}'
16972 hardcode_direct_GCJ=no
16973 hardcode_automatic_GCJ=yes
16974 hardcode_shlibpath_var_GCJ=unsupported
16975 whole_archive_flag_spec_GCJ='-all_load $convenience'
16976 link_all_deplibs_GCJ=yes
16983 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16984 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16985 hardcode_shlibpath_var_GCJ=no
16992 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16993 # support. Future versions do this automatically, but an explicit c++rt0.o
16994 # does not break anything, and helps significantly (at the cost of a little
16997 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16998 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16999 hardcode_direct_GCJ=yes
17000 hardcode_shlibpath_var_GCJ=no
17003 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17005 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17006 hardcode_direct_GCJ=yes
17007 hardcode_minus_L_GCJ=yes
17008 hardcode_shlibpath_var_GCJ=no
17011 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17012 freebsd* | kfreebsd*-gnu)
17013 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17014 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17015 hardcode_direct_GCJ=yes
17016 hardcode_shlibpath_var_GCJ=no
17020 if test "$GCC" = yes; then
17021 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'
17023 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'
17025 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17026 hardcode_libdir_separator_GCJ=:
17027 hardcode_direct_GCJ=yes
17029 # hardcode_minus_L: Not really in the search PATH,
17030 # but as the default location of the library.
17031 hardcode_minus_L_GCJ=yes
17032 export_dynamic_flag_spec_GCJ='${wl}-E'
17036 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17037 case "$host_cpu" in
17039 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17042 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17046 case "$host_cpu" in
17048 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17051 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17055 if test "$with_gnu_ld" = no; then
17056 case "$host_cpu" in
17058 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17059 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17060 hardcode_libdir_separator_GCJ=:
17061 hardcode_direct_GCJ=no
17062 hardcode_shlibpath_var_GCJ=no
17065 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17066 hardcode_direct_GCJ=no
17067 hardcode_shlibpath_var_GCJ=no
17069 # hardcode_minus_L: Not really in the search PATH,
17070 # but as the default location of the library.
17071 hardcode_minus_L_GCJ=yes
17074 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17075 hardcode_libdir_separator_GCJ=:
17076 hardcode_direct_GCJ=yes
17077 export_dynamic_flag_spec_GCJ='${wl}-E'
17079 # hardcode_minus_L: Not really in the search PATH,
17080 # but as the default location of the library.
17081 hardcode_minus_L_GCJ=yes
17087 irix5* | irix6* | nonstopux*)
17088 if test "$GCC" = yes; then
17089 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'
17091 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'
17092 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17094 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17095 hardcode_libdir_separator_GCJ=:
17096 link_all_deplibs_GCJ=yes
17100 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17101 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17103 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17105 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17106 hardcode_direct_GCJ=yes
17107 hardcode_shlibpath_var_GCJ=no
17111 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17112 hardcode_direct_GCJ=yes
17113 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17114 hardcode_libdir_separator_GCJ=:
17115 hardcode_shlibpath_var_GCJ=no
17119 hardcode_direct_GCJ=yes
17120 hardcode_shlibpath_var_GCJ=no
17121 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17122 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17123 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17124 export_dynamic_flag_spec_GCJ='${wl}-E'
17127 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17128 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17129 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17132 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17133 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17140 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17141 hardcode_minus_L_GCJ=yes
17142 allow_undefined_flag_GCJ=unsupported
17143 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'
17144 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17148 if test "$GCC" = yes; then
17149 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17150 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'
17152 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17153 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'
17155 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17156 hardcode_libdir_separator_GCJ=:
17159 osf4* | osf5*) # as osf3* with the addition of -msym flag
17160 if test "$GCC" = yes; then
17161 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17162 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'
17163 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17165 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17166 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'
17167 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~
17168 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17170 # Both c and cxx compiler support -rpath directly
17171 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17173 hardcode_libdir_separator_GCJ=:
17177 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17178 hardcode_shlibpath_var_GCJ=no
17179 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17180 runpath_var=LD_RUN_PATH
17181 hardcode_runpath_var=yes
17185 no_undefined_flag_GCJ=' -z text'
17186 if test "$GCC" = yes; then
17187 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17188 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17189 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17191 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17192 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17193 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17195 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17196 hardcode_shlibpath_var_GCJ=no
17198 solaris2.[0-5] | solaris2.[0-5].*) ;;
17199 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17200 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17202 link_all_deplibs_GCJ=yes
17206 if test "x$host_vendor" = xsequent; then
17207 # Use $CC to link under sequent, because it throws in some extra .o
17208 # files that make .init and .fini sections work.
17209 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17211 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17213 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17214 hardcode_direct_GCJ=yes
17215 hardcode_minus_L_GCJ=yes
17216 hardcode_shlibpath_var_GCJ=no
17220 case $host_vendor in
17222 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17223 hardcode_direct_GCJ=yes # is this really true???
17226 ## LD is ld it makes a PLAMLIB
17227 ## CC just makes a GrossModule.
17228 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17229 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17230 hardcode_direct_GCJ=no
17233 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17234 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17237 runpath_var='LD_RUN_PATH'
17238 hardcode_shlibpath_var_GCJ=no
17242 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17243 hardcode_shlibpath_var_GCJ=no
17244 export_dynamic_flag_spec_GCJ='-Bexport'
17248 if test -d /usr/nec; then
17249 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17250 hardcode_shlibpath_var_GCJ=no
17251 runpath_var=LD_RUN_PATH
17252 hardcode_runpath_var=yes
17258 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17259 hardcode_direct_GCJ=yes
17260 hardcode_minus_L_GCJ=no
17261 hardcode_shlibpath_var_GCJ=no
17262 hardcode_runpath_var=yes
17263 runpath_var=LD_RUN_PATH
17266 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17267 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17268 if test "$GCC" = yes; then
17269 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17271 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17273 runpath_var='LD_RUN_PATH'
17274 hardcode_shlibpath_var_GCJ=no
17278 no_undefined_flag_GCJ=' -z text'
17279 # $CC -shared without GNU ld will not create a library from C++
17280 # object files and a static libstdc++, better avoid it by now
17281 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17282 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17283 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17284 hardcode_libdir_flag_spec_GCJ=
17285 hardcode_shlibpath_var_GCJ=no
17286 runpath_var='LD_RUN_PATH'
17290 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17291 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17292 hardcode_shlibpath_var_GCJ=no
17301 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17302 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17303 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17305 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17306 if test "$GCC" = yes; then
17307 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17311 # Do we need to explicitly link libc?
17313 case "x$archive_cmds_need_lc_GCJ" in
17315 # Assume -lc should be added
17316 archive_cmds_need_lc_GCJ=yes
17318 if test "$enable_shared" = yes && test "$GCC" = yes; then
17319 case $archive_cmds_GCJ in
17321 # FIXME: we may have to deal with multi-command sequences.
17324 # Test whether the compiler implicitly links with -lc since on some
17325 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17326 # to ld, don't add -lc before -lgcc.
17327 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17328 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17330 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17333 (eval $ac_compile) 2>&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); } 2>conftest.err; then
17339 libobjs=conftest.$ac_objext
17341 wl=$lt_prog_compiler_wl_GCJ
17347 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17348 allow_undefined_flag_GCJ=
17349 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17350 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }
17355 archive_cmds_need_lc_GCJ=no
17357 archive_cmds_need_lc_GCJ=yes
17359 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17361 cat conftest.err 1>&5
17364 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17365 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17372 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17373 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17374 library_names_spec=
17375 libname_spec='lib$name'
17379 postuninstall_cmds=
17383 shlibpath_overrides_runpath=unknown
17385 dynamic_linker="$host_os ld.so"
17386 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17387 if test "$GCC" = yes; then
17388 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17389 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17390 # if the path contains ";" then we assume it to be the separator
17391 # otherwise default to the standard path separator (i.e. ":") - it is
17392 # assumed that no part of a normal pathname contains ";" but that should
17393 # okay in the real world where ";" in dirpaths is itself problematic.
17394 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17399 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17401 need_lib_prefix=unknown
17402 hardcode_into_libs=no
17404 # when you set need_version to no, make sure it does not cause -set_version
17405 # flags to be left without arguments
17406 need_version=unknown
17411 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17412 shlibpath_var=LIBPATH
17414 # AIX 3 has no versioning support, so we append a major version to the name.
17415 soname_spec='${libname}${release}${shared_ext}$major'
17422 hardcode_into_libs=yes
17423 if test "$host_cpu" = ia64; then
17424 # AIX 5 supports IA64
17425 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17426 shlibpath_var=LD_LIBRARY_PATH
17428 # With GCC up to 2.95.x, collect2 would create an import file
17429 # for dependence libraries. The import file would start with
17430 # the line `#! .'. This would cause the generated library to
17431 # depend on `.', always an invalid library. This was fixed in
17432 # development snapshots of GCC prior to 3.0.
17434 aix4 | aix4.[01] | aix4.[01].*)
17435 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17437 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17440 can_build_shared=no
17444 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17445 # soname into executable. Probably we can add versioning support to
17446 # collect2, so additional links can be useful in future.
17447 if test "$aix_use_runtimelinking" = yes; then
17448 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17449 # instead of lib<name>.a to let people know that these are not
17450 # typical AIX shared libraries.
17451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17453 # We preserve .a as extension for shared libraries through AIX4.2
17454 # and later when we are not doing run time linking.
17455 library_names_spec='${libname}${release}.a $libname.a'
17456 soname_spec='${libname}${release}${shared_ext}$major'
17458 shlibpath_var=LIBPATH
17463 library_names_spec='$libname.ixlibrary $libname.a'
17464 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17465 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'
17469 library_names_spec='${libname}${shared_ext}'
17470 dynamic_linker="$host_os ld.so"
17471 shlibpath_var=LIBRARY_PATH
17477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17478 soname_spec='${libname}${release}${shared_ext}$major'
17479 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17480 shlibpath_var=LD_LIBRARY_PATH
17481 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17482 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17483 # the default ld.so.conf also contains /usr/contrib/lib and
17484 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17485 # libtool to hard-code these into programs
17488 cygwin* | mingw* | pw32*)
17489 version_type=windows
17494 case $GCC,$host_os in
17495 yes,cygwin* | yes,mingw* | yes,pw32*)
17496 library_names_spec='$libname.dll.a'
17497 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17498 postinstall_cmds='base_file=`basename \${file}`~
17499 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17500 dldir=$destdir/`dirname \$dlpath`~
17501 test -d \$dldir || mkdir -p \$dldir~
17502 $install_prog $dir/$dlname \$dldir/$dlname'
17503 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17504 dlpath=$dir/\$dldll~
17506 shlibpath_overrides_runpath=yes
17510 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17511 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17512 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17515 # MinGW DLLs use traditional 'lib' prefix
17516 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17517 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17518 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17519 # It is most probably a Windows format PATH printed by
17520 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17521 # path with ; separators, and with drive letters. We can handle the
17522 # drive letters (cygwin fileutils understands them), so leave them,
17523 # especially as we might pass files found there to a mingw objdump,
17524 # which wouldn't understand a cygwinified path. Ahh.
17525 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17527 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17531 # pw32 DLLs use 'pw' prefix rather than 'lib'
17532 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17538 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17541 dynamic_linker='Win32 ld.exe'
17542 # FIXME: first we should search . and the directory the executable is in
17546 darwin* | rhapsody*)
17547 dynamic_linker="$host_os dyld"
17548 version_type=darwin
17551 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17552 soname_spec='${libname}${release}${major}$shared_ext'
17553 shlibpath_overrides_runpath=yes
17554 shlibpath_var=DYLD_LIBRARY_PATH
17555 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17556 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17557 if test "$GCC" = yes; then
17558 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"`
17560 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17562 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17570 soname_spec='${libname}${release}${shared_ext}$major'
17571 shlibpath_var=LD_LIBRARY_PATH
17582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17583 soname_spec='${libname}${release}${shared_ext}$major'
17584 shlibpath_var=LD_LIBRARY_PATH
17585 shlibpath_overrides_runpath=no
17586 hardcode_into_libs=yes
17587 dynamic_linker='GNU ld.so'
17591 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17592 version_type=freebsd-$objformat
17593 case $version_type in
17595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17600 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17604 shlibpath_var=LD_LIBRARY_PATH
17607 shlibpath_overrides_runpath=yes
17609 freebsd3.01* | freebsdelf3.01*)
17610 shlibpath_overrides_runpath=yes
17611 hardcode_into_libs=yes
17614 shlibpath_overrides_runpath=no
17615 hardcode_into_libs=yes
17624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17625 soname_spec='${libname}${release}${shared_ext}$major'
17626 shlibpath_var=LD_LIBRARY_PATH
17627 hardcode_into_libs=yes
17630 hpux9* | hpux10* | hpux11*)
17631 # Give a soname corresponding to the major version so that dld.sl refuses to
17632 # link against other versions.
17636 case "$host_cpu" in
17639 hardcode_into_libs=yes
17640 dynamic_linker="$host_os dld.so"
17641 shlibpath_var=LD_LIBRARY_PATH
17642 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17644 soname_spec='${libname}${release}${shared_ext}$major'
17645 if test "X$HPUX_IA64_MODE" = X32; then
17646 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17648 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17650 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17654 hardcode_into_libs=yes
17655 dynamic_linker="$host_os dld.sl"
17656 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17659 soname_spec='${libname}${release}${shared_ext}$major'
17660 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17665 dynamic_linker="$host_os dld.sl"
17666 shlibpath_var=SHLIB_PATH
17667 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17669 soname_spec='${libname}${release}${shared_ext}$major'
17672 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17673 postinstall_cmds='chmod 555 $lib'
17676 irix5* | irix6* | nonstopux*)
17678 nonstopux*) version_type=nonstopux ;;
17680 if test "$lt_cv_prog_gnu_ld" = yes; then
17688 soname_spec='${libname}${release}${shared_ext}$major'
17689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17691 irix5* | nonstopux*)
17692 libsuff= shlibsuff=
17695 case $LD in # libtool.m4 will add one of these switches to LD
17696 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17697 libsuff= shlibsuff= libmagic=32-bit;;
17698 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17699 libsuff=32 shlibsuff=N32 libmagic=N32;;
17700 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17701 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17702 *) libsuff= shlibsuff= libmagic=never-match;;
17706 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17707 shlibpath_overrides_runpath=no
17708 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17709 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17710 hardcode_into_libs=yes
17713 # No shared lib support for Linux oldld, aout, or coff.
17714 linux*oldld* | linux*aout* | linux*coff*)
17718 # This must be Linux ELF.
17723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17724 soname_spec='${libname}${release}${shared_ext}$major'
17725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17726 shlibpath_var=LD_LIBRARY_PATH
17727 shlibpath_overrides_runpath=no
17728 # This implies no fast_install, which is unacceptable.
17729 # Some rework will be needed to allow for fast_install
17730 # before this can be enabled.
17731 hardcode_into_libs=yes
17733 # find out which ABI we are using
17735 case "$host_cpu" in
17736 x86_64*|s390x*|powerpc64*)
17737 echo '#line 17737 "configure"' > conftest.$ac_ext
17738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17739 (eval $ac_compile) 2>&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); }; then
17743 case `/usr/bin/file conftest.$ac_objext` in
17746 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17754 # Append ld.so.conf contents to the search path
17755 if test -f /etc/ld.so.conf; then
17756 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17757 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17760 # We used to test for /lib/ld.so.1 and disable shared libraries on
17761 # powerpc, because MkLinux only supported shared libraries with the
17762 # GNU dynamic linker. Since this was broken with cross compilers,
17763 # most powerpc-linux boxes support dynamic linking these days and
17764 # people can always --disable-shared, the test was removed, and we
17765 # assume the GNU/Linux dynamic linker is in use.
17766 dynamic_linker='GNU/Linux ld.so'
17773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17774 soname_spec='${libname}${release}${shared_ext}$major'
17775 shlibpath_var=LD_LIBRARY_PATH
17776 shlibpath_overrides_runpath=no
17777 hardcode_into_libs=yes
17778 dynamic_linker='GNU ld.so'
17785 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17788 dynamic_linker='NetBSD (a.out) ld.so'
17790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17791 soname_spec='${libname}${release}${shared_ext}$major'
17792 dynamic_linker='NetBSD ld.elf_so'
17794 shlibpath_var=LD_LIBRARY_PATH
17795 shlibpath_overrides_runpath=yes
17796 hardcode_into_libs=yes
17801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17802 shlibpath_var=LD_LIBRARY_PATH
17803 shlibpath_overrides_runpath=yes
17810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17811 soname_spec='${libname}${release}${shared_ext}$major'
17812 shlibpath_var=LD_LIBRARY_PATH
17813 shlibpath_overrides_runpath=yes
17820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17821 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17822 shlibpath_var=LD_LIBRARY_PATH
17823 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17825 openbsd2.[89] | openbsd2.[89].*)
17826 shlibpath_overrides_runpath=no
17829 shlibpath_overrides_runpath=yes
17833 shlibpath_overrides_runpath=yes
17838 libname_spec='$name'
17841 library_names_spec='$libname${shared_ext} $libname.a'
17842 dynamic_linker='OS/2 ld.exe'
17843 shlibpath_var=LIBPATH
17846 osf3* | osf4* | osf5*)
17850 soname_spec='${libname}${release}${shared_ext}$major'
17851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17852 shlibpath_var=LD_LIBRARY_PATH
17853 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17854 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17859 soname_spec='${libname}${release}${shared_ext}$major'
17860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17861 shlibpath_var=LD_LIBRARY_PATH
17868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17869 soname_spec='${libname}${release}${shared_ext}$major'
17870 shlibpath_var=LD_LIBRARY_PATH
17871 shlibpath_overrides_runpath=yes
17872 hardcode_into_libs=yes
17873 # ldd complains unless libraries are executable
17874 postinstall_cmds='chmod +x $lib'
17879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17880 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17881 shlibpath_var=LD_LIBRARY_PATH
17882 shlibpath_overrides_runpath=yes
17883 if test "$with_gnu_ld" = yes; then
17889 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17892 soname_spec='${libname}${release}${shared_ext}$major'
17893 shlibpath_var=LD_LIBRARY_PATH
17894 case $host_vendor in
17896 shlibpath_overrides_runpath=no
17898 export_dynamic_flag_spec='${wl}-Blargedynsym'
17899 runpath_var=LD_RUN_PATH
17907 shlibpath_overrides_runpath=no
17908 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17914 if test -d /usr/nec ;then
17916 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17917 soname_spec='$libname${shared_ext}.$major'
17918 shlibpath_var=LD_LIBRARY_PATH
17924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17925 soname_spec='${libname}${release}${shared_ext}$major'
17926 shlibpath_var=LD_LIBRARY_PATH
17933 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17934 echo "${ECHO_T}$dynamic_linker" >&6
17935 test "$dynamic_linker" = no && can_build_shared=no
17937 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17938 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17939 hardcode_action_GCJ=
17940 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17941 test -n "$runpath_var GCJ" || \
17942 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17944 # We can hardcode non-existant directories.
17945 if test "$hardcode_direct_GCJ" != no &&
17946 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17947 # have to relink, otherwise we might link with an installed library
17948 # when we should be linking with a yet-to-be-installed one
17949 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17950 test "$hardcode_minus_L_GCJ" != no; then
17951 # Linking always hardcodes the temporary library directory.
17952 hardcode_action_GCJ=relink
17954 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17955 hardcode_action_GCJ=immediate
17958 # We cannot hardcode anything, or else we can only hardcode existing
17960 hardcode_action_GCJ=unsupported
17962 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17963 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17965 if test "$hardcode_action_GCJ" = relink; then
17966 # Fast installation is not supported
17967 enable_fast_install=no
17968 elif test "$shlibpath_overrides_runpath" = yes ||
17969 test "$enable_shared" = no; then
17970 # Fast installation is not necessary
17971 enable_fast_install=needless
17976 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17977 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17978 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17979 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17980 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17981 echo "$as_me:$LINENO: result: yes" >&5
17982 echo "${ECHO_T}yes" >&6
17984 # FIXME - insert some real tests, host_os isn't really good enough
17987 if test -n "$STRIP" ; then
17988 striplib="$STRIP -x"
17989 echo "$as_me:$LINENO: result: yes" >&5
17990 echo "${ECHO_T}yes" >&6
17992 echo "$as_me:$LINENO: result: no" >&5
17993 echo "${ECHO_T}no" >&6
17997 echo "$as_me:$LINENO: result: no" >&5
17998 echo "${ECHO_T}no" >&6
18003 if test "x$enable_dlopen" != xyes; then
18004 enable_dlopen=unknown
18005 enable_dlopen_self=unknown
18006 enable_dlopen_self_static=unknown
18013 lt_cv_dlopen="load_add_on"
18015 lt_cv_dlopen_self=yes
18019 lt_cv_dlopen="LoadLibrary"
18024 lt_cv_dlopen="dlopen"
18029 # if libdl is installed we need to link against it
18030 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18031 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18032 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18033 echo $ECHO_N "(cached) $ECHO_C" >&6
18035 ac_check_lib_save_LIBS=$LIBS
18037 cat >conftest.$ac_ext <<_ACEOF
18040 cat confdefs.h >>conftest.$ac_ext
18041 cat >>conftest.$ac_ext <<_ACEOF
18042 /* end confdefs.h. */
18044 /* Override any gcc2 internal prototype to avoid an error. */
18048 /* We use char because int might match the return type of a gcc2
18049 builtin and then its argument prototype would still apply. */
18059 rm -f conftest.$ac_objext conftest$ac_exeext
18060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18061 (eval $ac_link) 2>conftest.er1
18063 grep -v '^ *+' conftest.er1 >conftest.err
18065 cat conftest.err >&5
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); } &&
18068 { ac_try='test -z "$ac_c_werror_flag"
18069 || test ! -s conftest.err'
18070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071 (eval $ac_try) 2>&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; } &&
18075 { ac_try='test -s conftest$ac_exeext'
18076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18077 (eval $ac_try) 2>&5
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }; }; then
18081 ac_cv_lib_dl_dlopen=yes
18083 echo "$as_me: failed program was:" >&5
18084 sed 's/^/| /' conftest.$ac_ext >&5
18086 ac_cv_lib_dl_dlopen=no
18088 rm -f conftest.err conftest.$ac_objext \
18089 conftest$ac_exeext conftest.$ac_ext
18090 LIBS=$ac_check_lib_save_LIBS
18092 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18093 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18094 if test $ac_cv_lib_dl_dlopen = yes; then
18095 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18098 lt_cv_dlopen="dyld"
18100 lt_cv_dlopen_self=yes
18107 echo "$as_me:$LINENO: checking for shl_load" >&5
18108 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18109 if test "${ac_cv_func_shl_load+set}" = set; then
18110 echo $ECHO_N "(cached) $ECHO_C" >&6
18112 cat >conftest.$ac_ext <<_ACEOF
18115 cat confdefs.h >>conftest.$ac_ext
18116 cat >>conftest.$ac_ext <<_ACEOF
18117 /* end confdefs.h. */
18118 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18120 #define shl_load innocuous_shl_load
18122 /* System header to define __stub macros and hopefully few prototypes,
18123 which can conflict with char shl_load (); below.
18124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18125 <limits.h> exists even on freestanding compilers. */
18128 # include <limits.h>
18130 # include <assert.h>
18135 /* Override any gcc2 internal prototype to avoid an error. */
18140 /* We use char because int might match the return type of a gcc2
18141 builtin and then its argument prototype would still apply. */
18143 /* The GNU C library defines this for functions which it implements
18144 to always fail with ENOSYS. Some functions are actually named
18145 something starting with __ and the normal name is an alias. */
18146 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18149 char (*f) () = shl_load;
18158 return f != shl_load;
18163 rm -f conftest.$ac_objext conftest$ac_exeext
18164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18165 (eval $ac_link) 2>conftest.er1
18167 grep -v '^ *+' conftest.er1 >conftest.err
18169 cat conftest.err >&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } &&
18172 { ac_try='test -z "$ac_c_werror_flag"
18173 || test ! -s conftest.err'
18174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175 (eval $ac_try) 2>&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; } &&
18179 { ac_try='test -s conftest$ac_exeext'
18180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181 (eval $ac_try) 2>&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18185 ac_cv_func_shl_load=yes
18187 echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18190 ac_cv_func_shl_load=no
18192 rm -f conftest.err conftest.$ac_objext \
18193 conftest$ac_exeext conftest.$ac_ext
18195 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18196 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18197 if test $ac_cv_func_shl_load = yes; then
18198 lt_cv_dlopen="shl_load"
18200 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18201 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18202 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18203 echo $ECHO_N "(cached) $ECHO_C" >&6
18205 ac_check_lib_save_LIBS=$LIBS
18207 cat >conftest.$ac_ext <<_ACEOF
18210 cat confdefs.h >>conftest.$ac_ext
18211 cat >>conftest.$ac_ext <<_ACEOF
18212 /* end confdefs.h. */
18214 /* Override any gcc2 internal prototype to avoid an error. */
18218 /* We use char because int might match the return type of a gcc2
18219 builtin and then its argument prototype would still apply. */
18229 rm -f conftest.$ac_objext conftest$ac_exeext
18230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18231 (eval $ac_link) 2>conftest.er1
18233 grep -v '^ *+' conftest.er1 >conftest.err
18235 cat conftest.err >&5
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); } &&
18238 { ac_try='test -z "$ac_c_werror_flag"
18239 || test ! -s conftest.err'
18240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241 (eval $ac_try) 2>&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; } &&
18245 { ac_try='test -s conftest$ac_exeext'
18246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247 (eval $ac_try) 2>&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; }; then
18251 ac_cv_lib_dld_shl_load=yes
18253 echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18256 ac_cv_lib_dld_shl_load=no
18258 rm -f conftest.err conftest.$ac_objext \
18259 conftest$ac_exeext conftest.$ac_ext
18260 LIBS=$ac_check_lib_save_LIBS
18262 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18263 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18264 if test $ac_cv_lib_dld_shl_load = yes; then
18265 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18267 echo "$as_me:$LINENO: checking for dlopen" >&5
18268 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18269 if test "${ac_cv_func_dlopen+set}" = set; then
18270 echo $ECHO_N "(cached) $ECHO_C" >&6
18272 cat >conftest.$ac_ext <<_ACEOF
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h. */
18278 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18280 #define dlopen innocuous_dlopen
18282 /* System header to define __stub macros and hopefully few prototypes,
18283 which can conflict with char dlopen (); below.
18284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18285 <limits.h> exists even on freestanding compilers. */
18288 # include <limits.h>
18290 # include <assert.h>
18295 /* Override any gcc2 internal prototype to avoid an error. */
18300 /* We use char because int might match the return type of a gcc2
18301 builtin and then its argument prototype would still apply. */
18303 /* The GNU C library defines this for functions which it implements
18304 to always fail with ENOSYS. Some functions are actually named
18305 something starting with __ and the normal name is an alias. */
18306 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18309 char (*f) () = dlopen;
18318 return f != dlopen;
18323 rm -f conftest.$ac_objext conftest$ac_exeext
18324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18325 (eval $ac_link) 2>conftest.er1
18327 grep -v '^ *+' conftest.er1 >conftest.err
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
18332 { ac_try='test -z "$ac_c_werror_flag"
18333 || test ! -s conftest.err'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; } &&
18339 { ac_try='test -s conftest$ac_exeext'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18345 ac_cv_func_dlopen=yes
18347 echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18350 ac_cv_func_dlopen=no
18352 rm -f conftest.err conftest.$ac_objext \
18353 conftest$ac_exeext conftest.$ac_ext
18355 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18356 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18357 if test $ac_cv_func_dlopen = yes; then
18358 lt_cv_dlopen="dlopen"
18360 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18361 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18362 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18363 echo $ECHO_N "(cached) $ECHO_C" >&6
18365 ac_check_lib_save_LIBS=$LIBS
18367 cat >conftest.$ac_ext <<_ACEOF
18370 cat confdefs.h >>conftest.$ac_ext
18371 cat >>conftest.$ac_ext <<_ACEOF
18372 /* end confdefs.h. */
18374 /* Override any gcc2 internal prototype to avoid an error. */
18378 /* We use char because int might match the return type of a gcc2
18379 builtin and then its argument prototype would still apply. */
18389 rm -f conftest.$ac_objext conftest$ac_exeext
18390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18391 (eval $ac_link) 2>conftest.er1
18393 grep -v '^ *+' conftest.er1 >conftest.err
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } &&
18398 { ac_try='test -z "$ac_c_werror_flag"
18399 || test ! -s conftest.err'
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; } &&
18405 { ac_try='test -s conftest$ac_exeext'
18406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407 (eval $ac_try) 2>&5
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); }; }; then
18411 ac_cv_lib_dl_dlopen=yes
18413 echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18416 ac_cv_lib_dl_dlopen=no
18418 rm -f conftest.err conftest.$ac_objext \
18419 conftest$ac_exeext conftest.$ac_ext
18420 LIBS=$ac_check_lib_save_LIBS
18422 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18423 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18424 if test $ac_cv_lib_dl_dlopen = yes; then
18425 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18427 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18428 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18429 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18430 echo $ECHO_N "(cached) $ECHO_C" >&6
18432 ac_check_lib_save_LIBS=$LIBS
18433 LIBS="-lsvld $LIBS"
18434 cat >conftest.$ac_ext <<_ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h. */
18441 /* Override any gcc2 internal prototype to avoid an error. */
18445 /* We use char because int might match the return type of a gcc2
18446 builtin and then its argument prototype would still apply. */
18456 rm -f conftest.$ac_objext conftest$ac_exeext
18457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18458 (eval $ac_link) 2>conftest.er1
18460 grep -v '^ *+' conftest.er1 >conftest.err
18462 cat conftest.err >&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); } &&
18465 { ac_try='test -z "$ac_c_werror_flag"
18466 || test ! -s conftest.err'
18467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468 (eval $ac_try) 2>&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; } &&
18472 { ac_try='test -s conftest$ac_exeext'
18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; }; then
18478 ac_cv_lib_svld_dlopen=yes
18480 echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18483 ac_cv_lib_svld_dlopen=no
18485 rm -f conftest.err conftest.$ac_objext \
18486 conftest$ac_exeext conftest.$ac_ext
18487 LIBS=$ac_check_lib_save_LIBS
18489 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18490 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18491 if test $ac_cv_lib_svld_dlopen = yes; then
18492 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18494 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18495 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18496 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18497 echo $ECHO_N "(cached) $ECHO_C" >&6
18499 ac_check_lib_save_LIBS=$LIBS
18501 cat >conftest.$ac_ext <<_ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18508 /* Override any gcc2 internal prototype to avoid an error. */
18512 /* We use char because int might match the return type of a gcc2
18513 builtin and then its argument prototype would still apply. */
18523 rm -f conftest.$ac_objext conftest$ac_exeext
18524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18525 (eval $ac_link) 2>conftest.er1
18527 grep -v '^ *+' conftest.er1 >conftest.err
18529 cat conftest.err >&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); } &&
18532 { ac_try='test -z "$ac_c_werror_flag"
18533 || test ! -s conftest.err'
18534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18535 (eval $ac_try) 2>&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); }; } &&
18539 { ac_try='test -s conftest$ac_exeext'
18540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541 (eval $ac_try) 2>&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; }; then
18545 ac_cv_lib_dld_dld_link=yes
18547 echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18550 ac_cv_lib_dld_dld_link=no
18552 rm -f conftest.err conftest.$ac_objext \
18553 conftest$ac_exeext conftest.$ac_ext
18554 LIBS=$ac_check_lib_save_LIBS
18556 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18557 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18558 if test $ac_cv_lib_dld_dld_link = yes; then
18559 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18580 if test "x$lt_cv_dlopen" != xno; then
18586 case $lt_cv_dlopen in
18588 save_CPPFLAGS="$CPPFLAGS"
18589 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18591 save_LDFLAGS="$LDFLAGS"
18592 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18595 LIBS="$lt_cv_dlopen_libs $LIBS"
18597 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18598 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18599 if test "${lt_cv_dlopen_self+set}" = set; then
18600 echo $ECHO_N "(cached) $ECHO_C" >&6
18602 if test "$cross_compiling" = yes; then :
18603 lt_cv_dlopen_self=cross
18605 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18606 lt_status=$lt_dlunknown
18607 cat > conftest.$ac_ext <<EOF
18608 #line 18608 "configure"
18609 #include "confdefs.h"
18618 # define LT_DLGLOBAL RTLD_GLOBAL
18621 # define LT_DLGLOBAL DL_GLOBAL
18623 # define LT_DLGLOBAL 0
18627 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18628 find out it does not work in some platform. */
18629 #ifndef LT_DLLAZY_OR_NOW
18631 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18634 # define LT_DLLAZY_OR_NOW DL_LAZY
18637 # define LT_DLLAZY_OR_NOW RTLD_NOW
18640 # define LT_DLLAZY_OR_NOW DL_NOW
18642 # define LT_DLLAZY_OR_NOW 0
18650 extern "C" void exit (int);
18653 void fnord() { int i=42;}
18656 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18657 int status = $lt_dlunknown;
18661 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18662 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18663 /* dlclose (self); */
18669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18670 (eval $ac_link) 2>&5
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18674 (./conftest; exit; ) 2>/dev/null
18676 case x$lt_status in
18677 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18678 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18679 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18682 # compilation failed
18683 lt_cv_dlopen_self=no
18690 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18691 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18693 if test "x$lt_cv_dlopen_self" = xyes; then
18694 LDFLAGS="$LDFLAGS $link_static_flag"
18695 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18696 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18697 if test "${lt_cv_dlopen_self_static+set}" = set; then
18698 echo $ECHO_N "(cached) $ECHO_C" >&6
18700 if test "$cross_compiling" = yes; then :
18701 lt_cv_dlopen_self_static=cross
18703 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18704 lt_status=$lt_dlunknown
18705 cat > conftest.$ac_ext <<EOF
18706 #line 18706 "configure"
18707 #include "confdefs.h"
18716 # define LT_DLGLOBAL RTLD_GLOBAL
18719 # define LT_DLGLOBAL DL_GLOBAL
18721 # define LT_DLGLOBAL 0
18725 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18726 find out it does not work in some platform. */
18727 #ifndef LT_DLLAZY_OR_NOW
18729 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18732 # define LT_DLLAZY_OR_NOW DL_LAZY
18735 # define LT_DLLAZY_OR_NOW RTLD_NOW
18738 # define LT_DLLAZY_OR_NOW DL_NOW
18740 # define LT_DLLAZY_OR_NOW 0
18748 extern "C" void exit (int);
18751 void fnord() { int i=42;}
18754 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18755 int status = $lt_dlunknown;
18759 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18760 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18761 /* dlclose (self); */
18767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18768 (eval $ac_link) 2>&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18772 (./conftest; exit; ) 2>/dev/null
18774 case x$lt_status in
18775 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18776 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18777 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18780 # compilation failed
18781 lt_cv_dlopen_self_static=no
18788 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18789 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18792 CPPFLAGS="$save_CPPFLAGS"
18793 LDFLAGS="$save_LDFLAGS"
18798 case $lt_cv_dlopen_self in
18799 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18800 *) enable_dlopen_self=unknown ;;
18803 case $lt_cv_dlopen_self_static in
18804 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18805 *) enable_dlopen_self_static=unknown ;;
18810 # The else clause should only fire when bootstrapping the
18811 # libtool distribution, otherwise you forgot to ship ltmain.sh
18812 # with your package, and you will get complaints that there are
18813 # no rules to generate ltmain.sh.
18814 if test -f "$ltmain"; then
18815 # See if we are running on zsh, and set the options which allow our commands through
18816 # without removal of \ escapes.
18817 if test -n "${ZSH_VERSION+set}" ; then
18818 setopt NO_GLOB_SUBST
18820 # Now quote all the things that may contain metacharacters while being
18821 # careful not to overquote the AC_SUBSTed values. We take copies of the
18822 # variables and quote the copies for generation of the libtool script.
18823 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18825 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18826 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18827 deplibs_check_method reload_flag reload_cmds need_locks \
18828 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18829 lt_cv_sys_global_symbol_to_c_name_address \
18830 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18831 old_postinstall_cmds old_postuninstall_cmds \
18835 lt_prog_compiler_wl_GCJ \
18836 lt_prog_compiler_pic_GCJ \
18837 lt_prog_compiler_static_GCJ \
18838 lt_prog_compiler_no_builtin_flag_GCJ \
18839 export_dynamic_flag_spec_GCJ \
18840 thread_safe_flag_spec_GCJ \
18841 whole_archive_flag_spec_GCJ \
18842 enable_shared_with_static_runtimes_GCJ \
18843 old_archive_cmds_GCJ \
18844 old_archive_from_new_cmds_GCJ \
18845 predep_objects_GCJ \
18846 postdep_objects_GCJ \
18849 compiler_lib_search_path_GCJ \
18851 archive_expsym_cmds_GCJ \
18852 postinstall_cmds_GCJ \
18853 postuninstall_cmds_GCJ \
18854 old_archive_from_expsyms_cmds_GCJ \
18855 allow_undefined_flag_GCJ \
18856 no_undefined_flag_GCJ \
18857 export_symbols_cmds_GCJ \
18858 hardcode_libdir_flag_spec_GCJ \
18859 hardcode_libdir_flag_spec_ld_GCJ \
18860 hardcode_libdir_separator_GCJ \
18861 hardcode_automatic_GCJ \
18863 module_expsym_cmds_GCJ \
18864 lt_cv_prog_compiler_c_o_GCJ \
18865 exclude_expsyms_GCJ \
18866 include_expsyms_GCJ; do
18869 old_archive_cmds_GCJ | \
18870 old_archive_from_new_cmds_GCJ | \
18871 archive_cmds_GCJ | \
18872 archive_expsym_cmds_GCJ | \
18873 module_cmds_GCJ | \
18874 module_expsym_cmds_GCJ | \
18875 old_archive_from_expsyms_cmds_GCJ | \
18876 export_symbols_cmds_GCJ | \
18877 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18878 postinstall_cmds | postuninstall_cmds | \
18879 old_postinstall_cmds | old_postuninstall_cmds | \
18880 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18881 # Double-quote double-evaled strings.
18882 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18885 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18891 *'\$0 --fallback-echo"')
18892 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18898 cat <<__EOF__ >> "$cfgfile"
18899 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18901 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18903 # Shell to use when invoking shell scripts.
18906 # Whether or not to build shared libraries.
18907 build_libtool_libs=$enable_shared
18909 # Whether or not to build static libraries.
18910 build_old_libs=$enable_static
18912 # Whether or not to add -lc for building shared libraries.
18913 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18915 # Whether or not to disallow shared libs when runtime libs are static
18916 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18918 # Whether or not to optimize for fast installation.
18919 fast_install=$enable_fast_install
18922 host_alias=$host_alias
18925 # An echo program that does not interpret backslashes.
18930 AR_FLAGS=$lt_AR_FLAGS
18935 # A language-specific compiler.
18936 CC=$lt_compiler_GCJ
18938 # Is the compiler the GNU C compiler?
18944 # The linker used to build libraries.
18947 # Whether we need hard or soft links.
18950 # A BSD-compatible nm program.
18953 # A symbol stripping program
18956 # Used to examine libraries when file_magic_cmd begins "file"
18957 MAGIC_CMD=$MAGIC_CMD
18959 # Used on cygwin: DLL creation program.
18962 # Used on cygwin: object dumper.
18965 # Used on cygwin: assembler.
18968 # The name of the directory that contains temporary libtool files.
18971 # How to create reloadable object files.
18972 reload_flag=$lt_reload_flag
18973 reload_cmds=$lt_reload_cmds
18975 # How to pass a linker flag through the compiler.
18976 wl=$lt_lt_prog_compiler_wl_GCJ
18978 # Object file suffix (normally "o").
18979 objext="$ac_objext"
18981 # Old archive suffix (normally "a").
18984 # Shared library suffix (normally ".so").
18985 shrext_cmds='$shrext_cmds'
18987 # Executable file suffix (normally "").
18990 # Additional compiler flags for building library objects.
18991 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18994 # What is the maximum length of a command?
18995 max_cmd_len=$lt_cv_sys_max_cmd_len
18997 # Does compiler simultaneously support -c and -o options?
18998 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19000 # Must we lock files when doing compilation ?
19001 need_locks=$lt_need_locks
19003 # Do we need the lib prefix for modules?
19004 need_lib_prefix=$need_lib_prefix
19006 # Do we need a version for libraries?
19007 need_version=$need_version
19009 # Whether dlopen is supported.
19010 dlopen_support=$enable_dlopen
19012 # Whether dlopen of programs is supported.
19013 dlopen_self=$enable_dlopen_self
19015 # Whether dlopen of statically linked programs is supported.
19016 dlopen_self_static=$enable_dlopen_self_static
19018 # Compiler flag to prevent dynamic linking.
19019 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19021 # Compiler flag to turn off builtin functions.
19022 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19024 # Compiler flag to allow reflexive dlopens.
19025 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19027 # Compiler flag to generate shared objects directly from archives.
19028 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19030 # Compiler flag to generate thread-safe objects.
19031 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19033 # Library versioning type.
19034 version_type=$version_type
19036 # Format of library name prefix.
19037 libname_spec=$lt_libname_spec
19039 # List of archive names. First name is the real one, the rest are links.
19040 # The last name is the one that the linker finds with -lNAME.
19041 library_names_spec=$lt_library_names_spec
19043 # The coded name of the library, if different from the real name.
19044 soname_spec=$lt_soname_spec
19046 # Commands used to build and install an old-style archive.
19048 old_archive_cmds=$lt_old_archive_cmds_GCJ
19049 old_postinstall_cmds=$lt_old_postinstall_cmds
19050 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19052 # Create an old-style archive from a shared archive.
19053 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19055 # Create a temporary old-style archive to link instead of a shared archive.
19056 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19058 # Commands used to build and install a shared archive.
19059 archive_cmds=$lt_archive_cmds_GCJ
19060 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19061 postinstall_cmds=$lt_postinstall_cmds
19062 postuninstall_cmds=$lt_postuninstall_cmds
19064 # Commands used to build a loadable module (assumed same as above if empty)
19065 module_cmds=$lt_module_cmds_GCJ
19066 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19068 # Commands to strip libraries.
19069 old_striplib=$lt_old_striplib
19070 striplib=$lt_striplib
19072 # Dependencies to place before the objects being linked to create a
19074 predep_objects=$lt_predep_objects_GCJ
19076 # Dependencies to place after the objects being linked to create a
19078 postdep_objects=$lt_postdep_objects_GCJ
19080 # Dependencies to place before the objects being linked to create a
19082 predeps=$lt_predeps_GCJ
19084 # Dependencies to place after the objects being linked to create a
19086 postdeps=$lt_postdeps_GCJ
19088 # The library search path used internally by the compiler when linking
19089 # a shared library.
19090 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19092 # Method to check whether dependent libraries are shared objects.
19093 deplibs_check_method=$lt_deplibs_check_method
19095 # Command to use when deplibs_check_method == file_magic.
19096 file_magic_cmd=$lt_file_magic_cmd
19098 # Flag that allows shared libraries with undefined symbols to be built.
19099 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19101 # Flag that forces no undefined symbols.
19102 no_undefined_flag=$lt_no_undefined_flag_GCJ
19104 # Commands used to finish a libtool library installation in a directory.
19105 finish_cmds=$lt_finish_cmds
19107 # Same as above, but a single script fragment to be evaled but not shown.
19108 finish_eval=$lt_finish_eval
19110 # Take the output of nm and produce a listing of raw symbols and C names.
19111 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19113 # Transform the output of nm in a proper C declaration
19114 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19116 # Transform the output of nm in a C name address pair
19117 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19119 # This is the shared library runtime path variable.
19120 runpath_var=$runpath_var
19122 # This is the shared library path variable.
19123 shlibpath_var=$shlibpath_var
19125 # Is shlibpath searched before the hard-coded library search path?
19126 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19128 # How to hardcode a shared library path into an executable.
19129 hardcode_action=$hardcode_action_GCJ
19131 # Whether we should hardcode library paths into libraries.
19132 hardcode_into_libs=$hardcode_into_libs
19134 # Flag to hardcode \$libdir into a binary during linking.
19135 # This must work even if \$libdir does not exist.
19136 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19138 # If ld is used when linking, flag to hardcode \$libdir into
19139 # a binary during linking. This must work even if \$libdir does
19141 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19143 # Whether we need a single -rpath flag with a separated argument.
19144 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19146 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19147 # resulting binary.
19148 hardcode_direct=$hardcode_direct_GCJ
19150 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19151 # resulting binary.
19152 hardcode_minus_L=$hardcode_minus_L_GCJ
19154 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19155 # the resulting binary.
19156 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19158 # Set to yes if building a shared library automatically hardcodes DIR into the library
19159 # and all subsequent libraries and executables linked against it.
19160 hardcode_automatic=$hardcode_automatic_GCJ
19162 # Variables whose values should be saved in libtool wrapper scripts and
19163 # restored at relink time.
19164 variables_saved_for_relink="$variables_saved_for_relink"
19166 # Whether libtool must link a program against all its dependency libraries.
19167 link_all_deplibs=$link_all_deplibs_GCJ
19169 # Compile-time system search path for libraries
19170 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19172 # Run-time system search path for libraries
19173 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19175 # Fix the shell variable \$srcfile for the compiler.
19176 fix_srcfile_path="$fix_srcfile_path_GCJ"
19178 # Set to yes if exported symbols are required.
19179 always_export_symbols=$always_export_symbols_GCJ
19181 # The commands to list exported symbols.
19182 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19184 # The commands to extract the exported symbol list from a shared archive.
19185 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19187 # Symbols that should not be listed in the preloaded symbols.
19188 exclude_expsyms=$lt_exclude_expsyms_GCJ
19190 # Symbols that must always be exported.
19191 include_expsyms=$lt_include_expsyms_GCJ
19193 # ### END LIBTOOL TAG CONFIG: $tagname
19199 # If there is no Makefile yet, we rely on a make rule to execute
19200 # `config.status --recheck' to rerun these tests and create the
19201 # libtool script then.
19202 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19203 if test -f "$ltmain_in"; then
19204 test -f Makefile && make "$ltmain"
19210 ac_cpp='$CPP $CPPFLAGS'
19211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19226 # Source file extension for RC test sources.
19229 # Object file extension for compiled RC test sources.
19233 # Code to be used in simple compile tests
19234 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19236 # Code to be used in simple link tests
19237 lt_simple_link_test_code="$lt_simple_compile_test_code"
19239 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19241 # If no C compiler was specified, use CC.
19244 # Allow CC to be a program name with arguments.
19248 # Allow CC to be a program name with arguments.
19253 lt_cv_prog_compiler_c_o_RC=yes
19255 # The else clause should only fire when bootstrapping the
19256 # libtool distribution, otherwise you forgot to ship ltmain.sh
19257 # with your package, and you will get complaints that there are
19258 # no rules to generate ltmain.sh.
19259 if test -f "$ltmain"; then
19260 # See if we are running on zsh, and set the options which allow our commands through
19261 # without removal of \ escapes.
19262 if test -n "${ZSH_VERSION+set}" ; then
19263 setopt NO_GLOB_SUBST
19265 # Now quote all the things that may contain metacharacters while being
19266 # careful not to overquote the AC_SUBSTed values. We take copies of the
19267 # variables and quote the copies for generation of the libtool script.
19268 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19270 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19271 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19272 deplibs_check_method reload_flag reload_cmds need_locks \
19273 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19274 lt_cv_sys_global_symbol_to_c_name_address \
19275 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19276 old_postinstall_cmds old_postuninstall_cmds \
19280 lt_prog_compiler_wl_RC \
19281 lt_prog_compiler_pic_RC \
19282 lt_prog_compiler_static_RC \
19283 lt_prog_compiler_no_builtin_flag_RC \
19284 export_dynamic_flag_spec_RC \
19285 thread_safe_flag_spec_RC \
19286 whole_archive_flag_spec_RC \
19287 enable_shared_with_static_runtimes_RC \
19288 old_archive_cmds_RC \
19289 old_archive_from_new_cmds_RC \
19290 predep_objects_RC \
19291 postdep_objects_RC \
19294 compiler_lib_search_path_RC \
19296 archive_expsym_cmds_RC \
19297 postinstall_cmds_RC \
19298 postuninstall_cmds_RC \
19299 old_archive_from_expsyms_cmds_RC \
19300 allow_undefined_flag_RC \
19301 no_undefined_flag_RC \
19302 export_symbols_cmds_RC \
19303 hardcode_libdir_flag_spec_RC \
19304 hardcode_libdir_flag_spec_ld_RC \
19305 hardcode_libdir_separator_RC \
19306 hardcode_automatic_RC \
19308 module_expsym_cmds_RC \
19309 lt_cv_prog_compiler_c_o_RC \
19310 exclude_expsyms_RC \
19311 include_expsyms_RC; do
19314 old_archive_cmds_RC | \
19315 old_archive_from_new_cmds_RC | \
19316 archive_cmds_RC | \
19317 archive_expsym_cmds_RC | \
19319 module_expsym_cmds_RC | \
19320 old_archive_from_expsyms_cmds_RC | \
19321 export_symbols_cmds_RC | \
19322 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19323 postinstall_cmds | postuninstall_cmds | \
19324 old_postinstall_cmds | old_postuninstall_cmds | \
19325 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19326 # Double-quote double-evaled strings.
19327 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19330 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19336 *'\$0 --fallback-echo"')
19337 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19343 cat <<__EOF__ >> "$cfgfile"
19344 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19346 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19348 # Shell to use when invoking shell scripts.
19351 # Whether or not to build shared libraries.
19352 build_libtool_libs=$enable_shared
19354 # Whether or not to build static libraries.
19355 build_old_libs=$enable_static
19357 # Whether or not to add -lc for building shared libraries.
19358 build_libtool_need_lc=$archive_cmds_need_lc_RC
19360 # Whether or not to disallow shared libs when runtime libs are static
19361 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19363 # Whether or not to optimize for fast installation.
19364 fast_install=$enable_fast_install
19367 host_alias=$host_alias
19370 # An echo program that does not interpret backslashes.
19375 AR_FLAGS=$lt_AR_FLAGS
19380 # A language-specific compiler.
19383 # Is the compiler the GNU C compiler?
19389 # The linker used to build libraries.
19392 # Whether we need hard or soft links.
19395 # A BSD-compatible nm program.
19398 # A symbol stripping program
19401 # Used to examine libraries when file_magic_cmd begins "file"
19402 MAGIC_CMD=$MAGIC_CMD
19404 # Used on cygwin: DLL creation program.
19407 # Used on cygwin: object dumper.
19410 # Used on cygwin: assembler.
19413 # The name of the directory that contains temporary libtool files.
19416 # How to create reloadable object files.
19417 reload_flag=$lt_reload_flag
19418 reload_cmds=$lt_reload_cmds
19420 # How to pass a linker flag through the compiler.
19421 wl=$lt_lt_prog_compiler_wl_RC
19423 # Object file suffix (normally "o").
19424 objext="$ac_objext"
19426 # Old archive suffix (normally "a").
19429 # Shared library suffix (normally ".so").
19430 shrext_cmds='$shrext_cmds'
19432 # Executable file suffix (normally "").
19435 # Additional compiler flags for building library objects.
19436 pic_flag=$lt_lt_prog_compiler_pic_RC
19439 # What is the maximum length of a command?
19440 max_cmd_len=$lt_cv_sys_max_cmd_len
19442 # Does compiler simultaneously support -c and -o options?
19443 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19445 # Must we lock files when doing compilation ?
19446 need_locks=$lt_need_locks
19448 # Do we need the lib prefix for modules?
19449 need_lib_prefix=$need_lib_prefix
19451 # Do we need a version for libraries?
19452 need_version=$need_version
19454 # Whether dlopen is supported.
19455 dlopen_support=$enable_dlopen
19457 # Whether dlopen of programs is supported.
19458 dlopen_self=$enable_dlopen_self
19460 # Whether dlopen of statically linked programs is supported.
19461 dlopen_self_static=$enable_dlopen_self_static
19463 # Compiler flag to prevent dynamic linking.
19464 link_static_flag=$lt_lt_prog_compiler_static_RC
19466 # Compiler flag to turn off builtin functions.
19467 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19469 # Compiler flag to allow reflexive dlopens.
19470 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19472 # Compiler flag to generate shared objects directly from archives.
19473 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19475 # Compiler flag to generate thread-safe objects.
19476 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19478 # Library versioning type.
19479 version_type=$version_type
19481 # Format of library name prefix.
19482 libname_spec=$lt_libname_spec
19484 # List of archive names. First name is the real one, the rest are links.
19485 # The last name is the one that the linker finds with -lNAME.
19486 library_names_spec=$lt_library_names_spec
19488 # The coded name of the library, if different from the real name.
19489 soname_spec=$lt_soname_spec
19491 # Commands used to build and install an old-style archive.
19493 old_archive_cmds=$lt_old_archive_cmds_RC
19494 old_postinstall_cmds=$lt_old_postinstall_cmds
19495 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19497 # Create an old-style archive from a shared archive.
19498 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19500 # Create a temporary old-style archive to link instead of a shared archive.
19501 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19503 # Commands used to build and install a shared archive.
19504 archive_cmds=$lt_archive_cmds_RC
19505 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19506 postinstall_cmds=$lt_postinstall_cmds
19507 postuninstall_cmds=$lt_postuninstall_cmds
19509 # Commands used to build a loadable module (assumed same as above if empty)
19510 module_cmds=$lt_module_cmds_RC
19511 module_expsym_cmds=$lt_module_expsym_cmds_RC
19513 # Commands to strip libraries.
19514 old_striplib=$lt_old_striplib
19515 striplib=$lt_striplib
19517 # Dependencies to place before the objects being linked to create a
19519 predep_objects=$lt_predep_objects_RC
19521 # Dependencies to place after the objects being linked to create a
19523 postdep_objects=$lt_postdep_objects_RC
19525 # Dependencies to place before the objects being linked to create a
19527 predeps=$lt_predeps_RC
19529 # Dependencies to place after the objects being linked to create a
19531 postdeps=$lt_postdeps_RC
19533 # The library search path used internally by the compiler when linking
19534 # a shared library.
19535 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19537 # Method to check whether dependent libraries are shared objects.
19538 deplibs_check_method=$lt_deplibs_check_method
19540 # Command to use when deplibs_check_method == file_magic.
19541 file_magic_cmd=$lt_file_magic_cmd
19543 # Flag that allows shared libraries with undefined symbols to be built.
19544 allow_undefined_flag=$lt_allow_undefined_flag_RC
19546 # Flag that forces no undefined symbols.
19547 no_undefined_flag=$lt_no_undefined_flag_RC
19549 # Commands used to finish a libtool library installation in a directory.
19550 finish_cmds=$lt_finish_cmds
19552 # Same as above, but a single script fragment to be evaled but not shown.
19553 finish_eval=$lt_finish_eval
19555 # Take the output of nm and produce a listing of raw symbols and C names.
19556 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19558 # Transform the output of nm in a proper C declaration
19559 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19561 # Transform the output of nm in a C name address pair
19562 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19564 # This is the shared library runtime path variable.
19565 runpath_var=$runpath_var
19567 # This is the shared library path variable.
19568 shlibpath_var=$shlibpath_var
19570 # Is shlibpath searched before the hard-coded library search path?
19571 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19573 # How to hardcode a shared library path into an executable.
19574 hardcode_action=$hardcode_action_RC
19576 # Whether we should hardcode library paths into libraries.
19577 hardcode_into_libs=$hardcode_into_libs
19579 # Flag to hardcode \$libdir into a binary during linking.
19580 # This must work even if \$libdir does not exist.
19581 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19583 # If ld is used when linking, flag to hardcode \$libdir into
19584 # a binary during linking. This must work even if \$libdir does
19586 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19588 # Whether we need a single -rpath flag with a separated argument.
19589 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19591 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19592 # resulting binary.
19593 hardcode_direct=$hardcode_direct_RC
19595 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19596 # resulting binary.
19597 hardcode_minus_L=$hardcode_minus_L_RC
19599 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19600 # the resulting binary.
19601 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19603 # Set to yes if building a shared library automatically hardcodes DIR into the library
19604 # and all subsequent libraries and executables linked against it.
19605 hardcode_automatic=$hardcode_automatic_RC
19607 # Variables whose values should be saved in libtool wrapper scripts and
19608 # restored at relink time.
19609 variables_saved_for_relink="$variables_saved_for_relink"
19611 # Whether libtool must link a program against all its dependency libraries.
19612 link_all_deplibs=$link_all_deplibs_RC
19614 # Compile-time system search path for libraries
19615 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19617 # Run-time system search path for libraries
19618 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19620 # Fix the shell variable \$srcfile for the compiler.
19621 fix_srcfile_path="$fix_srcfile_path_RC"
19623 # Set to yes if exported symbols are required.
19624 always_export_symbols=$always_export_symbols_RC
19626 # The commands to list exported symbols.
19627 export_symbols_cmds=$lt_export_symbols_cmds_RC
19629 # The commands to extract the exported symbol list from a shared archive.
19630 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19632 # Symbols that should not be listed in the preloaded symbols.
19633 exclude_expsyms=$lt_exclude_expsyms_RC
19635 # Symbols that must always be exported.
19636 include_expsyms=$lt_include_expsyms_RC
19638 # ### END LIBTOOL TAG CONFIG: $tagname
19644 # If there is no Makefile yet, we rely on a make rule to execute
19645 # `config.status --recheck' to rerun these tests and create the
19646 # libtool script then.
19647 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19648 if test -f "$ltmain_in"; then
19649 test -f Makefile && make "$ltmain"
19655 ac_cpp='$CPP $CPPFLAGS'
19656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19665 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19666 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19667 { (exit 1); exit 1; }; }
19671 # Append the new tag name to the list of available tags.
19672 if test -n "$tagname" ; then
19673 available_tags="$available_tags $tagname"
19679 # Now substitute the updated list of available tags.
19680 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19681 mv "${ofile}T" "$ofile"
19685 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19686 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19687 { (exit 1); exit 1; }; }
19693 # This can be used to rebuild libtool when needed
19694 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19696 # Always use our own libtool.
19697 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19699 # Prevent multiple expansion
19721 if ${TEST} -n "${SAVE_LIBTOOL}" ; then
19722 LIBTOOL="$SAVE_LIBTOOL"
19724 echo "$as_me:$LINENO: result: LIBTOOL=\"$LIBTOOL\"" >&5
19725 echo "${ECHO_T}LIBTOOL=\"$LIBTOOL\"" >&6
19730 echo "$as_me:$LINENO: checking for char" >&5
19731 echo $ECHO_N "checking for char... $ECHO_C" >&6
19732 if test "${ac_cv_type_char+set}" = set; then
19733 echo $ECHO_N "(cached) $ECHO_C" >&6
19735 cat >conftest.$ac_ext <<_ACEOF
19738 cat confdefs.h >>conftest.$ac_ext
19739 cat >>conftest.$ac_ext <<_ACEOF
19740 /* end confdefs.h. */
19741 $ac_includes_default
19753 rm -f conftest.$ac_objext
19754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19755 (eval $ac_compile) 2>conftest.er1
19757 grep -v '^ *+' conftest.er1 >conftest.err
19759 cat conftest.err >&5
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); } &&
19762 { ac_try='test -z "$ac_c_werror_flag"
19763 || test ! -s conftest.err'
19764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19765 (eval $ac_try) 2>&5
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); }; } &&
19769 { ac_try='test -s conftest.$ac_objext'
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; }; then
19775 ac_cv_type_char=yes
19777 echo "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.$ac_ext >&5
19782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19784 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
19785 echo "${ECHO_T}$ac_cv_type_char" >&6
19787 echo "$as_me:$LINENO: checking size of char" >&5
19788 echo $ECHO_N "checking size of char... $ECHO_C" >&6
19789 if test "${ac_cv_sizeof_char+set}" = set; then
19790 echo $ECHO_N "(cached) $ECHO_C" >&6
19792 if test "$ac_cv_type_char" = yes; then
19793 # The cast to unsigned long works around a bug in the HP C Compiler
19794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19796 # This bug is HP SR number 8606223364.
19797 if test "$cross_compiling" = yes; then
19798 # Depending upon the size, compute the lo and hi bounds.
19799 cat >conftest.$ac_ext <<_ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19805 $ac_includes_default
19809 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
19816 rm -f conftest.$ac_objext
19817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19818 (eval $ac_compile) 2>conftest.er1
19820 grep -v '^ *+' conftest.er1 >conftest.err
19822 cat conftest.err >&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); } &&
19825 { ac_try='test -z "$ac_c_werror_flag"
19826 || test ! -s conftest.err'
19827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828 (eval $ac_try) 2>&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; } &&
19832 { ac_try='test -s conftest.$ac_objext'
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; }; then
19840 cat >conftest.$ac_ext <<_ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19846 $ac_includes_default
19850 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
19857 rm -f conftest.$ac_objext
19858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19859 (eval $ac_compile) 2>conftest.er1
19861 grep -v '^ *+' conftest.er1 >conftest.err
19863 cat conftest.err >&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); } &&
19866 { ac_try='test -z "$ac_c_werror_flag"
19867 || test ! -s conftest.err'
19868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869 (eval $ac_try) 2>&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; } &&
19873 { ac_try='test -s conftest.$ac_objext'
19874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875 (eval $ac_try) 2>&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); }; }; then
19879 ac_hi=$ac_mid; break
19881 echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19884 ac_lo=`expr $ac_mid + 1`
19885 if test $ac_lo -le $ac_mid; then
19889 ac_mid=`expr 2 '*' $ac_mid + 1`
19891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19894 echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19897 cat >conftest.$ac_ext <<_ACEOF
19900 cat confdefs.h >>conftest.$ac_ext
19901 cat >>conftest.$ac_ext <<_ACEOF
19902 /* end confdefs.h. */
19903 $ac_includes_default
19907 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
19914 rm -f conftest.$ac_objext
19915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19916 (eval $ac_compile) 2>conftest.er1
19918 grep -v '^ *+' conftest.er1 >conftest.err
19920 cat conftest.err >&5
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } &&
19923 { ac_try='test -z "$ac_c_werror_flag"
19924 || test ! -s conftest.err'
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; } &&
19930 { ac_try='test -s conftest.$ac_objext'
19931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932 (eval $ac_try) 2>&5
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); }; }; then
19938 cat >conftest.$ac_ext <<_ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h. */
19944 $ac_includes_default
19948 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
19955 rm -f conftest.$ac_objext
19956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19957 (eval $ac_compile) 2>conftest.er1
19959 grep -v '^ *+' conftest.er1 >conftest.err
19961 cat conftest.err >&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } &&
19964 { ac_try='test -z "$ac_c_werror_flag"
19965 || test ! -s conftest.err'
19966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967 (eval $ac_try) 2>&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; } &&
19971 { ac_try='test -s conftest.$ac_objext'
19972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973 (eval $ac_try) 2>&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); }; }; then
19977 ac_lo=$ac_mid; break
19979 echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19982 ac_hi=`expr '(' $ac_mid ')' - 1`
19983 if test $ac_mid -le $ac_hi; then
19987 ac_mid=`expr 2 '*' $ac_mid`
19989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19992 echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20000 # Binary search between lo and hi bounds.
20001 while test "x$ac_lo" != "x$ac_hi"; do
20002 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20003 cat >conftest.$ac_ext <<_ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h. */
20009 $ac_includes_default
20013 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
20020 rm -f conftest.$ac_objext
20021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20022 (eval $ac_compile) 2>conftest.er1
20024 grep -v '^ *+' conftest.er1 >conftest.err
20026 cat conftest.err >&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); } &&
20029 { ac_try='test -z "$ac_c_werror_flag"
20030 || test ! -s conftest.err'
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; } &&
20036 { ac_try='test -s conftest.$ac_objext'
20037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038 (eval $ac_try) 2>&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; }; then
20044 echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20047 ac_lo=`expr '(' $ac_mid ')' + 1`
20049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20052 ?*) ac_cv_sizeof_char=$ac_lo;;
20053 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
20054 See \`config.log' for more details." >&5
20055 echo "$as_me: error: cannot compute sizeof (char), 77
20056 See \`config.log' for more details." >&2;}
20057 { (exit 1); exit 1; }; } ;;
20060 if test "$cross_compiling" = yes; then
20061 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20062 See \`config.log' for more details." >&5
20063 echo "$as_me: error: cannot run test program while cross compiling
20064 See \`config.log' for more details." >&2;}
20065 { (exit 1); exit 1; }; }
20067 cat >conftest.$ac_ext <<_ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h. */
20073 $ac_includes_default
20074 long longval () { return (long) (sizeof (char)); }
20075 unsigned long ulongval () { return (long) (sizeof (char)); }
20077 #include <stdlib.h>
20082 FILE *f = fopen ("conftest.val", "w");
20085 if (((long) (sizeof (char))) < 0)
20087 long i = longval ();
20088 if (i != ((long) (sizeof (char))))
20090 fprintf (f, "%ld\n", i);
20094 unsigned long i = ulongval ();
20095 if (i != ((long) (sizeof (char))))
20097 fprintf (f, "%lu\n", i);
20099 exit (ferror (f) || fclose (f) != 0);
20105 rm -f conftest$ac_exeext
20106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20107 (eval $ac_link) 2>&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112 (eval $ac_try) 2>&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; }; then
20116 ac_cv_sizeof_char=`cat conftest.val`
20118 echo "$as_me: program exited with status $ac_status" >&5
20119 echo "$as_me: failed program was:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20122 ( exit $ac_status )
20123 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
20124 See \`config.log' for more details." >&5
20125 echo "$as_me: error: cannot compute sizeof (char), 77
20126 See \`config.log' for more details." >&2;}
20127 { (exit 1); exit 1; }; }
20129 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20134 ac_cv_sizeof_char=0
20137 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
20138 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
20139 cat >>confdefs.h <<_ACEOF
20140 #define SIZEOF_CHAR $ac_cv_sizeof_char
20144 echo "$as_me:$LINENO: checking for int" >&5
20145 echo $ECHO_N "checking for int... $ECHO_C" >&6
20146 if test "${ac_cv_type_int+set}" = set; then
20147 echo $ECHO_N "(cached) $ECHO_C" >&6
20149 cat >conftest.$ac_ext <<_ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20155 $ac_includes_default
20167 rm -f conftest.$ac_objext
20168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20169 (eval $ac_compile) 2>conftest.er1
20171 grep -v '^ *+' conftest.er1 >conftest.err
20173 cat conftest.err >&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } &&
20176 { ac_try='test -z "$ac_c_werror_flag"
20177 || test ! -s conftest.err'
20178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179 (eval $ac_try) 2>&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; } &&
20183 { ac_try='test -s conftest.$ac_objext'
20184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185 (eval $ac_try) 2>&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; }; then
20191 echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20198 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20199 echo "${ECHO_T}$ac_cv_type_int" >&6
20201 echo "$as_me:$LINENO: checking size of int" >&5
20202 echo $ECHO_N "checking size of int... $ECHO_C" >&6
20203 if test "${ac_cv_sizeof_int+set}" = set; then
20204 echo $ECHO_N "(cached) $ECHO_C" >&6
20206 if test "$ac_cv_type_int" = yes; then
20207 # The cast to unsigned long works around a bug in the HP C Compiler
20208 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20209 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20210 # This bug is HP SR number 8606223364.
20211 if test "$cross_compiling" = yes; then
20212 # Depending upon the size, compute the lo and hi bounds.
20213 cat >conftest.$ac_ext <<_ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h. */
20219 $ac_includes_default
20223 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
20230 rm -f conftest.$ac_objext
20231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20232 (eval $ac_compile) 2>conftest.er1
20234 grep -v '^ *+' conftest.er1 >conftest.err
20236 cat conftest.err >&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); } &&
20239 { ac_try='test -z "$ac_c_werror_flag"
20240 || test ! -s conftest.err'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; } &&
20246 { ac_try='test -s conftest.$ac_objext'
20247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248 (eval $ac_try) 2>&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; }; then
20254 cat >conftest.$ac_ext <<_ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20260 $ac_includes_default
20264 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
20271 rm -f conftest.$ac_objext
20272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20273 (eval $ac_compile) 2>conftest.er1
20275 grep -v '^ *+' conftest.er1 >conftest.err
20277 cat conftest.err >&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } &&
20280 { ac_try='test -z "$ac_c_werror_flag"
20281 || test ! -s conftest.err'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; } &&
20287 { ac_try='test -s conftest.$ac_objext'
20288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289 (eval $ac_try) 2>&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; }; then
20293 ac_hi=$ac_mid; break
20295 echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20298 ac_lo=`expr $ac_mid + 1`
20299 if test $ac_lo -le $ac_mid; then
20303 ac_mid=`expr 2 '*' $ac_mid + 1`
20305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20308 echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20311 cat >conftest.$ac_ext <<_ACEOF
20314 cat confdefs.h >>conftest.$ac_ext
20315 cat >>conftest.$ac_ext <<_ACEOF
20316 /* end confdefs.h. */
20317 $ac_includes_default
20321 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
20328 rm -f conftest.$ac_objext
20329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20330 (eval $ac_compile) 2>conftest.er1
20332 grep -v '^ *+' conftest.er1 >conftest.err
20334 cat conftest.err >&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } &&
20337 { ac_try='test -z "$ac_c_werror_flag"
20338 || test ! -s conftest.err'
20339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340 (eval $ac_try) 2>&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; } &&
20344 { ac_try='test -s conftest.$ac_objext'
20345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346 (eval $ac_try) 2>&5
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; }; then
20352 cat >conftest.$ac_ext <<_ACEOF
20355 cat confdefs.h >>conftest.$ac_ext
20356 cat >>conftest.$ac_ext <<_ACEOF
20357 /* end confdefs.h. */
20358 $ac_includes_default
20362 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
20369 rm -f conftest.$ac_objext
20370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20371 (eval $ac_compile) 2>conftest.er1
20373 grep -v '^ *+' conftest.er1 >conftest.err
20375 cat conftest.err >&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } &&
20378 { ac_try='test -z "$ac_c_werror_flag"
20379 || test ! -s conftest.err'
20380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381 (eval $ac_try) 2>&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; } &&
20385 { ac_try='test -s conftest.$ac_objext'
20386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387 (eval $ac_try) 2>&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); }; }; then
20391 ac_lo=$ac_mid; break
20393 echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20396 ac_hi=`expr '(' $ac_mid ')' - 1`
20397 if test $ac_mid -le $ac_hi; then
20401 ac_mid=`expr 2 '*' $ac_mid`
20403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20406 echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20414 # Binary search between lo and hi bounds.
20415 while test "x$ac_lo" != "x$ac_hi"; do
20416 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20417 cat >conftest.$ac_ext <<_ACEOF
20420 cat confdefs.h >>conftest.$ac_ext
20421 cat >>conftest.$ac_ext <<_ACEOF
20422 /* end confdefs.h. */
20423 $ac_includes_default
20427 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
20434 rm -f conftest.$ac_objext
20435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20436 (eval $ac_compile) 2>conftest.er1
20438 grep -v '^ *+' conftest.er1 >conftest.err
20440 cat conftest.err >&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); } &&
20443 { ac_try='test -z "$ac_c_werror_flag"
20444 || test ! -s conftest.err'
20445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446 (eval $ac_try) 2>&5
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; } &&
20450 { ac_try='test -s conftest.$ac_objext'
20451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452 (eval $ac_try) 2>&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; }; then
20458 echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20461 ac_lo=`expr '(' $ac_mid ')' + 1`
20463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20466 ?*) ac_cv_sizeof_int=$ac_lo;;
20467 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
20468 See \`config.log' for more details." >&5
20469 echo "$as_me: error: cannot compute sizeof (int), 77
20470 See \`config.log' for more details." >&2;}
20471 { (exit 1); exit 1; }; } ;;
20474 if test "$cross_compiling" = yes; then
20475 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20476 See \`config.log' for more details." >&5
20477 echo "$as_me: error: cannot run test program while cross compiling
20478 See \`config.log' for more details." >&2;}
20479 { (exit 1); exit 1; }; }
20481 cat >conftest.$ac_ext <<_ACEOF
20484 cat confdefs.h >>conftest.$ac_ext
20485 cat >>conftest.$ac_ext <<_ACEOF
20486 /* end confdefs.h. */
20487 $ac_includes_default
20488 long longval () { return (long) (sizeof (int)); }
20489 unsigned long ulongval () { return (long) (sizeof (int)); }
20491 #include <stdlib.h>
20496 FILE *f = fopen ("conftest.val", "w");
20499 if (((long) (sizeof (int))) < 0)
20501 long i = longval ();
20502 if (i != ((long) (sizeof (int))))
20504 fprintf (f, "%ld\n", i);
20508 unsigned long i = ulongval ();
20509 if (i != ((long) (sizeof (int))))
20511 fprintf (f, "%lu\n", i);
20513 exit (ferror (f) || fclose (f) != 0);
20519 rm -f conftest$ac_exeext
20520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20521 (eval $ac_link) 2>&5
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526 (eval $ac_try) 2>&5
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); }; }; then
20530 ac_cv_sizeof_int=`cat conftest.val`
20532 echo "$as_me: program exited with status $ac_status" >&5
20533 echo "$as_me: failed program was:" >&5
20534 sed 's/^/| /' conftest.$ac_ext >&5
20536 ( exit $ac_status )
20537 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
20538 See \`config.log' for more details." >&5
20539 echo "$as_me: error: cannot compute sizeof (int), 77
20540 See \`config.log' for more details." >&2;}
20541 { (exit 1); exit 1; }; }
20543 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20551 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20552 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
20553 cat >>confdefs.h <<_ACEOF
20554 #define SIZEOF_INT $ac_cv_sizeof_int
20558 echo "$as_me:$LINENO: checking for long" >&5
20559 echo $ECHO_N "checking for long... $ECHO_C" >&6
20560 if test "${ac_cv_type_long+set}" = set; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
20563 cat >conftest.$ac_ext <<_ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h. */
20569 $ac_includes_default
20581 rm -f conftest.$ac_objext
20582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20583 (eval $ac_compile) 2>conftest.er1
20585 grep -v '^ *+' conftest.er1 >conftest.err
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } &&
20590 { ac_try='test -z "$ac_c_werror_flag"
20591 || test ! -s conftest.err'
20592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593 (eval $ac_try) 2>&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); }; } &&
20597 { ac_try='test -s conftest.$ac_objext'
20598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599 (eval $ac_try) 2>&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); }; }; then
20603 ac_cv_type_long=yes
20605 echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20612 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20613 echo "${ECHO_T}$ac_cv_type_long" >&6
20615 echo "$as_me:$LINENO: checking size of long" >&5
20616 echo $ECHO_N "checking size of long... $ECHO_C" >&6
20617 if test "${ac_cv_sizeof_long+set}" = set; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20620 if test "$ac_cv_type_long" = yes; then
20621 # The cast to unsigned long works around a bug in the HP C Compiler
20622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20624 # This bug is HP SR number 8606223364.
20625 if test "$cross_compiling" = yes; then
20626 # Depending upon the size, compute the lo and hi bounds.
20627 cat >conftest.$ac_ext <<_ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h. */
20633 $ac_includes_default
20637 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
20644 rm -f conftest.$ac_objext
20645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20646 (eval $ac_compile) 2>conftest.er1
20648 grep -v '^ *+' conftest.er1 >conftest.err
20650 cat conftest.err >&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } &&
20653 { ac_try='test -z "$ac_c_werror_flag"
20654 || test ! -s conftest.err'
20655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656 (eval $ac_try) 2>&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; } &&
20660 { ac_try='test -s conftest.$ac_objext'
20661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662 (eval $ac_try) 2>&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); }; }; then
20668 cat >conftest.$ac_ext <<_ACEOF
20671 cat confdefs.h >>conftest.$ac_ext
20672 cat >>conftest.$ac_ext <<_ACEOF
20673 /* end confdefs.h. */
20674 $ac_includes_default
20678 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20685 rm -f conftest.$ac_objext
20686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20687 (eval $ac_compile) 2>conftest.er1
20689 grep -v '^ *+' conftest.er1 >conftest.err
20691 cat conftest.err >&5
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); } &&
20694 { ac_try='test -z "$ac_c_werror_flag"
20695 || test ! -s conftest.err'
20696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697 (eval $ac_try) 2>&5
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); }; } &&
20701 { ac_try='test -s conftest.$ac_objext'
20702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20703 (eval $ac_try) 2>&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); }; }; then
20707 ac_hi=$ac_mid; break
20709 echo "$as_me: failed program was:" >&5
20710 sed 's/^/| /' conftest.$ac_ext >&5
20712 ac_lo=`expr $ac_mid + 1`
20713 if test $ac_lo -le $ac_mid; then
20717 ac_mid=`expr 2 '*' $ac_mid + 1`
20719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20722 echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20725 cat >conftest.$ac_ext <<_ACEOF
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h. */
20731 $ac_includes_default
20735 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
20742 rm -f conftest.$ac_objext
20743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20744 (eval $ac_compile) 2>conftest.er1
20746 grep -v '^ *+' conftest.er1 >conftest.err
20748 cat conftest.err >&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); } &&
20751 { ac_try='test -z "$ac_c_werror_flag"
20752 || test ! -s conftest.err'
20753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20754 (eval $ac_try) 2>&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); }; } &&
20758 { ac_try='test -s conftest.$ac_objext'
20759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20760 (eval $ac_try) 2>&5
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); }; }; then
20766 cat >conftest.$ac_ext <<_ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h. */
20772 $ac_includes_default
20776 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
20783 rm -f conftest.$ac_objext
20784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20785 (eval $ac_compile) 2>conftest.er1
20787 grep -v '^ *+' conftest.er1 >conftest.err
20789 cat conftest.err >&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); } &&
20792 { ac_try='test -z "$ac_c_werror_flag"
20793 || test ! -s conftest.err'
20794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20795 (eval $ac_try) 2>&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); }; } &&
20799 { ac_try='test -s conftest.$ac_objext'
20800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801 (eval $ac_try) 2>&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; }; then
20805 ac_lo=$ac_mid; break
20807 echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20810 ac_hi=`expr '(' $ac_mid ')' - 1`
20811 if test $ac_mid -le $ac_hi; then
20815 ac_mid=`expr 2 '*' $ac_mid`
20817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20820 echo "$as_me: failed program was:" >&5
20821 sed 's/^/| /' conftest.$ac_ext >&5
20825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20828 # Binary search between lo and hi bounds.
20829 while test "x$ac_lo" != "x$ac_hi"; do
20830 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20831 cat >conftest.$ac_ext <<_ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h. */
20837 $ac_includes_default
20841 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20848 rm -f conftest.$ac_objext
20849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20850 (eval $ac_compile) 2>conftest.er1
20852 grep -v '^ *+' conftest.er1 >conftest.err
20854 cat conftest.err >&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } &&
20857 { ac_try='test -z "$ac_c_werror_flag"
20858 || test ! -s conftest.err'
20859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860 (eval $ac_try) 2>&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); }; } &&
20864 { ac_try='test -s conftest.$ac_objext'
20865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866 (eval $ac_try) 2>&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; }; then
20872 echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20875 ac_lo=`expr '(' $ac_mid ')' + 1`
20877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20880 ?*) ac_cv_sizeof_long=$ac_lo;;
20881 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20882 See \`config.log' for more details." >&5
20883 echo "$as_me: error: cannot compute sizeof (long), 77
20884 See \`config.log' for more details." >&2;}
20885 { (exit 1); exit 1; }; } ;;
20888 if test "$cross_compiling" = yes; then
20889 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20890 See \`config.log' for more details." >&5
20891 echo "$as_me: error: cannot run test program while cross compiling
20892 See \`config.log' for more details." >&2;}
20893 { (exit 1); exit 1; }; }
20895 cat >conftest.$ac_ext <<_ACEOF
20898 cat confdefs.h >>conftest.$ac_ext
20899 cat >>conftest.$ac_ext <<_ACEOF
20900 /* end confdefs.h. */
20901 $ac_includes_default
20902 long longval () { return (long) (sizeof (long)); }
20903 unsigned long ulongval () { return (long) (sizeof (long)); }
20905 #include <stdlib.h>
20910 FILE *f = fopen ("conftest.val", "w");
20913 if (((long) (sizeof (long))) < 0)
20915 long i = longval ();
20916 if (i != ((long) (sizeof (long))))
20918 fprintf (f, "%ld\n", i);
20922 unsigned long i = ulongval ();
20923 if (i != ((long) (sizeof (long))))
20925 fprintf (f, "%lu\n", i);
20927 exit (ferror (f) || fclose (f) != 0);
20933 rm -f conftest$ac_exeext
20934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20935 (eval $ac_link) 2>&5
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940 (eval $ac_try) 2>&5
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; }; then
20944 ac_cv_sizeof_long=`cat conftest.val`
20946 echo "$as_me: program exited with status $ac_status" >&5
20947 echo "$as_me: failed program was:" >&5
20948 sed 's/^/| /' conftest.$ac_ext >&5
20950 ( exit $ac_status )
20951 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20952 See \`config.log' for more details." >&5
20953 echo "$as_me: error: cannot compute sizeof (long), 77
20954 See \`config.log' for more details." >&2;}
20955 { (exit 1); exit 1; }; }
20957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20962 ac_cv_sizeof_long=0
20965 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20966 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20967 cat >>confdefs.h <<_ACEOF
20968 #define SIZEOF_LONG $ac_cv_sizeof_long
20972 echo "$as_me:$LINENO: checking for short" >&5
20973 echo $ECHO_N "checking for short... $ECHO_C" >&6
20974 if test "${ac_cv_type_short+set}" = set; then
20975 echo $ECHO_N "(cached) $ECHO_C" >&6
20977 cat >conftest.$ac_ext <<_ACEOF
20980 cat confdefs.h >>conftest.$ac_ext
20981 cat >>conftest.$ac_ext <<_ACEOF
20982 /* end confdefs.h. */
20983 $ac_includes_default
20989 if (sizeof (short))
20995 rm -f conftest.$ac_objext
20996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20997 (eval $ac_compile) 2>conftest.er1
20999 grep -v '^ *+' conftest.er1 >conftest.err
21001 cat conftest.err >&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } &&
21004 { ac_try='test -z "$ac_c_werror_flag"
21005 || test ! -s conftest.err'
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; } &&
21011 { ac_try='test -s conftest.$ac_objext'
21012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013 (eval $ac_try) 2>&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); }; }; then
21017 ac_cv_type_short=yes
21019 echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21022 ac_cv_type_short=no
21024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21026 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21027 echo "${ECHO_T}$ac_cv_type_short" >&6
21029 echo "$as_me:$LINENO: checking size of short" >&5
21030 echo $ECHO_N "checking size of short... $ECHO_C" >&6
21031 if test "${ac_cv_sizeof_short+set}" = set; then
21032 echo $ECHO_N "(cached) $ECHO_C" >&6
21034 if test "$ac_cv_type_short" = yes; then
21035 # The cast to unsigned long works around a bug in the HP C Compiler
21036 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21037 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21038 # This bug is HP SR number 8606223364.
21039 if test "$cross_compiling" = yes; then
21040 # Depending upon the size, compute the lo and hi bounds.
21041 cat >conftest.$ac_ext <<_ACEOF
21044 cat confdefs.h >>conftest.$ac_ext
21045 cat >>conftest.$ac_ext <<_ACEOF
21046 /* end confdefs.h. */
21047 $ac_includes_default
21051 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
21058 rm -f conftest.$ac_objext
21059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21060 (eval $ac_compile) 2>conftest.er1
21062 grep -v '^ *+' conftest.er1 >conftest.err
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } &&
21067 { ac_try='test -z "$ac_c_werror_flag"
21068 || test ! -s conftest.err'
21069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; } &&
21074 { ac_try='test -s conftest.$ac_objext'
21075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076 (eval $ac_try) 2>&5
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); }; }; then
21082 cat >conftest.$ac_ext <<_ACEOF
21085 cat confdefs.h >>conftest.$ac_ext
21086 cat >>conftest.$ac_ext <<_ACEOF
21087 /* end confdefs.h. */
21088 $ac_includes_default
21092 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
21099 rm -f conftest.$ac_objext
21100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21101 (eval $ac_compile) 2>conftest.er1
21103 grep -v '^ *+' conftest.er1 >conftest.err
21105 cat conftest.err >&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); } &&
21108 { ac_try='test -z "$ac_c_werror_flag"
21109 || test ! -s conftest.err'
21110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111 (eval $ac_try) 2>&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; } &&
21115 { ac_try='test -s conftest.$ac_objext'
21116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117 (eval $ac_try) 2>&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); }; }; then
21121 ac_hi=$ac_mid; break
21123 echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21126 ac_lo=`expr $ac_mid + 1`
21127 if test $ac_lo -le $ac_mid; then
21131 ac_mid=`expr 2 '*' $ac_mid + 1`
21133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21136 echo "$as_me: failed program was:" >&5
21137 sed 's/^/| /' conftest.$ac_ext >&5
21139 cat >conftest.$ac_ext <<_ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21145 $ac_includes_default
21149 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
21156 rm -f conftest.$ac_objext
21157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21158 (eval $ac_compile) 2>conftest.er1
21160 grep -v '^ *+' conftest.er1 >conftest.err
21162 cat conftest.err >&5
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); } &&
21165 { ac_try='test -z "$ac_c_werror_flag"
21166 || test ! -s conftest.err'
21167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168 (eval $ac_try) 2>&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; } &&
21172 { ac_try='test -s conftest.$ac_objext'
21173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21174 (eval $ac_try) 2>&5
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); }; }; then
21180 cat >conftest.$ac_ext <<_ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h. */
21186 $ac_includes_default
21190 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
21197 rm -f conftest.$ac_objext
21198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21199 (eval $ac_compile) 2>conftest.er1
21201 grep -v '^ *+' conftest.er1 >conftest.err
21203 cat conftest.err >&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); } &&
21206 { ac_try='test -z "$ac_c_werror_flag"
21207 || test ! -s conftest.err'
21208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21209 (eval $ac_try) 2>&5
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); }; } &&
21213 { ac_try='test -s conftest.$ac_objext'
21214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21215 (eval $ac_try) 2>&5
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); }; }; then
21219 ac_lo=$ac_mid; break
21221 echo "$as_me: failed program was:" >&5
21222 sed 's/^/| /' conftest.$ac_ext >&5
21224 ac_hi=`expr '(' $ac_mid ')' - 1`
21225 if test $ac_mid -le $ac_hi; then
21229 ac_mid=`expr 2 '*' $ac_mid`
21231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21234 echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21242 # Binary search between lo and hi bounds.
21243 while test "x$ac_lo" != "x$ac_hi"; do
21244 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21245 cat >conftest.$ac_ext <<_ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h. */
21251 $ac_includes_default
21255 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
21262 rm -f conftest.$ac_objext
21263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21264 (eval $ac_compile) 2>conftest.er1
21266 grep -v '^ *+' conftest.er1 >conftest.err
21268 cat conftest.err >&5
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); } &&
21271 { ac_try='test -z "$ac_c_werror_flag"
21272 || test ! -s conftest.err'
21273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21274 (eval $ac_try) 2>&5
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); }; } &&
21278 { ac_try='test -s conftest.$ac_objext'
21279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21280 (eval $ac_try) 2>&5
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); }; }; then
21286 echo "$as_me: failed program was:" >&5
21287 sed 's/^/| /' conftest.$ac_ext >&5
21289 ac_lo=`expr '(' $ac_mid ')' + 1`
21291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21294 ?*) ac_cv_sizeof_short=$ac_lo;;
21295 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
21296 See \`config.log' for more details." >&5
21297 echo "$as_me: error: cannot compute sizeof (short), 77
21298 See \`config.log' for more details." >&2;}
21299 { (exit 1); exit 1; }; } ;;
21302 if test "$cross_compiling" = yes; then
21303 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21304 See \`config.log' for more details." >&5
21305 echo "$as_me: error: cannot run test program while cross compiling
21306 See \`config.log' for more details." >&2;}
21307 { (exit 1); exit 1; }; }
21309 cat >conftest.$ac_ext <<_ACEOF
21312 cat confdefs.h >>conftest.$ac_ext
21313 cat >>conftest.$ac_ext <<_ACEOF
21314 /* end confdefs.h. */
21315 $ac_includes_default
21316 long longval () { return (long) (sizeof (short)); }
21317 unsigned long ulongval () { return (long) (sizeof (short)); }
21319 #include <stdlib.h>
21324 FILE *f = fopen ("conftest.val", "w");
21327 if (((long) (sizeof (short))) < 0)
21329 long i = longval ();
21330 if (i != ((long) (sizeof (short))))
21332 fprintf (f, "%ld\n", i);
21336 unsigned long i = ulongval ();
21337 if (i != ((long) (sizeof (short))))
21339 fprintf (f, "%lu\n", i);
21341 exit (ferror (f) || fclose (f) != 0);
21347 rm -f conftest$ac_exeext
21348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21349 (eval $ac_link) 2>&5
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354 (eval $ac_try) 2>&5
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); }; }; then
21358 ac_cv_sizeof_short=`cat conftest.val`
21360 echo "$as_me: program exited with status $ac_status" >&5
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21364 ( exit $ac_status )
21365 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
21366 See \`config.log' for more details." >&5
21367 echo "$as_me: error: cannot compute sizeof (short), 77
21368 See \`config.log' for more details." >&2;}
21369 { (exit 1); exit 1; }; }
21371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21376 ac_cv_sizeof_short=0
21379 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21380 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
21381 cat >>confdefs.h <<_ACEOF
21382 #define SIZEOF_SHORT $ac_cv_sizeof_short
21386 echo "$as_me:$LINENO: checking for long double" >&5
21387 echo $ECHO_N "checking for long double... $ECHO_C" >&6
21388 if test "${ac_cv_type_long_double+set}" = set; then
21389 echo $ECHO_N "(cached) $ECHO_C" >&6
21391 cat >conftest.$ac_ext <<_ACEOF
21394 cat confdefs.h >>conftest.$ac_ext
21395 cat >>conftest.$ac_ext <<_ACEOF
21396 /* end confdefs.h. */
21397 $ac_includes_default
21401 if ((long double *) 0)
21403 if (sizeof (long double))
21409 rm -f conftest.$ac_objext
21410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21411 (eval $ac_compile) 2>conftest.er1
21413 grep -v '^ *+' conftest.er1 >conftest.err
21415 cat conftest.err >&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } &&
21418 { ac_try='test -z "$ac_c_werror_flag"
21419 || test ! -s conftest.err'
21420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421 (eval $ac_try) 2>&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); }; } &&
21425 { ac_try='test -s conftest.$ac_objext'
21426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21427 (eval $ac_try) 2>&5
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); }; }; then
21431 ac_cv_type_long_double=yes
21433 echo "$as_me: failed program was:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21436 ac_cv_type_long_double=no
21438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21440 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
21441 echo "${ECHO_T}$ac_cv_type_long_double" >&6
21443 echo "$as_me:$LINENO: checking size of long double" >&5
21444 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
21445 if test "${ac_cv_sizeof_long_double+set}" = set; then
21446 echo $ECHO_N "(cached) $ECHO_C" >&6
21448 if test "$ac_cv_type_long_double" = yes; then
21449 # The cast to unsigned long works around a bug in the HP C Compiler
21450 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21451 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21452 # This bug is HP SR number 8606223364.
21453 if test "$cross_compiling" = yes; then
21454 # Depending upon the size, compute the lo and hi bounds.
21455 cat >conftest.$ac_ext <<_ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21461 $ac_includes_default
21465 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
21472 rm -f conftest.$ac_objext
21473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21474 (eval $ac_compile) 2>conftest.er1
21476 grep -v '^ *+' conftest.er1 >conftest.err
21478 cat conftest.err >&5
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); } &&
21481 { ac_try='test -z "$ac_c_werror_flag"
21482 || test ! -s conftest.err'
21483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21484 (eval $ac_try) 2>&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); }; } &&
21488 { ac_try='test -s conftest.$ac_objext'
21489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21490 (eval $ac_try) 2>&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); }; }; then
21496 cat >conftest.$ac_ext <<_ACEOF
21499 cat confdefs.h >>conftest.$ac_ext
21500 cat >>conftest.$ac_ext <<_ACEOF
21501 /* end confdefs.h. */
21502 $ac_includes_default
21506 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
21513 rm -f conftest.$ac_objext
21514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21515 (eval $ac_compile) 2>conftest.er1
21517 grep -v '^ *+' conftest.er1 >conftest.err
21519 cat conftest.err >&5
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); } &&
21522 { ac_try='test -z "$ac_c_werror_flag"
21523 || test ! -s conftest.err'
21524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21525 (eval $ac_try) 2>&5
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); }; } &&
21529 { ac_try='test -s conftest.$ac_objext'
21530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21531 (eval $ac_try) 2>&5
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); }; }; then
21535 ac_hi=$ac_mid; break
21537 echo "$as_me: failed program was:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21540 ac_lo=`expr $ac_mid + 1`
21541 if test $ac_lo -le $ac_mid; then
21545 ac_mid=`expr 2 '*' $ac_mid + 1`
21547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21550 echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21553 cat >conftest.$ac_ext <<_ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h. */
21559 $ac_includes_default
21563 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
21570 rm -f conftest.$ac_objext
21571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21572 (eval $ac_compile) 2>conftest.er1
21574 grep -v '^ *+' conftest.er1 >conftest.err
21576 cat conftest.err >&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); } &&
21579 { ac_try='test -z "$ac_c_werror_flag"
21580 || test ! -s conftest.err'
21581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582 (eval $ac_try) 2>&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); }; } &&
21586 { ac_try='test -s conftest.$ac_objext'
21587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588 (eval $ac_try) 2>&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); }; }; then
21594 cat >conftest.$ac_ext <<_ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h. */
21600 $ac_includes_default
21604 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
21611 rm -f conftest.$ac_objext
21612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21613 (eval $ac_compile) 2>conftest.er1
21615 grep -v '^ *+' conftest.er1 >conftest.err
21617 cat conftest.err >&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); } &&
21620 { ac_try='test -z "$ac_c_werror_flag"
21621 || test ! -s conftest.err'
21622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623 (eval $ac_try) 2>&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); }; } &&
21627 { ac_try='test -s conftest.$ac_objext'
21628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629 (eval $ac_try) 2>&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); }; }; then
21633 ac_lo=$ac_mid; break
21635 echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21638 ac_hi=`expr '(' $ac_mid ')' - 1`
21639 if test $ac_mid -le $ac_hi; then
21643 ac_mid=`expr 2 '*' $ac_mid`
21645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21656 # Binary search between lo and hi bounds.
21657 while test "x$ac_lo" != "x$ac_hi"; do
21658 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21659 cat >conftest.$ac_ext <<_ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h. */
21665 $ac_includes_default
21669 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
21676 rm -f conftest.$ac_objext
21677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21678 (eval $ac_compile) 2>conftest.er1
21680 grep -v '^ *+' conftest.er1 >conftest.err
21682 cat conftest.err >&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); } &&
21685 { ac_try='test -z "$ac_c_werror_flag"
21686 || test ! -s conftest.err'
21687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); }; } &&
21692 { ac_try='test -s conftest.$ac_objext'
21693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694 (eval $ac_try) 2>&5
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); }; }; then
21700 echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21703 ac_lo=`expr '(' $ac_mid ')' + 1`
21705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21708 ?*) ac_cv_sizeof_long_double=$ac_lo;;
21709 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
21710 See \`config.log' for more details." >&5
21711 echo "$as_me: error: cannot compute sizeof (long double), 77
21712 See \`config.log' for more details." >&2;}
21713 { (exit 1); exit 1; }; } ;;
21716 if test "$cross_compiling" = yes; then
21717 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21718 See \`config.log' for more details." >&5
21719 echo "$as_me: error: cannot run test program while cross compiling
21720 See \`config.log' for more details." >&2;}
21721 { (exit 1); exit 1; }; }
21723 cat >conftest.$ac_ext <<_ACEOF
21726 cat confdefs.h >>conftest.$ac_ext
21727 cat >>conftest.$ac_ext <<_ACEOF
21728 /* end confdefs.h. */
21729 $ac_includes_default
21730 long longval () { return (long) (sizeof (long double)); }
21731 unsigned long ulongval () { return (long) (sizeof (long double)); }
21733 #include <stdlib.h>
21738 FILE *f = fopen ("conftest.val", "w");
21741 if (((long) (sizeof (long double))) < 0)
21743 long i = longval ();
21744 if (i != ((long) (sizeof (long double))))
21746 fprintf (f, "%ld\n", i);
21750 unsigned long i = ulongval ();
21751 if (i != ((long) (sizeof (long double))))
21753 fprintf (f, "%lu\n", i);
21755 exit (ferror (f) || fclose (f) != 0);
21761 rm -f conftest$ac_exeext
21762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21763 (eval $ac_link) 2>&5
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768 (eval $ac_try) 2>&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); }; }; then
21772 ac_cv_sizeof_long_double=`cat conftest.val`
21774 echo "$as_me: program exited with status $ac_status" >&5
21775 echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21778 ( exit $ac_status )
21779 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
21780 See \`config.log' for more details." >&5
21781 echo "$as_me: error: cannot compute sizeof (long double), 77
21782 See \`config.log' for more details." >&2;}
21783 { (exit 1); exit 1; }; }
21785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21790 ac_cv_sizeof_long_double=0
21793 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
21794 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
21795 cat >>confdefs.h <<_ACEOF
21796 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
21800 echo "$as_me:$LINENO: checking for long long" >&5
21801 echo $ECHO_N "checking for long long... $ECHO_C" >&6
21802 if test "${ac_cv_type_long_long+set}" = set; then
21803 echo $ECHO_N "(cached) $ECHO_C" >&6
21805 cat >conftest.$ac_ext <<_ACEOF
21808 cat confdefs.h >>conftest.$ac_ext
21809 cat >>conftest.$ac_ext <<_ACEOF
21810 /* end confdefs.h. */
21811 $ac_includes_default
21815 if ((long long *) 0)
21817 if (sizeof (long long))
21823 rm -f conftest.$ac_objext
21824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21825 (eval $ac_compile) 2>conftest.er1
21827 grep -v '^ *+' conftest.er1 >conftest.err
21829 cat conftest.err >&5
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } &&
21832 { ac_try='test -z "$ac_c_werror_flag"
21833 || test ! -s conftest.err'
21834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835 (eval $ac_try) 2>&5
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); }; } &&
21839 { ac_try='test -s conftest.$ac_objext'
21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; }; then
21845 ac_cv_type_long_long=yes
21847 echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21850 ac_cv_type_long_long=no
21852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21854 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21855 echo "${ECHO_T}$ac_cv_type_long_long" >&6
21857 echo "$as_me:$LINENO: checking size of long long" >&5
21858 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21859 if test "${ac_cv_sizeof_long_long+set}" = set; then
21860 echo $ECHO_N "(cached) $ECHO_C" >&6
21862 if test "$ac_cv_type_long_long" = yes; then
21863 # The cast to unsigned long works around a bug in the HP C Compiler
21864 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21865 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21866 # This bug is HP SR number 8606223364.
21867 if test "$cross_compiling" = yes; then
21868 # Depending upon the size, compute the lo and hi bounds.
21869 cat >conftest.$ac_ext <<_ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h. */
21875 $ac_includes_default
21879 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21886 rm -f conftest.$ac_objext
21887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21888 (eval $ac_compile) 2>conftest.er1
21890 grep -v '^ *+' conftest.er1 >conftest.err
21892 cat conftest.err >&5
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); } &&
21895 { ac_try='test -z "$ac_c_werror_flag"
21896 || test ! -s conftest.err'
21897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21898 (eval $ac_try) 2>&5
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); }; } &&
21902 { ac_try='test -s conftest.$ac_objext'
21903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904 (eval $ac_try) 2>&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); }; }; then
21910 cat >conftest.$ac_ext <<_ACEOF
21913 cat confdefs.h >>conftest.$ac_ext
21914 cat >>conftest.$ac_ext <<_ACEOF
21915 /* end confdefs.h. */
21916 $ac_includes_default
21920 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21927 rm -f conftest.$ac_objext
21928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21929 (eval $ac_compile) 2>conftest.er1
21931 grep -v '^ *+' conftest.er1 >conftest.err
21933 cat conftest.err >&5
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 (exit $ac_status); } &&
21936 { ac_try='test -z "$ac_c_werror_flag"
21937 || test ! -s conftest.err'
21938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21939 (eval $ac_try) 2>&5
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); }; } &&
21943 { ac_try='test -s conftest.$ac_objext'
21944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21945 (eval $ac_try) 2>&5
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); }; }; then
21949 ac_hi=$ac_mid; break
21951 echo "$as_me: failed program was:" >&5
21952 sed 's/^/| /' conftest.$ac_ext >&5
21954 ac_lo=`expr $ac_mid + 1`
21955 if test $ac_lo -le $ac_mid; then
21959 ac_mid=`expr 2 '*' $ac_mid + 1`
21961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21964 echo "$as_me: failed program was:" >&5
21965 sed 's/^/| /' conftest.$ac_ext >&5
21967 cat >conftest.$ac_ext <<_ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h. */
21973 $ac_includes_default
21977 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21984 rm -f conftest.$ac_objext
21985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21986 (eval $ac_compile) 2>conftest.er1
21988 grep -v '^ *+' conftest.er1 >conftest.err
21990 cat conftest.err >&5
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); } &&
21993 { ac_try='test -z "$ac_c_werror_flag"
21994 || test ! -s conftest.err'
21995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21996 (eval $ac_try) 2>&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); }; } &&
22000 { ac_try='test -s conftest.$ac_objext'
22001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002 (eval $ac_try) 2>&5
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); }; }; then
22008 cat >conftest.$ac_ext <<_ACEOF
22011 cat confdefs.h >>conftest.$ac_ext
22012 cat >>conftest.$ac_ext <<_ACEOF
22013 /* end confdefs.h. */
22014 $ac_includes_default
22018 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
22025 rm -f conftest.$ac_objext
22026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22027 (eval $ac_compile) 2>conftest.er1
22029 grep -v '^ *+' conftest.er1 >conftest.err
22031 cat conftest.err >&5
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); } &&
22034 { ac_try='test -z "$ac_c_werror_flag"
22035 || test ! -s conftest.err'
22036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22037 (eval $ac_try) 2>&5
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); }; } &&
22041 { ac_try='test -s conftest.$ac_objext'
22042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043 (eval $ac_try) 2>&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); }; }; then
22047 ac_lo=$ac_mid; break
22049 echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22052 ac_hi=`expr '(' $ac_mid ')' - 1`
22053 if test $ac_mid -le $ac_hi; then
22057 ac_mid=`expr 2 '*' $ac_mid`
22059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22062 echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22070 # Binary search between lo and hi bounds.
22071 while test "x$ac_lo" != "x$ac_hi"; do
22072 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22073 cat >conftest.$ac_ext <<_ACEOF
22076 cat confdefs.h >>conftest.$ac_ext
22077 cat >>conftest.$ac_ext <<_ACEOF
22078 /* end confdefs.h. */
22079 $ac_includes_default
22083 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
22090 rm -f conftest.$ac_objext
22091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22092 (eval $ac_compile) 2>conftest.er1
22094 grep -v '^ *+' conftest.er1 >conftest.err
22096 cat conftest.err >&5
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); } &&
22099 { ac_try='test -z "$ac_c_werror_flag"
22100 || test ! -s conftest.err'
22101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22102 (eval $ac_try) 2>&5
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); }; } &&
22106 { ac_try='test -s conftest.$ac_objext'
22107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108 (eval $ac_try) 2>&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; }; then
22114 echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22117 ac_lo=`expr '(' $ac_mid ')' + 1`
22119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22122 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22123 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
22124 See \`config.log' for more details." >&5
22125 echo "$as_me: error: cannot compute sizeof (long long), 77
22126 See \`config.log' for more details." >&2;}
22127 { (exit 1); exit 1; }; } ;;
22130 if test "$cross_compiling" = yes; then
22131 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22132 See \`config.log' for more details." >&5
22133 echo "$as_me: error: cannot run test program while cross compiling
22134 See \`config.log' for more details." >&2;}
22135 { (exit 1); exit 1; }; }
22137 cat >conftest.$ac_ext <<_ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h. */
22143 $ac_includes_default
22144 long longval () { return (long) (sizeof (long long)); }
22145 unsigned long ulongval () { return (long) (sizeof (long long)); }
22147 #include <stdlib.h>
22152 FILE *f = fopen ("conftest.val", "w");
22155 if (((long) (sizeof (long long))) < 0)
22157 long i = longval ();
22158 if (i != ((long) (sizeof (long long))))
22160 fprintf (f, "%ld\n", i);
22164 unsigned long i = ulongval ();
22165 if (i != ((long) (sizeof (long long))))
22167 fprintf (f, "%lu\n", i);
22169 exit (ferror (f) || fclose (f) != 0);
22175 rm -f conftest$ac_exeext
22176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22177 (eval $ac_link) 2>&5
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22182 (eval $ac_try) 2>&5
22184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185 (exit $ac_status); }; }; then
22186 ac_cv_sizeof_long_long=`cat conftest.val`
22188 echo "$as_me: program exited with status $ac_status" >&5
22189 echo "$as_me: failed program was:" >&5
22190 sed 's/^/| /' conftest.$ac_ext >&5
22192 ( exit $ac_status )
22193 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
22194 See \`config.log' for more details." >&5
22195 echo "$as_me: error: cannot compute sizeof (long long), 77
22196 See \`config.log' for more details." >&2;}
22197 { (exit 1); exit 1; }; }
22199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22204 ac_cv_sizeof_long_long=0
22207 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22208 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
22209 cat >>confdefs.h <<_ACEOF
22210 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22214 echo "$as_me:$LINENO: checking for longlong" >&5
22215 echo $ECHO_N "checking for longlong... $ECHO_C" >&6
22216 if test "${ac_cv_type_longlong+set}" = set; then
22217 echo $ECHO_N "(cached) $ECHO_C" >&6
22219 cat >conftest.$ac_ext <<_ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h. */
22225 $ac_includes_default
22229 if ((longlong *) 0)
22231 if (sizeof (longlong))
22237 rm -f conftest.$ac_objext
22238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22239 (eval $ac_compile) 2>conftest.er1
22241 grep -v '^ *+' conftest.er1 >conftest.err
22243 cat conftest.err >&5
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); } &&
22246 { ac_try='test -z "$ac_c_werror_flag"
22247 || test ! -s conftest.err'
22248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22249 (eval $ac_try) 2>&5
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); }; } &&
22253 { ac_try='test -s conftest.$ac_objext'
22254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255 (eval $ac_try) 2>&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); }; }; then
22259 ac_cv_type_longlong=yes
22261 echo "$as_me: failed program was:" >&5
22262 sed 's/^/| /' conftest.$ac_ext >&5
22264 ac_cv_type_longlong=no
22266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22268 echo "$as_me:$LINENO: result: $ac_cv_type_longlong" >&5
22269 echo "${ECHO_T}$ac_cv_type_longlong" >&6
22271 echo "$as_me:$LINENO: checking size of longlong" >&5
22272 echo $ECHO_N "checking size of longlong... $ECHO_C" >&6
22273 if test "${ac_cv_sizeof_longlong+set}" = set; then
22274 echo $ECHO_N "(cached) $ECHO_C" >&6
22276 if test "$ac_cv_type_longlong" = yes; then
22277 # The cast to unsigned long works around a bug in the HP C Compiler
22278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22280 # This bug is HP SR number 8606223364.
22281 if test "$cross_compiling" = yes; then
22282 # Depending upon the size, compute the lo and hi bounds.
22283 cat >conftest.$ac_ext <<_ACEOF
22286 cat confdefs.h >>conftest.$ac_ext
22287 cat >>conftest.$ac_ext <<_ACEOF
22288 /* end confdefs.h. */
22289 $ac_includes_default
22293 static int test_array [1 - 2 * !(((long) (sizeof (longlong))) >= 0)];
22300 rm -f conftest.$ac_objext
22301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22302 (eval $ac_compile) 2>conftest.er1
22304 grep -v '^ *+' conftest.er1 >conftest.err
22306 cat conftest.err >&5
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); } &&
22309 { ac_try='test -z "$ac_c_werror_flag"
22310 || test ! -s conftest.err'
22311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22312 (eval $ac_try) 2>&5
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); }; } &&
22316 { ac_try='test -s conftest.$ac_objext'
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22324 cat >conftest.$ac_ext <<_ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h. */
22330 $ac_includes_default
22334 static int test_array [1 - 2 * !(((long) (sizeof (longlong))) <= $ac_mid)];
22341 rm -f conftest.$ac_objext
22342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22343 (eval $ac_compile) 2>conftest.er1
22345 grep -v '^ *+' conftest.er1 >conftest.err
22347 cat conftest.err >&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } &&
22350 { ac_try='test -z "$ac_c_werror_flag"
22351 || test ! -s conftest.err'
22352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22353 (eval $ac_try) 2>&5
22355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); }; } &&
22357 { ac_try='test -s conftest.$ac_objext'
22358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22359 (eval $ac_try) 2>&5
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); }; }; then
22363 ac_hi=$ac_mid; break
22365 echo "$as_me: failed program was:" >&5
22366 sed 's/^/| /' conftest.$ac_ext >&5
22368 ac_lo=`expr $ac_mid + 1`
22369 if test $ac_lo -le $ac_mid; then
22373 ac_mid=`expr 2 '*' $ac_mid + 1`
22375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22378 echo "$as_me: failed program was:" >&5
22379 sed 's/^/| /' conftest.$ac_ext >&5
22381 cat >conftest.$ac_ext <<_ACEOF
22384 cat confdefs.h >>conftest.$ac_ext
22385 cat >>conftest.$ac_ext <<_ACEOF
22386 /* end confdefs.h. */
22387 $ac_includes_default
22391 static int test_array [1 - 2 * !(((long) (sizeof (longlong))) < 0)];
22398 rm -f conftest.$ac_objext
22399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22400 (eval $ac_compile) 2>conftest.er1
22402 grep -v '^ *+' conftest.er1 >conftest.err
22404 cat conftest.err >&5
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); } &&
22407 { ac_try='test -z "$ac_c_werror_flag"
22408 || test ! -s conftest.err'
22409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22410 (eval $ac_try) 2>&5
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); }; } &&
22414 { ac_try='test -s conftest.$ac_objext'
22415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22416 (eval $ac_try) 2>&5
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); }; }; then
22422 cat >conftest.$ac_ext <<_ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h. */
22428 $ac_includes_default
22432 static int test_array [1 - 2 * !(((long) (sizeof (longlong))) >= $ac_mid)];
22439 rm -f conftest.$ac_objext
22440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22441 (eval $ac_compile) 2>conftest.er1
22443 grep -v '^ *+' conftest.er1 >conftest.err
22445 cat conftest.err >&5
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); } &&
22448 { ac_try='test -z "$ac_c_werror_flag"
22449 || test ! -s conftest.err'
22450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22451 (eval $ac_try) 2>&5
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); }; } &&
22455 { ac_try='test -s conftest.$ac_objext'
22456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22457 (eval $ac_try) 2>&5
22459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 (exit $ac_status); }; }; then
22461 ac_lo=$ac_mid; break
22463 echo "$as_me: failed program was:" >&5
22464 sed 's/^/| /' conftest.$ac_ext >&5
22466 ac_hi=`expr '(' $ac_mid ')' - 1`
22467 if test $ac_mid -le $ac_hi; then
22471 ac_mid=`expr 2 '*' $ac_mid`
22473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22476 echo "$as_me: failed program was:" >&5
22477 sed 's/^/| /' conftest.$ac_ext >&5
22481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22484 # Binary search between lo and hi bounds.
22485 while test "x$ac_lo" != "x$ac_hi"; do
22486 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22487 cat >conftest.$ac_ext <<_ACEOF
22490 cat confdefs.h >>conftest.$ac_ext
22491 cat >>conftest.$ac_ext <<_ACEOF
22492 /* end confdefs.h. */
22493 $ac_includes_default
22497 static int test_array [1 - 2 * !(((long) (sizeof (longlong))) <= $ac_mid)];
22504 rm -f conftest.$ac_objext
22505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22506 (eval $ac_compile) 2>conftest.er1
22508 grep -v '^ *+' conftest.er1 >conftest.err
22510 cat conftest.err >&5
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); } &&
22513 { ac_try='test -z "$ac_c_werror_flag"
22514 || test ! -s conftest.err'
22515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22516 (eval $ac_try) 2>&5
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); }; } &&
22520 { ac_try='test -s conftest.$ac_objext'
22521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22522 (eval $ac_try) 2>&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); }; }; then
22528 echo "$as_me: failed program was:" >&5
22529 sed 's/^/| /' conftest.$ac_ext >&5
22531 ac_lo=`expr '(' $ac_mid ')' + 1`
22533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22536 ?*) ac_cv_sizeof_longlong=$ac_lo;;
22537 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (longlong), 77
22538 See \`config.log' for more details." >&5
22539 echo "$as_me: error: cannot compute sizeof (longlong), 77
22540 See \`config.log' for more details." >&2;}
22541 { (exit 1); exit 1; }; } ;;
22544 if test "$cross_compiling" = yes; then
22545 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22546 See \`config.log' for more details." >&5
22547 echo "$as_me: error: cannot run test program while cross compiling
22548 See \`config.log' for more details." >&2;}
22549 { (exit 1); exit 1; }; }
22551 cat >conftest.$ac_ext <<_ACEOF
22554 cat confdefs.h >>conftest.$ac_ext
22555 cat >>conftest.$ac_ext <<_ACEOF
22556 /* end confdefs.h. */
22557 $ac_includes_default
22558 long longval () { return (long) (sizeof (longlong)); }
22559 unsigned long ulongval () { return (long) (sizeof (longlong)); }
22561 #include <stdlib.h>
22566 FILE *f = fopen ("conftest.val", "w");
22569 if (((long) (sizeof (longlong))) < 0)
22571 long i = longval ();
22572 if (i != ((long) (sizeof (longlong))))
22574 fprintf (f, "%ld\n", i);
22578 unsigned long i = ulongval ();
22579 if (i != ((long) (sizeof (longlong))))
22581 fprintf (f, "%lu\n", i);
22583 exit (ferror (f) || fclose (f) != 0);
22589 rm -f conftest$ac_exeext
22590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22591 (eval $ac_link) 2>&5
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22596 (eval $ac_try) 2>&5
22598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); }; }; then
22600 ac_cv_sizeof_longlong=`cat conftest.val`
22602 echo "$as_me: program exited with status $ac_status" >&5
22603 echo "$as_me: failed program was:" >&5
22604 sed 's/^/| /' conftest.$ac_ext >&5
22606 ( exit $ac_status )
22607 { { echo "$as_me:$LINENO: error: cannot compute sizeof (longlong), 77
22608 See \`config.log' for more details." >&5
22609 echo "$as_me: error: cannot compute sizeof (longlong), 77
22610 See \`config.log' for more details." >&2;}
22611 { (exit 1); exit 1; }; }
22613 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22618 ac_cv_sizeof_longlong=0
22621 echo "$as_me:$LINENO: result: $ac_cv_sizeof_longlong" >&5
22622 echo "${ECHO_T}$ac_cv_sizeof_longlong" >&6
22623 cat >>confdefs.h <<_ACEOF
22624 #define SIZEOF_LONGLONG $ac_cv_sizeof_longlong
22629 # Now we need to find what jk_uint32_t (sizeof == 4) will be.
22630 # The first match is our preference.
22631 if test "$ac_cv_sizeof_int" = "4"; then
22632 int32_t_fmt='#define JK_INT32_T_FMT "d"'
22633 uint32_t_fmt='#define JK_UINT32_T_FMT "u"'
22634 uint32_t_hex_fmt='#define JK_UINT32_T_HEX_FMT "x"'
22636 elif test "$ac_cv_sizeof_long" = "4"; then
22637 int32_t_fmt='#define JK_INT32_T_FMT "ld"'
22638 uint32_t_fmt='#define JK_UINT32_T_FMT "lu"'
22639 uint32_t_hex_fmt='#define JK_UINT32_T_HEX_FMT "lx"'
22642 int32_t_fmt='#error could not detect a 32-bit integer type'
22643 uint32_t_fmt='#error could not detect a 32-bit integer type'
22644 uint32_t_hex_fmt='#error could not detect a 32-bit integer type'
22645 { { echo "$as_me:$LINENO: error: could not detect a 32-bit integer type" >&5
22646 echo "$as_me: error: could not detect a 32-bit integer type" >&2;}
22647 { (exit 1); exit 1; }; }
22650 # Now we need to find what jk_uint64_t (sizeof == 8) will be.
22651 # The first match is our preference.
22652 if test "$ac_cv_sizeof_int" = "8"; then
22653 int64_t_fmt='#define JK_INT64_T_FMT "d"'
22654 uint64_t_fmt='#define JK_UINT64_T_FMT "u"'
22655 uint64_t_hex_fmt='#define JK_UINT64_T_HEX_FMT "x"'
22657 elif test "$ac_cv_sizeof_long" = "8"; then
22658 int64_t_fmt='#define JK_INT64_T_FMT "ld"'
22659 uint64_t_fmt='#define JK_UINT64_T_FMT "lu"'
22660 uint64_t_hex_fmt='#define JK_UINT64_T_HEX_FMT "lx"'
22662 elif test "$ac_cv_sizeof_long_long" = "8"; then
22663 # Linux, Solaris, FreeBSD all support ll with printf.
22664 # BSD 4.4 originated 'q'. Solaris is more popular and
22665 # doesn't support 'q'. Solaris wins. Exceptions can
22666 # go to the OS-dependent section.
22667 int64_t_fmt='#define JK_INT64_T_FMT "lld"'
22668 uint64_t_fmt='#define JK_UINT64_T_FMT "llu"'
22669 uint64_t_hex_fmt='#define JK_UINT64_T_HEX_FMT "llx"'
22670 int64_value="long long"
22671 elif test "$ac_cv_sizeof_long_double" = "8"; then
22672 int64_t_fmt='#define JK_INT64_T_FMT "Ld"'
22673 uint64_t_fmt='#define JK_UINT64_T_FMT "Lu"'
22674 uint64_t_hex_fmt='#define JK_UINT64_T_HEX_FMT "Lx"'
22675 int64_value="long double"
22676 elif test "$ac_cv_sizeof_longlong" = "8"; then
22677 int64_t_fmt='#define JK_INT64_T_FMT "qd"'
22678 uint64_t_fmt='#define JK_UINT64_T_FMT "qu"'
22679 uint64_t_hex_fmt='#define JK_UINT64_T_HEX_FMT "qx"'
22680 int64_value="__int64"
22682 int64_t_fmt='#error could not detect a 64-bit integer type'
22683 uint64_t_fmt='#error could not detect a 64-bit integer type'
22684 uint64_t_hex_fmt='#error could not detect a 64-bit integer type'
22685 { { echo "$as_me:$LINENO: error: could not detect a 64-bit integer type" >&5
22686 echo "$as_me: error: could not detect a 64-bit integer type" >&2;}
22687 { (exit 1); exit 1; }; }
22690 echo "$as_me:$LINENO: checking size of pid_t" >&5
22691 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6
22692 if test "${ac_cv_sizeof_pid_t+set}" = set; then
22693 echo $ECHO_N "(cached) $ECHO_C" >&6
22695 if test "$cross_compiling" = yes; then
22696 ac_cv_sizeof_pid_t=8
22698 cat >conftest.$ac_ext <<_ACEOF
22701 cat confdefs.h >>conftest.$ac_ext
22702 cat >>conftest.$ac_ext <<_ACEOF
22703 /* end confdefs.h. */
22705 #include <sys/types.h>
22708 FILE *f=fopen("conftestval","w");
22710 fprintf(f, "%d\n", sizeof(pid_t));
22714 rm -f conftest$ac_exeext
22715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22716 (eval $ac_link) 2>&5
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22721 (eval $ac_try) 2>&5
22723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); }; }; then
22725 ac_cv_sizeof_pid_t=`cat conftestval`
22727 echo "$as_me: program exited with status $ac_status" >&5
22728 echo "$as_me: failed program was:" >&5
22729 sed 's/^/| /' conftest.$ac_ext >&5
22731 ( exit $ac_status )
22732 ac_cv_sizeof_pid_t=0
22734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22737 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
22738 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6
22740 cat >>confdefs.h <<_ACEOF
22741 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
22746 if test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_short"; then
22747 pid_t_fmt='#define JK_PID_T_FMT "hd"'
22748 elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_int"; then
22749 pid_t_fmt='#define JK_PID_T_FMT "d"'
22750 elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long"; then
22751 pid_t_fmt='#define JK_PID_T_FMT "ld"'
22752 elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long_long"; then
22753 pid_t_fmt='#define JK_PID_T_FMT JK_INT64_T_FMT'
22755 pid_t_fmt='#error Can not determine the proper size for pid_t'
22758 echo "$as_me:$LINENO: checking size of pthread_t" >&5
22759 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
22760 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
22761 echo $ECHO_N "(cached) $ECHO_C" >&6
22763 if test "$cross_compiling" = yes; then
22764 ac_cv_sizeof_pthread_t=8
22766 cat >conftest.$ac_ext <<_ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>conftest.$ac_ext <<_ACEOF
22771 /* end confdefs.h. */
22773 #include <pthread.h>
22776 FILE *f=fopen("conftestval","w");
22778 fprintf(f, "%d\n", sizeof(pthread_t));
22782 rm -f conftest$ac_exeext
22783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22784 (eval $ac_link) 2>&5
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22789 (eval $ac_try) 2>&5
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); }; }; then
22793 ac_cv_sizeof_pthread_t=`cat conftestval`
22795 echo "$as_me: program exited with status $ac_status" >&5
22796 echo "$as_me: failed program was:" >&5
22797 sed 's/^/| /' conftest.$ac_ext >&5
22799 ( exit $ac_status )
22800 ac_cv_sizeof_pthread_t=0
22802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22805 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
22806 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
22808 cat >>confdefs.h <<_ACEOF
22809 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
22814 if test "$ac_cv_sizeof_pthread_t" = "$ac_cv_sizeof_short"; then
22815 pthread_t_fmt='#define JK_PTHREAD_T_FMT "hu"'
22816 pthread_t_value="short"
22817 elif test "$ac_cv_sizeof_pthread_t" = "$ac_cv_sizeof_int"; then
22818 pthread_t_fmt='#define JK_PTHREAD_T_FMT "u"'
22819 pthread_t_value="int"
22820 elif test "$ac_cv_sizeof_pthread_t" = "$ac_cv_sizeof_long"; then
22821 pthread_t_fmt='#define JK_PTHREAD_T_FMT "lu"'
22822 pthread_t_value="long"
22823 elif test "$ac_cv_sizeof_pthread_t" = "$ac_cv_sizeof_long_long"; then
22824 pthread_t_fmt='#define JK_PTHREAD_T_FMT "llu"'
22825 pthread_t_value="long long"
22827 pthread_t_fmt='#error Can not determine the proper size for pthread_t'
22830 # Basically, we have tried to figure out the correct format strings
22831 # for pid_t which varies between platforms, but we don't always get
22832 # it right. If you find that we don't get it right for your platform,
22833 # you can override our decision below.
22836 if test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long"; then
22837 pid_t_fmt='#define JK_PID_T_FMT "ld"'
22854 echo "$as_me:$LINENO: checking for snprintf" >&5
22855 echo $ECHO_N "checking for snprintf... $ECHO_C" >&6
22856 if test "${ac_cv_func_snprintf+set}" = set; then
22857 echo $ECHO_N "(cached) $ECHO_C" >&6
22859 cat >conftest.$ac_ext <<_ACEOF
22862 cat confdefs.h >>conftest.$ac_ext
22863 cat >>conftest.$ac_ext <<_ACEOF
22864 /* end confdefs.h. */
22865 /* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
22866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22867 #define snprintf innocuous_snprintf
22869 /* System header to define __stub macros and hopefully few prototypes,
22870 which can conflict with char snprintf (); below.
22871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22872 <limits.h> exists even on freestanding compilers. */
22875 # include <limits.h>
22877 # include <assert.h>
22882 /* Override any gcc2 internal prototype to avoid an error. */
22887 /* We use char because int might match the return type of a gcc2
22888 builtin and then its argument prototype would still apply. */
22890 /* The GNU C library defines this for functions which it implements
22891 to always fail with ENOSYS. Some functions are actually named
22892 something starting with __ and the normal name is an alias. */
22893 #if defined (__stub_snprintf) || defined (__stub___snprintf)
22896 char (*f) () = snprintf;
22905 return f != snprintf;
22910 rm -f conftest.$ac_objext conftest$ac_exeext
22911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22912 (eval $ac_link) 2>conftest.er1
22914 grep -v '^ *+' conftest.er1 >conftest.err
22916 cat conftest.err >&5
22917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918 (exit $ac_status); } &&
22919 { ac_try='test -z "$ac_c_werror_flag"
22920 || test ! -s conftest.err'
22921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22922 (eval $ac_try) 2>&5
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); }; } &&
22926 { ac_try='test -s conftest$ac_exeext'
22927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22928 (eval $ac_try) 2>&5
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); }; }; then
22932 ac_cv_func_snprintf=yes
22934 echo "$as_me: failed program was:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22937 ac_cv_func_snprintf=no
22939 rm -f conftest.err conftest.$ac_objext \
22940 conftest$ac_exeext conftest.$ac_ext
22942 echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
22943 echo "${ECHO_T}$ac_cv_func_snprintf" >&6
22944 if test $ac_cv_func_snprintf = yes; then
22946 cat >>confdefs.h <<\_ACEOF
22947 #define HAVE_SNPRINTF 1
22952 echo "$as_me:$LINENO: checking for vsnprintf" >&5
22953 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
22954 if test "${ac_cv_func_vsnprintf+set}" = set; then
22955 echo $ECHO_N "(cached) $ECHO_C" >&6
22957 cat >conftest.$ac_ext <<_ACEOF
22960 cat confdefs.h >>conftest.$ac_ext
22961 cat >>conftest.$ac_ext <<_ACEOF
22962 /* end confdefs.h. */
22963 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
22964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22965 #define vsnprintf innocuous_vsnprintf
22967 /* System header to define __stub macros and hopefully few prototypes,
22968 which can conflict with char vsnprintf (); below.
22969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22970 <limits.h> exists even on freestanding compilers. */
22973 # include <limits.h>
22975 # include <assert.h>
22980 /* Override any gcc2 internal prototype to avoid an error. */
22985 /* We use char because int might match the return type of a gcc2
22986 builtin and then its argument prototype would still apply. */
22988 /* The GNU C library defines this for functions which it implements
22989 to always fail with ENOSYS. Some functions are actually named
22990 something starting with __ and the normal name is an alias. */
22991 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
22994 char (*f) () = vsnprintf;
23003 return f != vsnprintf;
23008 rm -f conftest.$ac_objext conftest$ac_exeext
23009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23010 (eval $ac_link) 2>conftest.er1
23012 grep -v '^ *+' conftest.er1 >conftest.err
23014 cat conftest.err >&5
23015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016 (exit $ac_status); } &&
23017 { ac_try='test -z "$ac_c_werror_flag"
23018 || test ! -s conftest.err'
23019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23020 (eval $ac_try) 2>&5
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); }; } &&
23024 { ac_try='test -s conftest$ac_exeext'
23025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23026 (eval $ac_try) 2>&5
23028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029 (exit $ac_status); }; }; then
23030 ac_cv_func_vsnprintf=yes
23032 echo "$as_me: failed program was:" >&5
23033 sed 's/^/| /' conftest.$ac_ext >&5
23035 ac_cv_func_vsnprintf=no
23037 rm -f conftest.err conftest.$ac_objext \
23038 conftest$ac_exeext conftest.$ac_ext
23040 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
23041 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
23042 if test $ac_cv_func_vsnprintf = yes; then
23044 cat >>confdefs.h <<\_ACEOF
23045 #define HAVE_VSNPRINTF 1
23050 echo "$as_me:$LINENO: checking for flock" >&5
23051 echo $ECHO_N "checking for flock... $ECHO_C" >&6
23052 if test "${ac_cv_func_flock+set}" = set; then
23053 echo $ECHO_N "(cached) $ECHO_C" >&6
23055 cat >conftest.$ac_ext <<_ACEOF
23058 cat confdefs.h >>conftest.$ac_ext
23059 cat >>conftest.$ac_ext <<_ACEOF
23060 /* end confdefs.h. */
23061 /* Define flock to an innocuous variant, in case <limits.h> declares flock.
23062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23063 #define flock innocuous_flock
23065 /* System header to define __stub macros and hopefully few prototypes,
23066 which can conflict with char flock (); below.
23067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23068 <limits.h> exists even on freestanding compilers. */
23071 # include <limits.h>
23073 # include <assert.h>
23078 /* Override any gcc2 internal prototype to avoid an error. */
23083 /* We use char because int might match the return type of a gcc2
23084 builtin and then its argument prototype would still apply. */
23086 /* The GNU C library defines this for functions which it implements
23087 to always fail with ENOSYS. Some functions are actually named
23088 something starting with __ and the normal name is an alias. */
23089 #if defined (__stub_flock) || defined (__stub___flock)
23092 char (*f) () = flock;
23106 rm -f conftest.$ac_objext conftest$ac_exeext
23107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23108 (eval $ac_link) 2>conftest.er1
23110 grep -v '^ *+' conftest.er1 >conftest.err
23112 cat conftest.err >&5
23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114 (exit $ac_status); } &&
23115 { ac_try='test -z "$ac_c_werror_flag"
23116 || test ! -s conftest.err'
23117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23118 (eval $ac_try) 2>&5
23120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121 (exit $ac_status); }; } &&
23122 { ac_try='test -s conftest$ac_exeext'
23123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23124 (eval $ac_try) 2>&5
23126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127 (exit $ac_status); }; }; then
23128 ac_cv_func_flock=yes
23130 echo "$as_me: failed program was:" >&5
23131 sed 's/^/| /' conftest.$ac_ext >&5
23133 ac_cv_func_flock=no
23135 rm -f conftest.err conftest.$ac_objext \
23136 conftest$ac_exeext conftest.$ac_ext
23138 echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5
23139 echo "${ECHO_T}$ac_cv_func_flock" >&6
23140 if test $ac_cv_func_flock = yes; then
23142 cat >>confdefs.h <<\_ACEOF
23143 #define HAVE_FLOCK 1
23149 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
23150 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
23151 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
23152 echo $ECHO_N "(cached) $ECHO_C" >&6
23154 ac_check_lib_save_LIBS=$LIBS
23155 LIBS="-lsocket $LIBS"
23156 cat >conftest.$ac_ext <<_ACEOF
23159 cat confdefs.h >>conftest.$ac_ext
23160 cat >>conftest.$ac_ext <<_ACEOF
23161 /* end confdefs.h. */
23163 /* Override any gcc2 internal prototype to avoid an error. */
23167 /* We use char because int might match the return type of a gcc2
23168 builtin and then its argument prototype would still apply. */
23169 char setsockopt ();
23178 rm -f conftest.$ac_objext conftest$ac_exeext
23179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23180 (eval $ac_link) 2>conftest.er1
23182 grep -v '^ *+' conftest.er1 >conftest.err
23184 cat conftest.err >&5
23185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186 (exit $ac_status); } &&
23187 { ac_try='test -z "$ac_c_werror_flag"
23188 || test ! -s conftest.err'
23189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23190 (eval $ac_try) 2>&5
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); }; } &&
23194 { ac_try='test -s conftest$ac_exeext'
23195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23196 (eval $ac_try) 2>&5
23198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199 (exit $ac_status); }; }; then
23200 ac_cv_lib_socket_setsockopt=yes
23202 echo "$as_me: failed program was:" >&5
23203 sed 's/^/| /' conftest.$ac_ext >&5
23205 ac_cv_lib_socket_setsockopt=no
23207 rm -f conftest.err conftest.$ac_objext \
23208 conftest$ac_exeext conftest.$ac_ext
23209 LIBS=$ac_check_lib_save_LIBS
23211 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
23212 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
23213 if test $ac_cv_lib_socket_setsockopt = yes; then
23214 LIBS="$LIBS -lsocket"
23219 for ac_header in sys/filio.h
23221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23223 echo "$as_me:$LINENO: checking for $ac_header" >&5
23224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23226 echo $ECHO_N "(cached) $ECHO_C" >&6
23228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23231 # Is the header compilable?
23232 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23234 cat >conftest.$ac_ext <<_ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h. */
23240 $ac_includes_default
23241 #include <$ac_header>
23243 rm -f conftest.$ac_objext
23244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23245 (eval $ac_compile) 2>conftest.er1
23247 grep -v '^ *+' conftest.er1 >conftest.err
23249 cat conftest.err >&5
23250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); } &&
23252 { ac_try='test -z "$ac_c_werror_flag"
23253 || test ! -s conftest.err'
23254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23255 (eval $ac_try) 2>&5
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); }; } &&
23259 { ac_try='test -s conftest.$ac_objext'
23260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23261 (eval $ac_try) 2>&5
23263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); }; }; then
23265 ac_header_compiler=yes
23267 echo "$as_me: failed program was:" >&5
23268 sed 's/^/| /' conftest.$ac_ext >&5
23270 ac_header_compiler=no
23272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23274 echo "${ECHO_T}$ac_header_compiler" >&6
23276 # Is the header present?
23277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23279 cat >conftest.$ac_ext <<_ACEOF
23282 cat confdefs.h >>conftest.$ac_ext
23283 cat >>conftest.$ac_ext <<_ACEOF
23284 /* end confdefs.h. */
23285 #include <$ac_header>
23287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23290 grep -v '^ *+' conftest.er1 >conftest.err
23292 cat conftest.err >&5
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); } >/dev/null; then
23295 if test -s conftest.err; then
23296 ac_cpp_err=$ac_c_preproc_warn_flag
23297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23304 if test -z "$ac_cpp_err"; then
23305 ac_header_preproc=yes
23307 echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23310 ac_header_preproc=no
23312 rm -f conftest.err conftest.$ac_ext
23313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23314 echo "${ECHO_T}$ac_header_preproc" >&6
23316 # So? What about this header?
23317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23323 ac_header_preproc=yes
23326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23329 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23333 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23340 ## ------------------------------------------ ##
23341 ## Report this to the AC_PACKAGE_NAME lists. ##
23342 ## ------------------------------------------ ##
23345 sed "s/^/$as_me: WARNING: /" >&2
23348 echo "$as_me:$LINENO: checking for $ac_header" >&5
23349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23351 echo $ECHO_N "(cached) $ECHO_C" >&6
23353 eval "$as_ac_Header=\$ac_header_preproc"
23355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23360 cat >>confdefs.h <<_ACEOF
23361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23371 echo "$as_me:$LINENO: checking whether to use SO_RCVTIMEO with setsockopt()" >&5
23372 echo $ECHO_N "checking whether to use SO_RCVTIMEO with setsockopt()... $ECHO_C" >&6
23373 if test "$cross_compiling" = yes; then
23374 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23375 See \`config.log' for more details." >&5
23376 echo "$as_me: error: cannot run test program while cross compiling
23377 See \`config.log' for more details." >&2;}
23378 { (exit 1); exit 1; }; }
23380 cat >conftest.$ac_ext <<_ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h. */
23387 #include <sys/types.h>
23388 #include <sys/socket.h>
23389 #include <sys/time.h>
23398 #ifndef SO_RCVTIMEO
23401 if ((s = socket(AF_INET, SOCK_STREAM, 0)) == -1)
23404 /* fails on Solaris 2.6,8,9,10 and some Linuxes because
23405 SO_RCVTIMEO|SO_SNDTIMEO are defined but not implemented */
23406 if (setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, (const void *)&tv, sizeof(tv)) == -1)
23415 rm -f conftest$ac_exeext
23416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23417 (eval $ac_link) 2>&5
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23422 (eval $ac_try) 2>&5
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); }; }; then
23426 echo "$as_me:$LINENO: result: yes" >&5
23427 echo "${ECHO_T}yes" >&6
23428 cat >>confdefs.h <<\_ACEOF
23429 #define USE_SO_RCVTIMEO 1
23434 echo "$as_me: program exited with status $ac_status" >&5
23435 echo "$as_me: failed program was:" >&5
23436 sed 's/^/| /' conftest.$ac_ext >&5
23438 ( exit $ac_status )
23439 echo "$as_me:$LINENO: result: no" >&5
23440 echo "${ECHO_T}no" >&6
23443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23447 echo "$as_me:$LINENO: checking whether to use SO_SNDTIMEO with setsockopt()" >&5
23448 echo $ECHO_N "checking whether to use SO_SNDTIMEO with setsockopt()... $ECHO_C" >&6
23449 if test "$cross_compiling" = yes; then
23450 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23451 See \`config.log' for more details." >&5
23452 echo "$as_me: error: cannot run test program while cross compiling
23453 See \`config.log' for more details." >&2;}
23454 { (exit 1); exit 1; }; }
23456 cat >conftest.$ac_ext <<_ACEOF
23459 cat confdefs.h >>conftest.$ac_ext
23460 cat >>conftest.$ac_ext <<_ACEOF
23461 /* end confdefs.h. */
23463 #include <sys/types.h>
23464 #include <sys/socket.h>
23465 #include <sys/time.h>
23474 #ifndef SO_SNDTIMEO
23477 if ((s = socket(AF_INET, SOCK_STREAM, 0)) == -1)
23480 /* fails on Solaris 2.6,8,9,10 and some Linuxes because
23481 SO_RCVTIMEO|SO_SNDTIMEO are defined but not implemented */
23482 if (setsockopt(s, SOL_SOCKET, SO_SNDTIMEO, (const void *)&tv, sizeof(tv)) == -1)
23491 rm -f conftest$ac_exeext
23492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23493 (eval $ac_link) 2>&5
23495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23498 (eval $ac_try) 2>&5
23500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501 (exit $ac_status); }; }; then
23502 echo "$as_me:$LINENO: result: yes" >&5
23503 echo "${ECHO_T}yes" >&6
23504 cat >>confdefs.h <<\_ACEOF
23505 #define USE_SO_SNDTIMEO 1
23510 echo "$as_me: program exited with status $ac_status" >&5
23511 echo "$as_me: failed program was:" >&5
23512 sed 's/^/| /' conftest.$ac_ext >&5
23514 ( exit $ac_status )
23515 echo "$as_me:$LINENO: result: no" >&5
23516 echo "${ECHO_T}no" >&6
23519 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23525 echo "$as_me:$LINENO: checking whether to use SOCK_CLOEXEC with socket()" >&5
23526 echo $ECHO_N "checking whether to use SOCK_CLOEXEC with socket()... $ECHO_C" >&6
23527 if test "$cross_compiling" = yes; then
23528 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23529 See \`config.log' for more details." >&5
23530 echo "$as_me: error: cannot run test program while cross compiling
23531 See \`config.log' for more details." >&2;}
23532 { (exit 1); exit 1; }; }
23534 cat >conftest.$ac_ext <<_ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h. */
23541 #include <sys/types.h>
23542 #include <sys/socket.h>
23543 #include <sys/time.h>
23549 #ifndef SOCK_CLOEXEC
23552 if ((s = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0)) == -1)
23561 rm -f conftest$ac_exeext
23562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23563 (eval $ac_link) 2>&5
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568 (eval $ac_try) 2>&5
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); }; }; then
23572 echo "$as_me:$LINENO: result: yes" >&5
23573 echo "${ECHO_T}yes" >&6
23574 cat >>confdefs.h <<\_ACEOF
23575 #define USE_SOCK_CLOEXEC 1
23580 echo "$as_me: program exited with status $ac_status" >&5
23581 echo "$as_me: failed program was:" >&5
23582 sed 's/^/| /' conftest.$ac_ext >&5
23584 ( exit $ac_status )
23585 echo "$as_me:$LINENO: result: no" >&5
23586 echo "${ECHO_T}no" >&6
23589 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23594 for ac_header in poll.h
23596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23598 echo "$as_me:$LINENO: checking for $ac_header" >&5
23599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23601 echo $ECHO_N "(cached) $ECHO_C" >&6
23603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23606 # Is the header compilable?
23607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23609 cat >conftest.$ac_ext <<_ACEOF
23612 cat confdefs.h >>conftest.$ac_ext
23613 cat >>conftest.$ac_ext <<_ACEOF
23614 /* end confdefs.h. */
23615 $ac_includes_default
23616 #include <$ac_header>
23618 rm -f conftest.$ac_objext
23619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23620 (eval $ac_compile) 2>conftest.er1
23622 grep -v '^ *+' conftest.er1 >conftest.err
23624 cat conftest.err >&5
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); } &&
23627 { ac_try='test -z "$ac_c_werror_flag"
23628 || test ! -s conftest.err'
23629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630 (eval $ac_try) 2>&5
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); }; } &&
23634 { ac_try='test -s conftest.$ac_objext'
23635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636 (eval $ac_try) 2>&5
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); }; }; then
23640 ac_header_compiler=yes
23642 echo "$as_me: failed program was:" >&5
23643 sed 's/^/| /' conftest.$ac_ext >&5
23645 ac_header_compiler=no
23647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23649 echo "${ECHO_T}$ac_header_compiler" >&6
23651 # Is the header present?
23652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23654 cat >conftest.$ac_ext <<_ACEOF
23657 cat confdefs.h >>conftest.$ac_ext
23658 cat >>conftest.$ac_ext <<_ACEOF
23659 /* end confdefs.h. */
23660 #include <$ac_header>
23662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23665 grep -v '^ *+' conftest.er1 >conftest.err
23667 cat conftest.err >&5
23668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669 (exit $ac_status); } >/dev/null; then
23670 if test -s conftest.err; then
23671 ac_cpp_err=$ac_c_preproc_warn_flag
23672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23679 if test -z "$ac_cpp_err"; then
23680 ac_header_preproc=yes
23682 echo "$as_me: failed program was:" >&5
23683 sed 's/^/| /' conftest.$ac_ext >&5
23685 ac_header_preproc=no
23687 rm -f conftest.err conftest.$ac_ext
23688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23689 echo "${ECHO_T}$ac_header_preproc" >&6
23691 # So? What about this header?
23692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23698 ac_header_preproc=yes
23701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23715 ## ------------------------------------------ ##
23716 ## Report this to the AC_PACKAGE_NAME lists. ##
23717 ## ------------------------------------------ ##
23720 sed "s/^/$as_me: WARNING: /" >&2
23723 echo "$as_me:$LINENO: checking for $ac_header" >&5
23724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23726 echo $ECHO_N "(cached) $ECHO_C" >&6
23728 eval "$as_ac_Header=\$ac_header_preproc"
23730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23735 cat >>confdefs.h <<_ACEOF
23736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23743 echo "$as_me:$LINENO: checking for poll" >&5
23744 echo $ECHO_N "checking for poll... $ECHO_C" >&6
23745 if test "${ac_cv_func_poll+set}" = set; then
23746 echo $ECHO_N "(cached) $ECHO_C" >&6
23748 cat >conftest.$ac_ext <<_ACEOF
23751 cat confdefs.h >>conftest.$ac_ext
23752 cat >>conftest.$ac_ext <<_ACEOF
23753 /* end confdefs.h. */
23754 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
23755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23756 #define poll innocuous_poll
23758 /* System header to define __stub macros and hopefully few prototypes,
23759 which can conflict with char poll (); below.
23760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23761 <limits.h> exists even on freestanding compilers. */
23764 # include <limits.h>
23766 # include <assert.h>
23771 /* Override any gcc2 internal prototype to avoid an error. */
23776 /* We use char because int might match the return type of a gcc2
23777 builtin and then its argument prototype would still apply. */
23779 /* The GNU C library defines this for functions which it implements
23780 to always fail with ENOSYS. Some functions are actually named
23781 something starting with __ and the normal name is an alias. */
23782 #if defined (__stub_poll) || defined (__stub___poll)
23785 char (*f) () = poll;
23799 rm -f conftest.$ac_objext conftest$ac_exeext
23800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23801 (eval $ac_link) 2>conftest.er1
23803 grep -v '^ *+' conftest.er1 >conftest.err
23805 cat conftest.err >&5
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); } &&
23808 { ac_try='test -z "$ac_c_werror_flag"
23809 || test ! -s conftest.err'
23810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23811 (eval $ac_try) 2>&5
23813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814 (exit $ac_status); }; } &&
23815 { ac_try='test -s conftest$ac_exeext'
23816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23817 (eval $ac_try) 2>&5
23819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); }; }; then
23821 ac_cv_func_poll=yes
23823 echo "$as_me: failed program was:" >&5
23824 sed 's/^/| /' conftest.$ac_ext >&5
23828 rm -f conftest.err conftest.$ac_objext \
23829 conftest$ac_exeext conftest.$ac_ext
23831 echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
23832 echo "${ECHO_T}$ac_cv_func_poll" >&6
23833 if test $ac_cv_func_poll = yes; then
23835 cat >>confdefs.h <<\_ACEOF
23836 #define HAVE_POLL 1
23844 echo "$as_me:$LINENO: checking for target platform" >&5
23845 echo $ECHO_N "checking for target platform... $ECHO_C" >&6
23847 #PLATFORM=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`
23850 case "$PLATFORM" in
23853 OS_APACHE_DIR=$OS_APACHE
23857 OS_APACHE_DIR=$OS_APACHE
23861 OS_APACHE_DIR=bs2000 # only the OS_APACHE_DIR is platform specific.
23865 OS_APACHE_DIR=$OS_APACHE;;
23868 echo "$as_me:$LINENO: result: $OS_APACHE" >&5
23869 echo "${ECHO_T}$OS_APACHE" >&6
23873 apache_dir_is_src="false"
23875 # Check whether --with-apache or --without-apache was given.
23876 if test "${with_apache+set}" = set; then
23877 withval="$with_apache"
23879 if ${TEST} ! -z "$WEBSERVER" ; then
23880 { { echo "$as_me:$LINENO: error: Sorry cannot use --with-apxs=${APXS} and --with-apache=${withval} together, please choose one of both" >&5
23881 echo "$as_me: error: Sorry cannot use --with-apxs=${APXS} and --with-apache=${withval} together, please choose one of both" >&2;}
23882 { (exit 1); exit 1; }; }
23885 echo "$as_me:$LINENO: checking for Apache source directory (assume static build)" >&5
23886 echo $ECHO_N "checking for Apache source directory (assume static build)... $ECHO_C" >&6
23888 if ${TEST} -n "${withval}" && ${TEST} -d "${withval}" ; then
23889 if ${TEST} -d "${withval}/src" ; then
23890 # handle the case where people use relative paths to
23891 # the apache source directory by pre-pending the current
23892 # build directory to the path. there are probably
23893 # errors with this if configure is run while in a
23894 # different directory than what you are in at the time
23895 if ${TEST} -n "`${ECHO} ${withval}|${GREP} \"^\.\.\"`" ; then
23896 withval=`pwd`/${withval}
23899 apache_dir=${withval}
23900 apache_dir_is_src="true"
23901 echo "$as_me:$LINENO: result: ${apache_dir}" >&5
23902 echo "${ECHO_T}${apache_dir}" >&6
23904 echo "$as_me:$LINENO: checking for Apache include directory" >&5
23905 echo $ECHO_N "checking for Apache include directory... $ECHO_C" >&6
23907 if ${TEST} -d "${withval}/src/include" ; then
23908 # read osdir from the existing apache.
23909 osdir=`${GREP} '^OSDIR=' ${withval}/src/Makefile.config | ${SED} -e 's:^OSDIR=.*/os:os:'`
23910 if ${TEST} -z "${osdir}" ; then
23913 apache_include="-I${withval}/src/include \
23914 -I${withval}/src/${osdir}"
23915 WEBSERVER="apache-1.3"
23916 LIB_JK_TYPE=mod_jk.a
23917 CFLAGS="${CFLAGS} -DJK_PREFORK"
23918 echo "$as_me:$LINENO: result: ${apache_include}, version 1.3" >&5
23919 echo "${ECHO_T}${apache_include}, version 1.3" >&6
23921 { { echo "$as_me:$LINENO: error: Sorry Apache 1.2.x is no longer supported." >&5
23922 echo "$as_me: error: Sorry Apache 1.2.x is no longer supported." >&2;}
23923 { (exit 1); exit 1; }; }
23926 if ${TEST} -d "${withval}/include" ; then
23927 # osdir for Apache20.
23928 WEBSERVER="apache-2.0"
23929 apache_dir=${withval}
23930 apache_dir_is_src="true"
23931 LIB_JK_TYPE=lib_jk.la
23932 apache_include="-I${withval}/include -I${withval}/srclib/apr/include -I${withval}/os/${OS_APACHE_DIR} -I${withval}/srclib/apr-util/include"
23933 echo "$as_me:$LINENO: result: ${apache_dir}" >&5
23934 echo "${ECHO_T}${apache_dir}" >&6
23939 if ${TEST} -z "$WEBSERVER" ; then
23940 { { echo "$as_me:$LINENO: error: Directory $apache_dir is not a valid Apache source distribution" >&5
23941 echo "$as_me: error: Directory $apache_dir is not a valid Apache source distribution" >&2;}
23942 { (exit 1); exit 1; }; }
23945 # VT: Now, which one I'm supposed to use? Let's figure it out later
23947 configure_apache=true
23950 echo "$as_me:$LINENO: result: building connector for \"$WEBSERVER\"" >&5
23951 echo "${ECHO_T}building connector for \"$WEBSERVER\"" >&6
23955 echo "$as_me:$LINENO: result: no apache given" >&5
23956 echo "${ECHO_T}no apache given" >&6
23961 APACHE_DIR=${apache_dir}
23964 # Check whether --enable-netscape or --disable-netscape was given.
23965 if test "${enable_netscape+set}" = set; then
23966 enableval="$enable_netscape"
23968 if ${TEST} ! -z "$WEBSERVER" ; then
23969 { { echo "$as_me:$LINENO: error: Sorry cannot use --with-apxs=${APXS} or --with-apache=${withval} with --with-netscape, please choose one or the other." >&5
23970 echo "$as_me: error: Sorry cannot use --with-apxs=${APXS} or --with-apache=${withval} with --with-netscape, please choose one or the other." >&2;}
23971 { (exit 1); exit 1; }; }
23974 WEBSERVER="netscape"
23976 echo "$as_me:$LINENO: result: building connector for \"$WEBSERVER\"" >&5
23977 echo "${ECHO_T}building connector for \"$WEBSERVER\"" >&6
23981 echo "$as_me:$LINENO: result: no netscape given" >&5
23982 echo "${ECHO_T}no netscape given" >&6
23987 # Check whether --enable-jni or --disable-jni was given.
23988 if test "${enable_jni+set}" = set; then
23989 enableval="$enable_jni"
23991 echo "$as_me:$LINENO: result: jni enable (need JDK)" >&5
23992 echo "${ECHO_T}jni enable (need JDK)" >&6
23993 CFLAGS="${CFLAGS} -DHAVE_JNI"
23994 JK_JNI_WORKER="\${JK}jk_jni_worker\${OEXT}"
24000 # Check whether --enable-EAPI or --disable-EAPI was given.
24001 if test "${enable_EAPI+set}" = set; then
24002 enableval="$enable_EAPI"
24004 case "${enableval}" in
24005 y | Y | YES | yes | TRUE | true )
24006 CFLAGS="${CFLAGS} -DEAPI"
24007 echo "$as_me:$LINENO: result: ...Enabling EAPI Support..." >&5
24008 echo "${ECHO_T}...Enabling EAPI Support..." >&6
24016 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
24017 if test "${enable_maintainer_mode+set}" = set; then
24018 enableval="$enable_maintainer_mode"
24020 case "${enableval}" in
24021 y | Y | YES | yes | TRUE | true )
24022 CFLAGS="${CFLAGS} -DDEBUG -Wall"
24023 echo "$as_me:$LINENO: result: ...Enabling Maintainer mode..." >&5
24024 echo "${ECHO_T}...Enabling Maintainer mode..." >&6
24032 # Check whether --enable-prefork or --disable-prefork was given.
24033 if test "${enable_prefork+set}" = set; then
24034 enableval="$enable_prefork"
24036 case "${enableval}" in
24037 y | Y | YES | yes | TRUE | true )
24038 CFLAGS="${CFLAGS} -DJK_PREFORK"
24039 echo "$as_me:$LINENO: result: ...Enabling Prefork mode..." >&5
24040 echo "${ECHO_T}...Enabling Prefork mode..." >&6
24048 # Check whether --enable-trace or --disable-trace was given.
24049 if test "${enable_trace+set}" = set; then
24050 enableval="$enable_trace"
24052 case "${enableval}" in
24054 CFLAGS="${CFLAGS} -DJK_PRODUCTION"
24055 echo "$as_me:$LINENO: result: ...Exclude trace log code..." >&5
24056 echo "${ECHO_T}...Exclude trace log code..." >&6
24064 # Check whether --enable-api-compatibility or --disable-api-compatibility was given.
24065 if test "${enable_api_compatibility+set}" = set; then
24066 enableval="$enable_api_compatibility"
24068 case "${enableval}" in
24069 y | Y | YES | yes | TRUE | true )
24070 CFLAGS="${CFLAGS} -DAPI_COMPATIBILITY"
24071 echo "$as_me:$LINENO: result: ...Only using compatible httpd API..." >&5
24072 echo "${ECHO_T}...Only using compatible httpd API..." >&6
24080 # Check whether --enable-flock or --disable-flock was given.
24081 if test "${enable_flock+set}" = set; then
24082 enableval="$enable_flock"
24084 case "${enableval}" in
24085 y | Y | YES | yes | TRUE | true )
24086 CFLAGS="${CFLAGS} -DJK_USE_FLOCK"
24087 echo "$as_me:$LINENO: result: ...Enabling flock() shared memory locking..." >&5
24088 echo "${ECHO_T}...Enabling flock() shared memory locking..." >&6
24095 if ${TEST} -n "${CFLAGS}" ; then
24096 APXSCFLAGS="${APXSCFLAGS} ${CFLAGS}"
24101 if ${TEST} -n "${LDFLAGS}" ; then
24102 APXSLDFLAGS="${APXSLDFLAGS} ${LDFLAGS}"
24108 for i in $APXSLDFLAGS; do
24111 jk_new_val="$jk_new_val $i"
24114 jk_new_val="$jk_new_val -Wl,$i"
24119 if test $jk_val_changed = "1"; then
24120 { echo "$as_me:$LINENO: tokens in APXSLDFLAGS have been prefixed with '-Wl,'" >&5
24121 echo "$as_me: tokens in APXSLDFLAGS have been prefixed with '-Wl,'" >&6;}
24122 APXSLDFLAGS=$jk_new_val
24128 if ${TEST} -n "${JK_JNI_WORKER}" ; then
24130 WEBSERVER="jni ${WEBSERVER}"
24133 echo "$as_me:$LINENO: checking for JDK location (please wait)" >&5
24134 echo $ECHO_N "checking for JDK location (please wait)... $ECHO_C" >&6
24138 if ${TEST} -n "${JAVA_HOME}" ; then
24139 JAVA_HOME_ENV="${JAVA_HOME}"
24147 # Check whether --with-java-home or --without-java-home was given.
24148 if test "${with_java_home+set}" = set; then
24149 withval="$with_java_home"
24152 # This stuff works if the command line parameter --with-java-home was
24153 # specified, so it takes priority rightfully.
24155 JAVA_HOME=${withval}
24157 if ${TEST} ! -d "${JAVA_HOME}" ; then
24158 { { echo "$as_me:$LINENO: error: Not a directory: ${JAVA_HOME}" >&5
24159 echo "$as_me: error: Not a directory: ${JAVA_HOME}" >&2;}
24160 { (exit 1); exit 1; }; }
24163 echo "$as_me:$LINENO: result: ${JAVA_HOME}" >&5
24164 echo "${ECHO_T}${JAVA_HOME}" >&6
24169 # This works if the parameter was NOT specified, so it's a good time
24170 # to see what the enviroment says.
24172 # Since Sun uses JAVA_HOME a lot, we check it first and ignore the
24173 # JAVA_HOME, otherwise just use whatever JAVA_HOME was specified.
24175 if ${TEST} -n "${JAVA_HOME_ENV}" ; then
24177 JAVA_HOME=${JAVA_HOME_ENV}
24178 echo "$as_me:$LINENO: result: ${JAVA_HOME_ENV} from environment" >&5
24179 echo "${ECHO_T}${JAVA_HOME_ENV} from environment" >&6
24184 if ${TEST} -z "${JAVA_HOME}" ; then
24186 # Oh well, nobody set neither JAVA_HOME nor JAVA_HOME, have to guess
24188 # The following code is based on the code submitted by Henner Zeller
24189 # for ${srcdir}/src/scripts/package/rpm/ApacheJServ.spec
24191 # Two variables will be set as a result:
24195 echo "$as_me:$LINENO: checking Try to guess JDK location" >&5
24196 echo $ECHO_N "checking Try to guess JDK location... $ECHO_C" >&6
24199 for JAVA_PREFIX in \
24207 for JAVA_PLATFORM in 3 2 1 ;
24210 for subversion in .9 .8 .7 .6 .5 .4 .3 .2 .1 "" ;
24212 for VARIANT in IBMJava2- java java- jdk jdk-;
24214 GUESS="${JAVA_PREFIX}/${VARIANT}1.${JAVA_PLATFORM}${subversion}"
24215 if ${TEST} -d "${GUESS}/bin" \
24216 && ${TEST} -d "${GUESS}/include" ; then
24218 JAVA_HOME="${GUESS}"
24219 echo "$as_me:$LINENO: result: ${GUESS}" >&5
24220 echo "${ECHO_T}${GUESS}" >&6
24226 if ${TEST} -n "${JAVA_HOME}" ; then
24232 if ${TEST} -n "${JAVA_HOME}" ; then
24238 if ${TEST} -n "${JAVA_HOME}" ; then
24244 if ${TEST} -n "${JAVA_HOME}" ; then
24247 echo "$as_me:$LINENO: checking Java platform" >&5
24248 echo $ECHO_N "checking Java platform... $ECHO_C" >&6
24249 echo "$as_me:$LINENO: result: guess ${JAVA_PLATFORM}" >&5
24250 echo "${ECHO_T}guess ${JAVA_PLATFORM}" >&6
24256 echo "$as_me:$LINENO: checking Java platform" >&5
24257 echo $ECHO_N "checking Java platform... $ECHO_C" >&6
24260 # Check whether --with-java-platform or --without-java-platform was given.
24261 if test "${with_java_platform+set}" = set; then
24262 withval="$with_java_platform"
24269 echo "$as_me:$LINENO: result: forced Java ${JAVA_PLATFORM}" >&5
24270 echo "${ECHO_T}forced Java ${JAVA_PLATFORM}" >&6
24274 if ${TEST} -z "${JAVA_HOME}" ; then
24275 { { echo "$as_me:$LINENO: error: JDK home not found, please specify one with --with-java-home option (run ./configure --help for more options)" >&5
24276 echo "$as_me: error: JDK home not found, please specify one with --with-java-home option (run ./configure --help for more options)" >&2;}
24277 { (exit 1); exit 1; }; }
24282 # Check whether --with-os-type or --without-os-type was given.
24283 if test "${with_os_type+set}" = set; then
24284 withval="$with_os_type"
24288 if ${TEST} ! -d "${JAVA_HOME}/${OS}" ; then
24289 { { echo "$as_me:$LINENO: error: Not a directory: ${JAVA_HOME}/${OS}" >&5
24290 echo "$as_me: error: Not a directory: ${JAVA_HOME}/${OS}" >&2;}
24291 { (exit 1); exit 1; }; }
24296 echo "$as_me:$LINENO: checking os_type directory" >&5
24297 echo $ECHO_N "checking os_type directory... $ECHO_C" >&6
24298 if ${TEST} -f ${JAVA_HOME}/include/jni_md.h; then
24301 for f in ${JAVA_HOME}/include/*/jni_md.h; do
24302 if ${TEST} -f $f; then
24304 OS=`basename ${OS}`
24308 if ${TEST} -z "${OS}"; then
24309 echo "$as_me:$LINENO: result: Cannot find jni_md.h in ${JAVA_HOME}/${OS}" >&5
24310 echo "${ECHO_T}Cannot find jni_md.h in ${JAVA_HOME}/${OS}" >&6
24311 { { echo "$as_me:$LINENO: error: You should retry --with-os-type=SUBDIR" >&5
24312 echo "$as_me: error: You should retry --with-os-type=SUBDIR" >&2;}
24313 { (exit 1); exit 1; }; }
24323 if ${TEST} -z "$WEBSERVER" ; then
24324 { { echo "$as_me:$LINENO: error: Cannot find the WebServer" >&5
24325 echo "$as_me: error: Cannot find the WebServer" >&2;}
24326 { (exit 1); exit 1; }; }
24329 WEBSERVER="common ${WEBSERVER}"
24335 if ${TEST} "${apache_dir_is_src}" = "false"; then
24336 MAKE_DYNAMIC_APACHE_TRUE=
24337 MAKE_DYNAMIC_APACHE_FALSE='#'
24339 MAKE_DYNAMIC_APACHE_TRUE='#'
24340 MAKE_DYNAMIC_APACHE_FALSE=
24344 if ${TEST} "${apache_dir_is_src}" = "false" ; then
24346 LIB_JK_TYPE=mod_jk.so
24347 INSTALL_TYPE=install_dynamic
24350 INSTALL_TYPE=install_static
24356 ac_config_files="$ac_config_files Makefile apache-1.3/Makefile apache-1.3/Makefile.apxs apache-2.0/Makefile apache-2.0/Makefile.apxs common/Makefile common/list.mk common/jk_types.h jni/Makefile"
24357 cat >confcache <<\_ACEOF
24358 # This file is a shell script that caches the results of configure
24359 # tests run on this system so they can be shared between configure
24360 # scripts and configure runs, see configure's option --config-cache.
24361 # It is not useful on other systems. If it contains results you don't
24362 # want to keep, you may remove or edit it.
24364 # config.status only pays attention to the cache file if you give it
24365 # the --recheck option to rerun configure.
24367 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24368 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24369 # following values.
24373 # The following way of writing the cache mishandles newlines in values,
24374 # but we know of no workaround that is simple, portable, and efficient.
24375 # So, don't put newlines in cache variables' values.
24376 # Ultrix sh set writes to stderr and can't be redirected directly,
24377 # and sets the high bit in the cache file unless we assign to the vars.
24380 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24382 # `set' does not quote correctly, so add quotes (double-quote
24383 # substitution turns \\\\ into \\, and sed turns \\ into \).
24386 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24389 # `set' quotes correctly as required by POSIX, so do not add quotes.
24391 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24398 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24400 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24402 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24403 if test -w $cache_file; then
24404 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24405 cat confcache >$cache_file
24407 echo "not updating unwritable cache $cache_file"
24412 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24413 # Let make expand exec_prefix.
24414 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24416 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24417 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24418 # trailing colons and then remove the whole line if VPATH becomes empty
24419 # (actually we leave an empty line to preserve line numbers).
24420 if test "x$srcdir" = x.; then
24421 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24422 s/:*\$(srcdir):*/:/;
24423 s/:*\${srcdir}:*/:/;
24425 s/^\([^=]*=[ ]*\):*/\1/;
24431 DEFS=-DHAVE_CONFIG_H
24435 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24436 # 1. Remove the extension, and $U if already installed.
24437 ac_i=`echo "$ac_i" |
24438 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24440 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24441 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24443 LIBOBJS=$ac_libobjs
24445 LTLIBOBJS=$ac_ltlibobjs
24448 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24449 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24450 Usually this means the macro was only invoked conditionally." >&5
24451 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24452 Usually this means the macro was only invoked conditionally." >&2;}
24453 { (exit 1); exit 1; }; }
24455 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24456 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24457 Usually this means the macro was only invoked conditionally." >&5
24458 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24459 Usually this means the macro was only invoked conditionally." >&2;}
24460 { (exit 1); exit 1; }; }
24462 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24463 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24464 Usually this means the macro was only invoked conditionally." >&5
24465 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24466 Usually this means the macro was only invoked conditionally." >&2;}
24467 { (exit 1); exit 1; }; }
24469 if test -z "${MAKE_DYNAMIC_APACHE_TRUE}" && test -z "${MAKE_DYNAMIC_APACHE_FALSE}"; then
24470 { { echo "$as_me:$LINENO: error: conditional \"MAKE_DYNAMIC_APACHE\" was never defined.
24471 Usually this means the macro was only invoked conditionally." >&5
24472 echo "$as_me: error: conditional \"MAKE_DYNAMIC_APACHE\" was never defined.
24473 Usually this means the macro was only invoked conditionally." >&2;}
24474 { (exit 1); exit 1; }; }
24477 : ${CONFIG_STATUS=./config.status}
24478 ac_clean_files_save=$ac_clean_files
24479 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24480 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24481 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24482 cat >$CONFIG_STATUS <<_ACEOF
24484 # Generated by $as_me.
24485 # Run this file to recreate the current configuration.
24486 # Compiler output produced by configure, useful for debugging
24487 # configure, is in config.log if it exists.
24490 ac_cs_recheck=false
24492 SHELL=\${CONFIG_SHELL-$SHELL}
24495 cat >>$CONFIG_STATUS <<\_ACEOF
24496 ## --------------------- ##
24497 ## M4sh Initialization. ##
24498 ## --------------------- ##
24500 # Be Bourne compatible
24501 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24504 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24505 # is contrary to our usage. Disable this feature.
24506 alias -g '${1+"$@"}'='"$@"'
24507 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24510 DUALCASE=1; export DUALCASE # for MKS sh
24512 # Support unset when possible.
24513 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24520 # Work around bugs in pre-3.0 UWIN ksh.
24521 $as_unset ENV MAIL MAILPATH
24528 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24529 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24530 LC_TELEPHONE LC_TIME
24532 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24533 eval $as_var=C; export $as_var
24539 # Required to use basename.
24540 if expr a : '\(a\)' >/dev/null 2>&1; then
24546 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24547 as_basename=basename
24553 # Name of the executable.
24554 as_me=`$as_basename "$0" ||
24555 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24556 X"$0" : 'X\(//\)$' \| \
24557 X"$0" : 'X\(/\)$' \| \
24558 . : '\(.\)' 2>/dev/null ||
24560 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24561 /^X\/\(\/\/\)$/{ s//\1/; q; }
24562 /^X\/\(\/\).*/{ s//\1/; q; }
24566 # PATH needs CR, and LINENO needs CR and PATH.
24567 # Avoid depending upon Character Ranges.
24568 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24569 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24570 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24571 as_cr_digits='0123456789'
24572 as_cr_alnum=$as_cr_Letters$as_cr_digits
24574 # The user is always right.
24575 if test "${PATH_SEPARATOR+set}" != set; then
24576 echo "#! /bin/sh" >conf$$.sh
24577 echo "exit 0" >>conf$$.sh
24579 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24588 as_lineno_1=$LINENO
24589 as_lineno_2=$LINENO
24590 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24591 test "x$as_lineno_1" != "x$as_lineno_2" &&
24592 test "x$as_lineno_3" = "x$as_lineno_2" || {
24593 # Find who we are. Look in the path if we contain no path at all
24596 *[\\/]* ) as_myself=$0 ;;
24597 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24598 for as_dir in $PATH
24601 test -z "$as_dir" && as_dir=.
24602 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24607 # We did not find ourselves, most probably we were run as `sh COMMAND'
24608 # in which case we are not to be found in the path.
24609 if test "x$as_myself" = x; then
24612 if test ! -f "$as_myself"; then
24613 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24614 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24615 { (exit 1); exit 1; }; }
24617 case $CONFIG_SHELL in
24619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24620 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24623 test -z "$as_dir" && as_dir=.
24624 for as_base in sh bash ksh sh5; do
24627 if ("$as_dir/$as_base" -c '
24628 as_lineno_1=$LINENO
24629 as_lineno_2=$LINENO
24630 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24631 test "x$as_lineno_1" != "x$as_lineno_2" &&
24632 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24633 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24634 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24635 CONFIG_SHELL=$as_dir/$as_base
24636 export CONFIG_SHELL
24637 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24645 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24646 # uniformly replaced by the line number. The first 'sed' inserts a
24647 # line-number line before each line; the second 'sed' does the real
24648 # work. The second script uses 'N' to pair each line-number line
24649 # with the numbered line, and appends trailing '-' during
24650 # substitution so that $LINENO is not a special case at line end.
24651 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24652 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24653 sed '=' <$as_myself |
24658 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24661 s,^['$as_cr_digits']*\n,,
24662 ' >$as_me.lineno &&
24663 chmod +x $as_me.lineno ||
24664 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24665 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24666 { (exit 1); exit 1; }; }
24668 # Don't try to exec as it changes $[0], causing all sort of problems
24669 # (the dirname of $[0] is not the place where we might find the
24670 # original and so on. Autoconf is especially sensible to this).
24672 # Exit status is that of the last command.
24677 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24678 *c*,-n*) ECHO_N= ECHO_C='
24680 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24681 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24684 if expr a : '\(a\)' >/dev/null 2>&1; then
24690 rm -f conf$$ conf$$.exe conf$$.file
24692 if ln -s conf$$.file conf$$ 2>/dev/null; then
24693 # We could just check for DJGPP; but this test a) works b) is more generic
24694 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24695 if test -f conf$$.exe; then
24696 # Don't use ln at all; we don't have any links
24701 elif ln conf$$.file conf$$ 2>/dev/null; then
24706 rm -f conf$$ conf$$.exe conf$$.file
24708 if mkdir -p . 2>/dev/null; then
24711 test -d ./-p && rmdir ./-p
24715 as_executable_p="test -f"
24717 # Sed expression to map a string onto a valid CPP name.
24718 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24720 # Sed expression to map a string onto a valid variable name.
24721 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24725 # We need space, tab and new line, in precisely that order.
24735 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24736 # report actual input values of CONFIG_FILES etc. instead of their
24737 # values after options handling. Logging --version etc. is OK.
24741 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24742 ## Running $as_me. ##
24747 This file was extended by $as_me, which was
24748 generated by GNU Autoconf 2.59. Invocation command line was
24750 CONFIG_FILES = $CONFIG_FILES
24751 CONFIG_HEADERS = $CONFIG_HEADERS
24752 CONFIG_LINKS = $CONFIG_LINKS
24753 CONFIG_COMMANDS = $CONFIG_COMMANDS
24757 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24761 # Files that config.status was made for.
24762 if test -n "$ac_config_files"; then
24763 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24766 if test -n "$ac_config_headers"; then
24767 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24770 if test -n "$ac_config_links"; then
24771 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24774 if test -n "$ac_config_commands"; then
24775 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24778 cat >>$CONFIG_STATUS <<\_ACEOF
24781 \`$as_me' instantiates files from templates according to the
24782 current configuration.
24784 Usage: $0 [OPTIONS] [FILE]...
24786 -h, --help print this help, then exit
24787 -V, --version print version number, then exit
24788 -q, --quiet do not print progress messages
24789 -d, --debug don't remove temporary files
24790 --recheck update $as_me by reconfiguring in the same conditions
24791 --file=FILE[:TEMPLATE]
24792 instantiate the configuration file FILE
24793 --header=FILE[:TEMPLATE]
24794 instantiate the configuration header FILE
24796 Configuration files:
24799 Configuration headers:
24802 Configuration commands:
24805 Report bugs to <bug-autoconf@gnu.org>."
24808 cat >>$CONFIG_STATUS <<_ACEOF
24811 configured by $0, generated by GNU Autoconf 2.59,
24812 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24814 Copyright (C) 2003 Free Software Foundation, Inc.
24815 This config.status script is free software; the Free Software Foundation
24816 gives unlimited permission to copy, distribute and modify it."
24821 cat >>$CONFIG_STATUS <<\_ACEOF
24822 # If no file are specified by the user, then we need to provide default
24823 # value. By we need to know if files were specified by the user.
24829 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24830 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24838 *) # This is not an option, so the user has probably given explicit
24841 ac_need_defaults=false;;
24845 # Handling of the options.
24847 cat >>$CONFIG_STATUS <<\_ACEOF
24848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24850 --version | --vers* | -V )
24851 echo "$ac_cs_version"; exit 0 ;;
24853 # Conflict between --help and --header
24854 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24855 Try \`$0 --help' for more information." >&5
24856 echo "$as_me: error: ambiguous option: $1
24857 Try \`$0 --help' for more information." >&2;}
24858 { (exit 1); exit 1; }; };;
24859 --help | --hel | -h )
24860 echo "$ac_cs_usage"; exit 0 ;;
24861 --debug | --d* | -d )
24863 --file | --fil | --fi | --f )
24865 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24866 ac_need_defaults=false;;
24867 --header | --heade | --head | --hea )
24869 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24870 ac_need_defaults=false;;
24871 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24872 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24875 # This is an error.
24876 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24877 Try \`$0 --help' for more information." >&5
24878 echo "$as_me: error: unrecognized option: $1
24879 Try \`$0 --help' for more information." >&2;}
24880 { (exit 1); exit 1; }; } ;;
24882 *) ac_config_targets="$ac_config_targets $1" ;;
24888 ac_configure_extra_args=
24890 if $ac_cs_silent; then
24892 ac_configure_extra_args="$ac_configure_extra_args --silent"
24896 cat >>$CONFIG_STATUS <<_ACEOF
24897 if \$ac_cs_recheck; then
24898 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24899 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24904 cat >>$CONFIG_STATUS <<_ACEOF
24906 # INIT-COMMANDS section.
24909 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24915 cat >>$CONFIG_STATUS <<\_ACEOF
24916 for ac_config_target in $ac_config_targets
24918 case "$ac_config_target" in
24919 # Handling of arguments.
24920 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24921 "apache-1.3/Makefile" ) CONFIG_FILES="$CONFIG_FILES apache-1.3/Makefile" ;;
24922 "apache-1.3/Makefile.apxs" ) CONFIG_FILES="$CONFIG_FILES apache-1.3/Makefile.apxs" ;;
24923 "apache-2.0/Makefile" ) CONFIG_FILES="$CONFIG_FILES apache-2.0/Makefile" ;;
24924 "apache-2.0/Makefile.apxs" ) CONFIG_FILES="$CONFIG_FILES apache-2.0/Makefile.apxs" ;;
24925 "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
24926 "common/list.mk" ) CONFIG_FILES="$CONFIG_FILES common/list.mk" ;;
24927 "common/jk_types.h" ) CONFIG_FILES="$CONFIG_FILES common/jk_types.h" ;;
24928 "jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
24929 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24930 "common/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS common/config.h" ;;
24931 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24932 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24933 { (exit 1); exit 1; }; };;
24937 # If the user did not use the arguments to specify the items to instantiate,
24938 # then the envvar interface is used. Set only those that are not.
24939 # We use the long form for the default assignment because of an extremely
24940 # bizarre bug on SunOS 4.1.3.
24941 if $ac_need_defaults; then
24942 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24943 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24944 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24947 # Have a temporary directory for convenience. Make it in the build tree
24948 # simply because there is no reason to put it here, and in addition,
24949 # creating and moving files from /tmp can sometimes cause problems.
24950 # Create a temporary directory, and hook for its removal unless debugging.
24953 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24954 trap '{ (exit 1); exit 1; }' 1 2 13 15
24957 # Create a (secure) tmp directory for tmp files.
24960 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24961 test -n "$tmp" && test -d "$tmp"
24964 tmp=./confstat$$-$RANDOM
24965 (umask 077 && mkdir $tmp)
24968 echo "$me: cannot create a temporary directory in ." >&2
24969 { (exit 1); exit 1; }
24974 cat >>$CONFIG_STATUS <<_ACEOF
24977 # CONFIG_FILES section.
24980 # No need to generate the scripts if there are no CONFIG_FILES.
24981 # This happens for instance when ./config.status config.h
24982 if test -n "\$CONFIG_FILES"; then
24983 # Protect against being on the right side of a sed subst in config.status.
24984 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24985 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24986 s,@SHELL@,$SHELL,;t t
24987 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24988 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24989 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24990 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24991 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24992 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24993 s,@exec_prefix@,$exec_prefix,;t t
24994 s,@prefix@,$prefix,;t t
24995 s,@program_transform_name@,$program_transform_name,;t t
24996 s,@bindir@,$bindir,;t t
24997 s,@sbindir@,$sbindir,;t t
24998 s,@libexecdir@,$libexecdir,;t t
24999 s,@datadir@,$datadir,;t t
25000 s,@sysconfdir@,$sysconfdir,;t t
25001 s,@sharedstatedir@,$sharedstatedir,;t t
25002 s,@localstatedir@,$localstatedir,;t t
25003 s,@libdir@,$libdir,;t t
25004 s,@includedir@,$includedir,;t t
25005 s,@oldincludedir@,$oldincludedir,;t t
25006 s,@infodir@,$infodir,;t t
25007 s,@mandir@,$mandir,;t t
25008 s,@build_alias@,$build_alias,;t t
25009 s,@host_alias@,$host_alias,;t t
25010 s,@target_alias@,$target_alias,;t t
25011 s,@DEFS@,$DEFS,;t t
25012 s,@ECHO_C@,$ECHO_C,;t t
25013 s,@ECHO_N@,$ECHO_N,;t t
25014 s,@ECHO_T@,$ECHO_T,;t t
25015 s,@LIBS@,$LIBS,;t t
25016 s,@build@,$build,;t t
25017 s,@build_cpu@,$build_cpu,;t t
25018 s,@build_vendor@,$build_vendor,;t t
25019 s,@build_os@,$build_os,;t t
25020 s,@host@,$host,;t t
25021 s,@host_cpu@,$host_cpu,;t t
25022 s,@host_vendor@,$host_vendor,;t t
25023 s,@host_os@,$host_os,;t t
25024 s,@target@,$target,;t t
25025 s,@target_cpu@,$target_cpu,;t t
25026 s,@target_vendor@,$target_vendor,;t t
25027 s,@target_os@,$target_os,;t t
25028 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25029 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25030 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25031 s,@CYGPATH_W@,$CYGPATH_W,;t t
25032 s,@PACKAGE@,$PACKAGE,;t t
25033 s,@VERSION@,$VERSION,;t t
25034 s,@ACLOCAL@,$ACLOCAL,;t t
25035 s,@AUTOCONF@,$AUTOCONF,;t t
25036 s,@AUTOMAKE@,$AUTOMAKE,;t t
25037 s,@AUTOHEADER@,$AUTOHEADER,;t t
25038 s,@MAKEINFO@,$MAKEINFO,;t t
25039 s,@install_sh@,$install_sh,;t t
25040 s,@STRIP@,$STRIP,;t t
25041 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25042 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
25043 s,@mkdir_p@,$mkdir_p,;t t
25045 s,@SET_MAKE@,$SET_MAKE,;t t
25046 s,@am__leading_dot@,$am__leading_dot,;t t
25047 s,@AMTAR@,$AMTAR,;t t
25048 s,@am__tar@,$am__tar,;t t
25049 s,@am__untar@,$am__untar,;t t
25050 s,@TEST@,$TEST,;t t
25052 s,@GREP@,$GREP,;t t
25053 s,@ECHO@,$ECHO,;t t
25056 s,@MKDIR@,$MKDIR,;t t
25057 s,@CFLAGS@,$CFLAGS,;t t
25058 s,@PERL@,$PERL,;t t
25059 s,@APXS@,$APXS,;t t
25060 s,@APACHE_CONFIG_VARS@,$APACHE_CONFIG_VARS,;t t
25062 s,@LDFLAGS@,$LDFLAGS,;t t
25063 s,@CPPFLAGS@,$CPPFLAGS,;t t
25064 s,@ac_ct_CC@,$ac_ct_CC,;t t
25065 s,@EXEEXT@,$EXEEXT,;t t
25066 s,@OBJEXT@,$OBJEXT,;t t
25067 s,@DEPDIR@,$DEPDIR,;t t
25068 s,@am__include@,$am__include,;t t
25069 s,@am__quote@,$am__quote,;t t
25070 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
25071 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
25072 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
25073 s,@CCDEPMODE@,$CCDEPMODE,;t t
25074 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
25075 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
25076 s,@EGREP@,$EGREP,;t t
25077 s,@LN_S@,$LN_S,;t t
25079 s,@ac_ct_AR@,$ac_ct_AR,;t t
25080 s,@RANLIB@,$RANLIB,;t t
25081 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25084 s,@CXXFLAGS@,$CXXFLAGS,;t t
25085 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25086 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
25087 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
25088 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
25089 s,@CXXCPP@,$CXXCPP,;t t
25091 s,@FFLAGS@,$FFLAGS,;t t
25092 s,@ac_ct_F77@,$ac_ct_F77,;t t
25093 s,@LIBTOOL@,$LIBTOOL,;t t
25094 s,@int32_value@,$int32_value,;t t
25095 s,@int32_t_fmt@,$int32_t_fmt,;t t
25096 s,@uint32_t_fmt@,$uint32_t_fmt,;t t
25097 s,@uint32_t_hex_fmt@,$uint32_t_hex_fmt,;t t
25098 s,@int64_value@,$int64_value,;t t
25099 s,@int64_t_fmt@,$int64_t_fmt,;t t
25100 s,@uint64_t_fmt@,$uint64_t_fmt,;t t
25101 s,@uint64_t_hex_fmt@,$uint64_t_hex_fmt,;t t
25102 s,@pid_t_fmt@,$pid_t_fmt,;t t
25103 s,@pthread_t_fmt@,$pthread_t_fmt,;t t
25104 s,@pthread_t_value@,$pthread_t_value,;t t
25105 s,@apache_include@,$apache_include,;t t
25106 s,@APACHE_DIR@,$APACHE_DIR,;t t
25107 s,@JK_JNI_WORKER@,$JK_JNI_WORKER,;t t
25108 s,@APXSCFLAGS@,$APXSCFLAGS,;t t
25109 s,@APXSCPPFLAGS@,$APXSCPPFLAGS,;t t
25110 s,@APXSLDFLAGS@,$APXSLDFLAGS,;t t
25111 s,@JAVA_HOME@,$JAVA_HOME,;t t
25113 s,@WEBSERVER@,$WEBSERVER,;t t
25114 s,@MAKE_DYNAMIC_APACHE_TRUE@,$MAKE_DYNAMIC_APACHE_TRUE,;t t
25115 s,@MAKE_DYNAMIC_APACHE_FALSE@,$MAKE_DYNAMIC_APACHE_FALSE,;t t
25116 s,@APACHE20_OEXT@,$APACHE20_OEXT,;t t
25117 s,@LIB_JK_TYPE@,$LIB_JK_TYPE,;t t
25118 s,@INSTALL_TYPE@,$INSTALL_TYPE,;t t
25119 s,@LIBOBJS@,$LIBOBJS,;t t
25120 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25125 cat >>$CONFIG_STATUS <<\_ACEOF
25126 # Split the substitutions into bite-sized pieces for seds with
25127 # small command number limits, like on Digital OSF/1 and HP-UX.
25128 ac_max_sed_lines=48
25129 ac_sed_frag=1 # Number of current file.
25130 ac_beg=1 # First line for current file.
25131 ac_end=$ac_max_sed_lines # Line after last line for current file.
25134 while $ac_more_lines; do
25135 if test $ac_beg -gt 1; then
25136 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25138 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25140 if test ! -s $tmp/subs.frag; then
25141 ac_more_lines=false
25143 # The purpose of the label and of the branching condition is to
25144 # speed up the sed processing (if there are no `@' at all, there
25145 # is no need to browse any of the substitutions).
25146 # These are the two extra sed commands mentioned above.
25148 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25149 if test -z "$ac_sed_cmds"; then
25150 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25152 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25154 ac_sed_frag=`expr $ac_sed_frag + 1`
25156 ac_end=`expr $ac_end + $ac_max_sed_lines`
25159 if test -z "$ac_sed_cmds"; then
25162 fi # test -n "$CONFIG_FILES"
25165 cat >>$CONFIG_STATUS <<\_ACEOF
25166 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25167 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25169 - | *:- | *:-:* ) # input from stdin
25171 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25172 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25173 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25174 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25175 * ) ac_file_in=$ac_file.in ;;
25178 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25179 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25180 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25181 X"$ac_file" : 'X\(//\)[^/]' \| \
25182 X"$ac_file" : 'X\(//\)$' \| \
25183 X"$ac_file" : 'X\(/\)' \| \
25184 . : '\(.\)' 2>/dev/null ||
25186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25187 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25188 /^X\(\/\/\)$/{ s//\1/; q; }
25189 /^X\(\/\).*/{ s//\1/; q; }
25191 { if $as_mkdir_p; then
25196 while test ! -d "$as_dir"; do
25197 as_dirs="$as_dir $as_dirs"
25198 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25199 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25200 X"$as_dir" : 'X\(//\)[^/]' \| \
25201 X"$as_dir" : 'X\(//\)$' \| \
25202 X"$as_dir" : 'X\(/\)' \| \
25203 . : '\(.\)' 2>/dev/null ||
25205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25206 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25207 /^X\(\/\/\)$/{ s//\1/; q; }
25208 /^X\(\/\).*/{ s//\1/; q; }
25211 test ! -n "$as_dirs" || mkdir $as_dirs
25212 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25213 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25214 { (exit 1); exit 1; }; }; }
25218 if test "$ac_dir" != .; then
25219 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25220 # A "../" for each directory in $ac_dir_suffix.
25221 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25223 ac_dir_suffix= ac_top_builddir=
25227 .) # No --srcdir option. We are building in place.
25229 if test -z "$ac_top_builddir"; then
25232 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25234 [\\/]* | ?:[\\/]* ) # Absolute path.
25235 ac_srcdir=$srcdir$ac_dir_suffix;
25236 ac_top_srcdir=$srcdir ;;
25237 *) # Relative path.
25238 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25239 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25242 # Do not use `cd foo && pwd` to compute absolute paths, because
25243 # the directories may not exist.
25245 .) ac_abs_builddir="$ac_dir";;
25248 .) ac_abs_builddir=`pwd`;;
25249 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25250 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25253 case $ac_abs_builddir in
25254 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25256 case ${ac_top_builddir}. in
25257 .) ac_abs_top_builddir=$ac_abs_builddir;;
25258 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25259 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25262 case $ac_abs_builddir in
25263 .) ac_abs_srcdir=$ac_srcdir;;
25266 .) ac_abs_srcdir=$ac_abs_builddir;;
25267 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25268 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25271 case $ac_abs_builddir in
25272 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25274 case $ac_top_srcdir in
25275 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25276 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25277 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25283 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25284 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25287 if test x"$ac_file" != x-; then
25288 { echo "$as_me:$LINENO: creating $ac_file" >&5
25289 echo "$as_me: creating $ac_file" >&6;}
25292 # Let's still pretend it is `configure' which instantiates (i.e., don't
25293 # use $as_me), people would be surprised to read:
25294 # /* config.h. Generated by config.status. */
25295 if test x"$ac_file" = x-; then
25298 configure_input="$ac_file. "
25300 configure_input=$configure_input"Generated from `echo $ac_file_in |
25301 sed 's,.*/,,'` by configure."
25303 # First look for the input files in the build tree, otherwise in the
25305 ac_file_inputs=`IFS=:
25306 for f in $ac_file_in; do
25308 -) echo $tmp/stdin ;;
25310 # Absolute (can't be DOS-style, as IFS=:)
25311 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25312 echo "$as_me: error: cannot find input file: $f" >&2;}
25313 { (exit 1); exit 1; }; }
25316 if test -f "$f"; then
25319 elif test -f "$srcdir/$f"; then
25324 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25325 echo "$as_me: error: cannot find input file: $f" >&2;}
25326 { (exit 1); exit 1; }; }
25329 done` || { (exit 1); exit 1; }
25331 cat >>$CONFIG_STATUS <<_ACEOF
25335 cat >>$CONFIG_STATUS <<\_ACEOF
25337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25338 s,@configure_input@,$configure_input,;t t
25339 s,@srcdir@,$ac_srcdir,;t t
25340 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25341 s,@top_srcdir@,$ac_top_srcdir,;t t
25342 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25343 s,@builddir@,$ac_builddir,;t t
25344 s,@abs_builddir@,$ac_abs_builddir,;t t
25345 s,@top_builddir@,$ac_top_builddir,;t t
25346 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25347 s,@INSTALL@,$ac_INSTALL,;t t
25348 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25350 if test x"$ac_file" != x-; then
25351 mv $tmp/out $ac_file
25359 cat >>$CONFIG_STATUS <<\_ACEOF
25362 # CONFIG_HEADER section.
25365 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25366 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25368 # ac_d sets the value in "#define NAME VALUE" lines.
25369 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25370 ac_dB='[ ].*$,\1#\2'
25373 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25374 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25375 ac_uB='$,\1#\2define\3'
25379 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25380 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25382 - | *:- | *:-:* ) # input from stdin
25384 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25385 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25386 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25387 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25388 * ) ac_file_in=$ac_file.in ;;
25391 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25392 echo "$as_me: creating $ac_file" >&6;}
25394 # First look for the input files in the build tree, otherwise in the
25396 ac_file_inputs=`IFS=:
25397 for f in $ac_file_in; do
25399 -) echo $tmp/stdin ;;
25401 # Absolute (can't be DOS-style, as IFS=:)
25402 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25403 echo "$as_me: error: cannot find input file: $f" >&2;}
25404 { (exit 1); exit 1; }; }
25405 # Do quote $f, to prevent DOS paths from being IFS'd.
25408 if test -f "$f"; then
25411 elif test -f "$srcdir/$f"; then
25416 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25417 echo "$as_me: error: cannot find input file: $f" >&2;}
25418 { (exit 1); exit 1; }; }
25421 done` || { (exit 1); exit 1; }
25422 # Remove the trailing spaces.
25423 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25427 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25428 # `conftest.undefs', that substitutes the proper values into
25429 # config.h.in to produce config.h. The first handles `#define'
25430 # templates, and the second `#undef' templates.
25431 # And first: Protect against being on the right side of a sed subst in
25432 # config.status. Protect against being in an unquoted here document
25433 # in config.status.
25434 rm -f conftest.defines conftest.undefs
25435 # Using a here document instead of a string reduces the quoting nightmare.
25436 # Putting comments in sed scripts is not portable.
25438 # `end' is used to avoid that the second main sed command (meant for
25439 # 0-ary CPP macros) applies to n-ary macro definitions.
25440 # See the Autoconf documentation for `clear'.
25441 cat >confdef2sed.sed <<\_ACEOF
25446 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25448 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25451 # If some macros were called several times there might be several times
25452 # the same #defines, which is useless. Nevertheless, we may not want to
25453 # sort them, since we want the *last* AC-DEFINE to be honored.
25454 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25455 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25456 rm -f confdef2sed.sed
25458 # This sed command replaces #undef with comments. This is necessary, for
25459 # example, in the case of _POSIX_SOURCE, which is predefined and required
25460 # on some systems where configure will not decide to define it.
25461 cat >>conftest.undefs <<\_ACEOF
25462 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25465 # Break up conftest.defines because some shells have a limit on the size
25466 # of here documents, and old seds have small limits too (100 cmds).
25467 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25468 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25469 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25470 echo ' :' >>$CONFIG_STATUS
25471 rm -f conftest.tail
25472 while grep . conftest.defines >/dev/null
25474 # Write a limited-size here document to $tmp/defines.sed.
25475 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25476 # Speed up: don't consider the non `#define' lines.
25477 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25478 # Work around the forget-to-reset-the-flag bug.
25479 echo 't clr' >>$CONFIG_STATUS
25480 echo ': clr' >>$CONFIG_STATUS
25481 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25483 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25485 mv $tmp/out $tmp/in
25487 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25488 rm -f conftest.defines
25489 mv conftest.tail conftest.defines
25491 rm -f conftest.defines
25492 echo ' fi # grep' >>$CONFIG_STATUS
25493 echo >>$CONFIG_STATUS
25495 # Break up conftest.undefs because some shells have a limit on the size
25496 # of here documents, and old seds have small limits too (100 cmds).
25497 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25498 rm -f conftest.tail
25499 while grep . conftest.undefs >/dev/null
25501 # Write a limited-size here document to $tmp/undefs.sed.
25502 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25503 # Speed up: don't consider the non `#undef'
25504 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25505 # Work around the forget-to-reset-the-flag bug.
25506 echo 't clr' >>$CONFIG_STATUS
25507 echo ': clr' >>$CONFIG_STATUS
25508 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25510 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25512 mv $tmp/out $tmp/in
25514 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25515 rm -f conftest.undefs
25516 mv conftest.tail conftest.undefs
25518 rm -f conftest.undefs
25520 cat >>$CONFIG_STATUS <<\_ACEOF
25521 # Let's still pretend it is `configure' which instantiates (i.e., don't
25522 # use $as_me), people would be surprised to read:
25523 # /* config.h. Generated by config.status. */
25524 if test x"$ac_file" = x-; then
25525 echo "/* Generated by configure. */" >$tmp/config.h
25527 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25529 cat $tmp/in >>$tmp/config.h
25531 if test x"$ac_file" != x-; then
25532 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25533 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25534 echo "$as_me: $ac_file is unchanged" >&6;}
25536 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25537 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25538 X"$ac_file" : 'X\(//\)[^/]' \| \
25539 X"$ac_file" : 'X\(//\)$' \| \
25540 X"$ac_file" : 'X\(/\)' \| \
25541 . : '\(.\)' 2>/dev/null ||
25543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25544 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25545 /^X\(\/\/\)$/{ s//\1/; q; }
25546 /^X\(\/\).*/{ s//\1/; q; }
25548 { if $as_mkdir_p; then
25553 while test ! -d "$as_dir"; do
25554 as_dirs="$as_dir $as_dirs"
25555 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25557 X"$as_dir" : 'X\(//\)[^/]' \| \
25558 X"$as_dir" : 'X\(//\)$' \| \
25559 X"$as_dir" : 'X\(/\)' \| \
25560 . : '\(.\)' 2>/dev/null ||
25562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25563 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25564 /^X\(\/\/\)$/{ s//\1/; q; }
25565 /^X\(\/\).*/{ s//\1/; q; }
25568 test ! -n "$as_dirs" || mkdir $as_dirs
25569 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25570 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25571 { (exit 1); exit 1; }; }; }
25574 mv $tmp/config.h $ac_file
25578 rm -f $tmp/config.h
25580 # Compute $ac_file's index in $config_headers.
25582 for _am_header in $config_headers :; do
25583 case $_am_header in
25584 $ac_file | $ac_file:* )
25587 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25590 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
25591 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25592 X$ac_file : 'X\(//\)[^/]' \| \
25593 X$ac_file : 'X\(//\)$' \| \
25594 X$ac_file : 'X\(/\)' \| \
25595 . : '\(.\)' 2>/dev/null ||
25597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25598 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25599 /^X\(\/\/\)$/{ s//\1/; q; }
25600 /^X\(\/\).*/{ s//\1/; q; }
25601 s/.*/./; q'`/stamp-h$_am_stamp_count
25604 cat >>$CONFIG_STATUS <<\_ACEOF
25607 # CONFIG_COMMANDS section.
25609 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25610 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25611 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25612 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25613 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25614 X"$ac_dest" : 'X\(//\)[^/]' \| \
25615 X"$ac_dest" : 'X\(//\)$' \| \
25616 X"$ac_dest" : 'X\(/\)' \| \
25617 . : '\(.\)' 2>/dev/null ||
25619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25620 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25621 /^X\(\/\/\)$/{ s//\1/; q; }
25622 /^X\(\/\).*/{ s//\1/; q; }
25624 { if $as_mkdir_p; then
25629 while test ! -d "$as_dir"; do
25630 as_dirs="$as_dir $as_dirs"
25631 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25633 X"$as_dir" : 'X\(//\)[^/]' \| \
25634 X"$as_dir" : 'X\(//\)$' \| \
25635 X"$as_dir" : 'X\(/\)' \| \
25636 . : '\(.\)' 2>/dev/null ||
25638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25639 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25640 /^X\(\/\/\)$/{ s//\1/; q; }
25641 /^X\(\/\).*/{ s//\1/; q; }
25644 test ! -n "$as_dirs" || mkdir $as_dirs
25645 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25646 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25647 { (exit 1); exit 1; }; }; }
25651 if test "$ac_dir" != .; then
25652 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25653 # A "../" for each directory in $ac_dir_suffix.
25654 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25656 ac_dir_suffix= ac_top_builddir=
25660 .) # No --srcdir option. We are building in place.
25662 if test -z "$ac_top_builddir"; then
25665 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25667 [\\/]* | ?:[\\/]* ) # Absolute path.
25668 ac_srcdir=$srcdir$ac_dir_suffix;
25669 ac_top_srcdir=$srcdir ;;
25670 *) # Relative path.
25671 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25672 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25675 # Do not use `cd foo && pwd` to compute absolute paths, because
25676 # the directories may not exist.
25678 .) ac_abs_builddir="$ac_dir";;
25681 .) ac_abs_builddir=`pwd`;;
25682 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25683 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25686 case $ac_abs_builddir in
25687 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25689 case ${ac_top_builddir}. in
25690 .) ac_abs_top_builddir=$ac_abs_builddir;;
25691 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25692 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25695 case $ac_abs_builddir in
25696 .) ac_abs_srcdir=$ac_srcdir;;
25699 .) ac_abs_srcdir=$ac_abs_builddir;;
25700 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25701 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25704 case $ac_abs_builddir in
25705 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25707 case $ac_top_srcdir in
25708 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25709 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25710 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25715 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25716 echo "$as_me: executing $ac_dest commands" >&6;}
25718 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25719 # Strip MF so we end up with the name of the file.
25720 mf=`echo "$mf" | sed -e 's/:.*$//'`
25721 # Check whether this is an Automake generated Makefile or not.
25722 # We used to match only the files named `Makefile.in', but
25723 # some people rename them; so instead we look at the file content.
25724 # Grep'ing the first line is not enough: some people post-process
25725 # each Makefile.in and add a new line on top of each file to say so.
25726 # So let's grep whole file.
25727 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25728 dirpart=`(dirname "$mf") 2>/dev/null ||
25729 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25730 X"$mf" : 'X\(//\)[^/]' \| \
25731 X"$mf" : 'X\(//\)$' \| \
25732 X"$mf" : 'X\(/\)' \| \
25733 . : '\(.\)' 2>/dev/null ||
25735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25736 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25737 /^X\(\/\/\)$/{ s//\1/; q; }
25738 /^X\(\/\).*/{ s//\1/; q; }
25743 # Extract the definition of DEPDIR, am__include, and am__quote
25744 # from the Makefile without running `make'.
25745 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25746 test -z "$DEPDIR" && continue
25747 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25748 test -z "am__include" && continue
25749 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25750 # When using ansi2knr, U may be empty or an underscore; expand it
25751 U=`sed -n 's/^U = //p' < "$mf"`
25752 # Find all dependency output files, they are included files with
25753 # $(DEPDIR) in their names. We invoke sed twice because it is the
25754 # simplest approach to changing $(DEPDIR) to its actual value in the
25756 for file in `sed -n "
25757 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25758 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25759 # Make sure the directory exists.
25760 test -f "$dirpart/$file" && continue
25761 fdir=`(dirname "$file") 2>/dev/null ||
25762 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25763 X"$file" : 'X\(//\)[^/]' \| \
25764 X"$file" : 'X\(//\)$' \| \
25765 X"$file" : 'X\(/\)' \| \
25766 . : '\(.\)' 2>/dev/null ||
25768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25770 /^X\(\/\/\)$/{ s//\1/; q; }
25771 /^X\(\/\).*/{ s//\1/; q; }
25773 { if $as_mkdir_p; then
25774 mkdir -p $dirpart/$fdir
25776 as_dir=$dirpart/$fdir
25778 while test ! -d "$as_dir"; do
25779 as_dirs="$as_dir $as_dirs"
25780 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25782 X"$as_dir" : 'X\(//\)[^/]' \| \
25783 X"$as_dir" : 'X\(//\)$' \| \
25784 X"$as_dir" : 'X\(/\)' \| \
25785 . : '\(.\)' 2>/dev/null ||
25787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25788 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25789 /^X\(\/\/\)$/{ s//\1/; q; }
25790 /^X\(\/\).*/{ s//\1/; q; }
25793 test ! -n "$as_dirs" || mkdir $as_dirs
25794 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25795 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25796 { (exit 1); exit 1; }; }; }
25798 # echo "creating $dirpart/$file"
25799 echo '# dummy' > "$dirpart/$file"
25807 cat >>$CONFIG_STATUS <<\_ACEOF
25809 { (exit 0); exit 0; }
25811 chmod +x $CONFIG_STATUS
25812 ac_clean_files=$ac_clean_files_save
25815 # configure is writing to config.log, and then calls config.status.
25816 # config.status does its own redirection, appending to config.log.
25817 # Unfortunately, on DOS this fails, as config.log is still kept open
25818 # by configure, so config.status won't be able to write to it; its
25819 # output is simply discarded. So we exec the FD to /dev/null,
25820 # effectively closing config.log, so it can be properly (re)opened and
25821 # appended to by config.status. When coming back to configure, we
25822 # need to make the FD available again.
25823 if test "$no_create" != yes; then
25825 ac_config_status_args=
25826 test "$silent" = yes &&
25827 ac_config_status_args="$ac_config_status_args --quiet"
25829 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25831 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25832 # would make configure fail if this is the last instruction.
25833 $ac_cs_success || { (exit 1); exit 1; }
25837 if ${TEST} -n "${WARN_JNI}" ; then
25838 { echo "$as_me:$LINENO: WARNING: ===========================================" >&5
25839 echo "$as_me: WARNING: ===========================================" >&2;}
25840 { echo "$as_me:$LINENO: WARNING: You have used one of the following options:" >&5
25841 echo "$as_me: WARNING: You have used one of the following options:" >&2;}
25842 { echo "$as_me:$LINENO: WARNING: --enable-jni" >&5
25843 echo "$as_me: WARNING: --enable-jni" >&2;}
25844 { echo "$as_me:$LINENO: WARNING: --with-java-home" >&5
25845 echo "$as_me: WARNING: --with-java-home" >&2;}
25846 { echo "$as_me:$LINENO: WARNING: --with-java-platform" >&5
25847 echo "$as_me: WARNING: --with-java-platform" >&2;}
25848 { echo "$as_me:$LINENO: WARNING: --with-os-type" >&5
25849 echo "$as_me: WARNING: --with-os-type" >&2;}
25850 { echo "$as_me:$LINENO: WARNING: These options are only necessary if" >&5
25851 echo "$as_me: WARNING: These options are only necessary if" >&2;}
25852 { echo "$as_me:$LINENO: WARNING: you want to use a worker of type jni." >&5
25853 echo "$as_me: WARNING: you want to use a worker of type jni." >&2;}
25854 { echo "$as_me:$LINENO: WARNING: These workers have been deprecated." >&5
25855 echo "$as_me: WARNING: These workers have been deprecated." >&2;}
25856 { echo "$as_me:$LINENO: WARNING: They do not work and will be removed from" >&5
25857 echo "$as_me: WARNING: They do not work and will be removed from" >&2;}
25858 { echo "$as_me:$LINENO: WARNING: a future release" >&5
25859 echo "$as_me: WARNING: a future release" >&2;}
25860 { echo "$as_me:$LINENO: WARNING: ===========================================" >&5
25861 echo "$as_me: WARNING: ===========================================" >&2;}
25864 if ${TEST} -n "${WARN_CC}" ; then
25865 { echo "$as_me:$LINENO: WARNING: ===========================================" >&5
25866 echo "$as_me: WARNING: ===========================================" >&2;}
25867 { echo "$as_me:$LINENO: WARNING: Using CC from environment:" >&5
25868 echo "$as_me: WARNING: Using CC from environment:" >&2;}
25869 { echo "$as_me:$LINENO: WARNING: CC=\"$CC\"" >&5
25870 echo "$as_me: WARNING: CC=\"$CC\"" >&2;}
25871 { echo "$as_me:$LINENO: WARNING: instead of CC from apxs:" >&5
25872 echo "$as_me: WARNING: instead of CC from apxs:" >&2;}
25873 { echo "$as_me:$LINENO: WARNING: CC=\"$APXSCC\"" >&5
25874 echo "$as_me: WARNING: CC=\"$APXSCC\"" >&2;}
25875 { echo "$as_me:$LINENO: WARNING: If \"make\" throws an error of the form" >&5
25876 echo "$as_me: WARNING: If \"make\" throws an error of the form" >&2;}
25877 { echo "$as_me:$LINENO: WARNING: \"libtool: compile: unable to infer tagged configuration\"" >&5
25878 echo "$as_me: WARNING: \"libtool: compile: unable to infer tagged configuration\"" >&2;}
25879 { echo "$as_me:$LINENO: WARNING: \"libtool: compile: specify a tag with \`--tag'\"" >&5
25880 echo "$as_me: WARNING: \"libtool: compile: specify a tag with \`--tag'\"" >&2;}
25881 { echo "$as_me:$LINENO: WARNING: try running configure without setting CC," >&5
25882 echo "$as_me: WARNING: try running configure without setting CC," >&2;}
25883 { echo "$as_me:$LINENO: WARNING: or at least CC should start with \"$APXSCC\"" >&5
25884 echo "$as_me: WARNING: or at least CC should start with \"$APXSCC\"" >&2;}
25885 { echo "$as_me:$LINENO: WARNING: ===========================================" >&5
25886 echo "$as_me: WARNING: ===========================================" >&2;}