2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for glog 0.1.
5 # Report bugs to <opensource@google.com>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
425 PACKAGE_TARNAME='glog'
426 PACKAGE_VERSION='0.1'
427 PACKAGE_STRING='glog 0.1'
428 PACKAGE_BUGREPORT='opensource@google.com'
430 ac_unique_file="README"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE GCC_TRUE GCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS ENABLE_FRAME_POINTERS_TRUE ENABLE_FRAME_POINTERS_FALSE X86_64_TRUE X86_64_FALSE acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS ac_google_start_namespace ac_google_end_namespace ac_google_namespace ac_cv_cxx_using_operator ac_cv___attribute___noreturn ac_cv___attribute___printf_4_5 ac_cv_have___builtin_expect ac_cv_have_stdint_h ac_cv_have_systypes_h ac_cv_have_inttypes_h ac_cv_have_uint16_t ac_cv_have_u_int16_t ac_cv_have___uint16 ac_cv_have_libgflags GFLAGS_LIBS LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures glog 0.1 to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of glog 0.1:";;
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --disable-dependency-tracking speeds up one-time build
1031 --enable-dependency-tracking do not reject slow dependency extractors
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1039 --enable-frame-pointers On x86_64 systems, compile with
1040 -fno-omit-frame-pointer (see INSTALL)
1041 --enable-namespace=FOO to define these Google
1042 classes in the FOO namespace. --disable-namespace
1043 to define them in the global namespace. Default
1044 is to define them in namespace google.
1047 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1048 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1049 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1050 --with-pic try to use only PIC/non-PIC objects [default=use
1053 include additional configurations [automatic]
1055 Some influential environment variables:
1056 CC C compiler command
1057 CFLAGS C compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1063 CXX C++ compiler command
1064 CXXFLAGS C++ compiler flags
1065 CXXCPP C++ preprocessor
1066 F77 Fortran 77 compiler command
1067 FFLAGS Fortran 77 compiler flags
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1072 Report bugs to <opensource@google.com>.
1076 if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1083 if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 ac_dir_suffix= ac_top_builddir=
1092 .) # No --srcdir option. We are building in place.
1094 if test -z "$ac_top_builddir"; then
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107 # Do not use `cd foo && pwd` to compute absolute paths, because
1108 # the directories may not exist.
1110 .) ac_abs_builddir="$ac_dir";;
1113 .) ac_abs_builddir=`pwd`;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1118 case $ac_abs_builddir in
1119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 case ${ac_top_builddir}. in
1122 .) ac_abs_top_builddir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1127 case $ac_abs_builddir in
1128 .) ac_abs_srcdir=$ac_srcdir;;
1131 .) ac_abs_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 case $ac_top_srcdir in
1140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147 # Check for guested configure; otherwise get Cygnus style configure.
1148 if test -f $ac_srcdir/configure.gnu; then
1150 $SHELL $ac_srcdir/configure.gnu --help=recursive
1151 elif test -f $ac_srcdir/configure; then
1153 $SHELL $ac_srcdir/configure --help=recursive
1154 elif test -f $ac_srcdir/configure.ac ||
1155 test -f $ac_srcdir/configure.in; then
1157 $ac_configure --help
1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 test -n "$ac_init_help" && exit 0
1166 if $ac_init_version; then
1169 generated by GNU Autoconf 2.59
1171 Copyright (C) 2003 Free Software Foundation, Inc.
1172 This configure script is free software; the Free Software Foundation
1173 gives unlimited permission to copy, distribute and modify it.
1179 This file contains any messages produced by compilers while
1180 running configure, to aid debugging if configure makes a mistake.
1182 It was created by glog $as_me 0.1, which was
1183 generated by GNU Autoconf 2.59. Invocation command line was
1194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1203 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1204 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1207 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1208 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1209 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1217 test -z "$as_dir" && as_dir=.
1218 echo "PATH: $as_dir"
1233 # Keep a trace of the command line.
1234 # Strip out --no-create and --no-recursion so they do not pile up.
1235 # Strip out --silent because we don't want to record it for future runs.
1236 # Also quote any args containing shell meta-characters.
1237 # Make two passes to allow for proper duplicate-argument suppression.
1242 ac_must_keep_next=false
1248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1256 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259 if test $ac_must_keep_next = true; then
1260 ac_must_keep_next=false # Got value, back to normal.
1263 *=* | --config-cache | -C | -disable-* | --disable-* \
1264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266 | -with-* | --with-* | -without-* | --without-* | --x)
1267 case "$ac_configure_args0 " in
1268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1271 -* ) ac_must_keep_next=true ;;
1274 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275 # Get rid of the leading space.
1281 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284 # When interrupted or exit'd, cleanup temporary files, and complete
1285 # config.log. We remove comments because anyway the quotes in there
1286 # would cause problems or look ugly.
1287 # WARNING: Be sure not to use single quotes in there, as some shells,
1288 # such as our DU 5.0 friend, will then `close' the trap.
1289 trap 'exit_status=$?
1290 # Save into config.log some information that might help in debugging.
1295 ## ---------------- ##
1296 ## Cache variables. ##
1297 ## ---------------- ##
1300 # The following way of writing the cache mishandles newlines in values,
1303 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1306 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1311 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318 ## ----------------- ##
1319 ## Output variables. ##
1320 ## ----------------- ##
1323 for ac_var in $ac_subst_vars
1325 eval ac_val=$`echo $ac_var`
1326 echo "$ac_var='"'"'$ac_val'"'"'"
1330 if test -n "$ac_subst_files"; then
1337 for ac_var in $ac_subst_files
1339 eval ac_val=$`echo $ac_var`
1340 echo "$ac_var='"'"'$ac_val'"'"'"
1345 if test -s confdefs.h; then
1352 sed "/^$/d" confdefs.h | sort
1355 test "$ac_signal" != 0 &&
1356 echo "$as_me: caught signal $ac_signal"
1357 echo "$as_me: exit $exit_status"
1359 rm -f core *.core &&
1360 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1363 for ac_signal in 1 2 13 15; do
1364 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1369 rm -rf conftest* confdefs.h
1370 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1373 # Predefined preprocessor variables.
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_NAME "$PACKAGE_NAME"
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_STRING "$PACKAGE_STRING"
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1400 # Let the site file select an alternate cache file if it wants to.
1401 # Prefer explicitly selected file to automatically selected ones.
1402 if test -z "$CONFIG_SITE"; then
1403 if test "x$prefix" != xNONE; then
1404 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1409 for ac_site_file in $CONFIG_SITE; do
1410 if test -r "$ac_site_file"; then
1411 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412 echo "$as_me: loading site script $ac_site_file" >&6;}
1413 sed 's/^/| /' "$ac_site_file" >&5
1418 if test -r "$cache_file"; then
1419 # Some versions of bash will fail to source /dev/null (special
1420 # files actually), so we avoid doing that.
1421 if test -f "$cache_file"; then
1422 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423 echo "$as_me: loading cache $cache_file" >&6;}
1425 [\\/]* | ?:[\\/]* ) . $cache_file;;
1426 *) . ./$cache_file;;
1430 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431 echo "$as_me: creating cache $cache_file" >&6;}
1435 # Check that the precious variables saved in the cache have kept the same
1437 ac_cache_corrupted=false
1438 for ac_var in `(set) 2>&1 |
1439 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441 eval ac_new_set=\$ac_env_${ac_var}_set
1442 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443 eval ac_new_val="\$ac_env_${ac_var}_value"
1444 case $ac_old_set,$ac_new_set in
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1450 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452 ac_cache_corrupted=: ;;
1455 if test "x$ac_old_val" != "x$ac_new_val"; then
1456 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1459 echo "$as_me: former value: $ac_old_val" >&2;}
1460 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1461 echo "$as_me: current value: $ac_new_val" >&2;}
1462 ac_cache_corrupted=:
1465 # Pass precious variables to config.status.
1466 if test "$ac_new_set" = set; then
1468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470 *) ac_arg=$ac_var=$ac_new_val ;;
1472 case " $ac_configure_args " in
1473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1474 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1478 if $ac_cache_corrupted; then
1479 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483 { (exit 1); exit 1; }; }
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1518 # The argument here is just something that should be in the current directory
1519 # (for sanity checking)
1521 am__api_version="1.9"
1523 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1524 if test -f $ac_dir/install-sh; then
1526 ac_install_sh="$ac_aux_dir/install-sh -c"
1528 elif test -f $ac_dir/install.sh; then
1530 ac_install_sh="$ac_aux_dir/install.sh -c"
1532 elif test -f $ac_dir/shtool; then
1534 ac_install_sh="$ac_aux_dir/shtool install -c"
1538 if test -z "$ac_aux_dir"; then
1539 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1540 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1541 { (exit 1); exit 1; }; }
1543 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1544 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1545 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1547 # Find a good install program. We prefer a C program (faster),
1548 # so one script is as good as another. But avoid the broken or
1549 # incompatible versions:
1550 # SysV /etc/install, /usr/sbin/install
1551 # SunOS /usr/etc/install
1552 # IRIX /sbin/install
1554 # AmigaOS /C/install, which installs bootblocks on floppy discs
1555 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1556 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1557 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1558 # OS/2's system install, which has a completely different semantic
1559 # ./install, which can be erroneously created by make from ./install.sh.
1560 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1561 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1562 if test -z "$INSTALL"; then
1563 if test "${ac_cv_path_install+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 test -z "$as_dir" && as_dir=.
1571 # Account for people who put trailing slashes in PATH elements.
1573 ./ | .// | /cC/* | \
1574 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1575 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1578 # OSF1 and SCO ODT 3.0 have their own names for install.
1579 # Don't use installbsd from OSF since it installs stuff as root
1581 for ac_prog in ginstall scoinst install; do
1582 for ac_exec_ext in '' $ac_executable_extensions; do
1583 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1584 if test $ac_prog = install &&
1585 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1586 # AIX install. It has an incompatible calling convention.
1588 elif test $ac_prog = install &&
1589 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1590 # program-specific install script used by HP pwplus--don't use.
1593 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1605 if test "${ac_cv_path_install+set}" = set; then
1606 INSTALL=$ac_cv_path_install
1608 # As a last resort, use the slow shell script. We don't cache a
1609 # path for INSTALL within a source directory, because that will
1610 # break other packages using the cache if that directory is
1611 # removed, or if the path is relative.
1612 INSTALL=$ac_install_sh
1615 echo "$as_me:$LINENO: result: $INSTALL" >&5
1616 echo "${ECHO_T}$INSTALL" >&6
1618 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1619 # It thinks the first close brace ends the variable substitution.
1620 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1622 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1624 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1626 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1627 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1630 echo timestamp > conftest.file
1631 # Do `set' in a subshell so we don't clobber the current shell's
1632 # arguments. Must try -L first in case configure is actually a
1633 # symlink; some systems play weird games with the mod time of symlinks
1634 # (eg FreeBSD returns the mod time of the symlink's containing
1637 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1638 if test "$*" = "X"; then
1640 set X `ls -t $srcdir/configure conftest.file`
1643 if test "$*" != "X $srcdir/configure conftest.file" \
1644 && test "$*" != "X conftest.file $srcdir/configure"; then
1646 # If neither matched, then we have a broken ls. This can happen
1647 # if, for instance, CONFIG_SHELL is bash and it inherits a
1648 # broken ls alias from the environment. This has actually
1649 # happened. Such a system could not be considered "sane".
1650 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1651 alias in your environment" >&5
1652 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1653 alias in your environment" >&2;}
1654 { (exit 1); exit 1; }; }
1657 test "$2" = conftest.file
1663 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1664 Check your system clock" >&5
1665 echo "$as_me: error: newly created file is older than distributed files!
1666 Check your system clock" >&2;}
1667 { (exit 1); exit 1; }; }
1669 echo "$as_me:$LINENO: result: yes" >&5
1670 echo "${ECHO_T}yes" >&6
1671 test "$program_prefix" != NONE &&
1672 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1673 # Use a double $ so make ignores it.
1674 test "$program_suffix" != NONE &&
1675 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1676 # Double any \ or $. echo might interpret backslashes.
1677 # By default was `s,x,x', remove it if useless.
1678 cat <<\_ACEOF >conftest.sed
1679 s/[\\$]/&&/g;s/;s,x,x,$//
1681 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1684 # expand $ac_aux_dir to an absolute path
1685 am_aux_dir=`cd $ac_aux_dir && pwd`
1687 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1688 # Use eval to expand $SHELL
1689 if eval "$MISSING --run true"; then
1690 am_missing_run="$MISSING --run "
1693 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1694 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1697 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1698 # We used to keeping the `.' as first argument, in order to
1699 # allow $(mkdir_p) to be used without argument. As in
1700 # $(mkdir_p) $(somedir)
1701 # where $(somedir) is conditionally defined. However this is wrong
1703 # 1. if the package is installed by a user who cannot write `.'
1704 # make install will fail,
1705 # 2. the above comment should most certainly read
1706 # $(mkdir_p) $(DESTDIR)$(somedir)
1707 # so it does not work when $(somedir) is undefined and
1708 # $(DESTDIR) is not.
1709 # To support the latter case, we have to write
1710 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1711 # so the `.' trick is pointless.
1712 mkdir_p='mkdir -p --'
1714 # On NextStep and OpenStep, the `mkdir' command does not
1715 # recognize any option. It will interpret all options as
1716 # directories to create, and then abort because `.' already
1718 for d in ./-p ./--version;
1720 test -d $d && rmdir $d
1722 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1723 if test -f "$ac_aux_dir/mkinstalldirs"; then
1724 mkdir_p='$(mkinstalldirs)'
1726 mkdir_p='$(install_sh) -d'
1730 for ac_prog in gawk mawk nawk awk
1732 # Extract the first word of "$ac_prog", so it can be a program name with args.
1733 set dummy $ac_prog; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_AWK+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 if test -n "$AWK"; then
1740 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_AWK="$ac_prog"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759 if test -n "$AWK"; then
1760 echo "$as_me:$LINENO: result: $AWK" >&5
1761 echo "${ECHO_T}$AWK" >&6
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1767 test -n "$AWK" && break
1770 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1771 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1772 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1773 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1776 cat >conftest.make <<\_ACEOF
1778 @echo 'ac_maketemp="$(MAKE)"'
1780 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1781 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1782 if test -n "$ac_maketemp"; then
1783 eval ac_cv_prog_make_${ac_make}_set=yes
1785 eval ac_cv_prog_make_${ac_make}_set=no
1789 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1790 echo "$as_me:$LINENO: result: yes" >&5
1791 echo "${ECHO_T}yes" >&6
1794 echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1796 SET_MAKE="MAKE=${MAKE-make}"
1799 rm -rf .tst 2>/dev/null
1800 mkdir .tst 2>/dev/null
1801 if test -d .tst; then
1806 rmdir .tst 2>/dev/null
1808 # test to see if srcdir already configured
1809 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1810 test -f $srcdir/config.status; then
1811 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1812 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1813 { (exit 1); exit 1; }; }
1816 # test whether we have cygpath
1817 if test -z "$CYGPATH_W"; then
1818 if (cygpath --version) >/dev/null 2>/dev/null; then
1819 CYGPATH_W='cygpath -w'
1826 # Define the identity of the package.
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE "$PACKAGE"
1836 cat >>confdefs.h <<_ACEOF
1837 #define VERSION "$VERSION"
1840 # Some tools Automake needs.
1842 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1845 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1848 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1851 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1854 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1856 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1858 # Installed binaries are usually stripped using `strip' when the user
1859 # run `make install-strip'. However `strip' might not be the right
1860 # tool to use in cross-compilation environments, therefore Automake
1861 # will honor the `STRIP' environment variable to overrule this program.
1862 if test "$cross_compiling" != no; then
1863 if test -n "$ac_tool_prefix"; then
1864 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1865 set dummy ${ac_tool_prefix}strip; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_STRIP+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 if test -n "$STRIP"; then
1872 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890 STRIP=$ac_cv_prog_STRIP
1891 if test -n "$STRIP"; then
1892 echo "$as_me:$LINENO: result: $STRIP" >&5
1893 echo "${ECHO_T}$STRIP" >&6
1895 echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1900 if test -z "$ac_cv_prog_STRIP"; then
1902 # Extract the first word of "strip", so it can be a program name with args.
1903 set dummy strip; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 if test -n "$ac_ct_STRIP"; then
1910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 test -z "$as_dir" && as_dir=.
1917 for ac_exec_ext in '' $ac_executable_extensions; do
1918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919 ac_cv_prog_ac_ct_STRIP="strip"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1929 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1930 if test -n "$ac_ct_STRIP"; then
1931 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1932 echo "${ECHO_T}$ac_ct_STRIP" >&6
1934 echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1940 STRIP="$ac_cv_prog_STRIP"
1944 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1946 # We need awk for the "check" target. The system "awk" is bad on
1948 # Always define AMTAR for backward compatibility.
1950 AMTAR=${AMTAR-"${am_missing_run}tar"}
1952 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1958 ac_config_headers="$ac_config_headers src/config.h"
1961 # Checks for programs.
1963 ac_cpp='$CPP $CPPFLAGS'
1964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967 if test -n "$ac_tool_prefix"; then
1968 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1969 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1970 echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1972 if test "${ac_cv_prog_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 if test -n "$CC"; then
1976 ac_cv_prog_CC="$CC" # Let the user override the test.
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 if test -n "$CC"; then
1996 echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6
1999 echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6
2004 if test -z "$ac_cv_prog_CC"; then
2006 # Extract the first word of "gcc", so it can be a program name with args.
2007 set dummy gcc; ac_word=$2
2008 echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 if test -n "$ac_ct_CC"; then
2014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023 ac_cv_prog_ac_ct_CC="gcc"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2033 if test -n "$ac_ct_CC"; then
2034 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2035 echo "${ECHO_T}$ac_ct_CC" >&6
2037 echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2046 if test -z "$CC"; then
2047 if test -n "$ac_tool_prefix"; then
2048 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2049 set dummy ${ac_tool_prefix}cc; ac_word=$2
2050 echo "$as_me:$LINENO: checking for $ac_word" >&5
2051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2052 if test "${ac_cv_prog_CC+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2055 if test -n "$CC"; then
2056 ac_cv_prog_CC="$CC" # Let the user override the test.
2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 test -z "$as_dir" && as_dir=.
2063 for ac_exec_ext in '' $ac_executable_extensions; do
2064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2065 ac_cv_prog_CC="${ac_tool_prefix}cc"
2066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 if test -n "$CC"; then
2076 echo "$as_me:$LINENO: result: $CC" >&5
2077 echo "${ECHO_T}$CC" >&6
2079 echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6
2084 if test -z "$ac_cv_prog_CC"; then
2086 # Extract the first word of "cc", so it can be a program name with args.
2087 set dummy cc; ac_word=$2
2088 echo "$as_me:$LINENO: checking for $ac_word" >&5
2089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 if test -n "$ac_ct_CC"; then
2094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 test -z "$as_dir" && as_dir=.
2101 for ac_exec_ext in '' $ac_executable_extensions; do
2102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103 ac_cv_prog_ac_ct_CC="cc"
2104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2113 if test -n "$ac_ct_CC"; then
2114 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2115 echo "${ECHO_T}$ac_ct_CC" >&6
2117 echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6
2127 if test -z "$CC"; then
2128 # Extract the first word of "cc", so it can be a program name with args.
2129 set dummy cc; ac_word=$2
2130 echo "$as_me:$LINENO: checking for $ac_word" >&5
2131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2132 if test "${ac_cv_prog_CC+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 if test -n "$CC"; then
2136 ac_cv_prog_CC="$CC" # Let the user override the test.
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2147 ac_prog_rejected=yes
2151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 if test $ac_prog_rejected = yes; then
2158 # We found a bogon in the path, so make sure we never use it.
2159 set dummy $ac_cv_prog_CC
2161 if test $# != 0; then
2162 # We chose a different compiler from the bogus one.
2163 # However, it has the same basename, so the bogon will be chosen
2164 # first if we set CC to just the basename; use the full file name.
2166 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2172 if test -n "$CC"; then
2173 echo "$as_me:$LINENO: result: $CC" >&5
2174 echo "${ECHO_T}$CC" >&6
2176 echo "$as_me:$LINENO: result: no" >&5
2177 echo "${ECHO_T}no" >&6
2181 if test -z "$CC"; then
2182 if test -n "$ac_tool_prefix"; then
2185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2187 echo "$as_me:$LINENO: checking for $ac_word" >&5
2188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2189 if test "${ac_cv_prog_CC+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 if test -n "$CC"; then
2193 ac_cv_prog_CC="$CC" # Let the user override the test.
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 test -z "$as_dir" && as_dir=.
2200 for ac_exec_ext in '' $ac_executable_extensions; do
2201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2202 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212 if test -n "$CC"; then
2213 echo "$as_me:$LINENO: result: $CC" >&5
2214 echo "${ECHO_T}$CC" >&6
2216 echo "$as_me:$LINENO: result: no" >&5
2217 echo "${ECHO_T}no" >&6
2220 test -n "$CC" && break
2223 if test -z "$CC"; then
2227 # Extract the first word of "$ac_prog", so it can be a program name with args.
2228 set dummy $ac_prog; ac_word=$2
2229 echo "$as_me:$LINENO: checking for $ac_word" >&5
2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2231 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2234 if test -n "$ac_ct_CC"; then
2235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 test -z "$as_dir" && as_dir=.
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244 ac_cv_prog_ac_ct_CC="$ac_prog"
2245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2254 if test -n "$ac_ct_CC"; then
2255 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2256 echo "${ECHO_T}$ac_ct_CC" >&6
2258 echo "$as_me:$LINENO: result: no" >&5
2259 echo "${ECHO_T}no" >&6
2262 test -n "$ac_ct_CC" && break
2271 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2272 See \`config.log' for more details." >&5
2273 echo "$as_me: error: no acceptable C compiler found in \$PATH
2274 See \`config.log' for more details." >&2;}
2275 { (exit 1); exit 1; }; }
2277 # Provide some information about the compiler.
2278 echo "$as_me:$LINENO:" \
2279 "checking for C compiler version" >&5
2280 ac_compiler=`set X $ac_compile; echo $2`
2281 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2282 (eval $ac_compiler --version </dev/null >&5) 2>&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }
2286 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2287 (eval $ac_compiler -v </dev/null >&5) 2>&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }
2291 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2292 (eval $ac_compiler -V </dev/null >&5) 2>&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }
2297 cat >conftest.$ac_ext <<_ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h. */
2312 ac_clean_files_save=$ac_clean_files
2313 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2314 # Try to create an executable without -o first, disregard a.out.
2315 # It will help us diagnose broken compilers, and finding out an intuition
2317 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2318 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2319 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2320 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2321 (eval $ac_link_default) 2>&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; then
2325 # Find the output, starting from the most likely. This scheme is
2326 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2329 # Be careful to initialize this variable, since it used to be cached.
2330 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2332 # b.out is created by i960 compilers.
2333 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2335 test -f "$ac_file" || continue
2337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2340 # This is the source file.
2343 # We found the default executable, but exeext='' is most
2347 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2348 # FIXME: I believe we export ac_cv_exeext for Libtool,
2349 # but it would be cool to find out if it's true. Does anybody
2350 # maintain Libtool? --akim.
2358 echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2361 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2362 See \`config.log' for more details." >&5
2363 echo "$as_me: error: C compiler cannot create executables
2364 See \`config.log' for more details." >&2;}
2365 { (exit 77); exit 77; }; }
2368 ac_exeext=$ac_cv_exeext
2369 echo "$as_me:$LINENO: result: $ac_file" >&5
2370 echo "${ECHO_T}$ac_file" >&6
2372 # Check the compiler produces executables we can run. If not, either
2373 # the compiler is broken, or we cross compile.
2374 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2375 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2376 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2377 # If not cross compiling, check that we can run a simple program.
2378 if test "$cross_compiling" != yes; then
2379 if { ac_try='./$ac_file'
2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; }; then
2387 if test "$cross_compiling" = maybe; then
2390 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2391 If you meant to cross compile, use \`--host'.
2392 See \`config.log' for more details." >&5
2393 echo "$as_me: error: cannot run C compiled programs.
2394 If you meant to cross compile, use \`--host'.
2395 See \`config.log' for more details." >&2;}
2396 { (exit 1); exit 1; }; }
2400 echo "$as_me:$LINENO: result: yes" >&5
2401 echo "${ECHO_T}yes" >&6
2403 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2404 ac_clean_files=$ac_clean_files_save
2405 # Check the compiler produces executables we can run. If not, either
2406 # the compiler is broken, or we cross compile.
2407 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2408 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2409 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2410 echo "${ECHO_T}$cross_compiling" >&6
2412 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2413 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2415 (eval $ac_link) 2>&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; then
2419 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2420 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2421 # work properly (i.e., refer to `conftest.exe'), while it won't with
2423 for ac_file in conftest.exe conftest conftest.*; do
2424 test -f "$ac_file" || continue
2426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2427 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2434 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2435 See \`config.log' for more details." >&5
2436 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2437 See \`config.log' for more details." >&2;}
2438 { (exit 1); exit 1; }; }
2441 rm -f conftest$ac_cv_exeext
2442 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2443 echo "${ECHO_T}$ac_cv_exeext" >&6
2445 rm -f conftest.$ac_ext
2446 EXEEXT=$ac_cv_exeext
2448 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2449 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2450 if test "${ac_cv_objext+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 cat >conftest.$ac_ext <<_ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2468 rm -f conftest.o conftest.obj
2469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470 (eval $ac_compile) 2>&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; then
2474 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2477 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2482 echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2485 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2486 See \`config.log' for more details." >&5
2487 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2488 See \`config.log' for more details." >&2;}
2489 { (exit 1); exit 1; }; }
2492 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2494 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2495 echo "${ECHO_T}$ac_cv_objext" >&6
2496 OBJEXT=$ac_cv_objext
2498 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2499 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2500 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 cat >conftest.$ac_ext <<_ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2521 rm -f conftest.$ac_objext
2522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523 (eval $ac_compile) 2>conftest.er1
2525 grep -v '^ *+' conftest.er1 >conftest.err
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2544 echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2550 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2553 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2554 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2555 GCC=`test $ac_compiler_gnu = yes && echo yes`
2556 ac_test_CFLAGS=${CFLAGS+set}
2557 ac_save_CFLAGS=$CFLAGS
2559 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2560 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2561 if test "${ac_cv_prog_cc_g+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 cat >conftest.$ac_ext <<_ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h. */
2579 rm -f conftest.$ac_objext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581 (eval $ac_compile) 2>conftest.er1
2583 grep -v '^ *+' conftest.er1 >conftest.err
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; } &&
2594 { ac_try='test -s conftest.$ac_objext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2609 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2610 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2611 if test "$ac_test_CFLAGS" = set; then
2612 CFLAGS=$ac_save_CFLAGS
2613 elif test $ac_cv_prog_cc_g = yes; then
2614 if test "$GCC" = yes; then
2620 if test "$GCC" = yes; then
2626 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2627 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2628 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 ac_cv_prog_cc_stdc=no
2633 cat >conftest.$ac_ext <<_ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2641 #include <sys/types.h>
2642 #include <sys/stat.h>
2643 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2644 struct buf { int x; };
2645 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2646 static char *e (p, i)
2652 static char *f (char * (*g) (char **, int), char **p, ...)
2657 s = g (p, va_arg (v,int));
2662 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2663 function prototypes and stuff, but not '\xHH' hex character constants.
2664 These don't provoke an error unfortunately, instead are silently treated
2665 as 'x'. The following induces an error, until -std1 is added to get
2666 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2667 array size at least. It's necessary to write '\x00'==0 to get something
2668 that's true only with -std1. */
2669 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2671 int test (int i, double x);
2672 struct s1 {int (*f) (int a);};
2673 struct s2 {int (*f) (double a);};
2674 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2680 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2685 # Don't try gcc -ansi; that turns off useful extensions and
2686 # breaks some systems' header files.
2687 # AIX -qlanglvl=ansi
2688 # Ultrix and OSF/1 -std1
2689 # HP-UX 10.20 and later -Ae
2690 # HP-UX older versions -Aa -D_HPUX_SOURCE
2691 # SVR4 -Xc -D__EXTENSIONS__
2692 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2694 CC="$ac_save_CC $ac_arg"
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>conftest.er1
2699 grep -v '^ *+' conftest.er1 >conftest.err
2701 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; } &&
2710 { ac_try='test -s conftest.$ac_objext'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; }; then
2716 ac_cv_prog_cc_stdc=$ac_arg
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2723 rm -f conftest.err conftest.$ac_objext
2725 rm -f conftest.$ac_ext conftest.$ac_objext
2730 case "x$ac_cv_prog_cc_stdc" in
2732 echo "$as_me:$LINENO: result: none needed" >&5
2733 echo "${ECHO_T}none needed" >&6 ;;
2735 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2736 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2737 CC="$CC $ac_cv_prog_cc_stdc" ;;
2740 # Some people use a C++ compiler to compile C. Since we use `exit',
2741 # in C++ we need to declare it. In case someone uses the same compiler
2742 # for both compiling C and C++ we need to have the C++ compiler decide
2743 # the declaration of exit, since it's the most demanding environment.
2744 cat >conftest.$ac_ext <<_ACEOF
2749 rm -f conftest.$ac_objext
2750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2751 (eval $ac_compile) 2>conftest.er1
2753 grep -v '^ *+' conftest.er1 >conftest.err
2755 cat conftest.err >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
2758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; } &&
2764 { ac_try='test -s conftest.$ac_objext'
2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; }; then
2770 for ac_declaration in \
2772 'extern "C" void std::exit (int) throw (); using std::exit;' \
2773 'extern "C" void std::exit (int); using std::exit;' \
2774 'extern "C" void exit (int) throw ();' \
2775 'extern "C" void exit (int);' \
2778 cat >conftest.$ac_ext <<_ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2794 rm -f conftest.$ac_objext
2795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2796 (eval $ac_compile) 2>conftest.er1
2798 grep -v '^ *+' conftest.er1 >conftest.err
2800 cat conftest.err >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } &&
2803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; } &&
2809 { ac_try='test -s conftest.$ac_objext'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2823 cat >conftest.$ac_ext <<_ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2838 rm -f conftest.$ac_objext
2839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2840 (eval $ac_compile) 2>conftest.er1
2842 grep -v '^ *+' conftest.er1 >conftest.err
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } &&
2847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; } &&
2853 { ac_try='test -s conftest.$ac_objext'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2868 if test -n "$ac_declaration"; then
2869 echo '#ifdef __cplusplus' >>confdefs.h
2870 echo $ac_declaration >>confdefs.h
2871 echo '#endif' >>confdefs.h
2875 echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.$ac_ext >&5
2879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2881 ac_cpp='$CPP $CPPFLAGS'
2882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2885 DEPDIR="${am__leading_dot}deps"
2887 ac_config_commands="$ac_config_commands depfiles"
2890 am_make=${MAKE-make}
2891 cat > confinc << 'END'
2896 # If we don't find an include directive, just comment out the code.
2897 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2898 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2902 # First try GNU make style include.
2903 echo "include confinc" > confmf
2904 # We grep out `Entering directory' and `Leaving directory'
2905 # messages which can occur if `w' ends up in MAKEFLAGS.
2906 # In particular we don't look at `^make:' because GNU make might
2907 # be invoked under some other name (usually "gmake"), in which
2908 # case it prints its new name instead of `make'.
2909 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2914 # Now try BSD make style include.
2915 if test "$am__include" = "#"; then
2916 echo '.include "confinc"' > confmf
2917 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2918 am__include=.include
2925 echo "$as_me:$LINENO: result: $_am_result" >&5
2926 echo "${ECHO_T}$_am_result" >&6
2927 rm -f confinc confmf
2929 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2930 if test "${enable_dependency_tracking+set}" = set; then
2931 enableval="$enable_dependency_tracking"
2934 if test "x$enable_dependency_tracking" != xno; then
2935 am_depcomp="$ac_aux_dir/depcomp"
2940 if test "x$enable_dependency_tracking" != xno; then
2951 depcc="$CC" am_compiler_list=
2953 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2954 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2955 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2959 # We make a subdir and do the tests there. Otherwise we can end up
2960 # making bogus files that we don't know about and never remove. For
2961 # instance it was reported that on HP-UX the gcc test will end up
2962 # making a dummy file named `D' -- because `-MD' means `put the output
2965 # Copy depcomp to subdir because otherwise we won't find it if we're
2966 # using a relative directory.
2967 cp "$am_depcomp" conftest.dir
2969 # We will build objects and dependencies in a subdirectory because
2970 # it helps to detect inapplicable dependency modes. For instance
2971 # both Tru64's cc and ICC support -MD to output dependencies as a
2972 # side effect of compilation, but ICC will put the dependencies in
2973 # the current directory while Tru64 will put them in the object
2977 am_cv_CC_dependencies_compiler_type=none
2978 if test "$am_compiler_list" = ""; then
2979 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2981 for depmode in $am_compiler_list; do
2982 # Setup a source with many dependencies, because some compilers
2983 # like to wrap large dependency lists on column 80 (with \), and
2984 # we should not choose a depcomp mode which is confused by this.
2986 # We need to recreate these files for each test, as the compiler may
2987 # overwrite some of them when testing with obscure command lines.
2988 # This happens at least with the AIX C compiler.
2990 for i in 1 2 3 4 5 6; do
2991 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2992 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2993 # Solaris 8's {/usr,}/bin/sh.
2994 touch sub/conftst$i.h
2996 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3000 # after this tag, mechanisms are not by side-effect, so they'll
3001 # only be used when explicitly requested
3002 if test "x$enable_dependency_tracking" = xyes; then
3010 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3011 # mode. It turns out that the SunPro C++ compiler does not properly
3012 # handle `-M -o', and we need to detect this.
3013 if depmode=$depmode \
3014 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3015 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3016 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3017 >/dev/null 2>conftest.err &&
3018 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3019 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3020 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3021 # icc doesn't choke on unknown options, it will just issue warnings
3022 # or remarks (even with -Werror). So we grep stderr for any message
3023 # that says an option was ignored or not supported.
3024 # When given -MP, icc 7.0 and 7.1 complain thusly:
3025 # icc: Command line warning: ignoring option '-M'; no argument required
3026 # The diagnosis changed in icc 8.0:
3027 # icc: Command line remark: option '-MP' not supported
3028 if (grep 'ignoring option' conftest.err ||
3029 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3030 am_cv_CC_dependencies_compiler_type=$depmode
3039 am_cv_CC_dependencies_compiler_type=none
3043 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3044 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3045 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3050 test "x$enable_dependency_tracking" != xno \
3051 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3053 am__fastdepCC_FALSE='#'
3055 am__fastdepCC_TRUE='#'
3056 am__fastdepCC_FALSE=
3061 ac_cpp='$CPP $CPPFLAGS'
3062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3065 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3066 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3067 # On Suns, sometimes $CPP names a directory.
3068 if test -n "$CPP" && test -d "$CPP"; then
3071 if test -z "$CPP"; then
3072 if test "${ac_cv_prog_CPP+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 # Double quotes because CPP needs to be expanded
3076 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3079 for ac_c_preproc_warn_flag in '' yes
3081 # Use a header file that comes with gcc, so configuring glibc
3082 # with a fresh cross-compiler works.
3083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3084 # <limits.h> exists even on freestanding compilers.
3085 # On the NeXT, cc -E runs the code through the compiler's parser,
3086 # not just through cpp. "Syntax error" is here to catch this case.
3087 cat >conftest.$ac_ext <<_ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3094 # include <limits.h>
3096 # include <assert.h>
3100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } >/dev/null; then
3108 if test -s conftest.err; then
3109 ac_cpp_err=$ac_c_preproc_warn_flag
3110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3117 if test -z "$ac_cpp_err"; then
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3123 # Broken: fails on valid input.
3126 rm -f conftest.err conftest.$ac_ext
3128 # OK, works on sane cases. Now check whether non-existent headers
3129 # can be detected and how.
3130 cat >conftest.$ac_ext <<_ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3136 #include <ac_nonexistent.h>
3138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } >/dev/null; then
3146 if test -s conftest.err; then
3147 ac_cpp_err=$ac_c_preproc_warn_flag
3148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3155 if test -z "$ac_cpp_err"; then
3156 # Broken: success on invalid input.
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3162 # Passes both tests.
3166 rm -f conftest.err conftest.$ac_ext
3169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3170 rm -f conftest.err conftest.$ac_ext
3171 if $ac_preproc_ok; then
3183 echo "$as_me:$LINENO: result: $CPP" >&5
3184 echo "${ECHO_T}$CPP" >&6
3186 for ac_c_preproc_warn_flag in '' yes
3188 # Use a header file that comes with gcc, so configuring glibc
3189 # with a fresh cross-compiler works.
3190 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3191 # <limits.h> exists even on freestanding compilers.
3192 # On the NeXT, cc -E runs the code through the compiler's parser,
3193 # not just through cpp. "Syntax error" is here to catch this case.
3194 cat >conftest.$ac_ext <<_ACEOF
3197 cat confdefs.h >>conftest.$ac_ext
3198 cat >>conftest.$ac_ext <<_ACEOF
3199 /* end confdefs.h. */
3201 # include <limits.h>
3203 # include <assert.h>
3207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3210 grep -v '^ *+' conftest.er1 >conftest.err
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } >/dev/null; then
3215 if test -s conftest.err; then
3216 ac_cpp_err=$ac_c_preproc_warn_flag
3217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3224 if test -z "$ac_cpp_err"; then
3227 echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3230 # Broken: fails on valid input.
3233 rm -f conftest.err conftest.$ac_ext
3235 # OK, works on sane cases. Now check whether non-existent headers
3236 # can be detected and how.
3237 cat >conftest.$ac_ext <<_ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3243 #include <ac_nonexistent.h>
3245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3248 grep -v '^ *+' conftest.er1 >conftest.err
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } >/dev/null; then
3253 if test -s conftest.err; then
3254 ac_cpp_err=$ac_c_preproc_warn_flag
3255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3262 if test -z "$ac_cpp_err"; then
3263 # Broken: success on invalid input.
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3269 # Passes both tests.
3273 rm -f conftest.err conftest.$ac_ext
3276 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3277 rm -f conftest.err conftest.$ac_ext
3278 if $ac_preproc_ok; then
3281 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3282 See \`config.log' for more details." >&5
3283 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3284 See \`config.log' for more details." >&2;}
3285 { (exit 1); exit 1; }; }
3289 ac_cpp='$CPP $CPPFLAGS'
3290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295 ac_cpp='$CXXCPP $CPPFLAGS'
3296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3299 if test -n "$ac_tool_prefix"; then
3300 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3302 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3304 echo "$as_me:$LINENO: checking for $ac_word" >&5
3305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3306 if test "${ac_cv_prog_CXX+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 if test -n "$CXX"; then
3310 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 test -z "$as_dir" && as_dir=.
3317 for ac_exec_ext in '' $ac_executable_extensions; do
3318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3319 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 if test -n "$CXX"; then
3330 echo "$as_me:$LINENO: result: $CXX" >&5
3331 echo "${ECHO_T}$CXX" >&6
3333 echo "$as_me:$LINENO: result: no" >&5
3334 echo "${ECHO_T}no" >&6
3337 test -n "$CXX" && break
3340 if test -z "$CXX"; then
3342 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3344 # Extract the first word of "$ac_prog", so it can be a program name with args.
3345 set dummy $ac_prog; ac_word=$2
3346 echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 if test -n "$ac_ct_CXX"; then
3352 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_ac_ct_CXX="$ac_prog"
3362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3371 if test -n "$ac_ct_CXX"; then
3372 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3373 echo "${ECHO_T}$ac_ct_CXX" >&6
3375 echo "$as_me:$LINENO: result: no" >&5
3376 echo "${ECHO_T}no" >&6
3379 test -n "$ac_ct_CXX" && break
3381 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3387 # Provide some information about the compiler.
3388 echo "$as_me:$LINENO:" \
3389 "checking for C++ compiler version" >&5
3390 ac_compiler=`set X $ac_compile; echo $2`
3391 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3392 (eval $ac_compiler --version </dev/null >&5) 2>&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }
3396 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3397 (eval $ac_compiler -v </dev/null >&5) 2>&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }
3401 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3402 (eval $ac_compiler -V </dev/null >&5) 2>&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }
3407 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3408 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3409 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 cat >conftest.$ac_ext <<_ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3430 rm -f conftest.$ac_objext
3431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3432 (eval $ac_compile) 2>conftest.er1
3434 grep -v '^ *+' conftest.er1 >conftest.err
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } &&
3439 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; } &&
3445 { ac_try='test -s conftest.$ac_objext'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3459 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3462 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3463 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3464 GXX=`test $ac_compiler_gnu = yes && echo yes`
3465 ac_test_CXXFLAGS=${CXXFLAGS+set}
3466 ac_save_CXXFLAGS=$CXXFLAGS
3468 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3469 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3470 if test "${ac_cv_prog_cxx_g+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 cat >conftest.$ac_ext <<_ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3488 rm -f conftest.$ac_objext
3489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3490 (eval $ac_compile) 2>conftest.er1
3492 grep -v '^ *+' conftest.er1 >conftest.err
3494 cat conftest.err >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } &&
3497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; } &&
3503 { ac_try='test -s conftest.$ac_objext'
3504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; }; then
3509 ac_cv_prog_cxx_g=yes
3511 echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3518 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3519 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3520 if test "$ac_test_CXXFLAGS" = set; then
3521 CXXFLAGS=$ac_save_CXXFLAGS
3522 elif test $ac_cv_prog_cxx_g = yes; then
3523 if test "$GXX" = yes; then
3529 if test "$GXX" = yes; then
3535 for ac_declaration in \
3537 'extern "C" void std::exit (int) throw (); using std::exit;' \
3538 'extern "C" void std::exit (int); using std::exit;' \
3539 'extern "C" void exit (int) throw ();' \
3540 'extern "C" void exit (int);' \
3543 cat >conftest.$ac_ext <<_ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3559 rm -f conftest.$ac_objext
3560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3561 (eval $ac_compile) 2>conftest.er1
3563 grep -v '^ *+' conftest.er1 >conftest.err
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } &&
3568 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; } &&
3574 { ac_try='test -s conftest.$ac_objext'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3588 cat >conftest.$ac_ext <<_ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3603 rm -f conftest.$ac_objext
3604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3605 (eval $ac_compile) 2>conftest.er1
3607 grep -v '^ *+' conftest.er1 >conftest.err
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } &&
3612 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; } &&
3618 { ac_try='test -s conftest.$ac_objext'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; }; then
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3633 if test -n "$ac_declaration"; then
3634 echo '#ifdef __cplusplus' >>confdefs.h
3635 echo $ac_declaration >>confdefs.h
3636 echo '#endif' >>confdefs.h
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645 depcc="$CXX" am_compiler_list=
3647 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3648 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3649 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3653 # We make a subdir and do the tests there. Otherwise we can end up
3654 # making bogus files that we don't know about and never remove. For
3655 # instance it was reported that on HP-UX the gcc test will end up
3656 # making a dummy file named `D' -- because `-MD' means `put the output
3659 # Copy depcomp to subdir because otherwise we won't find it if we're
3660 # using a relative directory.
3661 cp "$am_depcomp" conftest.dir
3663 # We will build objects and dependencies in a subdirectory because
3664 # it helps to detect inapplicable dependency modes. For instance
3665 # both Tru64's cc and ICC support -MD to output dependencies as a
3666 # side effect of compilation, but ICC will put the dependencies in
3667 # the current directory while Tru64 will put them in the object
3671 am_cv_CXX_dependencies_compiler_type=none
3672 if test "$am_compiler_list" = ""; then
3673 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3675 for depmode in $am_compiler_list; do
3676 # Setup a source with many dependencies, because some compilers
3677 # like to wrap large dependency lists on column 80 (with \), and
3678 # we should not choose a depcomp mode which is confused by this.
3680 # We need to recreate these files for each test, as the compiler may
3681 # overwrite some of them when testing with obscure command lines.
3682 # This happens at least with the AIX C compiler.
3684 for i in 1 2 3 4 5 6; do
3685 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3686 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3687 # Solaris 8's {/usr,}/bin/sh.
3688 touch sub/conftst$i.h
3690 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3694 # after this tag, mechanisms are not by side-effect, so they'll
3695 # only be used when explicitly requested
3696 if test "x$enable_dependency_tracking" = xyes; then
3704 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3705 # mode. It turns out that the SunPro C++ compiler does not properly
3706 # handle `-M -o', and we need to detect this.
3707 if depmode=$depmode \
3708 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3709 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3710 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3711 >/dev/null 2>conftest.err &&
3712 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3713 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3714 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3715 # icc doesn't choke on unknown options, it will just issue warnings
3716 # or remarks (even with -Werror). So we grep stderr for any message
3717 # that says an option was ignored or not supported.
3718 # When given -MP, icc 7.0 and 7.1 complain thusly:
3719 # icc: Command line warning: ignoring option '-M'; no argument required
3720 # The diagnosis changed in icc 8.0:
3721 # icc: Command line remark: option '-MP' not supported
3722 if (grep 'ignoring option' conftest.err ||
3723 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3724 am_cv_CXX_dependencies_compiler_type=$depmode
3733 am_cv_CXX_dependencies_compiler_type=none
3737 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3738 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3739 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3744 test "x$enable_dependency_tracking" != xno \
3745 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3746 am__fastdepCXX_TRUE=
3747 am__fastdepCXX_FALSE='#'
3749 am__fastdepCXX_TRUE='#'
3750 am__fastdepCXX_FALSE=
3756 if test "$GCC" = yes; then
3763 # let the Makefile know if we're gcc
3765 # Check whether --enable-shared or --disable-shared was given.
3766 if test "${enable_shared+set}" = set; then
3767 enableval="$enable_shared"
3768 p=${PACKAGE-default}
3770 yes) enable_shared=yes ;;
3771 no) enable_shared=no ;;
3774 # Look at the argument we got. We use all the common list separators.
3775 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3776 for pkg in $enableval; do
3778 if test "X$pkg" = "X$p"; then
3789 # Check whether --enable-static or --disable-static was given.
3790 if test "${enable_static+set}" = set; then
3791 enableval="$enable_static"
3792 p=${PACKAGE-default}
3794 yes) enable_static=yes ;;
3795 no) enable_static=no ;;
3798 # Look at the argument we got. We use all the common list separators.
3799 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3800 for pkg in $enableval; do
3802 if test "X$pkg" = "X$p"; then
3813 # Check whether --enable-fast-install or --disable-fast-install was given.
3814 if test "${enable_fast_install+set}" = set; then
3815 enableval="$enable_fast_install"
3816 p=${PACKAGE-default}
3818 yes) enable_fast_install=yes ;;
3819 no) enable_fast_install=no ;;
3821 enable_fast_install=no
3822 # Look at the argument we got. We use all the common list separators.
3823 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3824 for pkg in $enableval; do
3826 if test "X$pkg" = "X$p"; then
3827 enable_fast_install=yes
3834 enable_fast_install=yes
3837 # Make sure we can run config.sub.
3838 $ac_config_sub sun4 >/dev/null 2>&1 ||
3839 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3840 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3841 { (exit 1); exit 1; }; }
3843 echo "$as_me:$LINENO: checking build system type" >&5
3844 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3845 if test "${ac_cv_build+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 ac_cv_build_alias=$build_alias
3849 test -z "$ac_cv_build_alias" &&
3850 ac_cv_build_alias=`$ac_config_guess`
3851 test -z "$ac_cv_build_alias" &&
3852 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3853 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3854 { (exit 1); exit 1; }; }
3855 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3856 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3857 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3858 { (exit 1); exit 1; }; }
3861 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3862 echo "${ECHO_T}$ac_cv_build" >&6
3864 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3865 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3866 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3869 echo "$as_me:$LINENO: checking host system type" >&5
3870 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3871 if test "${ac_cv_host+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 ac_cv_host_alias=$host_alias
3875 test -z "$ac_cv_host_alias" &&
3876 ac_cv_host_alias=$ac_cv_build_alias
3877 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3878 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3879 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3880 { (exit 1); exit 1; }; }
3883 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3884 echo "${ECHO_T}$ac_cv_host" >&6
3886 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3887 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3888 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3891 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3892 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3893 if test "${lt_cv_path_SED+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 # Loop through the user's path and test for sed and gsed.
3897 # Then use that list of sed's as ones to test for truncation.
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 test -z "$as_dir" && as_dir=.
3903 for lt_ac_prog in sed gsed; do
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3906 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3913 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3914 # along with /bin/sed that truncates output.
3915 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3916 test ! -f $lt_ac_sed && continue
3917 cat /dev/null > conftest.in
3919 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3920 # Check for GNU sed and select it if it is found.
3921 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3922 lt_cv_path_SED=$lt_ac_sed
3926 cat conftest.in conftest.in >conftest.tmp
3927 mv conftest.tmp conftest.in
3928 cp conftest.in conftest.nl
3930 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3931 cmp -s conftest.out conftest.nl || break
3932 # 10000 chars as input seems more than enough
3933 test $lt_ac_count -gt 10 && break
3934 lt_ac_count=`expr $lt_ac_count + 1`
3935 if test $lt_ac_count -gt $lt_ac_max; then
3936 lt_ac_max=$lt_ac_count
3937 lt_cv_path_SED=$lt_ac_sed
3945 echo "$as_me:$LINENO: result: $SED" >&5
3946 echo "${ECHO_T}$SED" >&6
3948 echo "$as_me:$LINENO: checking for egrep" >&5
3949 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3950 if test "${ac_cv_prog_egrep+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3954 then ac_cv_prog_egrep='grep -E'
3955 else ac_cv_prog_egrep='egrep'
3958 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3959 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3960 EGREP=$ac_cv_prog_egrep
3964 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3965 if test "${with_gnu_ld+set}" = set; then
3966 withval="$with_gnu_ld"
3967 test "$withval" = no || with_gnu_ld=yes
3972 if test "$GCC" = yes; then
3973 # Check if gcc -print-prog-name=ld gives a path.
3974 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3975 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3978 # gcc leaves a trailing carriage return which upsets mingw
3979 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3981 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3984 # Accept absolute paths.
3986 re_direlt='/[^/][^/]*/\.\./'
3987 # Canonicalize the pathname of ld
3988 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3989 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3990 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3992 test -z "$LD" && LD="$ac_prog"
3995 # If it fails, then pretend we aren't using GCC.
3999 # If it is relative, then search for the first ld in PATH.
4003 elif test "$with_gnu_ld" = yes; then
4004 echo "$as_me:$LINENO: checking for GNU ld" >&5
4005 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4007 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4008 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4010 if test "${lt_cv_path_LD+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 if test -z "$LD"; then
4014 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4015 for ac_dir in $PATH; do
4017 test -z "$ac_dir" && ac_dir=.
4018 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4019 lt_cv_path_LD="$ac_dir/$ac_prog"
4020 # Check to see if the program is GNU ld. I'd rather use --version,
4021 # but apparently some variants of GNU ld only accept -v.
4022 # Break only if it was the GNU/non-GNU ld that we prefer.
4023 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4024 *GNU* | *'with BFD'*)
4025 test "$with_gnu_ld" != no && break
4028 test "$with_gnu_ld" != yes && break
4035 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4040 if test -n "$LD"; then
4041 echo "$as_me:$LINENO: result: $LD" >&5
4042 echo "${ECHO_T}$LD" >&6
4044 echo "$as_me:$LINENO: result: no" >&5
4045 echo "${ECHO_T}no" >&6
4047 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4048 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4049 { (exit 1); exit 1; }; }
4050 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4051 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4052 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4056 case `$LD -v 2>&1 </dev/null` in
4057 *GNU* | *'with BFD'*)
4058 lt_cv_prog_gnu_ld=yes
4061 lt_cv_prog_gnu_ld=no
4065 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4066 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4067 with_gnu_ld=$lt_cv_prog_gnu_ld
4070 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4071 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4072 if test "${lt_cv_ld_reload_flag+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 lt_cv_ld_reload_flag='-r'
4077 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4078 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4079 reload_flag=$lt_cv_ld_reload_flag
4080 case $reload_flag in
4082 *) reload_flag=" $reload_flag" ;;
4084 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4087 if test "$GCC" = yes; then
4088 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4090 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4095 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4096 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4097 if test "${lt_cv_path_NM+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 if test -n "$NM"; then
4101 # Let the user override the test.
4104 lt_nm_to_check="${ac_tool_prefix}nm"
4105 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4106 lt_nm_to_check="$lt_nm_to_check nm"
4108 for lt_tmp_nm in $lt_nm_to_check; do
4109 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4110 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4112 test -z "$ac_dir" && ac_dir=.
4113 tmp_nm="$ac_dir/$lt_tmp_nm"
4114 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4115 # Check to see if the nm accepts a BSD-compat flag.
4116 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4117 # nm: unknown option "B" ignored
4118 # Tru64's nm complains that /dev/null is an invalid object file
4119 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4120 */dev/null* | *'Invalid file or object type'*)
4121 lt_cv_path_NM="$tmp_nm -B"
4125 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4127 lt_cv_path_NM="$tmp_nm -p"
4131 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4132 continue # so that we can try to find one that supports BSD flags
4141 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4144 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4145 echo "${ECHO_T}$lt_cv_path_NM" >&6
4148 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4149 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4151 if test "$LN_S" = "ln -s"; then
4152 echo "$as_me:$LINENO: result: yes" >&5
4153 echo "${ECHO_T}yes" >&6
4155 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4156 echo "${ECHO_T}no, using $LN_S" >&6
4159 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4160 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4161 if test "${lt_cv_deplibs_check_method+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 lt_cv_file_magic_cmd='$MAGIC_CMD'
4165 lt_cv_file_magic_test_file=
4166 lt_cv_deplibs_check_method='unknown'
4167 # Need to set the preceding variable on all platforms that support
4168 # interlibrary dependencies.
4169 # 'none' -- dependencies not supported.
4170 # `unknown' -- same as none, but documents that we really don't know.
4171 # 'pass_all' -- all dependencies passed with no checks.
4172 # 'test_compile' -- check by making test program.
4173 # 'file_magic [[regex]]' -- check by looking for files in library path
4174 # which responds to the $file_magic_cmd with a given extended regex.
4175 # If you have `file' or equivalent on your system and you're not sure
4176 # whether `pass_all' will *always* work, you probably want this one.
4180 lt_cv_deplibs_check_method=pass_all
4184 lt_cv_deplibs_check_method=pass_all
4188 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4189 lt_cv_file_magic_cmd='/usr/bin/file -L'
4190 lt_cv_file_magic_test_file=/shlib/libc.so
4194 # func_win32_libid is a shell function defined in ltmain.sh
4195 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4196 lt_cv_file_magic_cmd='func_win32_libid'
4200 # Base MSYS/MinGW do not provide the 'file' command needed by
4201 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4202 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4203 lt_cv_file_magic_cmd='$OBJDUMP -f'
4206 darwin* | rhapsody*)
4207 lt_cv_deplibs_check_method=pass_all
4210 freebsd* | kfreebsd*-gnu | dragonfly*)
4211 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4214 # Not sure whether the presence of OpenBSD here was a mistake.
4215 # Let's accept both of them until this is cleared up.
4216 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4217 lt_cv_file_magic_cmd=/usr/bin/file
4218 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4222 lt_cv_deplibs_check_method=pass_all
4227 lt_cv_deplibs_check_method=pass_all
4230 hpux10.20* | hpux11*)
4231 lt_cv_file_magic_cmd=/usr/bin/file
4234 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4235 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4238 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]'
4239 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4242 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4243 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4249 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4253 irix5* | irix6* | nonstopux*)
4255 *-32|*"-32 ") libmagic=32-bit;;
4256 *-n32|*"-n32 ") libmagic=N32;;
4257 *-64|*"-64 ") libmagic=64-bit;;
4258 *) libmagic=never-match;;
4260 lt_cv_deplibs_check_method=pass_all
4263 # This must be Linux ELF.
4265 lt_cv_deplibs_check_method=pass_all
4268 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4269 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4278 lt_cv_file_magic_cmd=/usr/bin/file
4279 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4283 lt_cv_deplibs_check_method=unknown
4287 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4294 osf3* | osf4* | osf5*)
4295 lt_cv_deplibs_check_method=pass_all
4299 lt_cv_deplibs_check_method=pass_all
4303 case $host_vendor in
4305 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]'
4306 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4309 lt_cv_deplibs_check_method=pass_all
4312 lt_cv_file_magic_cmd='/bin/file'
4313 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4316 lt_cv_file_magic_cmd='/bin/file'
4317 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4318 lt_cv_file_magic_test_file=/lib/libc.so
4321 lt_cv_deplibs_check_method=pass_all
4324 lt_cv_deplibs_check_method=pass_all
4329 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4330 lt_cv_deplibs_check_method=pass_all
4335 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4336 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4337 file_magic_cmd=$lt_cv_file_magic_cmd
4338 deplibs_check_method=$lt_cv_deplibs_check_method
4339 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4344 # If no C compiler was specified, use CC.
4347 # If no C compiler flags were specified, use CFLAGS.
4348 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4350 # Allow CC to be a program name with arguments.
4354 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4355 if test "${enable_libtool_lock+set}" = set; then
4356 enableval="$enable_libtool_lock"
4359 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4361 # Some flags need to be propagated to the compiler or linker for good
4365 # Find out which ABI we are using.
4366 echo 'int i;' > conftest.$ac_ext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368 (eval $ac_compile) 2>&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; then
4372 case `/usr/bin/file conftest.$ac_objext` in
4384 # Find out which ABI we are using.
4385 echo '#line 4385 "configure"' > conftest.$ac_ext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387 (eval $ac_compile) 2>&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; then
4391 if test "$lt_cv_prog_gnu_ld" = yes; then
4392 case `/usr/bin/file conftest.$ac_objext` in
4394 LD="${LD-ld} -melf32bsmip"
4397 LD="${LD-ld} -melf32bmipn32"
4400 LD="${LD-ld} -melf64bmip"
4404 case `/usr/bin/file conftest.$ac_objext` in
4420 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4421 # Find out which ABI we are using.
4422 echo 'int i;' > conftest.$ac_ext
4423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4424 (eval $ac_compile) 2>&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; then
4428 case `/usr/bin/file conftest.o` in
4432 LD="${LD-ld} -m elf_i386"
4434 ppc64-*linux*|powerpc64-*linux*)
4435 LD="${LD-ld} -m elf32ppclinux"
4438 LD="${LD-ld} -m elf_s390"
4441 LD="${LD-ld} -m elf32_sparc"
4448 LD="${LD-ld} -m elf_x86_64"
4450 ppc*-*linux*|powerpc*-*linux*)
4451 LD="${LD-ld} -m elf64ppc"
4454 LD="${LD-ld} -m elf64_s390"
4457 LD="${LD-ld} -m elf64_sparc"
4467 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4468 SAVE_CFLAGS="$CFLAGS"
4469 CFLAGS="$CFLAGS -belf"
4470 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4471 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4472 if test "${lt_cv_cc_needs_belf+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 ac_cpp='$CPP $CPPFLAGS'
4477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4481 cat >conftest.$ac_ext <<_ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4496 rm -f conftest.$ac_objext conftest$ac_exeext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4498 (eval $ac_link) 2>conftest.er1
4500 grep -v '^ *+' conftest.er1 >conftest.err
4502 cat conftest.err >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } &&
4505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; } &&
4511 { ac_try='test -s conftest$ac_exeext'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; }; then
4517 lt_cv_cc_needs_belf=yes
4519 echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4522 lt_cv_cc_needs_belf=no
4524 rm -f conftest.err conftest.$ac_objext \
4525 conftest$ac_exeext conftest.$ac_ext
4527 ac_cpp='$CPP $CPPFLAGS'
4528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4534 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4535 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4536 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4537 CFLAGS="$SAVE_CFLAGS"
4541 # Find out which ABI we are using.
4542 echo 'int i;' > conftest.$ac_ext
4543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4544 (eval $ac_compile) 2>&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; then
4548 case `/usr/bin/file conftest.o` in
4550 case $lt_cv_prog_gnu_ld in
4551 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4552 *) LD="${LD-ld} -64" ;;
4563 need_locks="$enable_libtool_lock"
4567 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4568 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4569 if test "${ac_cv_header_stdc+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 cat >conftest.$ac_ext <<_ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4591 rm -f conftest.$ac_objext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>conftest.er1
4595 grep -v '^ *+' conftest.er1 >conftest.err
4597 cat conftest.err >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; } &&
4606 { ac_try='test -s conftest.$ac_objext'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4612 ac_cv_header_stdc=yes
4614 echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4617 ac_cv_header_stdc=no
4619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4621 if test $ac_cv_header_stdc = yes; then
4622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4623 cat >conftest.$ac_ext <<_ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4633 $EGREP "memchr" >/dev/null 2>&1; then
4636 ac_cv_header_stdc=no
4642 if test $ac_cv_header_stdc = yes; then
4643 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4644 cat >conftest.$ac_ext <<_ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4654 $EGREP "free" >/dev/null 2>&1; then
4657 ac_cv_header_stdc=no
4663 if test $ac_cv_header_stdc = yes; then
4664 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4665 if test "$cross_compiling" = yes; then
4668 cat >conftest.$ac_ext <<_ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4675 #if ((' ' & 0x0FF) == 0x020)
4676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4679 # define ISLOWER(c) \
4680 (('a' <= (c) && (c) <= 'i') \
4681 || ('j' <= (c) && (c) <= 'r') \
4682 || ('s' <= (c) && (c) <= 'z'))
4683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4691 for (i = 0; i < 256; i++)
4692 if (XOR (islower (i), ISLOWER (i))
4693 || toupper (i) != TOUPPER (i))
4698 rm -f conftest$ac_exeext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4700 (eval $ac_link) 2>&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4711 echo "$as_me: program exited with status $ac_status" >&5
4712 echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4716 ac_cv_header_stdc=no
4718 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4722 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4723 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4724 if test $ac_cv_header_stdc = yes; then
4726 cat >>confdefs.h <<\_ACEOF
4727 #define STDC_HEADERS 1
4732 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4742 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4743 inttypes.h stdint.h unistd.h
4745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4746 echo "$as_me:$LINENO: checking for $ac_header" >&5
4747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 cat >conftest.$ac_ext <<_ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4757 $ac_includes_default
4759 #include <$ac_header>
4761 rm -f conftest.$ac_objext
4762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4763 (eval $ac_compile) 2>conftest.er1
4765 grep -v '^ *+' conftest.er1 >conftest.err
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } &&
4770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; } &&
4776 { ac_try='test -s conftest.$ac_objext'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then
4782 eval "$as_ac_Header=yes"
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4787 eval "$as_ac_Header=no"
4789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4794 cat >>confdefs.h <<_ACEOF
4795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4804 for ac_header in dlfcn.h
4806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4808 echo "$as_me:$LINENO: checking for $ac_header" >&5
4809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4816 # Is the header compilable?
4817 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4819 cat >conftest.$ac_ext <<_ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4825 $ac_includes_default
4826 #include <$ac_header>
4828 rm -f conftest.$ac_objext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830 (eval $ac_compile) 2>conftest.er1
4832 grep -v '^ *+' conftest.er1 >conftest.err
4834 cat conftest.err >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } &&
4837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; } &&
4843 { ac_try='test -s conftest.$ac_objext'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 ac_header_compiler=yes
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4854 ac_header_compiler=no
4856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4858 echo "${ECHO_T}$ac_header_compiler" >&6
4860 # Is the header present?
4861 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4863 cat >conftest.$ac_ext <<_ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4869 #include <$ac_header>
4871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4874 grep -v '^ *+' conftest.er1 >conftest.err
4876 cat conftest.err >&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } >/dev/null; then
4879 if test -s conftest.err; then
4880 ac_cpp_err=$ac_c_preproc_warn_flag
4881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4888 if test -z "$ac_cpp_err"; then
4889 ac_header_preproc=yes
4891 echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4894 ac_header_preproc=no
4896 rm -f conftest.err conftest.$ac_ext
4897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4898 echo "${ECHO_T}$ac_header_preproc" >&6
4900 # So? What about this header?
4901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4907 ac_header_preproc=yes
4910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4924 ## ------------------------------------ ##
4925 ## Report this to opensource@google.com ##
4926 ## ------------------------------------ ##
4929 sed "s/^/$as_me: WARNING: /" >&2
4932 echo "$as_me:$LINENO: checking for $ac_header" >&5
4933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 eval "$as_ac_Header=\$ac_header_preproc"
4939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4944 cat >>confdefs.h <<_ACEOF
4945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4954 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4955 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4956 (test "X$CXX" != "Xg++"))) ; then
4958 ac_cpp='$CXXCPP $CPPFLAGS'
4959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4962 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4963 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4964 if test -z "$CXXCPP"; then
4965 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 # Double quotes because CXXCPP needs to be expanded
4969 for CXXCPP in "$CXX -E" "/lib/cpp"
4972 for ac_cxx_preproc_warn_flag in '' yes
4974 # Use a header file that comes with gcc, so configuring glibc
4975 # with a fresh cross-compiler works.
4976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4977 # <limits.h> exists even on freestanding compilers.
4978 # On the NeXT, cc -E runs the code through the compiler's parser,
4979 # not just through cpp. "Syntax error" is here to catch this case.
4980 cat >conftest.$ac_ext <<_ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4987 # include <limits.h>
4989 # include <assert.h>
4993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4996 grep -v '^ *+' conftest.er1 >conftest.err
4998 cat conftest.err >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } >/dev/null; then
5001 if test -s conftest.err; then
5002 ac_cpp_err=$ac_cxx_preproc_warn_flag
5003 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5010 if test -z "$ac_cpp_err"; then
5013 echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5016 # Broken: fails on valid input.
5019 rm -f conftest.err conftest.$ac_ext
5021 # OK, works on sane cases. Now check whether non-existent headers
5022 # can be detected and how.
5023 cat >conftest.$ac_ext <<_ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5029 #include <ac_nonexistent.h>
5031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5034 grep -v '^ *+' conftest.er1 >conftest.err
5036 cat conftest.err >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); } >/dev/null; then
5039 if test -s conftest.err; then
5040 ac_cpp_err=$ac_cxx_preproc_warn_flag
5041 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5048 if test -z "$ac_cpp_err"; then
5049 # Broken: success on invalid input.
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5055 # Passes both tests.
5059 rm -f conftest.err conftest.$ac_ext
5062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5063 rm -f conftest.err conftest.$ac_ext
5064 if $ac_preproc_ok; then
5069 ac_cv_prog_CXXCPP=$CXXCPP
5072 CXXCPP=$ac_cv_prog_CXXCPP
5074 ac_cv_prog_CXXCPP=$CXXCPP
5076 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5077 echo "${ECHO_T}$CXXCPP" >&6
5079 for ac_cxx_preproc_warn_flag in '' yes
5081 # Use a header file that comes with gcc, so configuring glibc
5082 # with a fresh cross-compiler works.
5083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084 # <limits.h> exists even on freestanding compilers.
5085 # On the NeXT, cc -E runs the code through the compiler's parser,
5086 # not just through cpp. "Syntax error" is here to catch this case.
5087 cat >conftest.$ac_ext <<_ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5094 # include <limits.h>
5096 # include <assert.h>
5100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5103 grep -v '^ *+' conftest.er1 >conftest.err
5105 cat conftest.err >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } >/dev/null; then
5108 if test -s conftest.err; then
5109 ac_cpp_err=$ac_cxx_preproc_warn_flag
5110 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5117 if test -z "$ac_cpp_err"; then
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5123 # Broken: fails on valid input.
5126 rm -f conftest.err conftest.$ac_ext
5128 # OK, works on sane cases. Now check whether non-existent headers
5129 # can be detected and how.
5130 cat >conftest.$ac_ext <<_ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h. */
5136 #include <ac_nonexistent.h>
5138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5141 grep -v '^ *+' conftest.er1 >conftest.err
5143 cat conftest.err >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } >/dev/null; then
5146 if test -s conftest.err; then
5147 ac_cpp_err=$ac_cxx_preproc_warn_flag
5148 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5155 if test -z "$ac_cpp_err"; then
5156 # Broken: success on invalid input.
5159 echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.$ac_ext >&5
5162 # Passes both tests.
5166 rm -f conftest.err conftest.$ac_ext
5169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5170 rm -f conftest.err conftest.$ac_ext
5171 if $ac_preproc_ok; then
5174 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5175 See \`config.log' for more details." >&5
5176 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5177 See \`config.log' for more details." >&2;}
5178 { (exit 1); exit 1; }; }
5182 ac_cpp='$CXXCPP $CPPFLAGS'
5183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5191 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5192 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5193 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5194 if test -n "$ac_tool_prefix"; then
5195 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5197 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5198 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5199 echo "$as_me:$LINENO: checking for $ac_word" >&5
5200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5201 if test "${ac_cv_prog_F77+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 if test -n "$F77"; then
5205 ac_cv_prog_F77="$F77" # Let the user override the test.
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 if test -n "$F77"; then
5225 echo "$as_me:$LINENO: result: $F77" >&5
5226 echo "${ECHO_T}$F77" >&6
5228 echo "$as_me:$LINENO: result: no" >&5
5229 echo "${ECHO_T}no" >&6
5232 test -n "$F77" && break
5235 if test -z "$F77"; then
5237 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5239 # Extract the first word of "$ac_prog", so it can be a program name with args.
5240 set dummy $ac_prog; ac_word=$2
5241 echo "$as_me:$LINENO: checking for $ac_word" >&5
5242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5243 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 if test -n "$ac_ct_F77"; then
5247 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5256 ac_cv_prog_ac_ct_F77="$ac_prog"
5257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5266 if test -n "$ac_ct_F77"; then
5267 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5268 echo "${ECHO_T}$ac_ct_F77" >&6
5270 echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6
5274 test -n "$ac_ct_F77" && break
5281 # Provide some information about the compiler.
5282 echo "$as_me:5282:" \
5283 "checking for Fortran 77 compiler version" >&5
5284 ac_compiler=`set X $ac_compile; echo $2`
5285 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5286 (eval $ac_compiler --version </dev/null >&5) 2>&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }
5290 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5291 (eval $ac_compiler -v </dev/null >&5) 2>&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }
5295 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5296 (eval $ac_compiler -V </dev/null >&5) 2>&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }
5302 # If we don't use `.F' as extension, the preprocessor is not run on the
5303 # input file. (Note that this only needs to work for GNU compilers.)
5306 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5307 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5308 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 cat >conftest.$ac_ext <<_ACEOF
5319 rm -f conftest.$ac_objext
5320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5321 (eval $ac_compile) 2>conftest.er1
5323 grep -v '^ *+' conftest.er1 >conftest.err
5325 cat conftest.err >&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); } &&
5328 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; } &&
5334 { ac_try='test -s conftest.$ac_objext'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; }; then
5342 echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5348 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5351 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5352 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5354 ac_test_FFLAGS=${FFLAGS+set}
5355 ac_save_FFLAGS=$FFLAGS
5357 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5358 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5359 if test "${ac_cv_prog_f77_g+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 cat >conftest.$ac_ext <<_ACEOF
5368 rm -f conftest.$ac_objext
5369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5370 (eval $ac_compile) 2>conftest.er1
5372 grep -v '^ *+' conftest.er1 >conftest.err
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } &&
5377 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; } &&
5383 { ac_try='test -s conftest.$ac_objext'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5389 ac_cv_prog_f77_g=yes
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5399 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5400 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5401 if test "$ac_test_FFLAGS" = set; then
5402 FFLAGS=$ac_save_FFLAGS
5403 elif test $ac_cv_prog_f77_g = yes; then
5404 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5410 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5417 G77=`test $ac_compiler_gnu = yes && echo yes`
5419 ac_cpp='$CPP $CPPFLAGS'
5420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5428 # find the maximum length of command line arguments
5429 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5430 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5431 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 # On DJGPP, this test can blow up pretty badly due to problems in libc
5440 # (any single argument exceeding 2000 bytes causes a buffer overrun
5441 # during glob expansion). Even if it were fixed, the result of this
5442 # check would be larger than it should be.
5443 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5447 # Under GNU Hurd, this test is not required because there is
5448 # no limit to the length of command line arguments.
5449 # Libtool will interpret -1 as no limit whatsoever
5450 lt_cv_sys_max_cmd_len=-1;
5454 # On Win9x/ME, this test blows up -- it succeeds, but takes
5455 # about 5 minutes as the teststring grows exponentially.
5456 # Worse, since 9x/ME are not pre-emptively multitasking,
5457 # you end up with a "frozen" computer, even though with patience
5458 # the test eventually succeeds (with a max line length of 256k).
5459 # Instead, let's just punt: use the minimum linelength reported by
5460 # all of the supported platforms: 8192 (on NT/2K/XP).
5461 lt_cv_sys_max_cmd_len=8192;
5465 # On AmigaOS with pdksh, this test takes hours, literally.
5466 # So we just punt and use a minimum line length of 8192.
5467 lt_cv_sys_max_cmd_len=8192;
5470 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5471 # This has been around since 386BSD, at least. Likely further.
5472 if test -x /sbin/sysctl; then
5473 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5474 elif test -x /usr/sbin/sysctl; then
5475 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5477 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5479 # And add a safety zone
5480 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5481 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5485 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5486 lt_cv_sys_max_cmd_len=196608
5490 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5491 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5492 # nice to cause kernel panics so lets avoid the loop below.
5493 # First set a reasonable default.
5494 lt_cv_sys_max_cmd_len=16384
5496 if test -x /sbin/sysconfig; then
5497 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5498 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5503 lt_cv_sys_max_cmd_len=102400
5505 sysv5* | sco5v6* | sysv4.2uw2*)
5506 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5507 if test -n "$kargmax"; then
5508 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5510 lt_cv_sys_max_cmd_len=32768
5514 # If test is not a shell built-in, we'll probably end up computing a
5515 # maximum length that is only half of the actual maximum length, but
5517 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5518 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5519 = "XX$teststring") >/dev/null 2>&1 &&
5520 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5521 lt_cv_sys_max_cmd_len=$new_result &&
5522 test $i != 17 # 1/2 MB should be enough
5525 teststring=$teststring$teststring
5528 # Add a significant safety factor because C++ compilers can tack on massive
5529 # amounts of additional arguments before passing them to the linker.
5530 # It appears as though 1/2 is a usable value.
5531 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5537 if test -n $lt_cv_sys_max_cmd_len ; then
5538 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5539 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5541 echo "$as_me:$LINENO: result: none" >&5
5542 echo "${ECHO_T}none" >&6
5548 # Check for command to grab the raw symbol name followed by C symbol from nm.
5549 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5550 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5551 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 # These are sane defaults that work on at least a few old systems.
5556 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5558 # Character class describing NM global symbol codes.
5559 symcode='[BCDEGRST]'
5561 # Regexp to match symbols that can be accessed directly from C.
5562 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5564 # Transform an extracted symbol line into a proper C declaration
5565 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5567 # Transform an extracted symbol line into symbol name and symbol address
5568 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'"
5570 # Define system-specific variables.
5575 cygwin* | mingw* | pw32*)
5576 symcode='[ABCDGISTW]'
5578 hpux*) # Its linker distinguishes data from code symbols
5579 if test "$host_cpu" = ia64; then
5580 symcode='[ABCDEGRST]'
5582 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5583 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'"
5586 if test "$host_cpu" = ia64; then
5587 symcode='[ABCDGIRSTW]'
5588 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5589 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'"
5593 symcode='[BCDEGRST]'
5596 symcode='[BCDEGQRST]'
5607 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5615 # Handle CRLF in mingw tool chain
5619 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5623 # If we're using GNU nm, then use its standard symbol codes.
5624 case `$NM -V 2>&1` in
5625 *GNU* | *'with BFD'*)
5626 symcode='[ABCDGIRSTW]' ;;
5629 # Try without a prefix undercore, then with it.
5630 for ac_symprfx in "" "_"; do
5632 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5633 symxfrm="\\1 $ac_symprfx\\2 \\2"
5635 # Write the raw and C identifiers.
5636 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5638 # Check to see that the pipe works correctly.
5642 cat > conftest.$ac_ext <<EOF
5647 void nm_test_func(){}
5651 int main(){nm_test_var='a';nm_test_func();return(0);}
5654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5655 (eval $ac_compile) 2>&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }; then
5659 # Now try to grab the symbols.
5661 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5662 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } && test -s "$nlist"; then
5666 # Try sorting and uniquifying the output.
5667 if sort "$nlist" | uniq > "$nlist"T; then
5668 mv -f "$nlist"T "$nlist"
5673 # Make sure that we snagged all the symbols we need.
5674 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5675 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5676 cat <<EOF > conftest.$ac_ext
5682 # Now generate the symbol file.
5683 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5685 cat <<EOF >> conftest.$ac_ext
5686 #if defined (__STDC__) && __STDC__
5687 # define lt_ptr_t void *
5689 # define lt_ptr_t char *
5693 /* The mapping between symbol names and symbols. */
5698 lt_preloaded_symbols[] =
5701 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5702 cat <<\EOF >> conftest.$ac_ext
5710 # Now try linking the two files.
5711 mv conftest.$ac_objext conftstm.$ac_objext
5712 lt_save_LIBS="$LIBS"
5713 lt_save_CFLAGS="$CFLAGS"
5714 LIBS="conftstm.$ac_objext"
5715 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5717 (eval $ac_link) 2>&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5723 LIBS="$lt_save_LIBS"
5724 CFLAGS="$lt_save_CFLAGS"
5726 echo "cannot find nm_test_func in $nlist" >&5
5729 echo "cannot find nm_test_var in $nlist" >&5
5732 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5735 echo "$progname: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5738 rm -f conftest* conftst*
5740 # Do not use the global_symbol_pipe unless it works.
5741 if test "$pipe_works" = yes; then
5744 lt_cv_sys_global_symbol_pipe=
5750 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5751 lt_cv_sys_global_symbol_to_cdecl=
5753 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5754 echo "$as_me:$LINENO: result: failed" >&5
5755 echo "${ECHO_T}failed" >&6
5757 echo "$as_me:$LINENO: result: ok" >&5
5758 echo "${ECHO_T}ok" >&6
5761 echo "$as_me:$LINENO: checking for objdir" >&5
5762 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5763 if test "${lt_cv_objdir+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 rm -f .libs 2>/dev/null
5767 mkdir .libs 2>/dev/null
5768 if test -d .libs; then
5771 # MS-DOS does not allow filenames that begin with a dot.
5774 rmdir .libs 2>/dev/null
5776 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5777 echo "${ECHO_T}$lt_cv_objdir" >&6
5778 objdir=$lt_cv_objdir
5786 # AIX sometimes has problems with the GCC collect2 program. For some
5787 # reason, if we set the COLLECT_NAMES environment variable, the problems
5788 # vanish in a puff of smoke.
5789 if test "X${COLLECT_NAMES+set}" != Xset; then
5791 export COLLECT_NAMES
5796 # Sed substitution that helps us do robust quoting. It backslashifies
5797 # metacharacters that are still active within double-quoted strings.
5798 Xsed='sed -e 1s/^X//'
5799 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5801 # Same as above, but do not quote variable references.
5802 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5804 # Sed substitution to delay expansion of an escaped shell variable in a
5805 # double_quote_subst'ed string.
5806 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5808 # Sed substitution to avoid accidental globbing in evaled expressions
5809 no_glob_subst='s/\*/\\\*/g'
5815 default_ofile=libtool
5816 can_build_shared=yes
5818 # All known linkers require a `.a' archive for static linking (except MSVC,
5819 # which needs '.lib').
5821 ltmain="$ac_aux_dir/ltmain.sh"
5822 ofile="$default_ofile"
5823 with_gnu_ld="$lt_cv_prog_gnu_ld"
5825 if test -n "$ac_tool_prefix"; then
5826 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5827 set dummy ${ac_tool_prefix}ar; ac_word=$2
5828 echo "$as_me:$LINENO: checking for $ac_word" >&5
5829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5830 if test "${ac_cv_prog_AR+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 if test -n "$AR"; then
5834 ac_cv_prog_AR="$AR" # Let the user override the test.
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5843 ac_cv_prog_AR="${ac_tool_prefix}ar"
5844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 if test -n "$AR"; then
5854 echo "$as_me:$LINENO: result: $AR" >&5
5855 echo "${ECHO_T}$AR" >&6
5857 echo "$as_me:$LINENO: result: no" >&5
5858 echo "${ECHO_T}no" >&6
5862 if test -z "$ac_cv_prog_AR"; then
5864 # Extract the first word of "ar", so it can be a program name with args.
5865 set dummy ar; ac_word=$2
5866 echo "$as_me:$LINENO: checking for $ac_word" >&5
5867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5868 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 if test -n "$ac_ct_AR"; then
5872 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5881 ac_cv_prog_ac_ct_AR="ar"
5882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5891 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5892 if test -n "$ac_ct_AR"; then
5893 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5894 echo "${ECHO_T}$ac_ct_AR" >&6
5896 echo "$as_me:$LINENO: result: no" >&5
5897 echo "${ECHO_T}no" >&6
5905 if test -n "$ac_tool_prefix"; then
5906 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5907 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5908 echo "$as_me:$LINENO: checking for $ac_word" >&5
5909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5910 if test "${ac_cv_prog_RANLIB+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 if test -n "$RANLIB"; then
5914 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5923 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 RANLIB=$ac_cv_prog_RANLIB
5933 if test -n "$RANLIB"; then
5934 echo "$as_me:$LINENO: result: $RANLIB" >&5
5935 echo "${ECHO_T}$RANLIB" >&6
5937 echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6
5942 if test -z "$ac_cv_prog_RANLIB"; then
5943 ac_ct_RANLIB=$RANLIB
5944 # Extract the first word of "ranlib", so it can be a program name with args.
5945 set dummy ranlib; ac_word=$2
5946 echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5948 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 if test -n "$ac_ct_RANLIB"; then
5952 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961 ac_cv_prog_ac_ct_RANLIB="ranlib"
5962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5971 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5972 if test -n "$ac_ct_RANLIB"; then
5973 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5974 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5976 echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6
5980 RANLIB=$ac_ct_RANLIB
5982 RANLIB="$ac_cv_prog_RANLIB"
5985 if test -n "$ac_tool_prefix"; then
5986 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5987 set dummy ${ac_tool_prefix}strip; ac_word=$2
5988 echo "$as_me:$LINENO: checking for $ac_word" >&5
5989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5990 if test "${ac_cv_prog_STRIP+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 if test -n "$STRIP"; then
5994 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 test -z "$as_dir" && as_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6003 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 STRIP=$ac_cv_prog_STRIP
6013 if test -n "$STRIP"; then
6014 echo "$as_me:$LINENO: result: $STRIP" >&5
6015 echo "${ECHO_T}$STRIP" >&6
6017 echo "$as_me:$LINENO: result: no" >&5
6018 echo "${ECHO_T}no" >&6
6022 if test -z "$ac_cv_prog_STRIP"; then
6024 # Extract the first word of "strip", so it can be a program name with args.
6025 set dummy strip; ac_word=$2
6026 echo "$as_me:$LINENO: checking for $ac_word" >&5
6027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6028 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 if test -n "$ac_ct_STRIP"; then
6032 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6041 ac_cv_prog_ac_ct_STRIP="strip"
6042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6051 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6052 if test -n "$ac_ct_STRIP"; then
6053 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6054 echo "${ECHO_T}$ac_ct_STRIP" >&6
6056 echo "$as_me:$LINENO: result: no" >&5
6057 echo "${ECHO_T}no" >&6
6062 STRIP="$ac_cv_prog_STRIP"
6067 old_CFLAGS="$CFLAGS"
6069 # Set sane defaults for various variables
6070 test -z "$AR" && AR=ar
6071 test -z "$AR_FLAGS" && AR_FLAGS=cru
6072 test -z "$AS" && AS=as
6073 test -z "$CC" && CC=cc
6074 test -z "$LTCC" && LTCC=$CC
6075 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6076 test -z "$DLLTOOL" && DLLTOOL=dlltool
6077 test -z "$LD" && LD=ld
6078 test -z "$LN_S" && LN_S="ln -s"
6079 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6080 test -z "$NM" && NM=nm
6081 test -z "$SED" && SED=sed
6082 test -z "$OBJDUMP" && OBJDUMP=objdump
6083 test -z "$RANLIB" && RANLIB=:
6084 test -z "$STRIP" && STRIP=:
6085 test -z "$ac_objext" && ac_objext=o
6087 # Determine commands to create old-style static archives.
6088 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6089 old_postinstall_cmds='chmod 644 $oldlib'
6090 old_postuninstall_cmds=
6092 if test -n "$RANLIB"; then
6095 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6098 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6101 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6104 for cc_temp in $compiler""; do
6106 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6107 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6112 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6115 # Only perform the check for file, if the check method requires it
6116 case $deplibs_check_method in
6118 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6119 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6120 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6121 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6129 lt_save_MAGIC_CMD="$MAGIC_CMD"
6130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6131 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6132 for ac_dir in $ac_dummy; do
6134 test -z "$ac_dir" && ac_dir=.
6135 if test -f $ac_dir/${ac_tool_prefix}file; then
6136 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6137 if test -n "$file_magic_test_file"; then
6138 case $deplibs_check_method in
6140 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6142 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6143 $EGREP "$file_magic_regex" > /dev/null; then
6148 *** Warning: the command libtool uses to detect shared libraries,
6149 *** $file_magic_cmd, produces output that libtool cannot recognize.
6150 *** The result is that libtool may fail to recognize shared libraries
6151 *** as such. This will affect the creation of libtool libraries that
6152 *** depend on shared libraries, but programs linked with such libtool
6153 *** libraries will work regardless of this problem. Nevertheless, you
6154 *** may want to report the problem to your system manager and/or to
6155 *** bug-libtool@gnu.org
6165 MAGIC_CMD="$lt_save_MAGIC_CMD"
6170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6171 if test -n "$MAGIC_CMD"; then
6172 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6173 echo "${ECHO_T}$MAGIC_CMD" >&6
6175 echo "$as_me:$LINENO: result: no" >&5
6176 echo "${ECHO_T}no" >&6
6179 if test -z "$lt_cv_path_MAGIC_CMD"; then
6180 if test -n "$ac_tool_prefix"; then
6181 echo "$as_me:$LINENO: checking for file" >&5
6182 echo $ECHO_N "checking for file... $ECHO_C" >&6
6183 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6191 lt_save_MAGIC_CMD="$MAGIC_CMD"
6192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6193 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6194 for ac_dir in $ac_dummy; do
6196 test -z "$ac_dir" && ac_dir=.
6197 if test -f $ac_dir/file; then
6198 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6199 if test -n "$file_magic_test_file"; then
6200 case $deplibs_check_method in
6202 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6204 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6205 $EGREP "$file_magic_regex" > /dev/null; then
6210 *** Warning: the command libtool uses to detect shared libraries,
6211 *** $file_magic_cmd, produces output that libtool cannot recognize.
6212 *** The result is that libtool may fail to recognize shared libraries
6213 *** as such. This will affect the creation of libtool libraries that
6214 *** depend on shared libraries, but programs linked with such libtool
6215 *** libraries will work regardless of this problem. Nevertheless, you
6216 *** may want to report the problem to your system manager and/or to
6217 *** bug-libtool@gnu.org
6227 MAGIC_CMD="$lt_save_MAGIC_CMD"
6232 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6233 if test -n "$MAGIC_CMD"; then
6234 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6235 echo "${ECHO_T}$MAGIC_CMD" >&6
6237 echo "$as_me:$LINENO: result: no" >&5
6238 echo "${ECHO_T}no" >&6
6253 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6254 if test "${enable_libtool_lock+set}" = set; then
6255 enableval="$enable_libtool_lock"
6258 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6261 # Check whether --with-pic or --without-pic was given.
6262 if test "${with_pic+set}" = set; then
6268 test -z "$pic_mode" && pic_mode=default
6270 # Use C for the default configuration in the libtool script
6274 ac_cpp='$CPP $CPPFLAGS'
6275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6280 # Source file extension for C test sources.
6283 # Object file extension for compiled C test sources.
6287 # Code to be used in simple compile tests
6288 lt_simple_compile_test_code="int some_variable = 0;\n"
6290 # Code to be used in simple link tests
6291 lt_simple_link_test_code='int main(){return(0);}\n'
6294 # If no C compiler was specified, use CC.
6297 # If no C compiler flags were specified, use CFLAGS.
6298 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6300 # Allow CC to be a program name with arguments.
6304 # save warnings/boilerplate of simple test code
6305 ac_outfile=conftest.$ac_objext
6306 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6307 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6308 _lt_compiler_boilerplate=`cat conftest.err`
6311 ac_outfile=conftest.$ac_objext
6312 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6313 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6314 _lt_linker_boilerplate=`cat conftest.err`
6319 lt_prog_compiler_no_builtin_flag=
6321 if test "$GCC" = yes; then
6322 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6325 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6326 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6327 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 lt_cv_prog_compiler_rtti_exceptions=no
6331 ac_outfile=conftest.$ac_objext
6332 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6333 lt_compiler_flag="-fno-rtti -fno-exceptions"
6334 # Insert the option either (1) after the last *FLAGS variable, or
6335 # (2) before a word containing "conftest.", or (3) at the end.
6336 # Note that $ac_compile itself does not contain backslashes and begins
6337 # with a dollar sign (not a hyphen), so the echo should work correctly.
6338 # The option is referenced via a variable to avoid confusing sed.
6339 lt_compile=`echo "$ac_compile" | $SED \
6340 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6342 -e 's:$: $lt_compiler_flag:'`
6343 (eval echo "\"\$as_me:6343: $lt_compile\"" >&5)
6344 (eval "$lt_compile" 2>conftest.err)
6346 cat conftest.err >&5
6347 echo "$as_me:6347: \$? = $ac_status" >&5
6348 if (exit $ac_status) && test -s "$ac_outfile"; then
6349 # The compiler can only warn and ignore the option if not recognized
6350 # So say no if there are warnings other than the usual output.
6351 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6352 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6353 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6354 lt_cv_prog_compiler_rtti_exceptions=yes
6360 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6361 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6363 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6364 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6371 lt_prog_compiler_wl=
6372 lt_prog_compiler_pic=
6373 lt_prog_compiler_static=
6375 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6376 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6378 if test "$GCC" = yes; then
6379 lt_prog_compiler_wl='-Wl,'
6380 lt_prog_compiler_static='-static'
6384 # All AIX code is PIC.
6385 if test "$host_cpu" = ia64; then
6386 # AIX 5 now supports IA64 processor
6387 lt_prog_compiler_static='-Bstatic'
6392 # FIXME: we need at least 68020 code to build shared libraries, but
6393 # adding the `-m68020' flag to GCC prevents building anything better,
6395 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6398 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6399 # PIC is the default for these OSes.
6402 mingw* | pw32* | os2*)
6403 # This hack is so that the source file can tell whether it is being
6404 # built for inclusion in a dll (and should export symbols for example).
6405 lt_prog_compiler_pic='-DDLL_EXPORT'
6408 darwin* | rhapsody*)
6409 # PIC is the default on this platform
6410 # Common symbols not allowed in MH_DYLIB files
6411 lt_prog_compiler_pic='-fno-common'
6415 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6416 # Instead, we relocate shared libraries at runtime.
6420 # Just because we use GCC doesn't mean we suddenly get shared libraries
6421 # on systems that don't support them.
6422 lt_prog_compiler_can_build_shared=no
6427 if test -d /usr/nec; then
6428 lt_prog_compiler_pic=-Kconform_pic
6433 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6440 lt_prog_compiler_pic='-fPIC'
6446 lt_prog_compiler_pic='-fPIC'
6450 # PORTME Check for flag to pass linker flags through the system compiler.
6453 lt_prog_compiler_wl='-Wl,'
6454 if test "$host_cpu" = ia64; then
6455 # AIX 5 now supports IA64 processor
6456 lt_prog_compiler_static='-Bstatic'
6458 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6462 # PIC is the default on this platform
6463 # Common symbols not allowed in MH_DYLIB files
6464 case $cc_basename in
6466 lt_prog_compiler_pic='-qnocommon'
6467 lt_prog_compiler_wl='-Wl,'
6472 mingw* | pw32* | os2*)
6473 # This hack is so that the source file can tell whether it is being
6474 # built for inclusion in a dll (and should export symbols for example).
6475 lt_prog_compiler_pic='-DDLL_EXPORT'
6478 hpux9* | hpux10* | hpux11*)
6479 lt_prog_compiler_wl='-Wl,'
6480 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6487 lt_prog_compiler_pic='+Z'
6490 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6491 lt_prog_compiler_static='${wl}-a ${wl}archive'
6494 irix5* | irix6* | nonstopux*)
6495 lt_prog_compiler_wl='-Wl,'
6496 # PIC (with -KPIC) is the default.
6497 lt_prog_compiler_static='-non_shared'
6501 lt_prog_compiler_pic='-KPIC'
6502 lt_prog_compiler_static='-Bstatic'
6506 case $cc_basename in
6508 lt_prog_compiler_wl='-Wl,'
6509 lt_prog_compiler_pic='-KPIC'
6510 lt_prog_compiler_static='-static'
6512 pgcc* | pgf77* | pgf90* | pgf95*)
6513 # Portland Group compilers (*not* the Pentium gcc compiler,
6514 # which looks to be a dead project)
6515 lt_prog_compiler_wl='-Wl,'
6516 lt_prog_compiler_pic='-fpic'
6517 lt_prog_compiler_static='-Bstatic'
6520 lt_prog_compiler_wl='-Wl,'
6521 # All Alpha code is PIC.
6522 lt_prog_compiler_static='-non_shared'
6527 osf3* | osf4* | osf5*)
6528 lt_prog_compiler_wl='-Wl,'
6529 # All OSF/1 code is PIC.
6530 lt_prog_compiler_static='-non_shared'
6534 lt_prog_compiler_pic='-KPIC'
6535 lt_prog_compiler_static='-Bstatic'
6536 case $cc_basename in
6538 lt_prog_compiler_wl='-Qoption ld ';;
6540 lt_prog_compiler_wl='-Wl,';;
6545 lt_prog_compiler_wl='-Qoption ld '
6546 lt_prog_compiler_pic='-PIC'
6547 lt_prog_compiler_static='-Bstatic'
6550 sysv4 | sysv4.2uw2* | sysv4.3*)
6551 lt_prog_compiler_wl='-Wl,'
6552 lt_prog_compiler_pic='-KPIC'
6553 lt_prog_compiler_static='-Bstatic'
6557 if test -d /usr/nec ;then
6558 lt_prog_compiler_pic='-Kconform_pic'
6559 lt_prog_compiler_static='-Bstatic'
6563 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6564 lt_prog_compiler_wl='-Wl,'
6565 lt_prog_compiler_pic='-KPIC'
6566 lt_prog_compiler_static='-Bstatic'
6570 lt_prog_compiler_wl='-Wl,'
6571 lt_prog_compiler_can_build_shared=no
6575 lt_prog_compiler_pic='-pic'
6576 lt_prog_compiler_static='-Bstatic'
6580 lt_prog_compiler_can_build_shared=no
6585 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6586 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6589 # Check to make sure the PIC flag actually works.
6591 if test -n "$lt_prog_compiler_pic"; then
6593 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6594 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6595 if test "${lt_prog_compiler_pic_works+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 lt_prog_compiler_pic_works=no
6599 ac_outfile=conftest.$ac_objext
6600 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6601 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6602 # Insert the option either (1) after the last *FLAGS variable, or
6603 # (2) before a word containing "conftest.", or (3) at the end.
6604 # Note that $ac_compile itself does not contain backslashes and begins
6605 # with a dollar sign (not a hyphen), so the echo should work correctly.
6606 # The option is referenced via a variable to avoid confusing sed.
6607 lt_compile=`echo "$ac_compile" | $SED \
6608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6610 -e 's:$: $lt_compiler_flag:'`
6611 (eval echo "\"\$as_me:6611: $lt_compile\"" >&5)
6612 (eval "$lt_compile" 2>conftest.err)
6614 cat conftest.err >&5
6615 echo "$as_me:6615: \$? = $ac_status" >&5
6616 if (exit $ac_status) && test -s "$ac_outfile"; then
6617 # The compiler can only warn and ignore the option if not recognized
6618 # So say no if there are warnings other than the usual output.
6619 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6620 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6621 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6622 lt_prog_compiler_pic_works=yes
6628 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6629 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6631 if test x"$lt_prog_compiler_pic_works" = xyes; then
6632 case $lt_prog_compiler_pic in
6634 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6637 lt_prog_compiler_pic=
6638 lt_prog_compiler_can_build_shared=no
6643 # For platforms which do not support PIC, -DPIC is meaningless:
6645 lt_prog_compiler_pic=
6648 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6653 # Check to make sure the static flag actually works.
6655 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6656 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6657 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6658 if test "${lt_prog_compiler_static_works+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 lt_prog_compiler_static_works=no
6662 save_LDFLAGS="$LDFLAGS"
6663 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6664 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6665 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6666 # The linker can only warn and ignore the option if not recognized
6667 # So say no if there are warnings
6668 if test -s conftest.err; then
6669 # Append any errors to the config.log.
6670 cat conftest.err 1>&5
6671 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6673 if diff conftest.exp conftest.er2 >/dev/null; then
6674 lt_prog_compiler_static_works=yes
6677 lt_prog_compiler_static_works=yes
6681 LDFLAGS="$save_LDFLAGS"
6684 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6685 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6687 if test x"$lt_prog_compiler_static_works" = xyes; then
6690 lt_prog_compiler_static=
6694 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6695 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6696 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 lt_cv_prog_compiler_c_o=no
6700 $rm -r conftest 2>/dev/null
6704 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6706 lt_compiler_flag="-o out/conftest2.$ac_objext"
6707 # Insert the option either (1) after the last *FLAGS variable, or
6708 # (2) before a word containing "conftest.", or (3) at the end.
6709 # Note that $ac_compile itself does not contain backslashes and begins
6710 # with a dollar sign (not a hyphen), so the echo should work correctly.
6711 lt_compile=`echo "$ac_compile" | $SED \
6712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6714 -e 's:$: $lt_compiler_flag:'`
6715 (eval echo "\"\$as_me:6715: $lt_compile\"" >&5)
6716 (eval "$lt_compile" 2>out/conftest.err)
6718 cat out/conftest.err >&5
6719 echo "$as_me:6719: \$? = $ac_status" >&5
6720 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6722 # The compiler can only warn and ignore the option if not recognized
6723 # So say no if there are warnings
6724 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6725 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6726 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6727 lt_cv_prog_compiler_c_o=yes
6732 # SGI C++ compiler will create directory out/ii_files/ for
6733 # template instantiation
6734 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6735 $rm out/* && rmdir out
6741 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6742 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6745 hard_links="nottested"
6746 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6747 # do not overwrite the value of need_locks provided by the user
6748 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6749 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6754 ln conftest.a conftest.b 2>&5 || hard_links=no
6755 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6756 echo "$as_me:$LINENO: result: $hard_links" >&5
6757 echo "${ECHO_T}$hard_links" >&6
6758 if test "$hard_links" = no; then
6759 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6760 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6767 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6768 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6771 allow_undefined_flag=
6772 enable_shared_with_static_runtimes=no
6774 archive_expsym_cmds=
6775 old_archive_From_new_cmds=
6776 old_archive_from_expsyms_cmds=
6777 export_dynamic_flag_spec=
6778 whole_archive_flag_spec=
6779 thread_safe_flag_spec=
6780 hardcode_libdir_flag_spec=
6781 hardcode_libdir_flag_spec_ld=
6782 hardcode_libdir_separator=
6785 hardcode_shlibpath_var=unsupported
6786 link_all_deplibs=unknown
6787 hardcode_automatic=no
6790 always_export_symbols=no
6791 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6792 # include_expsyms should be a list of space-separated symbols to be *always*
6793 # included in the symbol list
6795 # exclude_expsyms can be an extended regexp of symbols to exclude
6796 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6797 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6798 # as well as any symbol that contains `d'.
6799 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6800 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6801 # platforms (ab)use it in PIC code, but their linkers get confused if
6802 # the symbol is explicitly referenced. Since portable code cannot
6803 # rely on this symbol name, it's probably fine to never include it in
6804 # preloaded symbol tables.
6805 extract_expsyms_cmds=
6806 # Just being paranoid about ensuring that cc_basename is set.
6807 for cc_temp in $compiler""; do
6809 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6810 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6815 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6818 cygwin* | mingw* | pw32*)
6819 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6820 # When not using gcc, we currently assume that we are using
6821 # Microsoft Visual C++.
6822 if test "$GCC" != yes; then
6827 # we just hope/assume this is gcc and not c89 (= MSVC++)
6836 if test "$with_gnu_ld" = yes; then
6837 # If archive_cmds runs LD, not CC, wlarc should be empty
6840 # Set some defaults for GNU ld with shared library support. These
6841 # are reset later if shared libraries are not supported. Putting them
6842 # here allows them to be overridden if necessary.
6843 runpath_var=LD_RUN_PATH
6844 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6845 export_dynamic_flag_spec='${wl}--export-dynamic'
6846 # ancient GNU ld didn't support --whole-archive et. al.
6847 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6848 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6850 whole_archive_flag_spec=
6852 supports_anon_versioning=no
6853 case `$LD -v 2>/dev/null` in
6854 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6855 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6856 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6857 *\ 2.11.*) ;; # other 2.11 versions
6858 *) supports_anon_versioning=yes ;;
6861 # See if GNU ld supports shared libraries.
6863 aix3* | aix4* | aix5*)
6864 # On AIX/PPC, the GNU linker is very broken
6865 if test "$host_cpu" != ia64; then
6869 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6870 *** to be unable to reliably create shared libraries on AIX.
6871 *** Therefore, libtool is disabling shared libraries support. If you
6872 *** really care for shared libraries, you may want to modify your PATH
6873 *** so that a non-GNU linker is found, and then restart.
6880 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)'
6881 hardcode_libdir_flag_spec='-L$libdir'
6882 hardcode_minus_L=yes
6884 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6885 # that the semantics of dynamic libraries on AmigaOS, at least up
6886 # to version 4, is to share data among multiple programs linked
6887 # with the same dynamic library. Since this doesn't match the
6888 # behavior of shared libraries on other platforms, we can't use
6894 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6895 allow_undefined_flag=unsupported
6896 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6897 # support --undefined. This deserves some investigation. FIXME
6898 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6904 cygwin* | mingw* | pw32*)
6905 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6906 # as there is no search path for DLLs.
6907 hardcode_libdir_flag_spec='-L$libdir'
6908 allow_undefined_flag=unsupported
6909 always_export_symbols=no
6910 enable_shared_with_static_runtimes=yes
6911 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6913 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6915 # If the export-symbols file already is a .def file (1st line
6916 # is EXPORTS), use it as is; otherwise, prepend...
6917 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6918 cp $export_symbols $output_objdir/$soname.def;
6920 echo EXPORTS > $output_objdir/$soname.def;
6921 cat $export_symbols >> $output_objdir/$soname.def;
6923 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6931 hardcode_shlibpath_var=no
6932 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6933 export_dynamic_flag_spec='${wl}-E'
6934 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6935 # Instead, shared libraries are loaded at an image base (0x10000000 by
6936 # default) and relocated if they conflict, which is a slow very memory
6937 # consuming and fragmenting process. To avoid this, we pick a random,
6938 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6939 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6940 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6941 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6945 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6947 case $cc_basename,$host_cpu in
6948 pgcc*) # Portland Group C compiler
6949 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6950 tmp_addflag=' $pic_flag'
6952 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6953 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6954 tmp_addflag=' $pic_flag -Mnomain' ;;
6955 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6956 tmp_addflag=' -i_dynamic' ;;
6957 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6958 tmp_addflag=' -i_dynamic -nofor_main' ;;
6959 ifc* | ifort*) # Intel Fortran compiler
6960 tmp_addflag=' -nofor_main' ;;
6962 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6964 if test $supports_anon_versioning = yes; then
6965 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6966 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6967 $echo "local: *; };" >> $output_objdir/$libname.ver~
6968 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6976 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6977 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6978 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6987 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6991 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6992 *** create shared libraries on Solaris systems. Therefore, libtool
6993 *** is disabling shared libraries support. We urge you to upgrade GNU
6994 *** binutils to release 2.9.1 or newer. Another option is to modify
6995 *** your PATH or compiler configuration so that the native linker is
6996 *** used, and then restart.
6999 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7001 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7007 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7008 case `$LD -v 2>&1` in
7009 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7013 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7014 *** reliably create shared libraries on SCO systems. Therefore, libtool
7015 *** is disabling shared libraries support. We urge you to upgrade GNU
7016 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7017 *** your PATH or compiler configuration so that the native linker is
7018 *** used, and then restart.
7023 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7024 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7026 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7035 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7038 hardcode_shlibpath_var=no
7042 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7044 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7051 if test "$ld_shlibs" = no; then
7053 hardcode_libdir_flag_spec=
7054 export_dynamic_flag_spec=
7055 whole_archive_flag_spec=
7058 # PORTME fill in a description of your system's linker (not GNU ld)
7061 allow_undefined_flag=unsupported
7062 always_export_symbols=yes
7063 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'
7064 # Note: this linker hardcodes the directories in LIBPATH if there
7065 # are no directories specified by -L.
7066 hardcode_minus_L=yes
7067 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7068 # Neither direct hardcoding nor static linking is supported with a
7070 hardcode_direct=unsupported
7075 if test "$host_cpu" = ia64; then
7076 # On IA64, the linker does run time linking by default, so we don't
7077 # have to do anything special.
7078 aix_use_runtimelinking=no
7079 exp_sym_flag='-Bexport'
7082 # If we're using GNU nm, then we don't want the "-C" option.
7083 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7084 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7085 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'
7087 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'
7089 aix_use_runtimelinking=no
7091 # Test if we are trying to use run time linking or normal
7092 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7093 # need to do runtime linking.
7094 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7095 for ld_flag in $LDFLAGS; do
7096 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7097 aix_use_runtimelinking=yes
7104 exp_sym_flag='-bexport'
7105 no_entry_flag='-bnoentry'
7108 # When large executables or shared objects are built, AIX ld can
7109 # have problems creating the table of contents. If linking a library
7110 # or program results in "error TOC overflow" add -mminimal-toc to
7111 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7112 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7116 hardcode_libdir_separator=':'
7117 link_all_deplibs=yes
7119 if test "$GCC" = yes; then
7120 case $host_os in aix4.[012]|aix4.[012].*)
7121 # We only want to do this on AIX 4.2 and lower, the check
7122 # below for broken collect2 doesn't work under 4.3+
7123 collect2name=`${CC} -print-prog-name=collect2`
7124 if test -f "$collect2name" && \
7125 strings "$collect2name" | grep resolve_lib_name >/dev/null
7127 # We have reworked collect2
7130 # We have old collect2
7131 hardcode_direct=unsupported
7132 # It fails to find uninstalled libraries when the uninstalled
7133 # path is not listed in the libpath. Setting hardcode_minus_L
7134 # to unsupported forces relinking
7135 hardcode_minus_L=yes
7136 hardcode_libdir_flag_spec='-L$libdir'
7137 hardcode_libdir_separator=
7141 shared_flag='-shared'
7142 if test "$aix_use_runtimelinking" = yes; then
7143 shared_flag="$shared_flag "'${wl}-G'
7147 if test "$host_cpu" = ia64; then
7148 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7149 # chokes on -Wl,-G. The following line is correct:
7152 if test "$aix_use_runtimelinking" = yes; then
7153 shared_flag='${wl}-G'
7155 shared_flag='${wl}-bM:SRE'
7160 # It seems that -bexpall does not export symbols beginning with
7161 # underscore (_), so it is better to generate a list of symbols to export.
7162 always_export_symbols=yes
7163 if test "$aix_use_runtimelinking" = yes; then
7164 # Warning - without using the other runtime loading flags (-brtl),
7165 # -berok will link without error, but may produce a broken library.
7166 allow_undefined_flag='-berok'
7167 # Determine the default libpath from the value encoded in an empty executable.
7168 cat >conftest.$ac_ext <<_ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7183 rm -f conftest.$ac_objext conftest$ac_exeext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7185 (eval $ac_link) 2>conftest.er1
7187 grep -v '^ *+' conftest.er1 >conftest.err
7189 cat conftest.err >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } &&
7192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; } &&
7198 { ac_try='test -s conftest$ac_exeext'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; }; then
7205 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7207 # Check for a 64-bit object if we didn't find anything.
7208 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; }
7211 echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7215 rm -f conftest.err conftest.$ac_objext \
7216 conftest$ac_exeext conftest.$ac_ext
7217 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7219 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7220 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7222 if test "$host_cpu" = ia64; then
7223 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7224 allow_undefined_flag="-z nodefs"
7225 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7227 # Determine the default libpath from the value encoded in an empty executable.
7228 cat >conftest.$ac_ext <<_ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7243 rm -f conftest.$ac_objext conftest$ac_exeext
7244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7245 (eval $ac_link) 2>conftest.er1
7247 grep -v '^ *+' conftest.er1 >conftest.err
7249 cat conftest.err >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); } &&
7252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; } &&
7258 { ac_try='test -s conftest$ac_exeext'
7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; }; then
7265 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7267 # Check for a 64-bit object if we didn't find anything.
7268 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; }
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7275 rm -f conftest.err conftest.$ac_objext \
7276 conftest$ac_exeext conftest.$ac_ext
7277 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7279 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7280 # Warning - without using the other run time loading flags,
7281 # -berok will link without error, but may produce a broken library.
7282 no_undefined_flag=' ${wl}-bernotok'
7283 allow_undefined_flag=' ${wl}-berok'
7284 # Exported symbols can be pulled into shared objects from archives
7285 whole_archive_flag_spec='$convenience'
7286 archive_cmds_need_lc=yes
7287 # This is similar to how AIX traditionally builds its shared libraries.
7288 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7294 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)'
7295 hardcode_libdir_flag_spec='-L$libdir'
7296 hardcode_minus_L=yes
7297 # see comment about different semantics on the GNU ld section
7302 export_dynamic_flag_spec=-rdynamic
7305 cygwin* | mingw* | pw32*)
7306 # When not using gcc, we currently assume that we are using
7307 # Microsoft Visual C++.
7308 # hardcode_libdir_flag_spec is actually meaningless, as there is
7309 # no search path for DLLs.
7310 hardcode_libdir_flag_spec=' '
7311 allow_undefined_flag=unsupported
7312 # Tell ltmain to make .lib files, not .a files.
7314 # Tell ltmain to make .dll files, not .so files.
7316 # FIXME: Setting linknames here is a bad hack.
7317 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7318 # The linker will automatically build a .lib file if we build a DLL.
7319 old_archive_From_new_cmds='true'
7320 # FIXME: Should let the user specify the lib program.
7321 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7322 fix_srcfile_path='`cygpath -w "$srcfile"`'
7323 enable_shared_with_static_runtimes=yes
7326 darwin* | rhapsody*)
7328 rhapsody* | darwin1.[012])
7329 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7332 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7333 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7335 case ${MACOSX_DEPLOYMENT_TARGET} in
7337 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7340 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7346 archive_cmds_need_lc=no
7348 hardcode_automatic=yes
7349 hardcode_shlibpath_var=unsupported
7350 whole_archive_flag_spec=''
7351 link_all_deplibs=yes
7352 if test "$GCC" = yes ; then
7353 output_verbose_link_cmd='echo'
7354 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7355 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7356 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7357 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}'
7358 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}'
7360 case $cc_basename in
7362 output_verbose_link_cmd='echo'
7363 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7364 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7365 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7366 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7367 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}'
7377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7378 hardcode_libdir_flag_spec='-L$libdir'
7379 hardcode_shlibpath_var=no
7386 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7387 # support. Future versions do this automatically, but an explicit c++rt0.o
7388 # does not break anything, and helps significantly (at the cost of a little
7391 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7392 hardcode_libdir_flag_spec='-R$libdir'
7394 hardcode_shlibpath_var=no
7397 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7399 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7401 hardcode_minus_L=yes
7402 hardcode_shlibpath_var=no
7405 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7406 freebsd* | dragonfly*)
7407 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7408 hardcode_libdir_flag_spec='-R$libdir'
7410 hardcode_shlibpath_var=no
7413 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
7415 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7416 hardcode_libdir_flag_spec='-R$libdir'
7418 hardcode_shlibpath_var=no
7423 if test "$GCC" = yes; then
7424 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'
7426 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'
7428 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7429 hardcode_libdir_separator=:
7432 # hardcode_minus_L: Not really in the search PATH,
7433 # but as the default location of the library.
7434 hardcode_minus_L=yes
7435 export_dynamic_flag_spec='${wl}-E'
7439 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7440 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7442 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7444 if test "$with_gnu_ld" = no; then
7445 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7446 hardcode_libdir_separator=:
7449 export_dynamic_flag_spec='${wl}-E'
7451 # hardcode_minus_L: Not really in the search PATH,
7452 # but as the default location of the library.
7453 hardcode_minus_L=yes
7458 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7461 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7464 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7467 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7473 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7476 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7479 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7483 if test "$with_gnu_ld" = no; then
7484 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7485 hardcode_libdir_separator=:
7489 hardcode_libdir_flag_spec_ld='+b $libdir'
7491 hardcode_shlibpath_var=no
7495 export_dynamic_flag_spec='${wl}-E'
7497 # hardcode_minus_L: Not really in the search PATH,
7498 # but as the default location of the library.
7499 hardcode_minus_L=yes
7505 irix5* | irix6* | nonstopux*)
7506 if test "$GCC" = yes; then
7507 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'
7509 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'
7510 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7512 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7513 hardcode_libdir_separator=:
7514 link_all_deplibs=yes
7517 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7518 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7519 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7521 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7523 hardcode_libdir_flag_spec='-R$libdir'
7525 hardcode_shlibpath_var=no
7529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7532 hardcode_libdir_separator=:
7533 hardcode_shlibpath_var=no
7538 hardcode_shlibpath_var=no
7539 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7540 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7541 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7542 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7543 export_dynamic_flag_spec='${wl}-E'
7546 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7548 hardcode_libdir_flag_spec='-R$libdir'
7551 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7552 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7559 hardcode_libdir_flag_spec='-L$libdir'
7560 hardcode_minus_L=yes
7561 allow_undefined_flag=unsupported
7562 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'
7563 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7567 if test "$GCC" = yes; then
7568 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7569 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'
7571 allow_undefined_flag=' -expect_unresolved \*'
7572 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'
7574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7575 hardcode_libdir_separator=:
7578 osf4* | osf5*) # as osf3* with the addition of -msym flag
7579 if test "$GCC" = yes; then
7580 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7581 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'
7582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7584 allow_undefined_flag=' -expect_unresolved \*'
7585 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'
7586 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7587 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7589 # Both c and cxx compiler support -rpath directly
7590 hardcode_libdir_flag_spec='-rpath $libdir'
7592 hardcode_libdir_separator=:
7596 no_undefined_flag=' -z text'
7597 if test "$GCC" = yes; then
7599 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7600 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7601 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7604 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7605 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7606 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7608 hardcode_libdir_flag_spec='-R$libdir'
7609 hardcode_shlibpath_var=no
7611 solaris2.[0-5] | solaris2.[0-5].*) ;;
7613 # The compiler driver will combine linker options so we
7614 # cannot just pass the convience library names through
7615 # without $wl, iff we do not link with $LD.
7616 # Luckily, gcc supports the same syntax we need for Sun Studio.
7617 # Supported since Solaris 2.6 (maybe 2.5.1?)
7620 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7622 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7625 link_all_deplibs=yes
7629 if test "x$host_vendor" = xsequent; then
7630 # Use $CC to link under sequent, because it throws in some extra .o
7631 # files that make .init and .fini sections work.
7632 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7634 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7636 hardcode_libdir_flag_spec='-L$libdir'
7638 hardcode_minus_L=yes
7639 hardcode_shlibpath_var=no
7643 case $host_vendor in
7645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7646 hardcode_direct=yes # is this really true???
7649 ## LD is ld it makes a PLAMLIB
7650 ## CC just makes a GrossModule.
7651 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7652 reload_cmds='$CC -r -o $output$reload_objs'
7656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7657 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7660 runpath_var='LD_RUN_PATH'
7661 hardcode_shlibpath_var=no
7665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7666 hardcode_shlibpath_var=no
7667 export_dynamic_flag_spec='-Bexport'
7671 if test -d /usr/nec; then
7672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7673 hardcode_shlibpath_var=no
7674 runpath_var=LD_RUN_PATH
7675 hardcode_runpath_var=yes
7680 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7681 no_undefined_flag='${wl}-z,text'
7682 archive_cmds_need_lc=no
7683 hardcode_shlibpath_var=no
7684 runpath_var='LD_RUN_PATH'
7686 if test "$GCC" = yes; then
7687 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7688 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7690 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7691 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7695 sysv5* | sco3.2v5* | sco5v6*)
7696 # Note: We can NOT use -z defs as we might desire, because we do not
7697 # link with -lc, and that would cause any symbols used from libc to
7698 # always be unresolved, which means just about no library would
7699 # ever link correctly. If we're not using GNU ld we use -z text
7700 # though, which does catch some bad symbols but isn't as heavy-handed
7702 no_undefined_flag='${wl}-z,text'
7703 allow_undefined_flag='${wl}-z,nodefs'
7704 archive_cmds_need_lc=no
7705 hardcode_shlibpath_var=no
7706 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7707 hardcode_libdir_separator=':'
7708 link_all_deplibs=yes
7709 export_dynamic_flag_spec='${wl}-Bexport'
7710 runpath_var='LD_RUN_PATH'
7712 if test "$GCC" = yes; then
7713 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7714 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7716 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7717 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7723 hardcode_libdir_flag_spec='-L$libdir'
7724 hardcode_shlibpath_var=no
7733 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7734 echo "${ECHO_T}$ld_shlibs" >&6
7735 test "$ld_shlibs" = no && can_build_shared=no
7738 # Do we need to explicitly link libc?
7740 case "x$archive_cmds_need_lc" in
7742 # Assume -lc should be added
7743 archive_cmds_need_lc=yes
7745 if test "$enable_shared" = yes && test "$GCC" = yes; then
7746 case $archive_cmds in
7748 # FIXME: we may have to deal with multi-command sequences.
7751 # Test whether the compiler implicitly links with -lc since on some
7752 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7753 # to ld, don't add -lc before -lgcc.
7754 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7755 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7757 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7760 (eval $ac_compile) 2>&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } 2>conftest.err; then
7766 libobjs=conftest.$ac_objext
7768 wl=$lt_prog_compiler_wl
7769 pic_flag=$lt_prog_compiler_pic
7775 lt_save_allow_undefined_flag=$allow_undefined_flag
7776 allow_undefined_flag=
7777 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7778 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }
7783 archive_cmds_need_lc=no
7785 archive_cmds_need_lc=yes
7787 allow_undefined_flag=$lt_save_allow_undefined_flag
7789 cat conftest.err 1>&5
7792 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7793 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7800 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7801 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7803 libname_spec='lib$name'
7811 shlibpath_overrides_runpath=unknown
7813 dynamic_linker="$host_os ld.so"
7814 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7815 if test "$GCC" = yes; then
7816 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7817 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7818 # if the path contains ";" then we assume it to be the separator
7819 # otherwise default to the standard path separator (i.e. ":") - it is
7820 # assumed that no part of a normal pathname contains ";" but that should
7821 # okay in the real world where ";" in dirpaths is itself problematic.
7822 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7824 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7827 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7829 need_lib_prefix=unknown
7830 hardcode_into_libs=no
7832 # when you set need_version to no, make sure it does not cause -set_version
7833 # flags to be left without arguments
7834 need_version=unknown
7839 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7840 shlibpath_var=LIBPATH
7842 # AIX 3 has no versioning support, so we append a major version to the name.
7843 soname_spec='${libname}${release}${shared_ext}$major'
7850 hardcode_into_libs=yes
7851 if test "$host_cpu" = ia64; then
7852 # AIX 5 supports IA64
7853 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7854 shlibpath_var=LD_LIBRARY_PATH
7856 # With GCC up to 2.95.x, collect2 would create an import file
7857 # for dependence libraries. The import file would start with
7858 # the line `#! .'. This would cause the generated library to
7859 # depend on `.', always an invalid library. This was fixed in
7860 # development snapshots of GCC prior to 3.0.
7862 aix4 | aix4.[01] | aix4.[01].*)
7863 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7865 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7872 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7873 # soname into executable. Probably we can add versioning support to
7874 # collect2, so additional links can be useful in future.
7875 if test "$aix_use_runtimelinking" = yes; then
7876 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7877 # instead of lib<name>.a to let people know that these are not
7878 # typical AIX shared libraries.
7879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7881 # We preserve .a as extension for shared libraries through AIX4.2
7882 # and later when we are not doing run time linking.
7883 library_names_spec='${libname}${release}.a $libname.a'
7884 soname_spec='${libname}${release}${shared_ext}$major'
7886 shlibpath_var=LIBPATH
7891 library_names_spec='$libname.ixlibrary $libname.a'
7892 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7893 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'
7897 library_names_spec='${libname}${shared_ext}'
7898 dynamic_linker="$host_os ld.so"
7899 shlibpath_var=LIBRARY_PATH
7905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7906 soname_spec='${libname}${release}${shared_ext}$major'
7907 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7908 shlibpath_var=LD_LIBRARY_PATH
7909 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7910 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7911 # the default ld.so.conf also contains /usr/contrib/lib and
7912 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7913 # libtool to hard-code these into programs
7916 cygwin* | mingw* | pw32*)
7917 version_type=windows
7922 case $GCC,$host_os in
7923 yes,cygwin* | yes,mingw* | yes,pw32*)
7924 library_names_spec='$libname.dll.a'
7925 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7926 postinstall_cmds='base_file=`basename \${file}`~
7927 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7928 dldir=$destdir/`dirname \$dlpath`~
7929 test -d \$dldir || mkdir -p \$dldir~
7930 $install_prog $dir/$dlname \$dldir/$dlname~
7931 chmod a+x \$dldir/$dlname'
7932 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7933 dlpath=$dir/\$dldll~
7935 shlibpath_overrides_runpath=yes
7939 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7940 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7941 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7944 # MinGW DLLs use traditional 'lib' prefix
7945 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7946 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7947 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7948 # It is most probably a Windows format PATH printed by
7949 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7950 # path with ; separators, and with drive letters. We can handle the
7951 # drive letters (cygwin fileutils understands them), so leave them,
7952 # especially as we might pass files found there to a mingw objdump,
7953 # which wouldn't understand a cygwinified path. Ahh.
7954 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7956 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7960 # pw32 DLLs use 'pw' prefix rather than 'lib'
7961 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7967 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7970 dynamic_linker='Win32 ld.exe'
7971 # FIXME: first we should search . and the directory the executable is in
7975 darwin* | rhapsody*)
7976 dynamic_linker="$host_os dyld"
7980 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7981 soname_spec='${libname}${release}${major}$shared_ext'
7982 shlibpath_overrides_runpath=yes
7983 shlibpath_var=DYLD_LIBRARY_PATH
7984 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7985 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7986 if test "$GCC" = yes; then
7987 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"`
7989 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7991 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7999 soname_spec='${libname}${release}${shared_ext}$major'
8000 shlibpath_var=LD_LIBRARY_PATH
8011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8012 soname_spec='${libname}${release}${shared_ext}$major'
8013 shlibpath_var=LD_LIBRARY_PATH
8014 shlibpath_overrides_runpath=no
8015 hardcode_into_libs=yes
8016 dynamic_linker='GNU ld.so'
8019 freebsd* | dragonfly*)
8020 # DragonFly does not have aout. When/if they implement a new
8021 # versioning mechanism, adjust this.
8022 if test -x /usr/bin/objformat; then
8023 objformat=`/usr/bin/objformat`
8026 freebsd[123]*) objformat=aout ;;
8030 version_type=freebsd-$objformat
8031 case $version_type in
8033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8038 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8042 shlibpath_var=LD_LIBRARY_PATH
8045 shlibpath_overrides_runpath=yes
8047 freebsd3.[01]* | freebsdelf3.[01]*)
8048 shlibpath_overrides_runpath=yes
8049 hardcode_into_libs=yes
8051 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8052 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8053 shlibpath_overrides_runpath=no
8054 hardcode_into_libs=yes
8056 freebsd*) # from 4.6 on
8057 shlibpath_overrides_runpath=yes
8058 hardcode_into_libs=yes
8067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8068 soname_spec='${libname}${release}${shared_ext}$major'
8069 shlibpath_var=LD_LIBRARY_PATH
8070 hardcode_into_libs=yes
8073 hpux9* | hpux10* | hpux11*)
8074 # Give a soname corresponding to the major version so that dld.sl refuses to
8075 # link against other versions.
8082 hardcode_into_libs=yes
8083 dynamic_linker="$host_os dld.so"
8084 shlibpath_var=LD_LIBRARY_PATH
8085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8087 soname_spec='${libname}${release}${shared_ext}$major'
8088 if test "X$HPUX_IA64_MODE" = X32; then
8089 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8091 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8097 hardcode_into_libs=yes
8098 dynamic_linker="$host_os dld.sl"
8099 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8102 soname_spec='${libname}${release}${shared_ext}$major'
8103 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8108 dynamic_linker="$host_os dld.sl"
8109 shlibpath_var=SHLIB_PATH
8110 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8112 soname_spec='${libname}${release}${shared_ext}$major'
8115 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8116 postinstall_cmds='chmod 555 $lib'
8123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8124 soname_spec='${libname}${release}${shared_ext}$major'
8125 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8126 shlibpath_var=LD_LIBRARY_PATH
8127 shlibpath_overrides_runpath=no
8128 hardcode_into_libs=yes
8131 irix5* | irix6* | nonstopux*)
8133 nonstopux*) version_type=nonstopux ;;
8135 if test "$lt_cv_prog_gnu_ld" = yes; then
8143 soname_spec='${libname}${release}${shared_ext}$major'
8144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8146 irix5* | nonstopux*)
8150 case $LD in # libtool.m4 will add one of these switches to LD
8151 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8152 libsuff= shlibsuff= libmagic=32-bit;;
8153 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8154 libsuff=32 shlibsuff=N32 libmagic=N32;;
8155 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8156 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8157 *) libsuff= shlibsuff= libmagic=never-match;;
8161 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8162 shlibpath_overrides_runpath=no
8163 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8164 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8165 hardcode_into_libs=yes
8168 # No shared lib support for Linux oldld, aout, or coff.
8169 linux*oldld* | linux*aout* | linux*coff*)
8173 # This must be Linux ELF.
8178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8179 soname_spec='${libname}${release}${shared_ext}$major'
8180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8181 shlibpath_var=LD_LIBRARY_PATH
8182 shlibpath_overrides_runpath=no
8183 # This implies no fast_install, which is unacceptable.
8184 # Some rework will be needed to allow for fast_install
8185 # before this can be enabled.
8186 hardcode_into_libs=yes
8188 # Append ld.so.conf contents to the search path
8189 if test -f /etc/ld.so.conf; then
8190 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8191 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8194 # We used to test for /lib/ld.so.1 and disable shared libraries on
8195 # powerpc, because MkLinux only supported shared libraries with the
8196 # GNU dynamic linker. Since this was broken with cross compilers,
8197 # most powerpc-linux boxes support dynamic linking these days and
8198 # people can always --disable-shared, the test was removed, and we
8199 # assume the GNU/Linux dynamic linker is in use.
8200 dynamic_linker='GNU/Linux ld.so'
8207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8208 soname_spec='${libname}${release}${shared_ext}$major'
8209 shlibpath_var=LD_LIBRARY_PATH
8210 shlibpath_overrides_runpath=no
8211 hardcode_into_libs=yes
8212 dynamic_linker='NetBSD ld.elf_so'
8219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8220 soname_spec='${libname}${release}${shared_ext}$major'
8221 shlibpath_var=LD_LIBRARY_PATH
8222 shlibpath_overrides_runpath=no
8223 hardcode_into_libs=yes
8224 dynamic_linker='GNU ld.so'
8231 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8234 dynamic_linker='NetBSD (a.out) ld.so'
8236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8237 soname_spec='${libname}${release}${shared_ext}$major'
8238 dynamic_linker='NetBSD ld.elf_so'
8240 shlibpath_var=LD_LIBRARY_PATH
8241 shlibpath_overrides_runpath=yes
8242 hardcode_into_libs=yes
8247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8248 shlibpath_var=LD_LIBRARY_PATH
8249 shlibpath_overrides_runpath=yes
8256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8257 soname_spec='${libname}${release}${shared_ext}$major'
8258 shlibpath_var=LD_LIBRARY_PATH
8259 shlibpath_overrides_runpath=yes
8264 sys_lib_dlsearch_path_spec="/usr/lib"
8266 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8268 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8269 *) need_version=no ;;
8271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8273 shlibpath_var=LD_LIBRARY_PATH
8274 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8276 openbsd2.[89] | openbsd2.[89].*)
8277 shlibpath_overrides_runpath=no
8280 shlibpath_overrides_runpath=yes
8284 shlibpath_overrides_runpath=yes
8289 libname_spec='$name'
8292 library_names_spec='$libname${shared_ext} $libname.a'
8293 dynamic_linker='OS/2 ld.exe'
8294 shlibpath_var=LIBPATH
8297 osf3* | osf4* | osf5*)
8301 soname_spec='${libname}${release}${shared_ext}$major'
8302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8303 shlibpath_var=LD_LIBRARY_PATH
8304 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8305 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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
8315 shlibpath_overrides_runpath=yes
8316 hardcode_into_libs=yes
8317 # ldd complains unless libraries are executable
8318 postinstall_cmds='chmod +x $lib'
8323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8324 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8325 shlibpath_var=LD_LIBRARY_PATH
8326 shlibpath_overrides_runpath=yes
8327 if test "$with_gnu_ld" = yes; then
8335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8336 soname_spec='${libname}${release}${shared_ext}$major'
8337 shlibpath_var=LD_LIBRARY_PATH
8338 case $host_vendor in
8340 shlibpath_overrides_runpath=no
8342 export_dynamic_flag_spec='${wl}-Blargedynsym'
8343 runpath_var=LD_RUN_PATH
8351 shlibpath_overrides_runpath=no
8352 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8358 if test -d /usr/nec ;then
8360 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8361 soname_spec='$libname${shared_ext}.$major'
8362 shlibpath_var=LD_LIBRARY_PATH
8366 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8367 version_type=freebsd-elf
8370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8371 soname_spec='${libname}${release}${shared_ext}$major'
8372 shlibpath_var=LD_LIBRARY_PATH
8373 hardcode_into_libs=yes
8374 if test "$with_gnu_ld" = yes; then
8375 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8376 shlibpath_overrides_runpath=no
8378 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8379 shlibpath_overrides_runpath=yes
8382 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8386 sys_lib_dlsearch_path_spec='/usr/lib'
8391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8392 soname_spec='${libname}${release}${shared_ext}$major'
8393 shlibpath_var=LD_LIBRARY_PATH
8400 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8401 echo "${ECHO_T}$dynamic_linker" >&6
8402 test "$dynamic_linker" = no && can_build_shared=no
8404 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8405 if test "$GCC" = yes; then
8406 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8409 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8410 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8412 if test -n "$hardcode_libdir_flag_spec" || \
8413 test -n "$runpath_var" || \
8414 test "X$hardcode_automatic" = "Xyes" ; then
8416 # We can hardcode non-existant directories.
8417 if test "$hardcode_direct" != no &&
8418 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8419 # have to relink, otherwise we might link with an installed library
8420 # when we should be linking with a yet-to-be-installed one
8421 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8422 test "$hardcode_minus_L" != no; then
8423 # Linking always hardcodes the temporary library directory.
8424 hardcode_action=relink
8426 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8427 hardcode_action=immediate
8430 # We cannot hardcode anything, or else we can only hardcode existing
8432 hardcode_action=unsupported
8434 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8435 echo "${ECHO_T}$hardcode_action" >&6
8437 if test "$hardcode_action" = relink; then
8438 # Fast installation is not supported
8439 enable_fast_install=no
8440 elif test "$shlibpath_overrides_runpath" = yes ||
8441 test "$enable_shared" = no; then
8442 # Fast installation is not necessary
8443 enable_fast_install=needless
8448 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8449 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8450 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8451 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8452 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8453 echo "$as_me:$LINENO: result: yes" >&5
8454 echo "${ECHO_T}yes" >&6
8456 # FIXME - insert some real tests, host_os isn't really good enough
8459 if test -n "$STRIP" ; then
8460 striplib="$STRIP -x"
8461 echo "$as_me:$LINENO: result: yes" >&5
8462 echo "${ECHO_T}yes" >&6
8464 echo "$as_me:$LINENO: result: no" >&5
8465 echo "${ECHO_T}no" >&6
8469 echo "$as_me:$LINENO: result: no" >&5
8470 echo "${ECHO_T}no" >&6
8475 if test "x$enable_dlopen" != xyes; then
8476 enable_dlopen=unknown
8477 enable_dlopen_self=unknown
8478 enable_dlopen_self_static=unknown
8485 lt_cv_dlopen="load_add_on"
8487 lt_cv_dlopen_self=yes
8491 lt_cv_dlopen="LoadLibrary"
8496 lt_cv_dlopen="dlopen"
8501 # if libdl is installed we need to link against it
8502 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8503 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8504 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 ac_check_lib_save_LIBS=$LIBS
8509 cat >conftest.$ac_ext <<_ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h. */
8516 /* Override any gcc2 internal prototype to avoid an error. */
8520 /* We use char because int might match the return type of a gcc2
8521 builtin and then its argument prototype would still apply. */
8531 rm -f conftest.$ac_objext conftest$ac_exeext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533 (eval $ac_link) 2>conftest.er1
8535 grep -v '^ *+' conftest.er1 >conftest.err
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } &&
8540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; } &&
8546 { ac_try='test -s conftest$ac_exeext'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; }; then
8552 ac_cv_lib_dl_dlopen=yes
8554 echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8557 ac_cv_lib_dl_dlopen=no
8559 rm -f conftest.err conftest.$ac_objext \
8560 conftest$ac_exeext conftest.$ac_ext
8561 LIBS=$ac_check_lib_save_LIBS
8563 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8564 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8565 if test $ac_cv_lib_dl_dlopen = yes; then
8566 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8571 lt_cv_dlopen_self=yes
8578 echo "$as_me:$LINENO: checking for shl_load" >&5
8579 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8580 if test "${ac_cv_func_shl_load+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 cat >conftest.$ac_ext <<_ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h. */
8589 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8591 #define shl_load innocuous_shl_load
8593 /* System header to define __stub macros and hopefully few prototypes,
8594 which can conflict with char shl_load (); below.
8595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8596 <limits.h> exists even on freestanding compilers. */
8599 # include <limits.h>
8601 # include <assert.h>
8606 /* Override any gcc2 internal prototype to avoid an error. */
8611 /* We use char because int might match the return type of a gcc2
8612 builtin and then its argument prototype would still apply. */
8614 /* The GNU C library defines this for functions which it implements
8615 to always fail with ENOSYS. Some functions are actually named
8616 something starting with __ and the normal name is an alias. */
8617 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8620 char (*f) () = shl_load;
8629 return f != shl_load;
8634 rm -f conftest.$ac_objext conftest$ac_exeext
8635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8636 (eval $ac_link) 2>conftest.er1
8638 grep -v '^ *+' conftest.er1 >conftest.err
8640 cat conftest.err >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } &&
8643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; } &&
8649 { ac_try='test -s conftest$ac_exeext'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; }; then
8655 ac_cv_func_shl_load=yes
8657 echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8660 ac_cv_func_shl_load=no
8662 rm -f conftest.err conftest.$ac_objext \
8663 conftest$ac_exeext conftest.$ac_ext
8665 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8666 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8667 if test $ac_cv_func_shl_load = yes; then
8668 lt_cv_dlopen="shl_load"
8670 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8671 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8672 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 ac_check_lib_save_LIBS=$LIBS
8677 cat >conftest.$ac_ext <<_ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8684 /* Override any gcc2 internal prototype to avoid an error. */
8688 /* We use char because int might match the return type of a gcc2
8689 builtin and then its argument prototype would still apply. */
8699 rm -f conftest.$ac_objext conftest$ac_exeext
8700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8701 (eval $ac_link) 2>conftest.er1
8703 grep -v '^ *+' conftest.er1 >conftest.err
8705 cat conftest.err >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } &&
8708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; } &&
8714 { ac_try='test -s conftest$ac_exeext'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; }; then
8720 ac_cv_lib_dld_shl_load=yes
8722 echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8725 ac_cv_lib_dld_shl_load=no
8727 rm -f conftest.err conftest.$ac_objext \
8728 conftest$ac_exeext conftest.$ac_ext
8729 LIBS=$ac_check_lib_save_LIBS
8731 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8732 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8733 if test $ac_cv_lib_dld_shl_load = yes; then
8734 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8736 echo "$as_me:$LINENO: checking for dlopen" >&5
8737 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8738 if test "${ac_cv_func_dlopen+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 cat >conftest.$ac_ext <<_ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8747 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8749 #define dlopen innocuous_dlopen
8751 /* System header to define __stub macros and hopefully few prototypes,
8752 which can conflict with char dlopen (); below.
8753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8754 <limits.h> exists even on freestanding compilers. */
8757 # include <limits.h>
8759 # include <assert.h>
8764 /* Override any gcc2 internal prototype to avoid an error. */
8769 /* We use char because int might match the return type of a gcc2
8770 builtin and then its argument prototype would still apply. */
8772 /* The GNU C library defines this for functions which it implements
8773 to always fail with ENOSYS. Some functions are actually named
8774 something starting with __ and the normal name is an alias. */
8775 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8778 char (*f) () = dlopen;
8792 rm -f conftest.$ac_objext conftest$ac_exeext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8794 (eval $ac_link) 2>conftest.er1
8796 grep -v '^ *+' conftest.er1 >conftest.err
8798 cat conftest.err >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } &&
8801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; } &&
8807 { ac_try='test -s conftest$ac_exeext'
8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; }; then
8813 ac_cv_func_dlopen=yes
8815 echo "$as_me: failed program was:" >&5
8816 sed 's/^/| /' conftest.$ac_ext >&5
8818 ac_cv_func_dlopen=no
8820 rm -f conftest.err conftest.$ac_objext \
8821 conftest$ac_exeext conftest.$ac_ext
8823 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8824 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8825 if test $ac_cv_func_dlopen = yes; then
8826 lt_cv_dlopen="dlopen"
8828 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8829 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8830 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8831 echo $ECHO_N "(cached) $ECHO_C" >&6
8833 ac_check_lib_save_LIBS=$LIBS
8835 cat >conftest.$ac_ext <<_ACEOF
8838 cat confdefs.h >>conftest.$ac_ext
8839 cat >>conftest.$ac_ext <<_ACEOF
8840 /* end confdefs.h. */
8842 /* Override any gcc2 internal prototype to avoid an error. */
8846 /* We use char because int might match the return type of a gcc2
8847 builtin and then its argument prototype would still apply. */
8857 rm -f conftest.$ac_objext conftest$ac_exeext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8859 (eval $ac_link) 2>conftest.er1
8861 grep -v '^ *+' conftest.er1 >conftest.err
8863 cat conftest.err >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); } &&
8866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; } &&
8872 { ac_try='test -s conftest$ac_exeext'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; }; then
8878 ac_cv_lib_dl_dlopen=yes
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8883 ac_cv_lib_dl_dlopen=no
8885 rm -f conftest.err conftest.$ac_objext \
8886 conftest$ac_exeext conftest.$ac_ext
8887 LIBS=$ac_check_lib_save_LIBS
8889 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8890 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8891 if test $ac_cv_lib_dl_dlopen = yes; then
8892 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8894 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8895 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8896 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8899 ac_check_lib_save_LIBS=$LIBS
8901 cat >conftest.$ac_ext <<_ACEOF
8904 cat confdefs.h >>conftest.$ac_ext
8905 cat >>conftest.$ac_ext <<_ACEOF
8906 /* end confdefs.h. */
8908 /* Override any gcc2 internal prototype to avoid an error. */
8912 /* We use char because int might match the return type of a gcc2
8913 builtin and then its argument prototype would still apply. */
8923 rm -f conftest.$ac_objext conftest$ac_exeext
8924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8925 (eval $ac_link) 2>conftest.er1
8927 grep -v '^ *+' conftest.er1 >conftest.err
8929 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } &&
8932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; } &&
8938 { ac_try='test -s conftest$ac_exeext'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; }; then
8944 ac_cv_lib_svld_dlopen=yes
8946 echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8949 ac_cv_lib_svld_dlopen=no
8951 rm -f conftest.err conftest.$ac_objext \
8952 conftest$ac_exeext conftest.$ac_ext
8953 LIBS=$ac_check_lib_save_LIBS
8955 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8956 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8957 if test $ac_cv_lib_svld_dlopen = yes; then
8958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8960 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8961 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8962 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 ac_check_lib_save_LIBS=$LIBS
8967 cat >conftest.$ac_ext <<_ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h. */
8974 /* Override any gcc2 internal prototype to avoid an error. */
8978 /* We use char because int might match the return type of a gcc2
8979 builtin and then its argument prototype would still apply. */
8989 rm -f conftest.$ac_objext conftest$ac_exeext
8990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8991 (eval $ac_link) 2>conftest.er1
8993 grep -v '^ *+' conftest.er1 >conftest.err
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } &&
8998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; } &&
9004 { ac_try='test -s conftest$ac_exeext'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; }; then
9010 ac_cv_lib_dld_dld_link=yes
9012 echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9015 ac_cv_lib_dld_dld_link=no
9017 rm -f conftest.err conftest.$ac_objext \
9018 conftest$ac_exeext conftest.$ac_ext
9019 LIBS=$ac_check_lib_save_LIBS
9021 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9022 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9023 if test $ac_cv_lib_dld_dld_link = yes; then
9024 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9045 if test "x$lt_cv_dlopen" != xno; then
9051 case $lt_cv_dlopen in
9053 save_CPPFLAGS="$CPPFLAGS"
9054 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9056 save_LDFLAGS="$LDFLAGS"
9057 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9060 LIBS="$lt_cv_dlopen_libs $LIBS"
9062 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9063 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9064 if test "${lt_cv_dlopen_self+set}" = set; then
9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 if test "$cross_compiling" = yes; then :
9068 lt_cv_dlopen_self=cross
9070 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9071 lt_status=$lt_dlunknown
9072 cat > conftest.$ac_ext <<EOF
9073 #line 9073 "configure"
9074 #include "confdefs.h"
9083 # define LT_DLGLOBAL RTLD_GLOBAL
9086 # define LT_DLGLOBAL DL_GLOBAL
9088 # define LT_DLGLOBAL 0
9092 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9093 find out it does not work in some platform. */
9094 #ifndef LT_DLLAZY_OR_NOW
9096 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9099 # define LT_DLLAZY_OR_NOW DL_LAZY
9102 # define LT_DLLAZY_OR_NOW RTLD_NOW
9105 # define LT_DLLAZY_OR_NOW DL_NOW
9107 # define LT_DLLAZY_OR_NOW 0
9115 extern "C" void exit (int);
9118 void fnord() { int i=42;}
9121 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9122 int status = $lt_dlunknown;
9126 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9127 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9128 /* dlclose (self); */
9136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9137 (eval $ac_link) 2>&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9141 (./conftest; exit; ) >&5 2>/dev/null
9144 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9145 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9146 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9149 # compilation failed
9150 lt_cv_dlopen_self=no
9157 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9158 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9160 if test "x$lt_cv_dlopen_self" = xyes; then
9161 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9162 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9163 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9164 if test "${lt_cv_dlopen_self_static+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9167 if test "$cross_compiling" = yes; then :
9168 lt_cv_dlopen_self_static=cross
9170 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9171 lt_status=$lt_dlunknown
9172 cat > conftest.$ac_ext <<EOF
9173 #line 9173 "configure"
9174 #include "confdefs.h"
9183 # define LT_DLGLOBAL RTLD_GLOBAL
9186 # define LT_DLGLOBAL DL_GLOBAL
9188 # define LT_DLGLOBAL 0
9192 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9193 find out it does not work in some platform. */
9194 #ifndef LT_DLLAZY_OR_NOW
9196 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9199 # define LT_DLLAZY_OR_NOW DL_LAZY
9202 # define LT_DLLAZY_OR_NOW RTLD_NOW
9205 # define LT_DLLAZY_OR_NOW DL_NOW
9207 # define LT_DLLAZY_OR_NOW 0
9215 extern "C" void exit (int);
9218 void fnord() { int i=42;}
9221 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9222 int status = $lt_dlunknown;
9226 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9227 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9228 /* dlclose (self); */
9236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9237 (eval $ac_link) 2>&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9241 (./conftest; exit; ) >&5 2>/dev/null
9244 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9245 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9246 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9249 # compilation failed
9250 lt_cv_dlopen_self_static=no
9257 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9258 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9261 CPPFLAGS="$save_CPPFLAGS"
9262 LDFLAGS="$save_LDFLAGS"
9267 case $lt_cv_dlopen_self in
9268 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9269 *) enable_dlopen_self=unknown ;;
9272 case $lt_cv_dlopen_self_static in
9273 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9274 *) enable_dlopen_self_static=unknown ;;
9279 # Report which library types will actually be built
9280 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9281 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9282 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9283 echo "${ECHO_T}$can_build_shared" >&6
9285 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9286 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9287 test "$can_build_shared" = "no" && enable_shared=no
9289 # On AIX, shared libraries and static libraries use the same namespace, and
9290 # are all built from PIC.
9293 test "$enable_shared" = yes && enable_static=no
9294 if test -n "$RANLIB"; then
9295 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9296 postinstall_cmds='$RANLIB $lib'
9301 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9302 test "$enable_shared" = yes && enable_static=no
9306 echo "$as_me:$LINENO: result: $enable_shared" >&5
9307 echo "${ECHO_T}$enable_shared" >&6
9309 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9310 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9311 # Make sure either enable_shared or enable_static is yes.
9312 test "$enable_shared" = yes || enable_static=yes
9313 echo "$as_me:$LINENO: result: $enable_static" >&5
9314 echo "${ECHO_T}$enable_static" >&6
9316 # The else clause should only fire when bootstrapping the
9317 # libtool distribution, otherwise you forgot to ship ltmain.sh
9318 # with your package, and you will get complaints that there are
9319 # no rules to generate ltmain.sh.
9320 if test -f "$ltmain"; then
9321 # See if we are running on zsh, and set the options which allow our commands through
9322 # without removal of \ escapes.
9323 if test -n "${ZSH_VERSION+set}" ; then
9324 setopt NO_GLOB_SUBST
9326 # Now quote all the things that may contain metacharacters while being
9327 # careful not to overquote the AC_SUBSTed values. We take copies of the
9328 # variables and quote the copies for generation of the libtool script.
9329 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9331 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9332 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9333 deplibs_check_method reload_flag reload_cmds need_locks \
9334 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9335 lt_cv_sys_global_symbol_to_c_name_address \
9336 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9337 old_postinstall_cmds old_postuninstall_cmds \
9341 lt_prog_compiler_wl \
9342 lt_prog_compiler_pic \
9343 lt_prog_compiler_static \
9344 lt_prog_compiler_no_builtin_flag \
9345 export_dynamic_flag_spec \
9346 thread_safe_flag_spec \
9347 whole_archive_flag_spec \
9348 enable_shared_with_static_runtimes \
9350 old_archive_from_new_cmds \
9355 compiler_lib_search_path \
9357 archive_expsym_cmds \
9359 postuninstall_cmds \
9360 old_archive_from_expsyms_cmds \
9361 allow_undefined_flag \
9363 export_symbols_cmds \
9364 hardcode_libdir_flag_spec \
9365 hardcode_libdir_flag_spec_ld \
9366 hardcode_libdir_separator \
9367 hardcode_automatic \
9369 module_expsym_cmds \
9370 lt_cv_prog_compiler_c_o \
9375 old_archive_cmds | \
9376 old_archive_from_new_cmds | \
9378 archive_expsym_cmds | \
9380 module_expsym_cmds | \
9381 old_archive_from_expsyms_cmds | \
9382 export_symbols_cmds | \
9383 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9384 postinstall_cmds | postuninstall_cmds | \
9385 old_postinstall_cmds | old_postuninstall_cmds | \
9386 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9387 # Double-quote double-evaled strings.
9388 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9391 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9397 *'\$0 --fallback-echo"')
9398 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9403 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9405 { echo "$as_me:$LINENO: creating $ofile" >&5
9406 echo "$as_me: creating $ofile" >&6;}
9408 cat <<__EOF__ >> "$cfgfile"
9411 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9412 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9413 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9415 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9416 # Free Software Foundation, Inc.
9418 # This file is part of GNU Libtool:
9419 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9421 # This program is free software; you can redistribute it and/or modify
9422 # it under the terms of the GNU General Public License as published by
9423 # the Free Software Foundation; either version 2 of the License, or
9424 # (at your option) any later version.
9426 # This program is distributed in the hope that it will be useful, but
9427 # WITHOUT ANY WARRANTY; without even the implied warranty of
9428 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9429 # General Public License for more details.
9431 # You should have received a copy of the GNU General Public License
9432 # along with this program; if not, write to the Free Software
9433 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9435 # As a special exception to the GNU General Public License, if you
9436 # distribute this file as part of a program that contains a
9437 # configuration script generated by Autoconf, you may include it under
9438 # the same distribution terms that you use for the rest of that program.
9440 # A sed program that does not truncate output.
9443 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9444 Xsed="$SED -e 1s/^X//"
9446 # The HP-UX ksh and POSIX shell print the target directory to stdout
9448 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9450 # The names of the tagged configurations supported by this script.
9453 # ### BEGIN LIBTOOL CONFIG
9455 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9457 # Shell to use when invoking shell scripts.
9460 # Whether or not to build shared libraries.
9461 build_libtool_libs=$enable_shared
9463 # Whether or not to build static libraries.
9464 build_old_libs=$enable_static
9466 # Whether or not to add -lc for building shared libraries.
9467 build_libtool_need_lc=$archive_cmds_need_lc
9469 # Whether or not to disallow shared libs when runtime libs are static
9470 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9472 # Whether or not to optimize for fast installation.
9473 fast_install=$enable_fast_install
9476 host_alias=$host_alias
9481 build_alias=$build_alias
9485 # An echo program that does not interpret backslashes.
9490 AR_FLAGS=$lt_AR_FLAGS
9495 # LTCC compiler flags.
9496 LTCFLAGS=$lt_LTCFLAGS
9498 # A language-specific compiler.
9501 # Is the compiler the GNU C compiler?
9507 # The linker used to build libraries.
9510 # Whether we need hard or soft links.
9513 # A BSD-compatible nm program.
9516 # A symbol stripping program
9519 # Used to examine libraries when file_magic_cmd begins "file"
9520 MAGIC_CMD=$MAGIC_CMD
9522 # Used on cygwin: DLL creation program.
9525 # Used on cygwin: object dumper.
9528 # Used on cygwin: assembler.
9531 # The name of the directory that contains temporary libtool files.
9534 # How to create reloadable object files.
9535 reload_flag=$lt_reload_flag
9536 reload_cmds=$lt_reload_cmds
9538 # How to pass a linker flag through the compiler.
9539 wl=$lt_lt_prog_compiler_wl
9541 # Object file suffix (normally "o").
9544 # Old archive suffix (normally "a").
9547 # Shared library suffix (normally ".so").
9548 shrext_cmds='$shrext_cmds'
9550 # Executable file suffix (normally "").
9553 # Additional compiler flags for building library objects.
9554 pic_flag=$lt_lt_prog_compiler_pic
9557 # What is the maximum length of a command?
9558 max_cmd_len=$lt_cv_sys_max_cmd_len
9560 # Does compiler simultaneously support -c and -o options?
9561 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9563 # Must we lock files when doing compilation?
9564 need_locks=$lt_need_locks
9566 # Do we need the lib prefix for modules?
9567 need_lib_prefix=$need_lib_prefix
9569 # Do we need a version for libraries?
9570 need_version=$need_version
9572 # Whether dlopen is supported.
9573 dlopen_support=$enable_dlopen
9575 # Whether dlopen of programs is supported.
9576 dlopen_self=$enable_dlopen_self
9578 # Whether dlopen of statically linked programs is supported.
9579 dlopen_self_static=$enable_dlopen_self_static
9581 # Compiler flag to prevent dynamic linking.
9582 link_static_flag=$lt_lt_prog_compiler_static
9584 # Compiler flag to turn off builtin functions.
9585 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9587 # Compiler flag to allow reflexive dlopens.
9588 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9590 # Compiler flag to generate shared objects directly from archives.
9591 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9593 # Compiler flag to generate thread-safe objects.
9594 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9596 # Library versioning type.
9597 version_type=$version_type
9599 # Format of library name prefix.
9600 libname_spec=$lt_libname_spec
9602 # List of archive names. First name is the real one, the rest are links.
9603 # The last name is the one that the linker finds with -lNAME.
9604 library_names_spec=$lt_library_names_spec
9606 # The coded name of the library, if different from the real name.
9607 soname_spec=$lt_soname_spec
9609 # Commands used to build and install an old-style archive.
9611 old_archive_cmds=$lt_old_archive_cmds
9612 old_postinstall_cmds=$lt_old_postinstall_cmds
9613 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9615 # Create an old-style archive from a shared archive.
9616 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9618 # Create a temporary old-style archive to link instead of a shared archive.
9619 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9621 # Commands used to build and install a shared archive.
9622 archive_cmds=$lt_archive_cmds
9623 archive_expsym_cmds=$lt_archive_expsym_cmds
9624 postinstall_cmds=$lt_postinstall_cmds
9625 postuninstall_cmds=$lt_postuninstall_cmds
9627 # Commands used to build a loadable module (assumed same as above if empty)
9628 module_cmds=$lt_module_cmds
9629 module_expsym_cmds=$lt_module_expsym_cmds
9631 # Commands to strip libraries.
9632 old_striplib=$lt_old_striplib
9633 striplib=$lt_striplib
9635 # Dependencies to place before the objects being linked to create a
9637 predep_objects=$lt_predep_objects
9639 # Dependencies to place after the objects being linked to create a
9641 postdep_objects=$lt_postdep_objects
9643 # Dependencies to place before the objects being linked to create a
9647 # Dependencies to place after the objects being linked to create a
9649 postdeps=$lt_postdeps
9651 # The library search path used internally by the compiler when linking
9653 compiler_lib_search_path=$lt_compiler_lib_search_path
9655 # Method to check whether dependent libraries are shared objects.
9656 deplibs_check_method=$lt_deplibs_check_method
9658 # Command to use when deplibs_check_method == file_magic.
9659 file_magic_cmd=$lt_file_magic_cmd
9661 # Flag that allows shared libraries with undefined symbols to be built.
9662 allow_undefined_flag=$lt_allow_undefined_flag
9664 # Flag that forces no undefined symbols.
9665 no_undefined_flag=$lt_no_undefined_flag
9667 # Commands used to finish a libtool library installation in a directory.
9668 finish_cmds=$lt_finish_cmds
9670 # Same as above, but a single script fragment to be evaled but not shown.
9671 finish_eval=$lt_finish_eval
9673 # Take the output of nm and produce a listing of raw symbols and C names.
9674 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9676 # Transform the output of nm in a proper C declaration
9677 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9679 # Transform the output of nm in a C name address pair
9680 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9682 # This is the shared library runtime path variable.
9683 runpath_var=$runpath_var
9685 # This is the shared library path variable.
9686 shlibpath_var=$shlibpath_var
9688 # Is shlibpath searched before the hard-coded library search path?
9689 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9691 # How to hardcode a shared library path into an executable.
9692 hardcode_action=$hardcode_action
9694 # Whether we should hardcode library paths into libraries.
9695 hardcode_into_libs=$hardcode_into_libs
9697 # Flag to hardcode \$libdir into a binary during linking.
9698 # This must work even if \$libdir does not exist.
9699 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9701 # If ld is used when linking, flag to hardcode \$libdir into
9702 # a binary during linking. This must work even if \$libdir does
9704 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9706 # Whether we need a single -rpath flag with a separated argument.
9707 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9709 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9711 hardcode_direct=$hardcode_direct
9713 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9715 hardcode_minus_L=$hardcode_minus_L
9717 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9718 # the resulting binary.
9719 hardcode_shlibpath_var=$hardcode_shlibpath_var
9721 # Set to yes if building a shared library automatically hardcodes DIR into the library
9722 # and all subsequent libraries and executables linked against it.
9723 hardcode_automatic=$hardcode_automatic
9725 # Variables whose values should be saved in libtool wrapper scripts and
9726 # restored at relink time.
9727 variables_saved_for_relink="$variables_saved_for_relink"
9729 # Whether libtool must link a program against all its dependency libraries.
9730 link_all_deplibs=$link_all_deplibs
9732 # Compile-time system search path for libraries
9733 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9735 # Run-time system search path for libraries
9736 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9738 # Fix the shell variable \$srcfile for the compiler.
9739 fix_srcfile_path="$fix_srcfile_path"
9741 # Set to yes if exported symbols are required.
9742 always_export_symbols=$always_export_symbols
9744 # The commands to list exported symbols.
9745 export_symbols_cmds=$lt_export_symbols_cmds
9747 # The commands to extract the exported symbol list from a shared archive.
9748 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9750 # Symbols that should not be listed in the preloaded symbols.
9751 exclude_expsyms=$lt_exclude_expsyms
9753 # Symbols that must always be exported.
9754 include_expsyms=$lt_include_expsyms
9756 # ### END LIBTOOL CONFIG
9763 cat <<\EOF >> "$cfgfile"
9765 # AIX sometimes has problems with the GCC collect2 program. For some
9766 # reason, if we set the COLLECT_NAMES environment variable, the problems
9767 # vanish in a puff of smoke.
9768 if test "X${COLLECT_NAMES+set}" != Xset; then
9770 export COLLECT_NAMES
9776 # We use sed instead of cat because bash on DJGPP gets confused if
9777 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9778 # text mode, it properly converts lines to CR/LF. This bash problem
9779 # is reportedly fixed, but why not run on old versions too?
9780 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9782 mv -f "$cfgfile" "$ofile" || \
9783 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9787 # If there is no Makefile yet, we rely on a make rule to execute
9788 # `config.status --recheck' to rerun these tests and create the
9789 # libtool script then.
9790 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9791 if test -f "$ltmain_in"; then
9792 test -f Makefile && make "$ltmain"
9798 ac_cpp='$CPP $CPPFLAGS'
9799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9806 # Check whether --with-tags or --without-tags was given.
9807 if test "${with_tags+set}" = set; then
9808 withval="$with_tags"
9812 if test -f "$ltmain" && test -n "$tagnames"; then
9813 if test ! -f "${ofile}"; then
9814 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9815 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9818 if test -z "$LTCC"; then
9819 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9820 if test -z "$LTCC"; then
9821 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9822 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9824 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9825 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9828 if test -z "$LTCFLAGS"; then
9829 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9832 # Extract list of available tagged configurations in $ofile.
9833 # Note that this assumes the entire list is on one line.
9834 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9836 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9837 for tagname in $tagnames; do
9839 # Check whether tagname contains only valid characters
9840 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9842 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9843 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9844 { (exit 1); exit 1; }; }
9848 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9850 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9851 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9852 { (exit 1); exit 1; }; }
9855 # Update the list of available tags.
9856 if test -n "$tagname"; then
9857 echo appending configuration tag \"$tagname\" to $ofile
9861 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9862 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9863 (test "X$CXX" != "Xg++"))) ; then
9865 ac_cpp='$CXXCPP $CPPFLAGS'
9866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9873 archive_cmds_need_lc_CXX=no
9874 allow_undefined_flag_CXX=
9875 always_export_symbols_CXX=no
9876 archive_expsym_cmds_CXX=
9877 export_dynamic_flag_spec_CXX=
9878 hardcode_direct_CXX=no
9879 hardcode_libdir_flag_spec_CXX=
9880 hardcode_libdir_flag_spec_ld_CXX=
9881 hardcode_libdir_separator_CXX=
9882 hardcode_minus_L_CXX=no
9883 hardcode_shlibpath_var_CXX=unsupported
9884 hardcode_automatic_CXX=no
9886 module_expsym_cmds_CXX=
9887 link_all_deplibs_CXX=unknown
9888 old_archive_cmds_CXX=$old_archive_cmds
9889 no_undefined_flag_CXX=
9890 whole_archive_flag_spec_CXX=
9891 enable_shared_with_static_runtimes_CXX=no
9893 # Dependencies to place before and after the object being linked:
9895 postdep_objects_CXX=
9898 compiler_lib_search_path_CXX=
9900 # Source file extension for C++ test sources.
9903 # Object file extension for compiled C++ test sources.
9907 # Code to be used in simple compile tests
9908 lt_simple_compile_test_code="int some_variable = 0;\n"
9910 # Code to be used in simple link tests
9911 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9913 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9915 # If no C compiler was specified, use CC.
9918 # If no C compiler flags were specified, use CFLAGS.
9919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9921 # Allow CC to be a program name with arguments.
9925 # save warnings/boilerplate of simple test code
9926 ac_outfile=conftest.$ac_objext
9927 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9928 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9929 _lt_compiler_boilerplate=`cat conftest.err`
9932 ac_outfile=conftest.$ac_objext
9933 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9934 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9935 _lt_linker_boilerplate=`cat conftest.err`
9939 # Allow CC to be a program name with arguments.
9944 lt_save_with_gnu_ld=$with_gnu_ld
9945 lt_save_path_LD=$lt_cv_path_LD
9946 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9947 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9949 $as_unset lt_cv_prog_gnu_ld
9951 if test -n "${lt_cv_path_LDCXX+set}"; then
9952 lt_cv_path_LD=$lt_cv_path_LDCXX
9954 $as_unset lt_cv_path_LD
9956 test -z "${LDCXX+set}" || LD=$LDCXX
9960 for cc_temp in $compiler""; do
9962 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9963 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9968 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9971 # We don't want -fno-exception wen compiling C++ code, so set the
9972 # no_builtin_flag separately
9973 if test "$GXX" = yes; then
9974 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9976 lt_prog_compiler_no_builtin_flag_CXX=
9979 if test "$GXX" = yes; then
9980 # Set up default GNU C++ configuration
9983 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9984 if test "${with_gnu_ld+set}" = set; then
9985 withval="$with_gnu_ld"
9986 test "$withval" = no || with_gnu_ld=yes
9991 if test "$GCC" = yes; then
9992 # Check if gcc -print-prog-name=ld gives a path.
9993 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9994 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9997 # gcc leaves a trailing carriage return which upsets mingw
9998 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10000 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10003 # Accept absolute paths.
10005 re_direlt='/[^/][^/]*/\.\./'
10006 # Canonicalize the pathname of ld
10007 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10008 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10009 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10011 test -z "$LD" && LD="$ac_prog"
10014 # If it fails, then pretend we aren't using GCC.
10018 # If it is relative, then search for the first ld in PATH.
10019 with_gnu_ld=unknown
10022 elif test "$with_gnu_ld" = yes; then
10023 echo "$as_me:$LINENO: checking for GNU ld" >&5
10024 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10026 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10027 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10029 if test "${lt_cv_path_LD+set}" = set; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 if test -z "$LD"; then
10033 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10034 for ac_dir in $PATH; do
10036 test -z "$ac_dir" && ac_dir=.
10037 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10038 lt_cv_path_LD="$ac_dir/$ac_prog"
10039 # Check to see if the program is GNU ld. I'd rather use --version,
10040 # but apparently some variants of GNU ld only accept -v.
10041 # Break only if it was the GNU/non-GNU ld that we prefer.
10042 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10043 *GNU* | *'with BFD'*)
10044 test "$with_gnu_ld" != no && break
10047 test "$with_gnu_ld" != yes && break
10054 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10058 LD="$lt_cv_path_LD"
10059 if test -n "$LD"; then
10060 echo "$as_me:$LINENO: result: $LD" >&5
10061 echo "${ECHO_T}$LD" >&6
10063 echo "$as_me:$LINENO: result: no" >&5
10064 echo "${ECHO_T}no" >&6
10066 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10067 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10068 { (exit 1); exit 1; }; }
10069 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10070 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10071 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10075 case `$LD -v 2>&1 </dev/null` in
10076 *GNU* | *'with BFD'*)
10077 lt_cv_prog_gnu_ld=yes
10080 lt_cv_prog_gnu_ld=no
10084 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10085 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10086 with_gnu_ld=$lt_cv_prog_gnu_ld
10090 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10091 # archiving commands below assume that GNU ld is being used.
10092 if test "$with_gnu_ld" = yes; then
10093 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10094 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'
10096 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10097 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10099 # If archive_cmds runs LD, not CC, wlarc should be empty
10100 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10101 # investigate it a little bit more. (MM)
10104 # ancient GNU ld didn't support --whole-archive et. al.
10105 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10106 grep 'no-whole-archive' > /dev/null; then
10107 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10109 whole_archive_flag_spec_CXX=
10115 # A generic and very simple default shared library creation
10116 # command for GNU C++ for the case where it uses the native
10117 # linker, instead of GNU ld. If possible, this setting should
10118 # overridden to take advantage of the native linker features on
10119 # the platform it is being used on.
10120 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10123 # Commands to make compiler produce verbose output that lists
10124 # what "hidden" libraries, object files and flags are used when
10125 # linking a shared library.
10126 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10134 # PORTME: fill in a description of your system's C++ link characteristics
10135 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10136 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10140 # FIXME: insert proper C++ library support
10144 if test "$host_cpu" = ia64; then
10145 # On IA64, the linker does run time linking by default, so we don't
10146 # have to do anything special.
10147 aix_use_runtimelinking=no
10148 exp_sym_flag='-Bexport'
10151 aix_use_runtimelinking=no
10153 # Test if we are trying to use run time linking or normal
10154 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10155 # need to do runtime linking.
10156 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10157 for ld_flag in $LDFLAGS; do
10160 aix_use_runtimelinking=yes
10168 exp_sym_flag='-bexport'
10169 no_entry_flag='-bnoentry'
10172 # When large executables or shared objects are built, AIX ld can
10173 # have problems creating the table of contents. If linking a library
10174 # or program results in "error TOC overflow" add -mminimal-toc to
10175 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10176 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10178 archive_cmds_CXX=''
10179 hardcode_direct_CXX=yes
10180 hardcode_libdir_separator_CXX=':'
10181 link_all_deplibs_CXX=yes
10183 if test "$GXX" = yes; then
10184 case $host_os in aix4.[012]|aix4.[012].*)
10185 # We only want to do this on AIX 4.2 and lower, the check
10186 # below for broken collect2 doesn't work under 4.3+
10187 collect2name=`${CC} -print-prog-name=collect2`
10188 if test -f "$collect2name" && \
10189 strings "$collect2name" | grep resolve_lib_name >/dev/null
10191 # We have reworked collect2
10192 hardcode_direct_CXX=yes
10194 # We have old collect2
10195 hardcode_direct_CXX=unsupported
10196 # It fails to find uninstalled libraries when the uninstalled
10197 # path is not listed in the libpath. Setting hardcode_minus_L
10198 # to unsupported forces relinking
10199 hardcode_minus_L_CXX=yes
10200 hardcode_libdir_flag_spec_CXX='-L$libdir'
10201 hardcode_libdir_separator_CXX=
10205 shared_flag='-shared'
10206 if test "$aix_use_runtimelinking" = yes; then
10207 shared_flag="$shared_flag "'${wl}-G'
10211 if test "$host_cpu" = ia64; then
10212 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10213 # chokes on -Wl,-G. The following line is correct:
10216 if test "$aix_use_runtimelinking" = yes; then
10217 shared_flag='${wl}-G'
10219 shared_flag='${wl}-bM:SRE'
10224 # It seems that -bexpall does not export symbols beginning with
10225 # underscore (_), so it is better to generate a list of symbols to export.
10226 always_export_symbols_CXX=yes
10227 if test "$aix_use_runtimelinking" = yes; then
10228 # Warning - without using the other runtime loading flags (-brtl),
10229 # -berok will link without error, but may produce a broken library.
10230 allow_undefined_flag_CXX='-berok'
10231 # Determine the default libpath from the value encoded in an empty executable.
10232 cat >conftest.$ac_ext <<_ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10247 rm -f conftest.$ac_objext conftest$ac_exeext
10248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10249 (eval $ac_link) 2>conftest.er1
10251 grep -v '^ *+' conftest.er1 >conftest.err
10253 cat conftest.err >&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } &&
10256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; } &&
10262 { ac_try='test -s conftest$ac_exeext'
10263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264 (eval $ac_try) 2>&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; }; then
10269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10271 # Check for a 64-bit object if we didn't find anything.
10272 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; }
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10279 rm -f conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext conftest.$ac_ext
10281 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10283 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10285 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10287 if test "$host_cpu" = ia64; then
10288 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10289 allow_undefined_flag_CXX="-z nodefs"
10290 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10292 # Determine the default libpath from the value encoded in an empty executable.
10293 cat >conftest.$ac_ext <<_ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h. */
10308 rm -f conftest.$ac_objext conftest$ac_exeext
10309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10310 (eval $ac_link) 2>conftest.er1
10312 grep -v '^ *+' conftest.er1 >conftest.err
10314 cat conftest.err >&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } &&
10317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; } &&
10323 { ac_try='test -s conftest$ac_exeext'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10332 # Check for a 64-bit object if we didn't find anything.
10333 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; }
10336 echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10340 rm -f conftest.err conftest.$ac_objext \
10341 conftest$ac_exeext conftest.$ac_ext
10342 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10344 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10345 # Warning - without using the other run time loading flags,
10346 # -berok will link without error, but may produce a broken library.
10347 no_undefined_flag_CXX=' ${wl}-bernotok'
10348 allow_undefined_flag_CXX=' ${wl}-berok'
10349 # Exported symbols can be pulled into shared objects from archives
10350 whole_archive_flag_spec_CXX='$convenience'
10351 archive_cmds_need_lc_CXX=yes
10352 # This is similar to how AIX traditionally builds its shared libraries.
10353 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10359 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10360 allow_undefined_flag_CXX=unsupported
10361 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10362 # support --undefined. This deserves some investigation. FIXME
10363 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10370 case $cc_basename in
10372 # FIXME: insert proper C++ library support
10378 cygwin* | mingw* | pw32*)
10379 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10380 # as there is no search path for DLLs.
10381 hardcode_libdir_flag_spec_CXX='-L$libdir'
10382 allow_undefined_flag_CXX=unsupported
10383 always_export_symbols_CXX=no
10384 enable_shared_with_static_runtimes_CXX=yes
10386 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10387 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10388 # If the export-symbols file already is a .def file (1st line
10389 # is EXPORTS), use it as is; otherwise, prepend...
10390 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10391 cp $export_symbols $output_objdir/$soname.def;
10393 echo EXPORTS > $output_objdir/$soname.def;
10394 cat $export_symbols >> $output_objdir/$soname.def;
10396 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10401 darwin* | rhapsody*)
10403 rhapsody* | darwin1.[012])
10404 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10407 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10408 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10410 case ${MACOSX_DEPLOYMENT_TARGET} in
10412 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10415 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10421 archive_cmds_need_lc_CXX=no
10422 hardcode_direct_CXX=no
10423 hardcode_automatic_CXX=yes
10424 hardcode_shlibpath_var_CXX=unsupported
10425 whole_archive_flag_spec_CXX=''
10426 link_all_deplibs_CXX=yes
10428 if test "$GXX" = yes ; then
10429 lt_int_apple_cc_single_mod=no
10430 output_verbose_link_cmd='echo'
10431 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10432 lt_int_apple_cc_single_mod=yes
10434 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10435 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10437 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10439 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10440 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10441 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10442 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}'
10444 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10446 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}'
10448 case $cc_basename in
10450 output_verbose_link_cmd='echo'
10451 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10452 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10453 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10454 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10455 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}'
10465 case $cc_basename in
10467 # FIXME: insert proper C++ library support
10471 # Green Hills C++ Compiler
10472 # FIXME: insert proper C++ library support
10476 # FIXME: insert proper C++ library support
10482 # C++ shared libraries reported to be fairly broken before switch to ELF
10486 archive_cmds_need_lc_CXX=no
10488 freebsd* | kfreebsd*-gnu | dragonfly*)
10489 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10496 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10497 hardcode_libdir_separator_CXX=:
10498 export_dynamic_flag_spec_CXX='${wl}-E'
10499 hardcode_direct_CXX=yes
10500 hardcode_minus_L_CXX=yes # Not in the search PATH,
10501 # but as the default
10502 # location of the library.
10504 case $cc_basename in
10506 # FIXME: insert proper C++ library support
10510 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'
10511 # Commands to make compiler produce verbose output that lists
10512 # what "hidden" libraries, object files and flags are used when
10513 # linking a shared library.
10515 # There doesn't appear to be a way to prevent this compiler from
10516 # explicitly linking system object files so we need to strip them
10517 # from the output so that they don't get included in the library
10519 output_verbose_link_cmd='templist=`($CC -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'
10522 if test "$GXX" = yes; then
10523 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'
10525 # FIXME: insert proper C++ library support
10532 if test $with_gnu_ld = no; then
10533 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10534 hardcode_libdir_separator_CXX=:
10538 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10541 export_dynamic_flag_spec_CXX='${wl}-E'
10547 hardcode_direct_CXX=no
10548 hardcode_shlibpath_var_CXX=no
10551 hardcode_direct_CXX=yes
10552 hardcode_minus_L_CXX=yes # Not in the search PATH,
10553 # but as the default
10554 # location of the library.
10558 case $cc_basename in
10560 # FIXME: insert proper C++ library support
10566 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10569 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10572 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10575 # Commands to make compiler produce verbose output that lists
10576 # what "hidden" libraries, object files and flags are used when
10577 # linking a shared library.
10579 # There doesn't appear to be a way to prevent this compiler from
10580 # explicitly linking system object files so we need to strip them
10581 # from the output so that they don't get included in the library
10583 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'
10586 if test "$GXX" = yes; then
10587 if test $with_gnu_ld = no; then
10590 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10593 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10596 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'
10601 # FIXME: insert proper C++ library support
10608 hardcode_direct_CXX=no
10609 hardcode_shlibpath_var_CXX=no
10610 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10611 export_dynamic_flag_spec_CXX='${wl}-E'
10612 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10613 # Instead, shared libraries are loaded at an image base (0x10000000 by
10614 # default) and relocated if they conflict, which is a slow very memory
10615 # consuming and fragmenting process. To avoid this, we pick a random,
10616 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10617 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10618 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10619 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10622 case $cc_basename in
10625 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10627 # Archives containing C++ object files must be created using
10628 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10629 # necessary to make sure instantiated templates are included
10631 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10634 if test "$GXX" = yes; then
10635 if test "$with_gnu_ld" = no; then
10636 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10638 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'
10641 link_all_deplibs_CXX=yes
10644 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10645 hardcode_libdir_separator_CXX=:
10648 case $cc_basename in
10650 # Kuck and Associates, Inc. (KAI) C++ Compiler
10652 # KCC will only create a shared library if the output file
10653 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10654 # to its proper name (with version) after linking.
10655 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'
10656 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'
10657 # Commands to make compiler produce verbose output that lists
10658 # what "hidden" libraries, object files and flags are used when
10659 # linking a shared library.
10661 # There doesn't appear to be a way to prevent this compiler from
10662 # explicitly linking system object files so we need to strip them
10663 # from the output so that they don't get included in the library
10665 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'
10667 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10668 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10670 # Archives containing C++ object files must be created using
10671 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10672 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10677 # version 8.0 and above of icpc choke on multiply defined symbols
10678 # if we add $predep_objects and $postdep_objects, however 7.1 and
10679 # earlier do not add the objects themselves.
10680 case `$CC -V 2>&1` in
10682 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10683 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'
10685 *) # Version 8.0 or newer
10688 ia64*) tmp_idyn=' -i_dynamic';;
10690 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10691 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10694 archive_cmds_need_lc_CXX=no
10695 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10696 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10697 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10700 # Portland Group C++ compiler
10701 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10702 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10704 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10705 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10706 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10710 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10711 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'
10713 runpath_var=LD_RUN_PATH
10714 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10715 hardcode_libdir_separator_CXX=:
10717 # Commands to make compiler produce verbose output that lists
10718 # what "hidden" libraries, object files and flags are used when
10719 # linking a shared library.
10721 # There doesn't appear to be a way to prevent this compiler from
10722 # explicitly linking system object files so we need to strip them
10723 # from the output so that they don't get included in the library
10725 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'
10730 # FIXME: insert proper C++ library support
10734 # FIXME: insert proper C++ library support
10738 case $cc_basename in
10740 # FIXME: insert proper C++ library support
10744 # FIXME: insert proper C++ library support
10749 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10750 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10751 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10753 hardcode_libdir_flag_spec_CXX='-R$libdir'
10754 hardcode_direct_CXX=yes
10755 hardcode_shlibpath_var_CXX=no
10757 # Workaround some broken pre-1.5 toolchains
10758 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10761 # C++ shared libraries are fairly broken
10765 hardcode_direct_CXX=yes
10766 hardcode_shlibpath_var_CXX=no
10767 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10768 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10769 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10770 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10771 export_dynamic_flag_spec_CXX='${wl}-E'
10772 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10774 output_verbose_link_cmd='echo'
10777 case $cc_basename in
10779 # Kuck and Associates, Inc. (KAI) C++ Compiler
10781 # KCC will only create a shared library if the output file
10782 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10783 # to its proper name (with version) after linking.
10784 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'
10786 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10787 hardcode_libdir_separator_CXX=:
10789 # Archives containing C++ object files must be created using
10790 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10791 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10795 # Rational C++ 2.4.1
10796 # FIXME: insert proper C++ library support
10800 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10801 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10803 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10804 hardcode_libdir_separator_CXX=:
10806 # Commands to make compiler produce verbose output that lists
10807 # what "hidden" libraries, object files and flags are used when
10808 # linking a shared library.
10810 # There doesn't appear to be a way to prevent this compiler from
10811 # explicitly linking system object files so we need to strip them
10812 # from the output so that they don't get included in the library
10814 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'
10817 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10818 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10819 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10821 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10822 hardcode_libdir_separator_CXX=:
10824 # Commands to make compiler produce verbose output that lists
10825 # what "hidden" libraries, object files and flags are used when
10826 # linking a shared library.
10827 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10830 # FIXME: insert proper C++ library support
10837 case $cc_basename in
10839 # Kuck and Associates, Inc. (KAI) C++ Compiler
10841 # KCC will only create a shared library if the output file
10842 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10843 # to its proper name (with version) after linking.
10844 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'
10846 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10847 hardcode_libdir_separator_CXX=:
10849 # Archives containing C++ object files must be created using
10850 # the KAI C++ compiler.
10851 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10854 # Rational C++ 2.4.1
10855 # FIXME: insert proper C++ library support
10859 allow_undefined_flag_CXX=' -expect_unresolved \*'
10860 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10861 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10862 echo "-hidden">> $lib.exp~
10863 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10866 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10867 hardcode_libdir_separator_CXX=:
10869 # Commands to make compiler produce verbose output that lists
10870 # what "hidden" libraries, object files and flags are used when
10871 # linking a shared library.
10873 # There doesn't appear to be a way to prevent this compiler from
10874 # explicitly linking system object files so we need to strip them
10875 # from the output so that they don't get included in the library
10877 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'
10880 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10881 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10882 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10884 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10885 hardcode_libdir_separator_CXX=:
10887 # Commands to make compiler produce verbose output that lists
10888 # what "hidden" libraries, object files and flags are used when
10889 # linking a shared library.
10890 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10893 # FIXME: insert proper C++ library support
10900 # FIXME: insert proper C++ library support
10904 case $cc_basename in
10907 # FIXME: insert proper C++ library support
10912 # FIXME: insert proper C++ library support
10916 # FIXME: insert proper C++ library support
10922 case $cc_basename in
10924 # Sun C++ 4.2, 5.x and Centerline C++
10925 archive_cmds_need_lc_CXX=yes
10926 no_undefined_flag_CXX=' -zdefs'
10927 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10928 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10929 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10931 hardcode_libdir_flag_spec_CXX='-R$libdir'
10932 hardcode_shlibpath_var_CXX=no
10934 solaris2.[0-5] | solaris2.[0-5].*) ;;
10936 # The C++ compiler is used as linker so we must use $wl
10937 # flag to pass the commands to the underlying system
10938 # linker. We must also pass each convience library through
10939 # to the system linker between allextract/defaultextract.
10940 # The C++ compiler will combine linker options so we
10941 # cannot just pass the convience library names through
10943 # Supported since Solaris 2.6 (maybe 2.5.1?)
10944 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10947 link_all_deplibs_CXX=yes
10949 output_verbose_link_cmd='echo'
10951 # Archives containing C++ object files must be created using
10952 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10953 # necessary to make sure instantiated templates are included
10955 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10958 # Green Hills C++ Compiler
10959 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10961 # The C++ compiler must be used to create the archive.
10962 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10965 # GNU C++ compiler with Solaris linker
10966 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10967 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10968 if $CC --version | grep -v '^2\.7' > /dev/null; then
10969 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10970 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10971 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10973 # Commands to make compiler produce verbose output that lists
10974 # what "hidden" libraries, object files and flags are used when
10975 # linking a shared library.
10976 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10978 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10980 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10981 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10982 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10984 # Commands to make compiler produce verbose output that lists
10985 # what "hidden" libraries, object files and flags are used when
10986 # linking a shared library.
10987 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10990 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10995 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10996 no_undefined_flag_CXX='${wl}-z,text'
10997 archive_cmds_need_lc_CXX=no
10998 hardcode_shlibpath_var_CXX=no
10999 runpath_var='LD_RUN_PATH'
11001 case $cc_basename in
11003 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11012 sysv5* | sco3.2v5* | sco5v6*)
11013 # Note: We can NOT use -z defs as we might desire, because we do not
11014 # link with -lc, and that would cause any symbols used from libc to
11015 # always be unresolved, which means just about no library would
11016 # ever link correctly. If we're not using GNU ld we use -z text
11017 # though, which does catch some bad symbols but isn't as heavy-handed
11019 # For security reasons, it is highly recommended that you always
11020 # use absolute paths for naming shared libraries, and exclude the
11021 # DT_RUNPATH tag from executables and libraries. But doing so
11022 # requires that you compile everything twice, which is a pain.
11023 # So that behaviour is only enabled if SCOABSPATH is set to a
11024 # non-empty value in the environment. Most likely only useful for
11025 # creating official distributions of packages.
11026 # This is a hack until libtool officially supports absolute path
11027 # names for shared libraries.
11028 no_undefined_flag_CXX='${wl}-z,text'
11029 allow_undefined_flag_CXX='${wl}-z,nodefs'
11030 archive_cmds_need_lc_CXX=no
11031 hardcode_shlibpath_var_CXX=no
11032 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11033 hardcode_libdir_separator_CXX=':'
11034 link_all_deplibs_CXX=yes
11035 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11036 runpath_var='LD_RUN_PATH'
11038 case $cc_basename in
11040 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11041 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11044 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11045 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11050 case $cc_basename in
11052 # NonStop-UX NCC 3.20
11053 # FIXME: insert proper C++ library support
11057 # FIXME: insert proper C++ library support
11063 # FIXME: insert proper C++ library support
11067 # FIXME: insert proper C++ library support
11071 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11072 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11073 test "$ld_shlibs_CXX" = no && can_build_shared=no
11079 cat > conftest.$ac_ext <<EOF
11083 Foo (void) { a = 0; }
11089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11090 (eval $ac_compile) 2>&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; then
11094 # Parse the compiler output and extract the necessary
11095 # objects, libraries and library flags.
11097 # Sentinel used to keep track of whether or not we are before
11098 # the conftest object file.
11099 pre_test_object_deps_done=no
11101 # The `*' in the case matches for architectures that use `case' in
11102 # $output_verbose_cmd can trigger glob expansion during the loop
11103 # eval without this substitution.
11104 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11106 for p in `eval $output_verbose_link_cmd`; do
11110 # Some compilers place space between "-{L,R}" and the path.
11111 # Remove the space.
11112 if test $p = "-L" \
11113 || test $p = "-R"; then
11120 if test "$pre_test_object_deps_done" = no; then
11123 # Internal compiler library paths should come after those
11124 # provided the user. The postdeps already come after the
11125 # user supplied libs so there is no need to process them.
11126 if test -z "$compiler_lib_search_path_CXX"; then
11127 compiler_lib_search_path_CXX="${prev}${p}"
11129 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11132 # The "-l" case would never come before the object being
11133 # linked, so don't bother handling this case.
11136 if test -z "$postdeps_CXX"; then
11137 postdeps_CXX="${prev}${p}"
11139 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11145 # This assumes that the test object file only shows up
11146 # once in the compiler output.
11147 if test "$p" = "conftest.$objext"; then
11148 pre_test_object_deps_done=yes
11152 if test "$pre_test_object_deps_done" = no; then
11153 if test -z "$predep_objects_CXX"; then
11154 predep_objects_CXX="$p"
11156 predep_objects_CXX="$predep_objects_CXX $p"
11159 if test -z "$postdep_objects_CXX"; then
11160 postdep_objects_CXX="$p"
11162 postdep_objects_CXX="$postdep_objects_CXX $p"
11167 *) ;; # Ignore the rest.
11175 echo "libtool.m4: error: problem compiling CXX test program"
11178 $rm -f confest.$objext
11180 # PORTME: override above test on systems where it is broken
11183 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11184 # hack all around it, let's just trust "g++" to DTRT.
11185 predep_objects_CXX=
11186 postdep_objects_CXX=
11191 case $cc_basename in
11193 # Adding this requires a known-good setup of shared libraries for
11194 # Sun compiler versions before 5.6, else PIC objects from an old
11195 # archive will be linked into the output, leading to subtle bugs.
11196 postdeps_CXX='-lCstd -lCrun'
11203 case " $postdeps_CXX " in
11204 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11207 lt_prog_compiler_wl_CXX=
11208 lt_prog_compiler_pic_CXX=
11209 lt_prog_compiler_static_CXX=
11211 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11212 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11214 # C++ specific cases for pic, static, wl, etc.
11215 if test "$GXX" = yes; then
11216 lt_prog_compiler_wl_CXX='-Wl,'
11217 lt_prog_compiler_static_CXX='-static'
11221 # All AIX code is PIC.
11222 if test "$host_cpu" = ia64; then
11223 # AIX 5 now supports IA64 processor
11224 lt_prog_compiler_static_CXX='-Bstatic'
11228 # FIXME: we need at least 68020 code to build shared libraries, but
11229 # adding the `-m68020' flag to GCC prevents building anything better,
11231 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11233 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11234 # PIC is the default for these OSes.
11236 mingw* | os2* | pw32*)
11237 # This hack is so that the source file can tell whether it is being
11238 # built for inclusion in a dll (and should export symbols for example).
11239 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11241 darwin* | rhapsody*)
11242 # PIC is the default on this platform
11243 # Common symbols not allowed in MH_DYLIB files
11244 lt_prog_compiler_pic_CXX='-fno-common'
11247 # DJGPP does not support shared libraries at all
11248 lt_prog_compiler_pic_CXX=
11251 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11252 # Instead, we relocate shared libraries at runtime.
11255 if test -d /usr/nec; then
11256 lt_prog_compiler_pic_CXX=-Kconform_pic
11260 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11261 # not for PA HP-UX.
11266 lt_prog_compiler_pic_CXX='-fPIC'
11271 lt_prog_compiler_pic_CXX='-fPIC'
11277 # All AIX code is PIC.
11278 if test "$host_cpu" = ia64; then
11279 # AIX 5 now supports IA64 processor
11280 lt_prog_compiler_static_CXX='-Bstatic'
11282 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11286 case $cc_basename in
11288 # Green Hills C++ Compiler
11289 # _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"
11294 # PIC is the default on this platform
11295 # Common symbols not allowed in MH_DYLIB files
11296 case $cc_basename in
11298 lt_prog_compiler_pic_CXX='-qnocommon'
11299 lt_prog_compiler_wl_CXX='-Wl,'
11304 case $cc_basename in
11306 lt_prog_compiler_pic_CXX='-KPIC'
11309 # Green Hills C++ Compiler
11310 lt_prog_compiler_pic_CXX='-pic'
11316 freebsd* | kfreebsd*-gnu | dragonfly*)
11317 # FreeBSD uses GNU C++
11319 hpux9* | hpux10* | hpux11*)
11320 case $cc_basename in
11322 lt_prog_compiler_wl_CXX='-Wl,'
11323 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11324 if test "$host_cpu" != ia64; then
11325 lt_prog_compiler_pic_CXX='+Z'
11329 lt_prog_compiler_wl_CXX='-Wl,'
11330 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11336 lt_prog_compiler_pic_CXX='+Z'
11345 # This is c89, which is MS Visual C++ (no shared libs)
11346 # Anyone wants to do a port?
11348 irix5* | irix6* | nonstopux*)
11349 case $cc_basename in
11351 lt_prog_compiler_wl_CXX='-Wl,'
11352 lt_prog_compiler_static_CXX='-non_shared'
11353 # CC pic flag -KPIC is the default.
11360 case $cc_basename in
11363 lt_prog_compiler_wl_CXX='--backend -Wl,'
11364 lt_prog_compiler_pic_CXX='-fPIC'
11368 lt_prog_compiler_wl_CXX='-Wl,'
11369 lt_prog_compiler_pic_CXX='-KPIC'
11370 lt_prog_compiler_static_CXX='-static'
11373 # Portland Group C++ compiler.
11374 lt_prog_compiler_wl_CXX='-Wl,'
11375 lt_prog_compiler_pic_CXX='-fpic'
11376 lt_prog_compiler_static_CXX='-Bstatic'
11380 # Make sure the PIC flag is empty. It appears that all Alpha
11381 # Linux and Compaq Tru64 Unix objects are PIC.
11382 lt_prog_compiler_pic_CXX=
11383 lt_prog_compiler_static_CXX='-non_shared'
11394 case $cc_basename in
11396 lt_prog_compiler_pic_CXX='-W c,exportall'
11402 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11404 osf3* | osf4* | osf5*)
11405 case $cc_basename in
11407 lt_prog_compiler_wl_CXX='--backend -Wl,'
11410 # Rational C++ 2.4.1
11411 lt_prog_compiler_pic_CXX='-pic'
11414 # Digital/Compaq C++
11415 lt_prog_compiler_wl_CXX='-Wl,'
11416 # Make sure the PIC flag is empty. It appears that all Alpha
11417 # Linux and Compaq Tru64 Unix objects are PIC.
11418 lt_prog_compiler_pic_CXX=
11419 lt_prog_compiler_static_CXX='-non_shared'
11428 case $cc_basename in
11430 # Sun C++ 4.2, 5.x and Centerline C++
11431 lt_prog_compiler_pic_CXX='-KPIC'
11432 lt_prog_compiler_static_CXX='-Bstatic'
11433 lt_prog_compiler_wl_CXX='-Qoption ld '
11436 # Green Hills C++ Compiler
11437 lt_prog_compiler_pic_CXX='-PIC'
11444 case $cc_basename in
11447 lt_prog_compiler_pic_CXX='-pic'
11448 lt_prog_compiler_static_CXX='-Bstatic'
11452 lt_prog_compiler_pic_CXX='-pic'
11459 case $cc_basename in
11461 # NonStop-UX NCC 3.20
11462 lt_prog_compiler_pic_CXX='-KPIC'
11468 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11469 case $cc_basename in
11471 lt_prog_compiler_wl_CXX='-Wl,'
11472 lt_prog_compiler_pic_CXX='-KPIC'
11473 lt_prog_compiler_static_CXX='-Bstatic'
11480 lt_prog_compiler_can_build_shared_CXX=no
11485 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11486 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11489 # Check to make sure the PIC flag actually works.
11491 if test -n "$lt_prog_compiler_pic_CXX"; then
11493 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11494 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11495 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 lt_prog_compiler_pic_works_CXX=no
11499 ac_outfile=conftest.$ac_objext
11500 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11501 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11502 # Insert the option either (1) after the last *FLAGS variable, or
11503 # (2) before a word containing "conftest.", or (3) at the end.
11504 # Note that $ac_compile itself does not contain backslashes and begins
11505 # with a dollar sign (not a hyphen), so the echo should work correctly.
11506 # The option is referenced via a variable to avoid confusing sed.
11507 lt_compile=`echo "$ac_compile" | $SED \
11508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11510 -e 's:$: $lt_compiler_flag:'`
11511 (eval echo "\"\$as_me:11511: $lt_compile\"" >&5)
11512 (eval "$lt_compile" 2>conftest.err)
11514 cat conftest.err >&5
11515 echo "$as_me:11515: \$? = $ac_status" >&5
11516 if (exit $ac_status) && test -s "$ac_outfile"; then
11517 # The compiler can only warn and ignore the option if not recognized
11518 # So say no if there are warnings other than the usual output.
11519 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11521 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11522 lt_prog_compiler_pic_works_CXX=yes
11528 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11529 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11531 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11532 case $lt_prog_compiler_pic_CXX in
11534 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11537 lt_prog_compiler_pic_CXX=
11538 lt_prog_compiler_can_build_shared_CXX=no
11543 # For platforms which do not support PIC, -DPIC is meaningless:
11545 lt_prog_compiler_pic_CXX=
11548 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11553 # Check to make sure the static flag actually works.
11555 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11556 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11557 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11558 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 lt_prog_compiler_static_works_CXX=no
11562 save_LDFLAGS="$LDFLAGS"
11563 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11564 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11565 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11566 # The linker can only warn and ignore the option if not recognized
11567 # So say no if there are warnings
11568 if test -s conftest.err; then
11569 # Append any errors to the config.log.
11570 cat conftest.err 1>&5
11571 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11573 if diff conftest.exp conftest.er2 >/dev/null; then
11574 lt_prog_compiler_static_works_CXX=yes
11577 lt_prog_compiler_static_works_CXX=yes
11581 LDFLAGS="$save_LDFLAGS"
11584 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11585 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11587 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11590 lt_prog_compiler_static_CXX=
11594 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11595 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11596 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 lt_cv_prog_compiler_c_o_CXX=no
11600 $rm -r conftest 2>/dev/null
11604 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11606 lt_compiler_flag="-o out/conftest2.$ac_objext"
11607 # Insert the option either (1) after the last *FLAGS variable, or
11608 # (2) before a word containing "conftest.", or (3) at the end.
11609 # Note that $ac_compile itself does not contain backslashes and begins
11610 # with a dollar sign (not a hyphen), so the echo should work correctly.
11611 lt_compile=`echo "$ac_compile" | $SED \
11612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11614 -e 's:$: $lt_compiler_flag:'`
11615 (eval echo "\"\$as_me:11615: $lt_compile\"" >&5)
11616 (eval "$lt_compile" 2>out/conftest.err)
11618 cat out/conftest.err >&5
11619 echo "$as_me:11619: \$? = $ac_status" >&5
11620 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11622 # The compiler can only warn and ignore the option if not recognized
11623 # So say no if there are warnings
11624 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11625 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11626 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11627 lt_cv_prog_compiler_c_o_CXX=yes
11632 # SGI C++ compiler will create directory out/ii_files/ for
11633 # template instantiation
11634 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11635 $rm out/* && rmdir out
11641 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11642 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11645 hard_links="nottested"
11646 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11647 # do not overwrite the value of need_locks provided by the user
11648 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11649 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11652 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11654 ln conftest.a conftest.b 2>&5 || hard_links=no
11655 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11656 echo "$as_me:$LINENO: result: $hard_links" >&5
11657 echo "${ECHO_T}$hard_links" >&6
11658 if test "$hard_links" = no; then
11659 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11660 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11667 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11668 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11670 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11673 # If we're using GNU nm, then we don't want the "-C" option.
11674 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11675 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11676 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'
11678 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'
11682 export_symbols_cmds_CXX="$ltdll_cmds"
11685 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11688 link_all_deplibs_CXX=no
11691 link_all_deplibs_CXX=no
11694 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11698 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11699 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11700 test "$ld_shlibs_CXX" = no && can_build_shared=no
11703 # Do we need to explicitly link libc?
11705 case "x$archive_cmds_need_lc_CXX" in
11707 # Assume -lc should be added
11708 archive_cmds_need_lc_CXX=yes
11710 if test "$enable_shared" = yes && test "$GCC" = yes; then
11711 case $archive_cmds_CXX in
11713 # FIXME: we may have to deal with multi-command sequences.
11716 # Test whether the compiler implicitly links with -lc since on some
11717 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11718 # to ld, don't add -lc before -lgcc.
11719 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11720 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11722 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11725 (eval $ac_compile) 2>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } 2>conftest.err; then
11731 libobjs=conftest.$ac_objext
11733 wl=$lt_prog_compiler_wl_CXX
11734 pic_flag=$lt_prog_compiler_pic_CXX
11740 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11741 allow_undefined_flag_CXX=
11742 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11743 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }
11748 archive_cmds_need_lc_CXX=no
11750 archive_cmds_need_lc_CXX=yes
11752 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11754 cat conftest.err 1>&5
11757 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11758 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11765 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11766 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11767 library_names_spec=
11768 libname_spec='lib$name'
11772 postuninstall_cmds=
11776 shlibpath_overrides_runpath=unknown
11778 dynamic_linker="$host_os ld.so"
11779 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11780 if test "$GCC" = yes; then
11781 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11782 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11783 # if the path contains ";" then we assume it to be the separator
11784 # otherwise default to the standard path separator (i.e. ":") - it is
11785 # assumed that no part of a normal pathname contains ";" but that should
11786 # okay in the real world where ";" in dirpaths is itself problematic.
11787 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11792 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11794 need_lib_prefix=unknown
11795 hardcode_into_libs=no
11797 # when you set need_version to no, make sure it does not cause -set_version
11798 # flags to be left without arguments
11799 need_version=unknown
11804 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11805 shlibpath_var=LIBPATH
11807 # AIX 3 has no versioning support, so we append a major version to the name.
11808 soname_spec='${libname}${release}${shared_ext}$major'
11815 hardcode_into_libs=yes
11816 if test "$host_cpu" = ia64; then
11817 # AIX 5 supports IA64
11818 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11819 shlibpath_var=LD_LIBRARY_PATH
11821 # With GCC up to 2.95.x, collect2 would create an import file
11822 # for dependence libraries. The import file would start with
11823 # the line `#! .'. This would cause the generated library to
11824 # depend on `.', always an invalid library. This was fixed in
11825 # development snapshots of GCC prior to 3.0.
11827 aix4 | aix4.[01] | aix4.[01].*)
11828 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11830 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11833 can_build_shared=no
11837 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11838 # soname into executable. Probably we can add versioning support to
11839 # collect2, so additional links can be useful in future.
11840 if test "$aix_use_runtimelinking" = yes; then
11841 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11842 # instead of lib<name>.a to let people know that these are not
11843 # typical AIX shared libraries.
11844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11846 # We preserve .a as extension for shared libraries through AIX4.2
11847 # and later when we are not doing run time linking.
11848 library_names_spec='${libname}${release}.a $libname.a'
11849 soname_spec='${libname}${release}${shared_ext}$major'
11851 shlibpath_var=LIBPATH
11856 library_names_spec='$libname.ixlibrary $libname.a'
11857 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11858 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'
11862 library_names_spec='${libname}${shared_ext}'
11863 dynamic_linker="$host_os ld.so"
11864 shlibpath_var=LIBRARY_PATH
11870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11871 soname_spec='${libname}${release}${shared_ext}$major'
11872 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11873 shlibpath_var=LD_LIBRARY_PATH
11874 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11875 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11876 # the default ld.so.conf also contains /usr/contrib/lib and
11877 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11878 # libtool to hard-code these into programs
11881 cygwin* | mingw* | pw32*)
11882 version_type=windows
11887 case $GCC,$host_os in
11888 yes,cygwin* | yes,mingw* | yes,pw32*)
11889 library_names_spec='$libname.dll.a'
11890 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11891 postinstall_cmds='base_file=`basename \${file}`~
11892 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11893 dldir=$destdir/`dirname \$dlpath`~
11894 test -d \$dldir || mkdir -p \$dldir~
11895 $install_prog $dir/$dlname \$dldir/$dlname~
11896 chmod a+x \$dldir/$dlname'
11897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11898 dlpath=$dir/\$dldll~
11900 shlibpath_overrides_runpath=yes
11904 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11905 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11906 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11909 # MinGW DLLs use traditional 'lib' prefix
11910 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11911 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11912 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11913 # It is most probably a Windows format PATH printed by
11914 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11915 # path with ; separators, and with drive letters. We can handle the
11916 # drive letters (cygwin fileutils understands them), so leave them,
11917 # especially as we might pass files found there to a mingw objdump,
11918 # which wouldn't understand a cygwinified path. Ahh.
11919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11925 # pw32 DLLs use 'pw' prefix rather than 'lib'
11926 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11932 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11935 dynamic_linker='Win32 ld.exe'
11936 # FIXME: first we should search . and the directory the executable is in
11940 darwin* | rhapsody*)
11941 dynamic_linker="$host_os dyld"
11942 version_type=darwin
11945 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11946 soname_spec='${libname}${release}${major}$shared_ext'
11947 shlibpath_overrides_runpath=yes
11948 shlibpath_var=DYLD_LIBRARY_PATH
11949 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11950 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11951 if test "$GCC" = yes; then
11952 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"`
11954 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11956 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11964 soname_spec='${libname}${release}${shared_ext}$major'
11965 shlibpath_var=LD_LIBRARY_PATH
11976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11977 soname_spec='${libname}${release}${shared_ext}$major'
11978 shlibpath_var=LD_LIBRARY_PATH
11979 shlibpath_overrides_runpath=no
11980 hardcode_into_libs=yes
11981 dynamic_linker='GNU ld.so'
11984 freebsd* | dragonfly*)
11985 # DragonFly does not have aout. When/if they implement a new
11986 # versioning mechanism, adjust this.
11987 if test -x /usr/bin/objformat; then
11988 objformat=`/usr/bin/objformat`
11991 freebsd[123]*) objformat=aout ;;
11992 *) objformat=elf ;;
11995 version_type=freebsd-$objformat
11996 case $version_type in
11998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12003 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12007 shlibpath_var=LD_LIBRARY_PATH
12010 shlibpath_overrides_runpath=yes
12012 freebsd3.[01]* | freebsdelf3.[01]*)
12013 shlibpath_overrides_runpath=yes
12014 hardcode_into_libs=yes
12016 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12017 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12018 shlibpath_overrides_runpath=no
12019 hardcode_into_libs=yes
12021 freebsd*) # from 4.6 on
12022 shlibpath_overrides_runpath=yes
12023 hardcode_into_libs=yes
12032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12033 soname_spec='${libname}${release}${shared_ext}$major'
12034 shlibpath_var=LD_LIBRARY_PATH
12035 hardcode_into_libs=yes
12038 hpux9* | hpux10* | hpux11*)
12039 # Give a soname corresponding to the major version so that dld.sl refuses to
12040 # link against other versions.
12047 hardcode_into_libs=yes
12048 dynamic_linker="$host_os dld.so"
12049 shlibpath_var=LD_LIBRARY_PATH
12050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12052 soname_spec='${libname}${release}${shared_ext}$major'
12053 if test "X$HPUX_IA64_MODE" = X32; then
12054 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12056 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12058 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12062 hardcode_into_libs=yes
12063 dynamic_linker="$host_os dld.sl"
12064 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12065 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12067 soname_spec='${libname}${release}${shared_ext}$major'
12068 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12069 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12073 dynamic_linker="$host_os dld.sl"
12074 shlibpath_var=SHLIB_PATH
12075 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12077 soname_spec='${libname}${release}${shared_ext}$major'
12080 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12081 postinstall_cmds='chmod 555 $lib'
12088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12089 soname_spec='${libname}${release}${shared_ext}$major'
12090 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12091 shlibpath_var=LD_LIBRARY_PATH
12092 shlibpath_overrides_runpath=no
12093 hardcode_into_libs=yes
12096 irix5* | irix6* | nonstopux*)
12098 nonstopux*) version_type=nonstopux ;;
12100 if test "$lt_cv_prog_gnu_ld" = yes; then
12108 soname_spec='${libname}${release}${shared_ext}$major'
12109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12111 irix5* | nonstopux*)
12112 libsuff= shlibsuff=
12115 case $LD in # libtool.m4 will add one of these switches to LD
12116 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12117 libsuff= shlibsuff= libmagic=32-bit;;
12118 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12119 libsuff=32 shlibsuff=N32 libmagic=N32;;
12120 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12121 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12122 *) libsuff= shlibsuff= libmagic=never-match;;
12126 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12127 shlibpath_overrides_runpath=no
12128 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12129 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12130 hardcode_into_libs=yes
12133 # No shared lib support for Linux oldld, aout, or coff.
12134 linux*oldld* | linux*aout* | linux*coff*)
12138 # This must be Linux ELF.
12143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12144 soname_spec='${libname}${release}${shared_ext}$major'
12145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12146 shlibpath_var=LD_LIBRARY_PATH
12147 shlibpath_overrides_runpath=no
12148 # This implies no fast_install, which is unacceptable.
12149 # Some rework will be needed to allow for fast_install
12150 # before this can be enabled.
12151 hardcode_into_libs=yes
12153 # Append ld.so.conf contents to the search path
12154 if test -f /etc/ld.so.conf; then
12155 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12156 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12159 # We used to test for /lib/ld.so.1 and disable shared libraries on
12160 # powerpc, because MkLinux only supported shared libraries with the
12161 # GNU dynamic linker. Since this was broken with cross compilers,
12162 # most powerpc-linux boxes support dynamic linking these days and
12163 # people can always --disable-shared, the test was removed, and we
12164 # assume the GNU/Linux dynamic linker is in use.
12165 dynamic_linker='GNU/Linux ld.so'
12172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12173 soname_spec='${libname}${release}${shared_ext}$major'
12174 shlibpath_var=LD_LIBRARY_PATH
12175 shlibpath_overrides_runpath=no
12176 hardcode_into_libs=yes
12177 dynamic_linker='NetBSD ld.elf_so'
12184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12185 soname_spec='${libname}${release}${shared_ext}$major'
12186 shlibpath_var=LD_LIBRARY_PATH
12187 shlibpath_overrides_runpath=no
12188 hardcode_into_libs=yes
12189 dynamic_linker='GNU ld.so'
12196 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12199 dynamic_linker='NetBSD (a.out) ld.so'
12201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12202 soname_spec='${libname}${release}${shared_ext}$major'
12203 dynamic_linker='NetBSD ld.elf_so'
12205 shlibpath_var=LD_LIBRARY_PATH
12206 shlibpath_overrides_runpath=yes
12207 hardcode_into_libs=yes
12212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12213 shlibpath_var=LD_LIBRARY_PATH
12214 shlibpath_overrides_runpath=yes
12221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12222 soname_spec='${libname}${release}${shared_ext}$major'
12223 shlibpath_var=LD_LIBRARY_PATH
12224 shlibpath_overrides_runpath=yes
12229 sys_lib_dlsearch_path_spec="/usr/lib"
12231 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12233 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12234 *) need_version=no ;;
12236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12238 shlibpath_var=LD_LIBRARY_PATH
12239 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12241 openbsd2.[89] | openbsd2.[89].*)
12242 shlibpath_overrides_runpath=no
12245 shlibpath_overrides_runpath=yes
12249 shlibpath_overrides_runpath=yes
12254 libname_spec='$name'
12257 library_names_spec='$libname${shared_ext} $libname.a'
12258 dynamic_linker='OS/2 ld.exe'
12259 shlibpath_var=LIBPATH
12262 osf3* | osf4* | osf5*)
12266 soname_spec='${libname}${release}${shared_ext}$major'
12267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12268 shlibpath_var=LD_LIBRARY_PATH
12269 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12270 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12278 soname_spec='${libname}${release}${shared_ext}$major'
12279 shlibpath_var=LD_LIBRARY_PATH
12280 shlibpath_overrides_runpath=yes
12281 hardcode_into_libs=yes
12282 # ldd complains unless libraries are executable
12283 postinstall_cmds='chmod +x $lib'
12288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12289 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12290 shlibpath_var=LD_LIBRARY_PATH
12291 shlibpath_overrides_runpath=yes
12292 if test "$with_gnu_ld" = yes; then
12300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12301 soname_spec='${libname}${release}${shared_ext}$major'
12302 shlibpath_var=LD_LIBRARY_PATH
12303 case $host_vendor in
12305 shlibpath_overrides_runpath=no
12307 export_dynamic_flag_spec='${wl}-Blargedynsym'
12308 runpath_var=LD_RUN_PATH
12316 shlibpath_overrides_runpath=no
12317 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12323 if test -d /usr/nec ;then
12325 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12326 soname_spec='$libname${shared_ext}.$major'
12327 shlibpath_var=LD_LIBRARY_PATH
12331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12332 version_type=freebsd-elf
12335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12336 soname_spec='${libname}${release}${shared_ext}$major'
12337 shlibpath_var=LD_LIBRARY_PATH
12338 hardcode_into_libs=yes
12339 if test "$with_gnu_ld" = yes; then
12340 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12341 shlibpath_overrides_runpath=no
12343 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12344 shlibpath_overrides_runpath=yes
12347 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12351 sys_lib_dlsearch_path_spec='/usr/lib'
12356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12357 soname_spec='${libname}${release}${shared_ext}$major'
12358 shlibpath_var=LD_LIBRARY_PATH
12365 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12366 echo "${ECHO_T}$dynamic_linker" >&6
12367 test "$dynamic_linker" = no && can_build_shared=no
12369 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12370 if test "$GCC" = yes; then
12371 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12374 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12375 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12376 hardcode_action_CXX=
12377 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12378 test -n "$runpath_var_CXX" || \
12379 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12381 # We can hardcode non-existant directories.
12382 if test "$hardcode_direct_CXX" != no &&
12383 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12384 # have to relink, otherwise we might link with an installed library
12385 # when we should be linking with a yet-to-be-installed one
12386 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12387 test "$hardcode_minus_L_CXX" != no; then
12388 # Linking always hardcodes the temporary library directory.
12389 hardcode_action_CXX=relink
12391 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12392 hardcode_action_CXX=immediate
12395 # We cannot hardcode anything, or else we can only hardcode existing
12397 hardcode_action_CXX=unsupported
12399 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12400 echo "${ECHO_T}$hardcode_action_CXX" >&6
12402 if test "$hardcode_action_CXX" = relink; then
12403 # Fast installation is not supported
12404 enable_fast_install=no
12405 elif test "$shlibpath_overrides_runpath" = yes ||
12406 test "$enable_shared" = no; then
12407 # Fast installation is not necessary
12408 enable_fast_install=needless
12412 # The else clause should only fire when bootstrapping the
12413 # libtool distribution, otherwise you forgot to ship ltmain.sh
12414 # with your package, and you will get complaints that there are
12415 # no rules to generate ltmain.sh.
12416 if test -f "$ltmain"; then
12417 # See if we are running on zsh, and set the options which allow our commands through
12418 # without removal of \ escapes.
12419 if test -n "${ZSH_VERSION+set}" ; then
12420 setopt NO_GLOB_SUBST
12422 # Now quote all the things that may contain metacharacters while being
12423 # careful not to overquote the AC_SUBSTed values. We take copies of the
12424 # variables and quote the copies for generation of the libtool script.
12425 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12427 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12428 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12429 deplibs_check_method reload_flag reload_cmds need_locks \
12430 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12431 lt_cv_sys_global_symbol_to_c_name_address \
12432 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12433 old_postinstall_cmds old_postuninstall_cmds \
12437 lt_prog_compiler_wl_CXX \
12438 lt_prog_compiler_pic_CXX \
12439 lt_prog_compiler_static_CXX \
12440 lt_prog_compiler_no_builtin_flag_CXX \
12441 export_dynamic_flag_spec_CXX \
12442 thread_safe_flag_spec_CXX \
12443 whole_archive_flag_spec_CXX \
12444 enable_shared_with_static_runtimes_CXX \
12445 old_archive_cmds_CXX \
12446 old_archive_from_new_cmds_CXX \
12447 predep_objects_CXX \
12448 postdep_objects_CXX \
12451 compiler_lib_search_path_CXX \
12453 archive_expsym_cmds_CXX \
12454 postinstall_cmds_CXX \
12455 postuninstall_cmds_CXX \
12456 old_archive_from_expsyms_cmds_CXX \
12457 allow_undefined_flag_CXX \
12458 no_undefined_flag_CXX \
12459 export_symbols_cmds_CXX \
12460 hardcode_libdir_flag_spec_CXX \
12461 hardcode_libdir_flag_spec_ld_CXX \
12462 hardcode_libdir_separator_CXX \
12463 hardcode_automatic_CXX \
12465 module_expsym_cmds_CXX \
12466 lt_cv_prog_compiler_c_o_CXX \
12467 exclude_expsyms_CXX \
12468 include_expsyms_CXX; do
12471 old_archive_cmds_CXX | \
12472 old_archive_from_new_cmds_CXX | \
12473 archive_cmds_CXX | \
12474 archive_expsym_cmds_CXX | \
12475 module_cmds_CXX | \
12476 module_expsym_cmds_CXX | \
12477 old_archive_from_expsyms_cmds_CXX | \
12478 export_symbols_cmds_CXX | \
12479 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12480 postinstall_cmds | postuninstall_cmds | \
12481 old_postinstall_cmds | old_postuninstall_cmds | \
12482 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12483 # Double-quote double-evaled strings.
12484 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12487 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12493 *'\$0 --fallback-echo"')
12494 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12500 cat <<__EOF__ >> "$cfgfile"
12501 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12503 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12505 # Shell to use when invoking shell scripts.
12508 # Whether or not to build shared libraries.
12509 build_libtool_libs=$enable_shared
12511 # Whether or not to build static libraries.
12512 build_old_libs=$enable_static
12514 # Whether or not to add -lc for building shared libraries.
12515 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12517 # Whether or not to disallow shared libs when runtime libs are static
12518 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12520 # Whether or not to optimize for fast installation.
12521 fast_install=$enable_fast_install
12524 host_alias=$host_alias
12528 # The build system.
12529 build_alias=$build_alias
12533 # An echo program that does not interpret backslashes.
12538 AR_FLAGS=$lt_AR_FLAGS
12543 # LTCC compiler flags.
12544 LTCFLAGS=$lt_LTCFLAGS
12546 # A language-specific compiler.
12547 CC=$lt_compiler_CXX
12549 # Is the compiler the GNU C compiler?
12555 # The linker used to build libraries.
12558 # Whether we need hard or soft links.
12561 # A BSD-compatible nm program.
12564 # A symbol stripping program
12567 # Used to examine libraries when file_magic_cmd begins "file"
12568 MAGIC_CMD=$MAGIC_CMD
12570 # Used on cygwin: DLL creation program.
12573 # Used on cygwin: object dumper.
12576 # Used on cygwin: assembler.
12579 # The name of the directory that contains temporary libtool files.
12582 # How to create reloadable object files.
12583 reload_flag=$lt_reload_flag
12584 reload_cmds=$lt_reload_cmds
12586 # How to pass a linker flag through the compiler.
12587 wl=$lt_lt_prog_compiler_wl_CXX
12589 # Object file suffix (normally "o").
12590 objext="$ac_objext"
12592 # Old archive suffix (normally "a").
12595 # Shared library suffix (normally ".so").
12596 shrext_cmds='$shrext_cmds'
12598 # Executable file suffix (normally "").
12601 # Additional compiler flags for building library objects.
12602 pic_flag=$lt_lt_prog_compiler_pic_CXX
12605 # What is the maximum length of a command?
12606 max_cmd_len=$lt_cv_sys_max_cmd_len
12608 # Does compiler simultaneously support -c and -o options?
12609 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12611 # Must we lock files when doing compilation?
12612 need_locks=$lt_need_locks
12614 # Do we need the lib prefix for modules?
12615 need_lib_prefix=$need_lib_prefix
12617 # Do we need a version for libraries?
12618 need_version=$need_version
12620 # Whether dlopen is supported.
12621 dlopen_support=$enable_dlopen
12623 # Whether dlopen of programs is supported.
12624 dlopen_self=$enable_dlopen_self
12626 # Whether dlopen of statically linked programs is supported.
12627 dlopen_self_static=$enable_dlopen_self_static
12629 # Compiler flag to prevent dynamic linking.
12630 link_static_flag=$lt_lt_prog_compiler_static_CXX
12632 # Compiler flag to turn off builtin functions.
12633 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12635 # Compiler flag to allow reflexive dlopens.
12636 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12638 # Compiler flag to generate shared objects directly from archives.
12639 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12641 # Compiler flag to generate thread-safe objects.
12642 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12644 # Library versioning type.
12645 version_type=$version_type
12647 # Format of library name prefix.
12648 libname_spec=$lt_libname_spec
12650 # List of archive names. First name is the real one, the rest are links.
12651 # The last name is the one that the linker finds with -lNAME.
12652 library_names_spec=$lt_library_names_spec
12654 # The coded name of the library, if different from the real name.
12655 soname_spec=$lt_soname_spec
12657 # Commands used to build and install an old-style archive.
12659 old_archive_cmds=$lt_old_archive_cmds_CXX
12660 old_postinstall_cmds=$lt_old_postinstall_cmds
12661 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12663 # Create an old-style archive from a shared archive.
12664 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12666 # Create a temporary old-style archive to link instead of a shared archive.
12667 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12669 # Commands used to build and install a shared archive.
12670 archive_cmds=$lt_archive_cmds_CXX
12671 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12672 postinstall_cmds=$lt_postinstall_cmds
12673 postuninstall_cmds=$lt_postuninstall_cmds
12675 # Commands used to build a loadable module (assumed same as above if empty)
12676 module_cmds=$lt_module_cmds_CXX
12677 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12679 # Commands to strip libraries.
12680 old_striplib=$lt_old_striplib
12681 striplib=$lt_striplib
12683 # Dependencies to place before the objects being linked to create a
12685 predep_objects=$lt_predep_objects_CXX
12687 # Dependencies to place after the objects being linked to create a
12689 postdep_objects=$lt_postdep_objects_CXX
12691 # Dependencies to place before the objects being linked to create a
12693 predeps=$lt_predeps_CXX
12695 # Dependencies to place after the objects being linked to create a
12697 postdeps=$lt_postdeps_CXX
12699 # The library search path used internally by the compiler when linking
12700 # a shared library.
12701 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12703 # Method to check whether dependent libraries are shared objects.
12704 deplibs_check_method=$lt_deplibs_check_method
12706 # Command to use when deplibs_check_method == file_magic.
12707 file_magic_cmd=$lt_file_magic_cmd
12709 # Flag that allows shared libraries with undefined symbols to be built.
12710 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12712 # Flag that forces no undefined symbols.
12713 no_undefined_flag=$lt_no_undefined_flag_CXX
12715 # Commands used to finish a libtool library installation in a directory.
12716 finish_cmds=$lt_finish_cmds
12718 # Same as above, but a single script fragment to be evaled but not shown.
12719 finish_eval=$lt_finish_eval
12721 # Take the output of nm and produce a listing of raw symbols and C names.
12722 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12724 # Transform the output of nm in a proper C declaration
12725 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12727 # Transform the output of nm in a C name address pair
12728 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12730 # This is the shared library runtime path variable.
12731 runpath_var=$runpath_var
12733 # This is the shared library path variable.
12734 shlibpath_var=$shlibpath_var
12736 # Is shlibpath searched before the hard-coded library search path?
12737 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12739 # How to hardcode a shared library path into an executable.
12740 hardcode_action=$hardcode_action_CXX
12742 # Whether we should hardcode library paths into libraries.
12743 hardcode_into_libs=$hardcode_into_libs
12745 # Flag to hardcode \$libdir into a binary during linking.
12746 # This must work even if \$libdir does not exist.
12747 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12749 # If ld is used when linking, flag to hardcode \$libdir into
12750 # a binary during linking. This must work even if \$libdir does
12752 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12754 # Whether we need a single -rpath flag with a separated argument.
12755 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12757 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12758 # resulting binary.
12759 hardcode_direct=$hardcode_direct_CXX
12761 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12762 # resulting binary.
12763 hardcode_minus_L=$hardcode_minus_L_CXX
12765 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12766 # the resulting binary.
12767 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12769 # Set to yes if building a shared library automatically hardcodes DIR into the library
12770 # and all subsequent libraries and executables linked against it.
12771 hardcode_automatic=$hardcode_automatic_CXX
12773 # Variables whose values should be saved in libtool wrapper scripts and
12774 # restored at relink time.
12775 variables_saved_for_relink="$variables_saved_for_relink"
12777 # Whether libtool must link a program against all its dependency libraries.
12778 link_all_deplibs=$link_all_deplibs_CXX
12780 # Compile-time system search path for libraries
12781 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12783 # Run-time system search path for libraries
12784 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12786 # Fix the shell variable \$srcfile for the compiler.
12787 fix_srcfile_path="$fix_srcfile_path_CXX"
12789 # Set to yes if exported symbols are required.
12790 always_export_symbols=$always_export_symbols_CXX
12792 # The commands to list exported symbols.
12793 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12795 # The commands to extract the exported symbol list from a shared archive.
12796 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12798 # Symbols that should not be listed in the preloaded symbols.
12799 exclude_expsyms=$lt_exclude_expsyms_CXX
12801 # Symbols that must always be exported.
12802 include_expsyms=$lt_include_expsyms_CXX
12804 # ### END LIBTOOL TAG CONFIG: $tagname
12810 # If there is no Makefile yet, we rely on a make rule to execute
12811 # `config.status --recheck' to rerun these tests and create the
12812 # libtool script then.
12813 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12814 if test -f "$ltmain_in"; then
12815 test -f Makefile && make "$ltmain"
12821 ac_cpp='$CPP $CPPFLAGS'
12822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12830 with_gnu_ldcxx=$with_gnu_ld
12831 with_gnu_ld=$lt_save_with_gnu_ld
12832 lt_cv_path_LDCXX=$lt_cv_path_LD
12833 lt_cv_path_LD=$lt_save_path_LD
12834 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12835 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12843 if test -n "$F77" && test "X$F77" != "Xno"; then
12846 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12847 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12848 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12851 archive_cmds_need_lc_F77=no
12852 allow_undefined_flag_F77=
12853 always_export_symbols_F77=no
12854 archive_expsym_cmds_F77=
12855 export_dynamic_flag_spec_F77=
12856 hardcode_direct_F77=no
12857 hardcode_libdir_flag_spec_F77=
12858 hardcode_libdir_flag_spec_ld_F77=
12859 hardcode_libdir_separator_F77=
12860 hardcode_minus_L_F77=no
12861 hardcode_automatic_F77=no
12863 module_expsym_cmds_F77=
12864 link_all_deplibs_F77=unknown
12865 old_archive_cmds_F77=$old_archive_cmds
12866 no_undefined_flag_F77=
12867 whole_archive_flag_spec_F77=
12868 enable_shared_with_static_runtimes_F77=no
12870 # Source file extension for f77 test sources.
12873 # Object file extension for compiled f77 test sources.
12877 # Code to be used in simple compile tests
12878 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12880 # Code to be used in simple link tests
12881 lt_simple_link_test_code=" program t\n end\n"
12883 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12885 # If no C compiler was specified, use CC.
12888 # If no C compiler flags were specified, use CFLAGS.
12889 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12891 # Allow CC to be a program name with arguments.
12895 # save warnings/boilerplate of simple test code
12896 ac_outfile=conftest.$ac_objext
12897 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12898 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12899 _lt_compiler_boilerplate=`cat conftest.err`
12902 ac_outfile=conftest.$ac_objext
12903 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12904 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12905 _lt_linker_boilerplate=`cat conftest.err`
12909 # Allow CC to be a program name with arguments.
12914 for cc_temp in $compiler""; do
12916 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12917 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12922 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12925 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12926 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12927 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12928 echo "${ECHO_T}$can_build_shared" >&6
12930 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12931 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12932 test "$can_build_shared" = "no" && enable_shared=no
12934 # On AIX, shared libraries and static libraries use the same namespace, and
12935 # are all built from PIC.
12938 test "$enable_shared" = yes && enable_static=no
12939 if test -n "$RANLIB"; then
12940 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12941 postinstall_cmds='$RANLIB $lib'
12945 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12946 test "$enable_shared" = yes && enable_static=no
12950 echo "$as_me:$LINENO: result: $enable_shared" >&5
12951 echo "${ECHO_T}$enable_shared" >&6
12953 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12954 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12955 # Make sure either enable_shared or enable_static is yes.
12956 test "$enable_shared" = yes || enable_static=yes
12957 echo "$as_me:$LINENO: result: $enable_static" >&5
12958 echo "${ECHO_T}$enable_static" >&6
12963 lt_prog_compiler_wl_F77=
12964 lt_prog_compiler_pic_F77=
12965 lt_prog_compiler_static_F77=
12967 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12968 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12970 if test "$GCC" = yes; then
12971 lt_prog_compiler_wl_F77='-Wl,'
12972 lt_prog_compiler_static_F77='-static'
12976 # All AIX code is PIC.
12977 if test "$host_cpu" = ia64; then
12978 # AIX 5 now supports IA64 processor
12979 lt_prog_compiler_static_F77='-Bstatic'
12984 # FIXME: we need at least 68020 code to build shared libraries, but
12985 # adding the `-m68020' flag to GCC prevents building anything better,
12987 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12990 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12991 # PIC is the default for these OSes.
12994 mingw* | pw32* | os2*)
12995 # This hack is so that the source file can tell whether it is being
12996 # built for inclusion in a dll (and should export symbols for example).
12997 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13000 darwin* | rhapsody*)
13001 # PIC is the default on this platform
13002 # Common symbols not allowed in MH_DYLIB files
13003 lt_prog_compiler_pic_F77='-fno-common'
13007 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13008 # Instead, we relocate shared libraries at runtime.
13012 # Just because we use GCC doesn't mean we suddenly get shared libraries
13013 # on systems that don't support them.
13014 lt_prog_compiler_can_build_shared_F77=no
13019 if test -d /usr/nec; then
13020 lt_prog_compiler_pic_F77=-Kconform_pic
13025 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13026 # not for PA HP-UX.
13032 lt_prog_compiler_pic_F77='-fPIC'
13038 lt_prog_compiler_pic_F77='-fPIC'
13042 # PORTME Check for flag to pass linker flags through the system compiler.
13045 lt_prog_compiler_wl_F77='-Wl,'
13046 if test "$host_cpu" = ia64; then
13047 # AIX 5 now supports IA64 processor
13048 lt_prog_compiler_static_F77='-Bstatic'
13050 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13054 # PIC is the default on this platform
13055 # Common symbols not allowed in MH_DYLIB files
13056 case $cc_basename in
13058 lt_prog_compiler_pic_F77='-qnocommon'
13059 lt_prog_compiler_wl_F77='-Wl,'
13064 mingw* | pw32* | os2*)
13065 # This hack is so that the source file can tell whether it is being
13066 # built for inclusion in a dll (and should export symbols for example).
13067 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13070 hpux9* | hpux10* | hpux11*)
13071 lt_prog_compiler_wl_F77='-Wl,'
13072 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13073 # not for PA HP-UX.
13079 lt_prog_compiler_pic_F77='+Z'
13082 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13083 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13086 irix5* | irix6* | nonstopux*)
13087 lt_prog_compiler_wl_F77='-Wl,'
13088 # PIC (with -KPIC) is the default.
13089 lt_prog_compiler_static_F77='-non_shared'
13093 lt_prog_compiler_pic_F77='-KPIC'
13094 lt_prog_compiler_static_F77='-Bstatic'
13098 case $cc_basename in
13100 lt_prog_compiler_wl_F77='-Wl,'
13101 lt_prog_compiler_pic_F77='-KPIC'
13102 lt_prog_compiler_static_F77='-static'
13104 pgcc* | pgf77* | pgf90* | pgf95*)
13105 # Portland Group compilers (*not* the Pentium gcc compiler,
13106 # which looks to be a dead project)
13107 lt_prog_compiler_wl_F77='-Wl,'
13108 lt_prog_compiler_pic_F77='-fpic'
13109 lt_prog_compiler_static_F77='-Bstatic'
13112 lt_prog_compiler_wl_F77='-Wl,'
13113 # All Alpha code is PIC.
13114 lt_prog_compiler_static_F77='-non_shared'
13119 osf3* | osf4* | osf5*)
13120 lt_prog_compiler_wl_F77='-Wl,'
13121 # All OSF/1 code is PIC.
13122 lt_prog_compiler_static_F77='-non_shared'
13126 lt_prog_compiler_pic_F77='-KPIC'
13127 lt_prog_compiler_static_F77='-Bstatic'
13128 case $cc_basename in
13129 f77* | f90* | f95*)
13130 lt_prog_compiler_wl_F77='-Qoption ld ';;
13132 lt_prog_compiler_wl_F77='-Wl,';;
13137 lt_prog_compiler_wl_F77='-Qoption ld '
13138 lt_prog_compiler_pic_F77='-PIC'
13139 lt_prog_compiler_static_F77='-Bstatic'
13142 sysv4 | sysv4.2uw2* | sysv4.3*)
13143 lt_prog_compiler_wl_F77='-Wl,'
13144 lt_prog_compiler_pic_F77='-KPIC'
13145 lt_prog_compiler_static_F77='-Bstatic'
13149 if test -d /usr/nec ;then
13150 lt_prog_compiler_pic_F77='-Kconform_pic'
13151 lt_prog_compiler_static_F77='-Bstatic'
13155 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13156 lt_prog_compiler_wl_F77='-Wl,'
13157 lt_prog_compiler_pic_F77='-KPIC'
13158 lt_prog_compiler_static_F77='-Bstatic'
13162 lt_prog_compiler_wl_F77='-Wl,'
13163 lt_prog_compiler_can_build_shared_F77=no
13167 lt_prog_compiler_pic_F77='-pic'
13168 lt_prog_compiler_static_F77='-Bstatic'
13172 lt_prog_compiler_can_build_shared_F77=no
13177 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13178 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13181 # Check to make sure the PIC flag actually works.
13183 if test -n "$lt_prog_compiler_pic_F77"; then
13185 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13186 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13187 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13190 lt_prog_compiler_pic_works_F77=no
13191 ac_outfile=conftest.$ac_objext
13192 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13193 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13194 # Insert the option either (1) after the last *FLAGS variable, or
13195 # (2) before a word containing "conftest.", or (3) at the end.
13196 # Note that $ac_compile itself does not contain backslashes and begins
13197 # with a dollar sign (not a hyphen), so the echo should work correctly.
13198 # The option is referenced via a variable to avoid confusing sed.
13199 lt_compile=`echo "$ac_compile" | $SED \
13200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13202 -e 's:$: $lt_compiler_flag:'`
13203 (eval echo "\"\$as_me:13203: $lt_compile\"" >&5)
13204 (eval "$lt_compile" 2>conftest.err)
13206 cat conftest.err >&5
13207 echo "$as_me:13207: \$? = $ac_status" >&5
13208 if (exit $ac_status) && test -s "$ac_outfile"; then
13209 # The compiler can only warn and ignore the option if not recognized
13210 # So say no if there are warnings other than the usual output.
13211 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13212 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13213 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13214 lt_prog_compiler_pic_works_F77=yes
13220 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13221 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13223 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13224 case $lt_prog_compiler_pic_F77 in
13226 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13229 lt_prog_compiler_pic_F77=
13230 lt_prog_compiler_can_build_shared_F77=no
13235 # For platforms which do not support PIC, -DPIC is meaningless:
13237 lt_prog_compiler_pic_F77=
13240 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13245 # Check to make sure the static flag actually works.
13247 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13248 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13249 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13250 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13253 lt_prog_compiler_static_works_F77=no
13254 save_LDFLAGS="$LDFLAGS"
13255 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13256 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13257 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13258 # The linker can only warn and ignore the option if not recognized
13259 # So say no if there are warnings
13260 if test -s conftest.err; then
13261 # Append any errors to the config.log.
13262 cat conftest.err 1>&5
13263 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13265 if diff conftest.exp conftest.er2 >/dev/null; then
13266 lt_prog_compiler_static_works_F77=yes
13269 lt_prog_compiler_static_works_F77=yes
13273 LDFLAGS="$save_LDFLAGS"
13276 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13277 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13279 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13282 lt_prog_compiler_static_F77=
13286 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13287 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13288 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 lt_cv_prog_compiler_c_o_F77=no
13292 $rm -r conftest 2>/dev/null
13296 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13298 lt_compiler_flag="-o out/conftest2.$ac_objext"
13299 # Insert the option either (1) after the last *FLAGS variable, or
13300 # (2) before a word containing "conftest.", or (3) at the end.
13301 # Note that $ac_compile itself does not contain backslashes and begins
13302 # with a dollar sign (not a hyphen), so the echo should work correctly.
13303 lt_compile=`echo "$ac_compile" | $SED \
13304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13306 -e 's:$: $lt_compiler_flag:'`
13307 (eval echo "\"\$as_me:13307: $lt_compile\"" >&5)
13308 (eval "$lt_compile" 2>out/conftest.err)
13310 cat out/conftest.err >&5
13311 echo "$as_me:13311: \$? = $ac_status" >&5
13312 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13314 # The compiler can only warn and ignore the option if not recognized
13315 # So say no if there are warnings
13316 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13317 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13318 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13319 lt_cv_prog_compiler_c_o_F77=yes
13324 # SGI C++ compiler will create directory out/ii_files/ for
13325 # template instantiation
13326 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13327 $rm out/* && rmdir out
13333 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13334 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13337 hard_links="nottested"
13338 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13339 # do not overwrite the value of need_locks provided by the user
13340 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13341 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13346 ln conftest.a conftest.b 2>&5 || hard_links=no
13347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13348 echo "$as_me:$LINENO: result: $hard_links" >&5
13349 echo "${ECHO_T}$hard_links" >&6
13350 if test "$hard_links" = no; then
13351 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13352 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13359 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13360 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13363 allow_undefined_flag_F77=
13364 enable_shared_with_static_runtimes_F77=no
13366 archive_expsym_cmds_F77=
13367 old_archive_From_new_cmds_F77=
13368 old_archive_from_expsyms_cmds_F77=
13369 export_dynamic_flag_spec_F77=
13370 whole_archive_flag_spec_F77=
13371 thread_safe_flag_spec_F77=
13372 hardcode_libdir_flag_spec_F77=
13373 hardcode_libdir_flag_spec_ld_F77=
13374 hardcode_libdir_separator_F77=
13375 hardcode_direct_F77=no
13376 hardcode_minus_L_F77=no
13377 hardcode_shlibpath_var_F77=unsupported
13378 link_all_deplibs_F77=unknown
13379 hardcode_automatic_F77=no
13381 module_expsym_cmds_F77=
13382 always_export_symbols_F77=no
13383 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13384 # include_expsyms should be a list of space-separated symbols to be *always*
13385 # included in the symbol list
13386 include_expsyms_F77=
13387 # exclude_expsyms can be an extended regexp of symbols to exclude
13388 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13389 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13390 # as well as any symbol that contains `d'.
13391 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13392 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13393 # platforms (ab)use it in PIC code, but their linkers get confused if
13394 # the symbol is explicitly referenced. Since portable code cannot
13395 # rely on this symbol name, it's probably fine to never include it in
13396 # preloaded symbol tables.
13397 extract_expsyms_cmds=
13398 # Just being paranoid about ensuring that cc_basename is set.
13399 for cc_temp in $compiler""; do
13401 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13402 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13407 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13410 cygwin* | mingw* | pw32*)
13411 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13412 # When not using gcc, we currently assume that we are using
13413 # Microsoft Visual C++.
13414 if test "$GCC" != yes; then
13419 # we just hope/assume this is gcc and not c89 (= MSVC++)
13428 if test "$with_gnu_ld" = yes; then
13429 # If archive_cmds runs LD, not CC, wlarc should be empty
13432 # Set some defaults for GNU ld with shared library support. These
13433 # are reset later if shared libraries are not supported. Putting them
13434 # here allows them to be overridden if necessary.
13435 runpath_var=LD_RUN_PATH
13436 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13437 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13438 # ancient GNU ld didn't support --whole-archive et. al.
13439 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13440 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13442 whole_archive_flag_spec_F77=
13444 supports_anon_versioning=no
13445 case `$LD -v 2>/dev/null` in
13446 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13447 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13448 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13449 *\ 2.11.*) ;; # other 2.11 versions
13450 *) supports_anon_versioning=yes ;;
13453 # See if GNU ld supports shared libraries.
13455 aix3* | aix4* | aix5*)
13456 # On AIX/PPC, the GNU linker is very broken
13457 if test "$host_cpu" != ia64; then
13461 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13462 *** to be unable to reliably create shared libraries on AIX.
13463 *** Therefore, libtool is disabling shared libraries support. If you
13464 *** really care for shared libraries, you may want to modify your PATH
13465 *** so that a non-GNU linker is found, and then restart.
13472 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)'
13473 hardcode_libdir_flag_spec_F77='-L$libdir'
13474 hardcode_minus_L_F77=yes
13476 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13477 # that the semantics of dynamic libraries on AmigaOS, at least up
13478 # to version 4, is to share data among multiple programs linked
13479 # with the same dynamic library. Since this doesn't match the
13480 # behavior of shared libraries on other platforms, we can't use
13486 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13487 allow_undefined_flag_F77=unsupported
13488 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13489 # support --undefined. This deserves some investigation. FIXME
13490 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13496 cygwin* | mingw* | pw32*)
13497 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13498 # as there is no search path for DLLs.
13499 hardcode_libdir_flag_spec_F77='-L$libdir'
13500 allow_undefined_flag_F77=unsupported
13501 always_export_symbols_F77=no
13502 enable_shared_with_static_runtimes_F77=yes
13503 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13505 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13506 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13507 # If the export-symbols file already is a .def file (1st line
13508 # is EXPORTS), use it as is; otherwise, prepend...
13509 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13510 cp $export_symbols $output_objdir/$soname.def;
13512 echo EXPORTS > $output_objdir/$soname.def;
13513 cat $export_symbols >> $output_objdir/$soname.def;
13515 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13522 hardcode_direct_F77=no
13523 hardcode_shlibpath_var_F77=no
13524 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13525 export_dynamic_flag_spec_F77='${wl}-E'
13526 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13527 # Instead, shared libraries are loaded at an image base (0x10000000 by
13528 # default) and relocated if they conflict, which is a slow very memory
13529 # consuming and fragmenting process. To avoid this, we pick a random,
13530 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13531 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13532 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13533 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13537 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13539 case $cc_basename,$host_cpu in
13540 pgcc*) # Portland Group C compiler
13541 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13542 tmp_addflag=' $pic_flag'
13544 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13545 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13546 tmp_addflag=' $pic_flag -Mnomain' ;;
13547 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13548 tmp_addflag=' -i_dynamic' ;;
13549 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13550 tmp_addflag=' -i_dynamic -nofor_main' ;;
13551 ifc* | ifort*) # Intel Fortran compiler
13552 tmp_addflag=' -nofor_main' ;;
13554 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13556 if test $supports_anon_versioning = yes; then
13557 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13558 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13559 $echo "local: *; };" >> $output_objdir/$libname.ver~
13560 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13562 link_all_deplibs_F77=no
13568 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13569 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13570 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13573 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13574 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13579 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13583 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13584 *** create shared libraries on Solaris systems. Therefore, libtool
13585 *** is disabling shared libraries support. We urge you to upgrade GNU
13586 *** binutils to release 2.9.1 or newer. Another option is to modify
13587 *** your PATH or compiler configuration so that the native linker is
13588 *** used, and then restart.
13591 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13592 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13593 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13599 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13600 case `$LD -v 2>&1` in
13601 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13605 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13606 *** reliably create shared libraries on SCO systems. Therefore, libtool
13607 *** is disabling shared libraries support. We urge you to upgrade GNU
13608 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13609 *** your PATH or compiler configuration so that the native linker is
13610 *** used, and then restart.
13615 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13616 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13617 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13618 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13627 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13629 hardcode_direct_F77=yes
13630 hardcode_shlibpath_var_F77=no
13634 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13635 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13636 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13643 if test "$ld_shlibs_F77" = no; then
13645 hardcode_libdir_flag_spec_F77=
13646 export_dynamic_flag_spec_F77=
13647 whole_archive_flag_spec_F77=
13650 # PORTME fill in a description of your system's linker (not GNU ld)
13653 allow_undefined_flag_F77=unsupported
13654 always_export_symbols_F77=yes
13655 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'
13656 # Note: this linker hardcodes the directories in LIBPATH if there
13657 # are no directories specified by -L.
13658 hardcode_minus_L_F77=yes
13659 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13660 # Neither direct hardcoding nor static linking is supported with a
13662 hardcode_direct_F77=unsupported
13667 if test "$host_cpu" = ia64; then
13668 # On IA64, the linker does run time linking by default, so we don't
13669 # have to do anything special.
13670 aix_use_runtimelinking=no
13671 exp_sym_flag='-Bexport'
13674 # If we're using GNU nm, then we don't want the "-C" option.
13675 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13676 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13677 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'
13679 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'
13681 aix_use_runtimelinking=no
13683 # Test if we are trying to use run time linking or normal
13684 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13685 # need to do runtime linking.
13686 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13687 for ld_flag in $LDFLAGS; do
13688 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13689 aix_use_runtimelinking=yes
13696 exp_sym_flag='-bexport'
13697 no_entry_flag='-bnoentry'
13700 # When large executables or shared objects are built, AIX ld can
13701 # have problems creating the table of contents. If linking a library
13702 # or program results in "error TOC overflow" add -mminimal-toc to
13703 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13704 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13706 archive_cmds_F77=''
13707 hardcode_direct_F77=yes
13708 hardcode_libdir_separator_F77=':'
13709 link_all_deplibs_F77=yes
13711 if test "$GCC" = yes; then
13712 case $host_os in aix4.[012]|aix4.[012].*)
13713 # We only want to do this on AIX 4.2 and lower, the check
13714 # below for broken collect2 doesn't work under 4.3+
13715 collect2name=`${CC} -print-prog-name=collect2`
13716 if test -f "$collect2name" && \
13717 strings "$collect2name" | grep resolve_lib_name >/dev/null
13719 # We have reworked collect2
13720 hardcode_direct_F77=yes
13722 # We have old collect2
13723 hardcode_direct_F77=unsupported
13724 # It fails to find uninstalled libraries when the uninstalled
13725 # path is not listed in the libpath. Setting hardcode_minus_L
13726 # to unsupported forces relinking
13727 hardcode_minus_L_F77=yes
13728 hardcode_libdir_flag_spec_F77='-L$libdir'
13729 hardcode_libdir_separator_F77=
13733 shared_flag='-shared'
13734 if test "$aix_use_runtimelinking" = yes; then
13735 shared_flag="$shared_flag "'${wl}-G'
13739 if test "$host_cpu" = ia64; then
13740 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13741 # chokes on -Wl,-G. The following line is correct:
13744 if test "$aix_use_runtimelinking" = yes; then
13745 shared_flag='${wl}-G'
13747 shared_flag='${wl}-bM:SRE'
13752 # It seems that -bexpall does not export symbols beginning with
13753 # underscore (_), so it is better to generate a list of symbols to export.
13754 always_export_symbols_F77=yes
13755 if test "$aix_use_runtimelinking" = yes; then
13756 # Warning - without using the other runtime loading flags (-brtl),
13757 # -berok will link without error, but may produce a broken library.
13758 allow_undefined_flag_F77='-berok'
13759 # Determine the default libpath from the value encoded in an empty executable.
13760 cat >conftest.$ac_ext <<_ACEOF
13765 rm -f conftest.$ac_objext conftest$ac_exeext
13766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13767 (eval $ac_link) 2>conftest.er1
13769 grep -v '^ *+' conftest.er1 >conftest.err
13771 cat conftest.err >&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } &&
13774 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; } &&
13780 { ac_try='test -s conftest$ac_exeext'
13781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }; then
13787 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13789 # Check for a 64-bit object if we didn't find anything.
13790 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; }
13793 echo "$as_me: failed program was:" >&5
13794 sed 's/^/| /' conftest.$ac_ext >&5
13797 rm -f conftest.err conftest.$ac_objext \
13798 conftest$ac_exeext conftest.$ac_ext
13799 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13801 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13802 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13804 if test "$host_cpu" = ia64; then
13805 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13806 allow_undefined_flag_F77="-z nodefs"
13807 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13809 # Determine the default libpath from the value encoded in an empty executable.
13810 cat >conftest.$ac_ext <<_ACEOF
13815 rm -f conftest.$ac_objext conftest$ac_exeext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13817 (eval $ac_link) 2>conftest.er1
13819 grep -v '^ *+' conftest.er1 >conftest.err
13821 cat conftest.err >&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); } &&
13824 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; } &&
13830 { ac_try='test -s conftest$ac_exeext'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13837 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13839 # Check for a 64-bit object if we didn't find anything.
13840 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; }
13843 echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13847 rm -f conftest.err conftest.$ac_objext \
13848 conftest$ac_exeext conftest.$ac_ext
13849 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13851 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13852 # Warning - without using the other run time loading flags,
13853 # -berok will link without error, but may produce a broken library.
13854 no_undefined_flag_F77=' ${wl}-bernotok'
13855 allow_undefined_flag_F77=' ${wl}-berok'
13856 # Exported symbols can be pulled into shared objects from archives
13857 whole_archive_flag_spec_F77='$convenience'
13858 archive_cmds_need_lc_F77=yes
13859 # This is similar to how AIX traditionally builds its shared libraries.
13860 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13866 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)'
13867 hardcode_libdir_flag_spec_F77='-L$libdir'
13868 hardcode_minus_L_F77=yes
13869 # see comment about different semantics on the GNU ld section
13874 export_dynamic_flag_spec_F77=-rdynamic
13877 cygwin* | mingw* | pw32*)
13878 # When not using gcc, we currently assume that we are using
13879 # Microsoft Visual C++.
13880 # hardcode_libdir_flag_spec is actually meaningless, as there is
13881 # no search path for DLLs.
13882 hardcode_libdir_flag_spec_F77=' '
13883 allow_undefined_flag_F77=unsupported
13884 # Tell ltmain to make .lib files, not .a files.
13886 # Tell ltmain to make .dll files, not .so files.
13888 # FIXME: Setting linknames here is a bad hack.
13889 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13890 # The linker will automatically build a .lib file if we build a DLL.
13891 old_archive_From_new_cmds_F77='true'
13892 # FIXME: Should let the user specify the lib program.
13893 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13894 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13895 enable_shared_with_static_runtimes_F77=yes
13898 darwin* | rhapsody*)
13900 rhapsody* | darwin1.[012])
13901 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13904 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13905 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13907 case ${MACOSX_DEPLOYMENT_TARGET} in
13909 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13912 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13918 archive_cmds_need_lc_F77=no
13919 hardcode_direct_F77=no
13920 hardcode_automatic_F77=yes
13921 hardcode_shlibpath_var_F77=unsupported
13922 whole_archive_flag_spec_F77=''
13923 link_all_deplibs_F77=yes
13924 if test "$GCC" = yes ; then
13925 output_verbose_link_cmd='echo'
13926 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13927 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13928 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13929 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13930 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}'
13932 case $cc_basename in
13934 output_verbose_link_cmd='echo'
13935 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13936 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13937 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13938 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13939 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}'
13949 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13950 hardcode_libdir_flag_spec_F77='-L$libdir'
13951 hardcode_shlibpath_var_F77=no
13958 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13959 # support. Future versions do this automatically, but an explicit c++rt0.o
13960 # does not break anything, and helps significantly (at the cost of a little
13963 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13964 hardcode_libdir_flag_spec_F77='-R$libdir'
13965 hardcode_direct_F77=yes
13966 hardcode_shlibpath_var_F77=no
13969 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13971 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13972 hardcode_direct_F77=yes
13973 hardcode_minus_L_F77=yes
13974 hardcode_shlibpath_var_F77=no
13977 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13978 freebsd* | dragonfly*)
13979 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13980 hardcode_libdir_flag_spec_F77='-R$libdir'
13981 hardcode_direct_F77=yes
13982 hardcode_shlibpath_var_F77=no
13985 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
13987 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13988 hardcode_libdir_flag_spec_F77='-R$libdir'
13989 hardcode_direct_F77=yes
13990 hardcode_shlibpath_var_F77=no
13991 link_all_deplibs_F77=no
13995 if test "$GCC" = yes; then
13996 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'
13998 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'
14000 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14001 hardcode_libdir_separator_F77=:
14002 hardcode_direct_F77=yes
14004 # hardcode_minus_L: Not really in the search PATH,
14005 # but as the default location of the library.
14006 hardcode_minus_L_F77=yes
14007 export_dynamic_flag_spec_F77='${wl}-E'
14011 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14012 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14014 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14016 if test "$with_gnu_ld" = no; then
14017 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14018 hardcode_libdir_separator_F77=:
14020 hardcode_direct_F77=yes
14021 export_dynamic_flag_spec_F77='${wl}-E'
14023 # hardcode_minus_L: Not really in the search PATH,
14024 # but as the default location of the library.
14025 hardcode_minus_L_F77=yes
14030 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14033 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14036 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14039 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14045 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14048 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14051 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14055 if test "$with_gnu_ld" = no; then
14056 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14057 hardcode_libdir_separator_F77=:
14061 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14062 hardcode_direct_F77=no
14063 hardcode_shlibpath_var_F77=no
14066 hardcode_direct_F77=yes
14067 export_dynamic_flag_spec_F77='${wl}-E'
14069 # hardcode_minus_L: Not really in the search PATH,
14070 # but as the default location of the library.
14071 hardcode_minus_L_F77=yes
14077 irix5* | irix6* | nonstopux*)
14078 if test "$GCC" = yes; then
14079 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'
14081 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'
14082 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14084 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14085 hardcode_libdir_separator_F77=:
14086 link_all_deplibs_F77=yes
14089 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14090 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14091 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14093 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14095 hardcode_libdir_flag_spec_F77='-R$libdir'
14096 hardcode_direct_F77=yes
14097 hardcode_shlibpath_var_F77=no
14101 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14102 hardcode_direct_F77=yes
14103 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14104 hardcode_libdir_separator_F77=:
14105 hardcode_shlibpath_var_F77=no
14109 hardcode_direct_F77=yes
14110 hardcode_shlibpath_var_F77=no
14111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14112 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14113 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14114 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14115 export_dynamic_flag_spec_F77='${wl}-E'
14118 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14119 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14120 hardcode_libdir_flag_spec_F77='-R$libdir'
14123 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14124 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14131 hardcode_libdir_flag_spec_F77='-L$libdir'
14132 hardcode_minus_L_F77=yes
14133 allow_undefined_flag_F77=unsupported
14134 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'
14135 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14139 if test "$GCC" = yes; then
14140 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14141 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'
14143 allow_undefined_flag_F77=' -expect_unresolved \*'
14144 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'
14146 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14147 hardcode_libdir_separator_F77=:
14150 osf4* | osf5*) # as osf3* with the addition of -msym flag
14151 if test "$GCC" = yes; then
14152 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14153 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'
14154 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14156 allow_undefined_flag_F77=' -expect_unresolved \*'
14157 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'
14158 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~
14159 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14161 # Both c and cxx compiler support -rpath directly
14162 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14164 hardcode_libdir_separator_F77=:
14168 no_undefined_flag_F77=' -z text'
14169 if test "$GCC" = yes; then
14171 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14172 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14173 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14176 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14177 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14178 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14180 hardcode_libdir_flag_spec_F77='-R$libdir'
14181 hardcode_shlibpath_var_F77=no
14183 solaris2.[0-5] | solaris2.[0-5].*) ;;
14185 # The compiler driver will combine linker options so we
14186 # cannot just pass the convience library names through
14187 # without $wl, iff we do not link with $LD.
14188 # Luckily, gcc supports the same syntax we need for Sun Studio.
14189 # Supported since Solaris 2.6 (maybe 2.5.1?)
14192 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14194 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14197 link_all_deplibs_F77=yes
14201 if test "x$host_vendor" = xsequent; then
14202 # Use $CC to link under sequent, because it throws in some extra .o
14203 # files that make .init and .fini sections work.
14204 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14206 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14208 hardcode_libdir_flag_spec_F77='-L$libdir'
14209 hardcode_direct_F77=yes
14210 hardcode_minus_L_F77=yes
14211 hardcode_shlibpath_var_F77=no
14215 case $host_vendor in
14217 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14218 hardcode_direct_F77=yes # is this really true???
14221 ## LD is ld it makes a PLAMLIB
14222 ## CC just makes a GrossModule.
14223 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14224 reload_cmds_F77='$CC -r -o $output$reload_objs'
14225 hardcode_direct_F77=no
14228 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14229 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14232 runpath_var='LD_RUN_PATH'
14233 hardcode_shlibpath_var_F77=no
14237 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14238 hardcode_shlibpath_var_F77=no
14239 export_dynamic_flag_spec_F77='-Bexport'
14243 if test -d /usr/nec; then
14244 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14245 hardcode_shlibpath_var_F77=no
14246 runpath_var=LD_RUN_PATH
14247 hardcode_runpath_var=yes
14252 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14253 no_undefined_flag_F77='${wl}-z,text'
14254 archive_cmds_need_lc_F77=no
14255 hardcode_shlibpath_var_F77=no
14256 runpath_var='LD_RUN_PATH'
14258 if test "$GCC" = yes; then
14259 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14260 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14262 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14263 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14267 sysv5* | sco3.2v5* | sco5v6*)
14268 # Note: We can NOT use -z defs as we might desire, because we do not
14269 # link with -lc, and that would cause any symbols used from libc to
14270 # always be unresolved, which means just about no library would
14271 # ever link correctly. If we're not using GNU ld we use -z text
14272 # though, which does catch some bad symbols but isn't as heavy-handed
14274 no_undefined_flag_F77='${wl}-z,text'
14275 allow_undefined_flag_F77='${wl}-z,nodefs'
14276 archive_cmds_need_lc_F77=no
14277 hardcode_shlibpath_var_F77=no
14278 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14279 hardcode_libdir_separator_F77=':'
14280 link_all_deplibs_F77=yes
14281 export_dynamic_flag_spec_F77='${wl}-Bexport'
14282 runpath_var='LD_RUN_PATH'
14284 if test "$GCC" = yes; then
14285 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14286 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14288 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14289 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14294 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14295 hardcode_libdir_flag_spec_F77='-L$libdir'
14296 hardcode_shlibpath_var_F77=no
14305 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14306 echo "${ECHO_T}$ld_shlibs_F77" >&6
14307 test "$ld_shlibs_F77" = no && can_build_shared=no
14310 # Do we need to explicitly link libc?
14312 case "x$archive_cmds_need_lc_F77" in
14314 # Assume -lc should be added
14315 archive_cmds_need_lc_F77=yes
14317 if test "$enable_shared" = yes && test "$GCC" = yes; then
14318 case $archive_cmds_F77 in
14320 # FIXME: we may have to deal with multi-command sequences.
14323 # Test whether the compiler implicitly links with -lc since on some
14324 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14325 # to ld, don't add -lc before -lgcc.
14326 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14327 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14329 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14332 (eval $ac_compile) 2>&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); } 2>conftest.err; then
14338 libobjs=conftest.$ac_objext
14340 wl=$lt_prog_compiler_wl_F77
14341 pic_flag=$lt_prog_compiler_pic_F77
14347 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14348 allow_undefined_flag_F77=
14349 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14350 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }
14355 archive_cmds_need_lc_F77=no
14357 archive_cmds_need_lc_F77=yes
14359 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14361 cat conftest.err 1>&5
14364 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14365 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14372 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14373 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14374 library_names_spec=
14375 libname_spec='lib$name'
14379 postuninstall_cmds=
14383 shlibpath_overrides_runpath=unknown
14385 dynamic_linker="$host_os ld.so"
14386 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14387 if test "$GCC" = yes; then
14388 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14389 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14390 # if the path contains ";" then we assume it to be the separator
14391 # otherwise default to the standard path separator (i.e. ":") - it is
14392 # assumed that no part of a normal pathname contains ";" but that should
14393 # okay in the real world where ";" in dirpaths is itself problematic.
14394 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14399 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14401 need_lib_prefix=unknown
14402 hardcode_into_libs=no
14404 # when you set need_version to no, make sure it does not cause -set_version
14405 # flags to be left without arguments
14406 need_version=unknown
14411 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14412 shlibpath_var=LIBPATH
14414 # AIX 3 has no versioning support, so we append a major version to the name.
14415 soname_spec='${libname}${release}${shared_ext}$major'
14422 hardcode_into_libs=yes
14423 if test "$host_cpu" = ia64; then
14424 # AIX 5 supports IA64
14425 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14426 shlibpath_var=LD_LIBRARY_PATH
14428 # With GCC up to 2.95.x, collect2 would create an import file
14429 # for dependence libraries. The import file would start with
14430 # the line `#! .'. This would cause the generated library to
14431 # depend on `.', always an invalid library. This was fixed in
14432 # development snapshots of GCC prior to 3.0.
14434 aix4 | aix4.[01] | aix4.[01].*)
14435 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14437 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14440 can_build_shared=no
14444 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14445 # soname into executable. Probably we can add versioning support to
14446 # collect2, so additional links can be useful in future.
14447 if test "$aix_use_runtimelinking" = yes; then
14448 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14449 # instead of lib<name>.a to let people know that these are not
14450 # typical AIX shared libraries.
14451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14453 # We preserve .a as extension for shared libraries through AIX4.2
14454 # and later when we are not doing run time linking.
14455 library_names_spec='${libname}${release}.a $libname.a'
14456 soname_spec='${libname}${release}${shared_ext}$major'
14458 shlibpath_var=LIBPATH
14463 library_names_spec='$libname.ixlibrary $libname.a'
14464 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14465 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'
14469 library_names_spec='${libname}${shared_ext}'
14470 dynamic_linker="$host_os ld.so"
14471 shlibpath_var=LIBRARY_PATH
14477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14478 soname_spec='${libname}${release}${shared_ext}$major'
14479 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14480 shlibpath_var=LD_LIBRARY_PATH
14481 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14482 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14483 # the default ld.so.conf also contains /usr/contrib/lib and
14484 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14485 # libtool to hard-code these into programs
14488 cygwin* | mingw* | pw32*)
14489 version_type=windows
14494 case $GCC,$host_os in
14495 yes,cygwin* | yes,mingw* | yes,pw32*)
14496 library_names_spec='$libname.dll.a'
14497 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14498 postinstall_cmds='base_file=`basename \${file}`~
14499 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14500 dldir=$destdir/`dirname \$dlpath`~
14501 test -d \$dldir || mkdir -p \$dldir~
14502 $install_prog $dir/$dlname \$dldir/$dlname~
14503 chmod a+x \$dldir/$dlname'
14504 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14505 dlpath=$dir/\$dldll~
14507 shlibpath_overrides_runpath=yes
14511 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14512 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14513 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14516 # MinGW DLLs use traditional 'lib' prefix
14517 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14518 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14519 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14520 # It is most probably a Windows format PATH printed by
14521 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14522 # path with ; separators, and with drive letters. We can handle the
14523 # drive letters (cygwin fileutils understands them), so leave them,
14524 # especially as we might pass files found there to a mingw objdump,
14525 # which wouldn't understand a cygwinified path. Ahh.
14526 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14528 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14532 # pw32 DLLs use 'pw' prefix rather than 'lib'
14533 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14539 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14542 dynamic_linker='Win32 ld.exe'
14543 # FIXME: first we should search . and the directory the executable is in
14547 darwin* | rhapsody*)
14548 dynamic_linker="$host_os dyld"
14549 version_type=darwin
14552 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14553 soname_spec='${libname}${release}${major}$shared_ext'
14554 shlibpath_overrides_runpath=yes
14555 shlibpath_var=DYLD_LIBRARY_PATH
14556 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14557 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14558 if test "$GCC" = yes; then
14559 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"`
14561 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14563 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14571 soname_spec='${libname}${release}${shared_ext}$major'
14572 shlibpath_var=LD_LIBRARY_PATH
14583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14584 soname_spec='${libname}${release}${shared_ext}$major'
14585 shlibpath_var=LD_LIBRARY_PATH
14586 shlibpath_overrides_runpath=no
14587 hardcode_into_libs=yes
14588 dynamic_linker='GNU ld.so'
14591 freebsd* | dragonfly*)
14592 # DragonFly does not have aout. When/if they implement a new
14593 # versioning mechanism, adjust this.
14594 if test -x /usr/bin/objformat; then
14595 objformat=`/usr/bin/objformat`
14598 freebsd[123]*) objformat=aout ;;
14599 *) objformat=elf ;;
14602 version_type=freebsd-$objformat
14603 case $version_type in
14605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14614 shlibpath_var=LD_LIBRARY_PATH
14617 shlibpath_overrides_runpath=yes
14619 freebsd3.[01]* | freebsdelf3.[01]*)
14620 shlibpath_overrides_runpath=yes
14621 hardcode_into_libs=yes
14623 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14624 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14625 shlibpath_overrides_runpath=no
14626 hardcode_into_libs=yes
14628 freebsd*) # from 4.6 on
14629 shlibpath_overrides_runpath=yes
14630 hardcode_into_libs=yes
14639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14640 soname_spec='${libname}${release}${shared_ext}$major'
14641 shlibpath_var=LD_LIBRARY_PATH
14642 hardcode_into_libs=yes
14645 hpux9* | hpux10* | hpux11*)
14646 # Give a soname corresponding to the major version so that dld.sl refuses to
14647 # link against other versions.
14654 hardcode_into_libs=yes
14655 dynamic_linker="$host_os dld.so"
14656 shlibpath_var=LD_LIBRARY_PATH
14657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14659 soname_spec='${libname}${release}${shared_ext}$major'
14660 if test "X$HPUX_IA64_MODE" = X32; then
14661 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14663 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14669 hardcode_into_libs=yes
14670 dynamic_linker="$host_os dld.sl"
14671 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14672 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14674 soname_spec='${libname}${release}${shared_ext}$major'
14675 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14676 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14680 dynamic_linker="$host_os dld.sl"
14681 shlibpath_var=SHLIB_PATH
14682 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14684 soname_spec='${libname}${release}${shared_ext}$major'
14687 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14688 postinstall_cmds='chmod 555 $lib'
14695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14696 soname_spec='${libname}${release}${shared_ext}$major'
14697 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14698 shlibpath_var=LD_LIBRARY_PATH
14699 shlibpath_overrides_runpath=no
14700 hardcode_into_libs=yes
14703 irix5* | irix6* | nonstopux*)
14705 nonstopux*) version_type=nonstopux ;;
14707 if test "$lt_cv_prog_gnu_ld" = yes; then
14715 soname_spec='${libname}${release}${shared_ext}$major'
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14718 irix5* | nonstopux*)
14719 libsuff= shlibsuff=
14722 case $LD in # libtool.m4 will add one of these switches to LD
14723 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14724 libsuff= shlibsuff= libmagic=32-bit;;
14725 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14726 libsuff=32 shlibsuff=N32 libmagic=N32;;
14727 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14728 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14729 *) libsuff= shlibsuff= libmagic=never-match;;
14733 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14734 shlibpath_overrides_runpath=no
14735 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14736 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14737 hardcode_into_libs=yes
14740 # No shared lib support for Linux oldld, aout, or coff.
14741 linux*oldld* | linux*aout* | linux*coff*)
14745 # This must be Linux ELF.
14750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14751 soname_spec='${libname}${release}${shared_ext}$major'
14752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14753 shlibpath_var=LD_LIBRARY_PATH
14754 shlibpath_overrides_runpath=no
14755 # This implies no fast_install, which is unacceptable.
14756 # Some rework will be needed to allow for fast_install
14757 # before this can be enabled.
14758 hardcode_into_libs=yes
14760 # Append ld.so.conf contents to the search path
14761 if test -f /etc/ld.so.conf; then
14762 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14763 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14766 # We used to test for /lib/ld.so.1 and disable shared libraries on
14767 # powerpc, because MkLinux only supported shared libraries with the
14768 # GNU dynamic linker. Since this was broken with cross compilers,
14769 # most powerpc-linux boxes support dynamic linking these days and
14770 # people can always --disable-shared, the test was removed, and we
14771 # assume the GNU/Linux dynamic linker is in use.
14772 dynamic_linker='GNU/Linux ld.so'
14779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14780 soname_spec='${libname}${release}${shared_ext}$major'
14781 shlibpath_var=LD_LIBRARY_PATH
14782 shlibpath_overrides_runpath=no
14783 hardcode_into_libs=yes
14784 dynamic_linker='NetBSD ld.elf_so'
14791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14792 soname_spec='${libname}${release}${shared_ext}$major'
14793 shlibpath_var=LD_LIBRARY_PATH
14794 shlibpath_overrides_runpath=no
14795 hardcode_into_libs=yes
14796 dynamic_linker='GNU ld.so'
14803 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14806 dynamic_linker='NetBSD (a.out) ld.so'
14808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14809 soname_spec='${libname}${release}${shared_ext}$major'
14810 dynamic_linker='NetBSD ld.elf_so'
14812 shlibpath_var=LD_LIBRARY_PATH
14813 shlibpath_overrides_runpath=yes
14814 hardcode_into_libs=yes
14819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14820 shlibpath_var=LD_LIBRARY_PATH
14821 shlibpath_overrides_runpath=yes
14828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14829 soname_spec='${libname}${release}${shared_ext}$major'
14830 shlibpath_var=LD_LIBRARY_PATH
14831 shlibpath_overrides_runpath=yes
14836 sys_lib_dlsearch_path_spec="/usr/lib"
14838 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14840 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14841 *) need_version=no ;;
14843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14845 shlibpath_var=LD_LIBRARY_PATH
14846 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14848 openbsd2.[89] | openbsd2.[89].*)
14849 shlibpath_overrides_runpath=no
14852 shlibpath_overrides_runpath=yes
14856 shlibpath_overrides_runpath=yes
14861 libname_spec='$name'
14864 library_names_spec='$libname${shared_ext} $libname.a'
14865 dynamic_linker='OS/2 ld.exe'
14866 shlibpath_var=LIBPATH
14869 osf3* | osf4* | osf5*)
14873 soname_spec='${libname}${release}${shared_ext}$major'
14874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14875 shlibpath_var=LD_LIBRARY_PATH
14876 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14877 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885 soname_spec='${libname}${release}${shared_ext}$major'
14886 shlibpath_var=LD_LIBRARY_PATH
14887 shlibpath_overrides_runpath=yes
14888 hardcode_into_libs=yes
14889 # ldd complains unless libraries are executable
14890 postinstall_cmds='chmod +x $lib'
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14896 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14897 shlibpath_var=LD_LIBRARY_PATH
14898 shlibpath_overrides_runpath=yes
14899 if test "$with_gnu_ld" = yes; then
14907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14908 soname_spec='${libname}${release}${shared_ext}$major'
14909 shlibpath_var=LD_LIBRARY_PATH
14910 case $host_vendor in
14912 shlibpath_overrides_runpath=no
14914 export_dynamic_flag_spec='${wl}-Blargedynsym'
14915 runpath_var=LD_RUN_PATH
14923 shlibpath_overrides_runpath=no
14924 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14930 if test -d /usr/nec ;then
14932 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14933 soname_spec='$libname${shared_ext}.$major'
14934 shlibpath_var=LD_LIBRARY_PATH
14938 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14939 version_type=freebsd-elf
14942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14943 soname_spec='${libname}${release}${shared_ext}$major'
14944 shlibpath_var=LD_LIBRARY_PATH
14945 hardcode_into_libs=yes
14946 if test "$with_gnu_ld" = yes; then
14947 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14948 shlibpath_overrides_runpath=no
14950 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14951 shlibpath_overrides_runpath=yes
14954 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14958 sys_lib_dlsearch_path_spec='/usr/lib'
14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964 soname_spec='${libname}${release}${shared_ext}$major'
14965 shlibpath_var=LD_LIBRARY_PATH
14972 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14973 echo "${ECHO_T}$dynamic_linker" >&6
14974 test "$dynamic_linker" = no && can_build_shared=no
14976 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14977 if test "$GCC" = yes; then
14978 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14981 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14982 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14983 hardcode_action_F77=
14984 if test -n "$hardcode_libdir_flag_spec_F77" || \
14985 test -n "$runpath_var_F77" || \
14986 test "X$hardcode_automatic_F77" = "Xyes" ; then
14988 # We can hardcode non-existant directories.
14989 if test "$hardcode_direct_F77" != no &&
14990 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14991 # have to relink, otherwise we might link with an installed library
14992 # when we should be linking with a yet-to-be-installed one
14993 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14994 test "$hardcode_minus_L_F77" != no; then
14995 # Linking always hardcodes the temporary library directory.
14996 hardcode_action_F77=relink
14998 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14999 hardcode_action_F77=immediate
15002 # We cannot hardcode anything, or else we can only hardcode existing
15004 hardcode_action_F77=unsupported
15006 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15007 echo "${ECHO_T}$hardcode_action_F77" >&6
15009 if test "$hardcode_action_F77" = relink; then
15010 # Fast installation is not supported
15011 enable_fast_install=no
15012 elif test "$shlibpath_overrides_runpath" = yes ||
15013 test "$enable_shared" = no; then
15014 # Fast installation is not necessary
15015 enable_fast_install=needless
15019 # The else clause should only fire when bootstrapping the
15020 # libtool distribution, otherwise you forgot to ship ltmain.sh
15021 # with your package, and you will get complaints that there are
15022 # no rules to generate ltmain.sh.
15023 if test -f "$ltmain"; then
15024 # See if we are running on zsh, and set the options which allow our commands through
15025 # without removal of \ escapes.
15026 if test -n "${ZSH_VERSION+set}" ; then
15027 setopt NO_GLOB_SUBST
15029 # Now quote all the things that may contain metacharacters while being
15030 # careful not to overquote the AC_SUBSTed values. We take copies of the
15031 # variables and quote the copies for generation of the libtool script.
15032 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15034 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15035 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15036 deplibs_check_method reload_flag reload_cmds need_locks \
15037 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15038 lt_cv_sys_global_symbol_to_c_name_address \
15039 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15040 old_postinstall_cmds old_postuninstall_cmds \
15044 lt_prog_compiler_wl_F77 \
15045 lt_prog_compiler_pic_F77 \
15046 lt_prog_compiler_static_F77 \
15047 lt_prog_compiler_no_builtin_flag_F77 \
15048 export_dynamic_flag_spec_F77 \
15049 thread_safe_flag_spec_F77 \
15050 whole_archive_flag_spec_F77 \
15051 enable_shared_with_static_runtimes_F77 \
15052 old_archive_cmds_F77 \
15053 old_archive_from_new_cmds_F77 \
15054 predep_objects_F77 \
15055 postdep_objects_F77 \
15058 compiler_lib_search_path_F77 \
15060 archive_expsym_cmds_F77 \
15061 postinstall_cmds_F77 \
15062 postuninstall_cmds_F77 \
15063 old_archive_from_expsyms_cmds_F77 \
15064 allow_undefined_flag_F77 \
15065 no_undefined_flag_F77 \
15066 export_symbols_cmds_F77 \
15067 hardcode_libdir_flag_spec_F77 \
15068 hardcode_libdir_flag_spec_ld_F77 \
15069 hardcode_libdir_separator_F77 \
15070 hardcode_automatic_F77 \
15072 module_expsym_cmds_F77 \
15073 lt_cv_prog_compiler_c_o_F77 \
15074 exclude_expsyms_F77 \
15075 include_expsyms_F77; do
15078 old_archive_cmds_F77 | \
15079 old_archive_from_new_cmds_F77 | \
15080 archive_cmds_F77 | \
15081 archive_expsym_cmds_F77 | \
15082 module_cmds_F77 | \
15083 module_expsym_cmds_F77 | \
15084 old_archive_from_expsyms_cmds_F77 | \
15085 export_symbols_cmds_F77 | \
15086 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15087 postinstall_cmds | postuninstall_cmds | \
15088 old_postinstall_cmds | old_postuninstall_cmds | \
15089 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15090 # Double-quote double-evaled strings.
15091 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15094 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15100 *'\$0 --fallback-echo"')
15101 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15107 cat <<__EOF__ >> "$cfgfile"
15108 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15110 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15112 # Shell to use when invoking shell scripts.
15115 # Whether or not to build shared libraries.
15116 build_libtool_libs=$enable_shared
15118 # Whether or not to build static libraries.
15119 build_old_libs=$enable_static
15121 # Whether or not to add -lc for building shared libraries.
15122 build_libtool_need_lc=$archive_cmds_need_lc_F77
15124 # Whether or not to disallow shared libs when runtime libs are static
15125 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15127 # Whether or not to optimize for fast installation.
15128 fast_install=$enable_fast_install
15131 host_alias=$host_alias
15135 # The build system.
15136 build_alias=$build_alias
15140 # An echo program that does not interpret backslashes.
15145 AR_FLAGS=$lt_AR_FLAGS
15150 # LTCC compiler flags.
15151 LTCFLAGS=$lt_LTCFLAGS
15153 # A language-specific compiler.
15154 CC=$lt_compiler_F77
15156 # Is the compiler the GNU C compiler?
15162 # The linker used to build libraries.
15165 # Whether we need hard or soft links.
15168 # A BSD-compatible nm program.
15171 # A symbol stripping program
15174 # Used to examine libraries when file_magic_cmd begins "file"
15175 MAGIC_CMD=$MAGIC_CMD
15177 # Used on cygwin: DLL creation program.
15180 # Used on cygwin: object dumper.
15183 # Used on cygwin: assembler.
15186 # The name of the directory that contains temporary libtool files.
15189 # How to create reloadable object files.
15190 reload_flag=$lt_reload_flag
15191 reload_cmds=$lt_reload_cmds
15193 # How to pass a linker flag through the compiler.
15194 wl=$lt_lt_prog_compiler_wl_F77
15196 # Object file suffix (normally "o").
15197 objext="$ac_objext"
15199 # Old archive suffix (normally "a").
15202 # Shared library suffix (normally ".so").
15203 shrext_cmds='$shrext_cmds'
15205 # Executable file suffix (normally "").
15208 # Additional compiler flags for building library objects.
15209 pic_flag=$lt_lt_prog_compiler_pic_F77
15212 # What is the maximum length of a command?
15213 max_cmd_len=$lt_cv_sys_max_cmd_len
15215 # Does compiler simultaneously support -c and -o options?
15216 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15218 # Must we lock files when doing compilation?
15219 need_locks=$lt_need_locks
15221 # Do we need the lib prefix for modules?
15222 need_lib_prefix=$need_lib_prefix
15224 # Do we need a version for libraries?
15225 need_version=$need_version
15227 # Whether dlopen is supported.
15228 dlopen_support=$enable_dlopen
15230 # Whether dlopen of programs is supported.
15231 dlopen_self=$enable_dlopen_self
15233 # Whether dlopen of statically linked programs is supported.
15234 dlopen_self_static=$enable_dlopen_self_static
15236 # Compiler flag to prevent dynamic linking.
15237 link_static_flag=$lt_lt_prog_compiler_static_F77
15239 # Compiler flag to turn off builtin functions.
15240 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15242 # Compiler flag to allow reflexive dlopens.
15243 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15245 # Compiler flag to generate shared objects directly from archives.
15246 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15248 # Compiler flag to generate thread-safe objects.
15249 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15251 # Library versioning type.
15252 version_type=$version_type
15254 # Format of library name prefix.
15255 libname_spec=$lt_libname_spec
15257 # List of archive names. First name is the real one, the rest are links.
15258 # The last name is the one that the linker finds with -lNAME.
15259 library_names_spec=$lt_library_names_spec
15261 # The coded name of the library, if different from the real name.
15262 soname_spec=$lt_soname_spec
15264 # Commands used to build and install an old-style archive.
15266 old_archive_cmds=$lt_old_archive_cmds_F77
15267 old_postinstall_cmds=$lt_old_postinstall_cmds
15268 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15270 # Create an old-style archive from a shared archive.
15271 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15273 # Create a temporary old-style archive to link instead of a shared archive.
15274 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15276 # Commands used to build and install a shared archive.
15277 archive_cmds=$lt_archive_cmds_F77
15278 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15279 postinstall_cmds=$lt_postinstall_cmds
15280 postuninstall_cmds=$lt_postuninstall_cmds
15282 # Commands used to build a loadable module (assumed same as above if empty)
15283 module_cmds=$lt_module_cmds_F77
15284 module_expsym_cmds=$lt_module_expsym_cmds_F77
15286 # Commands to strip libraries.
15287 old_striplib=$lt_old_striplib
15288 striplib=$lt_striplib
15290 # Dependencies to place before the objects being linked to create a
15292 predep_objects=$lt_predep_objects_F77
15294 # Dependencies to place after the objects being linked to create a
15296 postdep_objects=$lt_postdep_objects_F77
15298 # Dependencies to place before the objects being linked to create a
15300 predeps=$lt_predeps_F77
15302 # Dependencies to place after the objects being linked to create a
15304 postdeps=$lt_postdeps_F77
15306 # The library search path used internally by the compiler when linking
15307 # a shared library.
15308 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15310 # Method to check whether dependent libraries are shared objects.
15311 deplibs_check_method=$lt_deplibs_check_method
15313 # Command to use when deplibs_check_method == file_magic.
15314 file_magic_cmd=$lt_file_magic_cmd
15316 # Flag that allows shared libraries with undefined symbols to be built.
15317 allow_undefined_flag=$lt_allow_undefined_flag_F77
15319 # Flag that forces no undefined symbols.
15320 no_undefined_flag=$lt_no_undefined_flag_F77
15322 # Commands used to finish a libtool library installation in a directory.
15323 finish_cmds=$lt_finish_cmds
15325 # Same as above, but a single script fragment to be evaled but not shown.
15326 finish_eval=$lt_finish_eval
15328 # Take the output of nm and produce a listing of raw symbols and C names.
15329 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15331 # Transform the output of nm in a proper C declaration
15332 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15334 # Transform the output of nm in a C name address pair
15335 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15337 # This is the shared library runtime path variable.
15338 runpath_var=$runpath_var
15340 # This is the shared library path variable.
15341 shlibpath_var=$shlibpath_var
15343 # Is shlibpath searched before the hard-coded library search path?
15344 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15346 # How to hardcode a shared library path into an executable.
15347 hardcode_action=$hardcode_action_F77
15349 # Whether we should hardcode library paths into libraries.
15350 hardcode_into_libs=$hardcode_into_libs
15352 # Flag to hardcode \$libdir into a binary during linking.
15353 # This must work even if \$libdir does not exist.
15354 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15356 # If ld is used when linking, flag to hardcode \$libdir into
15357 # a binary during linking. This must work even if \$libdir does
15359 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15361 # Whether we need a single -rpath flag with a separated argument.
15362 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15364 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15365 # resulting binary.
15366 hardcode_direct=$hardcode_direct_F77
15368 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15369 # resulting binary.
15370 hardcode_minus_L=$hardcode_minus_L_F77
15372 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15373 # the resulting binary.
15374 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15376 # Set to yes if building a shared library automatically hardcodes DIR into the library
15377 # and all subsequent libraries and executables linked against it.
15378 hardcode_automatic=$hardcode_automatic_F77
15380 # Variables whose values should be saved in libtool wrapper scripts and
15381 # restored at relink time.
15382 variables_saved_for_relink="$variables_saved_for_relink"
15384 # Whether libtool must link a program against all its dependency libraries.
15385 link_all_deplibs=$link_all_deplibs_F77
15387 # Compile-time system search path for libraries
15388 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15390 # Run-time system search path for libraries
15391 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15393 # Fix the shell variable \$srcfile for the compiler.
15394 fix_srcfile_path="$fix_srcfile_path_F77"
15396 # Set to yes if exported symbols are required.
15397 always_export_symbols=$always_export_symbols_F77
15399 # The commands to list exported symbols.
15400 export_symbols_cmds=$lt_export_symbols_cmds_F77
15402 # The commands to extract the exported symbol list from a shared archive.
15403 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15405 # Symbols that should not be listed in the preloaded symbols.
15406 exclude_expsyms=$lt_exclude_expsyms_F77
15408 # Symbols that must always be exported.
15409 include_expsyms=$lt_include_expsyms_F77
15411 # ### END LIBTOOL TAG CONFIG: $tagname
15417 # If there is no Makefile yet, we rely on a make rule to execute
15418 # `config.status --recheck' to rerun these tests and create the
15419 # libtool script then.
15420 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15421 if test -f "$ltmain_in"; then
15422 test -f Makefile && make "$ltmain"
15428 ac_cpp='$CPP $CPPFLAGS'
15429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15441 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15445 # Source file extension for Java test sources.
15448 # Object file extension for compiled Java test sources.
15452 # Code to be used in simple compile tests
15453 lt_simple_compile_test_code="class foo {}\n"
15455 # Code to be used in simple link tests
15456 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15458 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15460 # If no C compiler was specified, use CC.
15463 # If no C compiler flags were specified, use CFLAGS.
15464 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15466 # Allow CC to be a program name with arguments.
15470 # save warnings/boilerplate of simple test code
15471 ac_outfile=conftest.$ac_objext
15472 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15473 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15474 _lt_compiler_boilerplate=`cat conftest.err`
15477 ac_outfile=conftest.$ac_objext
15478 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15479 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15480 _lt_linker_boilerplate=`cat conftest.err`
15484 # Allow CC to be a program name with arguments.
15489 for cc_temp in $compiler""; do
15491 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15492 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15497 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15500 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15501 archive_cmds_need_lc_GCJ=no
15503 old_archive_cmds_GCJ=$old_archive_cmds
15506 lt_prog_compiler_no_builtin_flag_GCJ=
15508 if test "$GCC" = yes; then
15509 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15512 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15513 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15514 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15517 lt_cv_prog_compiler_rtti_exceptions=no
15518 ac_outfile=conftest.$ac_objext
15519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15520 lt_compiler_flag="-fno-rtti -fno-exceptions"
15521 # Insert the option either (1) after the last *FLAGS variable, or
15522 # (2) before a word containing "conftest.", or (3) at the end.
15523 # Note that $ac_compile itself does not contain backslashes and begins
15524 # with a dollar sign (not a hyphen), so the echo should work correctly.
15525 # The option is referenced via a variable to avoid confusing sed.
15526 lt_compile=`echo "$ac_compile" | $SED \
15527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15529 -e 's:$: $lt_compiler_flag:'`
15530 (eval echo "\"\$as_me:15530: $lt_compile\"" >&5)
15531 (eval "$lt_compile" 2>conftest.err)
15533 cat conftest.err >&5
15534 echo "$as_me:15534: \$? = $ac_status" >&5
15535 if (exit $ac_status) && test -s "$ac_outfile"; then
15536 # The compiler can only warn and ignore the option if not recognized
15537 # So say no if there are warnings other than the usual output.
15538 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15541 lt_cv_prog_compiler_rtti_exceptions=yes
15547 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15548 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15550 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15551 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15558 lt_prog_compiler_wl_GCJ=
15559 lt_prog_compiler_pic_GCJ=
15560 lt_prog_compiler_static_GCJ=
15562 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15563 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15565 if test "$GCC" = yes; then
15566 lt_prog_compiler_wl_GCJ='-Wl,'
15567 lt_prog_compiler_static_GCJ='-static'
15571 # All AIX code is PIC.
15572 if test "$host_cpu" = ia64; then
15573 # AIX 5 now supports IA64 processor
15574 lt_prog_compiler_static_GCJ='-Bstatic'
15579 # FIXME: we need at least 68020 code to build shared libraries, but
15580 # adding the `-m68020' flag to GCC prevents building anything better,
15582 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15585 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15586 # PIC is the default for these OSes.
15589 mingw* | pw32* | os2*)
15590 # This hack is so that the source file can tell whether it is being
15591 # built for inclusion in a dll (and should export symbols for example).
15592 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15595 darwin* | rhapsody*)
15596 # PIC is the default on this platform
15597 # Common symbols not allowed in MH_DYLIB files
15598 lt_prog_compiler_pic_GCJ='-fno-common'
15602 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15603 # Instead, we relocate shared libraries at runtime.
15607 # Just because we use GCC doesn't mean we suddenly get shared libraries
15608 # on systems that don't support them.
15609 lt_prog_compiler_can_build_shared_GCJ=no
15614 if test -d /usr/nec; then
15615 lt_prog_compiler_pic_GCJ=-Kconform_pic
15620 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15621 # not for PA HP-UX.
15627 lt_prog_compiler_pic_GCJ='-fPIC'
15633 lt_prog_compiler_pic_GCJ='-fPIC'
15637 # PORTME Check for flag to pass linker flags through the system compiler.
15640 lt_prog_compiler_wl_GCJ='-Wl,'
15641 if test "$host_cpu" = ia64; then
15642 # AIX 5 now supports IA64 processor
15643 lt_prog_compiler_static_GCJ='-Bstatic'
15645 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15649 # PIC is the default on this platform
15650 # Common symbols not allowed in MH_DYLIB files
15651 case $cc_basename in
15653 lt_prog_compiler_pic_GCJ='-qnocommon'
15654 lt_prog_compiler_wl_GCJ='-Wl,'
15659 mingw* | pw32* | os2*)
15660 # This hack is so that the source file can tell whether it is being
15661 # built for inclusion in a dll (and should export symbols for example).
15662 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15665 hpux9* | hpux10* | hpux11*)
15666 lt_prog_compiler_wl_GCJ='-Wl,'
15667 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15668 # not for PA HP-UX.
15674 lt_prog_compiler_pic_GCJ='+Z'
15677 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15678 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15681 irix5* | irix6* | nonstopux*)
15682 lt_prog_compiler_wl_GCJ='-Wl,'
15683 # PIC (with -KPIC) is the default.
15684 lt_prog_compiler_static_GCJ='-non_shared'
15688 lt_prog_compiler_pic_GCJ='-KPIC'
15689 lt_prog_compiler_static_GCJ='-Bstatic'
15693 case $cc_basename in
15695 lt_prog_compiler_wl_GCJ='-Wl,'
15696 lt_prog_compiler_pic_GCJ='-KPIC'
15697 lt_prog_compiler_static_GCJ='-static'
15699 pgcc* | pgf77* | pgf90* | pgf95*)
15700 # Portland Group compilers (*not* the Pentium gcc compiler,
15701 # which looks to be a dead project)
15702 lt_prog_compiler_wl_GCJ='-Wl,'
15703 lt_prog_compiler_pic_GCJ='-fpic'
15704 lt_prog_compiler_static_GCJ='-Bstatic'
15707 lt_prog_compiler_wl_GCJ='-Wl,'
15708 # All Alpha code is PIC.
15709 lt_prog_compiler_static_GCJ='-non_shared'
15714 osf3* | osf4* | osf5*)
15715 lt_prog_compiler_wl_GCJ='-Wl,'
15716 # All OSF/1 code is PIC.
15717 lt_prog_compiler_static_GCJ='-non_shared'
15721 lt_prog_compiler_pic_GCJ='-KPIC'
15722 lt_prog_compiler_static_GCJ='-Bstatic'
15723 case $cc_basename in
15724 f77* | f90* | f95*)
15725 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15727 lt_prog_compiler_wl_GCJ='-Wl,';;
15732 lt_prog_compiler_wl_GCJ='-Qoption ld '
15733 lt_prog_compiler_pic_GCJ='-PIC'
15734 lt_prog_compiler_static_GCJ='-Bstatic'
15737 sysv4 | sysv4.2uw2* | sysv4.3*)
15738 lt_prog_compiler_wl_GCJ='-Wl,'
15739 lt_prog_compiler_pic_GCJ='-KPIC'
15740 lt_prog_compiler_static_GCJ='-Bstatic'
15744 if test -d /usr/nec ;then
15745 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15746 lt_prog_compiler_static_GCJ='-Bstatic'
15750 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15751 lt_prog_compiler_wl_GCJ='-Wl,'
15752 lt_prog_compiler_pic_GCJ='-KPIC'
15753 lt_prog_compiler_static_GCJ='-Bstatic'
15757 lt_prog_compiler_wl_GCJ='-Wl,'
15758 lt_prog_compiler_can_build_shared_GCJ=no
15762 lt_prog_compiler_pic_GCJ='-pic'
15763 lt_prog_compiler_static_GCJ='-Bstatic'
15767 lt_prog_compiler_can_build_shared_GCJ=no
15772 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15773 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15776 # Check to make sure the PIC flag actually works.
15778 if test -n "$lt_prog_compiler_pic_GCJ"; then
15780 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15781 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15782 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15783 echo $ECHO_N "(cached) $ECHO_C" >&6
15785 lt_prog_compiler_pic_works_GCJ=no
15786 ac_outfile=conftest.$ac_objext
15787 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15788 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15789 # Insert the option either (1) after the last *FLAGS variable, or
15790 # (2) before a word containing "conftest.", or (3) at the end.
15791 # Note that $ac_compile itself does not contain backslashes and begins
15792 # with a dollar sign (not a hyphen), so the echo should work correctly.
15793 # The option is referenced via a variable to avoid confusing sed.
15794 lt_compile=`echo "$ac_compile" | $SED \
15795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15797 -e 's:$: $lt_compiler_flag:'`
15798 (eval echo "\"\$as_me:15798: $lt_compile\"" >&5)
15799 (eval "$lt_compile" 2>conftest.err)
15801 cat conftest.err >&5
15802 echo "$as_me:15802: \$? = $ac_status" >&5
15803 if (exit $ac_status) && test -s "$ac_outfile"; then
15804 # The compiler can only warn and ignore the option if not recognized
15805 # So say no if there are warnings other than the usual output.
15806 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15808 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15809 lt_prog_compiler_pic_works_GCJ=yes
15815 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15816 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15818 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15819 case $lt_prog_compiler_pic_GCJ in
15821 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15824 lt_prog_compiler_pic_GCJ=
15825 lt_prog_compiler_can_build_shared_GCJ=no
15830 # For platforms which do not support PIC, -DPIC is meaningless:
15832 lt_prog_compiler_pic_GCJ=
15835 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15840 # Check to make sure the static flag actually works.
15842 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15843 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15844 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15845 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15846 echo $ECHO_N "(cached) $ECHO_C" >&6
15848 lt_prog_compiler_static_works_GCJ=no
15849 save_LDFLAGS="$LDFLAGS"
15850 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15851 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15852 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15853 # The linker can only warn and ignore the option if not recognized
15854 # So say no if there are warnings
15855 if test -s conftest.err; then
15856 # Append any errors to the config.log.
15857 cat conftest.err 1>&5
15858 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15859 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15860 if diff conftest.exp conftest.er2 >/dev/null; then
15861 lt_prog_compiler_static_works_GCJ=yes
15864 lt_prog_compiler_static_works_GCJ=yes
15868 LDFLAGS="$save_LDFLAGS"
15871 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15872 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15874 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15877 lt_prog_compiler_static_GCJ=
15881 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15882 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15883 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15884 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 lt_cv_prog_compiler_c_o_GCJ=no
15887 $rm -r conftest 2>/dev/null
15891 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15893 lt_compiler_flag="-o out/conftest2.$ac_objext"
15894 # Insert the option either (1) after the last *FLAGS variable, or
15895 # (2) before a word containing "conftest.", or (3) at the end.
15896 # Note that $ac_compile itself does not contain backslashes and begins
15897 # with a dollar sign (not a hyphen), so the echo should work correctly.
15898 lt_compile=`echo "$ac_compile" | $SED \
15899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15901 -e 's:$: $lt_compiler_flag:'`
15902 (eval echo "\"\$as_me:15902: $lt_compile\"" >&5)
15903 (eval "$lt_compile" 2>out/conftest.err)
15905 cat out/conftest.err >&5
15906 echo "$as_me:15906: \$? = $ac_status" >&5
15907 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15909 # The compiler can only warn and ignore the option if not recognized
15910 # So say no if there are warnings
15911 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15912 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15913 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15914 lt_cv_prog_compiler_c_o_GCJ=yes
15919 # SGI C++ compiler will create directory out/ii_files/ for
15920 # template instantiation
15921 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15922 $rm out/* && rmdir out
15928 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15929 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15932 hard_links="nottested"
15933 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15934 # do not overwrite the value of need_locks provided by the user
15935 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15936 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15939 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15941 ln conftest.a conftest.b 2>&5 || hard_links=no
15942 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15943 echo "$as_me:$LINENO: result: $hard_links" >&5
15944 echo "${ECHO_T}$hard_links" >&6
15945 if test "$hard_links" = no; then
15946 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15947 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15954 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15955 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15958 allow_undefined_flag_GCJ=
15959 enable_shared_with_static_runtimes_GCJ=no
15961 archive_expsym_cmds_GCJ=
15962 old_archive_From_new_cmds_GCJ=
15963 old_archive_from_expsyms_cmds_GCJ=
15964 export_dynamic_flag_spec_GCJ=
15965 whole_archive_flag_spec_GCJ=
15966 thread_safe_flag_spec_GCJ=
15967 hardcode_libdir_flag_spec_GCJ=
15968 hardcode_libdir_flag_spec_ld_GCJ=
15969 hardcode_libdir_separator_GCJ=
15970 hardcode_direct_GCJ=no
15971 hardcode_minus_L_GCJ=no
15972 hardcode_shlibpath_var_GCJ=unsupported
15973 link_all_deplibs_GCJ=unknown
15974 hardcode_automatic_GCJ=no
15976 module_expsym_cmds_GCJ=
15977 always_export_symbols_GCJ=no
15978 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15979 # include_expsyms should be a list of space-separated symbols to be *always*
15980 # included in the symbol list
15981 include_expsyms_GCJ=
15982 # exclude_expsyms can be an extended regexp of symbols to exclude
15983 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15984 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15985 # as well as any symbol that contains `d'.
15986 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15987 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15988 # platforms (ab)use it in PIC code, but their linkers get confused if
15989 # the symbol is explicitly referenced. Since portable code cannot
15990 # rely on this symbol name, it's probably fine to never include it in
15991 # preloaded symbol tables.
15992 extract_expsyms_cmds=
15993 # Just being paranoid about ensuring that cc_basename is set.
15994 for cc_temp in $compiler""; do
15996 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15997 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16002 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16005 cygwin* | mingw* | pw32*)
16006 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16007 # When not using gcc, we currently assume that we are using
16008 # Microsoft Visual C++.
16009 if test "$GCC" != yes; then
16014 # we just hope/assume this is gcc and not c89 (= MSVC++)
16023 if test "$with_gnu_ld" = yes; then
16024 # If archive_cmds runs LD, not CC, wlarc should be empty
16027 # Set some defaults for GNU ld with shared library support. These
16028 # are reset later if shared libraries are not supported. Putting them
16029 # here allows them to be overridden if necessary.
16030 runpath_var=LD_RUN_PATH
16031 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16032 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16033 # ancient GNU ld didn't support --whole-archive et. al.
16034 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16035 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16037 whole_archive_flag_spec_GCJ=
16039 supports_anon_versioning=no
16040 case `$LD -v 2>/dev/null` in
16041 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16042 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16043 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16044 *\ 2.11.*) ;; # other 2.11 versions
16045 *) supports_anon_versioning=yes ;;
16048 # See if GNU ld supports shared libraries.
16050 aix3* | aix4* | aix5*)
16051 # On AIX/PPC, the GNU linker is very broken
16052 if test "$host_cpu" != ia64; then
16056 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16057 *** to be unable to reliably create shared libraries on AIX.
16058 *** Therefore, libtool is disabling shared libraries support. If you
16059 *** really care for shared libraries, you may want to modify your PATH
16060 *** so that a non-GNU linker is found, and then restart.
16067 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)'
16068 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16069 hardcode_minus_L_GCJ=yes
16071 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16072 # that the semantics of dynamic libraries on AmigaOS, at least up
16073 # to version 4, is to share data among multiple programs linked
16074 # with the same dynamic library. Since this doesn't match the
16075 # behavior of shared libraries on other platforms, we can't use
16081 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16082 allow_undefined_flag_GCJ=unsupported
16083 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16084 # support --undefined. This deserves some investigation. FIXME
16085 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16091 cygwin* | mingw* | pw32*)
16092 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16093 # as there is no search path for DLLs.
16094 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16095 allow_undefined_flag_GCJ=unsupported
16096 always_export_symbols_GCJ=no
16097 enable_shared_with_static_runtimes_GCJ=yes
16098 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16100 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16101 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16102 # If the export-symbols file already is a .def file (1st line
16103 # is EXPORTS), use it as is; otherwise, prepend...
16104 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16105 cp $export_symbols $output_objdir/$soname.def;
16107 echo EXPORTS > $output_objdir/$soname.def;
16108 cat $export_symbols >> $output_objdir/$soname.def;
16110 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16117 hardcode_direct_GCJ=no
16118 hardcode_shlibpath_var_GCJ=no
16119 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16120 export_dynamic_flag_spec_GCJ='${wl}-E'
16121 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16122 # Instead, shared libraries are loaded at an image base (0x10000000 by
16123 # default) and relocated if they conflict, which is a slow very memory
16124 # consuming and fragmenting process. To avoid this, we pick a random,
16125 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16126 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16127 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16128 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16132 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16134 case $cc_basename,$host_cpu in
16135 pgcc*) # Portland Group C compiler
16136 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16137 tmp_addflag=' $pic_flag'
16139 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16140 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16141 tmp_addflag=' $pic_flag -Mnomain' ;;
16142 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16143 tmp_addflag=' -i_dynamic' ;;
16144 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16145 tmp_addflag=' -i_dynamic -nofor_main' ;;
16146 ifc* | ifort*) # Intel Fortran compiler
16147 tmp_addflag=' -nofor_main' ;;
16149 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16151 if test $supports_anon_versioning = yes; then
16152 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16153 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16154 $echo "local: *; };" >> $output_objdir/$libname.ver~
16155 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16157 link_all_deplibs_GCJ=no
16163 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16164 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16165 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16168 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16169 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16174 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16178 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16179 *** create shared libraries on Solaris systems. Therefore, libtool
16180 *** is disabling shared libraries support. We urge you to upgrade GNU
16181 *** binutils to release 2.9.1 or newer. Another option is to modify
16182 *** your PATH or compiler configuration so that the native linker is
16183 *** used, and then restart.
16186 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16187 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16188 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16195 case `$LD -v 2>&1` in
16196 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16200 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16201 *** reliably create shared libraries on SCO systems. Therefore, libtool
16202 *** is disabling shared libraries support. We urge you to upgrade GNU
16203 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16204 *** your PATH or compiler configuration so that the native linker is
16205 *** used, and then restart.
16210 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16211 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16212 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16213 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16222 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16224 hardcode_direct_GCJ=yes
16225 hardcode_shlibpath_var_GCJ=no
16229 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16230 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16231 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16238 if test "$ld_shlibs_GCJ" = no; then
16240 hardcode_libdir_flag_spec_GCJ=
16241 export_dynamic_flag_spec_GCJ=
16242 whole_archive_flag_spec_GCJ=
16245 # PORTME fill in a description of your system's linker (not GNU ld)
16248 allow_undefined_flag_GCJ=unsupported
16249 always_export_symbols_GCJ=yes
16250 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'
16251 # Note: this linker hardcodes the directories in LIBPATH if there
16252 # are no directories specified by -L.
16253 hardcode_minus_L_GCJ=yes
16254 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16255 # Neither direct hardcoding nor static linking is supported with a
16257 hardcode_direct_GCJ=unsupported
16262 if test "$host_cpu" = ia64; then
16263 # On IA64, the linker does run time linking by default, so we don't
16264 # have to do anything special.
16265 aix_use_runtimelinking=no
16266 exp_sym_flag='-Bexport'
16269 # If we're using GNU nm, then we don't want the "-C" option.
16270 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16271 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16272 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'
16274 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'
16276 aix_use_runtimelinking=no
16278 # Test if we are trying to use run time linking or normal
16279 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16280 # need to do runtime linking.
16281 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16282 for ld_flag in $LDFLAGS; do
16283 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16284 aix_use_runtimelinking=yes
16291 exp_sym_flag='-bexport'
16292 no_entry_flag='-bnoentry'
16295 # When large executables or shared objects are built, AIX ld can
16296 # have problems creating the table of contents. If linking a library
16297 # or program results in "error TOC overflow" add -mminimal-toc to
16298 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16299 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16301 archive_cmds_GCJ=''
16302 hardcode_direct_GCJ=yes
16303 hardcode_libdir_separator_GCJ=':'
16304 link_all_deplibs_GCJ=yes
16306 if test "$GCC" = yes; then
16307 case $host_os in aix4.[012]|aix4.[012].*)
16308 # We only want to do this on AIX 4.2 and lower, the check
16309 # below for broken collect2 doesn't work under 4.3+
16310 collect2name=`${CC} -print-prog-name=collect2`
16311 if test -f "$collect2name" && \
16312 strings "$collect2name" | grep resolve_lib_name >/dev/null
16314 # We have reworked collect2
16315 hardcode_direct_GCJ=yes
16317 # We have old collect2
16318 hardcode_direct_GCJ=unsupported
16319 # It fails to find uninstalled libraries when the uninstalled
16320 # path is not listed in the libpath. Setting hardcode_minus_L
16321 # to unsupported forces relinking
16322 hardcode_minus_L_GCJ=yes
16323 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16324 hardcode_libdir_separator_GCJ=
16328 shared_flag='-shared'
16329 if test "$aix_use_runtimelinking" = yes; then
16330 shared_flag="$shared_flag "'${wl}-G'
16334 if test "$host_cpu" = ia64; then
16335 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16336 # chokes on -Wl,-G. The following line is correct:
16339 if test "$aix_use_runtimelinking" = yes; then
16340 shared_flag='${wl}-G'
16342 shared_flag='${wl}-bM:SRE'
16347 # It seems that -bexpall does not export symbols beginning with
16348 # underscore (_), so it is better to generate a list of symbols to export.
16349 always_export_symbols_GCJ=yes
16350 if test "$aix_use_runtimelinking" = yes; then
16351 # Warning - without using the other runtime loading flags (-brtl),
16352 # -berok will link without error, but may produce a broken library.
16353 allow_undefined_flag_GCJ='-berok'
16354 # Determine the default libpath from the value encoded in an empty executable.
16355 cat >conftest.$ac_ext <<_ACEOF
16358 cat confdefs.h >>conftest.$ac_ext
16359 cat >>conftest.$ac_ext <<_ACEOF
16360 /* end confdefs.h. */
16370 rm -f conftest.$ac_objext conftest$ac_exeext
16371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16372 (eval $ac_link) 2>conftest.er1
16374 grep -v '^ *+' conftest.er1 >conftest.err
16376 cat conftest.err >&5
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); } &&
16379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381 (eval $ac_try) 2>&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; } &&
16385 { ac_try='test -s conftest$ac_exeext'
16386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387 (eval $ac_try) 2>&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; }; then
16392 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16394 # Check for a 64-bit object if we didn't find anything.
16395 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; }
16398 echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16402 rm -f conftest.err conftest.$ac_objext \
16403 conftest$ac_exeext conftest.$ac_ext
16404 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16406 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16407 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16409 if test "$host_cpu" = ia64; then
16410 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16411 allow_undefined_flag_GCJ="-z nodefs"
16412 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16414 # Determine the default libpath from the value encoded in an empty executable.
16415 cat >conftest.$ac_ext <<_ACEOF
16418 cat confdefs.h >>conftest.$ac_ext
16419 cat >>conftest.$ac_ext <<_ACEOF
16420 /* end confdefs.h. */
16430 rm -f conftest.$ac_objext conftest$ac_exeext
16431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16432 (eval $ac_link) 2>conftest.er1
16434 grep -v '^ *+' conftest.er1 >conftest.err
16436 cat conftest.err >&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); } &&
16439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16441 (eval $ac_try) 2>&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); }; } &&
16445 { ac_try='test -s conftest$ac_exeext'
16446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16447 (eval $ac_try) 2>&5
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); }; }; then
16452 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16454 # Check for a 64-bit object if we didn't find anything.
16455 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; }
16458 echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16462 rm -f conftest.err conftest.$ac_objext \
16463 conftest$ac_exeext conftest.$ac_ext
16464 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16466 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16467 # Warning - without using the other run time loading flags,
16468 # -berok will link without error, but may produce a broken library.
16469 no_undefined_flag_GCJ=' ${wl}-bernotok'
16470 allow_undefined_flag_GCJ=' ${wl}-berok'
16471 # Exported symbols can be pulled into shared objects from archives
16472 whole_archive_flag_spec_GCJ='$convenience'
16473 archive_cmds_need_lc_GCJ=yes
16474 # This is similar to how AIX traditionally builds its shared libraries.
16475 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16481 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)'
16482 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16483 hardcode_minus_L_GCJ=yes
16484 # see comment about different semantics on the GNU ld section
16489 export_dynamic_flag_spec_GCJ=-rdynamic
16492 cygwin* | mingw* | pw32*)
16493 # When not using gcc, we currently assume that we are using
16494 # Microsoft Visual C++.
16495 # hardcode_libdir_flag_spec is actually meaningless, as there is
16496 # no search path for DLLs.
16497 hardcode_libdir_flag_spec_GCJ=' '
16498 allow_undefined_flag_GCJ=unsupported
16499 # Tell ltmain to make .lib files, not .a files.
16501 # Tell ltmain to make .dll files, not .so files.
16503 # FIXME: Setting linknames here is a bad hack.
16504 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16505 # The linker will automatically build a .lib file if we build a DLL.
16506 old_archive_From_new_cmds_GCJ='true'
16507 # FIXME: Should let the user specify the lib program.
16508 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16509 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16510 enable_shared_with_static_runtimes_GCJ=yes
16513 darwin* | rhapsody*)
16515 rhapsody* | darwin1.[012])
16516 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16519 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16520 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16522 case ${MACOSX_DEPLOYMENT_TARGET} in
16524 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16527 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16533 archive_cmds_need_lc_GCJ=no
16534 hardcode_direct_GCJ=no
16535 hardcode_automatic_GCJ=yes
16536 hardcode_shlibpath_var_GCJ=unsupported
16537 whole_archive_flag_spec_GCJ=''
16538 link_all_deplibs_GCJ=yes
16539 if test "$GCC" = yes ; then
16540 output_verbose_link_cmd='echo'
16541 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16542 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16543 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16544 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16545 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}'
16547 case $cc_basename in
16549 output_verbose_link_cmd='echo'
16550 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16551 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16552 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16553 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16554 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}'
16564 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16565 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16566 hardcode_shlibpath_var_GCJ=no
16573 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16574 # support. Future versions do this automatically, but an explicit c++rt0.o
16575 # does not break anything, and helps significantly (at the cost of a little
16578 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16579 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16580 hardcode_direct_GCJ=yes
16581 hardcode_shlibpath_var_GCJ=no
16584 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16586 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16587 hardcode_direct_GCJ=yes
16588 hardcode_minus_L_GCJ=yes
16589 hardcode_shlibpath_var_GCJ=no
16592 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16593 freebsd* | dragonfly*)
16594 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16595 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16596 hardcode_direct_GCJ=yes
16597 hardcode_shlibpath_var_GCJ=no
16600 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16602 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16603 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16604 hardcode_direct_GCJ=yes
16605 hardcode_shlibpath_var_GCJ=no
16606 link_all_deplibs_GCJ=no
16610 if test "$GCC" = yes; then
16611 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'
16613 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'
16615 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16616 hardcode_libdir_separator_GCJ=:
16617 hardcode_direct_GCJ=yes
16619 # hardcode_minus_L: Not really in the search PATH,
16620 # but as the default location of the library.
16621 hardcode_minus_L_GCJ=yes
16622 export_dynamic_flag_spec_GCJ='${wl}-E'
16626 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16627 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16629 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16631 if test "$with_gnu_ld" = no; then
16632 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16633 hardcode_libdir_separator_GCJ=:
16635 hardcode_direct_GCJ=yes
16636 export_dynamic_flag_spec_GCJ='${wl}-E'
16638 # hardcode_minus_L: Not really in the search PATH,
16639 # but as the default location of the library.
16640 hardcode_minus_L_GCJ=yes
16645 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16648 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16651 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16654 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16660 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16663 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16666 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16670 if test "$with_gnu_ld" = no; then
16671 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16672 hardcode_libdir_separator_GCJ=:
16676 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16677 hardcode_direct_GCJ=no
16678 hardcode_shlibpath_var_GCJ=no
16681 hardcode_direct_GCJ=yes
16682 export_dynamic_flag_spec_GCJ='${wl}-E'
16684 # hardcode_minus_L: Not really in the search PATH,
16685 # but as the default location of the library.
16686 hardcode_minus_L_GCJ=yes
16692 irix5* | irix6* | nonstopux*)
16693 if test "$GCC" = yes; then
16694 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'
16696 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'
16697 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16699 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16700 hardcode_libdir_separator_GCJ=:
16701 link_all_deplibs_GCJ=yes
16704 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16705 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16706 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16708 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16710 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16711 hardcode_direct_GCJ=yes
16712 hardcode_shlibpath_var_GCJ=no
16716 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16717 hardcode_direct_GCJ=yes
16718 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16719 hardcode_libdir_separator_GCJ=:
16720 hardcode_shlibpath_var_GCJ=no
16724 hardcode_direct_GCJ=yes
16725 hardcode_shlibpath_var_GCJ=no
16726 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16727 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16728 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16729 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16730 export_dynamic_flag_spec_GCJ='${wl}-E'
16733 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16734 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16735 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16738 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16739 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16746 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16747 hardcode_minus_L_GCJ=yes
16748 allow_undefined_flag_GCJ=unsupported
16749 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'
16750 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16754 if test "$GCC" = yes; then
16755 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16756 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'
16758 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16759 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'
16761 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16762 hardcode_libdir_separator_GCJ=:
16765 osf4* | osf5*) # as osf3* with the addition of -msym flag
16766 if test "$GCC" = yes; then
16767 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16768 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'
16769 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16771 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16772 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'
16773 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~
16774 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16776 # Both c and cxx compiler support -rpath directly
16777 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16779 hardcode_libdir_separator_GCJ=:
16783 no_undefined_flag_GCJ=' -z text'
16784 if test "$GCC" = yes; then
16786 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16787 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16788 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16791 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16792 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16793 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16795 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16796 hardcode_shlibpath_var_GCJ=no
16798 solaris2.[0-5] | solaris2.[0-5].*) ;;
16800 # The compiler driver will combine linker options so we
16801 # cannot just pass the convience library names through
16802 # without $wl, iff we do not link with $LD.
16803 # Luckily, gcc supports the same syntax we need for Sun Studio.
16804 # Supported since Solaris 2.6 (maybe 2.5.1?)
16807 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16809 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16812 link_all_deplibs_GCJ=yes
16816 if test "x$host_vendor" = xsequent; then
16817 # Use $CC to link under sequent, because it throws in some extra .o
16818 # files that make .init and .fini sections work.
16819 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16821 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16823 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16824 hardcode_direct_GCJ=yes
16825 hardcode_minus_L_GCJ=yes
16826 hardcode_shlibpath_var_GCJ=no
16830 case $host_vendor in
16832 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16833 hardcode_direct_GCJ=yes # is this really true???
16836 ## LD is ld it makes a PLAMLIB
16837 ## CC just makes a GrossModule.
16838 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16839 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16840 hardcode_direct_GCJ=no
16843 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16844 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16847 runpath_var='LD_RUN_PATH'
16848 hardcode_shlibpath_var_GCJ=no
16852 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16853 hardcode_shlibpath_var_GCJ=no
16854 export_dynamic_flag_spec_GCJ='-Bexport'
16858 if test -d /usr/nec; then
16859 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16860 hardcode_shlibpath_var_GCJ=no
16861 runpath_var=LD_RUN_PATH
16862 hardcode_runpath_var=yes
16867 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16868 no_undefined_flag_GCJ='${wl}-z,text'
16869 archive_cmds_need_lc_GCJ=no
16870 hardcode_shlibpath_var_GCJ=no
16871 runpath_var='LD_RUN_PATH'
16873 if test "$GCC" = yes; then
16874 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16875 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16877 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16878 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16882 sysv5* | sco3.2v5* | sco5v6*)
16883 # Note: We can NOT use -z defs as we might desire, because we do not
16884 # link with -lc, and that would cause any symbols used from libc to
16885 # always be unresolved, which means just about no library would
16886 # ever link correctly. If we're not using GNU ld we use -z text
16887 # though, which does catch some bad symbols but isn't as heavy-handed
16889 no_undefined_flag_GCJ='${wl}-z,text'
16890 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16891 archive_cmds_need_lc_GCJ=no
16892 hardcode_shlibpath_var_GCJ=no
16893 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16894 hardcode_libdir_separator_GCJ=':'
16895 link_all_deplibs_GCJ=yes
16896 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16897 runpath_var='LD_RUN_PATH'
16899 if test "$GCC" = yes; then
16900 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16901 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16903 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16904 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16909 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16910 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16911 hardcode_shlibpath_var_GCJ=no
16920 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16921 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16922 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16925 # Do we need to explicitly link libc?
16927 case "x$archive_cmds_need_lc_GCJ" in
16929 # Assume -lc should be added
16930 archive_cmds_need_lc_GCJ=yes
16932 if test "$enable_shared" = yes && test "$GCC" = yes; then
16933 case $archive_cmds_GCJ in
16935 # FIXME: we may have to deal with multi-command sequences.
16938 # Test whether the compiler implicitly links with -lc since on some
16939 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16940 # to ld, don't add -lc before -lgcc.
16941 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16942 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16944 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16947 (eval $ac_compile) 2>&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); } 2>conftest.err; then
16953 libobjs=conftest.$ac_objext
16955 wl=$lt_prog_compiler_wl_GCJ
16956 pic_flag=$lt_prog_compiler_pic_GCJ
16962 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16963 allow_undefined_flag_GCJ=
16964 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16965 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }
16970 archive_cmds_need_lc_GCJ=no
16972 archive_cmds_need_lc_GCJ=yes
16974 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16976 cat conftest.err 1>&5
16979 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16980 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16987 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16988 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16989 library_names_spec=
16990 libname_spec='lib$name'
16994 postuninstall_cmds=
16998 shlibpath_overrides_runpath=unknown
17000 dynamic_linker="$host_os ld.so"
17001 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17002 if test "$GCC" = yes; then
17003 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17004 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17005 # if the path contains ";" then we assume it to be the separator
17006 # otherwise default to the standard path separator (i.e. ":") - it is
17007 # assumed that no part of a normal pathname contains ";" but that should
17008 # okay in the real world where ";" in dirpaths is itself problematic.
17009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17014 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17016 need_lib_prefix=unknown
17017 hardcode_into_libs=no
17019 # when you set need_version to no, make sure it does not cause -set_version
17020 # flags to be left without arguments
17021 need_version=unknown
17026 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17027 shlibpath_var=LIBPATH
17029 # AIX 3 has no versioning support, so we append a major version to the name.
17030 soname_spec='${libname}${release}${shared_ext}$major'
17037 hardcode_into_libs=yes
17038 if test "$host_cpu" = ia64; then
17039 # AIX 5 supports IA64
17040 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17041 shlibpath_var=LD_LIBRARY_PATH
17043 # With GCC up to 2.95.x, collect2 would create an import file
17044 # for dependence libraries. The import file would start with
17045 # the line `#! .'. This would cause the generated library to
17046 # depend on `.', always an invalid library. This was fixed in
17047 # development snapshots of GCC prior to 3.0.
17049 aix4 | aix4.[01] | aix4.[01].*)
17050 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17052 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17055 can_build_shared=no
17059 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17060 # soname into executable. Probably we can add versioning support to
17061 # collect2, so additional links can be useful in future.
17062 if test "$aix_use_runtimelinking" = yes; then
17063 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17064 # instead of lib<name>.a to let people know that these are not
17065 # typical AIX shared libraries.
17066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17068 # We preserve .a as extension for shared libraries through AIX4.2
17069 # and later when we are not doing run time linking.
17070 library_names_spec='${libname}${release}.a $libname.a'
17071 soname_spec='${libname}${release}${shared_ext}$major'
17073 shlibpath_var=LIBPATH
17078 library_names_spec='$libname.ixlibrary $libname.a'
17079 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17080 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'
17084 library_names_spec='${libname}${shared_ext}'
17085 dynamic_linker="$host_os ld.so"
17086 shlibpath_var=LIBRARY_PATH
17092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17093 soname_spec='${libname}${release}${shared_ext}$major'
17094 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17095 shlibpath_var=LD_LIBRARY_PATH
17096 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17097 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17098 # the default ld.so.conf also contains /usr/contrib/lib and
17099 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17100 # libtool to hard-code these into programs
17103 cygwin* | mingw* | pw32*)
17104 version_type=windows
17109 case $GCC,$host_os in
17110 yes,cygwin* | yes,mingw* | yes,pw32*)
17111 library_names_spec='$libname.dll.a'
17112 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17113 postinstall_cmds='base_file=`basename \${file}`~
17114 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17115 dldir=$destdir/`dirname \$dlpath`~
17116 test -d \$dldir || mkdir -p \$dldir~
17117 $install_prog $dir/$dlname \$dldir/$dlname~
17118 chmod a+x \$dldir/$dlname'
17119 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17120 dlpath=$dir/\$dldll~
17122 shlibpath_overrides_runpath=yes
17126 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17127 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17128 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17131 # MinGW DLLs use traditional 'lib' prefix
17132 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17133 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17134 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17135 # It is most probably a Windows format PATH printed by
17136 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17137 # path with ; separators, and with drive letters. We can handle the
17138 # drive letters (cygwin fileutils understands them), so leave them,
17139 # especially as we might pass files found there to a mingw objdump,
17140 # which wouldn't understand a cygwinified path. Ahh.
17141 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17147 # pw32 DLLs use 'pw' prefix rather than 'lib'
17148 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17154 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17157 dynamic_linker='Win32 ld.exe'
17158 # FIXME: first we should search . and the directory the executable is in
17162 darwin* | rhapsody*)
17163 dynamic_linker="$host_os dyld"
17164 version_type=darwin
17167 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17168 soname_spec='${libname}${release}${major}$shared_ext'
17169 shlibpath_overrides_runpath=yes
17170 shlibpath_var=DYLD_LIBRARY_PATH
17171 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17172 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17173 if test "$GCC" = yes; then
17174 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"`
17176 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17178 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17186 soname_spec='${libname}${release}${shared_ext}$major'
17187 shlibpath_var=LD_LIBRARY_PATH
17198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17199 soname_spec='${libname}${release}${shared_ext}$major'
17200 shlibpath_var=LD_LIBRARY_PATH
17201 shlibpath_overrides_runpath=no
17202 hardcode_into_libs=yes
17203 dynamic_linker='GNU ld.so'
17206 freebsd* | dragonfly*)
17207 # DragonFly does not have aout. When/if they implement a new
17208 # versioning mechanism, adjust this.
17209 if test -x /usr/bin/objformat; then
17210 objformat=`/usr/bin/objformat`
17213 freebsd[123]*) objformat=aout ;;
17214 *) objformat=elf ;;
17217 version_type=freebsd-$objformat
17218 case $version_type in
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17225 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17229 shlibpath_var=LD_LIBRARY_PATH
17232 shlibpath_overrides_runpath=yes
17234 freebsd3.[01]* | freebsdelf3.[01]*)
17235 shlibpath_overrides_runpath=yes
17236 hardcode_into_libs=yes
17238 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17239 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17240 shlibpath_overrides_runpath=no
17241 hardcode_into_libs=yes
17243 freebsd*) # from 4.6 on
17244 shlibpath_overrides_runpath=yes
17245 hardcode_into_libs=yes
17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17255 soname_spec='${libname}${release}${shared_ext}$major'
17256 shlibpath_var=LD_LIBRARY_PATH
17257 hardcode_into_libs=yes
17260 hpux9* | hpux10* | hpux11*)
17261 # Give a soname corresponding to the major version so that dld.sl refuses to
17262 # link against other versions.
17269 hardcode_into_libs=yes
17270 dynamic_linker="$host_os dld.so"
17271 shlibpath_var=LD_LIBRARY_PATH
17272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17274 soname_spec='${libname}${release}${shared_ext}$major'
17275 if test "X$HPUX_IA64_MODE" = X32; then
17276 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17278 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17284 hardcode_into_libs=yes
17285 dynamic_linker="$host_os dld.sl"
17286 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17289 soname_spec='${libname}${release}${shared_ext}$major'
17290 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17295 dynamic_linker="$host_os dld.sl"
17296 shlibpath_var=SHLIB_PATH
17297 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17299 soname_spec='${libname}${release}${shared_ext}$major'
17302 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17303 postinstall_cmds='chmod 555 $lib'
17310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17311 soname_spec='${libname}${release}${shared_ext}$major'
17312 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17313 shlibpath_var=LD_LIBRARY_PATH
17314 shlibpath_overrides_runpath=no
17315 hardcode_into_libs=yes
17318 irix5* | irix6* | nonstopux*)
17320 nonstopux*) version_type=nonstopux ;;
17322 if test "$lt_cv_prog_gnu_ld" = yes; then
17330 soname_spec='${libname}${release}${shared_ext}$major'
17331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17333 irix5* | nonstopux*)
17334 libsuff= shlibsuff=
17337 case $LD in # libtool.m4 will add one of these switches to LD
17338 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17339 libsuff= shlibsuff= libmagic=32-bit;;
17340 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17341 libsuff=32 shlibsuff=N32 libmagic=N32;;
17342 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17343 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17344 *) libsuff= shlibsuff= libmagic=never-match;;
17348 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17349 shlibpath_overrides_runpath=no
17350 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17351 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17352 hardcode_into_libs=yes
17355 # No shared lib support for Linux oldld, aout, or coff.
17356 linux*oldld* | linux*aout* | linux*coff*)
17360 # This must be Linux ELF.
17365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17366 soname_spec='${libname}${release}${shared_ext}$major'
17367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17368 shlibpath_var=LD_LIBRARY_PATH
17369 shlibpath_overrides_runpath=no
17370 # This implies no fast_install, which is unacceptable.
17371 # Some rework will be needed to allow for fast_install
17372 # before this can be enabled.
17373 hardcode_into_libs=yes
17375 # Append ld.so.conf contents to the search path
17376 if test -f /etc/ld.so.conf; then
17377 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17378 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17381 # We used to test for /lib/ld.so.1 and disable shared libraries on
17382 # powerpc, because MkLinux only supported shared libraries with the
17383 # GNU dynamic linker. Since this was broken with cross compilers,
17384 # most powerpc-linux boxes support dynamic linking these days and
17385 # people can always --disable-shared, the test was removed, and we
17386 # assume the GNU/Linux dynamic linker is in use.
17387 dynamic_linker='GNU/Linux ld.so'
17394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17395 soname_spec='${libname}${release}${shared_ext}$major'
17396 shlibpath_var=LD_LIBRARY_PATH
17397 shlibpath_overrides_runpath=no
17398 hardcode_into_libs=yes
17399 dynamic_linker='NetBSD ld.elf_so'
17406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17407 soname_spec='${libname}${release}${shared_ext}$major'
17408 shlibpath_var=LD_LIBRARY_PATH
17409 shlibpath_overrides_runpath=no
17410 hardcode_into_libs=yes
17411 dynamic_linker='GNU ld.so'
17418 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17421 dynamic_linker='NetBSD (a.out) ld.so'
17423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17424 soname_spec='${libname}${release}${shared_ext}$major'
17425 dynamic_linker='NetBSD ld.elf_so'
17427 shlibpath_var=LD_LIBRARY_PATH
17428 shlibpath_overrides_runpath=yes
17429 hardcode_into_libs=yes
17434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17435 shlibpath_var=LD_LIBRARY_PATH
17436 shlibpath_overrides_runpath=yes
17443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17444 soname_spec='${libname}${release}${shared_ext}$major'
17445 shlibpath_var=LD_LIBRARY_PATH
17446 shlibpath_overrides_runpath=yes
17451 sys_lib_dlsearch_path_spec="/usr/lib"
17453 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17455 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17456 *) need_version=no ;;
17458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17460 shlibpath_var=LD_LIBRARY_PATH
17461 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17463 openbsd2.[89] | openbsd2.[89].*)
17464 shlibpath_overrides_runpath=no
17467 shlibpath_overrides_runpath=yes
17471 shlibpath_overrides_runpath=yes
17476 libname_spec='$name'
17479 library_names_spec='$libname${shared_ext} $libname.a'
17480 dynamic_linker='OS/2 ld.exe'
17481 shlibpath_var=LIBPATH
17484 osf3* | osf4* | osf5*)
17488 soname_spec='${libname}${release}${shared_ext}$major'
17489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17490 shlibpath_var=LD_LIBRARY_PATH
17491 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17492 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17500 soname_spec='${libname}${release}${shared_ext}$major'
17501 shlibpath_var=LD_LIBRARY_PATH
17502 shlibpath_overrides_runpath=yes
17503 hardcode_into_libs=yes
17504 # ldd complains unless libraries are executable
17505 postinstall_cmds='chmod +x $lib'
17510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17511 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17512 shlibpath_var=LD_LIBRARY_PATH
17513 shlibpath_overrides_runpath=yes
17514 if test "$with_gnu_ld" = yes; then
17522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17523 soname_spec='${libname}${release}${shared_ext}$major'
17524 shlibpath_var=LD_LIBRARY_PATH
17525 case $host_vendor in
17527 shlibpath_overrides_runpath=no
17529 export_dynamic_flag_spec='${wl}-Blargedynsym'
17530 runpath_var=LD_RUN_PATH
17538 shlibpath_overrides_runpath=no
17539 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17545 if test -d /usr/nec ;then
17547 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17548 soname_spec='$libname${shared_ext}.$major'
17549 shlibpath_var=LD_LIBRARY_PATH
17553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17554 version_type=freebsd-elf
17557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17558 soname_spec='${libname}${release}${shared_ext}$major'
17559 shlibpath_var=LD_LIBRARY_PATH
17560 hardcode_into_libs=yes
17561 if test "$with_gnu_ld" = yes; then
17562 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17563 shlibpath_overrides_runpath=no
17565 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17566 shlibpath_overrides_runpath=yes
17569 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17573 sys_lib_dlsearch_path_spec='/usr/lib'
17578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17579 soname_spec='${libname}${release}${shared_ext}$major'
17580 shlibpath_var=LD_LIBRARY_PATH
17587 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17588 echo "${ECHO_T}$dynamic_linker" >&6
17589 test "$dynamic_linker" = no && can_build_shared=no
17591 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17592 if test "$GCC" = yes; then
17593 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17596 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17597 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17598 hardcode_action_GCJ=
17599 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17600 test -n "$runpath_var_GCJ" || \
17601 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17603 # We can hardcode non-existant directories.
17604 if test "$hardcode_direct_GCJ" != no &&
17605 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17606 # have to relink, otherwise we might link with an installed library
17607 # when we should be linking with a yet-to-be-installed one
17608 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17609 test "$hardcode_minus_L_GCJ" != no; then
17610 # Linking always hardcodes the temporary library directory.
17611 hardcode_action_GCJ=relink
17613 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17614 hardcode_action_GCJ=immediate
17617 # We cannot hardcode anything, or else we can only hardcode existing
17619 hardcode_action_GCJ=unsupported
17621 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17622 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17624 if test "$hardcode_action_GCJ" = relink; then
17625 # Fast installation is not supported
17626 enable_fast_install=no
17627 elif test "$shlibpath_overrides_runpath" = yes ||
17628 test "$enable_shared" = no; then
17629 # Fast installation is not necessary
17630 enable_fast_install=needless
17634 # The else clause should only fire when bootstrapping the
17635 # libtool distribution, otherwise you forgot to ship ltmain.sh
17636 # with your package, and you will get complaints that there are
17637 # no rules to generate ltmain.sh.
17638 if test -f "$ltmain"; then
17639 # See if we are running on zsh, and set the options which allow our commands through
17640 # without removal of \ escapes.
17641 if test -n "${ZSH_VERSION+set}" ; then
17642 setopt NO_GLOB_SUBST
17644 # Now quote all the things that may contain metacharacters while being
17645 # careful not to overquote the AC_SUBSTed values. We take copies of the
17646 # variables and quote the copies for generation of the libtool script.
17647 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17649 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17650 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17651 deplibs_check_method reload_flag reload_cmds need_locks \
17652 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17653 lt_cv_sys_global_symbol_to_c_name_address \
17654 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17655 old_postinstall_cmds old_postuninstall_cmds \
17659 lt_prog_compiler_wl_GCJ \
17660 lt_prog_compiler_pic_GCJ \
17661 lt_prog_compiler_static_GCJ \
17662 lt_prog_compiler_no_builtin_flag_GCJ \
17663 export_dynamic_flag_spec_GCJ \
17664 thread_safe_flag_spec_GCJ \
17665 whole_archive_flag_spec_GCJ \
17666 enable_shared_with_static_runtimes_GCJ \
17667 old_archive_cmds_GCJ \
17668 old_archive_from_new_cmds_GCJ \
17669 predep_objects_GCJ \
17670 postdep_objects_GCJ \
17673 compiler_lib_search_path_GCJ \
17675 archive_expsym_cmds_GCJ \
17676 postinstall_cmds_GCJ \
17677 postuninstall_cmds_GCJ \
17678 old_archive_from_expsyms_cmds_GCJ \
17679 allow_undefined_flag_GCJ \
17680 no_undefined_flag_GCJ \
17681 export_symbols_cmds_GCJ \
17682 hardcode_libdir_flag_spec_GCJ \
17683 hardcode_libdir_flag_spec_ld_GCJ \
17684 hardcode_libdir_separator_GCJ \
17685 hardcode_automatic_GCJ \
17687 module_expsym_cmds_GCJ \
17688 lt_cv_prog_compiler_c_o_GCJ \
17689 exclude_expsyms_GCJ \
17690 include_expsyms_GCJ; do
17693 old_archive_cmds_GCJ | \
17694 old_archive_from_new_cmds_GCJ | \
17695 archive_cmds_GCJ | \
17696 archive_expsym_cmds_GCJ | \
17697 module_cmds_GCJ | \
17698 module_expsym_cmds_GCJ | \
17699 old_archive_from_expsyms_cmds_GCJ | \
17700 export_symbols_cmds_GCJ | \
17701 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17702 postinstall_cmds | postuninstall_cmds | \
17703 old_postinstall_cmds | old_postuninstall_cmds | \
17704 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17705 # Double-quote double-evaled strings.
17706 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17709 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17715 *'\$0 --fallback-echo"')
17716 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17722 cat <<__EOF__ >> "$cfgfile"
17723 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17725 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17727 # Shell to use when invoking shell scripts.
17730 # Whether or not to build shared libraries.
17731 build_libtool_libs=$enable_shared
17733 # Whether or not to build static libraries.
17734 build_old_libs=$enable_static
17736 # Whether or not to add -lc for building shared libraries.
17737 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17739 # Whether or not to disallow shared libs when runtime libs are static
17740 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17742 # Whether or not to optimize for fast installation.
17743 fast_install=$enable_fast_install
17746 host_alias=$host_alias
17750 # The build system.
17751 build_alias=$build_alias
17755 # An echo program that does not interpret backslashes.
17760 AR_FLAGS=$lt_AR_FLAGS
17765 # LTCC compiler flags.
17766 LTCFLAGS=$lt_LTCFLAGS
17768 # A language-specific compiler.
17769 CC=$lt_compiler_GCJ
17771 # Is the compiler the GNU C compiler?
17777 # The linker used to build libraries.
17780 # Whether we need hard or soft links.
17783 # A BSD-compatible nm program.
17786 # A symbol stripping program
17789 # Used to examine libraries when file_magic_cmd begins "file"
17790 MAGIC_CMD=$MAGIC_CMD
17792 # Used on cygwin: DLL creation program.
17795 # Used on cygwin: object dumper.
17798 # Used on cygwin: assembler.
17801 # The name of the directory that contains temporary libtool files.
17804 # How to create reloadable object files.
17805 reload_flag=$lt_reload_flag
17806 reload_cmds=$lt_reload_cmds
17808 # How to pass a linker flag through the compiler.
17809 wl=$lt_lt_prog_compiler_wl_GCJ
17811 # Object file suffix (normally "o").
17812 objext="$ac_objext"
17814 # Old archive suffix (normally "a").
17817 # Shared library suffix (normally ".so").
17818 shrext_cmds='$shrext_cmds'
17820 # Executable file suffix (normally "").
17823 # Additional compiler flags for building library objects.
17824 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17827 # What is the maximum length of a command?
17828 max_cmd_len=$lt_cv_sys_max_cmd_len
17830 # Does compiler simultaneously support -c and -o options?
17831 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17833 # Must we lock files when doing compilation?
17834 need_locks=$lt_need_locks
17836 # Do we need the lib prefix for modules?
17837 need_lib_prefix=$need_lib_prefix
17839 # Do we need a version for libraries?
17840 need_version=$need_version
17842 # Whether dlopen is supported.
17843 dlopen_support=$enable_dlopen
17845 # Whether dlopen of programs is supported.
17846 dlopen_self=$enable_dlopen_self
17848 # Whether dlopen of statically linked programs is supported.
17849 dlopen_self_static=$enable_dlopen_self_static
17851 # Compiler flag to prevent dynamic linking.
17852 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17854 # Compiler flag to turn off builtin functions.
17855 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17857 # Compiler flag to allow reflexive dlopens.
17858 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17860 # Compiler flag to generate shared objects directly from archives.
17861 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17863 # Compiler flag to generate thread-safe objects.
17864 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17866 # Library versioning type.
17867 version_type=$version_type
17869 # Format of library name prefix.
17870 libname_spec=$lt_libname_spec
17872 # List of archive names. First name is the real one, the rest are links.
17873 # The last name is the one that the linker finds with -lNAME.
17874 library_names_spec=$lt_library_names_spec
17876 # The coded name of the library, if different from the real name.
17877 soname_spec=$lt_soname_spec
17879 # Commands used to build and install an old-style archive.
17881 old_archive_cmds=$lt_old_archive_cmds_GCJ
17882 old_postinstall_cmds=$lt_old_postinstall_cmds
17883 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17885 # Create an old-style archive from a shared archive.
17886 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17888 # Create a temporary old-style archive to link instead of a shared archive.
17889 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17891 # Commands used to build and install a shared archive.
17892 archive_cmds=$lt_archive_cmds_GCJ
17893 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17894 postinstall_cmds=$lt_postinstall_cmds
17895 postuninstall_cmds=$lt_postuninstall_cmds
17897 # Commands used to build a loadable module (assumed same as above if empty)
17898 module_cmds=$lt_module_cmds_GCJ
17899 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17901 # Commands to strip libraries.
17902 old_striplib=$lt_old_striplib
17903 striplib=$lt_striplib
17905 # Dependencies to place before the objects being linked to create a
17907 predep_objects=$lt_predep_objects_GCJ
17909 # Dependencies to place after the objects being linked to create a
17911 postdep_objects=$lt_postdep_objects_GCJ
17913 # Dependencies to place before the objects being linked to create a
17915 predeps=$lt_predeps_GCJ
17917 # Dependencies to place after the objects being linked to create a
17919 postdeps=$lt_postdeps_GCJ
17921 # The library search path used internally by the compiler when linking
17922 # a shared library.
17923 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17925 # Method to check whether dependent libraries are shared objects.
17926 deplibs_check_method=$lt_deplibs_check_method
17928 # Command to use when deplibs_check_method == file_magic.
17929 file_magic_cmd=$lt_file_magic_cmd
17931 # Flag that allows shared libraries with undefined symbols to be built.
17932 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17934 # Flag that forces no undefined symbols.
17935 no_undefined_flag=$lt_no_undefined_flag_GCJ
17937 # Commands used to finish a libtool library installation in a directory.
17938 finish_cmds=$lt_finish_cmds
17940 # Same as above, but a single script fragment to be evaled but not shown.
17941 finish_eval=$lt_finish_eval
17943 # Take the output of nm and produce a listing of raw symbols and C names.
17944 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17946 # Transform the output of nm in a proper C declaration
17947 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17949 # Transform the output of nm in a C name address pair
17950 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17952 # This is the shared library runtime path variable.
17953 runpath_var=$runpath_var
17955 # This is the shared library path variable.
17956 shlibpath_var=$shlibpath_var
17958 # Is shlibpath searched before the hard-coded library search path?
17959 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17961 # How to hardcode a shared library path into an executable.
17962 hardcode_action=$hardcode_action_GCJ
17964 # Whether we should hardcode library paths into libraries.
17965 hardcode_into_libs=$hardcode_into_libs
17967 # Flag to hardcode \$libdir into a binary during linking.
17968 # This must work even if \$libdir does not exist.
17969 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17971 # If ld is used when linking, flag to hardcode \$libdir into
17972 # a binary during linking. This must work even if \$libdir does
17974 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17976 # Whether we need a single -rpath flag with a separated argument.
17977 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17979 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17980 # resulting binary.
17981 hardcode_direct=$hardcode_direct_GCJ
17983 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17984 # resulting binary.
17985 hardcode_minus_L=$hardcode_minus_L_GCJ
17987 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17988 # the resulting binary.
17989 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17991 # Set to yes if building a shared library automatically hardcodes DIR into the library
17992 # and all subsequent libraries and executables linked against it.
17993 hardcode_automatic=$hardcode_automatic_GCJ
17995 # Variables whose values should be saved in libtool wrapper scripts and
17996 # restored at relink time.
17997 variables_saved_for_relink="$variables_saved_for_relink"
17999 # Whether libtool must link a program against all its dependency libraries.
18000 link_all_deplibs=$link_all_deplibs_GCJ
18002 # Compile-time system search path for libraries
18003 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18005 # Run-time system search path for libraries
18006 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18008 # Fix the shell variable \$srcfile for the compiler.
18009 fix_srcfile_path="$fix_srcfile_path_GCJ"
18011 # Set to yes if exported symbols are required.
18012 always_export_symbols=$always_export_symbols_GCJ
18014 # The commands to list exported symbols.
18015 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18017 # The commands to extract the exported symbol list from a shared archive.
18018 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18020 # Symbols that should not be listed in the preloaded symbols.
18021 exclude_expsyms=$lt_exclude_expsyms_GCJ
18023 # Symbols that must always be exported.
18024 include_expsyms=$lt_include_expsyms_GCJ
18026 # ### END LIBTOOL TAG CONFIG: $tagname
18032 # If there is no Makefile yet, we rely on a make rule to execute
18033 # `config.status --recheck' to rerun these tests and create the
18034 # libtool script then.
18035 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18036 if test -f "$ltmain_in"; then
18037 test -f Makefile && make "$ltmain"
18043 ac_cpp='$CPP $CPPFLAGS'
18044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18059 # Source file extension for RC test sources.
18062 # Object file extension for compiled RC test sources.
18066 # Code to be used in simple compile tests
18067 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18069 # Code to be used in simple link tests
18070 lt_simple_link_test_code="$lt_simple_compile_test_code"
18072 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18074 # If no C compiler was specified, use CC.
18077 # If no C compiler flags were specified, use CFLAGS.
18078 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18080 # Allow CC to be a program name with arguments.
18084 # save warnings/boilerplate of simple test code
18085 ac_outfile=conftest.$ac_objext
18086 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18087 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18088 _lt_compiler_boilerplate=`cat conftest.err`
18091 ac_outfile=conftest.$ac_objext
18092 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18093 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18094 _lt_linker_boilerplate=`cat conftest.err`
18098 # Allow CC to be a program name with arguments.
18103 for cc_temp in $compiler""; do
18105 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18106 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18111 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18113 lt_cv_prog_compiler_c_o_RC=yes
18115 # The else clause should only fire when bootstrapping the
18116 # libtool distribution, otherwise you forgot to ship ltmain.sh
18117 # with your package, and you will get complaints that there are
18118 # no rules to generate ltmain.sh.
18119 if test -f "$ltmain"; then
18120 # See if we are running on zsh, and set the options which allow our commands through
18121 # without removal of \ escapes.
18122 if test -n "${ZSH_VERSION+set}" ; then
18123 setopt NO_GLOB_SUBST
18125 # Now quote all the things that may contain metacharacters while being
18126 # careful not to overquote the AC_SUBSTed values. We take copies of the
18127 # variables and quote the copies for generation of the libtool script.
18128 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18130 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18131 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18132 deplibs_check_method reload_flag reload_cmds need_locks \
18133 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18134 lt_cv_sys_global_symbol_to_c_name_address \
18135 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18136 old_postinstall_cmds old_postuninstall_cmds \
18140 lt_prog_compiler_wl_RC \
18141 lt_prog_compiler_pic_RC \
18142 lt_prog_compiler_static_RC \
18143 lt_prog_compiler_no_builtin_flag_RC \
18144 export_dynamic_flag_spec_RC \
18145 thread_safe_flag_spec_RC \
18146 whole_archive_flag_spec_RC \
18147 enable_shared_with_static_runtimes_RC \
18148 old_archive_cmds_RC \
18149 old_archive_from_new_cmds_RC \
18150 predep_objects_RC \
18151 postdep_objects_RC \
18154 compiler_lib_search_path_RC \
18156 archive_expsym_cmds_RC \
18157 postinstall_cmds_RC \
18158 postuninstall_cmds_RC \
18159 old_archive_from_expsyms_cmds_RC \
18160 allow_undefined_flag_RC \
18161 no_undefined_flag_RC \
18162 export_symbols_cmds_RC \
18163 hardcode_libdir_flag_spec_RC \
18164 hardcode_libdir_flag_spec_ld_RC \
18165 hardcode_libdir_separator_RC \
18166 hardcode_automatic_RC \
18168 module_expsym_cmds_RC \
18169 lt_cv_prog_compiler_c_o_RC \
18170 exclude_expsyms_RC \
18171 include_expsyms_RC; do
18174 old_archive_cmds_RC | \
18175 old_archive_from_new_cmds_RC | \
18176 archive_cmds_RC | \
18177 archive_expsym_cmds_RC | \
18179 module_expsym_cmds_RC | \
18180 old_archive_from_expsyms_cmds_RC | \
18181 export_symbols_cmds_RC | \
18182 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18183 postinstall_cmds | postuninstall_cmds | \
18184 old_postinstall_cmds | old_postuninstall_cmds | \
18185 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18186 # Double-quote double-evaled strings.
18187 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18190 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18196 *'\$0 --fallback-echo"')
18197 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18203 cat <<__EOF__ >> "$cfgfile"
18204 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18206 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18208 # Shell to use when invoking shell scripts.
18211 # Whether or not to build shared libraries.
18212 build_libtool_libs=$enable_shared
18214 # Whether or not to build static libraries.
18215 build_old_libs=$enable_static
18217 # Whether or not to add -lc for building shared libraries.
18218 build_libtool_need_lc=$archive_cmds_need_lc_RC
18220 # Whether or not to disallow shared libs when runtime libs are static
18221 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18223 # Whether or not to optimize for fast installation.
18224 fast_install=$enable_fast_install
18227 host_alias=$host_alias
18231 # The build system.
18232 build_alias=$build_alias
18236 # An echo program that does not interpret backslashes.
18241 AR_FLAGS=$lt_AR_FLAGS
18246 # LTCC compiler flags.
18247 LTCFLAGS=$lt_LTCFLAGS
18249 # A language-specific compiler.
18252 # Is the compiler the GNU C compiler?
18258 # The linker used to build libraries.
18261 # Whether we need hard or soft links.
18264 # A BSD-compatible nm program.
18267 # A symbol stripping program
18270 # Used to examine libraries when file_magic_cmd begins "file"
18271 MAGIC_CMD=$MAGIC_CMD
18273 # Used on cygwin: DLL creation program.
18276 # Used on cygwin: object dumper.
18279 # Used on cygwin: assembler.
18282 # The name of the directory that contains temporary libtool files.
18285 # How to create reloadable object files.
18286 reload_flag=$lt_reload_flag
18287 reload_cmds=$lt_reload_cmds
18289 # How to pass a linker flag through the compiler.
18290 wl=$lt_lt_prog_compiler_wl_RC
18292 # Object file suffix (normally "o").
18293 objext="$ac_objext"
18295 # Old archive suffix (normally "a").
18298 # Shared library suffix (normally ".so").
18299 shrext_cmds='$shrext_cmds'
18301 # Executable file suffix (normally "").
18304 # Additional compiler flags for building library objects.
18305 pic_flag=$lt_lt_prog_compiler_pic_RC
18308 # What is the maximum length of a command?
18309 max_cmd_len=$lt_cv_sys_max_cmd_len
18311 # Does compiler simultaneously support -c and -o options?
18312 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18314 # Must we lock files when doing compilation?
18315 need_locks=$lt_need_locks
18317 # Do we need the lib prefix for modules?
18318 need_lib_prefix=$need_lib_prefix
18320 # Do we need a version for libraries?
18321 need_version=$need_version
18323 # Whether dlopen is supported.
18324 dlopen_support=$enable_dlopen
18326 # Whether dlopen of programs is supported.
18327 dlopen_self=$enable_dlopen_self
18329 # Whether dlopen of statically linked programs is supported.
18330 dlopen_self_static=$enable_dlopen_self_static
18332 # Compiler flag to prevent dynamic linking.
18333 link_static_flag=$lt_lt_prog_compiler_static_RC
18335 # Compiler flag to turn off builtin functions.
18336 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18338 # Compiler flag to allow reflexive dlopens.
18339 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18341 # Compiler flag to generate shared objects directly from archives.
18342 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18344 # Compiler flag to generate thread-safe objects.
18345 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18347 # Library versioning type.
18348 version_type=$version_type
18350 # Format of library name prefix.
18351 libname_spec=$lt_libname_spec
18353 # List of archive names. First name is the real one, the rest are links.
18354 # The last name is the one that the linker finds with -lNAME.
18355 library_names_spec=$lt_library_names_spec
18357 # The coded name of the library, if different from the real name.
18358 soname_spec=$lt_soname_spec
18360 # Commands used to build and install an old-style archive.
18362 old_archive_cmds=$lt_old_archive_cmds_RC
18363 old_postinstall_cmds=$lt_old_postinstall_cmds
18364 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18366 # Create an old-style archive from a shared archive.
18367 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18369 # Create a temporary old-style archive to link instead of a shared archive.
18370 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18372 # Commands used to build and install a shared archive.
18373 archive_cmds=$lt_archive_cmds_RC
18374 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18375 postinstall_cmds=$lt_postinstall_cmds
18376 postuninstall_cmds=$lt_postuninstall_cmds
18378 # Commands used to build a loadable module (assumed same as above if empty)
18379 module_cmds=$lt_module_cmds_RC
18380 module_expsym_cmds=$lt_module_expsym_cmds_RC
18382 # Commands to strip libraries.
18383 old_striplib=$lt_old_striplib
18384 striplib=$lt_striplib
18386 # Dependencies to place before the objects being linked to create a
18388 predep_objects=$lt_predep_objects_RC
18390 # Dependencies to place after the objects being linked to create a
18392 postdep_objects=$lt_postdep_objects_RC
18394 # Dependencies to place before the objects being linked to create a
18396 predeps=$lt_predeps_RC
18398 # Dependencies to place after the objects being linked to create a
18400 postdeps=$lt_postdeps_RC
18402 # The library search path used internally by the compiler when linking
18403 # a shared library.
18404 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18406 # Method to check whether dependent libraries are shared objects.
18407 deplibs_check_method=$lt_deplibs_check_method
18409 # Command to use when deplibs_check_method == file_magic.
18410 file_magic_cmd=$lt_file_magic_cmd
18412 # Flag that allows shared libraries with undefined symbols to be built.
18413 allow_undefined_flag=$lt_allow_undefined_flag_RC
18415 # Flag that forces no undefined symbols.
18416 no_undefined_flag=$lt_no_undefined_flag_RC
18418 # Commands used to finish a libtool library installation in a directory.
18419 finish_cmds=$lt_finish_cmds
18421 # Same as above, but a single script fragment to be evaled but not shown.
18422 finish_eval=$lt_finish_eval
18424 # Take the output of nm and produce a listing of raw symbols and C names.
18425 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18427 # Transform the output of nm in a proper C declaration
18428 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18430 # Transform the output of nm in a C name address pair
18431 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18433 # This is the shared library runtime path variable.
18434 runpath_var=$runpath_var
18436 # This is the shared library path variable.
18437 shlibpath_var=$shlibpath_var
18439 # Is shlibpath searched before the hard-coded library search path?
18440 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18442 # How to hardcode a shared library path into an executable.
18443 hardcode_action=$hardcode_action_RC
18445 # Whether we should hardcode library paths into libraries.
18446 hardcode_into_libs=$hardcode_into_libs
18448 # Flag to hardcode \$libdir into a binary during linking.
18449 # This must work even if \$libdir does not exist.
18450 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18452 # If ld is used when linking, flag to hardcode \$libdir into
18453 # a binary during linking. This must work even if \$libdir does
18455 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18457 # Whether we need a single -rpath flag with a separated argument.
18458 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18460 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18461 # resulting binary.
18462 hardcode_direct=$hardcode_direct_RC
18464 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18465 # resulting binary.
18466 hardcode_minus_L=$hardcode_minus_L_RC
18468 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18469 # the resulting binary.
18470 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18472 # Set to yes if building a shared library automatically hardcodes DIR into the library
18473 # and all subsequent libraries and executables linked against it.
18474 hardcode_automatic=$hardcode_automatic_RC
18476 # Variables whose values should be saved in libtool wrapper scripts and
18477 # restored at relink time.
18478 variables_saved_for_relink="$variables_saved_for_relink"
18480 # Whether libtool must link a program against all its dependency libraries.
18481 link_all_deplibs=$link_all_deplibs_RC
18483 # Compile-time system search path for libraries
18484 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18486 # Run-time system search path for libraries
18487 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18489 # Fix the shell variable \$srcfile for the compiler.
18490 fix_srcfile_path="$fix_srcfile_path_RC"
18492 # Set to yes if exported symbols are required.
18493 always_export_symbols=$always_export_symbols_RC
18495 # The commands to list exported symbols.
18496 export_symbols_cmds=$lt_export_symbols_cmds_RC
18498 # The commands to extract the exported symbol list from a shared archive.
18499 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18501 # Symbols that should not be listed in the preloaded symbols.
18502 exclude_expsyms=$lt_exclude_expsyms_RC
18504 # Symbols that must always be exported.
18505 include_expsyms=$lt_include_expsyms_RC
18507 # ### END LIBTOOL TAG CONFIG: $tagname
18513 # If there is no Makefile yet, we rely on a make rule to execute
18514 # `config.status --recheck' to rerun these tests and create the
18515 # libtool script then.
18516 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18517 if test -f "$ltmain_in"; then
18518 test -f Makefile && make "$ltmain"
18524 ac_cpp='$CPP $CPPFLAGS'
18525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18534 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18535 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18536 { (exit 1); exit 1; }; }
18540 # Append the new tag name to the list of available tags.
18541 if test -n "$tagname" ; then
18542 available_tags="$available_tags $tagname"
18548 # Now substitute the updated list of available tags.
18549 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18550 mv "${ofile}T" "$ofile"
18554 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18555 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18556 { (exit 1); exit 1; }; }
18562 # This can be used to rebuild libtool when needed
18563 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18565 # Always use our own libtool.
18566 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18568 # Prevent multiple expansion
18591 # Check whether some low-level functions/files are available
18592 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18593 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18594 if test "${ac_cv_header_stdc+set}" = set; then
18595 echo $ECHO_N "(cached) $ECHO_C" >&6
18597 cat >conftest.$ac_ext <<_ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18603 #include <stdlib.h>
18604 #include <stdarg.h>
18605 #include <string.h>
18616 rm -f conftest.$ac_objext
18617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18618 (eval $ac_compile) 2>conftest.er1
18620 grep -v '^ *+' conftest.er1 >conftest.err
18622 cat conftest.err >&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } &&
18625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; } &&
18631 { ac_try='test -s conftest.$ac_objext'
18632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18633 (eval $ac_try) 2>&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; }; then
18637 ac_cv_header_stdc=yes
18639 echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18642 ac_cv_header_stdc=no
18644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18646 if test $ac_cv_header_stdc = yes; then
18647 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18648 cat >conftest.$ac_ext <<_ACEOF
18651 cat confdefs.h >>conftest.$ac_ext
18652 cat >>conftest.$ac_ext <<_ACEOF
18653 /* end confdefs.h. */
18654 #include <string.h>
18657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18658 $EGREP "memchr" >/dev/null 2>&1; then
18661 ac_cv_header_stdc=no
18667 if test $ac_cv_header_stdc = yes; then
18668 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18669 cat >conftest.$ac_ext <<_ACEOF
18672 cat confdefs.h >>conftest.$ac_ext
18673 cat >>conftest.$ac_ext <<_ACEOF
18674 /* end confdefs.h. */
18675 #include <stdlib.h>
18678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18679 $EGREP "free" >/dev/null 2>&1; then
18682 ac_cv_header_stdc=no
18688 if test $ac_cv_header_stdc = yes; then
18689 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18690 if test "$cross_compiling" = yes; then
18693 cat >conftest.$ac_ext <<_ACEOF
18696 cat confdefs.h >>conftest.$ac_ext
18697 cat >>conftest.$ac_ext <<_ACEOF
18698 /* end confdefs.h. */
18700 #if ((' ' & 0x0FF) == 0x020)
18701 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18702 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18704 # define ISLOWER(c) \
18705 (('a' <= (c) && (c) <= 'i') \
18706 || ('j' <= (c) && (c) <= 'r') \
18707 || ('s' <= (c) && (c) <= 'z'))
18708 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18716 for (i = 0; i < 256; i++)
18717 if (XOR (islower (i), ISLOWER (i))
18718 || toupper (i) != TOUPPER (i))
18723 rm -f conftest$ac_exeext
18724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18725 (eval $ac_link) 2>&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18730 (eval $ac_try) 2>&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; }; then
18736 echo "$as_me: program exited with status $ac_status" >&5
18737 echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18740 ( exit $ac_status )
18741 ac_cv_header_stdc=no
18743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18747 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18748 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18749 if test $ac_cv_header_stdc = yes; then
18751 cat >>confdefs.h <<\_ACEOF
18752 #define STDC_HEADERS 1
18758 # These are tested for by AC_HEADER_STDC, but I check again to set the var
18759 if test "${ac_cv_header_stdint_h+set}" = set; then
18760 echo "$as_me:$LINENO: checking for stdint.h" >&5
18761 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
18762 if test "${ac_cv_header_stdint_h+set}" = set; then
18763 echo $ECHO_N "(cached) $ECHO_C" >&6
18765 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
18766 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
18768 # Is the header compilable?
18769 echo "$as_me:$LINENO: checking stdint.h usability" >&5
18770 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
18771 cat >conftest.$ac_ext <<_ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h. */
18777 $ac_includes_default
18778 #include <stdint.h>
18780 rm -f conftest.$ac_objext
18781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18782 (eval $ac_compile) 2>conftest.er1
18784 grep -v '^ *+' conftest.er1 >conftest.err
18786 cat conftest.err >&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } &&
18789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18791 (eval $ac_try) 2>&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; } &&
18795 { ac_try='test -s conftest.$ac_objext'
18796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18797 (eval $ac_try) 2>&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
18801 ac_header_compiler=yes
18803 echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18806 ac_header_compiler=no
18808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18809 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18810 echo "${ECHO_T}$ac_header_compiler" >&6
18812 # Is the header present?
18813 echo "$as_me:$LINENO: checking stdint.h presence" >&5
18814 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
18815 cat >conftest.$ac_ext <<_ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18821 #include <stdint.h>
18823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18826 grep -v '^ *+' conftest.er1 >conftest.err
18828 cat conftest.err >&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); } >/dev/null; then
18831 if test -s conftest.err; then
18832 ac_cpp_err=$ac_c_preproc_warn_flag
18833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18840 if test -z "$ac_cpp_err"; then
18841 ac_header_preproc=yes
18843 echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18846 ac_header_preproc=no
18848 rm -f conftest.err conftest.$ac_ext
18849 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18850 echo "${ECHO_T}$ac_header_preproc" >&6
18852 # So? What about this header?
18853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18855 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
18856 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18857 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
18858 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
18859 ac_header_preproc=yes
18862 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
18863 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
18864 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
18865 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
18866 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
18867 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
18868 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
18869 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
18870 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
18871 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
18872 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
18873 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
18876 ## ------------------------------------ ##
18877 ## Report this to opensource@google.com ##
18878 ## ------------------------------------ ##
18881 sed "s/^/$as_me: WARNING: /" >&2
18884 echo "$as_me:$LINENO: checking for stdint.h" >&5
18885 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
18886 if test "${ac_cv_header_stdint_h+set}" = set; then
18887 echo $ECHO_N "(cached) $ECHO_C" >&6
18889 ac_cv_header_stdint_h=$ac_header_preproc
18891 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
18892 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
18895 if test $ac_cv_header_stdint_h = yes; then
18896 ac_cv_have_stdint_h=1
18898 ac_cv_have_stdint_h=0
18902 if test "${ac_cv_header_sys_types_h+set}" = set; then
18903 echo "$as_me:$LINENO: checking for sys/types.h" >&5
18904 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
18905 if test "${ac_cv_header_sys_types_h+set}" = set; then
18906 echo $ECHO_N "(cached) $ECHO_C" >&6
18908 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
18909 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
18911 # Is the header compilable?
18912 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
18913 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
18914 cat >conftest.$ac_ext <<_ACEOF
18917 cat confdefs.h >>conftest.$ac_ext
18918 cat >>conftest.$ac_ext <<_ACEOF
18919 /* end confdefs.h. */
18920 $ac_includes_default
18921 #include <sys/types.h>
18923 rm -f conftest.$ac_objext
18924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18925 (eval $ac_compile) 2>conftest.er1
18927 grep -v '^ *+' conftest.er1 >conftest.err
18929 cat conftest.err >&5
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); } &&
18932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934 (eval $ac_try) 2>&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); }; } &&
18938 { ac_try='test -s conftest.$ac_objext'
18939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940 (eval $ac_try) 2>&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); }; }; then
18944 ac_header_compiler=yes
18946 echo "$as_me: failed program was:" >&5
18947 sed 's/^/| /' conftest.$ac_ext >&5
18949 ac_header_compiler=no
18951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18953 echo "${ECHO_T}$ac_header_compiler" >&6
18955 # Is the header present?
18956 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
18957 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
18958 cat >conftest.$ac_ext <<_ACEOF
18961 cat confdefs.h >>conftest.$ac_ext
18962 cat >>conftest.$ac_ext <<_ACEOF
18963 /* end confdefs.h. */
18964 #include <sys/types.h>
18966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18969 grep -v '^ *+' conftest.er1 >conftest.err
18971 cat conftest.err >&5
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); } >/dev/null; then
18974 if test -s conftest.err; then
18975 ac_cpp_err=$ac_c_preproc_warn_flag
18976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18983 if test -z "$ac_cpp_err"; then
18984 ac_header_preproc=yes
18986 echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18989 ac_header_preproc=no
18991 rm -f conftest.err conftest.$ac_ext
18992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18993 echo "${ECHO_T}$ac_header_preproc" >&6
18995 # So? What about this header?
18996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18998 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
18999 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19000 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19001 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19002 ac_header_preproc=yes
19005 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19006 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19007 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19008 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19009 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19010 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19011 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
19012 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
19013 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19014 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19015 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19016 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
19019 ## ------------------------------------ ##
19020 ## Report this to opensource@google.com ##
19021 ## ------------------------------------ ##
19024 sed "s/^/$as_me: WARNING: /" >&2
19027 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19028 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19029 if test "${ac_cv_header_sys_types_h+set}" = set; then
19030 echo $ECHO_N "(cached) $ECHO_C" >&6
19032 ac_cv_header_sys_types_h=$ac_header_preproc
19034 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19035 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19038 if test $ac_cv_header_sys_types_h = yes; then
19039 ac_cv_have_systypes_h=1
19041 ac_cv_have_systypes_h=0
19045 if test "${ac_cv_header_inttypes_h+set}" = set; then
19046 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19047 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19048 if test "${ac_cv_header_inttypes_h+set}" = set; then
19049 echo $ECHO_N "(cached) $ECHO_C" >&6
19051 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19052 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19054 # Is the header compilable?
19055 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19056 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19057 cat >conftest.$ac_ext <<_ACEOF
19060 cat confdefs.h >>conftest.$ac_ext
19061 cat >>conftest.$ac_ext <<_ACEOF
19062 /* end confdefs.h. */
19063 $ac_includes_default
19064 #include <inttypes.h>
19066 rm -f conftest.$ac_objext
19067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19068 (eval $ac_compile) 2>conftest.er1
19070 grep -v '^ *+' conftest.er1 >conftest.err
19072 cat conftest.err >&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } &&
19075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077 (eval $ac_try) 2>&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; } &&
19081 { ac_try='test -s conftest.$ac_objext'
19082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19083 (eval $ac_try) 2>&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); }; }; then
19087 ac_header_compiler=yes
19089 echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19092 ac_header_compiler=no
19094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19096 echo "${ECHO_T}$ac_header_compiler" >&6
19098 # Is the header present?
19099 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19100 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19101 cat >conftest.$ac_ext <<_ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19107 #include <inttypes.h>
19109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19112 grep -v '^ *+' conftest.er1 >conftest.err
19114 cat conftest.err >&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } >/dev/null; then
19117 if test -s conftest.err; then
19118 ac_cpp_err=$ac_c_preproc_warn_flag
19119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19126 if test -z "$ac_cpp_err"; then
19127 ac_header_preproc=yes
19129 echo "$as_me: failed program was:" >&5
19130 sed 's/^/| /' conftest.$ac_ext >&5
19132 ac_header_preproc=no
19134 rm -f conftest.err conftest.$ac_ext
19135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19136 echo "${ECHO_T}$ac_header_preproc" >&6
19138 # So? What about this header?
19139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19141 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19142 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19143 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
19144 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
19145 ac_header_preproc=yes
19148 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19149 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19150 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19151 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19152 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
19153 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
19154 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
19155 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
19156 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19157 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19158 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
19159 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
19162 ## ------------------------------------ ##
19163 ## Report this to opensource@google.com ##
19164 ## ------------------------------------ ##
19167 sed "s/^/$as_me: WARNING: /" >&2
19170 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19171 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19172 if test "${ac_cv_header_inttypes_h+set}" = set; then
19173 echo $ECHO_N "(cached) $ECHO_C" >&6
19175 ac_cv_header_inttypes_h=$ac_header_preproc
19177 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19178 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19181 if test $ac_cv_header_inttypes_h = yes; then
19182 ac_cv_have_inttypes_h=1
19184 ac_cv_have_inttypes_h=0
19189 for ac_header in syscall.h
19191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19193 echo "$as_me:$LINENO: checking for $ac_header" >&5
19194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19196 echo $ECHO_N "(cached) $ECHO_C" >&6
19198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19201 # Is the header compilable?
19202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19204 cat >conftest.$ac_ext <<_ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19210 $ac_includes_default
19211 #include <$ac_header>
19213 rm -f conftest.$ac_objext
19214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19215 (eval $ac_compile) 2>conftest.er1
19217 grep -v '^ *+' conftest.er1 >conftest.err
19219 cat conftest.err >&5
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); } &&
19222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224 (eval $ac_try) 2>&5
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; } &&
19228 { ac_try='test -s conftest.$ac_objext'
19229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19230 (eval $ac_try) 2>&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); }; }; then
19234 ac_header_compiler=yes
19236 echo "$as_me: failed program was:" >&5
19237 sed 's/^/| /' conftest.$ac_ext >&5
19239 ac_header_compiler=no
19241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19243 echo "${ECHO_T}$ac_header_compiler" >&6
19245 # Is the header present?
19246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19248 cat >conftest.$ac_ext <<_ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h. */
19254 #include <$ac_header>
19256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19259 grep -v '^ *+' conftest.er1 >conftest.err
19261 cat conftest.err >&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } >/dev/null; then
19264 if test -s conftest.err; then
19265 ac_cpp_err=$ac_c_preproc_warn_flag
19266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19273 if test -z "$ac_cpp_err"; then
19274 ac_header_preproc=yes
19276 echo "$as_me: failed program was:" >&5
19277 sed 's/^/| /' conftest.$ac_ext >&5
19279 ac_header_preproc=no
19281 rm -f conftest.err conftest.$ac_ext
19282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19283 echo "${ECHO_T}$ac_header_preproc" >&6
19285 # So? What about this header?
19286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19292 ac_header_preproc=yes
19295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19309 ## ------------------------------------ ##
19310 ## Report this to opensource@google.com ##
19311 ## ------------------------------------ ##
19314 sed "s/^/$as_me: WARNING: /" >&2
19317 echo "$as_me:$LINENO: checking for $ac_header" >&5
19318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19320 echo $ECHO_N "(cached) $ECHO_C" >&6
19322 eval "$as_ac_Header=\$ac_header_preproc"
19324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19329 cat >>confdefs.h <<_ACEOF
19330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19338 for ac_header in sys/syscall.h
19340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19342 echo "$as_me:$LINENO: checking for $ac_header" >&5
19343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19350 # Is the header compilable?
19351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19353 cat >conftest.$ac_ext <<_ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h. */
19359 $ac_includes_default
19360 #include <$ac_header>
19362 rm -f conftest.$ac_objext
19363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19364 (eval $ac_compile) 2>conftest.er1
19366 grep -v '^ *+' conftest.er1 >conftest.err
19368 cat conftest.err >&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); } &&
19371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373 (eval $ac_try) 2>&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; } &&
19377 { ac_try='test -s conftest.$ac_objext'
19378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; }; then
19383 ac_header_compiler=yes
19385 echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19388 ac_header_compiler=no
19390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19392 echo "${ECHO_T}$ac_header_compiler" >&6
19394 # Is the header present?
19395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19397 cat >conftest.$ac_ext <<_ACEOF
19400 cat confdefs.h >>conftest.$ac_ext
19401 cat >>conftest.$ac_ext <<_ACEOF
19402 /* end confdefs.h. */
19403 #include <$ac_header>
19405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19408 grep -v '^ *+' conftest.er1 >conftest.err
19410 cat conftest.err >&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } >/dev/null; then
19413 if test -s conftest.err; then
19414 ac_cpp_err=$ac_c_preproc_warn_flag
19415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19422 if test -z "$ac_cpp_err"; then
19423 ac_header_preproc=yes
19425 echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19428 ac_header_preproc=no
19430 rm -f conftest.err conftest.$ac_ext
19431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19432 echo "${ECHO_T}$ac_header_preproc" >&6
19434 # So? What about this header?
19435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19441 ac_header_preproc=yes
19444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19458 ## ------------------------------------ ##
19459 ## Report this to opensource@google.com ##
19460 ## ------------------------------------ ##
19463 sed "s/^/$as_me: WARNING: /" >&2
19466 echo "$as_me:$LINENO: checking for $ac_header" >&5
19467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19469 echo $ECHO_N "(cached) $ECHO_C" >&6
19471 eval "$as_ac_Header=\$ac_header_preproc"
19473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19478 cat >>confdefs.h <<_ACEOF
19479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19486 # For backtrace with glibc.
19487 # TODO(hamaji): Support other platforms using libgcc.
19489 for ac_header in execinfo.h
19491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19493 echo "$as_me:$LINENO: checking for $ac_header" >&5
19494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19496 echo $ECHO_N "(cached) $ECHO_C" >&6
19498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19501 # Is the header compilable?
19502 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19504 cat >conftest.$ac_ext <<_ACEOF
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h. */
19510 $ac_includes_default
19511 #include <$ac_header>
19513 rm -f conftest.$ac_objext
19514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19515 (eval $ac_compile) 2>conftest.er1
19517 grep -v '^ *+' conftest.er1 >conftest.err
19519 cat conftest.err >&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } &&
19522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524 (eval $ac_try) 2>&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; } &&
19528 { ac_try='test -s conftest.$ac_objext'
19529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530 (eval $ac_try) 2>&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; }; then
19534 ac_header_compiler=yes
19536 echo "$as_me: failed program was:" >&5
19537 sed 's/^/| /' conftest.$ac_ext >&5
19539 ac_header_compiler=no
19541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19542 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19543 echo "${ECHO_T}$ac_header_compiler" >&6
19545 # Is the header present?
19546 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19548 cat >conftest.$ac_ext <<_ACEOF
19551 cat confdefs.h >>conftest.$ac_ext
19552 cat >>conftest.$ac_ext <<_ACEOF
19553 /* end confdefs.h. */
19554 #include <$ac_header>
19556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19559 grep -v '^ *+' conftest.er1 >conftest.err
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } >/dev/null; then
19564 if test -s conftest.err; then
19565 ac_cpp_err=$ac_c_preproc_warn_flag
19566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19573 if test -z "$ac_cpp_err"; then
19574 ac_header_preproc=yes
19576 echo "$as_me: failed program was:" >&5
19577 sed 's/^/| /' conftest.$ac_ext >&5
19579 ac_header_preproc=no
19581 rm -f conftest.err conftest.$ac_ext
19582 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19583 echo "${ECHO_T}$ac_header_preproc" >&6
19585 # So? What about this header?
19586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19592 ac_header_preproc=yes
19595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19602 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19609 ## ------------------------------------ ##
19610 ## Report this to opensource@google.com ##
19611 ## ------------------------------------ ##
19614 sed "s/^/$as_me: WARNING: /" >&2
19617 echo "$as_me:$LINENO: checking for $ac_header" >&5
19618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 eval "$as_ac_Header=\$ac_header_preproc"
19624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19629 cat >>confdefs.h <<_ACEOF
19630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19638 echo "$as_me:$LINENO: checking for void *" >&5
19639 echo $ECHO_N "checking for void *... $ECHO_C" >&6
19640 if test "${ac_cv_type_void_p+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19643 cat >conftest.$ac_ext <<_ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h. */
19649 $ac_includes_default
19655 if (sizeof (void *))
19661 rm -f conftest.$ac_objext
19662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19663 (eval $ac_compile) 2>conftest.er1
19665 grep -v '^ *+' conftest.er1 >conftest.err
19667 cat conftest.err >&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } &&
19670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672 (eval $ac_try) 2>&5
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); }; } &&
19676 { ac_try='test -s conftest.$ac_objext'
19677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19678 (eval $ac_try) 2>&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); }; }; then
19682 ac_cv_type_void_p=yes
19684 echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19687 ac_cv_type_void_p=no
19689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19691 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
19692 echo "${ECHO_T}$ac_cv_type_void_p" >&6
19694 echo "$as_me:$LINENO: checking size of void *" >&5
19695 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
19696 if test "${ac_cv_sizeof_void_p+set}" = set; then
19697 echo $ECHO_N "(cached) $ECHO_C" >&6
19699 if test "$ac_cv_type_void_p" = yes; then
19700 # The cast to unsigned long works around a bug in the HP C Compiler
19701 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19702 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19703 # This bug is HP SR number 8606223364.
19704 if test "$cross_compiling" = yes; then
19705 # Depending upon the size, compute the lo and hi bounds.
19706 cat >conftest.$ac_ext <<_ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19712 $ac_includes_default
19716 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
19723 rm -f conftest.$ac_objext
19724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19725 (eval $ac_compile) 2>conftest.er1
19727 grep -v '^ *+' conftest.er1 >conftest.err
19729 cat conftest.err >&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } &&
19732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; } &&
19738 { ac_try='test -s conftest.$ac_objext'
19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740 (eval $ac_try) 2>&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; }; then
19746 cat >conftest.$ac_ext <<_ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h. */
19752 $ac_includes_default
19756 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19763 rm -f conftest.$ac_objext
19764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19765 (eval $ac_compile) 2>conftest.er1
19767 grep -v '^ *+' conftest.er1 >conftest.err
19769 cat conftest.err >&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } &&
19772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774 (eval $ac_try) 2>&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; } &&
19778 { ac_try='test -s conftest.$ac_objext'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
19784 ac_hi=$ac_mid; break
19786 echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19789 ac_lo=`expr $ac_mid + 1`
19790 if test $ac_lo -le $ac_mid; then
19794 ac_mid=`expr 2 '*' $ac_mid + 1`
19796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19799 echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19802 cat >conftest.$ac_ext <<_ACEOF
19805 cat confdefs.h >>conftest.$ac_ext
19806 cat >>conftest.$ac_ext <<_ACEOF
19807 /* end confdefs.h. */
19808 $ac_includes_default
19812 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
19819 rm -f conftest.$ac_objext
19820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19821 (eval $ac_compile) 2>conftest.er1
19823 grep -v '^ *+' conftest.er1 >conftest.err
19825 cat conftest.err >&5
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); } &&
19828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19830 (eval $ac_try) 2>&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); }; } &&
19834 { ac_try='test -s conftest.$ac_objext'
19835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836 (eval $ac_try) 2>&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); }; }; then
19842 cat >conftest.$ac_ext <<_ACEOF
19845 cat confdefs.h >>conftest.$ac_ext
19846 cat >>conftest.$ac_ext <<_ACEOF
19847 /* end confdefs.h. */
19848 $ac_includes_default
19852 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
19859 rm -f conftest.$ac_objext
19860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19861 (eval $ac_compile) 2>conftest.er1
19863 grep -v '^ *+' conftest.er1 >conftest.err
19865 cat conftest.err >&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } &&
19868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; } &&
19874 { ac_try='test -s conftest.$ac_objext'
19875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876 (eval $ac_try) 2>&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; }; then
19880 ac_lo=$ac_mid; break
19882 echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19885 ac_hi=`expr '(' $ac_mid ')' - 1`
19886 if test $ac_mid -le $ac_hi; then
19890 ac_mid=`expr 2 '*' $ac_mid`
19892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19895 echo "$as_me: failed program was:" >&5
19896 sed 's/^/| /' conftest.$ac_ext >&5
19900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19903 # Binary search between lo and hi bounds.
19904 while test "x$ac_lo" != "x$ac_hi"; do
19905 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19906 cat >conftest.$ac_ext <<_ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h. */
19912 $ac_includes_default
19916 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19923 rm -f conftest.$ac_objext
19924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19925 (eval $ac_compile) 2>conftest.er1
19927 grep -v '^ *+' conftest.er1 >conftest.err
19929 cat conftest.err >&5
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); } &&
19932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934 (eval $ac_try) 2>&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); }; } &&
19938 { ac_try='test -s conftest.$ac_objext'
19939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940 (eval $ac_try) 2>&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; }; then
19946 echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19949 ac_lo=`expr '(' $ac_mid ')' + 1`
19951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19954 ?*) ac_cv_sizeof_void_p=$ac_lo;;
19955 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19956 See \`config.log' for more details." >&5
19957 echo "$as_me: error: cannot compute sizeof (void *), 77
19958 See \`config.log' for more details." >&2;}
19959 { (exit 1); exit 1; }; } ;;
19962 if test "$cross_compiling" = yes; then
19963 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19964 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19965 { (exit 1); exit 1; }; }
19967 cat >conftest.$ac_ext <<_ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19973 $ac_includes_default
19974 long longval () { return (long) (sizeof (void *)); }
19975 unsigned long ulongval () { return (long) (sizeof (void *)); }
19977 #include <stdlib.h>
19982 FILE *f = fopen ("conftest.val", "w");
19985 if (((long) (sizeof (void *))) < 0)
19987 long i = longval ();
19988 if (i != ((long) (sizeof (void *))))
19990 fprintf (f, "%ld\n", i);
19994 unsigned long i = ulongval ();
19995 if (i != ((long) (sizeof (void *))))
19997 fprintf (f, "%lu\n", i);
19999 exit (ferror (f) || fclose (f) != 0);
20005 rm -f conftest$ac_exeext
20006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20007 (eval $ac_link) 2>&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012 (eval $ac_try) 2>&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; }; then
20016 ac_cv_sizeof_void_p=`cat conftest.val`
20018 echo "$as_me: program exited with status $ac_status" >&5
20019 echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20022 ( exit $ac_status )
20023 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
20024 See \`config.log' for more details." >&5
20025 echo "$as_me: error: cannot compute sizeof (void *), 77
20026 See \`config.log' for more details." >&2;}
20027 { (exit 1); exit 1; }; }
20029 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20034 ac_cv_sizeof_void_p=0
20037 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
20038 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
20039 cat >>confdefs.h <<_ACEOF
20040 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20045 # These are the types I need. We look for them in either stdint.h,
20046 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
20047 echo "$as_me:$LINENO: checking for uint16_t" >&5
20048 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
20049 if test "${ac_cv_type_uint16_t+set}" = set; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20052 cat >conftest.$ac_ext <<_ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h. */
20058 $ac_includes_default
20062 if ((uint16_t *) 0)
20064 if (sizeof (uint16_t))
20070 rm -f conftest.$ac_objext
20071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20072 (eval $ac_compile) 2>conftest.er1
20074 grep -v '^ *+' conftest.er1 >conftest.err
20076 cat conftest.err >&5
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); } &&
20079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081 (eval $ac_try) 2>&5
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); }; } &&
20085 { ac_try='test -s conftest.$ac_objext'
20086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20087 (eval $ac_try) 2>&5
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); }; }; then
20091 ac_cv_type_uint16_t=yes
20093 echo "$as_me: failed program was:" >&5
20094 sed 's/^/| /' conftest.$ac_ext >&5
20096 ac_cv_type_uint16_t=no
20098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20100 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
20101 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
20102 if test $ac_cv_type_uint16_t = yes; then
20103 ac_cv_have_uint16_t=1
20105 ac_cv_have_uint16_t=0
20108 echo "$as_me:$LINENO: checking for u_int16_t" >&5
20109 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
20110 if test "${ac_cv_type_u_int16_t+set}" = set; then
20111 echo $ECHO_N "(cached) $ECHO_C" >&6
20113 cat >conftest.$ac_ext <<_ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h. */
20119 $ac_includes_default
20123 if ((u_int16_t *) 0)
20125 if (sizeof (u_int16_t))
20131 rm -f conftest.$ac_objext
20132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20133 (eval $ac_compile) 2>conftest.er1
20135 grep -v '^ *+' conftest.er1 >conftest.err
20137 cat conftest.err >&5
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); } &&
20140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20142 (eval $ac_try) 2>&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); }; } &&
20146 { ac_try='test -s conftest.$ac_objext'
20147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148 (eval $ac_try) 2>&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; }; then
20152 ac_cv_type_u_int16_t=yes
20154 echo "$as_me: failed program was:" >&5
20155 sed 's/^/| /' conftest.$ac_ext >&5
20157 ac_cv_type_u_int16_t=no
20159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20161 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
20162 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
20163 if test $ac_cv_type_u_int16_t = yes; then
20164 ac_cv_have_u_int16_t=1
20166 ac_cv_have_u_int16_t=0
20169 echo "$as_me:$LINENO: checking for __uint16" >&5
20170 echo $ECHO_N "checking for __uint16... $ECHO_C" >&6
20171 if test "${ac_cv_type___uint16+set}" = set; then
20172 echo $ECHO_N "(cached) $ECHO_C" >&6
20174 cat >conftest.$ac_ext <<_ACEOF
20177 cat confdefs.h >>conftest.$ac_ext
20178 cat >>conftest.$ac_ext <<_ACEOF
20179 /* end confdefs.h. */
20180 $ac_includes_default
20184 if ((__uint16 *) 0)
20186 if (sizeof (__uint16))
20192 rm -f conftest.$ac_objext
20193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20194 (eval $ac_compile) 2>conftest.er1
20196 grep -v '^ *+' conftest.er1 >conftest.err
20198 cat conftest.err >&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } &&
20201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203 (eval $ac_try) 2>&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; } &&
20207 { ac_try='test -s conftest.$ac_objext'
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209 (eval $ac_try) 2>&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
20213 ac_cv_type___uint16=yes
20215 echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20218 ac_cv_type___uint16=no
20220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20222 echo "$as_me:$LINENO: result: $ac_cv_type___uint16" >&5
20223 echo "${ECHO_T}$ac_cv_type___uint16" >&6
20224 if test $ac_cv_type___uint16 = yes; then
20225 ac_cv_have___uint16=1
20227 ac_cv_have___uint16=0
20231 echo "$as_me:$LINENO: checking for sigaltstack" >&5
20232 echo $ECHO_N "checking for sigaltstack... $ECHO_C" >&6
20233 if test "${ac_cv_func_sigaltstack+set}" = set; then
20234 echo $ECHO_N "(cached) $ECHO_C" >&6
20236 cat >conftest.$ac_ext <<_ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20242 /* Define sigaltstack to an innocuous variant, in case <limits.h> declares sigaltstack.
20243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20244 #define sigaltstack innocuous_sigaltstack
20246 /* System header to define __stub macros and hopefully few prototypes,
20247 which can conflict with char sigaltstack (); below.
20248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20249 <limits.h> exists even on freestanding compilers. */
20252 # include <limits.h>
20254 # include <assert.h>
20259 /* Override any gcc2 internal prototype to avoid an error. */
20264 /* We use char because int might match the return type of a gcc2
20265 builtin and then its argument prototype would still apply. */
20266 char sigaltstack ();
20267 /* The GNU C library defines this for functions which it implements
20268 to always fail with ENOSYS. Some functions are actually named
20269 something starting with __ and the normal name is an alias. */
20270 #if defined (__stub_sigaltstack) || defined (__stub___sigaltstack)
20273 char (*f) () = sigaltstack;
20282 return f != sigaltstack;
20287 rm -f conftest.$ac_objext conftest$ac_exeext
20288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20289 (eval $ac_link) 2>conftest.er1
20291 grep -v '^ *+' conftest.er1 >conftest.err
20293 cat conftest.err >&5
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } &&
20296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20298 (eval $ac_try) 2>&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; } &&
20302 { ac_try='test -s conftest$ac_exeext'
20303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304 (eval $ac_try) 2>&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; }; then
20308 ac_cv_func_sigaltstack=yes
20310 echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20313 ac_cv_func_sigaltstack=no
20315 rm -f conftest.err conftest.$ac_objext \
20316 conftest$ac_exeext conftest.$ac_ext
20318 echo "$as_me:$LINENO: result: $ac_cv_func_sigaltstack" >&5
20319 echo "${ECHO_T}$ac_cv_func_sigaltstack" >&6
20320 if test $ac_cv_func_sigaltstack = yes; then
20322 cat >>confdefs.h <<\_ACEOF
20323 #define HAVE_SIGALTSTACK 1
20328 echo "$as_me:$LINENO: checking for dladdr" >&5
20329 echo $ECHO_N "checking for dladdr... $ECHO_C" >&6
20330 if test "${ac_cv_func_dladdr+set}" = set; then
20331 echo $ECHO_N "(cached) $ECHO_C" >&6
20333 cat >conftest.$ac_ext <<_ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h. */
20339 /* Define dladdr to an innocuous variant, in case <limits.h> declares dladdr.
20340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20341 #define dladdr innocuous_dladdr
20343 /* System header to define __stub macros and hopefully few prototypes,
20344 which can conflict with char dladdr (); below.
20345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20346 <limits.h> exists even on freestanding compilers. */
20349 # include <limits.h>
20351 # include <assert.h>
20356 /* Override any gcc2 internal prototype to avoid an error. */
20361 /* We use char because int might match the return type of a gcc2
20362 builtin and then its argument prototype would still apply. */
20364 /* The GNU C library defines this for functions which it implements
20365 to always fail with ENOSYS. Some functions are actually named
20366 something starting with __ and the normal name is an alias. */
20367 #if defined (__stub_dladdr) || defined (__stub___dladdr)
20370 char (*f) () = dladdr;
20379 return f != dladdr;
20384 rm -f conftest.$ac_objext conftest$ac_exeext
20385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20386 (eval $ac_link) 2>conftest.er1
20388 grep -v '^ *+' conftest.er1 >conftest.err
20390 cat conftest.err >&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); } &&
20393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20395 (eval $ac_try) 2>&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); }; } &&
20399 { ac_try='test -s conftest$ac_exeext'
20400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401 (eval $ac_try) 2>&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); }; }; then
20405 ac_cv_func_dladdr=yes
20407 echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20410 ac_cv_func_dladdr=no
20412 rm -f conftest.err conftest.$ac_objext \
20413 conftest$ac_exeext conftest.$ac_ext
20415 echo "$as_me:$LINENO: result: $ac_cv_func_dladdr" >&5
20416 echo "${ECHO_T}$ac_cv_func_dladdr" >&6
20417 if test $ac_cv_func_dladdr = yes; then
20419 cat >>confdefs.h <<\_ACEOF
20420 #define HAVE_DLADDR 1
20427 echo "$as_me:$LINENO: checking for __attribute__" >&5
20428 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
20429 if test "${ac_cv___attribute__+set}" = set; then
20430 echo $ECHO_N "(cached) $ECHO_C" >&6
20433 cat >conftest.$ac_ext <<_ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h. */
20439 #include <stdlib.h>
20440 static void foo(void) __attribute__ ((unused));
20441 void foo(void) { exit(1); }
20450 rm -f conftest.$ac_objext
20451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20452 (eval $ac_compile) 2>conftest.er1
20454 grep -v '^ *+' conftest.er1 >conftest.err
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } &&
20459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461 (eval $ac_try) 2>&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; } &&
20465 { ac_try='test -s conftest.$ac_objext'
20466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467 (eval $ac_try) 2>&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; }; then
20471 ac_cv___attribute__=yes
20473 echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20476 ac_cv___attribute__=no
20479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20482 if test "$ac_cv___attribute__" = "yes"; then
20484 cat >>confdefs.h <<\_ACEOF
20485 #define HAVE___ATTRIBUTE__ 1
20489 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
20490 echo "${ECHO_T}$ac_cv___attribute__" >&6
20492 # We only care about these two attributes.
20493 if test x"$ac_cv___attribute__" = x"yes"; then
20494 ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
20495 ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
20497 ac_cv___attribute___noreturn=
20498 ac_cv___attribute___printf_4_5=
20502 echo "$as_me:$LINENO: checking for __builtin_expect" >&5
20503 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6
20504 if test "${ac_cv___builtin_expect+set}" = set; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20508 cat >conftest.$ac_ext <<_ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20514 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
20523 rm -f conftest.$ac_objext
20524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20525 (eval $ac_compile) 2>conftest.er1
20527 grep -v '^ *+' conftest.er1 >conftest.err
20529 cat conftest.err >&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); } &&
20532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534 (eval $ac_try) 2>&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); }; } &&
20538 { ac_try='test -s conftest.$ac_objext'
20539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20540 (eval $ac_try) 2>&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); }; }; then
20544 ac_cv___builtin_expect=yes
20546 echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20549 ac_cv___builtin_expect=no
20552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20555 if test "$ac_cv___builtin_expect" = "yes"; then
20557 cat >>confdefs.h <<\_ACEOF
20558 #define HAVE___BUILTIN_EXPECT 1
20562 echo "$as_me:$LINENO: result: $ac_cv___builtin_expect" >&5
20563 echo "${ECHO_T}$ac_cv___builtin_expect" >&6
20565 if test x"$ac_cv___builtin_expect" = x"yes"; then
20566 ac_cv_have___builtin_expect=1
20568 ac_cv_have___builtin_expect=0
20571 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
20572 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
20573 # Check whether --enable-frame_pointers or --disable-frame_pointers was given.
20574 if test "${enable_frame_pointers+set}" = set; then
20575 enableval="$enable_frame_pointers"
20576 enable_frame_pointers=no
20578 cat >conftest.$ac_ext <<_ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20588 return __x86_64__ == 1 ? 0 : 1
20593 rm -f conftest.$ac_objext
20594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20595 (eval $ac_compile) 2>conftest.er1
20597 grep -v '^ *+' conftest.er1 >conftest.err
20599 cat conftest.err >&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); } &&
20602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20604 (eval $ac_try) 2>&5
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); }; } &&
20608 { ac_try='test -s conftest.$ac_objext'
20609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20610 (eval $ac_try) 2>&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); }; }; then
20616 echo "$as_me: failed program was:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20624 if test "$enable_frame_pointers" = yes; then
20625 ENABLE_FRAME_POINTERS_TRUE=
20626 ENABLE_FRAME_POINTERS_FALSE='#'
20628 ENABLE_FRAME_POINTERS_TRUE='#'
20629 ENABLE_FRAME_POINTERS_FALSE=
20634 if test "$is_x86_64" = yes; then
20643 # Some of the code in this directory depends on pthreads
20649 ac_cpp='$CPP $CPPFLAGS'
20650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20656 # We used to check for pthread.h first, but this fails if pthread.h
20657 # requires special compiler flags (e.g. on True64 or Sequent).
20658 # It gets checked for in the link test anyway.
20660 # First of all, check if the user has set any of the PTHREAD_LIBS,
20661 # etcetera environment variables, and if threads linking works using
20663 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
20664 save_CFLAGS="$CFLAGS"
20665 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20667 LIBS="$PTHREAD_LIBS $LIBS"
20668 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
20669 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
20670 cat >conftest.$ac_ext <<_ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h. */
20677 /* Override any gcc2 internal prototype to avoid an error. */
20681 /* We use char because int might match the return type of a gcc2
20682 builtin and then its argument prototype would still apply. */
20683 char pthread_join ();
20692 rm -f conftest.$ac_objext conftest$ac_exeext
20693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20694 (eval $ac_link) 2>conftest.er1
20696 grep -v '^ *+' conftest.er1 >conftest.err
20698 cat conftest.err >&5
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); } &&
20701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
20707 { ac_try='test -s conftest$ac_exeext'
20708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709 (eval $ac_try) 2>&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; }; then
20715 echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20719 rm -f conftest.err conftest.$ac_objext \
20720 conftest$ac_exeext conftest.$ac_ext
20721 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
20722 echo "${ECHO_T}$acx_pthread_ok" >&6
20723 if test x"$acx_pthread_ok" = xno; then
20728 CFLAGS="$save_CFLAGS"
20731 # We must check for the threads library under a number of different
20732 # names; the ordering is very important because some systems
20733 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20734 # libraries is broken (non-POSIX).
20736 # Create a list of thread flags to try. Items starting with a "-" are
20737 # C compiler flags, and other items are library names, except for "none"
20738 # which indicates that we try without any flags at all, and "pthread-config"
20739 # which is a program returning the flags for the Pth emulation library.
20741 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20743 # The ordering *is* (sometimes) important. Some notes on the
20744 # individual items follow:
20746 # pthreads: AIX (must check this before -lpthread)
20747 # none: in case threads are in libc; should be tried before -Kthread and
20748 # other compiler flags to prevent continual compiler warnings
20749 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20750 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20751 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20752 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
20753 # -pthreads: Solaris/gcc
20754 # -mthreads: Mingw32/gcc, Lynx/gcc
20755 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20756 # doesn't hurt to check since this sometimes defines pthreads too;
20757 # also defines -D_REENTRANT)
20758 # ... -mt is also the pthreads flag for HP/aCC
20759 # pthread: Linux, etcetera
20760 # --thread-safe: KAI C++
20761 # pthread-config: use pthread-config program (for GNU Pth library)
20763 case "${host_cpu}-${host_os}" in
20766 # On Solaris (at least, for some versions), libc contains stubbed
20767 # (non-functional) versions of the pthreads routines, so link-based
20768 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
20769 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
20770 # a function called by this macro, so we could check for that, but
20771 # who knows whether they'll stub that too in a future libc.) So,
20772 # we'll just look for -pthreads and -lpthread first:
20774 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
20778 if test x"$acx_pthread_ok" = xno; then
20779 for flag in $acx_pthread_flags; do
20783 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
20784 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
20788 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
20789 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
20790 PTHREAD_CFLAGS="$flag"
20794 # Extract the first word of "pthread-config", so it can be a program name with args.
20795 set dummy pthread-config; ac_word=$2
20796 echo "$as_me:$LINENO: checking for $ac_word" >&5
20797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20798 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
20799 echo $ECHO_N "(cached) $ECHO_C" >&6
20801 if test -n "$acx_pthread_config"; then
20802 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
20804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20805 for as_dir in $PATH
20808 test -z "$as_dir" && as_dir=.
20809 for ac_exec_ext in '' $ac_executable_extensions; do
20810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20811 ac_cv_prog_acx_pthread_config="yes"
20812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20818 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
20821 acx_pthread_config=$ac_cv_prog_acx_pthread_config
20822 if test -n "$acx_pthread_config"; then
20823 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
20824 echo "${ECHO_T}$acx_pthread_config" >&6
20826 echo "$as_me:$LINENO: result: no" >&5
20827 echo "${ECHO_T}no" >&6
20830 if test x"$acx_pthread_config" = xno; then continue; fi
20831 PTHREAD_CFLAGS="`pthread-config --cflags`"
20832 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20836 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
20837 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
20838 PTHREAD_LIBS="-l$flag"
20843 save_CFLAGS="$CFLAGS"
20844 LIBS="$PTHREAD_LIBS $LIBS"
20845 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20847 # Check for various functions. We must include pthread.h,
20848 # since some functions may be macros. (On the Sequent, we
20849 # need a special flag -Kthread to make this header compile.)
20850 # We check for pthread_join because it is in -lpthread on IRIX
20851 # while pthread_create is in libc. We check for pthread_attr_init
20852 # due to DEC craziness with -lpthreads. We check for
20853 # pthread_cleanup_push because it is one of the few pthread
20854 # functions on Solaris that doesn't have a non-functional libc stub.
20855 # We try pthread_create on general principles.
20856 cat >conftest.$ac_ext <<_ACEOF
20859 cat confdefs.h >>conftest.$ac_ext
20860 cat >>conftest.$ac_ext <<_ACEOF
20861 /* end confdefs.h. */
20862 #include <pthread.h>
20866 pthread_t th; pthread_join(th, 0);
20867 pthread_attr_init(0); pthread_cleanup_push(0, 0);
20868 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
20873 rm -f conftest.$ac_objext conftest$ac_exeext
20874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20875 (eval $ac_link) 2>conftest.er1
20877 grep -v '^ *+' conftest.er1 >conftest.err
20879 cat conftest.err >&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } &&
20882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884 (eval $ac_try) 2>&5
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); }; } &&
20888 { ac_try='test -s conftest$ac_exeext'
20889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890 (eval $ac_try) 2>&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; }; then
20896 echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.$ac_ext >&5
20900 rm -f conftest.err conftest.$ac_objext \
20901 conftest$ac_exeext conftest.$ac_ext
20904 CFLAGS="$save_CFLAGS"
20906 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
20907 echo "${ECHO_T}$acx_pthread_ok" >&6
20908 if test "x$acx_pthread_ok" = xyes; then
20917 # Various other checks:
20918 if test "x$acx_pthread_ok" = xyes; then
20920 LIBS="$PTHREAD_LIBS $LIBS"
20921 save_CFLAGS="$CFLAGS"
20922 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20924 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20925 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
20926 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
20928 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20929 cat >conftest.$ac_ext <<_ACEOF
20932 cat confdefs.h >>conftest.$ac_ext
20933 cat >>conftest.$ac_ext <<_ACEOF
20934 /* end confdefs.h. */
20935 #include <pthread.h>
20939 int attr=$attr; return attr;
20944 rm -f conftest.$ac_objext conftest$ac_exeext
20945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20946 (eval $ac_link) 2>conftest.er1
20948 grep -v '^ *+' conftest.er1 >conftest.err
20950 cat conftest.err >&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); } &&
20953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20955 (eval $ac_try) 2>&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); }; } &&
20959 { ac_try='test -s conftest$ac_exeext'
20960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961 (eval $ac_try) 2>&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); }; }; then
20965 attr_name=$attr; break
20967 echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20971 rm -f conftest.err conftest.$ac_objext \
20972 conftest$ac_exeext conftest.$ac_ext
20974 echo "$as_me:$LINENO: result: $attr_name" >&5
20975 echo "${ECHO_T}$attr_name" >&6
20976 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
20978 cat >>confdefs.h <<_ACEOF
20979 #define PTHREAD_CREATE_JOINABLE $attr_name
20984 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
20985 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
20987 case "${host_cpu}-${host_os}" in
20988 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
20989 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
20991 echo "$as_me:$LINENO: result: ${flag}" >&5
20992 echo "${ECHO_T}${flag}" >&6
20993 if test "x$flag" != xno; then
20994 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
20998 CFLAGS="$save_CFLAGS"
20999 # More AIX lossage: must compile with xlc_r or cc_r
21000 if test x"$GCC" != xyes; then
21001 for ac_prog in xlc_r cc_r
21003 # Extract the first word of "$ac_prog", so it can be a program name with args.
21004 set dummy $ac_prog; ac_word=$2
21005 echo "$as_me:$LINENO: checking for $ac_word" >&5
21006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21007 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
21008 echo $ECHO_N "(cached) $ECHO_C" >&6
21010 if test -n "$PTHREAD_CC"; then
21011 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21014 for as_dir in $PATH
21017 test -z "$as_dir" && as_dir=.
21018 for ac_exec_ext in '' $ac_executable_extensions; do
21019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21020 ac_cv_prog_PTHREAD_CC="$ac_prog"
21021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21029 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21030 if test -n "$PTHREAD_CC"; then
21031 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
21032 echo "${ECHO_T}$PTHREAD_CC" >&6
21034 echo "$as_me:$LINENO: result: no" >&5
21035 echo "${ECHO_T}no" >&6
21038 test -n "$PTHREAD_CC" && break
21040 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
21046 # The next part tries to detect GCC inconsistency with -shared on some
21047 # architectures and systems. The problem is that in certain
21048 # configurations, when -shared is specified, GCC "forgets" to
21049 # internally use various flags which are still necessary.
21051 echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5
21052 echo $ECHO_N "checking whether to check for GCC pthread/shared inconsistencies... $ECHO_C" >&6
21053 check_inconsistencies=yes
21054 case "${host_cpu}-${host_os}" in
21055 *-darwin*) check_inconsistencies=no ;;
21057 if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then
21058 echo "$as_me:$LINENO: result: no" >&5
21059 echo "${ECHO_T}no" >&6
21061 echo "$as_me:$LINENO: result: yes" >&5
21062 echo "${ECHO_T}yes" >&6
21064 # In order not to create several levels of indentation, we test
21065 # the value of "$ok" until we find out the cure or run out of
21070 # Prepare the flags
21072 save_CFLAGS="$CFLAGS"
21075 # Try with the flags determined by the earlier checks.
21077 # -Wl,-z,defs forces link-time symbol resolution, so that the
21078 # linking checks with -shared actually have any value
21080 # FIXME: -fPIC is required for -shared on many architectures,
21081 # so we specify it here, but the right way would probably be to
21082 # properly detect whether it is actually required.
21083 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
21084 LIBS="$PTHREAD_LIBS $LIBS"
21087 echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5
21088 echo $ECHO_N "checking whether -pthread is sufficient with -shared... $ECHO_C" >&6
21089 cat >conftest.$ac_ext <<_ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h. */
21095 #include <pthread.h>
21099 pthread_t th; pthread_join(th, 0);
21100 pthread_attr_init(0); pthread_cleanup_push(0, 0);
21101 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
21106 rm -f conftest.$ac_objext conftest$ac_exeext
21107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21108 (eval $ac_link) 2>conftest.er1
21110 grep -v '^ *+' conftest.er1 >conftest.err
21112 cat conftest.err >&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } &&
21115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
21121 { ac_try='test -s conftest$ac_exeext'
21122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21123 (eval $ac_try) 2>&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); }; }; then
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21133 rm -f conftest.err conftest.$ac_objext \
21134 conftest$ac_exeext conftest.$ac_ext
21136 if test "x$ok" = xyes; then
21137 echo "$as_me:$LINENO: result: yes" >&5
21138 echo "${ECHO_T}yes" >&6
21140 echo "$as_me:$LINENO: result: no" >&5
21141 echo "${ECHO_T}no" >&6
21145 # Linux gcc on some architectures such as mips/mipsel forgets
21148 if test x"$ok" = xno; then
21149 echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5
21150 echo $ECHO_N "checking whether -lpthread fixes that... $ECHO_C" >&6
21151 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
21152 cat >conftest.$ac_ext <<_ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h. */
21158 #include <pthread.h>
21162 pthread_t th; pthread_join(th, 0);
21163 pthread_attr_init(0); pthread_cleanup_push(0, 0);
21164 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
21169 rm -f conftest.$ac_objext conftest$ac_exeext
21170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21171 (eval $ac_link) 2>conftest.er1
21173 grep -v '^ *+' conftest.er1 >conftest.err
21175 cat conftest.err >&5
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); } &&
21178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21180 (eval $ac_try) 2>&5
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); }; } &&
21184 { ac_try='test -s conftest$ac_exeext'
21185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21186 (eval $ac_try) 2>&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); }; }; then
21192 echo "$as_me: failed program was:" >&5
21193 sed 's/^/| /' conftest.$ac_ext >&5
21196 rm -f conftest.err conftest.$ac_objext \
21197 conftest$ac_exeext conftest.$ac_ext
21199 if test "x$ok" = xyes; then
21200 echo "$as_me:$LINENO: result: yes" >&5
21201 echo "${ECHO_T}yes" >&6
21202 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
21204 echo "$as_me:$LINENO: result: no" >&5
21205 echo "${ECHO_T}no" >&6
21209 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
21211 if test x"$ok" = xno; then
21212 echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5
21213 echo $ECHO_N "checking whether -lc_r fixes that... $ECHO_C" >&6
21214 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
21215 cat >conftest.$ac_ext <<_ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h. */
21221 #include <pthread.h>
21225 pthread_t th; pthread_join(th, 0);
21226 pthread_attr_init(0); pthread_cleanup_push(0, 0);
21227 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
21232 rm -f conftest.$ac_objext conftest$ac_exeext
21233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21234 (eval $ac_link) 2>conftest.er1
21236 grep -v '^ *+' conftest.er1 >conftest.err
21238 cat conftest.err >&5
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); } &&
21241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21243 (eval $ac_try) 2>&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); }; } &&
21247 { ac_try='test -s conftest$ac_exeext'
21248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21249 (eval $ac_try) 2>&5
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); }; }; then
21255 echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21259 rm -f conftest.err conftest.$ac_objext \
21260 conftest$ac_exeext conftest.$ac_ext
21262 if test "x$ok" = xyes; then
21263 echo "$as_me:$LINENO: result: yes" >&5
21264 echo "${ECHO_T}yes" >&6
21265 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
21267 echo "$as_me:$LINENO: result: no" >&5
21268 echo "${ECHO_T}no" >&6
21271 if test x"$ok" = xno; then
21272 # OK, we have run out of ideas
21273 { echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
21274 echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
21276 # so it's not safe to assume that we may use pthreads
21280 CFLAGS="$save_CFLAGS"
21292 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21293 if test x"$acx_pthread_ok" = xyes; then
21295 cat >>confdefs.h <<\_ACEOF
21296 #define HAVE_PTHREAD 1
21305 ac_cpp='$CPP $CPPFLAGS'
21306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21312 # Check if there is google-gflags library installed.
21313 echo "$as_me:$LINENO: checking for main in -lgflags" >&5
21314 echo $ECHO_N "checking for main in -lgflags... $ECHO_C" >&6
21315 if test "${ac_cv_lib_gflags_main+set}" = set; then
21316 echo $ECHO_N "(cached) $ECHO_C" >&6
21318 ac_check_lib_save_LIBS=$LIBS
21319 LIBS="-lgflags $LIBS"
21320 cat >conftest.$ac_ext <<_ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h. */
21336 rm -f conftest.$ac_objext conftest$ac_exeext
21337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21338 (eval $ac_link) 2>conftest.er1
21340 grep -v '^ *+' conftest.er1 >conftest.err
21342 cat conftest.err >&5
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); } &&
21345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21347 (eval $ac_try) 2>&5
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); }; } &&
21351 { ac_try='test -s conftest$ac_exeext'
21352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21353 (eval $ac_try) 2>&5
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); }; }; then
21357 ac_cv_lib_gflags_main=yes
21359 echo "$as_me: failed program was:" >&5
21360 sed 's/^/| /' conftest.$ac_ext >&5
21362 ac_cv_lib_gflags_main=no
21364 rm -f conftest.err conftest.$ac_objext \
21365 conftest$ac_exeext conftest.$ac_ext
21366 LIBS=$ac_check_lib_save_LIBS
21368 echo "$as_me:$LINENO: result: $ac_cv_lib_gflags_main" >&5
21369 echo "${ECHO_T}$ac_cv_lib_gflags_main" >&6
21370 if test $ac_cv_lib_gflags_main = yes; then
21371 ac_cv_have_libgflags=1
21373 ac_cv_have_libgflags=0
21376 if test x"$ac_cv_have_libgflags" = x"1"; then
21377 GFLAGS_LIBS=-lgflags
21379 cat >>confdefs.h <<\_ACEOF
21380 #define HAVE_LIB_GFLAGS 1
21387 # We'd like to use read/write locks in several places in the code.
21388 # See if our pthreads support extends to that. Note: for linux, it
21389 # does as long as you define _XOPEN_SOURCE appropriately.
21390 echo "$as_me:$LINENO: checking support for pthread_rwlock_* functions" >&5
21391 echo $ECHO_N "checking support for pthread_rwlock_* functions... $ECHO_C" >&6
21392 if test "${ac_rwlock+set}" = set; then
21393 echo $ECHO_N "(cached) $ECHO_C" >&6
21398 ac_cpp='$CPP $CPPFLAGS'
21399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21403 cat >conftest.$ac_ext <<_ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h. */
21409 #define _XOPEN_SOURCE 500
21410 #include <pthread.h>
21414 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
21415 pthread_rwlock_rdlock(&l);
21421 rm -f conftest.$ac_objext
21422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21423 (eval $ac_compile) 2>conftest.er1
21425 grep -v '^ *+' conftest.er1 >conftest.err
21427 cat conftest.err >&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } &&
21430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432 (eval $ac_try) 2>&5
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); }; } &&
21436 { ac_try='test -s conftest.$ac_objext'
21437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438 (eval $ac_try) 2>&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); }; }; then
21444 echo "$as_me: failed program was:" >&5
21445 sed 's/^/| /' conftest.$ac_ext >&5
21449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21451 ac_cpp='$CPP $CPPFLAGS'
21452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21458 echo "$as_me:$LINENO: result: $ac_rwlock" >&5
21459 echo "${ECHO_T}$ac_rwlock" >&6
21460 if test "$ac_rwlock" = yes; then
21462 cat >>confdefs.h <<\_ACEOF
21463 #define HAVE_RWLOCK 1
21469 # Find out what namespace 'normal' STL code lives in, and also what namespace
21470 # the user wants our classes to be defined in
21471 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21472 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21473 if test "${ac_cv_cxx_namespaces+set}" = set; then
21474 echo $ECHO_N "(cached) $ECHO_C" >&6
21479 ac_cpp='$CXXCPP $CPPFLAGS'
21480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21484 cat >conftest.$ac_ext <<_ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h. */
21491 namespace Inner { int i = 0; }}
21495 using namespace Outer::Inner; return i;
21500 rm -f conftest.$ac_objext
21501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21502 (eval $ac_compile) 2>conftest.er1
21504 grep -v '^ *+' conftest.er1 >conftest.err
21506 cat conftest.err >&5
21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); } &&
21509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21511 (eval $ac_try) 2>&5
21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514 (exit $ac_status); }; } &&
21515 { ac_try='test -s conftest.$ac_objext'
21516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21517 (eval $ac_try) 2>&5
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); }; }; then
21521 ac_cv_cxx_namespaces=yes
21523 echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21526 ac_cv_cxx_namespaces=no
21528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21530 ac_cpp='$CPP $CPPFLAGS'
21531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21536 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21537 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21538 if test "$ac_cv_cxx_namespaces" = yes; then
21540 cat >>confdefs.h <<\_ACEOF
21541 #define HAVE_NAMESPACES 1
21545 echo "$as_me:$LINENO: checking what namespace STL code is in" >&5
21546 echo $ECHO_N "checking what namespace STL code is in... $ECHO_C" >&6
21547 if test "${ac_cv_cxx_stl_namespace+set}" = set; then
21548 echo $ECHO_N "(cached) $ECHO_C" >&6
21554 ac_cpp='$CXXCPP $CPPFLAGS'
21555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21559 cat >conftest.$ac_ext <<_ACEOF
21562 cat confdefs.h >>conftest.$ac_ext
21563 cat >>conftest.$ac_ext <<_ACEOF
21564 /* end confdefs.h. */
21569 vector<int> t; return 0;
21574 rm -f conftest.$ac_objext
21575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21576 (eval $ac_compile) 2>conftest.er1
21578 grep -v '^ *+' conftest.er1 >conftest.err
21580 cat conftest.err >&5
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); } &&
21583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21585 (eval $ac_try) 2>&5
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); }; } &&
21589 { ac_try='test -s conftest.$ac_objext'
21590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21591 (eval $ac_try) 2>&5
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); }; }; then
21595 ac_cv_cxx_stl_namespace=none
21597 echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21602 cat >conftest.$ac_ext <<_ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h. */
21612 std::vector<int> t; return 0;
21617 rm -f conftest.$ac_objext
21618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21619 (eval $ac_compile) 2>conftest.er1
21621 grep -v '^ *+' conftest.er1 >conftest.err
21623 cat conftest.err >&5
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); } &&
21626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21628 (eval $ac_try) 2>&5
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); }; } &&
21632 { ac_try='test -s conftest.$ac_objext'
21633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21634 (eval $ac_try) 2>&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); }; }; then
21638 ac_cv_cxx_stl_namespace=std
21640 echo "$as_me: failed program was:" >&5
21641 sed 's/^/| /' conftest.$ac_ext >&5
21644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21646 ac_cpp='$CPP $CPPFLAGS'
21647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21652 echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5
21653 echo "${ECHO_T}$ac_cv_cxx_stl_namespace" >&6
21654 if test "$ac_cv_cxx_stl_namespace" = none; then
21656 cat >>confdefs.h <<\_ACEOF
21657 #define STL_NAMESPACE
21661 if test "$ac_cv_cxx_stl_namespace" = std; then
21663 cat >>confdefs.h <<\_ACEOF
21664 #define STL_NAMESPACE std
21669 google_namespace_default=google
21670 # Check whether --enable-namespace or --disable-namespace was given.
21671 if test "${enable_namespace+set}" = set; then
21672 enableval="$enable_namespace"
21673 case "$enableval" in
21674 yes) google_namespace="$google_namespace_default" ;;
21675 no) google_namespace="" ;;
21676 *) google_namespace="$enableval" ;;
21679 google_namespace="$google_namespace_default"
21681 if test -n "$google_namespace"; then
21682 ac_google_namespace="$google_namespace"
21683 ac_google_start_namespace="namespace $google_namespace {"
21684 ac_google_end_namespace="}"
21686 ac_google_namespace=""
21687 ac_google_start_namespace=""
21688 ac_google_end_namespace=""
21691 cat >>confdefs.h <<_ACEOF
21692 #define GOOGLE_NAMESPACE $ac_google_namespace
21696 cat >>confdefs.h <<_ACEOF
21697 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
21701 cat >>confdefs.h <<_ACEOF
21702 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
21707 echo "$as_me:$LINENO: checking whether compiler supports using ::operator<<" >&5
21708 echo $ECHO_N "checking whether compiler supports using ::operator<<... $ECHO_C" >&6
21709 if test "${ac_cv_cxx_using_operator+set}" = set; then
21710 echo $ECHO_N "(cached) $ECHO_C" >&6
21715 ac_cpp='$CXXCPP $CPPFLAGS'
21716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21720 cat >conftest.$ac_ext <<_ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h. */
21726 #include <iostream>
21727 std::ostream& operator<<(std::ostream&, struct s);
21731 using ::operator<<; return 0;
21736 rm -f conftest.$ac_objext
21737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21738 (eval $ac_compile) 2>conftest.er1
21740 grep -v '^ *+' conftest.er1 >conftest.err
21742 cat conftest.err >&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); } &&
21745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; } &&
21751 { ac_try='test -s conftest.$ac_objext'
21752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753 (eval $ac_try) 2>&5
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); }; }; then
21757 ac_cv_cxx_using_operator=1
21759 echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21762 ac_cv_cxx_using_operator=0
21764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21766 ac_cpp='$CPP $CPPFLAGS'
21767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21772 echo "$as_me:$LINENO: result: $ac_cv_cxx_using_operator" >&5
21773 echo "${ECHO_T}$ac_cv_cxx_using_operator" >&6
21774 if test "$ac_cv_cxx_using_operator" = 1; then
21776 cat >>confdefs.h <<\_ACEOF
21777 #define HAVE_USING_OPERATOR 1
21782 # These are what's needed by logging.h.in and raw_logging.h.in
21799 # Write generated configuration file
21800 ac_config_files="$ac_config_files Makefile src/glog/logging.h src/glog/raw_logging.h src/glog/vlog_is_on.h src/glog/stl_logging.h"
21802 cat >confcache <<\_ACEOF
21803 # This file is a shell script that caches the results of configure
21804 # tests run on this system so they can be shared between configure
21805 # scripts and configure runs, see configure's option --config-cache.
21806 # It is not useful on other systems. If it contains results you don't
21807 # want to keep, you may remove or edit it.
21809 # config.status only pays attention to the cache file if you give it
21810 # the --recheck option to rerun configure.
21812 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21813 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21814 # following values.
21818 # The following way of writing the cache mishandles newlines in values,
21819 # but we know of no workaround that is simple, portable, and efficient.
21820 # So, don't put newlines in cache variables' values.
21821 # Ultrix sh set writes to stderr and can't be redirected directly,
21822 # and sets the high bit in the cache file unless we assign to the vars.
21825 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21827 # `set' does not quote correctly, so add quotes (double-quote
21828 # substitution turns \\\\ into \\, and sed turns \\ into \).
21831 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21834 # `set' quotes correctly as required by POSIX, so do not add quotes.
21836 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21843 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21845 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21847 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21848 if test -w $cache_file; then
21849 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21850 cat confcache >$cache_file
21852 echo "not updating unwritable cache $cache_file"
21857 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21858 # Let make expand exec_prefix.
21859 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21861 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21862 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21863 # trailing colons and then remove the whole line if VPATH becomes empty
21864 # (actually we leave an empty line to preserve line numbers).
21865 if test "x$srcdir" = x.; then
21866 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21867 s/:*\$(srcdir):*/:/;
21868 s/:*\${srcdir}:*/:/;
21870 s/^\([^=]*=[ ]*\):*/\1/;
21876 DEFS=-DHAVE_CONFIG_H
21880 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21881 # 1. Remove the extension, and $U if already installed.
21882 ac_i=`echo "$ac_i" |
21883 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21885 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21886 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21888 LIBOBJS=$ac_libobjs
21890 LTLIBOBJS=$ac_ltlibobjs
21893 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21894 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21895 Usually this means the macro was only invoked conditionally." >&5
21896 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21897 Usually this means the macro was only invoked conditionally." >&2;}
21898 { (exit 1); exit 1; }; }
21900 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21901 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21902 Usually this means the macro was only invoked conditionally." >&5
21903 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21904 Usually this means the macro was only invoked conditionally." >&2;}
21905 { (exit 1); exit 1; }; }
21907 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21908 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21909 Usually this means the macro was only invoked conditionally." >&5
21910 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21911 Usually this means the macro was only invoked conditionally." >&2;}
21912 { (exit 1); exit 1; }; }
21914 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
21915 { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
21916 Usually this means the macro was only invoked conditionally." >&5
21917 echo "$as_me: error: conditional \"GCC\" was never defined.
21918 Usually this means the macro was only invoked conditionally." >&2;}
21919 { (exit 1); exit 1; }; }
21921 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
21922 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
21923 Usually this means the macro was only invoked conditionally." >&5
21924 echo "$as_me: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
21925 Usually this means the macro was only invoked conditionally." >&2;}
21926 { (exit 1); exit 1; }; }
21928 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
21929 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
21930 Usually this means the macro was only invoked conditionally." >&5
21931 echo "$as_me: error: conditional \"X86_64\" was never defined.
21932 Usually this means the macro was only invoked conditionally." >&2;}
21933 { (exit 1); exit 1; }; }
21936 : ${CONFIG_STATUS=./config.status}
21937 ac_clean_files_save=$ac_clean_files
21938 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21939 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21940 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21941 cat >$CONFIG_STATUS <<_ACEOF
21943 # Generated by $as_me.
21944 # Run this file to recreate the current configuration.
21945 # Compiler output produced by configure, useful for debugging
21946 # configure, is in config.log if it exists.
21949 ac_cs_recheck=false
21951 SHELL=\${CONFIG_SHELL-$SHELL}
21954 cat >>$CONFIG_STATUS <<\_ACEOF
21955 ## --------------------- ##
21956 ## M4sh Initialization. ##
21957 ## --------------------- ##
21959 # Be Bourne compatible
21960 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21963 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21964 # is contrary to our usage. Disable this feature.
21965 alias -g '${1+"$@"}'='"$@"'
21966 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21969 DUALCASE=1; export DUALCASE # for MKS sh
21971 # Support unset when possible.
21972 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21979 # Work around bugs in pre-3.0 UWIN ksh.
21980 $as_unset ENV MAIL MAILPATH
21987 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21988 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21989 LC_TELEPHONE LC_TIME
21991 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21992 eval $as_var=C; export $as_var
21998 # Required to use basename.
21999 if expr a : '\(a\)' >/dev/null 2>&1; then
22005 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22006 as_basename=basename
22012 # Name of the executable.
22013 as_me=`$as_basename "$0" ||
22014 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22015 X"$0" : 'X\(//\)$' \| \
22016 X"$0" : 'X\(/\)$' \| \
22017 . : '\(.\)' 2>/dev/null ||
22019 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22020 /^X\/\(\/\/\)$/{ s//\1/; q; }
22021 /^X\/\(\/\).*/{ s//\1/; q; }
22025 # PATH needs CR, and LINENO needs CR and PATH.
22026 # Avoid depending upon Character Ranges.
22027 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22028 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22029 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22030 as_cr_digits='0123456789'
22031 as_cr_alnum=$as_cr_Letters$as_cr_digits
22033 # The user is always right.
22034 if test "${PATH_SEPARATOR+set}" != set; then
22035 echo "#! /bin/sh" >conf$$.sh
22036 echo "exit 0" >>conf$$.sh
22038 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22047 as_lineno_1=$LINENO
22048 as_lineno_2=$LINENO
22049 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22050 test "x$as_lineno_1" != "x$as_lineno_2" &&
22051 test "x$as_lineno_3" = "x$as_lineno_2" || {
22052 # Find who we are. Look in the path if we contain no path at all
22055 *[\\/]* ) as_myself=$0 ;;
22056 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22057 for as_dir in $PATH
22060 test -z "$as_dir" && as_dir=.
22061 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22066 # We did not find ourselves, most probably we were run as `sh COMMAND'
22067 # in which case we are not to be found in the path.
22068 if test "x$as_myself" = x; then
22071 if test ! -f "$as_myself"; then
22072 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22073 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22074 { (exit 1); exit 1; }; }
22076 case $CONFIG_SHELL in
22078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22079 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22082 test -z "$as_dir" && as_dir=.
22083 for as_base in sh bash ksh sh5; do
22086 if ("$as_dir/$as_base" -c '
22087 as_lineno_1=$LINENO
22088 as_lineno_2=$LINENO
22089 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22090 test "x$as_lineno_1" != "x$as_lineno_2" &&
22091 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22092 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22093 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22094 CONFIG_SHELL=$as_dir/$as_base
22095 export CONFIG_SHELL
22096 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22104 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22105 # uniformly replaced by the line number. The first 'sed' inserts a
22106 # line-number line before each line; the second 'sed' does the real
22107 # work. The second script uses 'N' to pair each line-number line
22108 # with the numbered line, and appends trailing '-' during
22109 # substitution so that $LINENO is not a special case at line end.
22110 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22111 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22112 sed '=' <$as_myself |
22117 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22120 s,^['$as_cr_digits']*\n,,
22121 ' >$as_me.lineno &&
22122 chmod +x $as_me.lineno ||
22123 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22124 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22125 { (exit 1); exit 1; }; }
22127 # Don't try to exec as it changes $[0], causing all sort of problems
22128 # (the dirname of $[0] is not the place where we might find the
22129 # original and so on. Autoconf is especially sensible to this).
22131 # Exit status is that of the last command.
22136 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22137 *c*,-n*) ECHO_N= ECHO_C='
22139 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22140 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22143 if expr a : '\(a\)' >/dev/null 2>&1; then
22149 rm -f conf$$ conf$$.exe conf$$.file
22151 if ln -s conf$$.file conf$$ 2>/dev/null; then
22152 # We could just check for DJGPP; but this test a) works b) is more generic
22153 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22154 if test -f conf$$.exe; then
22155 # Don't use ln at all; we don't have any links
22160 elif ln conf$$.file conf$$ 2>/dev/null; then
22165 rm -f conf$$ conf$$.exe conf$$.file
22167 if mkdir -p . 2>/dev/null; then
22170 test -d ./-p && rmdir ./-p
22174 as_executable_p="test -f"
22176 # Sed expression to map a string onto a valid CPP name.
22177 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22179 # Sed expression to map a string onto a valid variable name.
22180 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22184 # We need space, tab and new line, in precisely that order.
22194 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22195 # report actual input values of CONFIG_FILES etc. instead of their
22196 # values after options handling. Logging --version etc. is OK.
22200 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22201 ## Running $as_me. ##
22206 This file was extended by glog $as_me 0.1, which was
22207 generated by GNU Autoconf 2.59. Invocation command line was
22209 CONFIG_FILES = $CONFIG_FILES
22210 CONFIG_HEADERS = $CONFIG_HEADERS
22211 CONFIG_LINKS = $CONFIG_LINKS
22212 CONFIG_COMMANDS = $CONFIG_COMMANDS
22216 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22220 # Files that config.status was made for.
22221 if test -n "$ac_config_files"; then
22222 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22225 if test -n "$ac_config_headers"; then
22226 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22229 if test -n "$ac_config_links"; then
22230 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22233 if test -n "$ac_config_commands"; then
22234 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22237 cat >>$CONFIG_STATUS <<\_ACEOF
22240 \`$as_me' instantiates files from templates according to the
22241 current configuration.
22243 Usage: $0 [OPTIONS] [FILE]...
22245 -h, --help print this help, then exit
22246 -V, --version print version number, then exit
22247 -q, --quiet do not print progress messages
22248 -d, --debug don't remove temporary files
22249 --recheck update $as_me by reconfiguring in the same conditions
22250 --file=FILE[:TEMPLATE]
22251 instantiate the configuration file FILE
22252 --header=FILE[:TEMPLATE]
22253 instantiate the configuration header FILE
22255 Configuration files:
22258 Configuration headers:
22261 Configuration commands:
22264 Report bugs to <bug-autoconf@gnu.org>."
22267 cat >>$CONFIG_STATUS <<_ACEOF
22269 glog config.status 0.1
22270 configured by $0, generated by GNU Autoconf 2.59,
22271 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22273 Copyright (C) 2003 Free Software Foundation, Inc.
22274 This config.status script is free software; the Free Software Foundation
22275 gives unlimited permission to copy, distribute and modify it."
22280 cat >>$CONFIG_STATUS <<\_ACEOF
22281 # If no file are specified by the user, then we need to provide default
22282 # value. By we need to know if files were specified by the user.
22288 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22289 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22297 *) # This is not an option, so the user has probably given explicit
22300 ac_need_defaults=false;;
22304 # Handling of the options.
22306 cat >>$CONFIG_STATUS <<\_ACEOF
22307 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22309 --version | --vers* | -V )
22310 echo "$ac_cs_version"; exit 0 ;;
22312 # Conflict between --help and --header
22313 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22314 Try \`$0 --help' for more information." >&5
22315 echo "$as_me: error: ambiguous option: $1
22316 Try \`$0 --help' for more information." >&2;}
22317 { (exit 1); exit 1; }; };;
22318 --help | --hel | -h )
22319 echo "$ac_cs_usage"; exit 0 ;;
22320 --debug | --d* | -d )
22322 --file | --fil | --fi | --f )
22324 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22325 ac_need_defaults=false;;
22326 --header | --heade | --head | --hea )
22328 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22329 ac_need_defaults=false;;
22330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22331 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22334 # This is an error.
22335 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22336 Try \`$0 --help' for more information." >&5
22337 echo "$as_me: error: unrecognized option: $1
22338 Try \`$0 --help' for more information." >&2;}
22339 { (exit 1); exit 1; }; } ;;
22341 *) ac_config_targets="$ac_config_targets $1" ;;
22347 ac_configure_extra_args=
22349 if $ac_cs_silent; then
22351 ac_configure_extra_args="$ac_configure_extra_args --silent"
22355 cat >>$CONFIG_STATUS <<_ACEOF
22356 if \$ac_cs_recheck; then
22357 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22358 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22363 cat >>$CONFIG_STATUS <<_ACEOF
22365 # INIT-COMMANDS section.
22368 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22374 cat >>$CONFIG_STATUS <<\_ACEOF
22375 for ac_config_target in $ac_config_targets
22377 case "$ac_config_target" in
22378 # Handling of arguments.
22379 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22380 "src/glog/logging.h" ) CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
22381 "src/glog/raw_logging.h" ) CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
22382 "src/glog/vlog_is_on.h" ) CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
22383 "src/glog/stl_logging.h" ) CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
22384 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22385 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22386 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22387 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22388 { (exit 1); exit 1; }; };;
22392 # If the user did not use the arguments to specify the items to instantiate,
22393 # then the envvar interface is used. Set only those that are not.
22394 # We use the long form for the default assignment because of an extremely
22395 # bizarre bug on SunOS 4.1.3.
22396 if $ac_need_defaults; then
22397 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22398 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22399 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22402 # Have a temporary directory for convenience. Make it in the build tree
22403 # simply because there is no reason to put it here, and in addition,
22404 # creating and moving files from /tmp can sometimes cause problems.
22405 # Create a temporary directory, and hook for its removal unless debugging.
22408 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22409 trap '{ (exit 1); exit 1; }' 1 2 13 15
22412 # Create a (secure) tmp directory for tmp files.
22415 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22416 test -n "$tmp" && test -d "$tmp"
22419 tmp=./confstat$$-$RANDOM
22420 (umask 077 && mkdir $tmp)
22423 echo "$me: cannot create a temporary directory in ." >&2
22424 { (exit 1); exit 1; }
22429 cat >>$CONFIG_STATUS <<_ACEOF
22432 # CONFIG_FILES section.
22435 # No need to generate the scripts if there are no CONFIG_FILES.
22436 # This happens for instance when ./config.status config.h
22437 if test -n "\$CONFIG_FILES"; then
22438 # Protect against being on the right side of a sed subst in config.status.
22439 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22440 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22441 s,@SHELL@,$SHELL,;t t
22442 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22443 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22444 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22445 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22446 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22447 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22448 s,@exec_prefix@,$exec_prefix,;t t
22449 s,@prefix@,$prefix,;t t
22450 s,@program_transform_name@,$program_transform_name,;t t
22451 s,@bindir@,$bindir,;t t
22452 s,@sbindir@,$sbindir,;t t
22453 s,@libexecdir@,$libexecdir,;t t
22454 s,@datadir@,$datadir,;t t
22455 s,@sysconfdir@,$sysconfdir,;t t
22456 s,@sharedstatedir@,$sharedstatedir,;t t
22457 s,@localstatedir@,$localstatedir,;t t
22458 s,@libdir@,$libdir,;t t
22459 s,@includedir@,$includedir,;t t
22460 s,@oldincludedir@,$oldincludedir,;t t
22461 s,@infodir@,$infodir,;t t
22462 s,@mandir@,$mandir,;t t
22463 s,@build_alias@,$build_alias,;t t
22464 s,@host_alias@,$host_alias,;t t
22465 s,@target_alias@,$target_alias,;t t
22466 s,@DEFS@,$DEFS,;t t
22467 s,@ECHO_C@,$ECHO_C,;t t
22468 s,@ECHO_N@,$ECHO_N,;t t
22469 s,@ECHO_T@,$ECHO_T,;t t
22470 s,@LIBS@,$LIBS,;t t
22471 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22472 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22473 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22474 s,@CYGPATH_W@,$CYGPATH_W,;t t
22475 s,@PACKAGE@,$PACKAGE,;t t
22476 s,@VERSION@,$VERSION,;t t
22477 s,@ACLOCAL@,$ACLOCAL,;t t
22478 s,@AUTOCONF@,$AUTOCONF,;t t
22479 s,@AUTOMAKE@,$AUTOMAKE,;t t
22480 s,@AUTOHEADER@,$AUTOHEADER,;t t
22481 s,@MAKEINFO@,$MAKEINFO,;t t
22482 s,@install_sh@,$install_sh,;t t
22483 s,@STRIP@,$STRIP,;t t
22484 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22485 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22486 s,@mkdir_p@,$mkdir_p,;t t
22488 s,@SET_MAKE@,$SET_MAKE,;t t
22489 s,@am__leading_dot@,$am__leading_dot,;t t
22490 s,@AMTAR@,$AMTAR,;t t
22491 s,@am__tar@,$am__tar,;t t
22492 s,@am__untar@,$am__untar,;t t
22494 s,@CFLAGS@,$CFLAGS,;t t
22495 s,@LDFLAGS@,$LDFLAGS,;t t
22496 s,@CPPFLAGS@,$CPPFLAGS,;t t
22497 s,@ac_ct_CC@,$ac_ct_CC,;t t
22498 s,@EXEEXT@,$EXEEXT,;t t
22499 s,@OBJEXT@,$OBJEXT,;t t
22500 s,@DEPDIR@,$DEPDIR,;t t
22501 s,@am__include@,$am__include,;t t
22502 s,@am__quote@,$am__quote,;t t
22503 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22504 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22505 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22506 s,@CCDEPMODE@,$CCDEPMODE,;t t
22507 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22508 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22511 s,@CXXFLAGS@,$CXXFLAGS,;t t
22512 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22513 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22514 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22515 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22516 s,@GCC_TRUE@,$GCC_TRUE,;t t
22517 s,@GCC_FALSE@,$GCC_FALSE,;t t
22518 s,@build@,$build,;t t
22519 s,@build_cpu@,$build_cpu,;t t
22520 s,@build_vendor@,$build_vendor,;t t
22521 s,@build_os@,$build_os,;t t
22522 s,@host@,$host,;t t
22523 s,@host_cpu@,$host_cpu,;t t
22524 s,@host_vendor@,$host_vendor,;t t
22525 s,@host_os@,$host_os,;t t
22526 s,@EGREP@,$EGREP,;t t
22527 s,@LN_S@,$LN_S,;t t
22528 s,@ECHO@,$ECHO,;t t
22530 s,@ac_ct_AR@,$ac_ct_AR,;t t
22531 s,@RANLIB@,$RANLIB,;t t
22532 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22533 s,@CXXCPP@,$CXXCPP,;t t
22535 s,@FFLAGS@,$FFLAGS,;t t
22536 s,@ac_ct_F77@,$ac_ct_F77,;t t
22537 s,@LIBTOOL@,$LIBTOOL,;t t
22538 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
22539 s,@ENABLE_FRAME_POINTERS_TRUE@,$ENABLE_FRAME_POINTERS_TRUE,;t t
22540 s,@ENABLE_FRAME_POINTERS_FALSE@,$ENABLE_FRAME_POINTERS_FALSE,;t t
22541 s,@X86_64_TRUE@,$X86_64_TRUE,;t t
22542 s,@X86_64_FALSE@,$X86_64_FALSE,;t t
22543 s,@acx_pthread_config@,$acx_pthread_config,;t t
22544 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
22545 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
22546 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
22547 s,@ac_google_start_namespace@,$ac_google_start_namespace,;t t
22548 s,@ac_google_end_namespace@,$ac_google_end_namespace,;t t
22549 s,@ac_google_namespace@,$ac_google_namespace,;t t
22550 s,@ac_cv_cxx_using_operator@,$ac_cv_cxx_using_operator,;t t
22551 s,@ac_cv___attribute___noreturn@,$ac_cv___attribute___noreturn,;t t
22552 s,@ac_cv___attribute___printf_4_5@,$ac_cv___attribute___printf_4_5,;t t
22553 s,@ac_cv_have___builtin_expect@,$ac_cv_have___builtin_expect,;t t
22554 s,@ac_cv_have_stdint_h@,$ac_cv_have_stdint_h,;t t
22555 s,@ac_cv_have_systypes_h@,$ac_cv_have_systypes_h,;t t
22556 s,@ac_cv_have_inttypes_h@,$ac_cv_have_inttypes_h,;t t
22557 s,@ac_cv_have_uint16_t@,$ac_cv_have_uint16_t,;t t
22558 s,@ac_cv_have_u_int16_t@,$ac_cv_have_u_int16_t,;t t
22559 s,@ac_cv_have___uint16@,$ac_cv_have___uint16,;t t
22560 s,@ac_cv_have_libgflags@,$ac_cv_have_libgflags,;t t
22561 s,@GFLAGS_LIBS@,$GFLAGS_LIBS,;t t
22562 s,@LIBOBJS@,$LIBOBJS,;t t
22563 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22568 cat >>$CONFIG_STATUS <<\_ACEOF
22569 # Split the substitutions into bite-sized pieces for seds with
22570 # small command number limits, like on Digital OSF/1 and HP-UX.
22571 ac_max_sed_lines=48
22572 ac_sed_frag=1 # Number of current file.
22573 ac_beg=1 # First line for current file.
22574 ac_end=$ac_max_sed_lines # Line after last line for current file.
22577 while $ac_more_lines; do
22578 if test $ac_beg -gt 1; then
22579 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22581 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22583 if test ! -s $tmp/subs.frag; then
22584 ac_more_lines=false
22586 # The purpose of the label and of the branching condition is to
22587 # speed up the sed processing (if there are no `@' at all, there
22588 # is no need to browse any of the substitutions).
22589 # These are the two extra sed commands mentioned above.
22591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22592 if test -z "$ac_sed_cmds"; then
22593 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22595 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22597 ac_sed_frag=`expr $ac_sed_frag + 1`
22599 ac_end=`expr $ac_end + $ac_max_sed_lines`
22602 if test -z "$ac_sed_cmds"; then
22605 fi # test -n "$CONFIG_FILES"
22608 cat >>$CONFIG_STATUS <<\_ACEOF
22609 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22610 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22612 - | *:- | *:-:* ) # input from stdin
22614 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22615 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22616 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22617 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22618 * ) ac_file_in=$ac_file.in ;;
22621 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22622 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22623 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22624 X"$ac_file" : 'X\(//\)[^/]' \| \
22625 X"$ac_file" : 'X\(//\)$' \| \
22626 X"$ac_file" : 'X\(/\)' \| \
22627 . : '\(.\)' 2>/dev/null ||
22629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22630 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22631 /^X\(\/\/\)$/{ s//\1/; q; }
22632 /^X\(\/\).*/{ s//\1/; q; }
22634 { if $as_mkdir_p; then
22639 while test ! -d "$as_dir"; do
22640 as_dirs="$as_dir $as_dirs"
22641 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22643 X"$as_dir" : 'X\(//\)[^/]' \| \
22644 X"$as_dir" : 'X\(//\)$' \| \
22645 X"$as_dir" : 'X\(/\)' \| \
22646 . : '\(.\)' 2>/dev/null ||
22648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22650 /^X\(\/\/\)$/{ s//\1/; q; }
22651 /^X\(\/\).*/{ s//\1/; q; }
22654 test ! -n "$as_dirs" || mkdir $as_dirs
22655 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22656 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22657 { (exit 1); exit 1; }; }; }
22661 if test "$ac_dir" != .; then
22662 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22663 # A "../" for each directory in $ac_dir_suffix.
22664 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22666 ac_dir_suffix= ac_top_builddir=
22670 .) # No --srcdir option. We are building in place.
22672 if test -z "$ac_top_builddir"; then
22675 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22677 [\\/]* | ?:[\\/]* ) # Absolute path.
22678 ac_srcdir=$srcdir$ac_dir_suffix;
22679 ac_top_srcdir=$srcdir ;;
22680 *) # Relative path.
22681 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22682 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22685 # Do not use `cd foo && pwd` to compute absolute paths, because
22686 # the directories may not exist.
22688 .) ac_abs_builddir="$ac_dir";;
22691 .) ac_abs_builddir=`pwd`;;
22692 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22693 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22696 case $ac_abs_builddir in
22697 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22699 case ${ac_top_builddir}. in
22700 .) ac_abs_top_builddir=$ac_abs_builddir;;
22701 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22702 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22705 case $ac_abs_builddir in
22706 .) ac_abs_srcdir=$ac_srcdir;;
22709 .) ac_abs_srcdir=$ac_abs_builddir;;
22710 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22711 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22714 case $ac_abs_builddir in
22715 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22717 case $ac_top_srcdir in
22718 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22719 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22720 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22726 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22727 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22730 # Let's still pretend it is `configure' which instantiates (i.e., don't
22731 # use $as_me), people would be surprised to read:
22732 # /* config.h. Generated by config.status. */
22733 if test x"$ac_file" = x-; then
22736 configure_input="$ac_file. "
22738 configure_input=$configure_input"Generated from `echo $ac_file_in |
22739 sed 's,.*/,,'` by configure."
22741 # First look for the input files in the build tree, otherwise in the
22743 ac_file_inputs=`IFS=:
22744 for f in $ac_file_in; do
22746 -) echo $tmp/stdin ;;
22748 # Absolute (can't be DOS-style, as IFS=:)
22749 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22750 echo "$as_me: error: cannot find input file: $f" >&2;}
22751 { (exit 1); exit 1; }; }
22754 if test -f "$f"; then
22757 elif test -f "$srcdir/$f"; then
22762 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22763 echo "$as_me: error: cannot find input file: $f" >&2;}
22764 { (exit 1); exit 1; }; }
22767 done` || { (exit 1); exit 1; }
22769 if test x"$ac_file" != x-; then
22770 { echo "$as_me:$LINENO: creating $ac_file" >&5
22771 echo "$as_me: creating $ac_file" >&6;}
22775 cat >>$CONFIG_STATUS <<_ACEOF
22779 cat >>$CONFIG_STATUS <<\_ACEOF
22781 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22782 s,@configure_input@,$configure_input,;t t
22783 s,@srcdir@,$ac_srcdir,;t t
22784 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22785 s,@top_srcdir@,$ac_top_srcdir,;t t
22786 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22787 s,@builddir@,$ac_builddir,;t t
22788 s,@abs_builddir@,$ac_abs_builddir,;t t
22789 s,@top_builddir@,$ac_top_builddir,;t t
22790 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22791 s,@INSTALL@,$ac_INSTALL,;t t
22792 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22794 if test x"$ac_file" != x-; then
22795 mv $tmp/out $ac_file
22803 cat >>$CONFIG_STATUS <<\_ACEOF
22806 # CONFIG_HEADER section.
22809 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22810 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22812 # ac_d sets the value in "#define NAME VALUE" lines.
22813 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22814 ac_dB='[ ].*$,\1#\2'
22817 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22818 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22819 ac_uB='$,\1#\2define\3'
22823 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22824 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22826 - | *:- | *:-:* ) # input from stdin
22828 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22829 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22830 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22831 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22832 * ) ac_file_in=$ac_file.in ;;
22835 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22836 echo "$as_me: creating $ac_file" >&6;}
22838 # First look for the input files in the build tree, otherwise in the
22840 ac_file_inputs=`IFS=:
22841 for f in $ac_file_in; do
22843 -) echo $tmp/stdin ;;
22845 # Absolute (can't be DOS-style, as IFS=:)
22846 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22847 echo "$as_me: error: cannot find input file: $f" >&2;}
22848 { (exit 1); exit 1; }; }
22849 # Do quote $f, to prevent DOS paths from being IFS'd.
22852 if test -f "$f"; then
22855 elif test -f "$srcdir/$f"; then
22860 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22861 echo "$as_me: error: cannot find input file: $f" >&2;}
22862 { (exit 1); exit 1; }; }
22865 done` || { (exit 1); exit 1; }
22866 # Remove the trailing spaces.
22867 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22871 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22872 # `conftest.undefs', that substitutes the proper values into
22873 # config.h.in to produce config.h. The first handles `#define'
22874 # templates, and the second `#undef' templates.
22875 # And first: Protect against being on the right side of a sed subst in
22876 # config.status. Protect against being in an unquoted here document
22877 # in config.status.
22878 rm -f conftest.defines conftest.undefs
22879 # Using a here document instead of a string reduces the quoting nightmare.
22880 # Putting comments in sed scripts is not portable.
22882 # `end' is used to avoid that the second main sed command (meant for
22883 # 0-ary CPP macros) applies to n-ary macro definitions.
22884 # See the Autoconf documentation for `clear'.
22885 cat >confdef2sed.sed <<\_ACEOF
22890 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22892 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22895 # If some macros were called several times there might be several times
22896 # the same #defines, which is useless. Nevertheless, we may not want to
22897 # sort them, since we want the *last* AC-DEFINE to be honored.
22898 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22899 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22900 rm -f confdef2sed.sed
22902 # This sed command replaces #undef with comments. This is necessary, for
22903 # example, in the case of _POSIX_SOURCE, which is predefined and required
22904 # on some systems where configure will not decide to define it.
22905 cat >>conftest.undefs <<\_ACEOF
22906 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22909 # Break up conftest.defines because some shells have a limit on the size
22910 # of here documents, and old seds have small limits too (100 cmds).
22911 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22912 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22913 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22914 echo ' :' >>$CONFIG_STATUS
22915 rm -f conftest.tail
22916 while grep . conftest.defines >/dev/null
22918 # Write a limited-size here document to $tmp/defines.sed.
22919 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22920 # Speed up: don't consider the non `#define' lines.
22921 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22922 # Work around the forget-to-reset-the-flag bug.
22923 echo 't clr' >>$CONFIG_STATUS
22924 echo ': clr' >>$CONFIG_STATUS
22925 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22927 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22929 mv $tmp/out $tmp/in
22931 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22932 rm -f conftest.defines
22933 mv conftest.tail conftest.defines
22935 rm -f conftest.defines
22936 echo ' fi # grep' >>$CONFIG_STATUS
22937 echo >>$CONFIG_STATUS
22939 # Break up conftest.undefs because some shells have a limit on the size
22940 # of here documents, and old seds have small limits too (100 cmds).
22941 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22942 rm -f conftest.tail
22943 while grep . conftest.undefs >/dev/null
22945 # Write a limited-size here document to $tmp/undefs.sed.
22946 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22947 # Speed up: don't consider the non `#undef'
22948 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22949 # Work around the forget-to-reset-the-flag bug.
22950 echo 't clr' >>$CONFIG_STATUS
22951 echo ': clr' >>$CONFIG_STATUS
22952 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22954 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22956 mv $tmp/out $tmp/in
22958 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22959 rm -f conftest.undefs
22960 mv conftest.tail conftest.undefs
22962 rm -f conftest.undefs
22964 cat >>$CONFIG_STATUS <<\_ACEOF
22965 # Let's still pretend it is `configure' which instantiates (i.e., don't
22966 # use $as_me), people would be surprised to read:
22967 # /* config.h. Generated by config.status. */
22968 if test x"$ac_file" = x-; then
22969 echo "/* Generated by configure. */" >$tmp/config.h
22971 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22973 cat $tmp/in >>$tmp/config.h
22975 if test x"$ac_file" != x-; then
22976 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22977 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22978 echo "$as_me: $ac_file is unchanged" >&6;}
22980 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22981 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22982 X"$ac_file" : 'X\(//\)[^/]' \| \
22983 X"$ac_file" : 'X\(//\)$' \| \
22984 X"$ac_file" : 'X\(/\)' \| \
22985 . : '\(.\)' 2>/dev/null ||
22987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22988 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22989 /^X\(\/\/\)$/{ s//\1/; q; }
22990 /^X\(\/\).*/{ s//\1/; q; }
22992 { if $as_mkdir_p; then
22997 while test ! -d "$as_dir"; do
22998 as_dirs="$as_dir $as_dirs"
22999 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23000 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23001 X"$as_dir" : 'X\(//\)[^/]' \| \
23002 X"$as_dir" : 'X\(//\)$' \| \
23003 X"$as_dir" : 'X\(/\)' \| \
23004 . : '\(.\)' 2>/dev/null ||
23006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23007 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23008 /^X\(\/\/\)$/{ s//\1/; q; }
23009 /^X\(\/\).*/{ s//\1/; q; }
23012 test ! -n "$as_dirs" || mkdir $as_dirs
23013 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23014 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23015 { (exit 1); exit 1; }; }; }
23018 mv $tmp/config.h $ac_file
23022 rm -f $tmp/config.h
23024 # Compute $ac_file's index in $config_headers.
23026 for _am_header in $config_headers :; do
23027 case $_am_header in
23028 $ac_file | $ac_file:* )
23031 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23034 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23035 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23036 X$ac_file : 'X\(//\)[^/]' \| \
23037 X$ac_file : 'X\(//\)$' \| \
23038 X$ac_file : 'X\(/\)' \| \
23039 . : '\(.\)' 2>/dev/null ||
23041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23042 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23043 /^X\(\/\/\)$/{ s//\1/; q; }
23044 /^X\(\/\).*/{ s//\1/; q; }
23045 s/.*/./; q'`/stamp-h$_am_stamp_count
23048 cat >>$CONFIG_STATUS <<\_ACEOF
23051 # CONFIG_COMMANDS section.
23053 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23054 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23055 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23056 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23057 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23058 X"$ac_dest" : 'X\(//\)[^/]' \| \
23059 X"$ac_dest" : 'X\(//\)$' \| \
23060 X"$ac_dest" : 'X\(/\)' \| \
23061 . : '\(.\)' 2>/dev/null ||
23063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23064 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23065 /^X\(\/\/\)$/{ s//\1/; q; }
23066 /^X\(\/\).*/{ s//\1/; q; }
23068 { if $as_mkdir_p; then
23073 while test ! -d "$as_dir"; do
23074 as_dirs="$as_dir $as_dirs"
23075 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23076 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23077 X"$as_dir" : 'X\(//\)[^/]' \| \
23078 X"$as_dir" : 'X\(//\)$' \| \
23079 X"$as_dir" : 'X\(/\)' \| \
23080 . : '\(.\)' 2>/dev/null ||
23082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23083 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23084 /^X\(\/\/\)$/{ s//\1/; q; }
23085 /^X\(\/\).*/{ s//\1/; q; }
23088 test ! -n "$as_dirs" || mkdir $as_dirs
23089 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23090 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23091 { (exit 1); exit 1; }; }; }
23095 if test "$ac_dir" != .; then
23096 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23097 # A "../" for each directory in $ac_dir_suffix.
23098 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23100 ac_dir_suffix= ac_top_builddir=
23104 .) # No --srcdir option. We are building in place.
23106 if test -z "$ac_top_builddir"; then
23109 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23111 [\\/]* | ?:[\\/]* ) # Absolute path.
23112 ac_srcdir=$srcdir$ac_dir_suffix;
23113 ac_top_srcdir=$srcdir ;;
23114 *) # Relative path.
23115 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23116 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23119 # Do not use `cd foo && pwd` to compute absolute paths, because
23120 # the directories may not exist.
23122 .) ac_abs_builddir="$ac_dir";;
23125 .) ac_abs_builddir=`pwd`;;
23126 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23127 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23130 case $ac_abs_builddir in
23131 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23133 case ${ac_top_builddir}. in
23134 .) ac_abs_top_builddir=$ac_abs_builddir;;
23135 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23136 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23139 case $ac_abs_builddir in
23140 .) ac_abs_srcdir=$ac_srcdir;;
23143 .) ac_abs_srcdir=$ac_abs_builddir;;
23144 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23145 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23148 case $ac_abs_builddir in
23149 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23151 case $ac_top_srcdir in
23152 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23153 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23154 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23159 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23160 echo "$as_me: executing $ac_dest commands" >&6;}
23162 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23163 # Strip MF so we end up with the name of the file.
23164 mf=`echo "$mf" | sed -e 's/:.*$//'`
23165 # Check whether this is an Automake generated Makefile or not.
23166 # We used to match only the files named `Makefile.in', but
23167 # some people rename them; so instead we look at the file content.
23168 # Grep'ing the first line is not enough: some people post-process
23169 # each Makefile.in and add a new line on top of each file to say so.
23170 # So let's grep whole file.
23171 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23172 dirpart=`(dirname "$mf") 2>/dev/null ||
23173 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23174 X"$mf" : 'X\(//\)[^/]' \| \
23175 X"$mf" : 'X\(//\)$' \| \
23176 X"$mf" : 'X\(/\)' \| \
23177 . : '\(.\)' 2>/dev/null ||
23179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23181 /^X\(\/\/\)$/{ s//\1/; q; }
23182 /^X\(\/\).*/{ s//\1/; q; }
23187 # Extract the definition of DEPDIR, am__include, and am__quote
23188 # from the Makefile without running `make'.
23189 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23190 test -z "$DEPDIR" && continue
23191 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23192 test -z "am__include" && continue
23193 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23194 # When using ansi2knr, U may be empty or an underscore; expand it
23195 U=`sed -n 's/^U = //p' < "$mf"`
23196 # Find all dependency output files, they are included files with
23197 # $(DEPDIR) in their names. We invoke sed twice because it is the
23198 # simplest approach to changing $(DEPDIR) to its actual value in the
23200 for file in `sed -n "
23201 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23202 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23203 # Make sure the directory exists.
23204 test -f "$dirpart/$file" && continue
23205 fdir=`(dirname "$file") 2>/dev/null ||
23206 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23207 X"$file" : 'X\(//\)[^/]' \| \
23208 X"$file" : 'X\(//\)$' \| \
23209 X"$file" : 'X\(/\)' \| \
23210 . : '\(.\)' 2>/dev/null ||
23212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23214 /^X\(\/\/\)$/{ s//\1/; q; }
23215 /^X\(\/\).*/{ s//\1/; q; }
23217 { if $as_mkdir_p; then
23218 mkdir -p $dirpart/$fdir
23220 as_dir=$dirpart/$fdir
23222 while test ! -d "$as_dir"; do
23223 as_dirs="$as_dir $as_dirs"
23224 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23225 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23226 X"$as_dir" : 'X\(//\)[^/]' \| \
23227 X"$as_dir" : 'X\(//\)$' \| \
23228 X"$as_dir" : 'X\(/\)' \| \
23229 . : '\(.\)' 2>/dev/null ||
23231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23232 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23233 /^X\(\/\/\)$/{ s//\1/; q; }
23234 /^X\(\/\).*/{ s//\1/; q; }
23237 test ! -n "$as_dirs" || mkdir $as_dirs
23238 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23239 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23240 { (exit 1); exit 1; }; }; }
23242 # echo "creating $dirpart/$file"
23243 echo '# dummy' > "$dirpart/$file"
23251 cat >>$CONFIG_STATUS <<\_ACEOF
23253 { (exit 0); exit 0; }
23255 chmod +x $CONFIG_STATUS
23256 ac_clean_files=$ac_clean_files_save
23259 # configure is writing to config.log, and then calls config.status.
23260 # config.status does its own redirection, appending to config.log.
23261 # Unfortunately, on DOS this fails, as config.log is still kept open
23262 # by configure, so config.status won't be able to write to it; its
23263 # output is simply discarded. So we exec the FD to /dev/null,
23264 # effectively closing config.log, so it can be properly (re)opened and
23265 # appended to by config.status. When coming back to configure, we
23266 # need to make the FD available again.
23267 if test "$no_create" != yes; then
23269 ac_config_status_args=
23270 test "$silent" = yes &&
23271 ac_config_status_args="$ac_config_status_args --quiet"
23273 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23275 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23276 # would make configure fail if this is the last instruction.
23277 $ac_cs_success || { (exit 1); exit 1; }