2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for LLVM 1.4.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
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='-llvm-'
426 PACKAGE_VERSION='1.4'
427 PACKAGE_STRING='LLVM 1.4'
428 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
430 ac_unique_file=""Makefile.config.in""
431 ac_subdirs_all="$ac_subdirs_all projects/sample"
432 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
433 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
434 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
439 ac_subdirs_all="$ac_subdirs_all ${i}"
440 # Factoring default headers for most tests.
441 ac_includes_default="\
444 # include <sys/types.h>
447 # include <sys/stat.h>
458 # if !STDC_HEADERS && HAVE_MEMORY_H
464 # include <strings.h>
467 # include <inttypes.h>
477 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 subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED JIT LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
480 # Initialize some variables set by options.
482 ac_init_version=false
483 # The variables have the same names as the options, with
484 # dashes changed to underlines.
492 program_transform_name=s,x,x,
500 # Installation directory options.
501 # These are left unexpanded so users can "make install exec_prefix=/foo"
502 # and all the variables that are supposed to be based on exec_prefix
503 # by default will actually change.
504 # Use braces instead of parens because sh, perl, etc. also accept them.
505 bindir='${exec_prefix}/bin'
506 sbindir='${exec_prefix}/sbin'
507 libexecdir='${exec_prefix}/libexec'
508 datadir='${prefix}/share'
509 sysconfdir='${prefix}/etc'
510 sharedstatedir='${prefix}/com'
511 localstatedir='${prefix}/var'
512 libdir='${exec_prefix}/lib'
513 includedir='${prefix}/include'
514 oldincludedir='/usr/include'
515 infodir='${prefix}/info'
516 mandir='${prefix}/man'
521 # If the previous option needs an argument, assign it.
522 if test -n "$ac_prev"; then
523 eval "$ac_prev=\$ac_option"
528 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
530 # Accept the important Cygnus configure options, so we can diagnose typos.
534 -bindir | --bindir | --bindi | --bind | --bin | --bi)
536 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 -build | --build | --buil | --bui | --bu)
540 ac_prev=build_alias ;;
541 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
542 build_alias=$ac_optarg ;;
544 -cache-file | --cache-file | --cache-fil | --cache-fi \
545 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
546 ac_prev=cache_file ;;
547 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
548 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
549 cache_file=$ac_optarg ;;
552 cache_file=config.cache ;;
554 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
556 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
558 datadir=$ac_optarg ;;
560 -disable-* | --disable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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'`
567 eval "enable_$ac_feature=no" ;;
569 -enable-* | --enable-*)
570 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
571 # Reject names that are not valid shell variable names.
572 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
573 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
574 { (exit 1); exit 1; }; }
575 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
577 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 eval "enable_$ac_feature='$ac_optarg'" ;;
582 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
583 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
584 | --exec | --exe | --ex)
585 ac_prev=exec_prefix ;;
586 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
587 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
588 | --exec=* | --exe=* | --ex=*)
589 exec_prefix=$ac_optarg ;;
591 -gas | --gas | --ga | --g)
592 # Obsolete; use --with-gas.
595 -help | --help | --hel | --he | -h)
597 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
598 ac_init_help=recursive ;;
599 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
600 ac_init_help=short ;;
602 -host | --host | --hos | --ho)
603 ac_prev=host_alias ;;
604 -host=* | --host=* | --hos=* | --ho=*)
605 host_alias=$ac_optarg ;;
607 -includedir | --includedir | --includedi | --included | --include \
608 | --includ | --inclu | --incl | --inc)
609 ac_prev=includedir ;;
610 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
611 | --includ=* | --inclu=* | --incl=* | --inc=*)
612 includedir=$ac_optarg ;;
614 -infodir | --infodir | --infodi | --infod | --info | --inf)
616 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
617 infodir=$ac_optarg ;;
619 -libdir | --libdir | --libdi | --libd)
621 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
625 | --libexe | --libex | --libe)
626 ac_prev=libexecdir ;;
627 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
628 | --libexe=* | --libex=* | --libe=*)
629 libexecdir=$ac_optarg ;;
631 -localstatedir | --localstatedir | --localstatedi | --localstated \
632 | --localstate | --localstat | --localsta | --localst \
633 | --locals | --local | --loca | --loc | --lo)
634 ac_prev=localstatedir ;;
635 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
636 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
637 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
638 localstatedir=$ac_optarg ;;
640 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
642 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
646 # Obsolete; use --without-fp.
649 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
650 | --no-cr | --no-c | -n)
653 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
654 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
658 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
659 | --oldin | --oldi | --old | --ol | --o)
660 ac_prev=oldincludedir ;;
661 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
662 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
663 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
664 oldincludedir=$ac_optarg ;;
666 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
668 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 -program-prefix | --program-prefix | --program-prefi | --program-pref \
672 | --program-pre | --program-pr | --program-p)
673 ac_prev=program_prefix ;;
674 -program-prefix=* | --program-prefix=* | --program-prefi=* \
675 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
676 program_prefix=$ac_optarg ;;
678 -program-suffix | --program-suffix | --program-suffi | --program-suff \
679 | --program-suf | --program-su | --program-s)
680 ac_prev=program_suffix ;;
681 -program-suffix=* | --program-suffix=* | --program-suffi=* \
682 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
683 program_suffix=$ac_optarg ;;
685 -program-transform-name | --program-transform-name \
686 | --program-transform-nam | --program-transform-na \
687 | --program-transform-n | --program-transform- \
688 | --program-transform | --program-transfor \
689 | --program-transfo | --program-transf \
690 | --program-trans | --program-tran \
691 | --progr-tra | --program-tr | --program-t)
692 ac_prev=program_transform_name ;;
693 -program-transform-name=* | --program-transform-name=* \
694 | --program-transform-nam=* | --program-transform-na=* \
695 | --program-transform-n=* | --program-transform-=* \
696 | --program-transform=* | --program-transfor=* \
697 | --program-transfo=* | --program-transf=* \
698 | --program-trans=* | --program-tran=* \
699 | --progr-tra=* | --program-tr=* | --program-t=*)
700 program_transform_name=$ac_optarg ;;
702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
703 | -silent | --silent | --silen | --sile | --sil)
706 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
708 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
710 sbindir=$ac_optarg ;;
712 -sharedstatedir | --sharedstatedir | --sharedstatedi \
713 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
714 | --sharedst | --shareds | --shared | --share | --shar \
716 ac_prev=sharedstatedir ;;
717 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
718 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
719 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
721 sharedstatedir=$ac_optarg ;;
723 -site | --site | --sit)
725 -site=* | --site=* | --sit=*)
728 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
730 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
734 | --syscon | --sysco | --sysc | --sys | --sy)
735 ac_prev=sysconfdir ;;
736 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
737 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
738 sysconfdir=$ac_optarg ;;
740 -target | --target | --targe | --targ | --tar | --ta | --t)
741 ac_prev=target_alias ;;
742 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
743 target_alias=$ac_optarg ;;
745 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 -version | --version | --versio | --versi | --vers | -V)
752 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
753 # Reject names that are not valid shell variable names.
754 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
755 { echo "$as_me: error: invalid package name: $ac_package" >&2
756 { (exit 1); exit 1; }; }
757 ac_package=`echo $ac_package| sed 's/-/_/g'`
759 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 eval "with_$ac_package='$ac_optarg'" ;;
764 -without-* | --without-*)
765 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
766 # Reject names that are not valid shell variable names.
767 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
768 { echo "$as_me: error: invalid package name: $ac_package" >&2
769 { (exit 1); exit 1; }; }
770 ac_package=`echo $ac_package | sed 's/-/_/g'`
771 eval "with_$ac_package=no" ;;
774 # Obsolete; use --with-x.
777 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
778 | --x-incl | --x-inc | --x-in | --x-i)
779 ac_prev=x_includes ;;
780 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
781 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
782 x_includes=$ac_optarg ;;
784 -x-libraries | --x-libraries | --x-librarie | --x-librari \
785 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
786 ac_prev=x_libraries ;;
787 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
788 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
789 x_libraries=$ac_optarg ;;
791 -*) { echo "$as_me: error: unrecognized option: $ac_option
792 Try \`$0 --help' for more information." >&2
793 { (exit 1); exit 1; }; }
797 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
798 # Reject names that are not valid shell variable names.
799 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
800 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
801 { (exit 1); exit 1; }; }
802 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
803 eval "$ac_envvar='$ac_optarg'"
807 # FIXME: should be removed in autoconf 3.0.
808 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
809 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
810 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
811 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
817 if test -n "$ac_prev"; then
818 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
819 { echo "$as_me: error: missing argument to $ac_option" >&2
820 { (exit 1); exit 1; }; }
823 # Be sure to have absolute paths.
824 for ac_var in exec_prefix prefix
826 eval ac_val=$`echo $ac_var`
828 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830 { (exit 1); exit 1; }; };;
834 # Be sure to have absolute paths.
835 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
836 localstatedir libdir includedir oldincludedir infodir mandir
838 eval ac_val=$`echo $ac_var`
840 [\\/$]* | ?:[\\/]* ) ;;
841 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
842 { (exit 1); exit 1; }; };;
846 # There might be people who depend on the old broken behavior: `$host'
847 # used to hold the argument of --host etc.
848 # FIXME: To remove some day.
853 # FIXME: To remove some day.
854 if test "x$host_alias" != x; then
855 if test "x$build_alias" = x; then
856 cross_compiling=maybe
857 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
858 If a cross compiler is detected then cross compile mode will be used." >&2
859 elif test "x$build_alias" != "x$host_alias"; then
865 test -n "$host_alias" && ac_tool_prefix=$host_alias-
867 test "$silent" = yes && exec 6>/dev/null
870 # Find the source files, if location was not specified.
871 if test -z "$srcdir"; then
872 ac_srcdir_defaulted=yes
873 # Try the directory containing this script, then its parent.
874 ac_confdir=`(dirname "$0") 2>/dev/null ||
875 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
876 X"$0" : 'X\(//\)[^/]' \| \
877 X"$0" : 'X\(//\)$' \| \
878 X"$0" : 'X\(/\)' \| \
879 . : '\(.\)' 2>/dev/null ||
881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
883 /^X\(\/\/\)$/{ s//\1/; q; }
884 /^X\(\/\).*/{ s//\1/; q; }
887 if test ! -r $srcdir/$ac_unique_file; then
891 ac_srcdir_defaulted=no
893 if test ! -r $srcdir/$ac_unique_file; then
894 if test "$ac_srcdir_defaulted" = yes; then
895 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
896 { (exit 1); exit 1; }; }
898 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
899 { (exit 1); exit 1; }; }
902 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
903 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
904 { (exit 1); exit 1; }; }
905 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
906 ac_env_build_alias_set=${build_alias+set}
907 ac_env_build_alias_value=$build_alias
908 ac_cv_env_build_alias_set=${build_alias+set}
909 ac_cv_env_build_alias_value=$build_alias
910 ac_env_host_alias_set=${host_alias+set}
911 ac_env_host_alias_value=$host_alias
912 ac_cv_env_host_alias_set=${host_alias+set}
913 ac_cv_env_host_alias_value=$host_alias
914 ac_env_target_alias_set=${target_alias+set}
915 ac_env_target_alias_value=$target_alias
916 ac_cv_env_target_alias_set=${target_alias+set}
917 ac_cv_env_target_alias_value=$target_alias
918 ac_env_CXX_set=${CXX+set}
919 ac_env_CXX_value=$CXX
920 ac_cv_env_CXX_set=${CXX+set}
921 ac_cv_env_CXX_value=$CXX
922 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
923 ac_env_CXXFLAGS_value=$CXXFLAGS
924 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
925 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
926 ac_env_LDFLAGS_set=${LDFLAGS+set}
927 ac_env_LDFLAGS_value=$LDFLAGS
928 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_cv_env_LDFLAGS_value=$LDFLAGS
930 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
931 ac_env_CPPFLAGS_value=$CPPFLAGS
932 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
934 ac_env_CC_set=${CC+set}
936 ac_cv_env_CC_set=${CC+set}
937 ac_cv_env_CC_value=$CC
938 ac_env_CFLAGS_set=${CFLAGS+set}
939 ac_env_CFLAGS_value=$CFLAGS
940 ac_cv_env_CFLAGS_set=${CFLAGS+set}
941 ac_cv_env_CFLAGS_value=$CFLAGS
942 ac_env_CPP_set=${CPP+set}
943 ac_env_CPP_value=$CPP
944 ac_cv_env_CPP_set=${CPP+set}
945 ac_cv_env_CPP_value=$CPP
946 ac_env_CXXCPP_set=${CXXCPP+set}
947 ac_env_CXXCPP_value=$CXXCPP
948 ac_cv_env_CXXCPP_set=${CXXCPP+set}
949 ac_cv_env_CXXCPP_value=$CXXCPP
950 ac_env_F77_set=${F77+set}
951 ac_env_F77_value=$F77
952 ac_cv_env_F77_set=${F77+set}
953 ac_cv_env_F77_value=$F77
954 ac_env_FFLAGS_set=${FFLAGS+set}
955 ac_env_FFLAGS_value=$FFLAGS
956 ac_cv_env_FFLAGS_set=${FFLAGS+set}
957 ac_cv_env_FFLAGS_value=$FFLAGS
960 # Report the --help message.
962 if test "$ac_init_help" = "long"; then
963 # Omit some internal or obsolete options to make the list less imposing.
964 # This message is too long to be a string in the A/UX 3.1 sh.
966 \`configure' configures LLVM 1.4 to adapt to many kinds of systems.
968 Usage: $0 [OPTION]... [VAR=VALUE]...
970 To assign environment variables (e.g., CC, CFLAGS...), specify them as
971 VAR=VALUE. See below for descriptions of some of the useful variables.
973 Defaults for the options are specified in brackets.
976 -h, --help display this help and exit
977 --help=short display options specific to this package
978 --help=recursive display the short help of all the included packages
979 -V, --version display version information and exit
980 -q, --quiet, --silent do not print \`checking...' messages
981 --cache-file=FILE cache test results in FILE [disabled]
982 -C, --config-cache alias for \`--cache-file=config.cache'
983 -n, --no-create do not create output files
984 --srcdir=DIR find the sources in DIR [configure dir or \`..']
989 Installation directories:
990 --prefix=PREFIX install architecture-independent files in PREFIX
992 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
995 By default, \`make install' will install all the files in
996 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
997 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
998 for instance \`--prefix=\$HOME'.
1000 For better control, use the options below.
1002 Fine tuning of the installation directories:
1003 --bindir=DIR user executables [EPREFIX/bin]
1004 --sbindir=DIR system admin executables [EPREFIX/sbin]
1005 --libexecdir=DIR program executables [EPREFIX/libexec]
1006 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1007 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1008 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1009 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1010 --libdir=DIR object code libraries [EPREFIX/lib]
1011 --includedir=DIR C header files [PREFIX/include]
1012 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1013 --infodir=DIR info documentation [PREFIX/info]
1014 --mandir=DIR man documentation [PREFIX/man]
1020 --build=BUILD configure for building on BUILD [guessed]
1021 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1022 --target=TARGET configure for building compilers for TARGET [HOST]
1026 if test -n "$ac_init_help"; then
1027 case $ac_init_help in
1028 short | recursive ) echo "Configuration of LLVM 1.4:";;
1033 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1034 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1035 --enable-shared[=PKGS]
1036 build shared libraries [default=yes]
1037 --enable-static[=PKGS]
1038 build static libraries [default=yes]
1039 --enable-fast-install[=PKGS]
1040 optimize for fast installation [default=yes]
1041 --disable-libtool-lock avoid locking (might break parallel builds)
1042 --enable-optimized Compile with optimizations enabled (default is NO)
1043 --enable-jit Enable Just In Time Compiling (default is YES)
1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1048 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1049 --with-pic try to use only PIC/non-PIC objects [default=use
1052 include additional configurations [automatic]
1053 --with-llvmgccdir Location of LLVM GCC front-end
1055 Some influential environment variables:
1056 CXX C++ compiler command
1057 CXXFLAGS 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>
1062 CC C compiler command
1063 CFLAGS 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 <llvmbugs@cs.uiuc.edu>.
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 LLVM $as_me 1.4, 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
1520 for ac_dir in autoconf $srcdir/autoconf; do
1521 if test -f $ac_dir/install-sh; then
1523 ac_install_sh="$ac_aux_dir/install-sh -c"
1525 elif test -f $ac_dir/install.sh; then
1527 ac_install_sh="$ac_aux_dir/install.sh -c"
1529 elif test -f $ac_dir/shtool; then
1531 ac_install_sh="$ac_aux_dir/shtool install -c"
1535 if test -z "$ac_aux_dir"; then
1536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1537 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1538 { (exit 1); exit 1; }; }
1540 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1546 if test ${srcdir} != "." ; then
1547 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1548 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1549 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1550 { (exit 1); exit 1; }; }
1554 for i in `ls ${srcdir}/projects`
1556 if test -d ${srcdir}/projects/${i} ; then
1561 subdirs="$subdirs projects/sample"
1565 subdirs="$subdirs projects/Stacker"
1569 subdirs="$subdirs projects/llvm-test"
1573 subdirs="$subdirs projects/llvm-reopt"
1577 subdirs="$subdirs projects/llvm-gcc"
1581 subdirs="$subdirs projects/llvm-java"
1585 subdirs="$subdirs projects/llvm-tv"
1589 subdirs="$subdirs projects/llvm-fefw"
1593 subdirs="$subdirs ${i}"
1599 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
1602 ac_config_files="$ac_config_files Makefile.config include/llvm/Support/DataTypes.h include/llvm/Support/ThreadSupport.h include/llvm/ADT/hash_map include/llvm/ADT/hash_set include/llvm/ADT/iterator"
1605 ac_config_commands="$ac_config_commands Makefile"
1608 ac_config_commands="$ac_config_commands Makefile.common"
1611 ac_config_commands="$ac_config_commands examples/Makefile"
1614 ac_config_commands="$ac_config_commands lib/Makefile"
1617 ac_config_commands="$ac_config_commands runtime/Makefile"
1620 ac_config_commands="$ac_config_commands test/Makefile"
1623 ac_config_commands="$ac_config_commands test/Makefile.tests"
1626 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1629 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1632 ac_config_commands="$ac_config_commands tools/Makefile"
1635 ac_config_commands="$ac_config_commands utils/Makefile"
1638 ac_config_commands="$ac_config_commands projects/Makefile"
1642 # Find a good install program. We prefer a C program (faster),
1643 # so one script is as good as another. But avoid the broken or
1644 # incompatible versions:
1645 # SysV /etc/install, /usr/sbin/install
1646 # SunOS /usr/etc/install
1647 # IRIX /sbin/install
1649 # AmigaOS /C/install, which installs bootblocks on floppy discs
1650 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1651 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1652 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1653 # OS/2's system install, which has a completely different semantic
1654 # ./install, which can be erroneously created by make from ./install.sh.
1655 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1656 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1657 if test -z "$INSTALL"; then
1658 if test "${ac_cv_path_install+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 test -z "$as_dir" && as_dir=.
1666 # Account for people who put trailing slashes in PATH elements.
1668 ./ | .// | /cC/* | \
1669 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1670 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1673 # OSF1 and SCO ODT 3.0 have their own names for install.
1674 # Don't use installbsd from OSF since it installs stuff as root
1676 for ac_prog in ginstall scoinst install; do
1677 for ac_exec_ext in '' $ac_executable_extensions; do
1678 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1679 if test $ac_prog = install &&
1680 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1681 # AIX install. It has an incompatible calling convention.
1683 elif test $ac_prog = install &&
1684 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1685 # program-specific install script used by HP pwplus--don't use.
1688 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1700 if test "${ac_cv_path_install+set}" = set; then
1701 INSTALL=$ac_cv_path_install
1703 # As a last resort, use the slow shell script. We don't cache a
1704 # path for INSTALL within a source directory, because that will
1705 # break other packages using the cache if that directory is
1706 # removed, or if the path is relative.
1707 INSTALL=$ac_install_sh
1710 echo "$as_me:$LINENO: result: $INSTALL" >&5
1711 echo "${ECHO_T}$INSTALL" >&6
1713 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1714 # It thinks the first close brace ends the variable substitution.
1715 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1717 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1719 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1722 # Make sure we can run config.sub.
1723 $ac_config_sub sun4 >/dev/null 2>&1 ||
1724 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1725 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1726 { (exit 1); exit 1; }; }
1728 echo "$as_me:$LINENO: checking build system type" >&5
1729 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1730 if test "${ac_cv_build+set}" = set; then
1731 echo $ECHO_N "(cached) $ECHO_C" >&6
1733 ac_cv_build_alias=$build_alias
1734 test -z "$ac_cv_build_alias" &&
1735 ac_cv_build_alias=`$ac_config_guess`
1736 test -z "$ac_cv_build_alias" &&
1737 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1738 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1739 { (exit 1); exit 1; }; }
1740 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1741 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1742 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1743 { (exit 1); exit 1; }; }
1746 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1747 echo "${ECHO_T}$ac_cv_build" >&6
1749 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1750 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1751 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1754 echo "$as_me:$LINENO: checking host system type" >&5
1755 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1756 if test "${ac_cv_host+set}" = set; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1759 ac_cv_host_alias=$host_alias
1760 test -z "$ac_cv_host_alias" &&
1761 ac_cv_host_alias=$ac_cv_build_alias
1762 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1763 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1764 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1765 { (exit 1); exit 1; }; }
1768 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1769 echo "${ECHO_T}$ac_cv_host" >&6
1771 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1772 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1773 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1776 echo "$as_me:$LINENO: checking target system type" >&5
1777 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1778 if test "${ac_cv_target+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 ac_cv_target_alias=$target_alias
1782 test "x$ac_cv_target_alias" = "x" &&
1783 ac_cv_target_alias=$ac_cv_host_alias
1784 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1785 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1786 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1787 { (exit 1); exit 1; }; }
1790 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1791 echo "${ECHO_T}$ac_cv_target" >&6
1792 target=$ac_cv_target
1793 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1794 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1795 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1798 # The aliases save the names the user supplied, while $host etc.
1799 # will get canonicalized.
1800 test -n "$target_alias" &&
1801 test "$program_prefix$program_suffix$program_transform_name" = \
1803 program_prefix=${target_alias}-
1806 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1807 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1817 platform_type="Cygwin"
1822 platform_type="Darwin"
1827 platform_type="FreeBSD"
1832 platform_type="Interix"
1837 platform_type="Linux"
1838 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1840 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1847 platform_type="SunOS"
1848 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1850 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1857 platform_type="Win32"
1862 platform_type="Win32"
1867 platform_type="Unknown"
1871 if test "$platform_type" = "Unknown" ; then
1872 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1873 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1874 { (exit 1); exit 1; }; }
1877 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1881 echo "$as_me:$LINENO: checking target architecture" >&5
1882 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1884 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1912 echo "$as_me:$LINENO: result: $ARCH" >&5
1913 echo "${ECHO_T}$ARCH" >&6
1916 ac_cpp='$CXXCPP $CPPFLAGS'
1917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1920 if test -n "$ac_tool_prefix"; then
1921 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1924 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1925 echo "$as_me:$LINENO: checking for $ac_word" >&5
1926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1927 if test "${ac_cv_prog_CXX+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1930 if test -n "$CXX"; then
1931 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937 test -z "$as_dir" && as_dir=.
1938 for ac_exec_ext in '' $ac_executable_extensions; do
1939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 if test -n "$CXX"; then
1951 echo "$as_me:$LINENO: result: $CXX" >&5
1952 echo "${ECHO_T}$CXX" >&6
1954 echo "$as_me:$LINENO: result: no" >&5
1955 echo "${ECHO_T}no" >&6
1958 test -n "$CXX" && break
1961 if test -z "$CXX"; then
1963 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1965 # Extract the first word of "$ac_prog", so it can be a program name with args.
1966 set dummy $ac_prog; ac_word=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 if test -n "$ac_ct_CXX"; then
1973 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 test -z "$as_dir" && as_dir=.
1980 for ac_exec_ext in '' $ac_executable_extensions; do
1981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982 ac_cv_prog_ac_ct_CXX="$ac_prog"
1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1992 if test -n "$ac_ct_CXX"; then
1993 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1994 echo "${ECHO_T}$ac_ct_CXX" >&6
1996 echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
2000 test -n "$ac_ct_CXX" && break
2002 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2008 # Provide some information about the compiler.
2009 echo "$as_me:$LINENO:" \
2010 "checking for C++ compiler version" >&5
2011 ac_compiler=`set X $ac_compile; echo $2`
2012 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2013 (eval $ac_compiler --version </dev/null >&5) 2>&5
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); }
2017 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2018 (eval $ac_compiler -v </dev/null >&5) 2>&5
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }
2022 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2023 (eval $ac_compiler -V </dev/null >&5) 2>&5
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }
2028 cat >conftest.$ac_ext <<_ACEOF
2031 cat confdefs.h >>conftest.$ac_ext
2032 cat >>conftest.$ac_ext <<_ACEOF
2033 /* end confdefs.h. */
2043 ac_clean_files_save=$ac_clean_files
2044 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2045 # Try to create an executable without -o first, disregard a.out.
2046 # It will help us diagnose broken compilers, and finding out an intuition
2048 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2049 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2050 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2051 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2052 (eval $ac_link_default) 2>&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }; then
2056 # Find the output, starting from the most likely. This scheme is
2057 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2060 # Be careful to initialize this variable, since it used to be cached.
2061 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2063 # b.out is created by i960 compilers.
2064 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2066 test -f "$ac_file" || continue
2068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2071 # This is the source file.
2074 # We found the default executable, but exeext='' is most
2078 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2079 # FIXME: I believe we export ac_cv_exeext for Libtool,
2080 # but it would be cool to find out if it's true. Does anybody
2081 # maintain Libtool? --akim.
2089 echo "$as_me: failed program was:" >&5
2090 sed 's/^/| /' conftest.$ac_ext >&5
2092 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2093 See \`config.log' for more details." >&5
2094 echo "$as_me: error: C++ compiler cannot create executables
2095 See \`config.log' for more details." >&2;}
2096 { (exit 77); exit 77; }; }
2099 ac_exeext=$ac_cv_exeext
2100 echo "$as_me:$LINENO: result: $ac_file" >&5
2101 echo "${ECHO_T}$ac_file" >&6
2103 # Check the compiler produces executables we can run. If not, either
2104 # the compiler is broken, or we cross compile.
2105 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2106 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2107 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2108 # If not cross compiling, check that we can run a simple program.
2109 if test "$cross_compiling" != yes; then
2110 if { ac_try='./$ac_file'
2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; }; then
2118 if test "$cross_compiling" = maybe; then
2121 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2122 If you meant to cross compile, use \`--host'.
2123 See \`config.log' for more details." >&5
2124 echo "$as_me: error: cannot run C++ compiled programs.
2125 If you meant to cross compile, use \`--host'.
2126 See \`config.log' for more details." >&2;}
2127 { (exit 1); exit 1; }; }
2131 echo "$as_me:$LINENO: result: yes" >&5
2132 echo "${ECHO_T}yes" >&6
2134 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2135 ac_clean_files=$ac_clean_files_save
2136 # Check the compiler produces executables we can run. If not, either
2137 # the compiler is broken, or we cross compile.
2138 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2139 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2140 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2141 echo "${ECHO_T}$cross_compiling" >&6
2143 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2144 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2146 (eval $ac_link) 2>&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; then
2150 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2151 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2152 # work properly (i.e., refer to `conftest.exe'), while it won't with
2154 for ac_file in conftest.exe conftest conftest.*; do
2155 test -f "$ac_file" || continue
2157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2158 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2165 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2166 See \`config.log' for more details." >&5
2167 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2168 See \`config.log' for more details." >&2;}
2169 { (exit 1); exit 1; }; }
2172 rm -f conftest$ac_cv_exeext
2173 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2174 echo "${ECHO_T}$ac_cv_exeext" >&6
2176 rm -f conftest.$ac_ext
2177 EXEEXT=$ac_cv_exeext
2179 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2180 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2181 if test "${ac_cv_objext+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 cat >conftest.$ac_ext <<_ACEOF
2187 cat confdefs.h >>conftest.$ac_ext
2188 cat >>conftest.$ac_ext <<_ACEOF
2189 /* end confdefs.h. */
2199 rm -f conftest.o conftest.obj
2200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2201 (eval $ac_compile) 2>&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; then
2205 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2208 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2213 echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2216 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2217 See \`config.log' for more details." >&5
2218 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2219 See \`config.log' for more details." >&2;}
2220 { (exit 1); exit 1; }; }
2223 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2225 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2226 echo "${ECHO_T}$ac_cv_objext" >&6
2227 OBJEXT=$ac_cv_objext
2229 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2230 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2231 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2234 cat >conftest.$ac_ext <<_ACEOF
2237 cat confdefs.h >>conftest.$ac_ext
2238 cat >>conftest.$ac_ext <<_ACEOF
2239 /* end confdefs.h. */
2252 rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254 (eval $ac_compile) 2>conftest.er1
2256 grep -v '^ *+' conftest.er1 >conftest.err
2258 cat conftest.err >&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); } &&
2261 { ac_try='test -z "$ac_cxx_werror_flag"
2262 || test ! -s conftest.err'
2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; } &&
2268 { ac_try='test -s conftest.$ac_objext'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; }; then
2276 echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2282 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2285 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2286 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2287 GXX=`test $ac_compiler_gnu = yes && echo yes`
2288 ac_test_CXXFLAGS=${CXXFLAGS+set}
2289 ac_save_CXXFLAGS=$CXXFLAGS
2291 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2292 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2293 if test "${ac_cv_prog_cxx_g+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 cat >conftest.$ac_ext <<_ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2315 grep -v '^ *+' conftest.er1 >conftest.err
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -z "$ac_cxx_werror_flag"
2321 || test ! -s conftest.err'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 ac_cv_prog_cxx_g=yes
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2343 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2344 if test "$ac_test_CXXFLAGS" = set; then
2345 CXXFLAGS=$ac_save_CXXFLAGS
2346 elif test $ac_cv_prog_cxx_g = yes; then
2347 if test "$GXX" = yes; then
2353 if test "$GXX" = yes; then
2359 for ac_declaration in \
2361 'extern "C" void std::exit (int) throw (); using std::exit;' \
2362 'extern "C" void std::exit (int); using std::exit;' \
2363 'extern "C" void exit (int) throw ();' \
2364 'extern "C" void exit (int);' \
2367 cat >conftest.$ac_ext <<_ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2383 rm -f conftest.$ac_objext
2384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385 (eval $ac_compile) 2>conftest.er1
2387 grep -v '^ *+' conftest.er1 >conftest.err
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -z "$ac_cxx_werror_flag"
2393 || test ! -s conftest.err'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2413 cat >conftest.$ac_ext <<_ACEOF
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h. */
2428 rm -f conftest.$ac_objext
2429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430 (eval $ac_compile) 2>conftest.er1
2432 grep -v '^ *+' conftest.er1 >conftest.err
2434 cat conftest.err >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
2437 { ac_try='test -z "$ac_cxx_werror_flag"
2438 || test ! -s conftest.err'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; } &&
2444 { ac_try='test -s conftest.$ac_objext'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459 if test -n "$ac_declaration"; then
2460 echo '#ifdef __cplusplus' >>confdefs.h
2461 echo $ac_declaration >>confdefs.h
2462 echo '#endif' >>confdefs.h
2466 ac_cpp='$CPP $CPPFLAGS'
2467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472 ac_cpp='$CPP $CPPFLAGS'
2473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2476 if test -n "$ac_tool_prefix"; then
2479 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2480 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2481 echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2483 if test "${ac_cv_prog_CC+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 if test -n "$CC"; then
2487 ac_cv_prog_CC="$CC" # Let the user override the test.
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2496 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 if test -n "$CC"; then
2507 echo "$as_me:$LINENO: result: $CC" >&5
2508 echo "${ECHO_T}$CC" >&6
2510 echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6
2514 test -n "$CC" && break
2517 if test -z "$CC"; then
2521 # Extract the first word of "$ac_prog", so it can be a program name with args.
2522 set dummy $ac_prog; ac_word=$2
2523 echo "$as_me:$LINENO: checking for $ac_word" >&5
2524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2525 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 if test -n "$ac_ct_CC"; then
2529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2538 ac_cv_prog_ac_ct_CC="$ac_prog"
2539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2548 if test -n "$ac_ct_CC"; then
2549 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2550 echo "${ECHO_T}$ac_ct_CC" >&6
2552 echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6
2556 test -n "$ac_ct_CC" && break
2563 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2564 See \`config.log' for more details." >&5
2565 echo "$as_me: error: no acceptable C compiler found in \$PATH
2566 See \`config.log' for more details." >&2;}
2567 { (exit 1); exit 1; }; }
2569 # Provide some information about the compiler.
2570 echo "$as_me:$LINENO:" \
2571 "checking for C compiler version" >&5
2572 ac_compiler=`set X $ac_compile; echo $2`
2573 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2574 (eval $ac_compiler --version </dev/null >&5) 2>&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }
2578 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2579 (eval $ac_compiler -v </dev/null >&5) 2>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }
2583 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2584 (eval $ac_compiler -V </dev/null >&5) 2>&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }
2589 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2590 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2591 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 cat >conftest.$ac_ext <<_ACEOF
2597 cat confdefs.h >>conftest.$ac_ext
2598 cat >>conftest.$ac_ext <<_ACEOF
2599 /* end confdefs.h. */
2612 rm -f conftest.$ac_objext
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614 (eval $ac_compile) 2>conftest.er1
2616 grep -v '^ *+' conftest.er1 >conftest.err
2618 cat conftest.err >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
2621 { ac_try='test -z "$ac_c_werror_flag"
2622 || test ! -s conftest.err'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; } &&
2628 { ac_try='test -s conftest.$ac_objext'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; }; then
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2642 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2645 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2646 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2647 GCC=`test $ac_compiler_gnu = yes && echo yes`
2648 ac_test_CFLAGS=${CFLAGS+set}
2649 ac_save_CFLAGS=$CFLAGS
2651 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2652 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2653 if test "${ac_cv_prog_cc_g+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2656 cat >conftest.$ac_ext <<_ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h. */
2671 rm -f conftest.$ac_objext
2672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2673 (eval $ac_compile) 2>conftest.er1
2675 grep -v '^ *+' conftest.er1 >conftest.err
2677 cat conftest.err >&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); } &&
2680 { ac_try='test -z "$ac_c_werror_flag"
2681 || test ! -s conftest.err'
2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; } &&
2687 { ac_try='test -s conftest.$ac_objext'
2688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; }; then
2695 echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2702 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2703 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2704 if test "$ac_test_CFLAGS" = set; then
2705 CFLAGS=$ac_save_CFLAGS
2706 elif test $ac_cv_prog_cc_g = yes; then
2707 if test "$GCC" = yes; then
2713 if test "$GCC" = yes; then
2719 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2720 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2721 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 ac_cv_prog_cc_stdc=no
2726 cat >conftest.$ac_ext <<_ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2734 #include <sys/types.h>
2735 #include <sys/stat.h>
2736 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2737 struct buf { int x; };
2738 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2739 static char *e (p, i)
2745 static char *f (char * (*g) (char **, int), char **p, ...)
2750 s = g (p, va_arg (v,int));
2755 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2756 function prototypes and stuff, but not '\xHH' hex character constants.
2757 These don't provoke an error unfortunately, instead are silently treated
2758 as 'x'. The following induces an error, until -std1 is added to get
2759 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2760 array size at least. It's necessary to write '\x00'==0 to get something
2761 that's true only with -std1. */
2762 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2764 int test (int i, double x);
2765 struct s1 {int (*f) (int a);};
2766 struct s2 {int (*f) (double a);};
2767 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2773 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2778 # Don't try gcc -ansi; that turns off useful extensions and
2779 # breaks some systems' header files.
2780 # AIX -qlanglvl=ansi
2781 # Ultrix and OSF/1 -std1
2782 # HP-UX 10.20 and later -Ae
2783 # HP-UX older versions -Aa -D_HPUX_SOURCE
2784 # SVR4 -Xc -D__EXTENSIONS__
2785 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2787 CC="$ac_save_CC $ac_arg"
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790 (eval $ac_compile) 2>conftest.er1
2792 grep -v '^ *+' conftest.er1 >conftest.err
2794 cat conftest.err >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } &&
2797 { ac_try='test -z "$ac_c_werror_flag"
2798 || test ! -s conftest.err'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; } &&
2804 { ac_try='test -s conftest.$ac_objext'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; }; then
2810 ac_cv_prog_cc_stdc=$ac_arg
2813 echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2817 rm -f conftest.err conftest.$ac_objext
2819 rm -f conftest.$ac_ext conftest.$ac_objext
2824 case "x$ac_cv_prog_cc_stdc" in
2826 echo "$as_me:$LINENO: result: none needed" >&5
2827 echo "${ECHO_T}none needed" >&6 ;;
2829 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2830 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2831 CC="$CC $ac_cv_prog_cc_stdc" ;;
2834 # Some people use a C++ compiler to compile C. Since we use `exit',
2835 # in C++ we need to declare it. In case someone uses the same compiler
2836 # for both compiling C and C++ we need to have the C++ compiler decide
2837 # the declaration of exit, since it's the most demanding environment.
2838 cat >conftest.$ac_ext <<_ACEOF
2843 rm -f conftest.$ac_objext
2844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845 (eval $ac_compile) 2>conftest.er1
2847 grep -v '^ *+' conftest.er1 >conftest.err
2849 cat conftest.err >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } &&
2852 { ac_try='test -z "$ac_c_werror_flag"
2853 || test ! -s conftest.err'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; } &&
2859 { ac_try='test -s conftest.$ac_objext'
2860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2865 for ac_declaration in \
2867 'extern "C" void std::exit (int) throw (); using std::exit;' \
2868 'extern "C" void std::exit (int); using std::exit;' \
2869 'extern "C" void exit (int) throw ();' \
2870 'extern "C" void exit (int);' \
2873 cat >conftest.$ac_ext <<_ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2889 rm -f conftest.$ac_objext
2890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2891 (eval $ac_compile) 2>conftest.er1
2893 grep -v '^ *+' conftest.er1 >conftest.err
2895 cat conftest.err >&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); } &&
2898 { ac_try='test -z "$ac_c_werror_flag"
2899 || test ! -s conftest.err'
2900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; } &&
2905 { ac_try='test -s conftest.$ac_objext'
2906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; }; then
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2919 cat >conftest.$ac_ext <<_ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2934 rm -f conftest.$ac_objext
2935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2936 (eval $ac_compile) 2>conftest.er1
2938 grep -v '^ *+' conftest.er1 >conftest.err
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } &&
2943 { ac_try='test -z "$ac_c_werror_flag"
2944 || test ! -s conftest.err'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; } &&
2950 { ac_try='test -s conftest.$ac_objext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2965 if test -n "$ac_declaration"; then
2966 echo '#ifdef __cplusplus' >>confdefs.h
2967 echo $ac_declaration >>confdefs.h
2968 echo '#endif' >>confdefs.h
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_cpp='$CPP $CPPFLAGS'
2979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983 if test "$GCC" != "yes"
2985 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2986 echo "$as_me: error: gcc required but not found" >&2;}
2987 { (exit 1); exit 1; }; }
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2995 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2996 # On Suns, sometimes $CPP names a directory.
2997 if test -n "$CPP" && test -d "$CPP"; then
3000 if test -z "$CPP"; then
3001 if test "${ac_cv_prog_CPP+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 # Double quotes because CPP needs to be expanded
3005 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3008 for ac_c_preproc_warn_flag in '' yes
3010 # Use a header file that comes with gcc, so configuring glibc
3011 # with a fresh cross-compiler works.
3012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3013 # <limits.h> exists even on freestanding compilers.
3014 # On the NeXT, cc -E runs the code through the compiler's parser,
3015 # not just through cpp. "Syntax error" is here to catch this case.
3016 cat >conftest.$ac_ext <<_ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3023 # include <limits.h>
3025 # include <assert.h>
3029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3032 grep -v '^ *+' conftest.er1 >conftest.err
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } >/dev/null; then
3037 if test -s conftest.err; then
3038 ac_cpp_err=$ac_c_preproc_warn_flag
3039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3046 if test -z "$ac_cpp_err"; then
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3052 # Broken: fails on valid input.
3055 rm -f conftest.err conftest.$ac_ext
3057 # OK, works on sane cases. Now check whether non-existent headers
3058 # can be detected and how.
3059 cat >conftest.$ac_ext <<_ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3065 #include <ac_nonexistent.h>
3067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3070 grep -v '^ *+' conftest.er1 >conftest.err
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } >/dev/null; then
3075 if test -s conftest.err; then
3076 ac_cpp_err=$ac_c_preproc_warn_flag
3077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3084 if test -z "$ac_cpp_err"; then
3085 # Broken: success on invalid input.
3088 echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3091 # Passes both tests.
3095 rm -f conftest.err conftest.$ac_ext
3098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3099 rm -f conftest.err conftest.$ac_ext
3100 if $ac_preproc_ok; then
3112 echo "$as_me:$LINENO: result: $CPP" >&5
3113 echo "${ECHO_T}$CPP" >&6
3115 for ac_c_preproc_warn_flag in '' yes
3117 # Use a header file that comes with gcc, so configuring glibc
3118 # with a fresh cross-compiler works.
3119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3120 # <limits.h> exists even on freestanding compilers.
3121 # On the NeXT, cc -E runs the code through the compiler's parser,
3122 # not just through cpp. "Syntax error" is here to catch this case.
3123 cat >conftest.$ac_ext <<_ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3130 # include <limits.h>
3132 # include <assert.h>
3136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3139 grep -v '^ *+' conftest.er1 >conftest.err
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } >/dev/null; then
3144 if test -s conftest.err; then
3145 ac_cpp_err=$ac_c_preproc_warn_flag
3146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3153 if test -z "$ac_cpp_err"; then
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159 # Broken: fails on valid input.
3162 rm -f conftest.err conftest.$ac_ext
3164 # OK, works on sane cases. Now check whether non-existent headers
3165 # can be detected and how.
3166 cat >conftest.$ac_ext <<_ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3172 #include <ac_nonexistent.h>
3174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3177 grep -v '^ *+' conftest.er1 >conftest.err
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } >/dev/null; then
3182 if test -s conftest.err; then
3183 ac_cpp_err=$ac_c_preproc_warn_flag
3184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3191 if test -z "$ac_cpp_err"; then
3192 # Broken: success on invalid input.
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3198 # Passes both tests.
3202 rm -f conftest.err conftest.$ac_ext
3205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3206 rm -f conftest.err conftest.$ac_ext
3207 if $ac_preproc_ok; then
3210 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3211 See \`config.log' for more details." >&5
3212 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3213 See \`config.log' for more details." >&2;}
3214 { (exit 1); exit 1; }; }
3218 ac_cpp='$CPP $CPPFLAGS'
3219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223 if test "$GXX" != "yes"
3225 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3226 echo "$as_me: error: g++ required but not found" >&2;}
3227 { (exit 1); exit 1; }; }
3230 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3231 if test "$gccmajor" -lt "3"
3233 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3234 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3235 { (exit 1); exit 1; }; }
3238 echo "$as_me:$LINENO: checking for GNU make" >&5
3239 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3240 if test "${_cv_gnu_make_command+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 _cv_gnu_make_command='' ;
3244 for a in "$MAKE" make gmake gnumake ; do
3245 if test -z "$a" ; then continue ; fi ;
3246 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3247 _cv_gnu_make_command=$a ;
3253 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3254 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3255 if test "x$_cv_gnu_make_command" != "x" ; then
3259 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3260 echo "${ECHO_T}\"Not found\"" >&6;
3264 if test -z "$_cv_gnu_make_command"
3266 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3267 echo "$as_me: error: GNU Make required but not found" >&2;}
3268 { (exit 1); exit 1; }; }
3272 echo "$as_me:$LINENO: checking " >&5
3273 echo $ECHO_N "checking ... $ECHO_C" >&6
3274 if test "${ac_cv_has_flex+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 for ac_prog in flex lex
3279 # Extract the first word of "$ac_prog", so it can be a program name with args.
3280 set dummy $ac_prog; ac_word=$2
3281 echo "$as_me:$LINENO: checking for $ac_word" >&5
3282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3283 if test "${ac_cv_prog_LEX+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 if test -n "$LEX"; then
3287 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3296 ac_cv_prog_LEX="$ac_prog"
3297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 if test -n "$LEX"; then
3307 echo "$as_me:$LINENO: result: $LEX" >&5
3308 echo "${ECHO_T}$LEX" >&6
3310 echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3314 test -n "$LEX" && break
3316 test -n "$LEX" || LEX=":"
3318 if test -z "$LEXLIB"
3320 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3321 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3322 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 ac_check_lib_save_LIBS=$LIBS
3327 cat >conftest.$ac_ext <<_ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3334 /* Override any gcc2 internal prototype to avoid an error. */
3338 /* We use char because int might match the return type of a gcc2
3339 builtin and then its argument prototype would still apply. */
3349 rm -f conftest.$ac_objext conftest$ac_exeext
3350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3351 (eval $ac_link) 2>conftest.er1
3353 grep -v '^ *+' conftest.er1 >conftest.err
3355 cat conftest.err >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } &&
3358 { ac_try='test -z "$ac_c_werror_flag"
3359 || test ! -s conftest.err'
3360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; } &&
3365 { ac_try='test -s conftest$ac_exeext'
3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; }; then
3371 ac_cv_lib_fl_yywrap=yes
3373 echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3376 ac_cv_lib_fl_yywrap=no
3378 rm -f conftest.err conftest.$ac_objext \
3379 conftest$ac_exeext conftest.$ac_ext
3380 LIBS=$ac_check_lib_save_LIBS
3382 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3383 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3384 if test $ac_cv_lib_fl_yywrap = yes; then
3387 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3388 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3389 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 ac_check_lib_save_LIBS=$LIBS
3394 cat >conftest.$ac_ext <<_ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3401 /* Override any gcc2 internal prototype to avoid an error. */
3405 /* We use char because int might match the return type of a gcc2
3406 builtin and then its argument prototype would still apply. */
3416 rm -f conftest.$ac_objext conftest$ac_exeext
3417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3418 (eval $ac_link) 2>conftest.er1
3420 grep -v '^ *+' conftest.er1 >conftest.err
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } &&
3425 { ac_try='test -z "$ac_c_werror_flag"
3426 || test ! -s conftest.err'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; } &&
3432 { ac_try='test -s conftest$ac_exeext'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; }; then
3438 ac_cv_lib_l_yywrap=yes
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3443 ac_cv_lib_l_yywrap=no
3445 rm -f conftest.err conftest.$ac_objext \
3446 conftest$ac_exeext conftest.$ac_ext
3447 LIBS=$ac_check_lib_save_LIBS
3449 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3450 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3451 if test $ac_cv_lib_l_yywrap = yes; then
3459 if test "x$LEX" != "x:"; then
3460 echo "$as_me:$LINENO: checking lex output file root" >&5
3461 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3462 if test "${ac_cv_prog_lex_root+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 # The minimal lex program is just a single line: %%. But some broken lexes
3466 # (Solaris, I think it was) want two %% lines, so accommodate them.
3467 cat >conftest.l <<_ACEOF
3471 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3472 (eval $LEX conftest.l) 2>&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }
3476 if test -f lex.yy.c; then
3477 ac_cv_prog_lex_root=lex.yy
3478 elif test -f lexyy.c; then
3479 ac_cv_prog_lex_root=lexyy
3481 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3482 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3483 { (exit 1); exit 1; }; }
3486 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3487 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3489 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3491 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3492 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3493 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 # POSIX says lex can declare yytext either as a pointer or an array; the
3497 # default is implementation-dependent. Figure out which it is, since
3498 # not all implementations provide the %pointer and %array declarations.
3499 ac_cv_prog_lex_yytext_pointer=no
3500 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3502 LIBS="$LIBS $LEXLIB"
3503 cat >conftest.$ac_ext <<_ACEOF
3504 `cat $LEX_OUTPUT_ROOT.c`
3506 rm -f conftest.$ac_objext conftest$ac_exeext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3508 (eval $ac_link) 2>conftest.er1
3510 grep -v '^ *+' conftest.er1 >conftest.err
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try='test -z "$ac_c_werror_flag"
3516 || test ! -s conftest.err'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; } &&
3522 { ac_try='test -s conftest$ac_exeext'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3528 ac_cv_prog_lex_yytext_pointer=yes
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3534 rm -f conftest.err conftest.$ac_objext \
3535 conftest$ac_exeext conftest.$ac_ext
3537 rm -f "${LEX_OUTPUT_ROOT}.c"
3540 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3541 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3542 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3544 cat >>confdefs.h <<\_ACEOF
3545 #define YYTEXT_POINTER 1
3553 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3554 echo "${ECHO_T}$ac_cv_has_flex" >&6
3555 if test "$LEX" != "flex"; then
3556 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3557 echo "$as_me: error: flex not found but required" >&2;}
3558 { (exit 1); exit 1; }; }
3564 echo "$as_me:$LINENO: checking " >&5
3565 echo $ECHO_N "checking ... $ECHO_C" >&6
3566 if test "${ac_cv_has_bison+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 for ac_prog in 'bison -y' byacc
3571 # Extract the first word of "$ac_prog", so it can be a program name with args.
3572 set dummy $ac_prog; ac_word=$2
3573 echo "$as_me:$LINENO: checking for $ac_word" >&5
3574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3575 if test "${ac_cv_prog_YACC+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 if test -n "$YACC"; then
3579 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 test -z "$as_dir" && as_dir=.
3586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3588 ac_cv_prog_YACC="$ac_prog"
3589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3597 YACC=$ac_cv_prog_YACC
3598 if test -n "$YACC"; then
3599 echo "$as_me:$LINENO: result: $YACC" >&5
3600 echo "${ECHO_T}$YACC" >&6
3602 echo "$as_me:$LINENO: result: no" >&5
3603 echo "${ECHO_T}no" >&6
3606 test -n "$YACC" && break
3608 test -n "$YACC" || YACC="yacc"
3612 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3613 echo "${ECHO_T}$ac_cv_has_bison" >&6
3614 if test "$YACC" != "bison -y"; then
3615 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3616 echo "$as_me: error: bison not found but required" >&2;}
3617 { (exit 1); exit 1; }; }
3623 # Check whether --enable-shared or --disable-shared was given.
3624 if test "${enable_shared+set}" = set; then
3625 enableval="$enable_shared"
3626 p=${PACKAGE-default}
3628 yes) enable_shared=yes ;;
3629 no) enable_shared=no ;;
3632 # Look at the argument we got. We use all the common list separators.
3633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3634 for pkg in $enableval; do
3636 if test "X$pkg" = "X$p"; then
3647 # Check whether --enable-static or --disable-static was given.
3648 if test "${enable_static+set}" = set; then
3649 enableval="$enable_static"
3650 p=${PACKAGE-default}
3652 yes) enable_static=yes ;;
3653 no) enable_static=no ;;
3656 # Look at the argument we got. We use all the common list separators.
3657 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3658 for pkg in $enableval; do
3660 if test "X$pkg" = "X$p"; then
3671 # Check whether --enable-fast-install or --disable-fast-install was given.
3672 if test "${enable_fast_install+set}" = set; then
3673 enableval="$enable_fast_install"
3674 p=${PACKAGE-default}
3676 yes) enable_fast_install=yes ;;
3677 no) enable_fast_install=no ;;
3679 enable_fast_install=no
3680 # Look at the argument we got. We use all the common list separators.
3681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3682 for pkg in $enableval; do
3684 if test "X$pkg" = "X$p"; then
3685 enable_fast_install=yes
3692 enable_fast_install=yes
3695 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3696 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3697 if test "${lt_cv_path_SED+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 # Loop through the user's path and test for sed and gsed.
3701 # Then use that list of sed's as ones to test for truncation.
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 test -z "$as_dir" && as_dir=.
3707 for lt_ac_prog in sed gsed; do
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3710 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3717 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3718 # along with /bin/sed that truncates output.
3719 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3720 test ! -f $lt_ac_sed && break
3721 cat /dev/null > conftest.in
3723 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3724 # Check for GNU sed and select it if it is found.
3725 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3726 lt_cv_path_SED=$lt_ac_sed
3730 cat conftest.in conftest.in >conftest.tmp
3731 mv conftest.tmp conftest.in
3732 cp conftest.in conftest.nl
3734 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3735 cmp -s conftest.out conftest.nl || break
3736 # 10000 chars as input seems more than enough
3737 test $lt_ac_count -gt 10 && break
3738 lt_ac_count=`expr $lt_ac_count + 1`
3739 if test $lt_ac_count -gt $lt_ac_max; then
3740 lt_ac_max=$lt_ac_count
3741 lt_cv_path_SED=$lt_ac_sed
3749 echo "$as_me:$LINENO: result: $SED" >&5
3750 echo "${ECHO_T}$SED" >&6
3752 echo "$as_me:$LINENO: checking for egrep" >&5
3753 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3754 if test "${ac_cv_prog_egrep+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3758 then ac_cv_prog_egrep='grep -E'
3759 else ac_cv_prog_egrep='egrep'
3762 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3763 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3764 EGREP=$ac_cv_prog_egrep
3768 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3769 if test "${with_gnu_ld+set}" = set; then
3770 withval="$with_gnu_ld"
3771 test "$withval" = no || with_gnu_ld=yes
3776 if test "$GCC" = yes; then
3777 # Check if gcc -print-prog-name=ld gives a path.
3778 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3779 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3782 # gcc leaves a trailing carriage return which upsets mingw
3783 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3785 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3788 # Accept absolute paths.
3790 re_direlt='/[^/][^/]*/\.\./'
3791 # Canonicalize the pathname of ld
3792 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3793 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3794 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3796 test -z "$LD" && LD="$ac_prog"
3799 # If it fails, then pretend we aren't using GCC.
3803 # If it is relative, then search for the first ld in PATH.
3807 elif test "$with_gnu_ld" = yes; then
3808 echo "$as_me:$LINENO: checking for GNU ld" >&5
3809 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3811 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3812 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3814 if test "${lt_cv_path_LD+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 if test -z "$LD"; then
3818 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3819 for ac_dir in $PATH; do
3821 test -z "$ac_dir" && ac_dir=.
3822 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3823 lt_cv_path_LD="$ac_dir/$ac_prog"
3824 # Check to see if the program is GNU ld. I'd rather use --version,
3825 # but apparently some GNU ld's only accept -v.
3826 # Break only if it was the GNU/non-GNU ld that we prefer.
3827 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3828 *GNU* | *'with BFD'*)
3829 test "$with_gnu_ld" != no && break
3832 test "$with_gnu_ld" != yes && break
3839 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3844 if test -n "$LD"; then
3845 echo "$as_me:$LINENO: result: $LD" >&5
3846 echo "${ECHO_T}$LD" >&6
3848 echo "$as_me:$LINENO: result: no" >&5
3849 echo "${ECHO_T}no" >&6
3851 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3852 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3853 { (exit 1); exit 1; }; }
3854 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3855 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3856 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3860 case `$LD -v 2>&1 </dev/null` in
3861 *GNU* | *'with BFD'*)
3862 lt_cv_prog_gnu_ld=yes
3865 lt_cv_prog_gnu_ld=no
3869 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3870 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3871 with_gnu_ld=$lt_cv_prog_gnu_ld
3874 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3875 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3876 if test "${lt_cv_ld_reload_flag+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 lt_cv_ld_reload_flag='-r'
3881 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3882 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3883 reload_flag=$lt_cv_ld_reload_flag
3884 case $reload_flag in
3886 *) reload_flag=" $reload_flag" ;;
3888 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3891 if test "$GCC" = yes; then
3892 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3894 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3899 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3900 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3901 if test "${lt_cv_path_NM+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 if test -n "$NM"; then
3905 # Let the user override the test.
3908 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3909 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3911 test -z "$ac_dir" && ac_dir=.
3912 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3913 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3914 # Check to see if the nm accepts a BSD-compat flag.
3915 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3916 # nm: unknown option "B" ignored
3917 # Tru64's nm complains that /dev/null is an invalid object file
3918 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3919 */dev/null* | *'Invalid file or object type'*)
3920 lt_cv_path_NM="$tmp_nm -B"
3924 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3926 lt_cv_path_NM="$tmp_nm -p"
3930 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3931 continue # so that we can try to find one that supports BSD flags
3938 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3941 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3942 echo "${ECHO_T}$lt_cv_path_NM" >&6
3945 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3946 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3948 if test "$LN_S" = "ln -s"; then
3949 echo "$as_me:$LINENO: result: yes" >&5
3950 echo "${ECHO_T}yes" >&6
3952 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3953 echo "${ECHO_T}no, using $LN_S" >&6
3956 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3957 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3958 if test "${lt_cv_deplibs_check_method+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 lt_cv_file_magic_cmd='$MAGIC_CMD'
3962 lt_cv_file_magic_test_file=
3963 lt_cv_deplibs_check_method='unknown'
3964 # Need to set the preceding variable on all platforms that support
3965 # interlibrary dependencies.
3966 # 'none' -- dependencies not supported.
3967 # `unknown' -- same as none, but documents that we really don't know.
3968 # 'pass_all' -- all dependencies passed with no checks.
3969 # 'test_compile' -- check by making test program.
3970 # 'file_magic [[regex]]' -- check by looking for files in library path
3971 # which responds to the $file_magic_cmd with a given extended regex.
3972 # If you have `file' or equivalent on your system and you're not sure
3973 # whether `pass_all' will *always* work, you probably want this one.
3977 lt_cv_deplibs_check_method=pass_all
3981 lt_cv_deplibs_check_method=pass_all
3985 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3986 lt_cv_file_magic_cmd='/usr/bin/file -L'
3987 lt_cv_file_magic_test_file=/shlib/libc.so
3991 # func_win32_libid is a shell function defined in ltmain.sh
3992 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3993 lt_cv_file_magic_cmd='func_win32_libid'
3997 # Base MSYS/MinGW do not provide the 'file' command needed by
3998 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3999 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4000 lt_cv_file_magic_cmd='$OBJDUMP -f'
4003 darwin* | rhapsody*)
4004 lt_cv_deplibs_check_method=pass_all
4007 freebsd* | kfreebsd*-gnu)
4008 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4011 # Not sure whether the presence of OpenBSD here was a mistake.
4012 # Let's accept both of them until this is cleared up.
4013 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4014 lt_cv_file_magic_cmd=/usr/bin/file
4015 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4019 lt_cv_deplibs_check_method=pass_all
4024 lt_cv_deplibs_check_method=pass_all
4027 hpux10.20* | hpux11*)
4028 lt_cv_file_magic_cmd=/usr/bin/file
4031 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4032 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4035 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]'
4036 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4039 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4040 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4045 irix5* | irix6* | nonstopux*)
4047 *-32|*"-32 ") libmagic=32-bit;;
4048 *-n32|*"-n32 ") libmagic=N32;;
4049 *-64|*"-64 ") libmagic=64-bit;;
4050 *) libmagic=never-match;;
4052 lt_cv_deplibs_check_method=pass_all
4055 # This must be Linux ELF.
4057 lt_cv_deplibs_check_method=pass_all
4061 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4069 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4070 lt_cv_file_magic_cmd=/usr/bin/file
4071 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4075 lt_cv_deplibs_check_method=unknown
4079 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4086 osf3* | osf4* | osf5*)
4087 lt_cv_deplibs_check_method=pass_all
4091 lt_cv_deplibs_check_method=pass_all
4095 lt_cv_deplibs_check_method=pass_all
4098 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4099 case $host_vendor in
4101 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]'
4102 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4105 lt_cv_deplibs_check_method=pass_all
4108 lt_cv_file_magic_cmd='/bin/file'
4109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4112 lt_cv_file_magic_cmd='/bin/file'
4113 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4114 lt_cv_file_magic_test_file=/lib/libc.so
4117 lt_cv_deplibs_check_method=pass_all
4122 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4123 lt_cv_deplibs_check_method=pass_all
4128 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4129 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4130 file_magic_cmd=$lt_cv_file_magic_cmd
4131 deplibs_check_method=$lt_cv_deplibs_check_method
4132 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4137 # If no C compiler was specified, use CC.
4140 # Allow CC to be a program name with arguments.
4143 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4144 if test "${enable_libtool_lock+set}" = set; then
4145 enableval="$enable_libtool_lock"
4148 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4150 # Some flags need to be propagated to the compiler or linker for good
4154 # Find out which ABI we are using.
4155 echo 'int i;' > conftest.$ac_ext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157 (eval $ac_compile) 2>&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; then
4161 case `/usr/bin/file conftest.$ac_objext` in
4173 # Find out which ABI we are using.
4174 echo '#line 4174 "configure"' > conftest.$ac_ext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; then
4180 if test "$lt_cv_prog_gnu_ld" = yes; then
4181 case `/usr/bin/file conftest.$ac_objext` in
4183 LD="${LD-ld} -melf32bsmip"
4186 LD="${LD-ld} -melf32bmipn32"
4189 LD="${LD-ld} -melf64bmip"
4193 case `/usr/bin/file conftest.$ac_objext` in
4209 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4210 # Find out which ABI we are using.
4211 echo 'int i;' > conftest.$ac_ext
4212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4213 (eval $ac_compile) 2>&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; then
4217 case "`/usr/bin/file conftest.o`" in
4221 LD="${LD-ld} -m elf_i386"
4223 ppc64-*linux*|powerpc64-*linux*)
4224 LD="${LD-ld} -m elf32ppclinux"
4227 LD="${LD-ld} -m elf_s390"
4230 LD="${LD-ld} -m elf32_sparc"
4237 LD="${LD-ld} -m elf_x86_64"
4239 ppc*-*linux*|powerpc*-*linux*)
4240 LD="${LD-ld} -m elf64ppc"
4243 LD="${LD-ld} -m elf64_s390"
4246 LD="${LD-ld} -m elf64_sparc"
4256 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4257 SAVE_CFLAGS="$CFLAGS"
4258 CFLAGS="$CFLAGS -belf"
4259 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4260 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4261 if test "${lt_cv_cc_needs_belf+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 ac_cpp='$CPP $CPPFLAGS'
4266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270 cat >conftest.$ac_ext <<_ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4285 rm -f conftest.$ac_objext conftest$ac_exeext
4286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4287 (eval $ac_link) 2>conftest.er1
4289 grep -v '^ *+' conftest.er1 >conftest.err
4291 cat conftest.err >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } &&
4294 { ac_try='test -z "$ac_c_werror_flag"
4295 || test ! -s conftest.err'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; } &&
4301 { ac_try='test -s conftest$ac_exeext'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
4307 lt_cv_cc_needs_belf=yes
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4312 lt_cv_cc_needs_belf=no
4314 rm -f conftest.err conftest.$ac_objext \
4315 conftest$ac_exeext conftest.$ac_ext
4317 ac_cpp='$CPP $CPPFLAGS'
4318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4324 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4325 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4326 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4327 CFLAGS="$SAVE_CFLAGS"
4333 need_locks="$enable_libtool_lock"
4337 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4338 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4339 if test "${ac_cv_header_stdc+set}" = set; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 cat >conftest.$ac_ext <<_ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4361 rm -f conftest.$ac_objext
4362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4363 (eval $ac_compile) 2>conftest.er1
4365 grep -v '^ *+' conftest.er1 >conftest.err
4367 cat conftest.err >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } &&
4370 { ac_try='test -z "$ac_c_werror_flag"
4371 || test ! -s conftest.err'
4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; } &&
4377 { ac_try='test -s conftest.$ac_objext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 ac_cv_header_stdc=yes
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4388 ac_cv_header_stdc=no
4390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4392 if test $ac_cv_header_stdc = yes; then
4393 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4394 cat >conftest.$ac_ext <<_ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4404 $EGREP "memchr" >/dev/null 2>&1; then
4407 ac_cv_header_stdc=no
4413 if test $ac_cv_header_stdc = yes; then
4414 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4415 cat >conftest.$ac_ext <<_ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h. */
4424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4425 $EGREP "free" >/dev/null 2>&1; then
4428 ac_cv_header_stdc=no
4434 if test $ac_cv_header_stdc = yes; then
4435 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4436 if test "$cross_compiling" = yes; then
4439 cat >conftest.$ac_ext <<_ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4446 #if ((' ' & 0x0FF) == 0x020)
4447 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4448 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4450 # define ISLOWER(c) \
4451 (('a' <= (c) && (c) <= 'i') \
4452 || ('j' <= (c) && (c) <= 'r') \
4453 || ('s' <= (c) && (c) <= 'z'))
4454 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4457 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4462 for (i = 0; i < 256; i++)
4463 if (XOR (islower (i), ISLOWER (i))
4464 || toupper (i) != TOUPPER (i))
4469 rm -f conftest$ac_exeext
4470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4471 (eval $ac_link) 2>&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; }; then
4482 echo "$as_me: program exited with status $ac_status" >&5
4483 echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4487 ac_cv_header_stdc=no
4489 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4493 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4494 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4495 if test $ac_cv_header_stdc = yes; then
4497 cat >>confdefs.h <<\_ACEOF
4498 #define STDC_HEADERS 1
4503 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4513 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4514 inttypes.h stdint.h unistd.h
4516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4517 echo "$as_me:$LINENO: checking for $ac_header" >&5
4518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 cat >conftest.$ac_ext <<_ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4528 $ac_includes_default
4530 #include <$ac_header>
4532 rm -f conftest.$ac_objext
4533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4534 (eval $ac_compile) 2>conftest.er1
4536 grep -v '^ *+' conftest.er1 >conftest.err
4538 cat conftest.err >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } &&
4541 { ac_try='test -z "$ac_c_werror_flag"
4542 || test ! -s conftest.err'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; } &&
4548 { ac_try='test -s conftest.$ac_objext'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4554 eval "$as_ac_Header=yes"
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4559 eval "$as_ac_Header=no"
4561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4566 cat >>confdefs.h <<_ACEOF
4567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4576 for ac_header in dlfcn.h
4578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4580 echo "$as_me:$LINENO: checking for $ac_header" >&5
4581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4588 # Is the header compilable?
4589 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4591 cat >conftest.$ac_ext <<_ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4597 $ac_includes_default
4598 #include <$ac_header>
4600 rm -f conftest.$ac_objext
4601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602 (eval $ac_compile) 2>conftest.er1
4604 grep -v '^ *+' conftest.er1 >conftest.err
4606 cat conftest.err >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try='test -z "$ac_c_werror_flag"
4610 || test ! -s conftest.err'
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; } &&
4616 { ac_try='test -s conftest.$ac_objext'
4617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; }; then
4622 ac_header_compiler=yes
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4627 ac_header_compiler=no
4629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4631 echo "${ECHO_T}$ac_header_compiler" >&6
4633 # Is the header present?
4634 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4635 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4636 cat >conftest.$ac_ext <<_ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4642 #include <$ac_header>
4644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4647 grep -v '^ *+' conftest.er1 >conftest.err
4649 cat conftest.err >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } >/dev/null; then
4652 if test -s conftest.err; then
4653 ac_cpp_err=$ac_c_preproc_warn_flag
4654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4661 if test -z "$ac_cpp_err"; then
4662 ac_header_preproc=yes
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4667 ac_header_preproc=no
4669 rm -f conftest.err conftest.$ac_ext
4670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4671 echo "${ECHO_T}$ac_header_preproc" >&6
4673 # So? What about this header?
4674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4680 ac_header_preproc=yes
4683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4686 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4690 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4697 ## ----------------------------------- ##
4698 ## Report this to llvmbugs@cs.uiuc.edu ##
4699 ## ----------------------------------- ##
4702 sed "s/^/$as_me: WARNING: /" >&2
4705 echo "$as_me:$LINENO: checking for $ac_header" >&5
4706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 eval "$as_ac_Header=\$ac_header_preproc"
4712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4717 cat >>confdefs.h <<_ACEOF
4718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4727 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4728 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4729 (test "X$CXX" != "Xg++"))) ; then
4731 ac_cpp='$CXXCPP $CPPFLAGS'
4732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4735 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4736 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4737 if test -z "$CXXCPP"; then
4738 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 # Double quotes because CXXCPP needs to be expanded
4742 for CXXCPP in "$CXX -E" "/lib/cpp"
4745 for ac_cxx_preproc_warn_flag in '' yes
4747 # Use a header file that comes with gcc, so configuring glibc
4748 # with a fresh cross-compiler works.
4749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4750 # <limits.h> exists even on freestanding compilers.
4751 # On the NeXT, cc -E runs the code through the compiler's parser,
4752 # not just through cpp. "Syntax error" is here to catch this case.
4753 cat >conftest.$ac_ext <<_ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4760 # include <limits.h>
4762 # include <assert.h>
4766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4769 grep -v '^ *+' conftest.er1 >conftest.err
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } >/dev/null; then
4774 if test -s conftest.err; then
4775 ac_cpp_err=$ac_cxx_preproc_warn_flag
4776 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4783 if test -z "$ac_cpp_err"; then
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4789 # Broken: fails on valid input.
4792 rm -f conftest.err conftest.$ac_ext
4794 # OK, works on sane cases. Now check whether non-existent headers
4795 # can be detected and how.
4796 cat >conftest.$ac_ext <<_ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4802 #include <ac_nonexistent.h>
4804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4807 grep -v '^ *+' conftest.er1 >conftest.err
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } >/dev/null; then
4812 if test -s conftest.err; then
4813 ac_cpp_err=$ac_cxx_preproc_warn_flag
4814 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4821 if test -z "$ac_cpp_err"; then
4822 # Broken: success on invalid input.
4825 echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4828 # Passes both tests.
4832 rm -f conftest.err conftest.$ac_ext
4835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4836 rm -f conftest.err conftest.$ac_ext
4837 if $ac_preproc_ok; then
4842 ac_cv_prog_CXXCPP=$CXXCPP
4845 CXXCPP=$ac_cv_prog_CXXCPP
4847 ac_cv_prog_CXXCPP=$CXXCPP
4849 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4850 echo "${ECHO_T}$CXXCPP" >&6
4852 for ac_cxx_preproc_warn_flag in '' yes
4854 # Use a header file that comes with gcc, so configuring glibc
4855 # with a fresh cross-compiler works.
4856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4857 # <limits.h> exists even on freestanding compilers.
4858 # On the NeXT, cc -E runs the code through the compiler's parser,
4859 # not just through cpp. "Syntax error" is here to catch this case.
4860 cat >conftest.$ac_ext <<_ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4867 # include <limits.h>
4869 # include <assert.h>
4873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4876 grep -v '^ *+' conftest.er1 >conftest.err
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } >/dev/null; then
4881 if test -s conftest.err; then
4882 ac_cpp_err=$ac_cxx_preproc_warn_flag
4883 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4890 if test -z "$ac_cpp_err"; then
4893 echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4896 # Broken: fails on valid input.
4899 rm -f conftest.err conftest.$ac_ext
4901 # OK, works on sane cases. Now check whether non-existent headers
4902 # can be detected and how.
4903 cat >conftest.$ac_ext <<_ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909 #include <ac_nonexistent.h>
4911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4914 grep -v '^ *+' conftest.er1 >conftest.err
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } >/dev/null; then
4919 if test -s conftest.err; then
4920 ac_cpp_err=$ac_cxx_preproc_warn_flag
4921 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4928 if test -z "$ac_cpp_err"; then
4929 # Broken: success on invalid input.
4932 echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4935 # Passes both tests.
4939 rm -f conftest.err conftest.$ac_ext
4942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4943 rm -f conftest.err conftest.$ac_ext
4944 if $ac_preproc_ok; then
4947 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4948 See \`config.log' for more details." >&5
4949 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4950 See \`config.log' for more details." >&2;}
4951 { (exit 1); exit 1; }; }
4955 ac_cpp='$CXXCPP $CPPFLAGS'
4956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4964 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4965 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4967 if test -n "$ac_tool_prefix"; then
4968 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4972 echo "$as_me:$LINENO: checking for $ac_word" >&5
4973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4974 if test "${ac_cv_prog_F77+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 if test -n "$F77"; then
4978 ac_cv_prog_F77="$F77" # Let the user override the test.
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 if test -n "$F77"; then
4998 echo "$as_me:$LINENO: result: $F77" >&5
4999 echo "${ECHO_T}$F77" >&6
5001 echo "$as_me:$LINENO: result: no" >&5
5002 echo "${ECHO_T}no" >&6
5005 test -n "$F77" && break
5008 if test -z "$F77"; then
5010 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5012 # Extract the first word of "$ac_prog", so it can be a program name with args.
5013 set dummy $ac_prog; ac_word=$2
5014 echo "$as_me:$LINENO: checking for $ac_word" >&5
5015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5016 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 if test -n "$ac_ct_F77"; then
5020 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 test -z "$as_dir" && as_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5029 ac_cv_prog_ac_ct_F77="$ac_prog"
5030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5039 if test -n "$ac_ct_F77"; then
5040 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5041 echo "${ECHO_T}$ac_ct_F77" >&6
5043 echo "$as_me:$LINENO: result: no" >&5
5044 echo "${ECHO_T}no" >&6
5047 test -n "$ac_ct_F77" && break
5054 # Provide some information about the compiler.
5055 echo "$as_me:5055:" \
5056 "checking for Fortran 77 compiler version" >&5
5057 ac_compiler=`set X $ac_compile; echo $2`
5058 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5059 (eval $ac_compiler --version </dev/null >&5) 2>&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }
5063 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5064 (eval $ac_compiler -v </dev/null >&5) 2>&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }
5068 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5069 (eval $ac_compiler -V </dev/null >&5) 2>&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }
5075 # If we don't use `.F' as extension, the preprocessor is not run on the
5076 # input file. (Note that this only needs to work for GNU compilers.)
5079 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5080 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5081 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 cat >conftest.$ac_ext <<_ACEOF
5092 rm -f conftest.$ac_objext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5094 (eval $ac_compile) 2>conftest.er1
5096 grep -v '^ *+' conftest.er1 >conftest.err
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } &&
5101 { ac_try='test -z "$ac_f77_werror_flag"
5102 || test ! -s conftest.err'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; } &&
5108 { ac_try='test -s conftest.$ac_objext'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; }; then
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5122 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5125 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5126 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5128 ac_test_FFLAGS=${FFLAGS+set}
5129 ac_save_FFLAGS=$FFLAGS
5131 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5132 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5133 if test "${ac_cv_prog_f77_g+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 cat >conftest.$ac_ext <<_ACEOF
5142 rm -f conftest.$ac_objext
5143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5144 (eval $ac_compile) 2>conftest.er1
5146 grep -v '^ *+' conftest.er1 >conftest.err
5148 cat conftest.err >&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } &&
5151 { ac_try='test -z "$ac_f77_werror_flag"
5152 || test ! -s conftest.err'
5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; } &&
5158 { ac_try='test -s conftest.$ac_objext'
5159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); }; }; then
5164 ac_cv_prog_f77_g=yes
5166 echo "$as_me: failed program was:" >&5
5167 sed 's/^/| /' conftest.$ac_ext >&5
5171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5174 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5175 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5176 if test "$ac_test_FFLAGS" = set; then
5177 FFLAGS=$ac_save_FFLAGS
5178 elif test $ac_cv_prog_f77_g = yes; then
5179 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5185 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5192 G77=`test $ac_compiler_gnu = yes && echo yes`
5194 ac_cpp='$CPP $CPPFLAGS'
5195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5201 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5203 # find the maximum length of command line arguments
5204 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5205 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5206 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 # On DJGPP, this test can blow up pretty badly due to problems in libc
5215 # (any single argument exceeding 2000 bytes causes a buffer overrun
5216 # during glob expansion). Even if it were fixed, the result of this
5217 # check would be larger than it should be.
5218 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5222 # Under GNU Hurd, this test is not required because there is
5223 # no limit to the length of command line arguments.
5224 # Libtool will interpret -1 as no limit whatsoever
5225 lt_cv_sys_max_cmd_len=-1;
5229 # On Win9x/ME, this test blows up -- it succeeds, but takes
5230 # about 5 minutes as the teststring grows exponentially.
5231 # Worse, since 9x/ME are not pre-emptively multitasking,
5232 # you end up with a "frozen" computer, even though with patience
5233 # the test eventually succeeds (with a max line length of 256k).
5234 # Instead, let's just punt: use the minimum linelength reported by
5235 # all of the supported platforms: 8192 (on NT/2K/XP).
5236 lt_cv_sys_max_cmd_len=8192;
5240 # On AmigaOS with pdksh, this test takes hours, literally.
5241 # So we just punt and use a minimum line length of 8192.
5242 lt_cv_sys_max_cmd_len=8192;
5245 netbsd* | freebsd* | openbsd* | darwin* )
5246 # This has been around since 386BSD, at least. Likely further.
5247 if test -x /sbin/sysctl; then
5248 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5249 elif test -x /usr/sbin/sysctl; then
5250 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5252 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5254 # And add a safety zone
5255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5259 # If test is not a shell built-in, we'll probably end up computing a
5260 # maximum length that is only half of the actual maximum length, but
5262 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5263 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5264 = "XX$teststring") >/dev/null 2>&1 &&
5265 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5266 lt_cv_sys_max_cmd_len=$new_result &&
5267 test $i != 17 # 1/2 MB should be enough
5270 teststring=$teststring$teststring
5273 # Add a significant safety factor because C++ compilers can tack on massive
5274 # amounts of additional arguments before passing them to the linker.
5275 # It appears as though 1/2 is a usable value.
5276 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5282 if test -n $lt_cv_sys_max_cmd_len ; then
5283 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5284 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5286 echo "$as_me:$LINENO: result: none" >&5
5287 echo "${ECHO_T}none" >&6
5293 # Check for command to grab the raw symbol name followed by C symbol from nm.
5294 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5295 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5296 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 # These are sane defaults that work on at least a few old systems.
5301 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5303 # Character class describing NM global symbol codes.
5304 symcode='[BCDEGRST]'
5306 # Regexp to match symbols that can be accessed directly from C.
5307 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5309 # Transform the above into a raw symbol and a C symbol.
5310 symxfrm='\1 \2\3 \3'
5312 # Transform an extracted symbol line into a proper C declaration
5313 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5315 # Transform an extracted symbol line into symbol name and symbol address
5316 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'"
5318 # Define system-specific variables.
5323 cygwin* | mingw* | pw32*)
5324 symcode='[ABCDGISTW]'
5326 hpux*) # Its linker distinguishes data from code symbols
5327 if test "$host_cpu" = ia64; then
5328 symcode='[ABCDEGRST]'
5330 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5331 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'"
5334 if test "$host_cpu" = ia64; then
5335 symcode='[ABCDGIRSTW]'
5336 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5337 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'"
5341 symcode='[BCDEGRST]'
5344 symcode='[BCDEGQRST]'
5354 # Handle CRLF in mingw tool chain
5358 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5362 # If we're using GNU nm, then use its standard symbol codes.
5363 case `$NM -V 2>&1` in
5364 *GNU* | *'with BFD'*)
5365 symcode='[ABCDGIRSTW]' ;;
5368 # Try without a prefix undercore, then with it.
5369 for ac_symprfx in "" "_"; do
5371 # Write the raw and C identifiers.
5372 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5374 # Check to see that the pipe works correctly.
5378 cat > conftest.$ac_ext <<EOF
5383 void nm_test_func(){}
5387 int main(){nm_test_var='a';nm_test_func();return(0);}
5390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5391 (eval $ac_compile) 2>&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; then
5395 # Now try to grab the symbols.
5397 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5398 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } && test -s "$nlist"; then
5402 # Try sorting and uniquifying the output.
5403 if sort "$nlist" | uniq > "$nlist"T; then
5404 mv -f "$nlist"T "$nlist"
5409 # Make sure that we snagged all the symbols we need.
5410 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5411 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5412 cat <<EOF > conftest.$ac_ext
5418 # Now generate the symbol file.
5419 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5421 cat <<EOF >> conftest.$ac_ext
5422 #if defined (__STDC__) && __STDC__
5423 # define lt_ptr_t void *
5425 # define lt_ptr_t char *
5429 /* The mapping between symbol names and symbols. */
5434 lt_preloaded_symbols[] =
5437 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5438 cat <<\EOF >> conftest.$ac_ext
5446 # Now try linking the two files.
5447 mv conftest.$ac_objext conftstm.$ac_objext
5448 lt_save_LIBS="$LIBS"
5449 lt_save_CFLAGS="$CFLAGS"
5450 LIBS="conftstm.$ac_objext"
5451 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5453 (eval $ac_link) 2>&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5459 LIBS="$lt_save_LIBS"
5460 CFLAGS="$lt_save_CFLAGS"
5462 echo "cannot find nm_test_func in $nlist" >&5
5465 echo "cannot find nm_test_var in $nlist" >&5
5468 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5471 echo "$progname: failed program was:" >&5
5472 cat conftest.$ac_ext >&5
5474 rm -f conftest* conftst*
5476 # Do not use the global_symbol_pipe unless it works.
5477 if test "$pipe_works" = yes; then
5480 lt_cv_sys_global_symbol_pipe=
5486 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5487 lt_cv_sys_global_symbol_to_cdecl=
5489 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5490 echo "$as_me:$LINENO: result: failed" >&5
5491 echo "${ECHO_T}failed" >&6
5493 echo "$as_me:$LINENO: result: ok" >&5
5494 echo "${ECHO_T}ok" >&6
5497 echo "$as_me:$LINENO: checking for objdir" >&5
5498 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5499 if test "${lt_cv_objdir+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 rm -f .libs 2>/dev/null
5503 mkdir .libs 2>/dev/null
5504 if test -d .libs; then
5507 # MS-DOS does not allow filenames that begin with a dot.
5510 rmdir .libs 2>/dev/null
5512 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5513 echo "${ECHO_T}$lt_cv_objdir" >&6
5514 objdir=$lt_cv_objdir
5522 # AIX sometimes has problems with the GCC collect2 program. For some
5523 # reason, if we set the COLLECT_NAMES environment variable, the problems
5524 # vanish in a puff of smoke.
5525 if test "X${COLLECT_NAMES+set}" != Xset; then
5527 export COLLECT_NAMES
5532 # Sed substitution that helps us do robust quoting. It backslashifies
5533 # metacharacters that are still active within double-quoted strings.
5534 Xsed='sed -e s/^X//'
5535 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5537 # Same as above, but do not quote variable references.
5538 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5540 # Sed substitution to delay expansion of an escaped shell variable in a
5541 # double_quote_subst'ed string.
5542 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5544 # Sed substitution to avoid accidental globbing in evaled expressions
5545 no_glob_subst='s/\*/\\\*/g'
5552 can_build_shared=yes
5554 # All known linkers require a `.a' archive for static linking (except M$VC,
5555 # which needs '.lib').
5557 ltmain="$ac_aux_dir/ltmain.sh"
5558 ofile="$default_ofile"
5559 with_gnu_ld="$lt_cv_prog_gnu_ld"
5561 if test -n "$ac_tool_prefix"; then
5562 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5563 set dummy ${ac_tool_prefix}ar; ac_word=$2
5564 echo "$as_me:$LINENO: checking for $ac_word" >&5
5565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5566 if test "${ac_cv_prog_AR+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 if test -n "$AR"; then
5570 ac_cv_prog_AR="$AR" # Let the user override the test.
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5579 ac_cv_prog_AR="${ac_tool_prefix}ar"
5580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 if test -n "$AR"; then
5590 echo "$as_me:$LINENO: result: $AR" >&5
5591 echo "${ECHO_T}$AR" >&6
5593 echo "$as_me:$LINENO: result: no" >&5
5594 echo "${ECHO_T}no" >&6
5598 if test -z "$ac_cv_prog_AR"; then
5600 # Extract the first word of "ar", so it can be a program name with args.
5601 set dummy ar; ac_word=$2
5602 echo "$as_me:$LINENO: checking for $ac_word" >&5
5603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5604 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 if test -n "$ac_ct_AR"; then
5608 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 test -z "$as_dir" && as_dir=.
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5617 ac_cv_prog_ac_ct_AR="ar"
5618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5627 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5628 if test -n "$ac_ct_AR"; then
5629 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5630 echo "${ECHO_T}$ac_ct_AR" >&6
5632 echo "$as_me:$LINENO: result: no" >&5
5633 echo "${ECHO_T}no" >&6
5641 if test -n "$ac_tool_prefix"; then
5642 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5643 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5644 echo "$as_me:$LINENO: checking for $ac_word" >&5
5645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5646 if test "${ac_cv_prog_RANLIB+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 if test -n "$RANLIB"; then
5650 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 RANLIB=$ac_cv_prog_RANLIB
5669 if test -n "$RANLIB"; then
5670 echo "$as_me:$LINENO: result: $RANLIB" >&5
5671 echo "${ECHO_T}$RANLIB" >&6
5673 echo "$as_me:$LINENO: result: no" >&5
5674 echo "${ECHO_T}no" >&6
5678 if test -z "$ac_cv_prog_RANLIB"; then
5679 ac_ct_RANLIB=$RANLIB
5680 # Extract the first word of "ranlib", so it can be a program name with args.
5681 set dummy ranlib; ac_word=$2
5682 echo "$as_me:$LINENO: checking for $ac_word" >&5
5683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5684 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 if test -n "$ac_ct_RANLIB"; then
5688 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5697 ac_cv_prog_ac_ct_RANLIB="ranlib"
5698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5707 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5708 if test -n "$ac_ct_RANLIB"; then
5709 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5710 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5712 echo "$as_me:$LINENO: result: no" >&5
5713 echo "${ECHO_T}no" >&6
5716 RANLIB=$ac_ct_RANLIB
5718 RANLIB="$ac_cv_prog_RANLIB"
5721 if test -n "$ac_tool_prefix"; then
5722 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5723 set dummy ${ac_tool_prefix}strip; ac_word=$2
5724 echo "$as_me:$LINENO: checking for $ac_word" >&5
5725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5726 if test "${ac_cv_prog_STRIP+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 if test -n "$STRIP"; then
5730 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5739 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5748 STRIP=$ac_cv_prog_STRIP
5749 if test -n "$STRIP"; then
5750 echo "$as_me:$LINENO: result: $STRIP" >&5
5751 echo "${ECHO_T}$STRIP" >&6
5753 echo "$as_me:$LINENO: result: no" >&5
5754 echo "${ECHO_T}no" >&6
5758 if test -z "$ac_cv_prog_STRIP"; then
5760 # Extract the first word of "strip", so it can be a program name with args.
5761 set dummy strip; ac_word=$2
5762 echo "$as_me:$LINENO: checking for $ac_word" >&5
5763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5764 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 if test -n "$ac_ct_STRIP"; then
5768 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777 ac_cv_prog_ac_ct_STRIP="strip"
5778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5787 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5788 if test -n "$ac_ct_STRIP"; then
5789 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5790 echo "${ECHO_T}$ac_ct_STRIP" >&6
5792 echo "$as_me:$LINENO: result: no" >&5
5793 echo "${ECHO_T}no" >&6
5798 STRIP="$ac_cv_prog_STRIP"
5803 old_CFLAGS="$CFLAGS"
5805 # Set sane defaults for various variables
5806 test -z "$AR" && AR=ar
5807 test -z "$AR_FLAGS" && AR_FLAGS=cru
5808 test -z "$AS" && AS=as
5809 test -z "$CC" && CC=cc
5810 test -z "$LTCC" && LTCC=$CC
5811 test -z "$DLLTOOL" && DLLTOOL=dlltool
5812 test -z "$LD" && LD=ld
5813 test -z "$LN_S" && LN_S="ln -s"
5814 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5815 test -z "$NM" && NM=nm
5816 test -z "$SED" && SED=sed
5817 test -z "$OBJDUMP" && OBJDUMP=objdump
5818 test -z "$RANLIB" && RANLIB=:
5819 test -z "$STRIP" && STRIP=:
5820 test -z "$ac_objext" && ac_objext=o
5822 # Determine commands to create old-style static archives.
5823 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5824 old_postinstall_cmds='chmod 644 $oldlib'
5825 old_postuninstall_cmds=
5827 if test -n "$RANLIB"; then
5830 old_postinstall_cmds="\$RANLIB -t \$oldlib;$old_postinstall_cmds"
5833 old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds"
5836 old_archive_cmds="$old_archive_cmds;\$RANLIB \$oldlib"
5839 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5841 # Only perform the check for file, if the check method requires it
5842 case $deplibs_check_method in
5844 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5845 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5846 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5847 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5855 lt_save_MAGIC_CMD="$MAGIC_CMD"
5856 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5857 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5858 for ac_dir in $ac_dummy; do
5860 test -z "$ac_dir" && ac_dir=.
5861 if test -f $ac_dir/${ac_tool_prefix}file; then
5862 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5863 if test -n "$file_magic_test_file"; then
5864 case $deplibs_check_method in
5866 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5867 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5868 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5869 $EGREP "$file_magic_regex" > /dev/null; then
5874 *** Warning: the command libtool uses to detect shared libraries,
5875 *** $file_magic_cmd, produces output that libtool cannot recognize.
5876 *** The result is that libtool may fail to recognize shared libraries
5877 *** as such. This will affect the creation of libtool libraries that
5878 *** depend on shared libraries, but programs linked with such libtool
5879 *** libraries will work regardless of this problem. Nevertheless, you
5880 *** may want to report the problem to your system manager and/or to
5881 *** bug-libtool@gnu.org
5891 MAGIC_CMD="$lt_save_MAGIC_CMD"
5896 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5897 if test -n "$MAGIC_CMD"; then
5898 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5899 echo "${ECHO_T}$MAGIC_CMD" >&6
5901 echo "$as_me:$LINENO: result: no" >&5
5902 echo "${ECHO_T}no" >&6
5905 if test -z "$lt_cv_path_MAGIC_CMD"; then
5906 if test -n "$ac_tool_prefix"; then
5907 echo "$as_me:$LINENO: checking for file" >&5
5908 echo $ECHO_N "checking for file... $ECHO_C" >&6
5909 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5917 lt_save_MAGIC_CMD="$MAGIC_CMD"
5918 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5919 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5920 for ac_dir in $ac_dummy; do
5922 test -z "$ac_dir" && ac_dir=.
5923 if test -f $ac_dir/file; then
5924 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5925 if test -n "$file_magic_test_file"; then
5926 case $deplibs_check_method in
5928 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5929 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5930 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5931 $EGREP "$file_magic_regex" > /dev/null; then
5936 *** Warning: the command libtool uses to detect shared libraries,
5937 *** $file_magic_cmd, produces output that libtool cannot recognize.
5938 *** The result is that libtool may fail to recognize shared libraries
5939 *** as such. This will affect the creation of libtool libraries that
5940 *** depend on shared libraries, but programs linked with such libtool
5941 *** libraries will work regardless of this problem. Nevertheless, you
5942 *** may want to report the problem to your system manager and/or to
5943 *** bug-libtool@gnu.org
5953 MAGIC_CMD="$lt_save_MAGIC_CMD"
5958 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5959 if test -n "$MAGIC_CMD"; then
5960 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5961 echo "${ECHO_T}$MAGIC_CMD" >&6
5963 echo "$as_me:$LINENO: result: no" >&5
5964 echo "${ECHO_T}no" >&6
5979 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5980 if test "${enable_libtool_lock+set}" = set; then
5981 enableval="$enable_libtool_lock"
5984 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5987 # Check whether --with-pic or --without-pic was given.
5988 if test "${with_pic+set}" = set; then
5994 test -z "$pic_mode" && pic_mode=default
5996 # Use C for the default configuration in the libtool script
6000 ac_cpp='$CPP $CPPFLAGS'
6001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6006 # Source file extension for C test sources.
6009 # Object file extension for compiled C test sources.
6013 # Code to be used in simple compile tests
6014 lt_simple_compile_test_code="int some_variable = 0;\n"
6016 # Code to be used in simple link tests
6017 lt_simple_link_test_code='int main(){return(0);}\n'
6020 # If no C compiler was specified, use CC.
6023 # Allow CC to be a program name with arguments.
6028 # Check for any special shared library compilation flags.
6031 if test "$GCC" = no; then
6034 lt_prog_cc_shlib='-belf'
6038 if test -n "$lt_prog_cc_shlib"; then
6039 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6040 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6041 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6043 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6044 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6045 lt_cv_prog_cc_can_build_shared=no
6051 # Check to make sure the static flag actually works.
6053 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6054 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6055 if test "${lt_prog_compiler_static_works+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 lt_prog_compiler_static_works=no
6059 save_LDFLAGS="$LDFLAGS"
6060 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6061 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6062 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6063 # The compiler can only warn and ignore the option if not recognized
6064 # So say no if there are warnings
6065 if test -s conftest.err; then
6066 # Append any errors to the config.log.
6067 cat conftest.err 1>&5
6069 lt_prog_compiler_static_works=yes
6073 LDFLAGS="$save_LDFLAGS"
6076 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6077 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6079 if test x"$lt_prog_compiler_static_works" = xyes; then
6082 lt_prog_compiler_static=
6088 lt_prog_compiler_no_builtin_flag=
6090 if test "$GCC" = yes; then
6091 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6094 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6095 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6096 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 lt_cv_prog_compiler_rtti_exceptions=no
6100 ac_outfile=conftest.$ac_objext
6101 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6102 lt_compiler_flag="-fno-rtti -fno-exceptions"
6103 # Insert the option either (1) after the last *FLAGS variable, or
6104 # (2) before a word containing "conftest.", or (3) at the end.
6105 # Note that $ac_compile itself does not contain backslashes and begins
6106 # with a dollar sign (not a hyphen), so the echo should work correctly.
6107 # The option is referenced via a variable to avoid confusing sed.
6108 lt_compile=`echo "$ac_compile" | $SED \
6109 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6111 -e 's:$: $lt_compiler_flag:'`
6112 (eval echo "\"\$as_me:6112: $lt_compile\"" >&5)
6113 (eval "$lt_compile" 2>conftest.err)
6115 cat conftest.err >&5
6116 echo "$as_me:6116: \$? = $ac_status" >&5
6117 if (exit $ac_status) && test -s "$ac_outfile"; then
6118 # The compiler can only warn and ignore the option if not recognized
6119 # So say no if there are warnings
6120 if test ! -s conftest.err; then
6121 lt_cv_prog_compiler_rtti_exceptions=yes
6127 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6128 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6130 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6131 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6138 lt_prog_compiler_wl=
6139 lt_prog_compiler_pic=
6140 lt_prog_compiler_static=
6142 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6143 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6145 if test "$GCC" = yes; then
6146 lt_prog_compiler_wl='-Wl,'
6147 lt_prog_compiler_static='-static'
6151 # All AIX code is PIC.
6152 if test "$host_cpu" = ia64; then
6153 # AIX 5 now supports IA64 processor
6154 lt_prog_compiler_static='-Bstatic'
6159 # FIXME: we need at least 68020 code to build shared libraries, but
6160 # adding the `-m68020' flag to GCC prevents building anything better,
6162 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6165 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6166 # PIC is the default for these OSes.
6169 mingw* | pw32* | os2*)
6170 # This hack is so that the source file can tell whether it is being
6171 # built for inclusion in a dll (and should export symbols for example).
6172 lt_prog_compiler_pic='-DDLL_EXPORT'
6175 darwin* | rhapsody*)
6176 # PIC is the default on this platform
6177 # Common symbols not allowed in MH_DYLIB files
6178 lt_prog_compiler_pic='-fno-common'
6182 # Just because we use GCC doesn't mean we suddenly get shared libraries
6183 # on systems that don't support them.
6184 lt_prog_compiler_can_build_shared=no
6189 if test -d /usr/nec; then
6190 lt_prog_compiler_pic=-Kconform_pic
6195 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6202 lt_prog_compiler_pic='-fPIC'
6208 lt_prog_compiler_pic='-fPIC'
6212 # PORTME Check for flag to pass linker flags through the system compiler.
6215 lt_prog_compiler_wl='-Wl,'
6216 if test "$host_cpu" = ia64; then
6217 # AIX 5 now supports IA64 processor
6218 lt_prog_compiler_static='-Bstatic'
6220 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6224 # PIC is the default on this platform
6225 # Common symbols not allowed in MH_DYLIB files
6226 case "$cc_basename" in
6228 lt_prog_compiler_pic='-qnocommon'
6229 lt_prog_compiler_wl='-Wl,'
6234 mingw* | pw32* | os2*)
6235 # This hack is so that the source file can tell whether it is being
6236 # built for inclusion in a dll (and should export symbols for example).
6237 lt_prog_compiler_pic='-DDLL_EXPORT'
6240 hpux9* | hpux10* | hpux11*)
6241 lt_prog_compiler_wl='-Wl,'
6242 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6249 lt_prog_compiler_pic='+Z'
6252 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6253 lt_prog_compiler_static='${wl}-a ${wl}archive'
6256 irix5* | irix6* | nonstopux*)
6257 lt_prog_compiler_wl='-Wl,'
6258 # PIC (with -KPIC) is the default.
6259 lt_prog_compiler_static='-non_shared'
6263 lt_prog_compiler_pic='-KPIC'
6264 lt_prog_compiler_static='-Bstatic'
6270 lt_prog_compiler_wl='-Wl,'
6271 lt_prog_compiler_pic='-KPIC'
6272 lt_prog_compiler_static='-static'
6275 lt_prog_compiler_wl='-Wl,'
6276 # All Alpha code is PIC.
6277 lt_prog_compiler_static='-non_shared'
6282 osf3* | osf4* | osf5*)
6283 lt_prog_compiler_wl='-Wl,'
6284 # All OSF/1 code is PIC.
6285 lt_prog_compiler_static='-non_shared'
6289 lt_prog_compiler_pic='-Kpic'
6290 lt_prog_compiler_static='-dn'
6294 lt_prog_compiler_wl='-Wl,'
6295 lt_prog_compiler_pic='-KPIC'
6296 lt_prog_compiler_static='-Bstatic'
6300 lt_prog_compiler_wl='-Qoption ld '
6301 lt_prog_compiler_pic='-PIC'
6302 lt_prog_compiler_static='-Bstatic'
6305 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6306 lt_prog_compiler_wl='-Wl,'
6307 lt_prog_compiler_pic='-KPIC'
6308 lt_prog_compiler_static='-Bstatic'
6312 if test -d /usr/nec ;then
6313 lt_prog_compiler_pic='-Kconform_pic'
6314 lt_prog_compiler_static='-Bstatic'
6319 lt_prog_compiler_pic='-pic'
6320 lt_prog_compiler_static='-Bstatic'
6324 lt_prog_compiler_can_build_shared=no
6329 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6330 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6333 # Check to make sure the PIC flag actually works.
6335 if test -n "$lt_prog_compiler_pic"; then
6337 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6338 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6339 if test "${lt_prog_compiler_pic_works+set}" = set; then
6340 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 lt_prog_compiler_pic_works=no
6343 ac_outfile=conftest.$ac_objext
6344 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6345 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6346 # Insert the option either (1) after the last *FLAGS variable, or
6347 # (2) before a word containing "conftest.", or (3) at the end.
6348 # Note that $ac_compile itself does not contain backslashes and begins
6349 # with a dollar sign (not a hyphen), so the echo should work correctly.
6350 # The option is referenced via a variable to avoid confusing sed.
6351 lt_compile=`echo "$ac_compile" | $SED \
6352 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6353 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6354 -e 's:$: $lt_compiler_flag:'`
6355 (eval echo "\"\$as_me:6355: $lt_compile\"" >&5)
6356 (eval "$lt_compile" 2>conftest.err)
6358 cat conftest.err >&5
6359 echo "$as_me:6359: \$? = $ac_status" >&5
6360 if (exit $ac_status) && test -s "$ac_outfile"; then
6361 # The compiler can only warn and ignore the option if not recognized
6362 # So say no if there are warnings
6363 if test ! -s conftest.err; then
6364 lt_prog_compiler_pic_works=yes
6370 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6371 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6373 if test x"$lt_prog_compiler_pic_works" = xyes; then
6374 case $lt_prog_compiler_pic in
6376 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6379 lt_prog_compiler_pic=
6380 lt_prog_compiler_can_build_shared=no
6385 # For platforms which do not support PIC, -DPIC is meaningless:
6387 lt_prog_compiler_pic=
6390 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6394 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6395 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6396 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 lt_cv_prog_compiler_c_o=no
6400 $rm -r conftest 2>/dev/null
6404 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6406 lt_compiler_flag="-o out/conftest2.$ac_objext"
6407 # Insert the option either (1) after the last *FLAGS variable, or
6408 # (2) before a word containing "conftest.", or (3) at the end.
6409 # Note that $ac_compile itself does not contain backslashes and begins
6410 # with a dollar sign (not a hyphen), so the echo should work correctly.
6411 lt_compile=`echo "$ac_compile" | $SED \
6412 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6414 -e 's:$: $lt_compiler_flag:'`
6415 (eval echo "\"\$as_me:6415: $lt_compile\"" >&5)
6416 (eval "$lt_compile" 2>out/conftest.err)
6418 cat out/conftest.err >&5
6419 echo "$as_me:6419: \$? = $ac_status" >&5
6420 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6422 # The compiler can only warn and ignore the option if not recognized
6423 # So say no if there are warnings
6424 if test ! -s out/conftest.err; then
6425 lt_cv_prog_compiler_c_o=yes
6430 # SGI C++ compiler will create directory out/ii_files/ for
6431 # template instantiation
6432 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6433 $rm out/* && rmdir out
6439 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6440 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6443 hard_links="nottested"
6444 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6445 # do not overwrite the value of need_locks provided by the user
6446 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6447 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6450 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6452 ln conftest.a conftest.b 2>&5 || hard_links=no
6453 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6454 echo "$as_me:$LINENO: result: $hard_links" >&5
6455 echo "${ECHO_T}$hard_links" >&6
6456 if test "$hard_links" = no; then
6457 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6458 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6465 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6466 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6469 allow_undefined_flag=
6470 enable_shared_with_static_runtimes=no
6472 archive_expsym_cmds=
6473 old_archive_From_new_cmds=
6474 old_archive_from_expsyms_cmds=
6475 export_dynamic_flag_spec=
6476 whole_archive_flag_spec=
6477 thread_safe_flag_spec=
6478 hardcode_libdir_flag_spec=
6479 hardcode_libdir_flag_spec_ld=
6480 hardcode_libdir_separator=
6483 hardcode_shlibpath_var=unsupported
6484 link_all_deplibs=unknown
6485 hardcode_automatic=no
6488 always_export_symbols=no
6489 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6490 # include_expsyms should be a list of space-separated symbols to be *always*
6491 # included in the symbol list
6493 # exclude_expsyms can be an extended regexp of symbols to exclude
6494 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6495 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6496 # as well as any symbol that contains `d'.
6497 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6498 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6499 # platforms (ab)use it in PIC code, but their linkers get confused if
6500 # the symbol is explicitly referenced. Since portable code cannot
6501 # rely on this symbol name, it's probably fine to never include it in
6502 # preloaded symbol tables.
6503 extract_expsyms_cmds=
6506 cygwin* | mingw* | pw32*)
6507 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6508 # When not using gcc, we currently assume that we are using
6509 # Microsoft Visual C++.
6510 if test "$GCC" != yes; then
6520 if test "$with_gnu_ld" = yes; then
6521 # If archive_cmds runs LD, not CC, wlarc should be empty
6524 # See if GNU ld supports shared libraries.
6526 aix3* | aix4* | aix5*)
6527 # On AIX/PPC, the GNU linker is very broken
6528 if test "$host_cpu" != ia64; then
6532 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6533 *** to be unable to reliably create shared libraries on AIX.
6534 *** Therefore, libtool is disabling shared libraries support. If you
6535 *** really care for shared libraries, you may want to modify your PATH
6536 *** so that a non-GNU linker is found, and then restart.
6543 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)'
6544 hardcode_libdir_flag_spec='-L$libdir'
6545 hardcode_minus_L=yes
6547 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6548 # that the semantics of dynamic libraries on AmigaOS, at least up
6549 # to version 4, is to share data among multiple programs linked
6550 # with the same dynamic library. Since this doesn't match the
6551 # behavior of shared libraries on other platforms, we can't use
6557 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6558 allow_undefined_flag=unsupported
6559 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6560 # support --undefined. This deserves some investigation. FIXME
6561 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6567 cygwin* | mingw* | pw32*)
6568 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6569 # as there is no search path for DLLs.
6570 hardcode_libdir_flag_spec='-L$libdir'
6571 allow_undefined_flag=unsupported
6572 always_export_symbols=no
6573 enable_shared_with_static_runtimes=yes
6574 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6576 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6578 # If the export-symbols file already is a .def file (1st line
6579 # is EXPORTS), use it as is; otherwise, prepend...
6580 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6581 cp $export_symbols $output_objdir/$soname.def;
6583 echo EXPORTS > $output_objdir/$soname.def;
6584 cat $export_symbols >> $output_objdir/$soname.def;
6585 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6592 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6593 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6597 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6602 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6606 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6607 *** create shared libraries on Solaris systems. Therefore, libtool
6608 *** is disabling shared libraries support. We urge you to upgrade GNU
6609 *** binutils to release 2.9.1 or newer. Another option is to modify
6610 *** your PATH or compiler configuration so that the native linker is
6611 *** used, and then restart.
6614 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6616 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6623 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6626 hardcode_shlibpath_var=no
6630 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6631 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6632 archive_cmds="$tmp_archive_cmds"
6633 supports_anon_versioning=no
6634 case `$LD -v 2>/dev/null` in
6635 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6636 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6637 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6638 *\ 2.11.*) ;; # other 2.11 versions
6639 *) supports_anon_versioning=yes ;;
6641 if test $supports_anon_versioning = yes; then
6642 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
6643 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6645 archive_expsym_cmds="$tmp_archive_cmds"
6653 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6655 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6662 if test "$ld_shlibs" = yes; then
6663 runpath_var=LD_RUN_PATH
6664 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6665 export_dynamic_flag_spec='${wl}--export-dynamic'
6666 # ancient GNU ld didn't support --whole-archive et. al.
6667 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6668 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6670 whole_archive_flag_spec=
6674 # PORTME fill in a description of your system's linker (not GNU ld)
6677 allow_undefined_flag=unsupported
6678 always_export_symbols=yes
6679 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'
6680 # Note: this linker hardcodes the directories in LIBPATH if there
6681 # are no directories specified by -L.
6682 hardcode_minus_L=yes
6683 if test "$GCC" = yes && test -z "$link_static_flag"; then
6684 # Neither direct hardcoding nor static linking is supported with a
6686 hardcode_direct=unsupported
6691 if test "$host_cpu" = ia64; then
6692 # On IA64, the linker does run time linking by default, so we don't
6693 # have to do anything special.
6694 aix_use_runtimelinking=no
6695 exp_sym_flag='-Bexport'
6698 # If we're using GNU nm, then we don't want the "-C" option.
6699 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6700 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6701 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'
6703 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'
6705 aix_use_runtimelinking=no
6707 # Test if we are trying to use run time linking or normal
6708 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6709 # need to do runtime linking.
6710 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6711 for ld_flag in $LDFLAGS; do
6712 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6713 aix_use_runtimelinking=yes
6719 exp_sym_flag='-bexport'
6720 no_entry_flag='-bnoentry'
6723 # When large executables or shared objects are built, AIX ld can
6724 # have problems creating the table of contents. If linking a library
6725 # or program results in "error TOC overflow" add -mminimal-toc to
6726 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6727 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6731 hardcode_libdir_separator=':'
6732 link_all_deplibs=yes
6734 if test "$GCC" = yes; then
6735 case $host_os in aix4.012|aix4.012.*)
6736 # We only want to do this on AIX 4.2 and lower, the check
6737 # below for broken collect2 doesn't work under 4.3+
6738 collect2name=`${CC} -print-prog-name=collect2`
6739 if test -f "$collect2name" && \
6740 strings "$collect2name" | grep resolve_lib_name >/dev/null
6742 # We have reworked collect2
6745 # We have old collect2
6746 hardcode_direct=unsupported
6747 # It fails to find uninstalled libraries when the uninstalled
6748 # path is not listed in the libpath. Setting hardcode_minus_L
6749 # to unsupported forces relinking
6750 hardcode_minus_L=yes
6751 hardcode_libdir_flag_spec='-L$libdir'
6752 hardcode_libdir_separator=
6755 shared_flag='-shared'
6758 if test "$host_cpu" = ia64; then
6759 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6760 # chokes on -Wl,-G. The following line is correct:
6763 if test "$aix_use_runtimelinking" = yes; then
6764 shared_flag='${wl}-G'
6766 shared_flag='${wl}-bM:SRE'
6771 # It seems that -bexpall does not export symbols beginning with
6772 # underscore (_), so it is better to generate a list of symbols to export.
6773 always_export_symbols=yes
6774 if test "$aix_use_runtimelinking" = yes; then
6775 # Warning - without using the other runtime loading flags (-brtl),
6776 # -berok will link without error, but may produce a broken library.
6777 allow_undefined_flag='-berok'
6778 # Determine the default libpath from the value encoded in an empty executable.
6779 cat >conftest.$ac_ext <<_ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6794 rm -f conftest.$ac_objext conftest$ac_exeext
6795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6796 (eval $ac_link) 2>conftest.er1
6798 grep -v '^ *+' conftest.er1 >conftest.err
6800 cat conftest.err >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); } &&
6803 { ac_try='test -z "$ac_c_werror_flag"
6804 || test ! -s conftest.err'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; } &&
6810 { ac_try='test -s conftest$ac_exeext'
6811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; }; then
6817 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6819 # Check for a 64-bit object if we didn't find anything.
6820 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; }
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6827 rm -f conftest.err conftest.$ac_objext \
6828 conftest$ac_exeext conftest.$ac_ext
6829 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6831 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6832 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6834 if test "$host_cpu" = ia64; then
6835 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6836 allow_undefined_flag="-z nodefs"
6837 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6839 # Determine the default libpath from the value encoded in an empty executable.
6840 cat >conftest.$ac_ext <<_ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h. */
6855 rm -f conftest.$ac_objext conftest$ac_exeext
6856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6857 (eval $ac_link) 2>conftest.er1
6859 grep -v '^ *+' conftest.er1 >conftest.err
6861 cat conftest.err >&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } &&
6864 { ac_try='test -z "$ac_c_werror_flag"
6865 || test ! -s conftest.err'
6866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; } &&
6871 { ac_try='test -s conftest$ac_exeext'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; }; then
6878 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6880 # Check for a 64-bit object if we didn't find anything.
6881 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; }
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6888 rm -f conftest.err conftest.$ac_objext \
6889 conftest$ac_exeext conftest.$ac_ext
6890 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6892 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6893 # Warning - without using the other run time loading flags,
6894 # -berok will link without error, but may produce a broken library.
6895 no_undefined_flag=' ${wl}-bernotok'
6896 allow_undefined_flag=' ${wl}-berok'
6897 # -bexpall does not export symbols beginning with underscore (_)
6898 always_export_symbols=yes
6899 # Exported symbols can be pulled into shared objects from archives
6900 whole_archive_flag_spec=' '
6901 archive_cmds_need_lc=yes
6902 # This is similar to how AIX traditionally builds it's shared libraries.
6903 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag};$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6909 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)'
6910 hardcode_libdir_flag_spec='-L$libdir'
6911 hardcode_minus_L=yes
6912 # see comment about different semantics on the GNU ld section
6917 export_dynamic_flag_spec=-rdynamic
6920 cygwin* | mingw* | pw32*)
6921 # When not using gcc, we currently assume that we are using
6922 # Microsoft Visual C++.
6923 # hardcode_libdir_flag_spec is actually meaningless, as there is
6924 # no search path for DLLs.
6925 hardcode_libdir_flag_spec=' '
6926 allow_undefined_flag=unsupported
6927 # Tell ltmain to make .lib files, not .a files.
6929 # Tell ltmain to make .dll files, not .so files.
6931 # FIXME: Setting linknames here is a bad hack.
6932 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
6933 # The linker will automatically build a .lib file if we build a DLL.
6934 old_archive_From_new_cmds='true'
6935 # FIXME: Should let the user specify the lib program.
6936 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6937 fix_srcfile_path='`cygpath -w "$srcfile"`'
6938 enable_shared_with_static_runtimes=yes
6941 darwin* | rhapsody*)
6943 rhapsody* | darwin1.[012])
6944 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6947 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6948 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6950 case ${MACOSX_DEPLOYMENT_TARGET} in
6952 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6955 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6961 archive_cmds_need_lc=no
6963 hardcode_automatic=yes
6964 hardcode_shlibpath_var=unsupported
6965 whole_archive_flag_spec=''
6966 link_all_deplibs=yes
6967 if test "$GCC" = yes ; then
6968 output_verbose_link_cmd='echo'
6969 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6970 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6971 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6972 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}'
6973 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}'
6975 case "$cc_basename" in
6977 output_verbose_link_cmd='echo'
6978 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6979 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6980 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6981 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}'
6982 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}'
6992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6993 hardcode_libdir_flag_spec='-L$libdir'
6994 hardcode_shlibpath_var=no
7001 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7002 # support. Future versions do this automatically, but an explicit c++rt0.o
7003 # does not break anything, and helps significantly (at the cost of a little
7006 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7007 hardcode_libdir_flag_spec='-R$libdir'
7009 hardcode_shlibpath_var=no
7012 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7014 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7016 hardcode_minus_L=yes
7017 hardcode_shlibpath_var=no
7020 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7021 freebsd* | kfreebsd*-gnu)
7022 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7023 hardcode_libdir_flag_spec='-R$libdir'
7025 hardcode_shlibpath_var=no
7029 if test "$GCC" = yes; then
7030 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'
7032 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'
7034 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7035 hardcode_libdir_separator=:
7038 # hardcode_minus_L: Not really in the search PATH,
7039 # but as the default location of the library.
7040 hardcode_minus_L=yes
7041 export_dynamic_flag_spec='${wl}-E'
7045 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7048 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7051 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7057 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7060 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7064 if test "$with_gnu_ld" = no; then
7067 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7068 hardcode_libdir_flag_spec_ld='+b $libdir'
7069 hardcode_libdir_separator=:
7071 hardcode_shlibpath_var=no
7074 hardcode_libdir_flag_spec='-L$libdir'
7076 hardcode_shlibpath_var=no
7078 # hardcode_minus_L: Not really in the search PATH,
7079 # but as the default location of the library.
7080 hardcode_minus_L=yes
7083 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7084 hardcode_libdir_separator=:
7086 export_dynamic_flag_spec='${wl}-E'
7088 # hardcode_minus_L: Not really in the search PATH,
7089 # but as the default location of the library.
7090 hardcode_minus_L=yes
7096 irix5* | irix6* | nonstopux*)
7097 if test "$GCC" = yes; then
7098 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'
7100 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'
7101 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7103 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7104 hardcode_libdir_separator=:
7105 link_all_deplibs=yes
7109 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7110 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7112 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7114 hardcode_libdir_flag_spec='-R$libdir'
7116 hardcode_shlibpath_var=no
7120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7122 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7123 hardcode_libdir_separator=:
7124 hardcode_shlibpath_var=no
7129 hardcode_shlibpath_var=no
7130 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7131 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7132 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7133 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7134 export_dynamic_flag_spec='${wl}-E'
7137 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7138 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7139 hardcode_libdir_flag_spec='-R$libdir'
7142 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7143 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7150 hardcode_libdir_flag_spec='-L$libdir'
7151 hardcode_minus_L=yes
7152 allow_undefined_flag=unsupported
7153 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'
7154 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7158 if test "$GCC" = yes; then
7159 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7160 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'
7162 allow_undefined_flag=' -expect_unresolved \*'
7163 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'
7165 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7166 hardcode_libdir_separator=:
7169 osf4* | osf5*) # as osf3* with the addition of -msym flag
7170 if test "$GCC" = yes; then
7171 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7172 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'
7173 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7175 allow_undefined_flag=' -expect_unresolved \*'
7176 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'
7177 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp; $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib;$rm $lib.exp'
7178 # Both c and cxx compiler support -rpath directly
7179 hardcode_libdir_flag_spec='-rpath $libdir'
7181 hardcode_libdir_separator=:
7185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7186 hardcode_shlibpath_var=no
7187 export_dynamic_flag_spec='${wl}-Bexport'
7188 runpath_var=LD_RUN_PATH
7189 hardcode_runpath_var=yes
7193 no_undefined_flag=' -z text'
7194 if test "$GCC" = yes; then
7195 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7196 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
7198 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7199 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
7201 hardcode_libdir_flag_spec='-R$libdir'
7202 hardcode_shlibpath_var=no
7204 solaris2.[0-5] | solaris2.[0-5].*) ;;
7205 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7206 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7208 link_all_deplibs=yes
7212 if test "x$host_vendor" = xsequent; then
7213 # Use $CC to link under sequent, because it throws in some extra .o
7214 # files that make .init and .fini sections work.
7215 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7217 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7219 hardcode_libdir_flag_spec='-L$libdir'
7221 hardcode_minus_L=yes
7222 hardcode_shlibpath_var=no
7226 case $host_vendor in
7228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7229 hardcode_direct=yes # is this really true???
7232 ## LD is ld it makes a PLAMLIB
7233 ## CC just makes a GrossModule.
7234 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7235 reload_cmds='$CC -r -o $output$reload_objs'
7239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7240 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7243 runpath_var='LD_RUN_PATH'
7244 hardcode_shlibpath_var=no
7248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7249 hardcode_shlibpath_var=no
7250 export_dynamic_flag_spec='-Bexport'
7254 if test -d /usr/nec; then
7255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7256 hardcode_shlibpath_var=no
7257 runpath_var=LD_RUN_PATH
7258 hardcode_runpath_var=yes
7264 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7267 hardcode_shlibpath_var=no
7268 hardcode_runpath_var=yes
7269 runpath_var=LD_RUN_PATH
7272 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7273 no_undefined_flag='${wl}-z ${wl}text'
7274 if test "$GCC" = yes; then
7275 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7277 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7279 runpath_var='LD_RUN_PATH'
7280 hardcode_shlibpath_var=no
7284 no_undefined_flag=' -z text'
7285 # $CC -shared without GNU ld will not create a library from C++
7286 # object files and a static libstdc++, better avoid it by now
7287 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7288 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
7289 hardcode_libdir_flag_spec=
7290 hardcode_shlibpath_var=no
7291 runpath_var='LD_RUN_PATH'
7295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7296 hardcode_libdir_flag_spec='-L$libdir'
7297 hardcode_shlibpath_var=no
7306 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7307 echo "${ECHO_T}$ld_shlibs" >&6
7308 test "$ld_shlibs" = no && can_build_shared=no
7310 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7311 if test "$GCC" = yes; then
7312 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7316 # Do we need to explicitly link libc?
7318 case "x$archive_cmds_need_lc" in
7320 # Assume -lc should be added
7321 archive_cmds_need_lc=yes
7323 if test "$enable_shared" = yes && test "$GCC" = yes; then
7324 case $archive_cmds in
7326 # FIXME: we may have to deal with multi-command sequences.
7329 # Test whether the compiler implicitly links with -lc since on some
7330 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7331 # to ld, don't add -lc before -lgcc.
7332 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7333 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7335 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7338 (eval $ac_compile) 2>&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); } 2>conftest.err; then
7344 libobjs=conftest.$ac_objext
7346 wl=$lt_prog_compiler_wl
7352 lt_save_allow_undefined_flag=$allow_undefined_flag
7353 allow_undefined_flag=
7354 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7355 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }
7360 archive_cmds_need_lc=no
7362 archive_cmds_need_lc=yes
7364 allow_undefined_flag=$lt_save_allow_undefined_flag
7366 cat conftest.err 1>&5
7369 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7370 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7377 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7378 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7380 libname_spec='lib$name'
7388 shlibpath_overrides_runpath=unknown
7390 dynamic_linker="$host_os ld.so"
7391 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7392 if test "$GCC" = yes; then
7393 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7394 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7395 # if the path contains ";" then we assume it to be the separator
7396 # otherwise default to the standard path separator (i.e. ":") - it is
7397 # assumed that no part of a normal pathname contains ";" but that should
7398 # okay in the real world where ";" in dirpaths is itself problematic.
7399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7404 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7406 need_lib_prefix=unknown
7407 hardcode_into_libs=no
7409 # when you set need_version to no, make sure it does not cause -set_version
7410 # flags to be left without arguments
7411 need_version=unknown
7416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7417 shlibpath_var=LIBPATH
7419 # AIX 3 has no versioning support, so we append a major version to the name.
7420 soname_spec='${libname}${release}${shared_ext}$major'
7427 hardcode_into_libs=yes
7428 if test "$host_cpu" = ia64; then
7429 # AIX 5 supports IA64
7430 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7431 shlibpath_var=LD_LIBRARY_PATH
7433 # With GCC up to 2.95.x, collect2 would create an import file
7434 # for dependence libraries. The import file would start with
7435 # the line `#! .'. This would cause the generated library to
7436 # depend on `.', always an invalid library. This was fixed in
7437 # development snapshots of GCC prior to 3.0.
7439 aix4 | aix4.[01] | aix4.[01].*)
7440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7442 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7449 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7450 # soname into executable. Probably we can add versioning support to
7451 # collect2, so additional links can be useful in future.
7452 if test "$aix_use_runtimelinking" = yes; then
7453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7454 # instead of lib<name>.a to let people know that these are not
7455 # typical AIX shared libraries.
7456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7458 # We preserve .a as extension for shared libraries through AIX4.2
7459 # and later when we are not doing run time linking.
7460 library_names_spec='${libname}${release}.a $libname.a'
7461 soname_spec='${libname}${release}${shared_ext}$major'
7463 shlibpath_var=LIBPATH
7468 library_names_spec='$libname.ixlibrary $libname.a'
7469 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7470 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'
7474 library_names_spec='${libname}${shared_ext}'
7475 dynamic_linker="$host_os ld.so"
7476 shlibpath_var=LIBRARY_PATH
7482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7483 soname_spec='${libname}${release}${shared_ext}$major'
7484 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7485 shlibpath_var=LD_LIBRARY_PATH
7486 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7487 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7488 # the default ld.so.conf also contains /usr/contrib/lib and
7489 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7490 # libtool to hard-code these into programs
7493 cygwin* | mingw* | pw32*)
7494 version_type=windows
7499 case $GCC,$host_os in
7500 yes,cygwin* | yes,mingw* | yes,pw32*)
7501 library_names_spec='$libname.dll.a'
7502 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7503 postinstall_cmds='base_file=`basename \${file}`;
7504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
7505 dldir=$destdir/`dirname \$dlpath`;
7506 test -d \$dldir || mkdir -p \$dldir;
7507 $install_prog $dir/$dlname \$dldir/$dlname'
7508 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
7509 dlpath=$dir/\$dldll;
7511 shlibpath_overrides_runpath=yes
7515 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7516 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7517 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7520 # MinGW DLLs use traditional 'lib' prefix
7521 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7522 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7523 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7524 # It is most probably a Windows format PATH printed by
7525 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7526 # path with ; separators, and with drive letters. We can handle the
7527 # drive letters (cygwin fileutils understands them), so leave them,
7528 # especially as we might pass files found there to a mingw objdump,
7529 # which wouldn't understand a cygwinified path. Ahh.
7530 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7532 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7536 # pw32 DLLs use 'pw' prefix rather than 'lib'
7537 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7543 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7546 dynamic_linker='Win32 ld.exe'
7547 # FIXME: first we should search . and the directory the executable is in
7551 darwin* | rhapsody*)
7552 dynamic_linker="$host_os dyld"
7556 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7557 soname_spec='${libname}${release}${major}$shared_ext'
7558 shlibpath_overrides_runpath=yes
7559 shlibpath_var=DYLD_LIBRARY_PATH
7560 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7561 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7562 if test "$GCC" = yes; then
7563 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"`
7565 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7567 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7575 soname_spec='${libname}${release}${shared_ext}$major'
7576 shlibpath_var=LD_LIBRARY_PATH
7587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7588 soname_spec='${libname}${release}${shared_ext}$major'
7589 shlibpath_var=LD_LIBRARY_PATH
7590 shlibpath_overrides_runpath=no
7591 hardcode_into_libs=yes
7592 dynamic_linker='GNU ld.so'
7596 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7597 version_type=freebsd-$objformat
7598 case $version_type in
7600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7609 shlibpath_var=LD_LIBRARY_PATH
7612 shlibpath_overrides_runpath=yes
7614 freebsd3.01* | freebsdelf3.01*)
7615 shlibpath_overrides_runpath=yes
7616 hardcode_into_libs=yes
7619 shlibpath_overrides_runpath=no
7620 hardcode_into_libs=yes
7629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7630 soname_spec='${libname}${release}${shared_ext}$major'
7631 shlibpath_var=LD_LIBRARY_PATH
7632 hardcode_into_libs=yes
7635 hpux9* | hpux10* | hpux11*)
7636 # Give a soname corresponding to the major version so that dld.sl refuses to
7637 # link against other versions.
7644 hardcode_into_libs=yes
7645 dynamic_linker="$host_os dld.so"
7646 shlibpath_var=LD_LIBRARY_PATH
7647 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7649 soname_spec='${libname}${release}${shared_ext}$major'
7650 if test "X$HPUX_IA64_MODE" = X32; then
7651 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7653 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7655 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7659 hardcode_into_libs=yes
7660 dynamic_linker="$host_os dld.sl"
7661 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7664 soname_spec='${libname}${release}${shared_ext}$major'
7665 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7666 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7670 dynamic_linker="$host_os dld.sl"
7671 shlibpath_var=SHLIB_PATH
7672 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7674 soname_spec='${libname}${release}${shared_ext}$major'
7677 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7678 postinstall_cmds='chmod 555 $lib'
7681 irix5* | irix6* | nonstopux*)
7683 nonstopux*) version_type=nonstopux ;;
7685 if test "$lt_cv_prog_gnu_ld" = yes; then
7693 soname_spec='${libname}${release}${shared_ext}$major'
7694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7696 irix5* | nonstopux*)
7700 case $LD in # libtool.m4 will add one of these switches to LD
7701 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7702 libsuff= shlibsuff= libmagic=32-bit;;
7703 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7704 libsuff=32 shlibsuff=N32 libmagic=N32;;
7705 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7706 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7707 *) libsuff= shlibsuff= libmagic=never-match;;
7711 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7712 shlibpath_overrides_runpath=no
7713 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7714 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7715 hardcode_into_libs=yes
7718 # No shared lib support for Linux oldld, aout, or coff.
7719 linux*oldld* | linux*aout* | linux*coff*)
7723 # This must be Linux ELF.
7728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7729 soname_spec='${libname}${release}${shared_ext}$major'
7730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7731 shlibpath_var=LD_LIBRARY_PATH
7732 shlibpath_overrides_runpath=no
7733 # This implies no fast_install, which is unacceptable.
7734 # Some rework will be needed to allow for fast_install
7735 # before this can be enabled.
7736 hardcode_into_libs=yes
7738 # Append ld.so.conf contents to the search path
7739 if test -f /etc/ld.so.conf; then
7740 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7741 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7744 # We used to test for /lib/ld.so.1 and disable shared libraries on
7745 # powerpc, because MkLinux only supported shared libraries with the
7746 # GNU dynamic linker. Since this was broken with cross compilers,
7747 # most powerpc-linux boxes support dynamic linking these days and
7748 # people can always --disable-shared, the test was removed, and we
7749 # assume the GNU/Linux dynamic linker is in use.
7750 dynamic_linker='GNU/Linux ld.so'
7757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7758 soname_spec='${libname}${release}${shared_ext}$major'
7759 shlibpath_var=LD_LIBRARY_PATH
7760 shlibpath_overrides_runpath=no
7761 hardcode_into_libs=yes
7762 dynamic_linker='GNU ld.so'
7769 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7772 dynamic_linker='NetBSD (a.out) ld.so'
7774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7775 soname_spec='${libname}${release}${shared_ext}$major'
7776 dynamic_linker='NetBSD ld.elf_so'
7778 shlibpath_var=LD_LIBRARY_PATH
7779 shlibpath_overrides_runpath=yes
7780 hardcode_into_libs=yes
7785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7786 shlibpath_var=LD_LIBRARY_PATH
7787 shlibpath_overrides_runpath=yes
7794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7795 soname_spec='${libname}${release}${shared_ext}$major'
7796 shlibpath_var=LD_LIBRARY_PATH
7797 shlibpath_overrides_runpath=yes
7804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7806 shlibpath_var=LD_LIBRARY_PATH
7807 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7809 openbsd2.[89] | openbsd2.[89].*)
7810 shlibpath_overrides_runpath=no
7813 shlibpath_overrides_runpath=yes
7817 shlibpath_overrides_runpath=yes
7822 libname_spec='$name'
7825 library_names_spec='$libname${shared_ext} $libname.a'
7826 dynamic_linker='OS/2 ld.exe'
7827 shlibpath_var=LIBPATH
7830 osf3* | osf4* | osf5*)
7834 soname_spec='${libname}${release}${shared_ext}$major'
7835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7836 shlibpath_var=LD_LIBRARY_PATH
7837 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7838 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7843 soname_spec='${libname}${release}${shared_ext}$major'
7844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7845 shlibpath_var=LD_LIBRARY_PATH
7852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7853 soname_spec='${libname}${release}${shared_ext}$major'
7854 shlibpath_var=LD_LIBRARY_PATH
7855 shlibpath_overrides_runpath=yes
7856 hardcode_into_libs=yes
7857 # ldd complains unless libraries are executable
7858 postinstall_cmds='chmod +x $lib'
7863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7864 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7865 shlibpath_var=LD_LIBRARY_PATH
7866 shlibpath_overrides_runpath=yes
7867 if test "$with_gnu_ld" = yes; then
7873 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7876 soname_spec='${libname}${release}${shared_ext}$major'
7877 shlibpath_var=LD_LIBRARY_PATH
7878 case $host_vendor in
7880 shlibpath_overrides_runpath=no
7882 export_dynamic_flag_spec='${wl}-Blargedynsym'
7883 runpath_var=LD_RUN_PATH
7891 shlibpath_overrides_runpath=no
7892 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7898 if test -d /usr/nec ;then
7900 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7901 soname_spec='$libname${shared_ext}.$major'
7902 shlibpath_var=LD_LIBRARY_PATH
7908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7909 soname_spec='${libname}${release}${shared_ext}$major'
7910 shlibpath_var=LD_LIBRARY_PATH
7917 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7918 echo "${ECHO_T}$dynamic_linker" >&6
7919 test "$dynamic_linker" = no && can_build_shared=no
7921 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7922 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7924 if test -n "$hardcode_libdir_flag_spec" || \
7925 test -n "$runpath_var" || \
7926 test "X$hardcode_automatic" = "Xyes" ; then
7928 # We can hardcode non-existant directories.
7929 if test "$hardcode_direct" != no &&
7930 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7931 # have to relink, otherwise we might link with an installed library
7932 # when we should be linking with a yet-to-be-installed one
7933 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7934 test "$hardcode_minus_L" != no; then
7935 # Linking always hardcodes the temporary library directory.
7936 hardcode_action=relink
7938 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7939 hardcode_action=immediate
7942 # We cannot hardcode anything, or else we can only hardcode existing
7944 hardcode_action=unsupported
7946 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7947 echo "${ECHO_T}$hardcode_action" >&6
7949 if test "$hardcode_action" = relink; then
7950 # Fast installation is not supported
7951 enable_fast_install=no
7952 elif test "$shlibpath_overrides_runpath" = yes ||
7953 test "$enable_shared" = no; then
7954 # Fast installation is not necessary
7955 enable_fast_install=needless
7960 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7961 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7962 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7963 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7964 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7965 echo "$as_me:$LINENO: result: yes" >&5
7966 echo "${ECHO_T}yes" >&6
7968 # FIXME - insert some real tests, host_os isn't really good enough
7971 if test -n "$STRIP" ; then
7972 striplib="$STRIP -x"
7973 echo "$as_me:$LINENO: result: yes" >&5
7974 echo "${ECHO_T}yes" >&6
7976 echo "$as_me:$LINENO: result: no" >&5
7977 echo "${ECHO_T}no" >&6
7981 echo "$as_me:$LINENO: result: no" >&5
7982 echo "${ECHO_T}no" >&6
7987 if test "x$enable_dlopen" != xyes; then
7988 enable_dlopen=unknown
7989 enable_dlopen_self=unknown
7990 enable_dlopen_self_static=unknown
7997 lt_cv_dlopen="load_add_on"
7999 lt_cv_dlopen_self=yes
8003 lt_cv_dlopen="LoadLibrary"
8008 lt_cv_dlopen="dlopen"
8013 # if libdl is installed we need to link against it
8014 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8015 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8016 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 ac_check_lib_save_LIBS=$LIBS
8021 cat >conftest.$ac_ext <<_ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8028 /* Override any gcc2 internal prototype to avoid an error. */
8032 /* We use char because int might match the return type of a gcc2
8033 builtin and then its argument prototype would still apply. */
8043 rm -f conftest.$ac_objext conftest$ac_exeext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8045 (eval $ac_link) 2>conftest.er1
8047 grep -v '^ *+' conftest.er1 >conftest.err
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try='test -z "$ac_c_werror_flag"
8053 || test ! -s conftest.err'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try='test -s conftest$ac_exeext'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 ac_cv_lib_dl_dlopen=yes
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8070 ac_cv_lib_dl_dlopen=no
8072 rm -f conftest.err conftest.$ac_objext \
8073 conftest$ac_exeext conftest.$ac_ext
8074 LIBS=$ac_check_lib_save_LIBS
8076 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8077 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8078 if test $ac_cv_lib_dl_dlopen = yes; then
8079 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8084 lt_cv_dlopen_self=yes
8091 echo "$as_me:$LINENO: checking for shl_load" >&5
8092 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8093 if test "${ac_cv_func_shl_load+set}" = set; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 cat >conftest.$ac_ext <<_ACEOF
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h. */
8102 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8104 #define shl_load innocuous_shl_load
8106 /* System header to define __stub macros and hopefully few prototypes,
8107 which can conflict with char shl_load (); below.
8108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8109 <limits.h> exists even on freestanding compilers. */
8112 # include <limits.h>
8114 # include <assert.h>
8119 /* Override any gcc2 internal prototype to avoid an error. */
8124 /* We use char because int might match the return type of a gcc2
8125 builtin and then its argument prototype would still apply. */
8127 /* The GNU C library defines this for functions which it implements
8128 to always fail with ENOSYS. Some functions are actually named
8129 something starting with __ and the normal name is an alias. */
8130 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8133 char (*f) () = shl_load;
8142 return f != shl_load;
8147 rm -f conftest.$ac_objext conftest$ac_exeext
8148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8149 (eval $ac_link) 2>conftest.er1
8151 grep -v '^ *+' conftest.er1 >conftest.err
8153 cat conftest.err >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } &&
8156 { ac_try='test -z "$ac_c_werror_flag"
8157 || test ! -s conftest.err'
8158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); }; } &&
8163 { ac_try='test -s conftest$ac_exeext'
8164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); }; }; then
8169 ac_cv_func_shl_load=yes
8171 echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8174 ac_cv_func_shl_load=no
8176 rm -f conftest.err conftest.$ac_objext \
8177 conftest$ac_exeext conftest.$ac_ext
8179 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8180 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8181 if test $ac_cv_func_shl_load = yes; then
8182 lt_cv_dlopen="shl_load"
8184 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8185 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8186 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 ac_check_lib_save_LIBS=$LIBS
8191 cat >conftest.$ac_ext <<_ACEOF
8194 cat confdefs.h >>conftest.$ac_ext
8195 cat >>conftest.$ac_ext <<_ACEOF
8196 /* end confdefs.h. */
8198 /* Override any gcc2 internal prototype to avoid an error. */
8202 /* We use char because int might match the return type of a gcc2
8203 builtin and then its argument prototype would still apply. */
8213 rm -f conftest.$ac_objext conftest$ac_exeext
8214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8215 (eval $ac_link) 2>conftest.er1
8217 grep -v '^ *+' conftest.er1 >conftest.err
8219 cat conftest.err >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); } &&
8222 { ac_try='test -z "$ac_c_werror_flag"
8223 || test ! -s conftest.err'
8224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; } &&
8229 { ac_try='test -s conftest$ac_exeext'
8230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; }; then
8235 ac_cv_lib_dld_shl_load=yes
8237 echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.$ac_ext >&5
8240 ac_cv_lib_dld_shl_load=no
8242 rm -f conftest.err conftest.$ac_objext \
8243 conftest$ac_exeext conftest.$ac_ext
8244 LIBS=$ac_check_lib_save_LIBS
8246 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8247 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8248 if test $ac_cv_lib_dld_shl_load = yes; then
8249 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8251 echo "$as_me:$LINENO: checking for dlopen" >&5
8252 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8253 if test "${ac_cv_func_dlopen+set}" = set; then
8254 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 cat >conftest.$ac_ext <<_ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8264 #define dlopen innocuous_dlopen
8266 /* System header to define __stub macros and hopefully few prototypes,
8267 which can conflict with char dlopen (); below.
8268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8269 <limits.h> exists even on freestanding compilers. */
8272 # include <limits.h>
8274 # include <assert.h>
8279 /* Override any gcc2 internal prototype to avoid an error. */
8284 /* We use char because int might match the return type of a gcc2
8285 builtin and then its argument prototype would still apply. */
8287 /* The GNU C library defines this for functions which it implements
8288 to always fail with ENOSYS. Some functions are actually named
8289 something starting with __ and the normal name is an alias. */
8290 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8293 char (*f) () = dlopen;
8307 rm -f conftest.$ac_objext conftest$ac_exeext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8309 (eval $ac_link) 2>conftest.er1
8311 grep -v '^ *+' conftest.er1 >conftest.err
8313 cat conftest.err >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try='test -z "$ac_c_werror_flag"
8317 || test ! -s conftest.err'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; } &&
8323 { ac_try='test -s conftest$ac_exeext'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; }; then
8329 ac_cv_func_dlopen=yes
8331 echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8334 ac_cv_func_dlopen=no
8336 rm -f conftest.err conftest.$ac_objext \
8337 conftest$ac_exeext conftest.$ac_ext
8339 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8340 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8341 if test $ac_cv_func_dlopen = yes; then
8342 lt_cv_dlopen="dlopen"
8344 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8345 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8346 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 ac_check_lib_save_LIBS=$LIBS
8351 cat >conftest.$ac_ext <<_ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8358 /* Override any gcc2 internal prototype to avoid an error. */
8362 /* We use char because int might match the return type of a gcc2
8363 builtin and then its argument prototype would still apply. */
8373 rm -f conftest.$ac_objext conftest$ac_exeext
8374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8375 (eval $ac_link) 2>conftest.er1
8377 grep -v '^ *+' conftest.er1 >conftest.err
8379 cat conftest.err >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } &&
8382 { ac_try='test -z "$ac_c_werror_flag"
8383 || test ! -s conftest.err'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; } &&
8389 { ac_try='test -s conftest$ac_exeext'
8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; }; then
8395 ac_cv_lib_dl_dlopen=yes
8397 echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8400 ac_cv_lib_dl_dlopen=no
8402 rm -f conftest.err conftest.$ac_objext \
8403 conftest$ac_exeext conftest.$ac_ext
8404 LIBS=$ac_check_lib_save_LIBS
8406 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8407 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8408 if test $ac_cv_lib_dl_dlopen = yes; then
8409 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8411 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8412 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8413 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8416 ac_check_lib_save_LIBS=$LIBS
8418 cat >conftest.$ac_ext <<_ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h. */
8425 /* Override any gcc2 internal prototype to avoid an error. */
8429 /* We use char because int might match the return type of a gcc2
8430 builtin and then its argument prototype would still apply. */
8440 rm -f conftest.$ac_objext conftest$ac_exeext
8441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8442 (eval $ac_link) 2>conftest.er1
8444 grep -v '^ *+' conftest.er1 >conftest.err
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } &&
8449 { ac_try='test -z "$ac_c_werror_flag"
8450 || test ! -s conftest.err'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; } &&
8456 { ac_try='test -s conftest$ac_exeext'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; }; then
8462 ac_cv_lib_svld_dlopen=yes
8464 echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8467 ac_cv_lib_svld_dlopen=no
8469 rm -f conftest.err conftest.$ac_objext \
8470 conftest$ac_exeext conftest.$ac_ext
8471 LIBS=$ac_check_lib_save_LIBS
8473 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8474 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8475 if test $ac_cv_lib_svld_dlopen = yes; then
8476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8478 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8479 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8480 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8481 echo $ECHO_N "(cached) $ECHO_C" >&6
8483 ac_check_lib_save_LIBS=$LIBS
8485 cat >conftest.$ac_ext <<_ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8492 /* Override any gcc2 internal prototype to avoid an error. */
8496 /* We use char because int might match the return type of a gcc2
8497 builtin and then its argument prototype would still apply. */
8507 rm -f conftest.$ac_objext conftest$ac_exeext
8508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8509 (eval $ac_link) 2>conftest.er1
8511 grep -v '^ *+' conftest.er1 >conftest.err
8513 cat conftest.err >&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); } &&
8516 { ac_try='test -z "$ac_c_werror_flag"
8517 || test ! -s conftest.err'
8518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); }; } &&
8523 { ac_try='test -s conftest$ac_exeext'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; }; then
8529 ac_cv_lib_dld_dld_link=yes
8531 echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8534 ac_cv_lib_dld_dld_link=no
8536 rm -f conftest.err conftest.$ac_objext \
8537 conftest$ac_exeext conftest.$ac_ext
8538 LIBS=$ac_check_lib_save_LIBS
8540 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8541 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8542 if test $ac_cv_lib_dld_dld_link = yes; then
8543 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8564 if test "x$lt_cv_dlopen" != xno; then
8570 case $lt_cv_dlopen in
8572 save_CPPFLAGS="$CPPFLAGS"
8573 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8575 save_LDFLAGS="$LDFLAGS"
8576 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8579 LIBS="$lt_cv_dlopen_libs $LIBS"
8581 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8582 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8583 if test "${lt_cv_dlopen_self+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 if test "$cross_compiling" = yes; then :
8587 lt_cv_dlopen_self=cross
8589 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8590 lt_status=$lt_dlunknown
8591 cat > conftest.$ac_ext <<EOF
8592 #line 8592 "configure"
8593 #include "confdefs.h"
8602 # define LT_DLGLOBAL RTLD_GLOBAL
8605 # define LT_DLGLOBAL DL_GLOBAL
8607 # define LT_DLGLOBAL 0
8611 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8612 find out it does not work in some platform. */
8613 #ifndef LT_DLLAZY_OR_NOW
8615 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8618 # define LT_DLLAZY_OR_NOW DL_LAZY
8621 # define LT_DLLAZY_OR_NOW RTLD_NOW
8624 # define LT_DLLAZY_OR_NOW DL_NOW
8626 # define LT_DLLAZY_OR_NOW 0
8634 extern "C" void exit (int);
8637 void fnord() { int i=42;}
8640 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8641 int status = $lt_dlunknown;
8645 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8646 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8647 /* dlclose (self); */
8653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8654 (eval $ac_link) 2>&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8658 (./conftest; exit; ) 2>/dev/null
8661 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8662 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8663 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8666 # compilation failed
8667 lt_cv_dlopen_self=no
8674 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8675 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8677 if test "x$lt_cv_dlopen_self" = xyes; then
8678 LDFLAGS="$LDFLAGS $link_static_flag"
8679 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8680 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8681 if test "${lt_cv_dlopen_self_static+set}" = set; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 if test "$cross_compiling" = yes; then :
8685 lt_cv_dlopen_self_static=cross
8687 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8688 lt_status=$lt_dlunknown
8689 cat > conftest.$ac_ext <<EOF
8690 #line 8690 "configure"
8691 #include "confdefs.h"
8700 # define LT_DLGLOBAL RTLD_GLOBAL
8703 # define LT_DLGLOBAL DL_GLOBAL
8705 # define LT_DLGLOBAL 0
8709 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8710 find out it does not work in some platform. */
8711 #ifndef LT_DLLAZY_OR_NOW
8713 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8716 # define LT_DLLAZY_OR_NOW DL_LAZY
8719 # define LT_DLLAZY_OR_NOW RTLD_NOW
8722 # define LT_DLLAZY_OR_NOW DL_NOW
8724 # define LT_DLLAZY_OR_NOW 0
8732 extern "C" void exit (int);
8735 void fnord() { int i=42;}
8738 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8739 int status = $lt_dlunknown;
8743 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8744 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8745 /* dlclose (self); */
8751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8752 (eval $ac_link) 2>&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8756 (./conftest; exit; ) 2>/dev/null
8759 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8760 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8761 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8764 # compilation failed
8765 lt_cv_dlopen_self_static=no
8772 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8773 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8776 CPPFLAGS="$save_CPPFLAGS"
8777 LDFLAGS="$save_LDFLAGS"
8782 case $lt_cv_dlopen_self in
8783 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8784 *) enable_dlopen_self=unknown ;;
8787 case $lt_cv_dlopen_self_static in
8788 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8789 *) enable_dlopen_self_static=unknown ;;
8794 # Report which librarie types wil actually be built
8795 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8796 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8797 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8798 echo "${ECHO_T}$can_build_shared" >&6
8800 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8801 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8802 test "$can_build_shared" = "no" && enable_shared=no
8804 # On AIX, shared libraries and static libraries use the same namespace, and
8805 # are all built from PIC.
8808 test "$enable_shared" = yes && enable_static=no
8809 if test -n "$RANLIB"; then
8810 archive_cmds="$archive_cmds;\$RANLIB \$lib"
8811 postinstall_cmds='$RANLIB $lib'
8816 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8817 test "$enable_shared" = yes && enable_static=no
8821 echo "$as_me:$LINENO: result: $enable_shared" >&5
8822 echo "${ECHO_T}$enable_shared" >&6
8824 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8825 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8826 # Make sure either enable_shared or enable_static is yes.
8827 test "$enable_shared" = yes || enable_static=yes
8828 echo "$as_me:$LINENO: result: $enable_static" >&5
8829 echo "${ECHO_T}$enable_static" >&6
8831 # The else clause should only fire when bootstrapping the
8832 # libtool distribution, otherwise you forgot to ship ltmain.sh
8833 # with your package, and you will get complaints that there are
8834 # no rules to generate ltmain.sh.
8835 if test -f "$ltmain"; then
8836 # See if we are running on zsh, and set the options which allow our commands through
8837 # without removal of \ escapes.
8838 if test -n "${ZSH_VERSION+set}" ; then
8839 setopt NO_GLOB_SUBST
8841 # Now quote all the things that may contain metacharacters while being
8842 # careful not to overquote the AC_SUBSTed values. We take copies of the
8843 # variables and quote the copies for generation of the libtool script.
8844 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8846 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8847 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8848 deplibs_check_method reload_flag reload_cmds need_locks \
8849 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8850 lt_cv_sys_global_symbol_to_c_name_address \
8851 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8852 old_postinstall_cmds old_postuninstall_cmds \
8856 lt_prog_compiler_wl \
8857 lt_prog_compiler_pic \
8858 lt_prog_compiler_static \
8859 lt_prog_compiler_no_builtin_flag \
8860 export_dynamic_flag_spec \
8861 thread_safe_flag_spec \
8862 whole_archive_flag_spec \
8863 enable_shared_with_static_runtimes \
8865 old_archive_from_new_cmds \
8870 compiler_lib_search_path \
8872 archive_expsym_cmds \
8874 postuninstall_cmds \
8875 old_archive_from_expsyms_cmds \
8876 allow_undefined_flag \
8878 export_symbols_cmds \
8879 hardcode_libdir_flag_spec \
8880 hardcode_libdir_flag_spec_ld \
8881 hardcode_libdir_separator \
8882 hardcode_automatic \
8884 module_expsym_cmds \
8885 lt_cv_prog_compiler_c_o \
8890 old_archive_cmds | \
8891 old_archive_from_new_cmds | \
8893 archive_expsym_cmds | \
8895 module_expsym_cmds | \
8896 old_archive_from_expsyms_cmds | \
8897 export_symbols_cmds | \
8898 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8899 postinstall_cmds | postuninstall_cmds | \
8900 old_postinstall_cmds | old_postuninstall_cmds | \
8901 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8902 # Double-quote double-evaled strings.
8903 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8906 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8912 *'\$0 --fallback-echo"')
8913 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8918 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8920 { echo "$as_me:$LINENO: creating $ofile" >&5
8921 echo "$as_me: creating $ofile" >&6;}
8923 cat <<__EOF__ >> "$cfgfile"
8926 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8927 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8928 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8930 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8931 # Free Software Foundation, Inc.
8933 # This file is part of GNU Libtool:
8934 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8936 # This program is free software; you can redistribute it and/or modify
8937 # it under the terms of the GNU General Public License as published by
8938 # the Free Software Foundation; either version 2 of the License, or
8939 # (at your option) any later version.
8941 # This program is distributed in the hope that it will be useful, but
8942 # WITHOUT ANY WARRANTY; without even the implied warranty of
8943 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8944 # General Public License for more details.
8946 # You should have received a copy of the GNU General Public License
8947 # along with this program; if not, write to the Free Software
8948 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8950 # As a special exception to the GNU General Public License, if you
8951 # distribute this file as part of a program that contains a
8952 # configuration script generated by Autoconf, you may include it under
8953 # the same distribution terms that you use for the rest of that program.
8955 # A sed program that does not truncate output.
8958 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8959 Xsed="$SED -e s/^X//"
8961 # The HP-UX ksh and POSIX shell print the target directory to stdout
8963 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8965 # The names of the tagged configurations supported by this script.
8968 # ### BEGIN LIBTOOL CONFIG
8970 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8972 # Shell to use when invoking shell scripts.
8975 # Whether or not to build shared libraries.
8976 build_libtool_libs=$enable_shared
8978 # Whether or not to build static libraries.
8979 build_old_libs=$enable_static
8981 # Whether or not to add -lc for building shared libraries.
8982 build_libtool_need_lc=$archive_cmds_need_lc
8984 # Whether or not to disallow shared libs when runtime libs are static
8985 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8987 # Whether or not to optimize for fast installation.
8988 fast_install=$enable_fast_install
8991 host_alias=$host_alias
8994 # An echo program that does not interpret backslashes.
8999 AR_FLAGS=$lt_AR_FLAGS
9004 # A language-specific compiler.
9007 # Is the compiler the GNU C compiler?
9013 # The linker used to build libraries.
9016 # Whether we need hard or soft links.
9019 # A BSD-compatible nm program.
9022 # A symbol stripping program
9025 # Used to examine libraries when file_magic_cmd begins "file"
9026 MAGIC_CMD=$MAGIC_CMD
9028 # Used on cygwin: DLL creation program.
9031 # Used on cygwin: object dumper.
9034 # Used on cygwin: assembler.
9037 # The name of the directory that contains temporary libtool files.
9040 # How to create reloadable object files.
9041 reload_flag=$lt_reload_flag
9042 reload_cmds=$lt_reload_cmds
9044 # How to pass a linker flag through the compiler.
9045 wl=$lt_lt_prog_compiler_wl
9047 # Object file suffix (normally "o").
9050 # Old archive suffix (normally "a").
9053 # Shared library suffix (normally ".so").
9054 shrext_cmds='$shrext_cmds'
9056 # Executable file suffix (normally "").
9059 # Additional compiler flags for building library objects.
9060 pic_flag=$lt_lt_prog_compiler_pic
9063 # What is the maximum length of a command?
9064 max_cmd_len=$lt_cv_sys_max_cmd_len
9066 # Does compiler simultaneously support -c and -o options?
9067 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9069 # Must we lock files when doing compilation ?
9070 need_locks=$lt_need_locks
9072 # Do we need the lib prefix for modules?
9073 need_lib_prefix=$need_lib_prefix
9075 # Do we need a version for libraries?
9076 need_version=$need_version
9078 # Whether dlopen is supported.
9079 dlopen_support=$enable_dlopen
9081 # Whether dlopen of programs is supported.
9082 dlopen_self=$enable_dlopen_self
9084 # Whether dlopen of statically linked programs is supported.
9085 dlopen_self_static=$enable_dlopen_self_static
9087 # Compiler flag to prevent dynamic linking.
9088 link_static_flag=$lt_lt_prog_compiler_static
9090 # Compiler flag to turn off builtin functions.
9091 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9093 # Compiler flag to allow reflexive dlopens.
9094 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9096 # Compiler flag to generate shared objects directly from archives.
9097 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9099 # Compiler flag to generate thread-safe objects.
9100 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9102 # Library versioning type.
9103 version_type=$version_type
9105 # Format of library name prefix.
9106 libname_spec=$lt_libname_spec
9108 # List of archive names. First name is the real one, the rest are links.
9109 # The last name is the one that the linker finds with -lNAME.
9110 library_names_spec=$lt_library_names_spec
9112 # The coded name of the library, if different from the real name.
9113 soname_spec=$lt_soname_spec
9115 # Commands used to build and install an old-style archive.
9117 old_archive_cmds=$lt_old_archive_cmds
9118 old_postinstall_cmds=$lt_old_postinstall_cmds
9119 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9121 # Create an old-style archive from a shared archive.
9122 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9124 # Create a temporary old-style archive to link instead of a shared archive.
9125 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9127 # Commands used to build and install a shared archive.
9128 archive_cmds=$lt_archive_cmds
9129 archive_expsym_cmds=$lt_archive_expsym_cmds
9130 postinstall_cmds=$lt_postinstall_cmds
9131 postuninstall_cmds=$lt_postuninstall_cmds
9133 # Commands used to build a loadable module (assumed same as above if empty)
9134 module_cmds=$lt_module_cmds
9135 module_expsym_cmds=$lt_module_expsym_cmds
9137 # Commands to strip libraries.
9138 old_striplib=$lt_old_striplib
9139 striplib=$lt_striplib
9141 # Dependencies to place before the objects being linked to create a
9143 predep_objects=$lt_predep_objects
9145 # Dependencies to place after the objects being linked to create a
9147 postdep_objects=$lt_postdep_objects
9149 # Dependencies to place before the objects being linked to create a
9153 # Dependencies to place after the objects being linked to create a
9155 postdeps=$lt_postdeps
9157 # The library search path used internally by the compiler when linking
9159 compiler_lib_search_path=$lt_compiler_lib_search_path
9161 # Method to check whether dependent libraries are shared objects.
9162 deplibs_check_method=$lt_deplibs_check_method
9164 # Command to use when deplibs_check_method == file_magic.
9165 file_magic_cmd=$lt_file_magic_cmd
9167 # Flag that allows shared libraries with undefined symbols to be built.
9168 allow_undefined_flag=$lt_allow_undefined_flag
9170 # Flag that forces no undefined symbols.
9171 no_undefined_flag=$lt_no_undefined_flag
9173 # Commands used to finish a libtool library installation in a directory.
9174 finish_cmds=$lt_finish_cmds
9176 # Same as above, but a single script fragment to be evaled but not shown.
9177 finish_eval=$lt_finish_eval
9179 # Take the output of nm and produce a listing of raw symbols and C names.
9180 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9182 # Transform the output of nm in a proper C declaration
9183 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9185 # Transform the output of nm in a C name address pair
9186 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9188 # This is the shared library runtime path variable.
9189 runpath_var=$runpath_var
9191 # This is the shared library path variable.
9192 shlibpath_var=$shlibpath_var
9194 # Is shlibpath searched before the hard-coded library search path?
9195 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9197 # How to hardcode a shared library path into an executable.
9198 hardcode_action=$hardcode_action
9200 # Whether we should hardcode library paths into libraries.
9201 hardcode_into_libs=$hardcode_into_libs
9203 # Flag to hardcode \$libdir into a binary during linking.
9204 # This must work even if \$libdir does not exist.
9205 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9207 # If ld is used when linking, flag to hardcode \$libdir into
9208 # a binary during linking. This must work even if \$libdir does
9210 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9212 # Whether we need a single -rpath flag with a separated argument.
9213 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9215 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9217 hardcode_direct=$hardcode_direct
9219 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9221 hardcode_minus_L=$hardcode_minus_L
9223 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9224 # the resulting binary.
9225 hardcode_shlibpath_var=$hardcode_shlibpath_var
9227 # Set to yes if building a shared library automatically hardcodes DIR into the library
9228 # and all subsequent libraries and executables linked against it.
9229 hardcode_automatic=$hardcode_automatic
9231 # Variables whose values should be saved in libtool wrapper scripts and
9232 # restored at relink time.
9233 variables_saved_for_relink="$variables_saved_for_relink"
9235 # Whether libtool must link a program against all its dependency libraries.
9236 link_all_deplibs=$link_all_deplibs
9238 # Compile-time system search path for libraries
9239 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9241 # Run-time system search path for libraries
9242 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9244 # Fix the shell variable \$srcfile for the compiler.
9245 fix_srcfile_path="$fix_srcfile_path"
9247 # Set to yes if exported symbols are required.
9248 always_export_symbols=$always_export_symbols
9250 # The commands to list exported symbols.
9251 export_symbols_cmds=$lt_export_symbols_cmds
9253 # The commands to extract the exported symbol list from a shared archive.
9254 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9256 # Symbols that should not be listed in the preloaded symbols.
9257 exclude_expsyms=$lt_exclude_expsyms
9259 # Symbols that must always be exported.
9260 include_expsyms=$lt_include_expsyms
9262 # ### END LIBTOOL CONFIG
9269 cat <<\EOF >> "$cfgfile"
9271 # AIX sometimes has problems with the GCC collect2 program. For some
9272 # reason, if we set the COLLECT_NAMES environment variable, the problems
9273 # vanish in a puff of smoke.
9274 if test "X${COLLECT_NAMES+set}" != Xset; then
9276 export COLLECT_NAMES
9282 # We use sed instead of cat because bash on DJGPP gets confused if
9283 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9284 # text mode, it properly converts lines to CR/LF. This bash problem
9285 # is reportedly fixed, but why not run on old versions too?
9286 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9288 mv -f "$cfgfile" "$ofile" || \
9289 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9293 # If there is no Makefile yet, we rely on a make rule to execute
9294 # `config.status --recheck' to rerun these tests and create the
9295 # libtool script then.
9296 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9297 if test -f "$ltmain_in"; then
9298 test -f Makefile && make "$ltmain"
9304 ac_cpp='$CPP $CPPFLAGS'
9305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9312 # Check whether --with-tags or --without-tags was given.
9313 if test "${with_tags+set}" = set; then
9314 withval="$with_tags"
9318 if test -f "$ltmain" && test -n "$tagnames"; then
9319 if test ! -f "${ofile}"; then
9320 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9321 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9324 if test -z "$LTCC"; then
9325 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9326 if test -z "$LTCC"; then
9327 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9328 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9330 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9331 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9335 # Extract list of available tagged configurations in $ofile.
9336 # Note that this assumes the entire list is on one line.
9337 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9339 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9340 for tagname in $tagnames; do
9342 # Check whether tagname contains only valid characters
9343 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9345 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9346 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9347 { (exit 1); exit 1; }; }
9351 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9353 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9354 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9355 { (exit 1); exit 1; }; }
9358 # Update the list of available tags.
9359 if test -n "$tagname"; then
9360 echo appending configuration tag \"$tagname\" to $ofile
9364 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9365 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9366 (test "X$CXX" != "Xg++"))) ; then
9368 ac_cpp='$CXXCPP $CPPFLAGS'
9369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9376 archive_cmds_need_lc_CXX=no
9377 allow_undefined_flag_CXX=
9378 always_export_symbols_CXX=no
9379 archive_expsym_cmds_CXX=
9380 export_dynamic_flag_spec_CXX=
9381 hardcode_direct_CXX=no
9382 hardcode_libdir_flag_spec_CXX=
9383 hardcode_libdir_flag_spec_ld_CXX=
9384 hardcode_libdir_separator_CXX=
9385 hardcode_minus_L_CXX=no
9386 hardcode_automatic_CXX=no
9388 module_expsym_cmds_CXX=
9389 link_all_deplibs_CXX=unknown
9390 old_archive_cmds_CXX=$old_archive_cmds
9391 no_undefined_flag_CXX=
9392 whole_archive_flag_spec_CXX=
9393 enable_shared_with_static_runtimes_CXX=no
9395 # Dependencies to place before and after the object being linked:
9397 postdep_objects_CXX=
9400 compiler_lib_search_path_CXX=
9402 # Source file extension for C++ test sources.
9405 # Object file extension for compiled C++ test sources.
9409 # Code to be used in simple compile tests
9410 lt_simple_compile_test_code="int some_variable = 0;\n"
9412 # Code to be used in simple link tests
9413 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9415 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9417 # If no C compiler was specified, use CC.
9420 # Allow CC to be a program name with arguments.
9424 # Allow CC to be a program name with arguments.
9429 lt_save_with_gnu_ld=$with_gnu_ld
9430 lt_save_path_LD=$lt_cv_path_LD
9431 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9432 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9434 unset lt_cv_prog_gnu_ld
9436 if test -n "${lt_cv_path_LDCXX+set}"; then
9437 lt_cv_path_LD=$lt_cv_path_LDCXX
9441 test -z "${LDCXX+set}" || LD=$LDCXX
9445 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9447 # We don't want -fno-exception wen compiling C++ code, so set the
9448 # no_builtin_flag separately
9449 if test "$GXX" = yes; then
9450 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9452 lt_prog_compiler_no_builtin_flag_CXX=
9455 if test "$GXX" = yes; then
9456 # Set up default GNU C++ configuration
9459 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9460 if test "${with_gnu_ld+set}" = set; then
9461 withval="$with_gnu_ld"
9462 test "$withval" = no || with_gnu_ld=yes
9467 if test "$GCC" = yes; then
9468 # Check if gcc -print-prog-name=ld gives a path.
9469 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9470 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9473 # gcc leaves a trailing carriage return which upsets mingw
9474 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9476 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9479 # Accept absolute paths.
9481 re_direlt='/[^/][^/]*/\.\./'
9482 # Canonicalize the pathname of ld
9483 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9484 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9485 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9487 test -z "$LD" && LD="$ac_prog"
9490 # If it fails, then pretend we aren't using GCC.
9494 # If it is relative, then search for the first ld in PATH.
9498 elif test "$with_gnu_ld" = yes; then
9499 echo "$as_me:$LINENO: checking for GNU ld" >&5
9500 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9502 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9503 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9505 if test "${lt_cv_path_LD+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 if test -z "$LD"; then
9509 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9510 for ac_dir in $PATH; do
9512 test -z "$ac_dir" && ac_dir=.
9513 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9514 lt_cv_path_LD="$ac_dir/$ac_prog"
9515 # Check to see if the program is GNU ld. I'd rather use --version,
9516 # but apparently some GNU ld's only accept -v.
9517 # Break only if it was the GNU/non-GNU ld that we prefer.
9518 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9519 *GNU* | *'with BFD'*)
9520 test "$with_gnu_ld" != no && break
9523 test "$with_gnu_ld" != yes && break
9530 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9535 if test -n "$LD"; then
9536 echo "$as_me:$LINENO: result: $LD" >&5
9537 echo "${ECHO_T}$LD" >&6
9539 echo "$as_me:$LINENO: result: no" >&5
9540 echo "${ECHO_T}no" >&6
9542 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9543 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9544 { (exit 1); exit 1; }; }
9545 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9546 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9547 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9551 case `$LD -v 2>&1 </dev/null` in
9552 *GNU* | *'with BFD'*)
9553 lt_cv_prog_gnu_ld=yes
9556 lt_cv_prog_gnu_ld=no
9560 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9561 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9562 with_gnu_ld=$lt_cv_prog_gnu_ld
9566 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9567 # archiving commands below assume that GNU ld is being used.
9568 if test "$with_gnu_ld" = yes; then
9569 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9570 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'
9572 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9573 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9575 # If archive_cmds runs LD, not CC, wlarc should be empty
9576 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9577 # investigate it a little bit more. (MM)
9580 # ancient GNU ld didn't support --whole-archive et. al.
9581 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9582 grep 'no-whole-archive' > /dev/null; then
9583 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9585 whole_archive_flag_spec_CXX=
9591 # A generic and very simple default shared library creation
9592 # command for GNU C++ for the case where it uses the native
9593 # linker, instead of GNU ld. If possible, this setting should
9594 # overridden to take advantage of the native linker features on
9595 # the platform it is being used on.
9596 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9599 # Commands to make compiler produce verbose output that lists
9600 # what "hidden" libraries, object files and flags are used when
9601 # linking a shared library.
9602 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9610 # PORTME: fill in a description of your system's C++ link characteristics
9611 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9612 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9616 # FIXME: insert proper C++ library support
9620 if test "$host_cpu" = ia64; then
9621 # On IA64, the linker does run time linking by default, so we don't
9622 # have to do anything special.
9623 aix_use_runtimelinking=no
9624 exp_sym_flag='-Bexport'
9627 aix_use_runtimelinking=no
9629 # Test if we are trying to use run time linking or normal
9630 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9631 # need to do runtime linking.
9632 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9633 for ld_flag in $LDFLAGS; do
9636 aix_use_runtimelinking=yes
9643 exp_sym_flag='-bexport'
9644 no_entry_flag='-bnoentry'
9647 # When large executables or shared objects are built, AIX ld can
9648 # have problems creating the table of contents. If linking a library
9649 # or program results in "error TOC overflow" add -mminimal-toc to
9650 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9651 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9654 hardcode_direct_CXX=yes
9655 hardcode_libdir_separator_CXX=':'
9656 link_all_deplibs_CXX=yes
9658 if test "$GXX" = yes; then
9659 case $host_os in aix4.012|aix4.012.*)
9660 # We only want to do this on AIX 4.2 and lower, the check
9661 # below for broken collect2 doesn't work under 4.3+
9662 collect2name=`${CC} -print-prog-name=collect2`
9663 if test -f "$collect2name" && \
9664 strings "$collect2name" | grep resolve_lib_name >/dev/null
9666 # We have reworked collect2
9667 hardcode_direct_CXX=yes
9669 # We have old collect2
9670 hardcode_direct_CXX=unsupported
9671 # It fails to find uninstalled libraries when the uninstalled
9672 # path is not listed in the libpath. Setting hardcode_minus_L
9673 # to unsupported forces relinking
9674 hardcode_minus_L_CXX=yes
9675 hardcode_libdir_flag_spec_CXX='-L$libdir'
9676 hardcode_libdir_separator_CXX=
9679 shared_flag='-shared'
9682 if test "$host_cpu" = ia64; then
9683 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9684 # chokes on -Wl,-G. The following line is correct:
9687 if test "$aix_use_runtimelinking" = yes; then
9688 shared_flag='${wl}-G'
9690 shared_flag='${wl}-bM:SRE'
9695 # It seems that -bexpall does not export symbols beginning with
9696 # underscore (_), so it is better to generate a list of symbols to export.
9697 always_export_symbols_CXX=yes
9698 if test "$aix_use_runtimelinking" = yes; then
9699 # Warning - without using the other runtime loading flags (-brtl),
9700 # -berok will link without error, but may produce a broken library.
9701 allow_undefined_flag_CXX='-berok'
9702 # Determine the default libpath from the value encoded in an empty executable.
9703 cat >conftest.$ac_ext <<_ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h. */
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>conftest.er1
9722 grep -v '^ *+' conftest.er1 >conftest.err
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_cxx_werror_flag"
9728 || test ! -s conftest.err'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; } &&
9734 { ac_try='test -s conftest$ac_exeext'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9741 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9743 # Check for a 64-bit object if we didn't find anything.
9744 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; }
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9751 rm -f conftest.err conftest.$ac_objext \
9752 conftest$ac_exeext conftest.$ac_ext
9753 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9755 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9757 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9759 if test "$host_cpu" = ia64; then
9760 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9761 allow_undefined_flag_CXX="-z nodefs"
9762 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9764 # Determine the default libpath from the value encoded in an empty executable.
9765 cat >conftest.$ac_ext <<_ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h. */
9780 rm -f conftest.$ac_objext conftest$ac_exeext
9781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9782 (eval $ac_link) 2>conftest.er1
9784 grep -v '^ *+' conftest.er1 >conftest.err
9786 cat conftest.err >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } &&
9789 { ac_try='test -z "$ac_cxx_werror_flag"
9790 || test ! -s conftest.err'
9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; } &&
9796 { ac_try='test -s conftest$ac_exeext'
9797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
9803 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9805 # Check for a 64-bit object if we didn't find anything.
9806 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; }
9809 echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9813 rm -f conftest.err conftest.$ac_objext \
9814 conftest$ac_exeext conftest.$ac_ext
9815 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9817 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9818 # Warning - without using the other run time loading flags,
9819 # -berok will link without error, but may produce a broken library.
9820 no_undefined_flag_CXX=' ${wl}-bernotok'
9821 allow_undefined_flag_CXX=' ${wl}-berok'
9822 # -bexpall does not export symbols beginning with underscore (_)
9823 always_export_symbols_CXX=yes
9824 # Exported symbols can be pulled into shared objects from archives
9825 whole_archive_flag_spec_CXX=' '
9826 archive_cmds_need_lc_CXX=yes
9827 # This is similar to how AIX traditionally builds it's shared libraries.
9828 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag};$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9833 case $cc_basename in
9835 # FIXME: insert proper C++ library support
9842 cygwin* | mingw* | pw32*)
9843 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9844 # as there is no search path for DLLs.
9845 hardcode_libdir_flag_spec_CXX='-L$libdir'
9846 allow_undefined_flag_CXX=unsupported
9847 always_export_symbols_CXX=no
9848 enable_shared_with_static_runtimes_CXX=yes
9850 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9851 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9852 # If the export-symbols file already is a .def file (1st line
9853 # is EXPORTS), use it as is; otherwise, prepend...
9854 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9855 cp $export_symbols $output_objdir/$soname.def;
9857 echo EXPORTS > $output_objdir/$soname.def;
9858 cat $export_symbols >> $output_objdir/$soname.def;
9859 fi;$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9864 darwin* | rhapsody*)
9866 rhapsody* | darwin1.[012])
9867 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9870 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9871 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9873 case ${MACOSX_DEPLOYMENT_TARGET} in
9875 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9878 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9884 archive_cmds_need_lc_CXX=no
9885 hardcode_direct_CXX=no
9886 hardcode_automatic_CXX=yes
9887 hardcode_shlibpath_var_CXX=unsupported
9888 whole_archive_flag_spec_CXX=''
9889 link_all_deplibs_CXX=yes
9891 if test "$GXX" = yes ; then
9892 lt_int_apple_cc_single_mod=no
9893 output_verbose_link_cmd='echo'
9894 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9895 lt_int_apple_cc_single_mod=yes
9897 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9898 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9900 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'
9902 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9903 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9904 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9905 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}'
9907 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}'
9909 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}'
9911 case "$cc_basename" in
9913 output_verbose_link_cmd='echo'
9914 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'
9915 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9916 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9917 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}'
9918 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}'
9928 case $cc_basename in
9930 # FIXME: insert proper C++ library support
9934 # Green Hills C++ Compiler
9935 # FIXME: insert proper C++ library support
9939 # FIXME: insert proper C++ library support
9945 # C++ shared libraries reported to be fairly broken before switch to ELF
9949 archive_cmds_need_lc_CXX=no
9951 freebsd* | kfreebsd*-gnu)
9952 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9959 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9960 hardcode_libdir_separator_CXX=:
9961 export_dynamic_flag_spec_CXX='${wl}-E'
9962 hardcode_direct_CXX=yes
9963 hardcode_minus_L_CXX=yes # Not in the search PATH,
9964 # but as the default
9965 # location of the library.
9967 case $cc_basename in
9969 # FIXME: insert proper C++ library support
9973 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'
9974 # Commands to make compiler produce verbose output that lists
9975 # what "hidden" libraries, object files and flags are used when
9976 # linking a shared library.
9978 # There doesn't appear to be a way to prevent this compiler from
9979 # explicitly linking system object files so we need to strip them
9980 # from the output so that they don't get included in the library
9982 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'
9985 if test "$GXX" = yes; then
9986 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'
9988 # FIXME: insert proper C++ library support
9995 if test $with_gnu_ld = no; then
9998 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9999 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10000 hardcode_libdir_separator_CXX=:
10003 hardcode_libdir_flag_spec_CXX='-L$libdir'
10006 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10007 hardcode_libdir_separator_CXX=:
10008 export_dynamic_flag_spec_CXX='${wl}-E'
10012 case "$host_cpu" in
10014 hardcode_direct_CXX=no
10015 hardcode_shlibpath_var_CXX=no
10018 hardcode_direct_CXX=no
10019 hardcode_shlibpath_var_CXX=no
10020 hardcode_minus_L_CXX=yes # Not in the search PATH,
10021 # but as the default
10022 # location of the library.
10025 hardcode_direct_CXX=yes
10026 hardcode_minus_L_CXX=yes # Not in the search PATH,
10027 # but as the default
10028 # location of the library.
10032 case $cc_basename in
10034 # FIXME: insert proper C++ library support
10038 case "$host_cpu" in
10040 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10043 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10046 # Commands to make compiler produce verbose output that lists
10047 # what "hidden" libraries, object files and flags are used when
10048 # linking a shared library.
10050 # There doesn't appear to be a way to prevent this compiler from
10051 # explicitly linking system object files so we need to strip them
10052 # from the output so that they don't get included in the library
10054 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'
10057 if test "$GXX" = yes; then
10058 if test $with_gnu_ld = no; then
10059 case "$host_cpu" in
10061 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10064 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'
10069 # FIXME: insert proper C++ library support
10076 case $cc_basename in
10079 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10081 # Archives containing C++ object files must be created using
10082 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10083 # necessary to make sure instantiated templates are included
10085 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10088 if test "$GXX" = yes; then
10089 if test "$with_gnu_ld" = no; then
10090 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10092 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'
10095 link_all_deplibs_CXX=yes
10098 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10099 hardcode_libdir_separator_CXX=:
10102 case $cc_basename in
10104 # Kuck and Associates, Inc. (KAI) C++ Compiler
10106 # KCC will only create a shared library if the output file
10107 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10108 # to its proper name (with version) after linking.
10109 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'
10110 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'
10111 # Commands to make compiler produce verbose output that lists
10112 # what "hidden" libraries, object files and flags are used when
10113 # linking a shared library.
10115 # There doesn't appear to be a way to prevent this compiler from
10116 # explicitly linking system object files so we need to strip them
10117 # from the output so that they don't get included in the library
10119 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'
10121 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10122 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10124 # Archives containing C++ object files must be created using
10125 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10126 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10131 # version 8.0 and above of icpc choke on multiply defined symbols
10132 # if we add $predep_objects and $postdep_objects, however 7.1 and
10133 # earlier do not add the objects themselves.
10134 case `$CC -V 2>&1` in
10136 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10137 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'
10139 *) # Version 8.0 or newer
10140 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10141 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10144 archive_cmds_need_lc_CXX=no
10145 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10146 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10147 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10151 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10152 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'
10154 runpath_var=LD_RUN_PATH
10155 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10156 hardcode_libdir_separator_CXX=:
10158 # Commands to make compiler produce verbose output that lists
10159 # what "hidden" libraries, object files and flags are used when
10160 # linking a shared library.
10162 # There doesn't appear to be a way to prevent this compiler from
10163 # explicitly linking system object files so we need to strip them
10164 # from the output so that they don't get included in the library
10166 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'
10171 # FIXME: insert proper C++ library support
10175 # FIXME: insert proper C++ library support
10179 case $cc_basename in
10181 # FIXME: insert proper C++ library support
10185 # FIXME: insert proper C++ library support
10191 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10192 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10194 hardcode_libdir_flag_spec_CXX='-R$libdir'
10195 hardcode_direct_CXX=yes
10196 hardcode_shlibpath_var_CXX=no
10198 # Workaround some broken pre-1.5 toolchains
10199 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10202 # C++ shared libraries are fairly broken
10206 hardcode_direct_CXX=yes
10207 hardcode_shlibpath_var_CXX=no
10208 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10209 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10210 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10211 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10212 export_dynamic_flag_spec_CXX='${wl}-E'
10213 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10215 output_verbose_link_cmd='echo'
10218 case $cc_basename in
10220 # Kuck and Associates, Inc. (KAI) C++ Compiler
10222 # KCC will only create a shared library if the output file
10223 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10224 # to its proper name (with version) after linking.
10225 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'
10227 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10228 hardcode_libdir_separator_CXX=:
10230 # Archives containing C++ object files must be created using
10231 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10232 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10236 # Rational C++ 2.4.1
10237 # FIXME: insert proper C++ library support
10241 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10242 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10244 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10245 hardcode_libdir_separator_CXX=:
10247 # Commands to make compiler produce verbose output that lists
10248 # what "hidden" libraries, object files and flags are used when
10249 # linking a shared library.
10251 # There doesn't appear to be a way to prevent this compiler from
10252 # explicitly linking system object files so we need to strip them
10253 # from the output so that they don't get included in the library
10255 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'
10258 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10259 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10260 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10262 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10263 hardcode_libdir_separator_CXX=:
10265 # Commands to make compiler produce verbose output that lists
10266 # what "hidden" libraries, object files and flags are used when
10267 # linking a shared library.
10268 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10271 # FIXME: insert proper C++ library support
10278 case $cc_basename in
10280 # Kuck and Associates, Inc. (KAI) C++ Compiler
10282 # KCC will only create a shared library if the output file
10283 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10284 # to its proper name (with version) after linking.
10285 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'
10287 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10288 hardcode_libdir_separator_CXX=:
10290 # Archives containing C++ object files must be created using
10291 # the KAI C++ compiler.
10292 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10295 # Rational C++ 2.4.1
10296 # FIXME: insert proper C++ library support
10300 allow_undefined_flag_CXX=' -expect_unresolved \*'
10301 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10302 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp;$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib;$rm $lib.exp'
10304 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10305 hardcode_libdir_separator_CXX=:
10307 # Commands to make compiler produce verbose output that lists
10308 # what "hidden" libraries, object files and flags are used when
10309 # linking a shared library.
10311 # There doesn't appear to be a way to prevent this compiler from
10312 # explicitly linking system object files so we need to strip them
10313 # from the output so that they don't get included in the library
10315 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'
10318 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10319 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10320 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10322 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10323 hardcode_libdir_separator_CXX=:
10325 # Commands to make compiler produce verbose output that lists
10326 # what "hidden" libraries, object files and flags are used when
10327 # linking a shared library.
10328 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10331 # FIXME: insert proper C++ library support
10338 # FIXME: insert proper C++ library support
10342 archive_cmds_need_lc_CXX=no
10343 case $cc_basename in
10345 # FIXME: insert proper C++ library support
10349 # FIXME: insert proper C++ library support
10355 case $cc_basename in
10358 # FIXME: insert proper C++ library support
10363 # FIXME: insert proper C++ library support
10367 # FIXME: insert proper C++ library support
10373 case $cc_basename in
10375 # Sun C++ 4.2, 5.x and Centerline C++
10376 no_undefined_flag_CXX=' -zdefs'
10377 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10378 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
10380 hardcode_libdir_flag_spec_CXX='-R$libdir'
10381 hardcode_shlibpath_var_CXX=no
10383 solaris2.0-5 | solaris2.0-5.*) ;;
10385 # The C++ compiler is used as linker so we must use $wl
10386 # flag to pass the commands to the underlying system
10388 # Supported since Solaris 2.6 (maybe 2.5.1?)
10389 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10392 link_all_deplibs_CXX=yes
10394 # Commands to make compiler produce verbose output that lists
10395 # what "hidden" libraries, object files and flags are used when
10396 # linking a shared library.
10398 # There doesn't appear to be a way to prevent this compiler from
10399 # explicitly linking system object files so we need to strip them
10400 # from the output so that they don't get included in the library
10402 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10404 # Archives containing C++ object files must be created using
10405 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10406 # necessary to make sure instantiated templates are included
10408 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10411 # Green Hills C++ Compiler
10412 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10414 # The C++ compiler must be used to create the archive.
10415 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10418 # GNU C++ compiler with Solaris linker
10419 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10420 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10421 if $CC --version | grep -v '^2\.7' > /dev/null; then
10422 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10423 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
10424 # Commands to make compiler produce verbose output that lists
10425 # what "hidden" libraries, object files and flags are used when
10426 # linking a shared library.
10427 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10429 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10431 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10432 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp;
10433 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
10435 # Commands to make compiler produce verbose output that lists
10436 # what "hidden" libraries, object files and flags are used when
10437 # linking a shared library.
10438 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10441 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10446 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10447 archive_cmds_need_lc_CXX=no
10450 case $cc_basename in
10452 # NonStop-UX NCC 3.20
10453 # FIXME: insert proper C++ library support
10457 # FIXME: insert proper C++ library support
10463 # FIXME: insert proper C++ library support
10467 # FIXME: insert proper C++ library support
10471 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10472 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10473 test "$ld_shlibs_CXX" = no && can_build_shared=no
10479 cat > conftest.$ac_ext <<EOF
10483 Foo (void) { a = 0; }
10489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10490 (eval $ac_compile) 2>&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; then
10494 # Parse the compiler output and extract the necessary
10495 # objects, libraries and library flags.
10497 # Sentinel used to keep track of whether or not we are before
10498 # the conftest object file.
10499 pre_test_object_deps_done=no
10501 # The `*' in the case matches for architectures that use `case' in
10502 # $output_verbose_cmd can trigger glob expansion during the loop
10503 # eval without this substitution.
10504 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10506 for p in `eval $output_verbose_link_cmd`; do
10510 # Some compilers place space between "-{L,R}" and the path.
10511 # Remove the space.
10512 if test $p = "-L" \
10513 || test $p = "-R"; then
10520 if test "$pre_test_object_deps_done" = no; then
10523 # Internal compiler library paths should come after those
10524 # provided the user. The postdeps already come after the
10525 # user supplied libs so there is no need to process them.
10526 if test -z "$compiler_lib_search_path_CXX"; then
10527 compiler_lib_search_path_CXX="${prev}${p}"
10529 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10532 # The "-l" case would never come before the object being
10533 # linked, so don't bother handling this case.
10536 if test -z "$postdeps_CXX"; then
10537 postdeps_CXX="${prev}${p}"
10539 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10545 # This assumes that the test object file only shows up
10546 # once in the compiler output.
10547 if test "$p" = "conftest.$objext"; then
10548 pre_test_object_deps_done=yes
10552 if test "$pre_test_object_deps_done" = no; then
10553 if test -z "$predep_objects_CXX"; then
10554 predep_objects_CXX="$p"
10556 predep_objects_CXX="$predep_objects_CXX $p"
10559 if test -z "$postdep_objects_CXX"; then
10560 postdep_objects_CXX="$p"
10562 postdep_objects_CXX="$postdep_objects_CXX $p"
10567 *) ;; # Ignore the rest.
10575 echo "libtool.m4: error: problem compiling CXX test program"
10578 $rm -f confest.$objext
10580 case " $postdeps_CXX " in
10581 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10584 lt_prog_compiler_wl_CXX=
10585 lt_prog_compiler_pic_CXX=
10586 lt_prog_compiler_static_CXX=
10588 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10589 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10591 # C++ specific cases for pic, static, wl, etc.
10592 if test "$GXX" = yes; then
10593 lt_prog_compiler_wl_CXX='-Wl,'
10594 lt_prog_compiler_static_CXX='-static'
10598 # All AIX code is PIC.
10599 if test "$host_cpu" = ia64; then
10600 # AIX 5 now supports IA64 processor
10601 lt_prog_compiler_static_CXX='-Bstatic'
10605 # FIXME: we need at least 68020 code to build shared libraries, but
10606 # adding the `-m68020' flag to GCC prevents building anything better,
10608 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10610 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10611 # PIC is the default for these OSes.
10613 mingw* | os2* | pw32*)
10614 # This hack is so that the source file can tell whether it is being
10615 # built for inclusion in a dll (and should export symbols for example).
10616 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10618 darwin* | rhapsody*)
10619 # PIC is the default on this platform
10620 # Common symbols not allowed in MH_DYLIB files
10621 lt_prog_compiler_pic_CXX='-fno-common'
10624 # DJGPP does not support shared libraries at all
10625 lt_prog_compiler_pic_CXX=
10628 if test -d /usr/nec; then
10629 lt_prog_compiler_pic_CXX=-Kconform_pic
10633 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10634 # not for PA HP-UX.
10635 case "$host_cpu" in
10639 lt_prog_compiler_pic_CXX='-fPIC'
10644 lt_prog_compiler_pic_CXX='-fPIC'
10650 # All AIX code is PIC.
10651 if test "$host_cpu" = ia64; then
10652 # AIX 5 now supports IA64 processor
10653 lt_prog_compiler_static_CXX='-Bstatic'
10655 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10659 case $cc_basename in
10661 # Green Hills C++ Compiler
10662 # _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"
10667 # PIC is the default on this platform
10668 # Common symbols not allowed in MH_DYLIB files
10669 case "$cc_basename" in
10671 lt_prog_compiler_pic_CXX='-qnocommon'
10672 lt_prog_compiler_wl_CXX='-Wl,'
10677 case $cc_basename in
10679 lt_prog_compiler_pic_CXX='-KPIC'
10682 # Green Hills C++ Compiler
10683 lt_prog_compiler_pic_CXX='-pic'
10689 freebsd* | kfreebsd*-gnu)
10690 # FreeBSD uses GNU C++
10692 hpux9* | hpux10* | hpux11*)
10693 case $cc_basename in
10695 lt_prog_compiler_wl_CXX='-Wl,'
10696 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10697 if test "$host_cpu" != ia64; then
10698 lt_prog_compiler_pic_CXX='+Z'
10702 lt_prog_compiler_wl_CXX='-Wl,'
10703 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10704 case "$host_cpu" in
10709 lt_prog_compiler_pic_CXX='+Z'
10717 irix5* | irix6* | nonstopux*)
10718 case $cc_basename in
10720 lt_prog_compiler_wl_CXX='-Wl,'
10721 lt_prog_compiler_static_CXX='-non_shared'
10722 # CC pic flag -KPIC is the default.
10729 case $cc_basename in
10732 lt_prog_compiler_wl_CXX='--backend -Wl,'
10733 lt_prog_compiler_pic_CXX='-fPIC'
10737 lt_prog_compiler_wl_CXX='-Wl,'
10738 lt_prog_compiler_pic_CXX='-KPIC'
10739 lt_prog_compiler_static_CXX='-static'
10743 # Make sure the PIC flag is empty. It appears that all Alpha
10744 # Linux and Compaq Tru64 Unix objects are PIC.
10745 lt_prog_compiler_pic_CXX=
10746 lt_prog_compiler_static_CXX='-non_shared'
10757 case $cc_basename in
10759 lt_prog_compiler_pic_CXX='-W c,exportall'
10767 osf3* | osf4* | osf5*)
10768 case $cc_basename in
10770 lt_prog_compiler_wl_CXX='--backend -Wl,'
10773 # Rational C++ 2.4.1
10774 lt_prog_compiler_pic_CXX='-pic'
10777 # Digital/Compaq C++
10778 lt_prog_compiler_wl_CXX='-Wl,'
10779 # Make sure the PIC flag is empty. It appears that all Alpha
10780 # Linux and Compaq Tru64 Unix objects are PIC.
10781 lt_prog_compiler_pic_CXX=
10782 lt_prog_compiler_static_CXX='-non_shared'
10791 case $cc_basename in
10793 lt_prog_compiler_pic_CXX='-fPIC'
10800 case $cc_basename in
10802 # Sun C++ 4.2, 5.x and Centerline C++
10803 lt_prog_compiler_pic_CXX='-KPIC'
10804 lt_prog_compiler_static_CXX='-Bstatic'
10805 lt_prog_compiler_wl_CXX='-Qoption ld '
10808 # Green Hills C++ Compiler
10809 lt_prog_compiler_pic_CXX='-PIC'
10816 case $cc_basename in
10819 lt_prog_compiler_pic_CXX='-pic'
10820 lt_prog_compiler_static_CXX='-Bstatic'
10824 lt_prog_compiler_pic_CXX='-pic'
10831 case $cc_basename in
10833 # NonStop-UX NCC 3.20
10834 lt_prog_compiler_pic_CXX='-KPIC'
10845 lt_prog_compiler_can_build_shared_CXX=no
10850 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10851 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10854 # Check to make sure the PIC flag actually works.
10856 if test -n "$lt_prog_compiler_pic_CXX"; then
10858 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10859 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10860 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 lt_prog_compiler_pic_works_CXX=no
10864 ac_outfile=conftest.$ac_objext
10865 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10866 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10867 # Insert the option either (1) after the last *FLAGS variable, or
10868 # (2) before a word containing "conftest.", or (3) at the end.
10869 # Note that $ac_compile itself does not contain backslashes and begins
10870 # with a dollar sign (not a hyphen), so the echo should work correctly.
10871 # The option is referenced via a variable to avoid confusing sed.
10872 lt_compile=`echo "$ac_compile" | $SED \
10873 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10875 -e 's:$: $lt_compiler_flag:'`
10876 (eval echo "\"\$as_me:10876: $lt_compile\"" >&5)
10877 (eval "$lt_compile" 2>conftest.err)
10879 cat conftest.err >&5
10880 echo "$as_me:10880: \$? = $ac_status" >&5
10881 if (exit $ac_status) && test -s "$ac_outfile"; then
10882 # The compiler can only warn and ignore the option if not recognized
10883 # So say no if there are warnings
10884 if test ! -s conftest.err; then
10885 lt_prog_compiler_pic_works_CXX=yes
10891 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10892 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10894 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10895 case $lt_prog_compiler_pic_CXX in
10897 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10900 lt_prog_compiler_pic_CXX=
10901 lt_prog_compiler_can_build_shared_CXX=no
10906 # For platforms which do not support PIC, -DPIC is meaningless:
10908 lt_prog_compiler_pic_CXX=
10911 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10915 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10916 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10917 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 lt_cv_prog_compiler_c_o_CXX=no
10921 $rm -r conftest 2>/dev/null
10925 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10927 lt_compiler_flag="-o out/conftest2.$ac_objext"
10928 # Insert the option either (1) after the last *FLAGS variable, or
10929 # (2) before a word containing "conftest.", or (3) at the end.
10930 # Note that $ac_compile itself does not contain backslashes and begins
10931 # with a dollar sign (not a hyphen), so the echo should work correctly.
10932 lt_compile=`echo "$ac_compile" | $SED \
10933 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10935 -e 's:$: $lt_compiler_flag:'`
10936 (eval echo "\"\$as_me:10936: $lt_compile\"" >&5)
10937 (eval "$lt_compile" 2>out/conftest.err)
10939 cat out/conftest.err >&5
10940 echo "$as_me:10940: \$? = $ac_status" >&5
10941 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10943 # The compiler can only warn and ignore the option if not recognized
10944 # So say no if there are warnings
10945 if test ! -s out/conftest.err; then
10946 lt_cv_prog_compiler_c_o_CXX=yes
10951 # SGI C++ compiler will create directory out/ii_files/ for
10952 # template instantiation
10953 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10954 $rm out/* && rmdir out
10960 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10961 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10964 hard_links="nottested"
10965 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10966 # do not overwrite the value of need_locks provided by the user
10967 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10968 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10971 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10973 ln conftest.a conftest.b 2>&5 || hard_links=no
10974 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10975 echo "$as_me:$LINENO: result: $hard_links" >&5
10976 echo "${ECHO_T}$hard_links" >&6
10977 if test "$hard_links" = no; then
10978 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10979 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10986 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10987 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10989 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10992 # If we're using GNU nm, then we don't want the "-C" option.
10993 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10994 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10995 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'
10997 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'
11001 export_symbols_cmds_CXX="$ltdll_cmds"
11004 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11007 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11011 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11012 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11013 test "$ld_shlibs_CXX" = no && can_build_shared=no
11015 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11016 if test "$GCC" = yes; then
11017 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11021 # Do we need to explicitly link libc?
11023 case "x$archive_cmds_need_lc_CXX" in
11025 # Assume -lc should be added
11026 archive_cmds_need_lc_CXX=yes
11028 if test "$enable_shared" = yes && test "$GCC" = yes; then
11029 case $archive_cmds_CXX in
11031 # FIXME: we may have to deal with multi-command sequences.
11034 # Test whether the compiler implicitly links with -lc since on some
11035 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11036 # to ld, don't add -lc before -lgcc.
11037 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11038 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11040 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11043 (eval $ac_compile) 2>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } 2>conftest.err; then
11049 libobjs=conftest.$ac_objext
11051 wl=$lt_prog_compiler_wl_CXX
11057 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11058 allow_undefined_flag_CXX=
11059 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11060 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }
11065 archive_cmds_need_lc_CXX=no
11067 archive_cmds_need_lc_CXX=yes
11069 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11071 cat conftest.err 1>&5
11074 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11075 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11082 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11083 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11084 library_names_spec=
11085 libname_spec='lib$name'
11089 postuninstall_cmds=
11093 shlibpath_overrides_runpath=unknown
11095 dynamic_linker="$host_os ld.so"
11096 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11097 if test "$GCC" = yes; then
11098 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11099 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11100 # if the path contains ";" then we assume it to be the separator
11101 # otherwise default to the standard path separator (i.e. ":") - it is
11102 # assumed that no part of a normal pathname contains ";" but that should
11103 # okay in the real world where ";" in dirpaths is itself problematic.
11104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11109 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11111 need_lib_prefix=unknown
11112 hardcode_into_libs=no
11114 # when you set need_version to no, make sure it does not cause -set_version
11115 # flags to be left without arguments
11116 need_version=unknown
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11122 shlibpath_var=LIBPATH
11124 # AIX 3 has no versioning support, so we append a major version to the name.
11125 soname_spec='${libname}${release}${shared_ext}$major'
11132 hardcode_into_libs=yes
11133 if test "$host_cpu" = ia64; then
11134 # AIX 5 supports IA64
11135 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11136 shlibpath_var=LD_LIBRARY_PATH
11138 # With GCC up to 2.95.x, collect2 would create an import file
11139 # for dependence libraries. The import file would start with
11140 # the line `#! .'. This would cause the generated library to
11141 # depend on `.', always an invalid library. This was fixed in
11142 # development snapshots of GCC prior to 3.0.
11144 aix4 | aix4.[01] | aix4.[01].*)
11145 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11147 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11150 can_build_shared=no
11154 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11155 # soname into executable. Probably we can add versioning support to
11156 # collect2, so additional links can be useful in future.
11157 if test "$aix_use_runtimelinking" = yes; then
11158 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11159 # instead of lib<name>.a to let people know that these are not
11160 # typical AIX shared libraries.
11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163 # We preserve .a as extension for shared libraries through AIX4.2
11164 # and later when we are not doing run time linking.
11165 library_names_spec='${libname}${release}.a $libname.a'
11166 soname_spec='${libname}${release}${shared_ext}$major'
11168 shlibpath_var=LIBPATH
11173 library_names_spec='$libname.ixlibrary $libname.a'
11174 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11175 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'
11179 library_names_spec='${libname}${shared_ext}'
11180 dynamic_linker="$host_os ld.so"
11181 shlibpath_var=LIBRARY_PATH
11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188 soname_spec='${libname}${release}${shared_ext}$major'
11189 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11190 shlibpath_var=LD_LIBRARY_PATH
11191 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11192 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11193 # the default ld.so.conf also contains /usr/contrib/lib and
11194 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11195 # libtool to hard-code these into programs
11198 cygwin* | mingw* | pw32*)
11199 version_type=windows
11204 case $GCC,$host_os in
11205 yes,cygwin* | yes,mingw* | yes,pw32*)
11206 library_names_spec='$libname.dll.a'
11207 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11208 postinstall_cmds='base_file=`basename \${file}`;
11209 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
11210 dldir=$destdir/`dirname \$dlpath`;
11211 test -d \$dldir || mkdir -p \$dldir;
11212 $install_prog $dir/$dlname \$dldir/$dlname'
11213 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
11214 dlpath=$dir/\$dldll;
11216 shlibpath_overrides_runpath=yes
11220 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11221 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11222 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11225 # MinGW DLLs use traditional 'lib' prefix
11226 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11227 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11228 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11229 # It is most probably a Windows format PATH printed by
11230 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11231 # path with ; separators, and with drive letters. We can handle the
11232 # drive letters (cygwin fileutils understands them), so leave them,
11233 # especially as we might pass files found there to a mingw objdump,
11234 # which wouldn't understand a cygwinified path. Ahh.
11235 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11237 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11241 # pw32 DLLs use 'pw' prefix rather than 'lib'
11242 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11248 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11251 dynamic_linker='Win32 ld.exe'
11252 # FIXME: first we should search . and the directory the executable is in
11256 darwin* | rhapsody*)
11257 dynamic_linker="$host_os dyld"
11258 version_type=darwin
11261 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11262 soname_spec='${libname}${release}${major}$shared_ext'
11263 shlibpath_overrides_runpath=yes
11264 shlibpath_var=DYLD_LIBRARY_PATH
11265 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11266 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11267 if test "$GCC" = yes; then
11268 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"`
11270 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11272 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11280 soname_spec='${libname}${release}${shared_ext}$major'
11281 shlibpath_var=LD_LIBRARY_PATH
11292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11293 soname_spec='${libname}${release}${shared_ext}$major'
11294 shlibpath_var=LD_LIBRARY_PATH
11295 shlibpath_overrides_runpath=no
11296 hardcode_into_libs=yes
11297 dynamic_linker='GNU ld.so'
11301 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11302 version_type=freebsd-$objformat
11303 case $version_type in
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11310 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11314 shlibpath_var=LD_LIBRARY_PATH
11317 shlibpath_overrides_runpath=yes
11319 freebsd3.01* | freebsdelf3.01*)
11320 shlibpath_overrides_runpath=yes
11321 hardcode_into_libs=yes
11324 shlibpath_overrides_runpath=no
11325 hardcode_into_libs=yes
11334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11335 soname_spec='${libname}${release}${shared_ext}$major'
11336 shlibpath_var=LD_LIBRARY_PATH
11337 hardcode_into_libs=yes
11340 hpux9* | hpux10* | hpux11*)
11341 # Give a soname corresponding to the major version so that dld.sl refuses to
11342 # link against other versions.
11346 case "$host_cpu" in
11349 hardcode_into_libs=yes
11350 dynamic_linker="$host_os dld.so"
11351 shlibpath_var=LD_LIBRARY_PATH
11352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354 soname_spec='${libname}${release}${shared_ext}$major'
11355 if test "X$HPUX_IA64_MODE" = X32; then
11356 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11358 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11364 hardcode_into_libs=yes
11365 dynamic_linker="$host_os dld.sl"
11366 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11369 soname_spec='${libname}${release}${shared_ext}$major'
11370 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11371 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11375 dynamic_linker="$host_os dld.sl"
11376 shlibpath_var=SHLIB_PATH
11377 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11379 soname_spec='${libname}${release}${shared_ext}$major'
11382 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11383 postinstall_cmds='chmod 555 $lib'
11386 irix5* | irix6* | nonstopux*)
11388 nonstopux*) version_type=nonstopux ;;
11390 if test "$lt_cv_prog_gnu_ld" = yes; then
11398 soname_spec='${libname}${release}${shared_ext}$major'
11399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11401 irix5* | nonstopux*)
11402 libsuff= shlibsuff=
11405 case $LD in # libtool.m4 will add one of these switches to LD
11406 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11407 libsuff= shlibsuff= libmagic=32-bit;;
11408 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11409 libsuff=32 shlibsuff=N32 libmagic=N32;;
11410 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11411 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11412 *) libsuff= shlibsuff= libmagic=never-match;;
11416 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11417 shlibpath_overrides_runpath=no
11418 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11419 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11420 hardcode_into_libs=yes
11423 # No shared lib support for Linux oldld, aout, or coff.
11424 linux*oldld* | linux*aout* | linux*coff*)
11428 # This must be Linux ELF.
11433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11434 soname_spec='${libname}${release}${shared_ext}$major'
11435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11436 shlibpath_var=LD_LIBRARY_PATH
11437 shlibpath_overrides_runpath=no
11438 # This implies no fast_install, which is unacceptable.
11439 # Some rework will be needed to allow for fast_install
11440 # before this can be enabled.
11441 hardcode_into_libs=yes
11443 # Append ld.so.conf contents to the search path
11444 if test -f /etc/ld.so.conf; then
11445 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11446 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11449 # We used to test for /lib/ld.so.1 and disable shared libraries on
11450 # powerpc, because MkLinux only supported shared libraries with the
11451 # GNU dynamic linker. Since this was broken with cross compilers,
11452 # most powerpc-linux boxes support dynamic linking these days and
11453 # people can always --disable-shared, the test was removed, and we
11454 # assume the GNU/Linux dynamic linker is in use.
11455 dynamic_linker='GNU/Linux ld.so'
11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11463 soname_spec='${libname}${release}${shared_ext}$major'
11464 shlibpath_var=LD_LIBRARY_PATH
11465 shlibpath_overrides_runpath=no
11466 hardcode_into_libs=yes
11467 dynamic_linker='GNU ld.so'
11474 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11477 dynamic_linker='NetBSD (a.out) ld.so'
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11480 soname_spec='${libname}${release}${shared_ext}$major'
11481 dynamic_linker='NetBSD ld.elf_so'
11483 shlibpath_var=LD_LIBRARY_PATH
11484 shlibpath_overrides_runpath=yes
11485 hardcode_into_libs=yes
11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11491 shlibpath_var=LD_LIBRARY_PATH
11492 shlibpath_overrides_runpath=yes
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500 soname_spec='${libname}${release}${shared_ext}$major'
11501 shlibpath_var=LD_LIBRARY_PATH
11502 shlibpath_overrides_runpath=yes
11509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11511 shlibpath_var=LD_LIBRARY_PATH
11512 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11514 openbsd2.[89] | openbsd2.[89].*)
11515 shlibpath_overrides_runpath=no
11518 shlibpath_overrides_runpath=yes
11522 shlibpath_overrides_runpath=yes
11527 libname_spec='$name'
11530 library_names_spec='$libname${shared_ext} $libname.a'
11531 dynamic_linker='OS/2 ld.exe'
11532 shlibpath_var=LIBPATH
11535 osf3* | osf4* | osf5*)
11539 soname_spec='${libname}${release}${shared_ext}$major'
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11541 shlibpath_var=LD_LIBRARY_PATH
11542 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11543 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11548 soname_spec='${libname}${release}${shared_ext}$major'
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11550 shlibpath_var=LD_LIBRARY_PATH
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558 soname_spec='${libname}${release}${shared_ext}$major'
11559 shlibpath_var=LD_LIBRARY_PATH
11560 shlibpath_overrides_runpath=yes
11561 hardcode_into_libs=yes
11562 # ldd complains unless libraries are executable
11563 postinstall_cmds='chmod +x $lib'
11568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11569 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11570 shlibpath_var=LD_LIBRARY_PATH
11571 shlibpath_overrides_runpath=yes
11572 if test "$with_gnu_ld" = yes; then
11578 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581 soname_spec='${libname}${release}${shared_ext}$major'
11582 shlibpath_var=LD_LIBRARY_PATH
11583 case $host_vendor in
11585 shlibpath_overrides_runpath=no
11587 export_dynamic_flag_spec='${wl}-Blargedynsym'
11588 runpath_var=LD_RUN_PATH
11596 shlibpath_overrides_runpath=no
11597 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11603 if test -d /usr/nec ;then
11605 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11606 soname_spec='$libname${shared_ext}.$major'
11607 shlibpath_var=LD_LIBRARY_PATH
11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11614 soname_spec='${libname}${release}${shared_ext}$major'
11615 shlibpath_var=LD_LIBRARY_PATH
11622 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11623 echo "${ECHO_T}$dynamic_linker" >&6
11624 test "$dynamic_linker" = no && can_build_shared=no
11626 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11627 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11628 hardcode_action_CXX=
11629 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11630 test -n "$runpath_var_CXX" || \
11631 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11633 # We can hardcode non-existant directories.
11634 if test "$hardcode_direct_CXX" != no &&
11635 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11636 # have to relink, otherwise we might link with an installed library
11637 # when we should be linking with a yet-to-be-installed one
11638 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11639 test "$hardcode_minus_L_CXX" != no; then
11640 # Linking always hardcodes the temporary library directory.
11641 hardcode_action_CXX=relink
11643 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11644 hardcode_action_CXX=immediate
11647 # We cannot hardcode anything, or else we can only hardcode existing
11649 hardcode_action_CXX=unsupported
11651 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11652 echo "${ECHO_T}$hardcode_action_CXX" >&6
11654 if test "$hardcode_action_CXX" = relink; then
11655 # Fast installation is not supported
11656 enable_fast_install=no
11657 elif test "$shlibpath_overrides_runpath" = yes ||
11658 test "$enable_shared" = no; then
11659 # Fast installation is not necessary
11660 enable_fast_install=needless
11665 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11666 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11667 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11668 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11669 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11670 echo "$as_me:$LINENO: result: yes" >&5
11671 echo "${ECHO_T}yes" >&6
11673 # FIXME - insert some real tests, host_os isn't really good enough
11676 if test -n "$STRIP" ; then
11677 striplib="$STRIP -x"
11678 echo "$as_me:$LINENO: result: yes" >&5
11679 echo "${ECHO_T}yes" >&6
11681 echo "$as_me:$LINENO: result: no" >&5
11682 echo "${ECHO_T}no" >&6
11686 echo "$as_me:$LINENO: result: no" >&5
11687 echo "${ECHO_T}no" >&6
11692 if test "x$enable_dlopen" != xyes; then
11693 enable_dlopen=unknown
11694 enable_dlopen_self=unknown
11695 enable_dlopen_self_static=unknown
11702 lt_cv_dlopen="load_add_on"
11704 lt_cv_dlopen_self=yes
11708 lt_cv_dlopen="LoadLibrary"
11713 lt_cv_dlopen="dlopen"
11718 # if libdl is installed we need to link against it
11719 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11720 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11721 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11724 ac_check_lib_save_LIBS=$LIBS
11726 cat >conftest.$ac_ext <<_ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h. */
11733 /* Override any gcc2 internal prototype to avoid an error. */
11737 /* We use char because int might match the return type of a gcc2
11738 builtin and then its argument prototype would still apply. */
11748 rm -f conftest.$ac_objext conftest$ac_exeext
11749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11750 (eval $ac_link) 2>conftest.er1
11752 grep -v '^ *+' conftest.er1 >conftest.err
11754 cat conftest.err >&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); } &&
11757 { ac_try='test -z "$ac_cxx_werror_flag"
11758 || test ! -s conftest.err'
11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760 (eval $ac_try) 2>&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; } &&
11764 { ac_try='test -s conftest$ac_exeext'
11765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11766 (eval $ac_try) 2>&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); }; }; then
11770 ac_cv_lib_dl_dlopen=yes
11772 echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11775 ac_cv_lib_dl_dlopen=no
11777 rm -f conftest.err conftest.$ac_objext \
11778 conftest$ac_exeext conftest.$ac_ext
11779 LIBS=$ac_check_lib_save_LIBS
11781 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11782 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11783 if test $ac_cv_lib_dl_dlopen = yes; then
11784 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11787 lt_cv_dlopen="dyld"
11789 lt_cv_dlopen_self=yes
11796 echo "$as_me:$LINENO: checking for shl_load" >&5
11797 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11798 if test "${ac_cv_func_shl_load+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 cat >conftest.$ac_ext <<_ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11807 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11809 #define shl_load innocuous_shl_load
11811 /* System header to define __stub macros and hopefully few prototypes,
11812 which can conflict with char shl_load (); below.
11813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11814 <limits.h> exists even on freestanding compilers. */
11817 # include <limits.h>
11819 # include <assert.h>
11824 /* Override any gcc2 internal prototype to avoid an error. */
11829 /* We use char because int might match the return type of a gcc2
11830 builtin and then its argument prototype would still apply. */
11832 /* The GNU C library defines this for functions which it implements
11833 to always fail with ENOSYS. Some functions are actually named
11834 something starting with __ and the normal name is an alias. */
11835 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11838 char (*f) () = shl_load;
11847 return f != shl_load;
11852 rm -f conftest.$ac_objext conftest$ac_exeext
11853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11854 (eval $ac_link) 2>conftest.er1
11856 grep -v '^ *+' conftest.er1 >conftest.err
11858 cat conftest.err >&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } &&
11861 { ac_try='test -z "$ac_cxx_werror_flag"
11862 || test ! -s conftest.err'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; } &&
11868 { ac_try='test -s conftest$ac_exeext'
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
11874 ac_cv_func_shl_load=yes
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11879 ac_cv_func_shl_load=no
11881 rm -f conftest.err conftest.$ac_objext \
11882 conftest$ac_exeext conftest.$ac_ext
11884 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11885 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11886 if test $ac_cv_func_shl_load = yes; then
11887 lt_cv_dlopen="shl_load"
11889 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11890 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11891 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 ac_check_lib_save_LIBS=$LIBS
11896 cat >conftest.$ac_ext <<_ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11903 /* Override any gcc2 internal prototype to avoid an error. */
11907 /* We use char because int might match the return type of a gcc2
11908 builtin and then its argument prototype would still apply. */
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11920 (eval $ac_link) 2>conftest.er1
11922 grep -v '^ *+' conftest.er1 >conftest.err
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try='test -z "$ac_cxx_werror_flag"
11928 || test ! -s conftest.err'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; } &&
11934 { ac_try='test -s conftest$ac_exeext'
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; }; then
11940 ac_cv_lib_dld_shl_load=yes
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11945 ac_cv_lib_dld_shl_load=no
11947 rm -f conftest.err conftest.$ac_objext \
11948 conftest$ac_exeext conftest.$ac_ext
11949 LIBS=$ac_check_lib_save_LIBS
11951 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11952 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11953 if test $ac_cv_lib_dld_shl_load = yes; then
11954 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11956 echo "$as_me:$LINENO: checking for dlopen" >&5
11957 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11958 if test "${ac_cv_func_dlopen+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 cat >conftest.$ac_ext <<_ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11967 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11969 #define dlopen innocuous_dlopen
11971 /* System header to define __stub macros and hopefully few prototypes,
11972 which can conflict with char dlopen (); below.
11973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11974 <limits.h> exists even on freestanding compilers. */
11977 # include <limits.h>
11979 # include <assert.h>
11984 /* Override any gcc2 internal prototype to avoid an error. */
11989 /* We use char because int might match the return type of a gcc2
11990 builtin and then its argument prototype would still apply. */
11992 /* The GNU C library defines this for functions which it implements
11993 to always fail with ENOSYS. Some functions are actually named
11994 something starting with __ and the normal name is an alias. */
11995 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11998 char (*f) () = dlopen;
12007 return f != dlopen;
12012 rm -f conftest.$ac_objext conftest$ac_exeext
12013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12014 (eval $ac_link) 2>conftest.er1
12016 grep -v '^ *+' conftest.er1 >conftest.err
12018 cat conftest.err >&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); } &&
12021 { ac_try='test -z "$ac_cxx_werror_flag"
12022 || test ! -s conftest.err'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; } &&
12028 { ac_try='test -s conftest$ac_exeext'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; }; then
12034 ac_cv_func_dlopen=yes
12036 echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.$ac_ext >&5
12039 ac_cv_func_dlopen=no
12041 rm -f conftest.err conftest.$ac_objext \
12042 conftest$ac_exeext conftest.$ac_ext
12044 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12045 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12046 if test $ac_cv_func_dlopen = yes; then
12047 lt_cv_dlopen="dlopen"
12049 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12050 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12051 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 ac_check_lib_save_LIBS=$LIBS
12056 cat >conftest.$ac_ext <<_ACEOF
12059 cat confdefs.h >>conftest.$ac_ext
12060 cat >>conftest.$ac_ext <<_ACEOF
12061 /* end confdefs.h. */
12063 /* Override any gcc2 internal prototype to avoid an error. */
12067 /* We use char because int might match the return type of a gcc2
12068 builtin and then its argument prototype would still apply. */
12078 rm -f conftest.$ac_objext conftest$ac_exeext
12079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12080 (eval $ac_link) 2>conftest.er1
12082 grep -v '^ *+' conftest.er1 >conftest.err
12084 cat conftest.err >&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); } &&
12087 { ac_try='test -z "$ac_cxx_werror_flag"
12088 || test ! -s conftest.err'
12089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090 (eval $ac_try) 2>&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; } &&
12094 { ac_try='test -s conftest$ac_exeext'
12095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12096 (eval $ac_try) 2>&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; }; then
12100 ac_cv_lib_dl_dlopen=yes
12102 echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12105 ac_cv_lib_dl_dlopen=no
12107 rm -f conftest.err conftest.$ac_objext \
12108 conftest$ac_exeext conftest.$ac_ext
12109 LIBS=$ac_check_lib_save_LIBS
12111 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12112 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12113 if test $ac_cv_lib_dl_dlopen = yes; then
12114 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12116 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12117 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12118 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12119 echo $ECHO_N "(cached) $ECHO_C" >&6
12121 ac_check_lib_save_LIBS=$LIBS
12122 LIBS="-lsvld $LIBS"
12123 cat >conftest.$ac_ext <<_ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12130 /* Override any gcc2 internal prototype to avoid an error. */
12134 /* We use char because int might match the return type of a gcc2
12135 builtin and then its argument prototype would still apply. */
12145 rm -f conftest.$ac_objext conftest$ac_exeext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12147 (eval $ac_link) 2>conftest.er1
12149 grep -v '^ *+' conftest.er1 >conftest.err
12151 cat conftest.err >&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } &&
12154 { ac_try='test -z "$ac_cxx_werror_flag"
12155 || test ! -s conftest.err'
12156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12157 (eval $ac_try) 2>&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); }; } &&
12161 { ac_try='test -s conftest$ac_exeext'
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; }; then
12167 ac_cv_lib_svld_dlopen=yes
12169 echo "$as_me: failed program was:" >&5
12170 sed 's/^/| /' conftest.$ac_ext >&5
12172 ac_cv_lib_svld_dlopen=no
12174 rm -f conftest.err conftest.$ac_objext \
12175 conftest$ac_exeext conftest.$ac_ext
12176 LIBS=$ac_check_lib_save_LIBS
12178 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12179 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12180 if test $ac_cv_lib_svld_dlopen = yes; then
12181 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12183 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12184 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12185 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 ac_check_lib_save_LIBS=$LIBS
12190 cat >conftest.$ac_ext <<_ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12197 /* Override any gcc2 internal prototype to avoid an error. */
12201 /* We use char because int might match the return type of a gcc2
12202 builtin and then its argument prototype would still apply. */
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12214 (eval $ac_link) 2>conftest.er1
12216 grep -v '^ *+' conftest.er1 >conftest.err
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } &&
12221 { ac_try='test -z "$ac_cxx_werror_flag"
12222 || test ! -s conftest.err'
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; } &&
12228 { ac_try='test -s conftest$ac_exeext'
12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230 (eval $ac_try) 2>&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12234 ac_cv_lib_dld_dld_link=yes
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 ac_cv_lib_dld_dld_link=no
12241 rm -f conftest.err conftest.$ac_objext \
12242 conftest$ac_exeext conftest.$ac_ext
12243 LIBS=$ac_check_lib_save_LIBS
12245 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12246 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12247 if test $ac_cv_lib_dld_dld_link = yes; then
12248 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12269 if test "x$lt_cv_dlopen" != xno; then
12275 case $lt_cv_dlopen in
12277 save_CPPFLAGS="$CPPFLAGS"
12278 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12280 save_LDFLAGS="$LDFLAGS"
12281 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12284 LIBS="$lt_cv_dlopen_libs $LIBS"
12286 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12287 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12288 if test "${lt_cv_dlopen_self+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12291 if test "$cross_compiling" = yes; then :
12292 lt_cv_dlopen_self=cross
12294 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12295 lt_status=$lt_dlunknown
12296 cat > conftest.$ac_ext <<EOF
12297 #line 12297 "configure"
12298 #include "confdefs.h"
12307 # define LT_DLGLOBAL RTLD_GLOBAL
12310 # define LT_DLGLOBAL DL_GLOBAL
12312 # define LT_DLGLOBAL 0
12316 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12317 find out it does not work in some platform. */
12318 #ifndef LT_DLLAZY_OR_NOW
12320 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12323 # define LT_DLLAZY_OR_NOW DL_LAZY
12326 # define LT_DLLAZY_OR_NOW RTLD_NOW
12329 # define LT_DLLAZY_OR_NOW DL_NOW
12331 # define LT_DLLAZY_OR_NOW 0
12339 extern "C" void exit (int);
12342 void fnord() { int i=42;}
12345 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12346 int status = $lt_dlunknown;
12350 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12351 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12352 /* dlclose (self); */
12358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12359 (eval $ac_link) 2>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12363 (./conftest; exit; ) 2>/dev/null
12365 case x$lt_status in
12366 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12367 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12368 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12371 # compilation failed
12372 lt_cv_dlopen_self=no
12379 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12380 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12382 if test "x$lt_cv_dlopen_self" = xyes; then
12383 LDFLAGS="$LDFLAGS $link_static_flag"
12384 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12385 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12386 if test "${lt_cv_dlopen_self_static+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12389 if test "$cross_compiling" = yes; then :
12390 lt_cv_dlopen_self_static=cross
12392 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12393 lt_status=$lt_dlunknown
12394 cat > conftest.$ac_ext <<EOF
12395 #line 12395 "configure"
12396 #include "confdefs.h"
12405 # define LT_DLGLOBAL RTLD_GLOBAL
12408 # define LT_DLGLOBAL DL_GLOBAL
12410 # define LT_DLGLOBAL 0
12414 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12415 find out it does not work in some platform. */
12416 #ifndef LT_DLLAZY_OR_NOW
12418 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12421 # define LT_DLLAZY_OR_NOW DL_LAZY
12424 # define LT_DLLAZY_OR_NOW RTLD_NOW
12427 # define LT_DLLAZY_OR_NOW DL_NOW
12429 # define LT_DLLAZY_OR_NOW 0
12437 extern "C" void exit (int);
12440 void fnord() { int i=42;}
12443 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12444 int status = $lt_dlunknown;
12448 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12449 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12450 /* dlclose (self); */
12456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12457 (eval $ac_link) 2>&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12461 (./conftest; exit; ) 2>/dev/null
12463 case x$lt_status in
12464 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12465 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12466 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12469 # compilation failed
12470 lt_cv_dlopen_self_static=no
12477 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12478 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12481 CPPFLAGS="$save_CPPFLAGS"
12482 LDFLAGS="$save_LDFLAGS"
12487 case $lt_cv_dlopen_self in
12488 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12489 *) enable_dlopen_self=unknown ;;
12492 case $lt_cv_dlopen_self_static in
12493 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12494 *) enable_dlopen_self_static=unknown ;;
12499 # The else clause should only fire when bootstrapping the
12500 # libtool distribution, otherwise you forgot to ship ltmain.sh
12501 # with your package, and you will get complaints that there are
12502 # no rules to generate ltmain.sh.
12503 if test -f "$ltmain"; then
12504 # See if we are running on zsh, and set the options which allow our commands through
12505 # without removal of \ escapes.
12506 if test -n "${ZSH_VERSION+set}" ; then
12507 setopt NO_GLOB_SUBST
12509 # Now quote all the things that may contain metacharacters while being
12510 # careful not to overquote the AC_SUBSTed values. We take copies of the
12511 # variables and quote the copies for generation of the libtool script.
12512 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12514 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12515 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12516 deplibs_check_method reload_flag reload_cmds need_locks \
12517 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12518 lt_cv_sys_global_symbol_to_c_name_address \
12519 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12520 old_postinstall_cmds old_postuninstall_cmds \
12524 lt_prog_compiler_wl_CXX \
12525 lt_prog_compiler_pic_CXX \
12526 lt_prog_compiler_static_CXX \
12527 lt_prog_compiler_no_builtin_flag_CXX \
12528 export_dynamic_flag_spec_CXX \
12529 thread_safe_flag_spec_CXX \
12530 whole_archive_flag_spec_CXX \
12531 enable_shared_with_static_runtimes_CXX \
12532 old_archive_cmds_CXX \
12533 old_archive_from_new_cmds_CXX \
12534 predep_objects_CXX \
12535 postdep_objects_CXX \
12538 compiler_lib_search_path_CXX \
12540 archive_expsym_cmds_CXX \
12541 postinstall_cmds_CXX \
12542 postuninstall_cmds_CXX \
12543 old_archive_from_expsyms_cmds_CXX \
12544 allow_undefined_flag_CXX \
12545 no_undefined_flag_CXX \
12546 export_symbols_cmds_CXX \
12547 hardcode_libdir_flag_spec_CXX \
12548 hardcode_libdir_flag_spec_ld_CXX \
12549 hardcode_libdir_separator_CXX \
12550 hardcode_automatic_CXX \
12552 module_expsym_cmds_CXX \
12553 lt_cv_prog_compiler_c_o_CXX \
12554 exclude_expsyms_CXX \
12555 include_expsyms_CXX; do
12558 old_archive_cmds_CXX | \
12559 old_archive_from_new_cmds_CXX | \
12560 archive_cmds_CXX | \
12561 archive_expsym_cmds_CXX | \
12562 module_cmds_CXX | \
12563 module_expsym_cmds_CXX | \
12564 old_archive_from_expsyms_cmds_CXX | \
12565 export_symbols_cmds_CXX | \
12566 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12567 postinstall_cmds | postuninstall_cmds | \
12568 old_postinstall_cmds | old_postuninstall_cmds | \
12569 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12570 # Double-quote double-evaled strings.
12571 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12574 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12580 *'\$0 --fallback-echo"')
12581 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12587 cat <<__EOF__ >> "$cfgfile"
12588 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12590 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12592 # Shell to use when invoking shell scripts.
12595 # Whether or not to build shared libraries.
12596 build_libtool_libs=$enable_shared
12598 # Whether or not to build static libraries.
12599 build_old_libs=$enable_static
12601 # Whether or not to add -lc for building shared libraries.
12602 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12604 # Whether or not to disallow shared libs when runtime libs are static
12605 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12607 # Whether or not to optimize for fast installation.
12608 fast_install=$enable_fast_install
12611 host_alias=$host_alias
12614 # An echo program that does not interpret backslashes.
12619 AR_FLAGS=$lt_AR_FLAGS
12624 # A language-specific compiler.
12625 CC=$lt_compiler_CXX
12627 # Is the compiler the GNU C compiler?
12633 # The linker used to build libraries.
12636 # Whether we need hard or soft links.
12639 # A BSD-compatible nm program.
12642 # A symbol stripping program
12645 # Used to examine libraries when file_magic_cmd begins "file"
12646 MAGIC_CMD=$MAGIC_CMD
12648 # Used on cygwin: DLL creation program.
12651 # Used on cygwin: object dumper.
12654 # Used on cygwin: assembler.
12657 # The name of the directory that contains temporary libtool files.
12660 # How to create reloadable object files.
12661 reload_flag=$lt_reload_flag
12662 reload_cmds=$lt_reload_cmds
12664 # How to pass a linker flag through the compiler.
12665 wl=$lt_lt_prog_compiler_wl_CXX
12667 # Object file suffix (normally "o").
12668 objext="$ac_objext"
12670 # Old archive suffix (normally "a").
12673 # Shared library suffix (normally ".so").
12674 shrext_cmds='$shrext_cmds'
12676 # Executable file suffix (normally "").
12679 # Additional compiler flags for building library objects.
12680 pic_flag=$lt_lt_prog_compiler_pic_CXX
12683 # What is the maximum length of a command?
12684 max_cmd_len=$lt_cv_sys_max_cmd_len
12686 # Does compiler simultaneously support -c and -o options?
12687 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12689 # Must we lock files when doing compilation ?
12690 need_locks=$lt_need_locks
12692 # Do we need the lib prefix for modules?
12693 need_lib_prefix=$need_lib_prefix
12695 # Do we need a version for libraries?
12696 need_version=$need_version
12698 # Whether dlopen is supported.
12699 dlopen_support=$enable_dlopen
12701 # Whether dlopen of programs is supported.
12702 dlopen_self=$enable_dlopen_self
12704 # Whether dlopen of statically linked programs is supported.
12705 dlopen_self_static=$enable_dlopen_self_static
12707 # Compiler flag to prevent dynamic linking.
12708 link_static_flag=$lt_lt_prog_compiler_static_CXX
12710 # Compiler flag to turn off builtin functions.
12711 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12713 # Compiler flag to allow reflexive dlopens.
12714 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12716 # Compiler flag to generate shared objects directly from archives.
12717 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12719 # Compiler flag to generate thread-safe objects.
12720 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12722 # Library versioning type.
12723 version_type=$version_type
12725 # Format of library name prefix.
12726 libname_spec=$lt_libname_spec
12728 # List of archive names. First name is the real one, the rest are links.
12729 # The last name is the one that the linker finds with -lNAME.
12730 library_names_spec=$lt_library_names_spec
12732 # The coded name of the library, if different from the real name.
12733 soname_spec=$lt_soname_spec
12735 # Commands used to build and install an old-style archive.
12737 old_archive_cmds=$lt_old_archive_cmds_CXX
12738 old_postinstall_cmds=$lt_old_postinstall_cmds
12739 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12741 # Create an old-style archive from a shared archive.
12742 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12744 # Create a temporary old-style archive to link instead of a shared archive.
12745 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12747 # Commands used to build and install a shared archive.
12748 archive_cmds=$lt_archive_cmds_CXX
12749 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12750 postinstall_cmds=$lt_postinstall_cmds
12751 postuninstall_cmds=$lt_postuninstall_cmds
12753 # Commands used to build a loadable module (assumed same as above if empty)
12754 module_cmds=$lt_module_cmds_CXX
12755 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12757 # Commands to strip libraries.
12758 old_striplib=$lt_old_striplib
12759 striplib=$lt_striplib
12761 # Dependencies to place before the objects being linked to create a
12763 predep_objects=$lt_predep_objects_CXX
12765 # Dependencies to place after the objects being linked to create a
12767 postdep_objects=$lt_postdep_objects_CXX
12769 # Dependencies to place before the objects being linked to create a
12771 predeps=$lt_predeps_CXX
12773 # Dependencies to place after the objects being linked to create a
12775 postdeps=$lt_postdeps_CXX
12777 # The library search path used internally by the compiler when linking
12778 # a shared library.
12779 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12781 # Method to check whether dependent libraries are shared objects.
12782 deplibs_check_method=$lt_deplibs_check_method
12784 # Command to use when deplibs_check_method == file_magic.
12785 file_magic_cmd=$lt_file_magic_cmd
12787 # Flag that allows shared libraries with undefined symbols to be built.
12788 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12790 # Flag that forces no undefined symbols.
12791 no_undefined_flag=$lt_no_undefined_flag_CXX
12793 # Commands used to finish a libtool library installation in a directory.
12794 finish_cmds=$lt_finish_cmds
12796 # Same as above, but a single script fragment to be evaled but not shown.
12797 finish_eval=$lt_finish_eval
12799 # Take the output of nm and produce a listing of raw symbols and C names.
12800 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12802 # Transform the output of nm in a proper C declaration
12803 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12805 # Transform the output of nm in a C name address pair
12806 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12808 # This is the shared library runtime path variable.
12809 runpath_var=$runpath_var
12811 # This is the shared library path variable.
12812 shlibpath_var=$shlibpath_var
12814 # Is shlibpath searched before the hard-coded library search path?
12815 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12817 # How to hardcode a shared library path into an executable.
12818 hardcode_action=$hardcode_action_CXX
12820 # Whether we should hardcode library paths into libraries.
12821 hardcode_into_libs=$hardcode_into_libs
12823 # Flag to hardcode \$libdir into a binary during linking.
12824 # This must work even if \$libdir does not exist.
12825 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12827 # If ld is used when linking, flag to hardcode \$libdir into
12828 # a binary during linking. This must work even if \$libdir does
12830 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12832 # Whether we need a single -rpath flag with a separated argument.
12833 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12835 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12836 # resulting binary.
12837 hardcode_direct=$hardcode_direct_CXX
12839 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12840 # resulting binary.
12841 hardcode_minus_L=$hardcode_minus_L_CXX
12843 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12844 # the resulting binary.
12845 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12847 # Set to yes if building a shared library automatically hardcodes DIR into the library
12848 # and all subsequent libraries and executables linked against it.
12849 hardcode_automatic=$hardcode_automatic_CXX
12851 # Variables whose values should be saved in libtool wrapper scripts and
12852 # restored at relink time.
12853 variables_saved_for_relink="$variables_saved_for_relink"
12855 # Whether libtool must link a program against all its dependency libraries.
12856 link_all_deplibs=$link_all_deplibs_CXX
12858 # Compile-time system search path for libraries
12859 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12861 # Run-time system search path for libraries
12862 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12864 # Fix the shell variable \$srcfile for the compiler.
12865 fix_srcfile_path="$fix_srcfile_path_CXX"
12867 # Set to yes if exported symbols are required.
12868 always_export_symbols=$always_export_symbols_CXX
12870 # The commands to list exported symbols.
12871 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12873 # The commands to extract the exported symbol list from a shared archive.
12874 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12876 # Symbols that should not be listed in the preloaded symbols.
12877 exclude_expsyms=$lt_exclude_expsyms_CXX
12879 # Symbols that must always be exported.
12880 include_expsyms=$lt_include_expsyms_CXX
12882 # ### END LIBTOOL TAG CONFIG: $tagname
12888 # If there is no Makefile yet, we rely on a make rule to execute
12889 # `config.status --recheck' to rerun these tests and create the
12890 # libtool script then.
12891 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12892 if test -f "$ltmain_in"; then
12893 test -f Makefile && make "$ltmain"
12899 ac_cpp='$CPP $CPPFLAGS'
12900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12908 with_gnu_ldcxx=$with_gnu_ld
12909 with_gnu_ld=$lt_save_with_gnu_ld
12910 lt_cv_path_LDCXX=$lt_cv_path_LD
12911 lt_cv_path_LD=$lt_save_path_LD
12912 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12913 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12921 if test -n "$F77" && test "X$F77" != "Xno"; then
12924 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12925 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12926 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12929 archive_cmds_need_lc_F77=no
12930 allow_undefined_flag_F77=
12931 always_export_symbols_F77=no
12932 archive_expsym_cmds_F77=
12933 export_dynamic_flag_spec_F77=
12934 hardcode_direct_F77=no
12935 hardcode_libdir_flag_spec_F77=
12936 hardcode_libdir_flag_spec_ld_F77=
12937 hardcode_libdir_separator_F77=
12938 hardcode_minus_L_F77=no
12939 hardcode_automatic_F77=no
12941 module_expsym_cmds_F77=
12942 link_all_deplibs_F77=unknown
12943 old_archive_cmds_F77=$old_archive_cmds
12944 no_undefined_flag_F77=
12945 whole_archive_flag_spec_F77=
12946 enable_shared_with_static_runtimes_F77=no
12948 # Source file extension for f77 test sources.
12951 # Object file extension for compiled f77 test sources.
12955 # Code to be used in simple compile tests
12956 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12958 # Code to be used in simple link tests
12959 lt_simple_link_test_code=" program t\n end\n"
12961 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12963 # If no C compiler was specified, use CC.
12966 # Allow CC to be a program name with arguments.
12970 # Allow CC to be a program name with arguments.
12975 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12977 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12978 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12979 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12980 echo "${ECHO_T}$can_build_shared" >&6
12982 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12983 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12984 test "$can_build_shared" = "no" && enable_shared=no
12986 # On AIX, shared libraries and static libraries use the same namespace, and
12987 # are all built from PIC.
12990 test "$enable_shared" = yes && enable_static=no
12991 if test -n "$RANLIB"; then
12992 archive_cmds="$archive_cmds;\$RANLIB \$lib"
12993 postinstall_cmds='$RANLIB $lib'
12997 test "$enable_shared" = yes && enable_static=no
13000 echo "$as_me:$LINENO: result: $enable_shared" >&5
13001 echo "${ECHO_T}$enable_shared" >&6
13003 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13004 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13005 # Make sure either enable_shared or enable_static is yes.
13006 test "$enable_shared" = yes || enable_static=yes
13007 echo "$as_me:$LINENO: result: $enable_static" >&5
13008 echo "${ECHO_T}$enable_static" >&6
13010 test "$ld_shlibs_F77" = no && can_build_shared=no
13015 lt_prog_compiler_wl_F77=
13016 lt_prog_compiler_pic_F77=
13017 lt_prog_compiler_static_F77=
13019 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13020 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13022 if test "$GCC" = yes; then
13023 lt_prog_compiler_wl_F77='-Wl,'
13024 lt_prog_compiler_static_F77='-static'
13028 # All AIX code is PIC.
13029 if test "$host_cpu" = ia64; then
13030 # AIX 5 now supports IA64 processor
13031 lt_prog_compiler_static_F77='-Bstatic'
13036 # FIXME: we need at least 68020 code to build shared libraries, but
13037 # adding the `-m68020' flag to GCC prevents building anything better,
13039 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13042 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13043 # PIC is the default for these OSes.
13046 mingw* | pw32* | os2*)
13047 # This hack is so that the source file can tell whether it is being
13048 # built for inclusion in a dll (and should export symbols for example).
13049 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13052 darwin* | rhapsody*)
13053 # PIC is the default on this platform
13054 # Common symbols not allowed in MH_DYLIB files
13055 lt_prog_compiler_pic_F77='-fno-common'
13059 # Just because we use GCC doesn't mean we suddenly get shared libraries
13060 # on systems that don't support them.
13061 lt_prog_compiler_can_build_shared_F77=no
13066 if test -d /usr/nec; then
13067 lt_prog_compiler_pic_F77=-Kconform_pic
13072 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13073 # not for PA HP-UX.
13074 case "$host_cpu" in
13079 lt_prog_compiler_pic_F77='-fPIC'
13085 lt_prog_compiler_pic_F77='-fPIC'
13089 # PORTME Check for flag to pass linker flags through the system compiler.
13092 lt_prog_compiler_wl_F77='-Wl,'
13093 if test "$host_cpu" = ia64; then
13094 # AIX 5 now supports IA64 processor
13095 lt_prog_compiler_static_F77='-Bstatic'
13097 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13101 # PIC is the default on this platform
13102 # Common symbols not allowed in MH_DYLIB files
13103 case "$cc_basename" in
13105 lt_prog_compiler_pic_F77='-qnocommon'
13106 lt_prog_compiler_wl_F77='-Wl,'
13111 mingw* | pw32* | os2*)
13112 # This hack is so that the source file can tell whether it is being
13113 # built for inclusion in a dll (and should export symbols for example).
13114 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13117 hpux9* | hpux10* | hpux11*)
13118 lt_prog_compiler_wl_F77='-Wl,'
13119 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13120 # not for PA HP-UX.
13121 case "$host_cpu" in
13126 lt_prog_compiler_pic_F77='+Z'
13129 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13130 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13133 irix5* | irix6* | nonstopux*)
13134 lt_prog_compiler_wl_F77='-Wl,'
13135 # PIC (with -KPIC) is the default.
13136 lt_prog_compiler_static_F77='-non_shared'
13140 lt_prog_compiler_pic_F77='-KPIC'
13141 lt_prog_compiler_static_F77='-Bstatic'
13147 lt_prog_compiler_wl_F77='-Wl,'
13148 lt_prog_compiler_pic_F77='-KPIC'
13149 lt_prog_compiler_static_F77='-static'
13152 lt_prog_compiler_wl_F77='-Wl,'
13153 # All Alpha code is PIC.
13154 lt_prog_compiler_static_F77='-non_shared'
13159 osf3* | osf4* | osf5*)
13160 lt_prog_compiler_wl_F77='-Wl,'
13161 # All OSF/1 code is PIC.
13162 lt_prog_compiler_static_F77='-non_shared'
13166 lt_prog_compiler_pic_F77='-Kpic'
13167 lt_prog_compiler_static_F77='-dn'
13171 lt_prog_compiler_wl_F77='-Wl,'
13172 lt_prog_compiler_pic_F77='-KPIC'
13173 lt_prog_compiler_static_F77='-Bstatic'
13177 lt_prog_compiler_wl_F77='-Qoption ld '
13178 lt_prog_compiler_pic_F77='-PIC'
13179 lt_prog_compiler_static_F77='-Bstatic'
13182 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13183 lt_prog_compiler_wl_F77='-Wl,'
13184 lt_prog_compiler_pic_F77='-KPIC'
13185 lt_prog_compiler_static_F77='-Bstatic'
13189 if test -d /usr/nec ;then
13190 lt_prog_compiler_pic_F77='-Kconform_pic'
13191 lt_prog_compiler_static_F77='-Bstatic'
13196 lt_prog_compiler_pic_F77='-pic'
13197 lt_prog_compiler_static_F77='-Bstatic'
13201 lt_prog_compiler_can_build_shared_F77=no
13206 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13207 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13210 # Check to make sure the PIC flag actually works.
13212 if test -n "$lt_prog_compiler_pic_F77"; then
13214 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13215 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13216 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 lt_prog_compiler_pic_works_F77=no
13220 ac_outfile=conftest.$ac_objext
13221 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13222 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13223 # Insert the option either (1) after the last *FLAGS variable, or
13224 # (2) before a word containing "conftest.", or (3) at the end.
13225 # Note that $ac_compile itself does not contain backslashes and begins
13226 # with a dollar sign (not a hyphen), so the echo should work correctly.
13227 # The option is referenced via a variable to avoid confusing sed.
13228 lt_compile=`echo "$ac_compile" | $SED \
13229 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13231 -e 's:$: $lt_compiler_flag:'`
13232 (eval echo "\"\$as_me:13232: $lt_compile\"" >&5)
13233 (eval "$lt_compile" 2>conftest.err)
13235 cat conftest.err >&5
13236 echo "$as_me:13236: \$? = $ac_status" >&5
13237 if (exit $ac_status) && test -s "$ac_outfile"; then
13238 # The compiler can only warn and ignore the option if not recognized
13239 # So say no if there are warnings
13240 if test ! -s conftest.err; then
13241 lt_prog_compiler_pic_works_F77=yes
13247 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13248 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13250 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13251 case $lt_prog_compiler_pic_F77 in
13253 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13256 lt_prog_compiler_pic_F77=
13257 lt_prog_compiler_can_build_shared_F77=no
13262 # For platforms which do not support PIC, -DPIC is meaningless:
13264 lt_prog_compiler_pic_F77=
13267 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13271 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13272 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13273 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13276 lt_cv_prog_compiler_c_o_F77=no
13277 $rm -r conftest 2>/dev/null
13281 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13283 lt_compiler_flag="-o out/conftest2.$ac_objext"
13284 # Insert the option either (1) after the last *FLAGS variable, or
13285 # (2) before a word containing "conftest.", or (3) at the end.
13286 # Note that $ac_compile itself does not contain backslashes and begins
13287 # with a dollar sign (not a hyphen), so the echo should work correctly.
13288 lt_compile=`echo "$ac_compile" | $SED \
13289 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13291 -e 's:$: $lt_compiler_flag:'`
13292 (eval echo "\"\$as_me:13292: $lt_compile\"" >&5)
13293 (eval "$lt_compile" 2>out/conftest.err)
13295 cat out/conftest.err >&5
13296 echo "$as_me:13296: \$? = $ac_status" >&5
13297 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13299 # The compiler can only warn and ignore the option if not recognized
13300 # So say no if there are warnings
13301 if test ! -s out/conftest.err; then
13302 lt_cv_prog_compiler_c_o_F77=yes
13307 # SGI C++ compiler will create directory out/ii_files/ for
13308 # template instantiation
13309 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13310 $rm out/* && rmdir out
13316 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13317 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13320 hard_links="nottested"
13321 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13322 # do not overwrite the value of need_locks provided by the user
13323 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13324 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13327 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13329 ln conftest.a conftest.b 2>&5 || hard_links=no
13330 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13331 echo "$as_me:$LINENO: result: $hard_links" >&5
13332 echo "${ECHO_T}$hard_links" >&6
13333 if test "$hard_links" = no; then
13334 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13335 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13342 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13343 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13346 allow_undefined_flag_F77=
13347 enable_shared_with_static_runtimes_F77=no
13349 archive_expsym_cmds_F77=
13350 old_archive_From_new_cmds_F77=
13351 old_archive_from_expsyms_cmds_F77=
13352 export_dynamic_flag_spec_F77=
13353 whole_archive_flag_spec_F77=
13354 thread_safe_flag_spec_F77=
13355 hardcode_libdir_flag_spec_F77=
13356 hardcode_libdir_flag_spec_ld_F77=
13357 hardcode_libdir_separator_F77=
13358 hardcode_direct_F77=no
13359 hardcode_minus_L_F77=no
13360 hardcode_shlibpath_var_F77=unsupported
13361 link_all_deplibs_F77=unknown
13362 hardcode_automatic_F77=no
13364 module_expsym_cmds_F77=
13365 always_export_symbols_F77=no
13366 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13367 # include_expsyms should be a list of space-separated symbols to be *always*
13368 # included in the symbol list
13369 include_expsyms_F77=
13370 # exclude_expsyms can be an extended regexp of symbols to exclude
13371 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13372 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13373 # as well as any symbol that contains `d'.
13374 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13375 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13376 # platforms (ab)use it in PIC code, but their linkers get confused if
13377 # the symbol is explicitly referenced. Since portable code cannot
13378 # rely on this symbol name, it's probably fine to never include it in
13379 # preloaded symbol tables.
13380 extract_expsyms_cmds=
13383 cygwin* | mingw* | pw32*)
13384 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13385 # When not using gcc, we currently assume that we are using
13386 # Microsoft Visual C++.
13387 if test "$GCC" != yes; then
13397 if test "$with_gnu_ld" = yes; then
13398 # If archive_cmds runs LD, not CC, wlarc should be empty
13401 # See if GNU ld supports shared libraries.
13403 aix3* | aix4* | aix5*)
13404 # On AIX/PPC, the GNU linker is very broken
13405 if test "$host_cpu" != ia64; then
13409 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13410 *** to be unable to reliably create shared libraries on AIX.
13411 *** Therefore, libtool is disabling shared libraries support. If you
13412 *** really care for shared libraries, you may want to modify your PATH
13413 *** so that a non-GNU linker is found, and then restart.
13420 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)'
13421 hardcode_libdir_flag_spec_F77='-L$libdir'
13422 hardcode_minus_L_F77=yes
13424 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13425 # that the semantics of dynamic libraries on AmigaOS, at least up
13426 # to version 4, is to share data among multiple programs linked
13427 # with the same dynamic library. Since this doesn't match the
13428 # behavior of shared libraries on other platforms, we can't use
13434 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13435 allow_undefined_flag_F77=unsupported
13436 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13437 # support --undefined. This deserves some investigation. FIXME
13438 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13444 cygwin* | mingw* | pw32*)
13445 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13446 # as there is no search path for DLLs.
13447 hardcode_libdir_flag_spec_F77='-L$libdir'
13448 allow_undefined_flag_F77=unsupported
13449 always_export_symbols_F77=no
13450 enable_shared_with_static_runtimes_F77=yes
13451 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13453 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13454 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13455 # If the export-symbols file already is a .def file (1st line
13456 # is EXPORTS), use it as is; otherwise, prepend...
13457 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13458 cp $export_symbols $output_objdir/$soname.def;
13460 echo EXPORTS > $output_objdir/$soname.def;
13461 cat $export_symbols >> $output_objdir/$soname.def;
13462 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13469 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13470 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13473 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13474 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13479 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13483 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13484 *** create shared libraries on Solaris systems. Therefore, libtool
13485 *** is disabling shared libraries support. We urge you to upgrade GNU
13486 *** binutils to release 2.9.1 or newer. Another option is to modify
13487 *** your PATH or compiler configuration so that the native linker is
13488 *** used, and then restart.
13491 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13492 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13493 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13500 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13502 hardcode_direct_F77=yes
13503 hardcode_shlibpath_var_F77=no
13507 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13508 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13509 archive_cmds_F77="$tmp_archive_cmds"
13510 supports_anon_versioning=no
13511 case `$LD -v 2>/dev/null` in
13512 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13513 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13514 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13515 *\ 2.11.*) ;; # other 2.11 versions
13516 *) supports_anon_versioning=yes ;;
13518 if test $supports_anon_versioning = yes; then
13519 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
13520 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13522 archive_expsym_cmds_F77="$tmp_archive_cmds"
13530 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13531 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13532 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13539 if test "$ld_shlibs_F77" = yes; then
13540 runpath_var=LD_RUN_PATH
13541 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13542 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13543 # ancient GNU ld didn't support --whole-archive et. al.
13544 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13545 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13547 whole_archive_flag_spec_F77=
13551 # PORTME fill in a description of your system's linker (not GNU ld)
13554 allow_undefined_flag_F77=unsupported
13555 always_export_symbols_F77=yes
13556 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'
13557 # Note: this linker hardcodes the directories in LIBPATH if there
13558 # are no directories specified by -L.
13559 hardcode_minus_L_F77=yes
13560 if test "$GCC" = yes && test -z "$link_static_flag"; then
13561 # Neither direct hardcoding nor static linking is supported with a
13563 hardcode_direct_F77=unsupported
13568 if test "$host_cpu" = ia64; then
13569 # On IA64, the linker does run time linking by default, so we don't
13570 # have to do anything special.
13571 aix_use_runtimelinking=no
13572 exp_sym_flag='-Bexport'
13575 # If we're using GNU nm, then we don't want the "-C" option.
13576 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13577 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13578 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'
13580 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'
13582 aix_use_runtimelinking=no
13584 # Test if we are trying to use run time linking or normal
13585 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13586 # need to do runtime linking.
13587 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13588 for ld_flag in $LDFLAGS; do
13589 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13590 aix_use_runtimelinking=yes
13596 exp_sym_flag='-bexport'
13597 no_entry_flag='-bnoentry'
13600 # When large executables or shared objects are built, AIX ld can
13601 # have problems creating the table of contents. If linking a library
13602 # or program results in "error TOC overflow" add -mminimal-toc to
13603 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13604 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13606 archive_cmds_F77=''
13607 hardcode_direct_F77=yes
13608 hardcode_libdir_separator_F77=':'
13609 link_all_deplibs_F77=yes
13611 if test "$GCC" = yes; then
13612 case $host_os in aix4.012|aix4.012.*)
13613 # We only want to do this on AIX 4.2 and lower, the check
13614 # below for broken collect2 doesn't work under 4.3+
13615 collect2name=`${CC} -print-prog-name=collect2`
13616 if test -f "$collect2name" && \
13617 strings "$collect2name" | grep resolve_lib_name >/dev/null
13619 # We have reworked collect2
13620 hardcode_direct_F77=yes
13622 # We have old collect2
13623 hardcode_direct_F77=unsupported
13624 # It fails to find uninstalled libraries when the uninstalled
13625 # path is not listed in the libpath. Setting hardcode_minus_L
13626 # to unsupported forces relinking
13627 hardcode_minus_L_F77=yes
13628 hardcode_libdir_flag_spec_F77='-L$libdir'
13629 hardcode_libdir_separator_F77=
13632 shared_flag='-shared'
13635 if test "$host_cpu" = ia64; then
13636 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13637 # chokes on -Wl,-G. The following line is correct:
13640 if test "$aix_use_runtimelinking" = yes; then
13641 shared_flag='${wl}-G'
13643 shared_flag='${wl}-bM:SRE'
13648 # It seems that -bexpall does not export symbols beginning with
13649 # underscore (_), so it is better to generate a list of symbols to export.
13650 always_export_symbols_F77=yes
13651 if test "$aix_use_runtimelinking" = yes; then
13652 # Warning - without using the other runtime loading flags (-brtl),
13653 # -berok will link without error, but may produce a broken library.
13654 allow_undefined_flag_F77='-berok'
13655 # Determine the default libpath from the value encoded in an empty executable.
13656 cat >conftest.$ac_ext <<_ACEOF
13661 rm -f conftest.$ac_objext conftest$ac_exeext
13662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13663 (eval $ac_link) 2>conftest.er1
13665 grep -v '^ *+' conftest.er1 >conftest.err
13667 cat conftest.err >&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
13670 { ac_try='test -z "$ac_f77_werror_flag"
13671 || test ! -s conftest.err'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; } &&
13677 { ac_try='test -s conftest$ac_exeext'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; }; then
13684 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13686 # Check for a 64-bit object if we didn't find anything.
13687 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; }
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13694 rm -f conftest.err conftest.$ac_objext \
13695 conftest$ac_exeext conftest.$ac_ext
13696 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13698 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13699 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13701 if test "$host_cpu" = ia64; then
13702 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13703 allow_undefined_flag_F77="-z nodefs"
13704 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13706 # Determine the default libpath from the value encoded in an empty executable.
13707 cat >conftest.$ac_ext <<_ACEOF
13712 rm -f conftest.$ac_objext conftest$ac_exeext
13713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13714 (eval $ac_link) 2>conftest.er1
13716 grep -v '^ *+' conftest.er1 >conftest.err
13718 cat conftest.err >&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } &&
13721 { ac_try='test -z "$ac_f77_werror_flag"
13722 || test ! -s conftest.err'
13723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724 (eval $ac_try) 2>&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; } &&
13728 { ac_try='test -s conftest$ac_exeext'
13729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730 (eval $ac_try) 2>&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; }; then
13735 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13737 # Check for a 64-bit object if we didn't find anything.
13738 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; }
13741 echo "$as_me: failed program was:" >&5
13742 sed 's/^/| /' conftest.$ac_ext >&5
13745 rm -f conftest.err conftest.$ac_objext \
13746 conftest$ac_exeext conftest.$ac_ext
13747 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13749 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13750 # Warning - without using the other run time loading flags,
13751 # -berok will link without error, but may produce a broken library.
13752 no_undefined_flag_F77=' ${wl}-bernotok'
13753 allow_undefined_flag_F77=' ${wl}-berok'
13754 # -bexpall does not export symbols beginning with underscore (_)
13755 always_export_symbols_F77=yes
13756 # Exported symbols can be pulled into shared objects from archives
13757 whole_archive_flag_spec_F77=' '
13758 archive_cmds_need_lc_F77=yes
13759 # This is similar to how AIX traditionally builds it's shared libraries.
13760 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag};$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13766 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)'
13767 hardcode_libdir_flag_spec_F77='-L$libdir'
13768 hardcode_minus_L_F77=yes
13769 # see comment about different semantics on the GNU ld section
13774 export_dynamic_flag_spec_F77=-rdynamic
13777 cygwin* | mingw* | pw32*)
13778 # When not using gcc, we currently assume that we are using
13779 # Microsoft Visual C++.
13780 # hardcode_libdir_flag_spec is actually meaningless, as there is
13781 # no search path for DLLs.
13782 hardcode_libdir_flag_spec_F77=' '
13783 allow_undefined_flag_F77=unsupported
13784 # Tell ltmain to make .lib files, not .a files.
13786 # Tell ltmain to make .dll files, not .so files.
13788 # FIXME: Setting linknames here is a bad hack.
13789 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
13790 # The linker will automatically build a .lib file if we build a DLL.
13791 old_archive_From_new_cmds_F77='true'
13792 # FIXME: Should let the user specify the lib program.
13793 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13794 fix_srcfile_path='`cygpath -w "$srcfile"`'
13795 enable_shared_with_static_runtimes_F77=yes
13798 darwin* | rhapsody*)
13800 rhapsody* | darwin1.[012])
13801 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13804 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13805 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13807 case ${MACOSX_DEPLOYMENT_TARGET} in
13809 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13812 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13818 archive_cmds_need_lc_F77=no
13819 hardcode_direct_F77=no
13820 hardcode_automatic_F77=yes
13821 hardcode_shlibpath_var_F77=unsupported
13822 whole_archive_flag_spec_F77=''
13823 link_all_deplibs_F77=yes
13824 if test "$GCC" = yes ; then
13825 output_verbose_link_cmd='echo'
13826 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13827 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13828 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13829 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}'
13830 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}'
13832 case "$cc_basename" in
13834 output_verbose_link_cmd='echo'
13835 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13836 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13837 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13838 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}'
13839 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}'
13849 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13850 hardcode_libdir_flag_spec_F77='-L$libdir'
13851 hardcode_shlibpath_var_F77=no
13858 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13859 # support. Future versions do this automatically, but an explicit c++rt0.o
13860 # does not break anything, and helps significantly (at the cost of a little
13863 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13864 hardcode_libdir_flag_spec_F77='-R$libdir'
13865 hardcode_direct_F77=yes
13866 hardcode_shlibpath_var_F77=no
13869 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13871 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13872 hardcode_direct_F77=yes
13873 hardcode_minus_L_F77=yes
13874 hardcode_shlibpath_var_F77=no
13877 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13878 freebsd* | kfreebsd*-gnu)
13879 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13880 hardcode_libdir_flag_spec_F77='-R$libdir'
13881 hardcode_direct_F77=yes
13882 hardcode_shlibpath_var_F77=no
13886 if test "$GCC" = yes; then
13887 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'
13889 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'
13891 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13892 hardcode_libdir_separator_F77=:
13893 hardcode_direct_F77=yes
13895 # hardcode_minus_L: Not really in the search PATH,
13896 # but as the default location of the library.
13897 hardcode_minus_L_F77=yes
13898 export_dynamic_flag_spec_F77='${wl}-E'
13902 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13903 case "$host_cpu" in
13905 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13908 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13912 case "$host_cpu" in
13914 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13917 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13921 if test "$with_gnu_ld" = no; then
13922 case "$host_cpu" in
13924 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13925 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13926 hardcode_libdir_separator_F77=:
13927 hardcode_direct_F77=no
13928 hardcode_shlibpath_var_F77=no
13931 hardcode_libdir_flag_spec_F77='-L$libdir'
13932 hardcode_direct_F77=no
13933 hardcode_shlibpath_var_F77=no
13935 # hardcode_minus_L: Not really in the search PATH,
13936 # but as the default location of the library.
13937 hardcode_minus_L_F77=yes
13940 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13941 hardcode_libdir_separator_F77=:
13942 hardcode_direct_F77=yes
13943 export_dynamic_flag_spec_F77='${wl}-E'
13945 # hardcode_minus_L: Not really in the search PATH,
13946 # but as the default location of the library.
13947 hardcode_minus_L_F77=yes
13953 irix5* | irix6* | nonstopux*)
13954 if test "$GCC" = yes; then
13955 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'
13957 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'
13958 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13960 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13961 hardcode_libdir_separator_F77=:
13962 link_all_deplibs_F77=yes
13966 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13967 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13969 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13971 hardcode_libdir_flag_spec_F77='-R$libdir'
13972 hardcode_direct_F77=yes
13973 hardcode_shlibpath_var_F77=no
13977 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13978 hardcode_direct_F77=yes
13979 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13980 hardcode_libdir_separator_F77=:
13981 hardcode_shlibpath_var_F77=no
13985 hardcode_direct_F77=yes
13986 hardcode_shlibpath_var_F77=no
13987 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13988 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13989 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13990 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13991 export_dynamic_flag_spec_F77='${wl}-E'
13994 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13995 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13996 hardcode_libdir_flag_spec_F77='-R$libdir'
13999 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14000 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14007 hardcode_libdir_flag_spec_F77='-L$libdir'
14008 hardcode_minus_L_F77=yes
14009 allow_undefined_flag_F77=unsupported
14010 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'
14011 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14015 if test "$GCC" = yes; then
14016 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14017 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'
14019 allow_undefined_flag_F77=' -expect_unresolved \*'
14020 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'
14022 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14023 hardcode_libdir_separator_F77=:
14026 osf4* | osf5*) # as osf3* with the addition of -msym flag
14027 if test "$GCC" = yes; then
14028 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14029 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'
14030 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14032 allow_undefined_flag_F77=' -expect_unresolved \*'
14033 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'
14034 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; $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib;$rm $lib.exp'
14035 # Both c and cxx compiler support -rpath directly
14036 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14038 hardcode_libdir_separator_F77=:
14042 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14043 hardcode_shlibpath_var_F77=no
14044 export_dynamic_flag_spec_F77='${wl}-Bexport'
14045 runpath_var=LD_RUN_PATH
14046 hardcode_runpath_var=yes
14050 no_undefined_flag_F77=' -z text'
14051 if test "$GCC" = yes; then
14052 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14053 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
14055 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14056 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
14058 hardcode_libdir_flag_spec_F77='-R$libdir'
14059 hardcode_shlibpath_var_F77=no
14061 solaris2.[0-5] | solaris2.[0-5].*) ;;
14062 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14063 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14065 link_all_deplibs_F77=yes
14069 if test "x$host_vendor" = xsequent; then
14070 # Use $CC to link under sequent, because it throws in some extra .o
14071 # files that make .init and .fini sections work.
14072 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14074 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14076 hardcode_libdir_flag_spec_F77='-L$libdir'
14077 hardcode_direct_F77=yes
14078 hardcode_minus_L_F77=yes
14079 hardcode_shlibpath_var_F77=no
14083 case $host_vendor in
14085 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14086 hardcode_direct_F77=yes # is this really true???
14089 ## LD is ld it makes a PLAMLIB
14090 ## CC just makes a GrossModule.
14091 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14092 reload_cmds_F77='$CC -r -o $output$reload_objs'
14093 hardcode_direct_F77=no
14096 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14097 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14100 runpath_var='LD_RUN_PATH'
14101 hardcode_shlibpath_var_F77=no
14105 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14106 hardcode_shlibpath_var_F77=no
14107 export_dynamic_flag_spec_F77='-Bexport'
14111 if test -d /usr/nec; then
14112 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14113 hardcode_shlibpath_var_F77=no
14114 runpath_var=LD_RUN_PATH
14115 hardcode_runpath_var=yes
14121 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14122 hardcode_direct_F77=yes
14123 hardcode_minus_L_F77=no
14124 hardcode_shlibpath_var_F77=no
14125 hardcode_runpath_var=yes
14126 runpath_var=LD_RUN_PATH
14129 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14130 no_undefined_flag_F77='${wl}-z ${wl}text'
14131 if test "$GCC" = yes; then
14132 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14134 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14136 runpath_var='LD_RUN_PATH'
14137 hardcode_shlibpath_var_F77=no
14141 no_undefined_flag_F77=' -z text'
14142 # $CC -shared without GNU ld will not create a library from C++
14143 # object files and a static libstdc++, better avoid it by now
14144 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14145 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
14146 hardcode_libdir_flag_spec_F77=
14147 hardcode_shlibpath_var_F77=no
14148 runpath_var='LD_RUN_PATH'
14152 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14153 hardcode_libdir_flag_spec_F77='-L$libdir'
14154 hardcode_shlibpath_var_F77=no
14163 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14164 echo "${ECHO_T}$ld_shlibs_F77" >&6
14165 test "$ld_shlibs_F77" = no && can_build_shared=no
14167 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14168 if test "$GCC" = yes; then
14169 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14173 # Do we need to explicitly link libc?
14175 case "x$archive_cmds_need_lc_F77" in
14177 # Assume -lc should be added
14178 archive_cmds_need_lc_F77=yes
14180 if test "$enable_shared" = yes && test "$GCC" = yes; then
14181 case $archive_cmds_F77 in
14183 # FIXME: we may have to deal with multi-command sequences.
14186 # Test whether the compiler implicitly links with -lc since on some
14187 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14188 # to ld, don't add -lc before -lgcc.
14189 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14190 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14192 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195 (eval $ac_compile) 2>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } 2>conftest.err; then
14201 libobjs=conftest.$ac_objext
14203 wl=$lt_prog_compiler_wl_F77
14209 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14210 allow_undefined_flag_F77=
14211 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14212 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }
14217 archive_cmds_need_lc_F77=no
14219 archive_cmds_need_lc_F77=yes
14221 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14223 cat conftest.err 1>&5
14226 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14227 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14234 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14235 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14236 library_names_spec=
14237 libname_spec='lib$name'
14241 postuninstall_cmds=
14245 shlibpath_overrides_runpath=unknown
14247 dynamic_linker="$host_os ld.so"
14248 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14249 if test "$GCC" = yes; then
14250 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14251 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14252 # if the path contains ";" then we assume it to be the separator
14253 # otherwise default to the standard path separator (i.e. ":") - it is
14254 # assumed that no part of a normal pathname contains ";" but that should
14255 # okay in the real world where ";" in dirpaths is itself problematic.
14256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14261 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14263 need_lib_prefix=unknown
14264 hardcode_into_libs=no
14266 # when you set need_version to no, make sure it does not cause -set_version
14267 # flags to be left without arguments
14268 need_version=unknown
14273 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14274 shlibpath_var=LIBPATH
14276 # AIX 3 has no versioning support, so we append a major version to the name.
14277 soname_spec='${libname}${release}${shared_ext}$major'
14284 hardcode_into_libs=yes
14285 if test "$host_cpu" = ia64; then
14286 # AIX 5 supports IA64
14287 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14288 shlibpath_var=LD_LIBRARY_PATH
14290 # With GCC up to 2.95.x, collect2 would create an import file
14291 # for dependence libraries. The import file would start with
14292 # the line `#! .'. This would cause the generated library to
14293 # depend on `.', always an invalid library. This was fixed in
14294 # development snapshots of GCC prior to 3.0.
14296 aix4 | aix4.[01] | aix4.[01].*)
14297 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14299 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14302 can_build_shared=no
14306 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14307 # soname into executable. Probably we can add versioning support to
14308 # collect2, so additional links can be useful in future.
14309 if test "$aix_use_runtimelinking" = yes; then
14310 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14311 # instead of lib<name>.a to let people know that these are not
14312 # typical AIX shared libraries.
14313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14315 # We preserve .a as extension for shared libraries through AIX4.2
14316 # and later when we are not doing run time linking.
14317 library_names_spec='${libname}${release}.a $libname.a'
14318 soname_spec='${libname}${release}${shared_ext}$major'
14320 shlibpath_var=LIBPATH
14325 library_names_spec='$libname.ixlibrary $libname.a'
14326 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14327 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'
14331 library_names_spec='${libname}${shared_ext}'
14332 dynamic_linker="$host_os ld.so"
14333 shlibpath_var=LIBRARY_PATH
14339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14340 soname_spec='${libname}${release}${shared_ext}$major'
14341 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14342 shlibpath_var=LD_LIBRARY_PATH
14343 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14344 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14345 # the default ld.so.conf also contains /usr/contrib/lib and
14346 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14347 # libtool to hard-code these into programs
14350 cygwin* | mingw* | pw32*)
14351 version_type=windows
14356 case $GCC,$host_os in
14357 yes,cygwin* | yes,mingw* | yes,pw32*)
14358 library_names_spec='$libname.dll.a'
14359 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14360 postinstall_cmds='base_file=`basename \${file}`;
14361 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
14362 dldir=$destdir/`dirname \$dlpath`;
14363 test -d \$dldir || mkdir -p \$dldir;
14364 $install_prog $dir/$dlname \$dldir/$dlname'
14365 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
14366 dlpath=$dir/\$dldll;
14368 shlibpath_overrides_runpath=yes
14372 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14373 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14374 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14377 # MinGW DLLs use traditional 'lib' prefix
14378 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14379 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14380 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14381 # It is most probably a Windows format PATH printed by
14382 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14383 # path with ; separators, and with drive letters. We can handle the
14384 # drive letters (cygwin fileutils understands them), so leave them,
14385 # especially as we might pass files found there to a mingw objdump,
14386 # which wouldn't understand a cygwinified path. Ahh.
14387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14393 # pw32 DLLs use 'pw' prefix rather than 'lib'
14394 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14400 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14403 dynamic_linker='Win32 ld.exe'
14404 # FIXME: first we should search . and the directory the executable is in
14408 darwin* | rhapsody*)
14409 dynamic_linker="$host_os dyld"
14410 version_type=darwin
14413 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14414 soname_spec='${libname}${release}${major}$shared_ext'
14415 shlibpath_overrides_runpath=yes
14416 shlibpath_var=DYLD_LIBRARY_PATH
14417 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14418 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14419 if test "$GCC" = yes; then
14420 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"`
14422 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14424 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14432 soname_spec='${libname}${release}${shared_ext}$major'
14433 shlibpath_var=LD_LIBRARY_PATH
14444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14445 soname_spec='${libname}${release}${shared_ext}$major'
14446 shlibpath_var=LD_LIBRARY_PATH
14447 shlibpath_overrides_runpath=no
14448 hardcode_into_libs=yes
14449 dynamic_linker='GNU ld.so'
14453 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14454 version_type=freebsd-$objformat
14455 case $version_type in
14457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14462 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14466 shlibpath_var=LD_LIBRARY_PATH
14469 shlibpath_overrides_runpath=yes
14471 freebsd3.01* | freebsdelf3.01*)
14472 shlibpath_overrides_runpath=yes
14473 hardcode_into_libs=yes
14476 shlibpath_overrides_runpath=no
14477 hardcode_into_libs=yes
14486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14487 soname_spec='${libname}${release}${shared_ext}$major'
14488 shlibpath_var=LD_LIBRARY_PATH
14489 hardcode_into_libs=yes
14492 hpux9* | hpux10* | hpux11*)
14493 # Give a soname corresponding to the major version so that dld.sl refuses to
14494 # link against other versions.
14498 case "$host_cpu" in
14501 hardcode_into_libs=yes
14502 dynamic_linker="$host_os dld.so"
14503 shlibpath_var=LD_LIBRARY_PATH
14504 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14506 soname_spec='${libname}${release}${shared_ext}$major'
14507 if test "X$HPUX_IA64_MODE" = X32; then
14508 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14510 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14512 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14516 hardcode_into_libs=yes
14517 dynamic_linker="$host_os dld.sl"
14518 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14519 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14521 soname_spec='${libname}${release}${shared_ext}$major'
14522 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14523 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14527 dynamic_linker="$host_os dld.sl"
14528 shlibpath_var=SHLIB_PATH
14529 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14531 soname_spec='${libname}${release}${shared_ext}$major'
14534 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14535 postinstall_cmds='chmod 555 $lib'
14538 irix5* | irix6* | nonstopux*)
14540 nonstopux*) version_type=nonstopux ;;
14542 if test "$lt_cv_prog_gnu_ld" = yes; then
14550 soname_spec='${libname}${release}${shared_ext}$major'
14551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14553 irix5* | nonstopux*)
14554 libsuff= shlibsuff=
14557 case $LD in # libtool.m4 will add one of these switches to LD
14558 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14559 libsuff= shlibsuff= libmagic=32-bit;;
14560 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14561 libsuff=32 shlibsuff=N32 libmagic=N32;;
14562 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14563 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14564 *) libsuff= shlibsuff= libmagic=never-match;;
14568 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14569 shlibpath_overrides_runpath=no
14570 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14571 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14572 hardcode_into_libs=yes
14575 # No shared lib support for Linux oldld, aout, or coff.
14576 linux*oldld* | linux*aout* | linux*coff*)
14580 # This must be Linux ELF.
14585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14586 soname_spec='${libname}${release}${shared_ext}$major'
14587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14588 shlibpath_var=LD_LIBRARY_PATH
14589 shlibpath_overrides_runpath=no
14590 # This implies no fast_install, which is unacceptable.
14591 # Some rework will be needed to allow for fast_install
14592 # before this can be enabled.
14593 hardcode_into_libs=yes
14595 # Append ld.so.conf contents to the search path
14596 if test -f /etc/ld.so.conf; then
14597 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14598 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14601 # We used to test for /lib/ld.so.1 and disable shared libraries on
14602 # powerpc, because MkLinux only supported shared libraries with the
14603 # GNU dynamic linker. Since this was broken with cross compilers,
14604 # most powerpc-linux boxes support dynamic linking these days and
14605 # people can always --disable-shared, the test was removed, and we
14606 # assume the GNU/Linux dynamic linker is in use.
14607 dynamic_linker='GNU/Linux ld.so'
14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14615 soname_spec='${libname}${release}${shared_ext}$major'
14616 shlibpath_var=LD_LIBRARY_PATH
14617 shlibpath_overrides_runpath=no
14618 hardcode_into_libs=yes
14619 dynamic_linker='GNU ld.so'
14626 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14629 dynamic_linker='NetBSD (a.out) ld.so'
14631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14632 soname_spec='${libname}${release}${shared_ext}$major'
14633 dynamic_linker='NetBSD ld.elf_so'
14635 shlibpath_var=LD_LIBRARY_PATH
14636 shlibpath_overrides_runpath=yes
14637 hardcode_into_libs=yes
14642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14643 shlibpath_var=LD_LIBRARY_PATH
14644 shlibpath_overrides_runpath=yes
14651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14652 soname_spec='${libname}${release}${shared_ext}$major'
14653 shlibpath_var=LD_LIBRARY_PATH
14654 shlibpath_overrides_runpath=yes
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14663 shlibpath_var=LD_LIBRARY_PATH
14664 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14666 openbsd2.[89] | openbsd2.[89].*)
14667 shlibpath_overrides_runpath=no
14670 shlibpath_overrides_runpath=yes
14674 shlibpath_overrides_runpath=yes
14679 libname_spec='$name'
14682 library_names_spec='$libname${shared_ext} $libname.a'
14683 dynamic_linker='OS/2 ld.exe'
14684 shlibpath_var=LIBPATH
14687 osf3* | osf4* | osf5*)
14691 soname_spec='${libname}${release}${shared_ext}$major'
14692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14693 shlibpath_var=LD_LIBRARY_PATH
14694 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14695 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14700 soname_spec='${libname}${release}${shared_ext}$major'
14701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14702 shlibpath_var=LD_LIBRARY_PATH
14709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14710 soname_spec='${libname}${release}${shared_ext}$major'
14711 shlibpath_var=LD_LIBRARY_PATH
14712 shlibpath_overrides_runpath=yes
14713 hardcode_into_libs=yes
14714 # ldd complains unless libraries are executable
14715 postinstall_cmds='chmod +x $lib'
14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14721 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14722 shlibpath_var=LD_LIBRARY_PATH
14723 shlibpath_overrides_runpath=yes
14724 if test "$with_gnu_ld" = yes; then
14730 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14733 soname_spec='${libname}${release}${shared_ext}$major'
14734 shlibpath_var=LD_LIBRARY_PATH
14735 case $host_vendor in
14737 shlibpath_overrides_runpath=no
14739 export_dynamic_flag_spec='${wl}-Blargedynsym'
14740 runpath_var=LD_RUN_PATH
14748 shlibpath_overrides_runpath=no
14749 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14755 if test -d /usr/nec ;then
14757 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14758 soname_spec='$libname${shared_ext}.$major'
14759 shlibpath_var=LD_LIBRARY_PATH
14765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14766 soname_spec='${libname}${release}${shared_ext}$major'
14767 shlibpath_var=LD_LIBRARY_PATH
14774 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14775 echo "${ECHO_T}$dynamic_linker" >&6
14776 test "$dynamic_linker" = no && can_build_shared=no
14778 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14779 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14780 hardcode_action_F77=
14781 if test -n "$hardcode_libdir_flag_spec_F77" || \
14782 test -n "$runpath_var_F77" || \
14783 test "X$hardcode_automatic_F77" = "Xyes" ; then
14785 # We can hardcode non-existant directories.
14786 if test "$hardcode_direct_F77" != no &&
14787 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14788 # have to relink, otherwise we might link with an installed library
14789 # when we should be linking with a yet-to-be-installed one
14790 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14791 test "$hardcode_minus_L_F77" != no; then
14792 # Linking always hardcodes the temporary library directory.
14793 hardcode_action_F77=relink
14795 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14796 hardcode_action_F77=immediate
14799 # We cannot hardcode anything, or else we can only hardcode existing
14801 hardcode_action_F77=unsupported
14803 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14804 echo "${ECHO_T}$hardcode_action_F77" >&6
14806 if test "$hardcode_action_F77" = relink; then
14807 # Fast installation is not supported
14808 enable_fast_install=no
14809 elif test "$shlibpath_overrides_runpath" = yes ||
14810 test "$enable_shared" = no; then
14811 # Fast installation is not necessary
14812 enable_fast_install=needless
14817 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14818 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14819 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14820 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14821 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14822 echo "$as_me:$LINENO: result: yes" >&5
14823 echo "${ECHO_T}yes" >&6
14825 # FIXME - insert some real tests, host_os isn't really good enough
14828 if test -n "$STRIP" ; then
14829 striplib="$STRIP -x"
14830 echo "$as_me:$LINENO: result: yes" >&5
14831 echo "${ECHO_T}yes" >&6
14833 echo "$as_me:$LINENO: result: no" >&5
14834 echo "${ECHO_T}no" >&6
14838 echo "$as_me:$LINENO: result: no" >&5
14839 echo "${ECHO_T}no" >&6
14846 # The else clause should only fire when bootstrapping the
14847 # libtool distribution, otherwise you forgot to ship ltmain.sh
14848 # with your package, and you will get complaints that there are
14849 # no rules to generate ltmain.sh.
14850 if test -f "$ltmain"; then
14851 # See if we are running on zsh, and set the options which allow our commands through
14852 # without removal of \ escapes.
14853 if test -n "${ZSH_VERSION+set}" ; then
14854 setopt NO_GLOB_SUBST
14856 # Now quote all the things that may contain metacharacters while being
14857 # careful not to overquote the AC_SUBSTed values. We take copies of the
14858 # variables and quote the copies for generation of the libtool script.
14859 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14861 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14862 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14863 deplibs_check_method reload_flag reload_cmds need_locks \
14864 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14865 lt_cv_sys_global_symbol_to_c_name_address \
14866 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14867 old_postinstall_cmds old_postuninstall_cmds \
14871 lt_prog_compiler_wl_F77 \
14872 lt_prog_compiler_pic_F77 \
14873 lt_prog_compiler_static_F77 \
14874 lt_prog_compiler_no_builtin_flag_F77 \
14875 export_dynamic_flag_spec_F77 \
14876 thread_safe_flag_spec_F77 \
14877 whole_archive_flag_spec_F77 \
14878 enable_shared_with_static_runtimes_F77 \
14879 old_archive_cmds_F77 \
14880 old_archive_from_new_cmds_F77 \
14881 predep_objects_F77 \
14882 postdep_objects_F77 \
14885 compiler_lib_search_path_F77 \
14887 archive_expsym_cmds_F77 \
14888 postinstall_cmds_F77 \
14889 postuninstall_cmds_F77 \
14890 old_archive_from_expsyms_cmds_F77 \
14891 allow_undefined_flag_F77 \
14892 no_undefined_flag_F77 \
14893 export_symbols_cmds_F77 \
14894 hardcode_libdir_flag_spec_F77 \
14895 hardcode_libdir_flag_spec_ld_F77 \
14896 hardcode_libdir_separator_F77 \
14897 hardcode_automatic_F77 \
14899 module_expsym_cmds_F77 \
14900 lt_cv_prog_compiler_c_o_F77 \
14901 exclude_expsyms_F77 \
14902 include_expsyms_F77; do
14905 old_archive_cmds_F77 | \
14906 old_archive_from_new_cmds_F77 | \
14907 archive_cmds_F77 | \
14908 archive_expsym_cmds_F77 | \
14909 module_cmds_F77 | \
14910 module_expsym_cmds_F77 | \
14911 old_archive_from_expsyms_cmds_F77 | \
14912 export_symbols_cmds_F77 | \
14913 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14914 postinstall_cmds | postuninstall_cmds | \
14915 old_postinstall_cmds | old_postuninstall_cmds | \
14916 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14917 # Double-quote double-evaled strings.
14918 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14921 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14927 *'\$0 --fallback-echo"')
14928 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14934 cat <<__EOF__ >> "$cfgfile"
14935 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14937 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14939 # Shell to use when invoking shell scripts.
14942 # Whether or not to build shared libraries.
14943 build_libtool_libs=$enable_shared
14945 # Whether or not to build static libraries.
14946 build_old_libs=$enable_static
14948 # Whether or not to add -lc for building shared libraries.
14949 build_libtool_need_lc=$archive_cmds_need_lc_F77
14951 # Whether or not to disallow shared libs when runtime libs are static
14952 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14954 # Whether or not to optimize for fast installation.
14955 fast_install=$enable_fast_install
14958 host_alias=$host_alias
14961 # An echo program that does not interpret backslashes.
14966 AR_FLAGS=$lt_AR_FLAGS
14971 # A language-specific compiler.
14972 CC=$lt_compiler_F77
14974 # Is the compiler the GNU C compiler?
14980 # The linker used to build libraries.
14983 # Whether we need hard or soft links.
14986 # A BSD-compatible nm program.
14989 # A symbol stripping program
14992 # Used to examine libraries when file_magic_cmd begins "file"
14993 MAGIC_CMD=$MAGIC_CMD
14995 # Used on cygwin: DLL creation program.
14998 # Used on cygwin: object dumper.
15001 # Used on cygwin: assembler.
15004 # The name of the directory that contains temporary libtool files.
15007 # How to create reloadable object files.
15008 reload_flag=$lt_reload_flag
15009 reload_cmds=$lt_reload_cmds
15011 # How to pass a linker flag through the compiler.
15012 wl=$lt_lt_prog_compiler_wl_F77
15014 # Object file suffix (normally "o").
15015 objext="$ac_objext"
15017 # Old archive suffix (normally "a").
15020 # Shared library suffix (normally ".so").
15021 shrext_cmds='$shrext_cmds'
15023 # Executable file suffix (normally "").
15026 # Additional compiler flags for building library objects.
15027 pic_flag=$lt_lt_prog_compiler_pic_F77
15030 # What is the maximum length of a command?
15031 max_cmd_len=$lt_cv_sys_max_cmd_len
15033 # Does compiler simultaneously support -c and -o options?
15034 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15036 # Must we lock files when doing compilation ?
15037 need_locks=$lt_need_locks
15039 # Do we need the lib prefix for modules?
15040 need_lib_prefix=$need_lib_prefix
15042 # Do we need a version for libraries?
15043 need_version=$need_version
15045 # Whether dlopen is supported.
15046 dlopen_support=$enable_dlopen
15048 # Whether dlopen of programs is supported.
15049 dlopen_self=$enable_dlopen_self
15051 # Whether dlopen of statically linked programs is supported.
15052 dlopen_self_static=$enable_dlopen_self_static
15054 # Compiler flag to prevent dynamic linking.
15055 link_static_flag=$lt_lt_prog_compiler_static_F77
15057 # Compiler flag to turn off builtin functions.
15058 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15060 # Compiler flag to allow reflexive dlopens.
15061 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15063 # Compiler flag to generate shared objects directly from archives.
15064 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15066 # Compiler flag to generate thread-safe objects.
15067 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15069 # Library versioning type.
15070 version_type=$version_type
15072 # Format of library name prefix.
15073 libname_spec=$lt_libname_spec
15075 # List of archive names. First name is the real one, the rest are links.
15076 # The last name is the one that the linker finds with -lNAME.
15077 library_names_spec=$lt_library_names_spec
15079 # The coded name of the library, if different from the real name.
15080 soname_spec=$lt_soname_spec
15082 # Commands used to build and install an old-style archive.
15084 old_archive_cmds=$lt_old_archive_cmds_F77
15085 old_postinstall_cmds=$lt_old_postinstall_cmds
15086 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15088 # Create an old-style archive from a shared archive.
15089 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15091 # Create a temporary old-style archive to link instead of a shared archive.
15092 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15094 # Commands used to build and install a shared archive.
15095 archive_cmds=$lt_archive_cmds_F77
15096 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15097 postinstall_cmds=$lt_postinstall_cmds
15098 postuninstall_cmds=$lt_postuninstall_cmds
15100 # Commands used to build a loadable module (assumed same as above if empty)
15101 module_cmds=$lt_module_cmds_F77
15102 module_expsym_cmds=$lt_module_expsym_cmds_F77
15104 # Commands to strip libraries.
15105 old_striplib=$lt_old_striplib
15106 striplib=$lt_striplib
15108 # Dependencies to place before the objects being linked to create a
15110 predep_objects=$lt_predep_objects_F77
15112 # Dependencies to place after the objects being linked to create a
15114 postdep_objects=$lt_postdep_objects_F77
15116 # Dependencies to place before the objects being linked to create a
15118 predeps=$lt_predeps_F77
15120 # Dependencies to place after the objects being linked to create a
15122 postdeps=$lt_postdeps_F77
15124 # The library search path used internally by the compiler when linking
15125 # a shared library.
15126 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15128 # Method to check whether dependent libraries are shared objects.
15129 deplibs_check_method=$lt_deplibs_check_method
15131 # Command to use when deplibs_check_method == file_magic.
15132 file_magic_cmd=$lt_file_magic_cmd
15134 # Flag that allows shared libraries with undefined symbols to be built.
15135 allow_undefined_flag=$lt_allow_undefined_flag_F77
15137 # Flag that forces no undefined symbols.
15138 no_undefined_flag=$lt_no_undefined_flag_F77
15140 # Commands used to finish a libtool library installation in a directory.
15141 finish_cmds=$lt_finish_cmds
15143 # Same as above, but a single script fragment to be evaled but not shown.
15144 finish_eval=$lt_finish_eval
15146 # Take the output of nm and produce a listing of raw symbols and C names.
15147 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15149 # Transform the output of nm in a proper C declaration
15150 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15152 # Transform the output of nm in a C name address pair
15153 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15155 # This is the shared library runtime path variable.
15156 runpath_var=$runpath_var
15158 # This is the shared library path variable.
15159 shlibpath_var=$shlibpath_var
15161 # Is shlibpath searched before the hard-coded library search path?
15162 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15164 # How to hardcode a shared library path into an executable.
15165 hardcode_action=$hardcode_action_F77
15167 # Whether we should hardcode library paths into libraries.
15168 hardcode_into_libs=$hardcode_into_libs
15170 # Flag to hardcode \$libdir into a binary during linking.
15171 # This must work even if \$libdir does not exist.
15172 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15174 # If ld is used when linking, flag to hardcode \$libdir into
15175 # a binary during linking. This must work even if \$libdir does
15177 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15179 # Whether we need a single -rpath flag with a separated argument.
15180 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15182 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15183 # resulting binary.
15184 hardcode_direct=$hardcode_direct_F77
15186 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15187 # resulting binary.
15188 hardcode_minus_L=$hardcode_minus_L_F77
15190 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15191 # the resulting binary.
15192 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15194 # Set to yes if building a shared library automatically hardcodes DIR into the library
15195 # and all subsequent libraries and executables linked against it.
15196 hardcode_automatic=$hardcode_automatic_F77
15198 # Variables whose values should be saved in libtool wrapper scripts and
15199 # restored at relink time.
15200 variables_saved_for_relink="$variables_saved_for_relink"
15202 # Whether libtool must link a program against all its dependency libraries.
15203 link_all_deplibs=$link_all_deplibs_F77
15205 # Compile-time system search path for libraries
15206 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15208 # Run-time system search path for libraries
15209 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15211 # Fix the shell variable \$srcfile for the compiler.
15212 fix_srcfile_path="$fix_srcfile_path_F77"
15214 # Set to yes if exported symbols are required.
15215 always_export_symbols=$always_export_symbols_F77
15217 # The commands to list exported symbols.
15218 export_symbols_cmds=$lt_export_symbols_cmds_F77
15220 # The commands to extract the exported symbol list from a shared archive.
15221 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15223 # Symbols that should not be listed in the preloaded symbols.
15224 exclude_expsyms=$lt_exclude_expsyms_F77
15226 # Symbols that must always be exported.
15227 include_expsyms=$lt_include_expsyms_F77
15229 # ### END LIBTOOL TAG CONFIG: $tagname
15235 # If there is no Makefile yet, we rely on a make rule to execute
15236 # `config.status --recheck' to rerun these tests and create the
15237 # libtool script then.
15238 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15239 if test -f "$ltmain_in"; then
15240 test -f Makefile && make "$ltmain"
15246 ac_cpp='$CPP $CPPFLAGS'
15247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15259 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15261 ac_cpp='$CPP $CPPFLAGS'
15262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15267 # Source file extension for Java test sources.
15270 # Object file extension for compiled Java test sources.
15274 # Code to be used in simple compile tests
15275 lt_simple_compile_test_code="class foo {}\n"
15277 # Code to be used in simple link tests
15278 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15280 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15282 # If no C compiler was specified, use CC.
15285 # Allow CC to be a program name with arguments.
15289 # Allow CC to be a program name with arguments.
15295 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15296 archive_cmds_need_lc_GCJ=no
15299 lt_prog_compiler_no_builtin_flag_GCJ=
15301 if test "$GCC" = yes; then
15302 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15305 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15306 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15307 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15308 echo $ECHO_N "(cached) $ECHO_C" >&6
15310 lt_cv_prog_compiler_rtti_exceptions=no
15311 ac_outfile=conftest.$ac_objext
15312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15313 lt_compiler_flag="-fno-rtti -fno-exceptions"
15314 # Insert the option either (1) after the last *FLAGS variable, or
15315 # (2) before a word containing "conftest.", or (3) at the end.
15316 # Note that $ac_compile itself does not contain backslashes and begins
15317 # with a dollar sign (not a hyphen), so the echo should work correctly.
15318 # The option is referenced via a variable to avoid confusing sed.
15319 lt_compile=`echo "$ac_compile" | $SED \
15320 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15322 -e 's:$: $lt_compiler_flag:'`
15323 (eval echo "\"\$as_me:15323: $lt_compile\"" >&5)
15324 (eval "$lt_compile" 2>conftest.err)
15326 cat conftest.err >&5
15327 echo "$as_me:15327: \$? = $ac_status" >&5
15328 if (exit $ac_status) && test -s "$ac_outfile"; then
15329 # The compiler can only warn and ignore the option if not recognized
15330 # So say no if there are warnings
15331 if test ! -s conftest.err; then
15332 lt_cv_prog_compiler_rtti_exceptions=yes
15338 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15339 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15341 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15342 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15349 lt_prog_compiler_wl_GCJ=
15350 lt_prog_compiler_pic_GCJ=
15351 lt_prog_compiler_static_GCJ=
15353 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15354 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15356 if test "$GCC" = yes; then
15357 lt_prog_compiler_wl_GCJ='-Wl,'
15358 lt_prog_compiler_static_GCJ='-static'
15362 # All AIX code is PIC.
15363 if test "$host_cpu" = ia64; then
15364 # AIX 5 now supports IA64 processor
15365 lt_prog_compiler_static_GCJ='-Bstatic'
15370 # FIXME: we need at least 68020 code to build shared libraries, but
15371 # adding the `-m68020' flag to GCC prevents building anything better,
15373 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15376 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15377 # PIC is the default for these OSes.
15380 mingw* | pw32* | os2*)
15381 # This hack is so that the source file can tell whether it is being
15382 # built for inclusion in a dll (and should export symbols for example).
15383 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15386 darwin* | rhapsody*)
15387 # PIC is the default on this platform
15388 # Common symbols not allowed in MH_DYLIB files
15389 lt_prog_compiler_pic_GCJ='-fno-common'
15393 # Just because we use GCC doesn't mean we suddenly get shared libraries
15394 # on systems that don't support them.
15395 lt_prog_compiler_can_build_shared_GCJ=no
15400 if test -d /usr/nec; then
15401 lt_prog_compiler_pic_GCJ=-Kconform_pic
15406 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15407 # not for PA HP-UX.
15408 case "$host_cpu" in
15413 lt_prog_compiler_pic_GCJ='-fPIC'
15419 lt_prog_compiler_pic_GCJ='-fPIC'
15423 # PORTME Check for flag to pass linker flags through the system compiler.
15426 lt_prog_compiler_wl_GCJ='-Wl,'
15427 if test "$host_cpu" = ia64; then
15428 # AIX 5 now supports IA64 processor
15429 lt_prog_compiler_static_GCJ='-Bstatic'
15431 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15435 # PIC is the default on this platform
15436 # Common symbols not allowed in MH_DYLIB files
15437 case "$cc_basename" in
15439 lt_prog_compiler_pic_GCJ='-qnocommon'
15440 lt_prog_compiler_wl_GCJ='-Wl,'
15445 mingw* | pw32* | os2*)
15446 # This hack is so that the source file can tell whether it is being
15447 # built for inclusion in a dll (and should export symbols for example).
15448 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15451 hpux9* | hpux10* | hpux11*)
15452 lt_prog_compiler_wl_GCJ='-Wl,'
15453 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15454 # not for PA HP-UX.
15455 case "$host_cpu" in
15460 lt_prog_compiler_pic_GCJ='+Z'
15463 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15464 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15467 irix5* | irix6* | nonstopux*)
15468 lt_prog_compiler_wl_GCJ='-Wl,'
15469 # PIC (with -KPIC) is the default.
15470 lt_prog_compiler_static_GCJ='-non_shared'
15474 lt_prog_compiler_pic_GCJ='-KPIC'
15475 lt_prog_compiler_static_GCJ='-Bstatic'
15481 lt_prog_compiler_wl_GCJ='-Wl,'
15482 lt_prog_compiler_pic_GCJ='-KPIC'
15483 lt_prog_compiler_static_GCJ='-static'
15486 lt_prog_compiler_wl_GCJ='-Wl,'
15487 # All Alpha code is PIC.
15488 lt_prog_compiler_static_GCJ='-non_shared'
15493 osf3* | osf4* | osf5*)
15494 lt_prog_compiler_wl_GCJ='-Wl,'
15495 # All OSF/1 code is PIC.
15496 lt_prog_compiler_static_GCJ='-non_shared'
15500 lt_prog_compiler_pic_GCJ='-Kpic'
15501 lt_prog_compiler_static_GCJ='-dn'
15505 lt_prog_compiler_wl_GCJ='-Wl,'
15506 lt_prog_compiler_pic_GCJ='-KPIC'
15507 lt_prog_compiler_static_GCJ='-Bstatic'
15511 lt_prog_compiler_wl_GCJ='-Qoption ld '
15512 lt_prog_compiler_pic_GCJ='-PIC'
15513 lt_prog_compiler_static_GCJ='-Bstatic'
15516 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15517 lt_prog_compiler_wl_GCJ='-Wl,'
15518 lt_prog_compiler_pic_GCJ='-KPIC'
15519 lt_prog_compiler_static_GCJ='-Bstatic'
15523 if test -d /usr/nec ;then
15524 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15525 lt_prog_compiler_static_GCJ='-Bstatic'
15530 lt_prog_compiler_pic_GCJ='-pic'
15531 lt_prog_compiler_static_GCJ='-Bstatic'
15535 lt_prog_compiler_can_build_shared_GCJ=no
15540 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15541 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15544 # Check to make sure the PIC flag actually works.
15546 if test -n "$lt_prog_compiler_pic_GCJ"; then
15548 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15549 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15550 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 lt_prog_compiler_pic_works_GCJ=no
15554 ac_outfile=conftest.$ac_objext
15555 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15556 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15557 # Insert the option either (1) after the last *FLAGS variable, or
15558 # (2) before a word containing "conftest.", or (3) at the end.
15559 # Note that $ac_compile itself does not contain backslashes and begins
15560 # with a dollar sign (not a hyphen), so the echo should work correctly.
15561 # The option is referenced via a variable to avoid confusing sed.
15562 lt_compile=`echo "$ac_compile" | $SED \
15563 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15565 -e 's:$: $lt_compiler_flag:'`
15566 (eval echo "\"\$as_me:15566: $lt_compile\"" >&5)
15567 (eval "$lt_compile" 2>conftest.err)
15569 cat conftest.err >&5
15570 echo "$as_me:15570: \$? = $ac_status" >&5
15571 if (exit $ac_status) && test -s "$ac_outfile"; then
15572 # The compiler can only warn and ignore the option if not recognized
15573 # So say no if there are warnings
15574 if test ! -s conftest.err; then
15575 lt_prog_compiler_pic_works_GCJ=yes
15581 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15582 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15584 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15585 case $lt_prog_compiler_pic_GCJ in
15587 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15590 lt_prog_compiler_pic_GCJ=
15591 lt_prog_compiler_can_build_shared_GCJ=no
15596 # For platforms which do not support PIC, -DPIC is meaningless:
15598 lt_prog_compiler_pic_GCJ=
15601 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15605 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15606 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15607 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15608 echo $ECHO_N "(cached) $ECHO_C" >&6
15610 lt_cv_prog_compiler_c_o_GCJ=no
15611 $rm -r conftest 2>/dev/null
15615 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15617 lt_compiler_flag="-o out/conftest2.$ac_objext"
15618 # Insert the option either (1) after the last *FLAGS variable, or
15619 # (2) before a word containing "conftest.", or (3) at the end.
15620 # Note that $ac_compile itself does not contain backslashes and begins
15621 # with a dollar sign (not a hyphen), so the echo should work correctly.
15622 lt_compile=`echo "$ac_compile" | $SED \
15623 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15625 -e 's:$: $lt_compiler_flag:'`
15626 (eval echo "\"\$as_me:15626: $lt_compile\"" >&5)
15627 (eval "$lt_compile" 2>out/conftest.err)
15629 cat out/conftest.err >&5
15630 echo "$as_me:15630: \$? = $ac_status" >&5
15631 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15633 # The compiler can only warn and ignore the option if not recognized
15634 # So say no if there are warnings
15635 if test ! -s out/conftest.err; then
15636 lt_cv_prog_compiler_c_o_GCJ=yes
15641 # SGI C++ compiler will create directory out/ii_files/ for
15642 # template instantiation
15643 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15644 $rm out/* && rmdir out
15650 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15651 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15654 hard_links="nottested"
15655 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15656 # do not overwrite the value of need_locks provided by the user
15657 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15658 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15663 ln conftest.a conftest.b 2>&5 || hard_links=no
15664 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15665 echo "$as_me:$LINENO: result: $hard_links" >&5
15666 echo "${ECHO_T}$hard_links" >&6
15667 if test "$hard_links" = no; then
15668 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15669 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15676 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15677 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15680 allow_undefined_flag_GCJ=
15681 enable_shared_with_static_runtimes_GCJ=no
15683 archive_expsym_cmds_GCJ=
15684 old_archive_From_new_cmds_GCJ=
15685 old_archive_from_expsyms_cmds_GCJ=
15686 export_dynamic_flag_spec_GCJ=
15687 whole_archive_flag_spec_GCJ=
15688 thread_safe_flag_spec_GCJ=
15689 hardcode_libdir_flag_spec_GCJ=
15690 hardcode_libdir_flag_spec_ld_GCJ=
15691 hardcode_libdir_separator_GCJ=
15692 hardcode_direct_GCJ=no
15693 hardcode_minus_L_GCJ=no
15694 hardcode_shlibpath_var_GCJ=unsupported
15695 link_all_deplibs_GCJ=unknown
15696 hardcode_automatic_GCJ=no
15698 module_expsym_cmds_GCJ=
15699 always_export_symbols_GCJ=no
15700 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15701 # include_expsyms should be a list of space-separated symbols to be *always*
15702 # included in the symbol list
15703 include_expsyms_GCJ=
15704 # exclude_expsyms can be an extended regexp of symbols to exclude
15705 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15706 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15707 # as well as any symbol that contains `d'.
15708 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15709 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15710 # platforms (ab)use it in PIC code, but their linkers get confused if
15711 # the symbol is explicitly referenced. Since portable code cannot
15712 # rely on this symbol name, it's probably fine to never include it in
15713 # preloaded symbol tables.
15714 extract_expsyms_cmds=
15717 cygwin* | mingw* | pw32*)
15718 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15719 # When not using gcc, we currently assume that we are using
15720 # Microsoft Visual C++.
15721 if test "$GCC" != yes; then
15731 if test "$with_gnu_ld" = yes; then
15732 # If archive_cmds runs LD, not CC, wlarc should be empty
15735 # See if GNU ld supports shared libraries.
15737 aix3* | aix4* | aix5*)
15738 # On AIX/PPC, the GNU linker is very broken
15739 if test "$host_cpu" != ia64; then
15743 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15744 *** to be unable to reliably create shared libraries on AIX.
15745 *** Therefore, libtool is disabling shared libraries support. If you
15746 *** really care for shared libraries, you may want to modify your PATH
15747 *** so that a non-GNU linker is found, and then restart.
15754 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)'
15755 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15756 hardcode_minus_L_GCJ=yes
15758 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15759 # that the semantics of dynamic libraries on AmigaOS, at least up
15760 # to version 4, is to share data among multiple programs linked
15761 # with the same dynamic library. Since this doesn't match the
15762 # behavior of shared libraries on other platforms, we can't use
15768 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15769 allow_undefined_flag_GCJ=unsupported
15770 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15771 # support --undefined. This deserves some investigation. FIXME
15772 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15778 cygwin* | mingw* | pw32*)
15779 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15780 # as there is no search path for DLLs.
15781 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15782 allow_undefined_flag_GCJ=unsupported
15783 always_export_symbols_GCJ=no
15784 enable_shared_with_static_runtimes_GCJ=yes
15785 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15787 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15788 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15789 # If the export-symbols file already is a .def file (1st line
15790 # is EXPORTS), use it as is; otherwise, prepend...
15791 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15792 cp $export_symbols $output_objdir/$soname.def;
15794 echo EXPORTS > $output_objdir/$soname.def;
15795 cat $export_symbols >> $output_objdir/$soname.def;
15796 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15803 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15804 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15807 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15808 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15813 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15817 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15818 *** create shared libraries on Solaris systems. Therefore, libtool
15819 *** is disabling shared libraries support. We urge you to upgrade GNU
15820 *** binutils to release 2.9.1 or newer. Another option is to modify
15821 *** your PATH or compiler configuration so that the native linker is
15822 *** used, and then restart.
15825 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15826 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15827 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15834 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15836 hardcode_direct_GCJ=yes
15837 hardcode_shlibpath_var_GCJ=no
15841 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15842 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15843 archive_cmds_GCJ="$tmp_archive_cmds"
15844 supports_anon_versioning=no
15845 case `$LD -v 2>/dev/null` in
15846 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15847 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15848 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15849 *\ 2.11.*) ;; # other 2.11 versions
15850 *) supports_anon_versioning=yes ;;
15852 if test $supports_anon_versioning = yes; then
15853 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
15854 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15856 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15864 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15865 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15866 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15873 if test "$ld_shlibs_GCJ" = yes; then
15874 runpath_var=LD_RUN_PATH
15875 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15876 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15877 # ancient GNU ld didn't support --whole-archive et. al.
15878 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15879 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15881 whole_archive_flag_spec_GCJ=
15885 # PORTME fill in a description of your system's linker (not GNU ld)
15888 allow_undefined_flag_GCJ=unsupported
15889 always_export_symbols_GCJ=yes
15890 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'
15891 # Note: this linker hardcodes the directories in LIBPATH if there
15892 # are no directories specified by -L.
15893 hardcode_minus_L_GCJ=yes
15894 if test "$GCC" = yes && test -z "$link_static_flag"; then
15895 # Neither direct hardcoding nor static linking is supported with a
15897 hardcode_direct_GCJ=unsupported
15902 if test "$host_cpu" = ia64; then
15903 # On IA64, the linker does run time linking by default, so we don't
15904 # have to do anything special.
15905 aix_use_runtimelinking=no
15906 exp_sym_flag='-Bexport'
15909 # If we're using GNU nm, then we don't want the "-C" option.
15910 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15911 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15912 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'
15914 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'
15916 aix_use_runtimelinking=no
15918 # Test if we are trying to use run time linking or normal
15919 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15920 # need to do runtime linking.
15921 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15922 for ld_flag in $LDFLAGS; do
15923 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15924 aix_use_runtimelinking=yes
15930 exp_sym_flag='-bexport'
15931 no_entry_flag='-bnoentry'
15934 # When large executables or shared objects are built, AIX ld can
15935 # have problems creating the table of contents. If linking a library
15936 # or program results in "error TOC overflow" add -mminimal-toc to
15937 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15938 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15940 archive_cmds_GCJ=''
15941 hardcode_direct_GCJ=yes
15942 hardcode_libdir_separator_GCJ=':'
15943 link_all_deplibs_GCJ=yes
15945 if test "$GCC" = yes; then
15946 case $host_os in aix4.012|aix4.012.*)
15947 # We only want to do this on AIX 4.2 and lower, the check
15948 # below for broken collect2 doesn't work under 4.3+
15949 collect2name=`${CC} -print-prog-name=collect2`
15950 if test -f "$collect2name" && \
15951 strings "$collect2name" | grep resolve_lib_name >/dev/null
15953 # We have reworked collect2
15954 hardcode_direct_GCJ=yes
15956 # We have old collect2
15957 hardcode_direct_GCJ=unsupported
15958 # It fails to find uninstalled libraries when the uninstalled
15959 # path is not listed in the libpath. Setting hardcode_minus_L
15960 # to unsupported forces relinking
15961 hardcode_minus_L_GCJ=yes
15962 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15963 hardcode_libdir_separator_GCJ=
15966 shared_flag='-shared'
15969 if test "$host_cpu" = ia64; then
15970 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15971 # chokes on -Wl,-G. The following line is correct:
15974 if test "$aix_use_runtimelinking" = yes; then
15975 shared_flag='${wl}-G'
15977 shared_flag='${wl}-bM:SRE'
15982 # It seems that -bexpall does not export symbols beginning with
15983 # underscore (_), so it is better to generate a list of symbols to export.
15984 always_export_symbols_GCJ=yes
15985 if test "$aix_use_runtimelinking" = yes; then
15986 # Warning - without using the other runtime loading flags (-brtl),
15987 # -berok will link without error, but may produce a broken library.
15988 allow_undefined_flag_GCJ='-berok'
15989 # Determine the default libpath from the value encoded in an empty executable.
15990 cat >conftest.$ac_ext <<_ACEOF
15993 cat confdefs.h >>conftest.$ac_ext
15994 cat >>conftest.$ac_ext <<_ACEOF
15995 /* end confdefs.h. */
16005 rm -f conftest.$ac_objext conftest$ac_exeext
16006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16007 (eval $ac_link) 2>conftest.er1
16009 grep -v '^ *+' conftest.er1 >conftest.err
16011 cat conftest.err >&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); } &&
16014 { ac_try='test -z "$ac_c_werror_flag"
16015 || test ! -s conftest.err'
16016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16017 (eval $ac_try) 2>&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); }; } &&
16021 { ac_try='test -s conftest$ac_exeext'
16022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16023 (eval $ac_try) 2>&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }; }; then
16028 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16030 # Check for a 64-bit object if we didn't find anything.
16031 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; }
16034 echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.$ac_ext >&5
16038 rm -f conftest.err conftest.$ac_objext \
16039 conftest$ac_exeext conftest.$ac_ext
16040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16042 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16043 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16045 if test "$host_cpu" = ia64; then
16046 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16047 allow_undefined_flag_GCJ="-z nodefs"
16048 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16050 # Determine the default libpath from the value encoded in an empty executable.
16051 cat >conftest.$ac_ext <<_ACEOF
16054 cat confdefs.h >>conftest.$ac_ext
16055 cat >>conftest.$ac_ext <<_ACEOF
16056 /* end confdefs.h. */
16066 rm -f conftest.$ac_objext conftest$ac_exeext
16067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16068 (eval $ac_link) 2>conftest.er1
16070 grep -v '^ *+' conftest.er1 >conftest.err
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } &&
16075 { ac_try='test -z "$ac_c_werror_flag"
16076 || test ! -s conftest.err'
16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078 (eval $ac_try) 2>&5
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; } &&
16082 { ac_try='test -s conftest$ac_exeext'
16083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16084 (eval $ac_try) 2>&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; }; then
16089 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16091 # Check for a 64-bit object if we didn't find anything.
16092 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; }
16095 echo "$as_me: failed program was:" >&5
16096 sed 's/^/| /' conftest.$ac_ext >&5
16099 rm -f conftest.err conftest.$ac_objext \
16100 conftest$ac_exeext conftest.$ac_ext
16101 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16103 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16104 # Warning - without using the other run time loading flags,
16105 # -berok will link without error, but may produce a broken library.
16106 no_undefined_flag_GCJ=' ${wl}-bernotok'
16107 allow_undefined_flag_GCJ=' ${wl}-berok'
16108 # -bexpall does not export symbols beginning with underscore (_)
16109 always_export_symbols_GCJ=yes
16110 # Exported symbols can be pulled into shared objects from archives
16111 whole_archive_flag_spec_GCJ=' '
16112 archive_cmds_need_lc_GCJ=yes
16113 # This is similar to how AIX traditionally builds it's shared libraries.
16114 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag};$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16120 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)'
16121 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16122 hardcode_minus_L_GCJ=yes
16123 # see comment about different semantics on the GNU ld section
16128 export_dynamic_flag_spec_GCJ=-rdynamic
16131 cygwin* | mingw* | pw32*)
16132 # When not using gcc, we currently assume that we are using
16133 # Microsoft Visual C++.
16134 # hardcode_libdir_flag_spec is actually meaningless, as there is
16135 # no search path for DLLs.
16136 hardcode_libdir_flag_spec_GCJ=' '
16137 allow_undefined_flag_GCJ=unsupported
16138 # Tell ltmain to make .lib files, not .a files.
16140 # Tell ltmain to make .dll files, not .so files.
16142 # FIXME: Setting linknames here is a bad hack.
16143 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
16144 # The linker will automatically build a .lib file if we build a DLL.
16145 old_archive_From_new_cmds_GCJ='true'
16146 # FIXME: Should let the user specify the lib program.
16147 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16148 fix_srcfile_path='`cygpath -w "$srcfile"`'
16149 enable_shared_with_static_runtimes_GCJ=yes
16152 darwin* | rhapsody*)
16154 rhapsody* | darwin1.[012])
16155 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16158 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16159 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16161 case ${MACOSX_DEPLOYMENT_TARGET} in
16163 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16166 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16172 archive_cmds_need_lc_GCJ=no
16173 hardcode_direct_GCJ=no
16174 hardcode_automatic_GCJ=yes
16175 hardcode_shlibpath_var_GCJ=unsupported
16176 whole_archive_flag_spec_GCJ=''
16177 link_all_deplibs_GCJ=yes
16178 if test "$GCC" = yes ; then
16179 output_verbose_link_cmd='echo'
16180 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16181 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16182 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16183 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}'
16184 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}'
16186 case "$cc_basename" in
16188 output_verbose_link_cmd='echo'
16189 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16190 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16191 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16192 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}'
16193 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}'
16203 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16204 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16205 hardcode_shlibpath_var_GCJ=no
16212 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16213 # support. Future versions do this automatically, but an explicit c++rt0.o
16214 # does not break anything, and helps significantly (at the cost of a little
16217 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16218 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16219 hardcode_direct_GCJ=yes
16220 hardcode_shlibpath_var_GCJ=no
16223 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16225 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16226 hardcode_direct_GCJ=yes
16227 hardcode_minus_L_GCJ=yes
16228 hardcode_shlibpath_var_GCJ=no
16231 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16232 freebsd* | kfreebsd*-gnu)
16233 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16234 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16235 hardcode_direct_GCJ=yes
16236 hardcode_shlibpath_var_GCJ=no
16240 if test "$GCC" = yes; then
16241 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'
16243 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'
16245 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16246 hardcode_libdir_separator_GCJ=:
16247 hardcode_direct_GCJ=yes
16249 # hardcode_minus_L: Not really in the search PATH,
16250 # but as the default location of the library.
16251 hardcode_minus_L_GCJ=yes
16252 export_dynamic_flag_spec_GCJ='${wl}-E'
16256 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16257 case "$host_cpu" in
16259 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16262 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16266 case "$host_cpu" in
16268 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16271 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16275 if test "$with_gnu_ld" = no; then
16276 case "$host_cpu" in
16278 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16279 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16280 hardcode_libdir_separator_GCJ=:
16281 hardcode_direct_GCJ=no
16282 hardcode_shlibpath_var_GCJ=no
16285 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16286 hardcode_direct_GCJ=no
16287 hardcode_shlibpath_var_GCJ=no
16289 # hardcode_minus_L: Not really in the search PATH,
16290 # but as the default location of the library.
16291 hardcode_minus_L_GCJ=yes
16294 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16295 hardcode_libdir_separator_GCJ=:
16296 hardcode_direct_GCJ=yes
16297 export_dynamic_flag_spec_GCJ='${wl}-E'
16299 # hardcode_minus_L: Not really in the search PATH,
16300 # but as the default location of the library.
16301 hardcode_minus_L_GCJ=yes
16307 irix5* | irix6* | nonstopux*)
16308 if test "$GCC" = yes; then
16309 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'
16311 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'
16312 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16314 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16315 hardcode_libdir_separator_GCJ=:
16316 link_all_deplibs_GCJ=yes
16320 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16321 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16323 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16325 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16326 hardcode_direct_GCJ=yes
16327 hardcode_shlibpath_var_GCJ=no
16331 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16332 hardcode_direct_GCJ=yes
16333 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16334 hardcode_libdir_separator_GCJ=:
16335 hardcode_shlibpath_var_GCJ=no
16339 hardcode_direct_GCJ=yes
16340 hardcode_shlibpath_var_GCJ=no
16341 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16342 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16343 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16344 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16345 export_dynamic_flag_spec_GCJ='${wl}-E'
16348 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16349 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16350 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16353 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16354 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16361 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16362 hardcode_minus_L_GCJ=yes
16363 allow_undefined_flag_GCJ=unsupported
16364 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'
16365 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16369 if test "$GCC" = yes; then
16370 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16371 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'
16373 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16374 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'
16376 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16377 hardcode_libdir_separator_GCJ=:
16380 osf4* | osf5*) # as osf3* with the addition of -msym flag
16381 if test "$GCC" = yes; then
16382 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16383 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'
16384 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16386 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16387 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'
16388 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; $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib;$rm $lib.exp'
16389 # Both c and cxx compiler support -rpath directly
16390 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16392 hardcode_libdir_separator_GCJ=:
16396 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16397 hardcode_shlibpath_var_GCJ=no
16398 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16399 runpath_var=LD_RUN_PATH
16400 hardcode_runpath_var=yes
16404 no_undefined_flag_GCJ=' -z text'
16405 if test "$GCC" = yes; then
16406 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16407 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
16409 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16410 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
16412 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16413 hardcode_shlibpath_var_GCJ=no
16415 solaris2.[0-5] | solaris2.[0-5].*) ;;
16416 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16417 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16419 link_all_deplibs_GCJ=yes
16423 if test "x$host_vendor" = xsequent; then
16424 # Use $CC to link under sequent, because it throws in some extra .o
16425 # files that make .init and .fini sections work.
16426 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16428 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16430 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16431 hardcode_direct_GCJ=yes
16432 hardcode_minus_L_GCJ=yes
16433 hardcode_shlibpath_var_GCJ=no
16437 case $host_vendor in
16439 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16440 hardcode_direct_GCJ=yes # is this really true???
16443 ## LD is ld it makes a PLAMLIB
16444 ## CC just makes a GrossModule.
16445 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16446 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16447 hardcode_direct_GCJ=no
16450 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16451 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16454 runpath_var='LD_RUN_PATH'
16455 hardcode_shlibpath_var_GCJ=no
16459 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16460 hardcode_shlibpath_var_GCJ=no
16461 export_dynamic_flag_spec_GCJ='-Bexport'
16465 if test -d /usr/nec; then
16466 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16467 hardcode_shlibpath_var_GCJ=no
16468 runpath_var=LD_RUN_PATH
16469 hardcode_runpath_var=yes
16475 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16476 hardcode_direct_GCJ=yes
16477 hardcode_minus_L_GCJ=no
16478 hardcode_shlibpath_var_GCJ=no
16479 hardcode_runpath_var=yes
16480 runpath_var=LD_RUN_PATH
16483 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16484 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16485 if test "$GCC" = yes; then
16486 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16488 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16490 runpath_var='LD_RUN_PATH'
16491 hardcode_shlibpath_var_GCJ=no
16495 no_undefined_flag_GCJ=' -z text'
16496 # $CC -shared without GNU ld will not create a library from C++
16497 # object files and a static libstdc++, better avoid it by now
16498 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16499 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
16500 hardcode_libdir_flag_spec_GCJ=
16501 hardcode_shlibpath_var_GCJ=no
16502 runpath_var='LD_RUN_PATH'
16506 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16507 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16508 hardcode_shlibpath_var_GCJ=no
16517 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16518 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16519 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16521 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16522 if test "$GCC" = yes; then
16523 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16527 # Do we need to explicitly link libc?
16529 case "x$archive_cmds_need_lc_GCJ" in
16531 # Assume -lc should be added
16532 archive_cmds_need_lc_GCJ=yes
16534 if test "$enable_shared" = yes && test "$GCC" = yes; then
16535 case $archive_cmds_GCJ in
16537 # FIXME: we may have to deal with multi-command sequences.
16540 # Test whether the compiler implicitly links with -lc since on some
16541 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16542 # to ld, don't add -lc before -lgcc.
16543 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16544 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16546 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16549 (eval $ac_compile) 2>&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } 2>conftest.err; then
16555 libobjs=conftest.$ac_objext
16557 wl=$lt_prog_compiler_wl_GCJ
16563 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16564 allow_undefined_flag_GCJ=
16565 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16566 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }
16571 archive_cmds_need_lc_GCJ=no
16573 archive_cmds_need_lc_GCJ=yes
16575 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16577 cat conftest.err 1>&5
16580 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16581 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16588 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16589 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16590 library_names_spec=
16591 libname_spec='lib$name'
16595 postuninstall_cmds=
16599 shlibpath_overrides_runpath=unknown
16601 dynamic_linker="$host_os ld.so"
16602 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16603 if test "$GCC" = yes; then
16604 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16605 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16606 # if the path contains ";" then we assume it to be the separator
16607 # otherwise default to the standard path separator (i.e. ":") - it is
16608 # assumed that no part of a normal pathname contains ";" but that should
16609 # okay in the real world where ";" in dirpaths is itself problematic.
16610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16615 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16617 need_lib_prefix=unknown
16618 hardcode_into_libs=no
16620 # when you set need_version to no, make sure it does not cause -set_version
16621 # flags to be left without arguments
16622 need_version=unknown
16627 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16628 shlibpath_var=LIBPATH
16630 # AIX 3 has no versioning support, so we append a major version to the name.
16631 soname_spec='${libname}${release}${shared_ext}$major'
16638 hardcode_into_libs=yes
16639 if test "$host_cpu" = ia64; then
16640 # AIX 5 supports IA64
16641 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16642 shlibpath_var=LD_LIBRARY_PATH
16644 # With GCC up to 2.95.x, collect2 would create an import file
16645 # for dependence libraries. The import file would start with
16646 # the line `#! .'. This would cause the generated library to
16647 # depend on `.', always an invalid library. This was fixed in
16648 # development snapshots of GCC prior to 3.0.
16650 aix4 | aix4.[01] | aix4.[01].*)
16651 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16653 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16656 can_build_shared=no
16660 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16661 # soname into executable. Probably we can add versioning support to
16662 # collect2, so additional links can be useful in future.
16663 if test "$aix_use_runtimelinking" = yes; then
16664 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16665 # instead of lib<name>.a to let people know that these are not
16666 # typical AIX shared libraries.
16667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16669 # We preserve .a as extension for shared libraries through AIX4.2
16670 # and later when we are not doing run time linking.
16671 library_names_spec='${libname}${release}.a $libname.a'
16672 soname_spec='${libname}${release}${shared_ext}$major'
16674 shlibpath_var=LIBPATH
16679 library_names_spec='$libname.ixlibrary $libname.a'
16680 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16681 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'
16685 library_names_spec='${libname}${shared_ext}'
16686 dynamic_linker="$host_os ld.so"
16687 shlibpath_var=LIBRARY_PATH
16693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16694 soname_spec='${libname}${release}${shared_ext}$major'
16695 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16696 shlibpath_var=LD_LIBRARY_PATH
16697 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16698 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16699 # the default ld.so.conf also contains /usr/contrib/lib and
16700 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16701 # libtool to hard-code these into programs
16704 cygwin* | mingw* | pw32*)
16705 version_type=windows
16710 case $GCC,$host_os in
16711 yes,cygwin* | yes,mingw* | yes,pw32*)
16712 library_names_spec='$libname.dll.a'
16713 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16714 postinstall_cmds='base_file=`basename \${file}`;
16715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
16716 dldir=$destdir/`dirname \$dlpath`;
16717 test -d \$dldir || mkdir -p \$dldir;
16718 $install_prog $dir/$dlname \$dldir/$dlname'
16719 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
16720 dlpath=$dir/\$dldll;
16722 shlibpath_overrides_runpath=yes
16726 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16727 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16728 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16731 # MinGW DLLs use traditional 'lib' prefix
16732 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16733 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16734 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16735 # It is most probably a Windows format PATH printed by
16736 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16737 # path with ; separators, and with drive letters. We can handle the
16738 # drive letters (cygwin fileutils understands them), so leave them,
16739 # especially as we might pass files found there to a mingw objdump,
16740 # which wouldn't understand a cygwinified path. Ahh.
16741 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16743 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16747 # pw32 DLLs use 'pw' prefix rather than 'lib'
16748 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16754 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16757 dynamic_linker='Win32 ld.exe'
16758 # FIXME: first we should search . and the directory the executable is in
16762 darwin* | rhapsody*)
16763 dynamic_linker="$host_os dyld"
16764 version_type=darwin
16767 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16768 soname_spec='${libname}${release}${major}$shared_ext'
16769 shlibpath_overrides_runpath=yes
16770 shlibpath_var=DYLD_LIBRARY_PATH
16771 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16772 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16773 if test "$GCC" = yes; then
16774 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"`
16776 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16778 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16786 soname_spec='${libname}${release}${shared_ext}$major'
16787 shlibpath_var=LD_LIBRARY_PATH
16798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16799 soname_spec='${libname}${release}${shared_ext}$major'
16800 shlibpath_var=LD_LIBRARY_PATH
16801 shlibpath_overrides_runpath=no
16802 hardcode_into_libs=yes
16803 dynamic_linker='GNU ld.so'
16807 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16808 version_type=freebsd-$objformat
16809 case $version_type in
16811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16816 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16820 shlibpath_var=LD_LIBRARY_PATH
16823 shlibpath_overrides_runpath=yes
16825 freebsd3.01* | freebsdelf3.01*)
16826 shlibpath_overrides_runpath=yes
16827 hardcode_into_libs=yes
16830 shlibpath_overrides_runpath=no
16831 hardcode_into_libs=yes
16840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16841 soname_spec='${libname}${release}${shared_ext}$major'
16842 shlibpath_var=LD_LIBRARY_PATH
16843 hardcode_into_libs=yes
16846 hpux9* | hpux10* | hpux11*)
16847 # Give a soname corresponding to the major version so that dld.sl refuses to
16848 # link against other versions.
16852 case "$host_cpu" in
16855 hardcode_into_libs=yes
16856 dynamic_linker="$host_os dld.so"
16857 shlibpath_var=LD_LIBRARY_PATH
16858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16860 soname_spec='${libname}${release}${shared_ext}$major'
16861 if test "X$HPUX_IA64_MODE" = X32; then
16862 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16864 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16870 hardcode_into_libs=yes
16871 dynamic_linker="$host_os dld.sl"
16872 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16875 soname_spec='${libname}${release}${shared_ext}$major'
16876 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16881 dynamic_linker="$host_os dld.sl"
16882 shlibpath_var=SHLIB_PATH
16883 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16885 soname_spec='${libname}${release}${shared_ext}$major'
16888 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16889 postinstall_cmds='chmod 555 $lib'
16892 irix5* | irix6* | nonstopux*)
16894 nonstopux*) version_type=nonstopux ;;
16896 if test "$lt_cv_prog_gnu_ld" = yes; then
16904 soname_spec='${libname}${release}${shared_ext}$major'
16905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16907 irix5* | nonstopux*)
16908 libsuff= shlibsuff=
16911 case $LD in # libtool.m4 will add one of these switches to LD
16912 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16913 libsuff= shlibsuff= libmagic=32-bit;;
16914 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16915 libsuff=32 shlibsuff=N32 libmagic=N32;;
16916 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16917 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16918 *) libsuff= shlibsuff= libmagic=never-match;;
16922 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16923 shlibpath_overrides_runpath=no
16924 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16925 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16926 hardcode_into_libs=yes
16929 # No shared lib support for Linux oldld, aout, or coff.
16930 linux*oldld* | linux*aout* | linux*coff*)
16934 # This must be Linux ELF.
16939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16940 soname_spec='${libname}${release}${shared_ext}$major'
16941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16942 shlibpath_var=LD_LIBRARY_PATH
16943 shlibpath_overrides_runpath=no
16944 # This implies no fast_install, which is unacceptable.
16945 # Some rework will be needed to allow for fast_install
16946 # before this can be enabled.
16947 hardcode_into_libs=yes
16949 # Append ld.so.conf contents to the search path
16950 if test -f /etc/ld.so.conf; then
16951 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16952 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16955 # We used to test for /lib/ld.so.1 and disable shared libraries on
16956 # powerpc, because MkLinux only supported shared libraries with the
16957 # GNU dynamic linker. Since this was broken with cross compilers,
16958 # most powerpc-linux boxes support dynamic linking these days and
16959 # people can always --disable-shared, the test was removed, and we
16960 # assume the GNU/Linux dynamic linker is in use.
16961 dynamic_linker='GNU/Linux ld.so'
16968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16969 soname_spec='${libname}${release}${shared_ext}$major'
16970 shlibpath_var=LD_LIBRARY_PATH
16971 shlibpath_overrides_runpath=no
16972 hardcode_into_libs=yes
16973 dynamic_linker='GNU ld.so'
16980 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16983 dynamic_linker='NetBSD (a.out) ld.so'
16985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16986 soname_spec='${libname}${release}${shared_ext}$major'
16987 dynamic_linker='NetBSD ld.elf_so'
16989 shlibpath_var=LD_LIBRARY_PATH
16990 shlibpath_overrides_runpath=yes
16991 hardcode_into_libs=yes
16996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16997 shlibpath_var=LD_LIBRARY_PATH
16998 shlibpath_overrides_runpath=yes
17005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17006 soname_spec='${libname}${release}${shared_ext}$major'
17007 shlibpath_var=LD_LIBRARY_PATH
17008 shlibpath_overrides_runpath=yes
17015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17017 shlibpath_var=LD_LIBRARY_PATH
17018 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17020 openbsd2.[89] | openbsd2.[89].*)
17021 shlibpath_overrides_runpath=no
17024 shlibpath_overrides_runpath=yes
17028 shlibpath_overrides_runpath=yes
17033 libname_spec='$name'
17036 library_names_spec='$libname${shared_ext} $libname.a'
17037 dynamic_linker='OS/2 ld.exe'
17038 shlibpath_var=LIBPATH
17041 osf3* | osf4* | osf5*)
17045 soname_spec='${libname}${release}${shared_ext}$major'
17046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17047 shlibpath_var=LD_LIBRARY_PATH
17048 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17049 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17054 soname_spec='${libname}${release}${shared_ext}$major'
17055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17056 shlibpath_var=LD_LIBRARY_PATH
17063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17064 soname_spec='${libname}${release}${shared_ext}$major'
17065 shlibpath_var=LD_LIBRARY_PATH
17066 shlibpath_overrides_runpath=yes
17067 hardcode_into_libs=yes
17068 # ldd complains unless libraries are executable
17069 postinstall_cmds='chmod +x $lib'
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17075 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17076 shlibpath_var=LD_LIBRARY_PATH
17077 shlibpath_overrides_runpath=yes
17078 if test "$with_gnu_ld" = yes; then
17084 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17087 soname_spec='${libname}${release}${shared_ext}$major'
17088 shlibpath_var=LD_LIBRARY_PATH
17089 case $host_vendor in
17091 shlibpath_overrides_runpath=no
17093 export_dynamic_flag_spec='${wl}-Blargedynsym'
17094 runpath_var=LD_RUN_PATH
17102 shlibpath_overrides_runpath=no
17103 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17109 if test -d /usr/nec ;then
17111 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17112 soname_spec='$libname${shared_ext}.$major'
17113 shlibpath_var=LD_LIBRARY_PATH
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120 soname_spec='${libname}${release}${shared_ext}$major'
17121 shlibpath_var=LD_LIBRARY_PATH
17128 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17129 echo "${ECHO_T}$dynamic_linker" >&6
17130 test "$dynamic_linker" = no && can_build_shared=no
17132 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17133 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17134 hardcode_action_GCJ=
17135 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17136 test -n "$runpath_var_GCJ" || \
17137 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17139 # We can hardcode non-existant directories.
17140 if test "$hardcode_direct_GCJ" != no &&
17141 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17142 # have to relink, otherwise we might link with an installed library
17143 # when we should be linking with a yet-to-be-installed one
17144 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17145 test "$hardcode_minus_L_GCJ" != no; then
17146 # Linking always hardcodes the temporary library directory.
17147 hardcode_action_GCJ=relink
17149 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17150 hardcode_action_GCJ=immediate
17153 # We cannot hardcode anything, or else we can only hardcode existing
17155 hardcode_action_GCJ=unsupported
17157 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17158 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17160 if test "$hardcode_action_GCJ" = relink; then
17161 # Fast installation is not supported
17162 enable_fast_install=no
17163 elif test "$shlibpath_overrides_runpath" = yes ||
17164 test "$enable_shared" = no; then
17165 # Fast installation is not necessary
17166 enable_fast_install=needless
17171 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17172 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17173 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17174 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17175 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17176 echo "$as_me:$LINENO: result: yes" >&5
17177 echo "${ECHO_T}yes" >&6
17179 # FIXME - insert some real tests, host_os isn't really good enough
17182 if test -n "$STRIP" ; then
17183 striplib="$STRIP -x"
17184 echo "$as_me:$LINENO: result: yes" >&5
17185 echo "${ECHO_T}yes" >&6
17187 echo "$as_me:$LINENO: result: no" >&5
17188 echo "${ECHO_T}no" >&6
17192 echo "$as_me:$LINENO: result: no" >&5
17193 echo "${ECHO_T}no" >&6
17198 if test "x$enable_dlopen" != xyes; then
17199 enable_dlopen=unknown
17200 enable_dlopen_self=unknown
17201 enable_dlopen_self_static=unknown
17208 lt_cv_dlopen="load_add_on"
17210 lt_cv_dlopen_self=yes
17214 lt_cv_dlopen="LoadLibrary"
17219 lt_cv_dlopen="dlopen"
17224 # if libdl is installed we need to link against it
17225 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17226 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17227 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17230 ac_check_lib_save_LIBS=$LIBS
17232 cat >conftest.$ac_ext <<_ACEOF
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h. */
17239 /* Override any gcc2 internal prototype to avoid an error. */
17243 /* We use char because int might match the return type of a gcc2
17244 builtin and then its argument prototype would still apply. */
17254 rm -f conftest.$ac_objext conftest$ac_exeext
17255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17256 (eval $ac_link) 2>conftest.er1
17258 grep -v '^ *+' conftest.er1 >conftest.err
17260 cat conftest.err >&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); } &&
17263 { ac_try='test -z "$ac_c_werror_flag"
17264 || test ! -s conftest.err'
17265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266 (eval $ac_try) 2>&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; } &&
17270 { ac_try='test -s conftest$ac_exeext'
17271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17272 (eval $ac_try) 2>&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; }; then
17276 ac_cv_lib_dl_dlopen=yes
17278 echo "$as_me: failed program was:" >&5
17279 sed 's/^/| /' conftest.$ac_ext >&5
17281 ac_cv_lib_dl_dlopen=no
17283 rm -f conftest.err conftest.$ac_objext \
17284 conftest$ac_exeext conftest.$ac_ext
17285 LIBS=$ac_check_lib_save_LIBS
17287 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17288 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17289 if test $ac_cv_lib_dl_dlopen = yes; then
17290 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17293 lt_cv_dlopen="dyld"
17295 lt_cv_dlopen_self=yes
17302 echo "$as_me:$LINENO: checking for shl_load" >&5
17303 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17304 if test "${ac_cv_func_shl_load+set}" = set; then
17305 echo $ECHO_N "(cached) $ECHO_C" >&6
17307 cat >conftest.$ac_ext <<_ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17313 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17315 #define shl_load innocuous_shl_load
17317 /* System header to define __stub macros and hopefully few prototypes,
17318 which can conflict with char shl_load (); below.
17319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17320 <limits.h> exists even on freestanding compilers. */
17323 # include <limits.h>
17325 # include <assert.h>
17330 /* Override any gcc2 internal prototype to avoid an error. */
17335 /* We use char because int might match the return type of a gcc2
17336 builtin and then its argument prototype would still apply. */
17338 /* The GNU C library defines this for functions which it implements
17339 to always fail with ENOSYS. Some functions are actually named
17340 something starting with __ and the normal name is an alias. */
17341 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17344 char (*f) () = shl_load;
17353 return f != shl_load;
17358 rm -f conftest.$ac_objext conftest$ac_exeext
17359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17360 (eval $ac_link) 2>conftest.er1
17362 grep -v '^ *+' conftest.er1 >conftest.err
17364 cat conftest.err >&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } &&
17367 { ac_try='test -z "$ac_c_werror_flag"
17368 || test ! -s conftest.err'
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; } &&
17374 { ac_try='test -s conftest$ac_exeext'
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
17380 ac_cv_func_shl_load=yes
17382 echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17385 ac_cv_func_shl_load=no
17387 rm -f conftest.err conftest.$ac_objext \
17388 conftest$ac_exeext conftest.$ac_ext
17390 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17391 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17392 if test $ac_cv_func_shl_load = yes; then
17393 lt_cv_dlopen="shl_load"
17395 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17396 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17397 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17398 echo $ECHO_N "(cached) $ECHO_C" >&6
17400 ac_check_lib_save_LIBS=$LIBS
17402 cat >conftest.$ac_ext <<_ACEOF
17405 cat confdefs.h >>conftest.$ac_ext
17406 cat >>conftest.$ac_ext <<_ACEOF
17407 /* end confdefs.h. */
17409 /* Override any gcc2 internal prototype to avoid an error. */
17413 /* We use char because int might match the return type of a gcc2
17414 builtin and then its argument prototype would still apply. */
17424 rm -f conftest.$ac_objext conftest$ac_exeext
17425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17426 (eval $ac_link) 2>conftest.er1
17428 grep -v '^ *+' conftest.er1 >conftest.err
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } &&
17433 { ac_try='test -z "$ac_c_werror_flag"
17434 || test ! -s conftest.err'
17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436 (eval $ac_try) 2>&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; } &&
17440 { ac_try='test -s conftest$ac_exeext'
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; }; then
17446 ac_cv_lib_dld_shl_load=yes
17448 echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17451 ac_cv_lib_dld_shl_load=no
17453 rm -f conftest.err conftest.$ac_objext \
17454 conftest$ac_exeext conftest.$ac_ext
17455 LIBS=$ac_check_lib_save_LIBS
17457 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17458 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17459 if test $ac_cv_lib_dld_shl_load = yes; then
17460 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17462 echo "$as_me:$LINENO: checking for dlopen" >&5
17463 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17464 if test "${ac_cv_func_dlopen+set}" = set; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17467 cat >conftest.$ac_ext <<_ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17473 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17475 #define dlopen innocuous_dlopen
17477 /* System header to define __stub macros and hopefully few prototypes,
17478 which can conflict with char dlopen (); below.
17479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17480 <limits.h> exists even on freestanding compilers. */
17483 # include <limits.h>
17485 # include <assert.h>
17490 /* Override any gcc2 internal prototype to avoid an error. */
17495 /* We use char because int might match the return type of a gcc2
17496 builtin and then its argument prototype would still apply. */
17498 /* The GNU C library defines this for functions which it implements
17499 to always fail with ENOSYS. Some functions are actually named
17500 something starting with __ and the normal name is an alias. */
17501 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17504 char (*f) () = dlopen;
17513 return f != dlopen;
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17520 (eval $ac_link) 2>conftest.er1
17522 grep -v '^ *+' conftest.er1 >conftest.err
17524 cat conftest.err >&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); } &&
17527 { ac_try='test -z "$ac_c_werror_flag"
17528 || test ! -s conftest.err'
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; } &&
17534 { ac_try='test -s conftest$ac_exeext'
17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536 (eval $ac_try) 2>&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; }; then
17540 ac_cv_func_dlopen=yes
17542 echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17545 ac_cv_func_dlopen=no
17547 rm -f conftest.err conftest.$ac_objext \
17548 conftest$ac_exeext conftest.$ac_ext
17550 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17551 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17552 if test $ac_cv_func_dlopen = yes; then
17553 lt_cv_dlopen="dlopen"
17555 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17556 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17557 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17560 ac_check_lib_save_LIBS=$LIBS
17562 cat >conftest.$ac_ext <<_ACEOF
17565 cat confdefs.h >>conftest.$ac_ext
17566 cat >>conftest.$ac_ext <<_ACEOF
17567 /* end confdefs.h. */
17569 /* Override any gcc2 internal prototype to avoid an error. */
17573 /* We use char because int might match the return type of a gcc2
17574 builtin and then its argument prototype would still apply. */
17584 rm -f conftest.$ac_objext conftest$ac_exeext
17585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17586 (eval $ac_link) 2>conftest.er1
17588 grep -v '^ *+' conftest.er1 >conftest.err
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } &&
17593 { ac_try='test -z "$ac_c_werror_flag"
17594 || test ! -s conftest.err'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; } &&
17600 { ac_try='test -s conftest$ac_exeext'
17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602 (eval $ac_try) 2>&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; }; then
17606 ac_cv_lib_dl_dlopen=yes
17608 echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17611 ac_cv_lib_dl_dlopen=no
17613 rm -f conftest.err conftest.$ac_objext \
17614 conftest$ac_exeext conftest.$ac_ext
17615 LIBS=$ac_check_lib_save_LIBS
17617 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17618 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17619 if test $ac_cv_lib_dl_dlopen = yes; then
17620 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17622 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17623 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17624 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17625 echo $ECHO_N "(cached) $ECHO_C" >&6
17627 ac_check_lib_save_LIBS=$LIBS
17628 LIBS="-lsvld $LIBS"
17629 cat >conftest.$ac_ext <<_ACEOF
17632 cat confdefs.h >>conftest.$ac_ext
17633 cat >>conftest.$ac_ext <<_ACEOF
17634 /* end confdefs.h. */
17636 /* Override any gcc2 internal prototype to avoid an error. */
17640 /* We use char because int might match the return type of a gcc2
17641 builtin and then its argument prototype would still apply. */
17651 rm -f conftest.$ac_objext conftest$ac_exeext
17652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17653 (eval $ac_link) 2>conftest.er1
17655 grep -v '^ *+' conftest.er1 >conftest.err
17657 cat conftest.err >&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); } &&
17660 { ac_try='test -z "$ac_c_werror_flag"
17661 || test ! -s conftest.err'
17662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17663 (eval $ac_try) 2>&5
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; } &&
17667 { ac_try='test -s conftest$ac_exeext'
17668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17669 (eval $ac_try) 2>&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); }; }; then
17673 ac_cv_lib_svld_dlopen=yes
17675 echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17678 ac_cv_lib_svld_dlopen=no
17680 rm -f conftest.err conftest.$ac_objext \
17681 conftest$ac_exeext conftest.$ac_ext
17682 LIBS=$ac_check_lib_save_LIBS
17684 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17685 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17686 if test $ac_cv_lib_svld_dlopen = yes; then
17687 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17689 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17690 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17691 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17692 echo $ECHO_N "(cached) $ECHO_C" >&6
17694 ac_check_lib_save_LIBS=$LIBS
17696 cat >conftest.$ac_ext <<_ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h. */
17703 /* Override any gcc2 internal prototype to avoid an error. */
17707 /* We use char because int might match the return type of a gcc2
17708 builtin and then its argument prototype would still apply. */
17718 rm -f conftest.$ac_objext conftest$ac_exeext
17719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17720 (eval $ac_link) 2>conftest.er1
17722 grep -v '^ *+' conftest.er1 >conftest.err
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
17727 { ac_try='test -z "$ac_c_werror_flag"
17728 || test ! -s conftest.err'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; } &&
17734 { ac_try='test -s conftest$ac_exeext'
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; }; then
17740 ac_cv_lib_dld_dld_link=yes
17742 echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17745 ac_cv_lib_dld_dld_link=no
17747 rm -f conftest.err conftest.$ac_objext \
17748 conftest$ac_exeext conftest.$ac_ext
17749 LIBS=$ac_check_lib_save_LIBS
17751 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17752 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17753 if test $ac_cv_lib_dld_dld_link = yes; then
17754 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17775 if test "x$lt_cv_dlopen" != xno; then
17781 case $lt_cv_dlopen in
17783 save_CPPFLAGS="$CPPFLAGS"
17784 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17786 save_LDFLAGS="$LDFLAGS"
17787 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17790 LIBS="$lt_cv_dlopen_libs $LIBS"
17792 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17793 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17794 if test "${lt_cv_dlopen_self+set}" = set; then
17795 echo $ECHO_N "(cached) $ECHO_C" >&6
17797 if test "$cross_compiling" = yes; then :
17798 lt_cv_dlopen_self=cross
17800 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17801 lt_status=$lt_dlunknown
17802 cat > conftest.$ac_ext <<EOF
17803 #line 17803 "configure"
17804 #include "confdefs.h"
17813 # define LT_DLGLOBAL RTLD_GLOBAL
17816 # define LT_DLGLOBAL DL_GLOBAL
17818 # define LT_DLGLOBAL 0
17822 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17823 find out it does not work in some platform. */
17824 #ifndef LT_DLLAZY_OR_NOW
17826 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17829 # define LT_DLLAZY_OR_NOW DL_LAZY
17832 # define LT_DLLAZY_OR_NOW RTLD_NOW
17835 # define LT_DLLAZY_OR_NOW DL_NOW
17837 # define LT_DLLAZY_OR_NOW 0
17845 extern "C" void exit (int);
17848 void fnord() { int i=42;}
17851 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17852 int status = $lt_dlunknown;
17856 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17857 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17858 /* dlclose (self); */
17864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17865 (eval $ac_link) 2>&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17869 (./conftest; exit; ) 2>/dev/null
17871 case x$lt_status in
17872 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17873 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17874 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17877 # compilation failed
17878 lt_cv_dlopen_self=no
17885 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17886 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17888 if test "x$lt_cv_dlopen_self" = xyes; then
17889 LDFLAGS="$LDFLAGS $link_static_flag"
17890 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17891 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17892 if test "${lt_cv_dlopen_self_static+set}" = set; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
17895 if test "$cross_compiling" = yes; then :
17896 lt_cv_dlopen_self_static=cross
17898 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17899 lt_status=$lt_dlunknown
17900 cat > conftest.$ac_ext <<EOF
17901 #line 17901 "configure"
17902 #include "confdefs.h"
17911 # define LT_DLGLOBAL RTLD_GLOBAL
17914 # define LT_DLGLOBAL DL_GLOBAL
17916 # define LT_DLGLOBAL 0
17920 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17921 find out it does not work in some platform. */
17922 #ifndef LT_DLLAZY_OR_NOW
17924 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17927 # define LT_DLLAZY_OR_NOW DL_LAZY
17930 # define LT_DLLAZY_OR_NOW RTLD_NOW
17933 # define LT_DLLAZY_OR_NOW DL_NOW
17935 # define LT_DLLAZY_OR_NOW 0
17943 extern "C" void exit (int);
17946 void fnord() { int i=42;}
17949 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17950 int status = $lt_dlunknown;
17954 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17955 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17956 /* dlclose (self); */
17962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17963 (eval $ac_link) 2>&5
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17967 (./conftest; exit; ) 2>/dev/null
17969 case x$lt_status in
17970 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17971 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17972 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17975 # compilation failed
17976 lt_cv_dlopen_self_static=no
17983 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17984 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17987 CPPFLAGS="$save_CPPFLAGS"
17988 LDFLAGS="$save_LDFLAGS"
17993 case $lt_cv_dlopen_self in
17994 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17995 *) enable_dlopen_self=unknown ;;
17998 case $lt_cv_dlopen_self_static in
17999 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18000 *) enable_dlopen_self_static=unknown ;;
18005 # The else clause should only fire when bootstrapping the
18006 # libtool distribution, otherwise you forgot to ship ltmain.sh
18007 # with your package, and you will get complaints that there are
18008 # no rules to generate ltmain.sh.
18009 if test -f "$ltmain"; then
18010 # See if we are running on zsh, and set the options which allow our commands through
18011 # without removal of \ escapes.
18012 if test -n "${ZSH_VERSION+set}" ; then
18013 setopt NO_GLOB_SUBST
18015 # Now quote all the things that may contain metacharacters while being
18016 # careful not to overquote the AC_SUBSTed values. We take copies of the
18017 # variables and quote the copies for generation of the libtool script.
18018 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18020 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18021 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18022 deplibs_check_method reload_flag reload_cmds need_locks \
18023 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18024 lt_cv_sys_global_symbol_to_c_name_address \
18025 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18026 old_postinstall_cmds old_postuninstall_cmds \
18030 lt_prog_compiler_wl_GCJ \
18031 lt_prog_compiler_pic_GCJ \
18032 lt_prog_compiler_static_GCJ \
18033 lt_prog_compiler_no_builtin_flag_GCJ \
18034 export_dynamic_flag_spec_GCJ \
18035 thread_safe_flag_spec_GCJ \
18036 whole_archive_flag_spec_GCJ \
18037 enable_shared_with_static_runtimes_GCJ \
18038 old_archive_cmds_GCJ \
18039 old_archive_from_new_cmds_GCJ \
18040 predep_objects_GCJ \
18041 postdep_objects_GCJ \
18044 compiler_lib_search_path_GCJ \
18046 archive_expsym_cmds_GCJ \
18047 postinstall_cmds_GCJ \
18048 postuninstall_cmds_GCJ \
18049 old_archive_from_expsyms_cmds_GCJ \
18050 allow_undefined_flag_GCJ \
18051 no_undefined_flag_GCJ \
18052 export_symbols_cmds_GCJ \
18053 hardcode_libdir_flag_spec_GCJ \
18054 hardcode_libdir_flag_spec_ld_GCJ \
18055 hardcode_libdir_separator_GCJ \
18056 hardcode_automatic_GCJ \
18058 module_expsym_cmds_GCJ \
18059 lt_cv_prog_compiler_c_o_GCJ \
18060 exclude_expsyms_GCJ \
18061 include_expsyms_GCJ; do
18064 old_archive_cmds_GCJ | \
18065 old_archive_from_new_cmds_GCJ | \
18066 archive_cmds_GCJ | \
18067 archive_expsym_cmds_GCJ | \
18068 module_cmds_GCJ | \
18069 module_expsym_cmds_GCJ | \
18070 old_archive_from_expsyms_cmds_GCJ | \
18071 export_symbols_cmds_GCJ | \
18072 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18073 postinstall_cmds | postuninstall_cmds | \
18074 old_postinstall_cmds | old_postuninstall_cmds | \
18075 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18076 # Double-quote double-evaled strings.
18077 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18080 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18086 *'\$0 --fallback-echo"')
18087 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18093 cat <<__EOF__ >> "$cfgfile"
18094 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18096 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18098 # Shell to use when invoking shell scripts.
18101 # Whether or not to build shared libraries.
18102 build_libtool_libs=$enable_shared
18104 # Whether or not to build static libraries.
18105 build_old_libs=$enable_static
18107 # Whether or not to add -lc for building shared libraries.
18108 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18110 # Whether or not to disallow shared libs when runtime libs are static
18111 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18113 # Whether or not to optimize for fast installation.
18114 fast_install=$enable_fast_install
18117 host_alias=$host_alias
18120 # An echo program that does not interpret backslashes.
18125 AR_FLAGS=$lt_AR_FLAGS
18130 # A language-specific compiler.
18131 CC=$lt_compiler_GCJ
18133 # Is the compiler the GNU C compiler?
18139 # The linker used to build libraries.
18142 # Whether we need hard or soft links.
18145 # A BSD-compatible nm program.
18148 # A symbol stripping program
18151 # Used to examine libraries when file_magic_cmd begins "file"
18152 MAGIC_CMD=$MAGIC_CMD
18154 # Used on cygwin: DLL creation program.
18157 # Used on cygwin: object dumper.
18160 # Used on cygwin: assembler.
18163 # The name of the directory that contains temporary libtool files.
18166 # How to create reloadable object files.
18167 reload_flag=$lt_reload_flag
18168 reload_cmds=$lt_reload_cmds
18170 # How to pass a linker flag through the compiler.
18171 wl=$lt_lt_prog_compiler_wl_GCJ
18173 # Object file suffix (normally "o").
18174 objext="$ac_objext"
18176 # Old archive suffix (normally "a").
18179 # Shared library suffix (normally ".so").
18180 shrext_cmds='$shrext_cmds'
18182 # Executable file suffix (normally "").
18185 # Additional compiler flags for building library objects.
18186 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18189 # What is the maximum length of a command?
18190 max_cmd_len=$lt_cv_sys_max_cmd_len
18192 # Does compiler simultaneously support -c and -o options?
18193 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18195 # Must we lock files when doing compilation ?
18196 need_locks=$lt_need_locks
18198 # Do we need the lib prefix for modules?
18199 need_lib_prefix=$need_lib_prefix
18201 # Do we need a version for libraries?
18202 need_version=$need_version
18204 # Whether dlopen is supported.
18205 dlopen_support=$enable_dlopen
18207 # Whether dlopen of programs is supported.
18208 dlopen_self=$enable_dlopen_self
18210 # Whether dlopen of statically linked programs is supported.
18211 dlopen_self_static=$enable_dlopen_self_static
18213 # Compiler flag to prevent dynamic linking.
18214 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18216 # Compiler flag to turn off builtin functions.
18217 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18219 # Compiler flag to allow reflexive dlopens.
18220 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18222 # Compiler flag to generate shared objects directly from archives.
18223 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18225 # Compiler flag to generate thread-safe objects.
18226 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18228 # Library versioning type.
18229 version_type=$version_type
18231 # Format of library name prefix.
18232 libname_spec=$lt_libname_spec
18234 # List of archive names. First name is the real one, the rest are links.
18235 # The last name is the one that the linker finds with -lNAME.
18236 library_names_spec=$lt_library_names_spec
18238 # The coded name of the library, if different from the real name.
18239 soname_spec=$lt_soname_spec
18241 # Commands used to build and install an old-style archive.
18243 old_archive_cmds=$lt_old_archive_cmds_GCJ
18244 old_postinstall_cmds=$lt_old_postinstall_cmds
18245 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18247 # Create an old-style archive from a shared archive.
18248 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18250 # Create a temporary old-style archive to link instead of a shared archive.
18251 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18253 # Commands used to build and install a shared archive.
18254 archive_cmds=$lt_archive_cmds_GCJ
18255 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18256 postinstall_cmds=$lt_postinstall_cmds
18257 postuninstall_cmds=$lt_postuninstall_cmds
18259 # Commands used to build a loadable module (assumed same as above if empty)
18260 module_cmds=$lt_module_cmds_GCJ
18261 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18263 # Commands to strip libraries.
18264 old_striplib=$lt_old_striplib
18265 striplib=$lt_striplib
18267 # Dependencies to place before the objects being linked to create a
18269 predep_objects=$lt_predep_objects_GCJ
18271 # Dependencies to place after the objects being linked to create a
18273 postdep_objects=$lt_postdep_objects_GCJ
18275 # Dependencies to place before the objects being linked to create a
18277 predeps=$lt_predeps_GCJ
18279 # Dependencies to place after the objects being linked to create a
18281 postdeps=$lt_postdeps_GCJ
18283 # The library search path used internally by the compiler when linking
18284 # a shared library.
18285 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18287 # Method to check whether dependent libraries are shared objects.
18288 deplibs_check_method=$lt_deplibs_check_method
18290 # Command to use when deplibs_check_method == file_magic.
18291 file_magic_cmd=$lt_file_magic_cmd
18293 # Flag that allows shared libraries with undefined symbols to be built.
18294 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18296 # Flag that forces no undefined symbols.
18297 no_undefined_flag=$lt_no_undefined_flag_GCJ
18299 # Commands used to finish a libtool library installation in a directory.
18300 finish_cmds=$lt_finish_cmds
18302 # Same as above, but a single script fragment to be evaled but not shown.
18303 finish_eval=$lt_finish_eval
18305 # Take the output of nm and produce a listing of raw symbols and C names.
18306 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18308 # Transform the output of nm in a proper C declaration
18309 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18311 # Transform the output of nm in a C name address pair
18312 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18314 # This is the shared library runtime path variable.
18315 runpath_var=$runpath_var
18317 # This is the shared library path variable.
18318 shlibpath_var=$shlibpath_var
18320 # Is shlibpath searched before the hard-coded library search path?
18321 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18323 # How to hardcode a shared library path into an executable.
18324 hardcode_action=$hardcode_action_GCJ
18326 # Whether we should hardcode library paths into libraries.
18327 hardcode_into_libs=$hardcode_into_libs
18329 # Flag to hardcode \$libdir into a binary during linking.
18330 # This must work even if \$libdir does not exist.
18331 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18333 # If ld is used when linking, flag to hardcode \$libdir into
18334 # a binary during linking. This must work even if \$libdir does
18336 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18338 # Whether we need a single -rpath flag with a separated argument.
18339 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18341 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18342 # resulting binary.
18343 hardcode_direct=$hardcode_direct_GCJ
18345 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18346 # resulting binary.
18347 hardcode_minus_L=$hardcode_minus_L_GCJ
18349 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18350 # the resulting binary.
18351 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18353 # Set to yes if building a shared library automatically hardcodes DIR into the library
18354 # and all subsequent libraries and executables linked against it.
18355 hardcode_automatic=$hardcode_automatic_GCJ
18357 # Variables whose values should be saved in libtool wrapper scripts and
18358 # restored at relink time.
18359 variables_saved_for_relink="$variables_saved_for_relink"
18361 # Whether libtool must link a program against all its dependency libraries.
18362 link_all_deplibs=$link_all_deplibs_GCJ
18364 # Compile-time system search path for libraries
18365 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18367 # Run-time system search path for libraries
18368 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18370 # Fix the shell variable \$srcfile for the compiler.
18371 fix_srcfile_path="$fix_srcfile_path_GCJ"
18373 # Set to yes if exported symbols are required.
18374 always_export_symbols=$always_export_symbols_GCJ
18376 # The commands to list exported symbols.
18377 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18379 # The commands to extract the exported symbol list from a shared archive.
18380 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18382 # Symbols that should not be listed in the preloaded symbols.
18383 exclude_expsyms=$lt_exclude_expsyms_GCJ
18385 # Symbols that must always be exported.
18386 include_expsyms=$lt_include_expsyms_GCJ
18388 # ### END LIBTOOL TAG CONFIG: $tagname
18394 # If there is no Makefile yet, we rely on a make rule to execute
18395 # `config.status --recheck' to rerun these tests and create the
18396 # libtool script then.
18397 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18398 if test -f "$ltmain_in"; then
18399 test -f Makefile && make "$ltmain"
18405 ac_cpp='$CPP $CPPFLAGS'
18406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18419 ac_cpp='$CPP $CPPFLAGS'
18420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18425 # Source file extension for RC test sources.
18428 # Object file extension for compiled RC test sources.
18432 # Code to be used in simple compile tests
18433 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18435 # Code to be used in simple link tests
18436 lt_simple_link_test_code="$lt_simple_compile_test_code"
18438 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18440 # If no C compiler was specified, use CC.
18443 # Allow CC to be a program name with arguments.
18447 # Allow CC to be a program name with arguments.
18452 lt_cv_prog_compiler_c_o_RC=yes
18454 # The else clause should only fire when bootstrapping the
18455 # libtool distribution, otherwise you forgot to ship ltmain.sh
18456 # with your package, and you will get complaints that there are
18457 # no rules to generate ltmain.sh.
18458 if test -f "$ltmain"; then
18459 # See if we are running on zsh, and set the options which allow our commands through
18460 # without removal of \ escapes.
18461 if test -n "${ZSH_VERSION+set}" ; then
18462 setopt NO_GLOB_SUBST
18464 # Now quote all the things that may contain metacharacters while being
18465 # careful not to overquote the AC_SUBSTed values. We take copies of the
18466 # variables and quote the copies for generation of the libtool script.
18467 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18469 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18470 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18471 deplibs_check_method reload_flag reload_cmds need_locks \
18472 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18473 lt_cv_sys_global_symbol_to_c_name_address \
18474 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18475 old_postinstall_cmds old_postuninstall_cmds \
18479 lt_prog_compiler_wl_RC \
18480 lt_prog_compiler_pic_RC \
18481 lt_prog_compiler_static_RC \
18482 lt_prog_compiler_no_builtin_flag_RC \
18483 export_dynamic_flag_spec_RC \
18484 thread_safe_flag_spec_RC \
18485 whole_archive_flag_spec_RC \
18486 enable_shared_with_static_runtimes_RC \
18487 old_archive_cmds_RC \
18488 old_archive_from_new_cmds_RC \
18489 predep_objects_RC \
18490 postdep_objects_RC \
18493 compiler_lib_search_path_RC \
18495 archive_expsym_cmds_RC \
18496 postinstall_cmds_RC \
18497 postuninstall_cmds_RC \
18498 old_archive_from_expsyms_cmds_RC \
18499 allow_undefined_flag_RC \
18500 no_undefined_flag_RC \
18501 export_symbols_cmds_RC \
18502 hardcode_libdir_flag_spec_RC \
18503 hardcode_libdir_flag_spec_ld_RC \
18504 hardcode_libdir_separator_RC \
18505 hardcode_automatic_RC \
18507 module_expsym_cmds_RC \
18508 lt_cv_prog_compiler_c_o_RC \
18509 exclude_expsyms_RC \
18510 include_expsyms_RC; do
18513 old_archive_cmds_RC | \
18514 old_archive_from_new_cmds_RC | \
18515 archive_cmds_RC | \
18516 archive_expsym_cmds_RC | \
18518 module_expsym_cmds_RC | \
18519 old_archive_from_expsyms_cmds_RC | \
18520 export_symbols_cmds_RC | \
18521 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18522 postinstall_cmds | postuninstall_cmds | \
18523 old_postinstall_cmds | old_postuninstall_cmds | \
18524 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18525 # Double-quote double-evaled strings.
18526 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18529 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18535 *'\$0 --fallback-echo"')
18536 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18542 cat <<__EOF__ >> "$cfgfile"
18543 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18545 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18547 # Shell to use when invoking shell scripts.
18550 # Whether or not to build shared libraries.
18551 build_libtool_libs=$enable_shared
18553 # Whether or not to build static libraries.
18554 build_old_libs=$enable_static
18556 # Whether or not to add -lc for building shared libraries.
18557 build_libtool_need_lc=$archive_cmds_need_lc_RC
18559 # Whether or not to disallow shared libs when runtime libs are static
18560 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18562 # Whether or not to optimize for fast installation.
18563 fast_install=$enable_fast_install
18566 host_alias=$host_alias
18569 # An echo program that does not interpret backslashes.
18574 AR_FLAGS=$lt_AR_FLAGS
18579 # A language-specific compiler.
18582 # Is the compiler the GNU C compiler?
18588 # The linker used to build libraries.
18591 # Whether we need hard or soft links.
18594 # A BSD-compatible nm program.
18597 # A symbol stripping program
18600 # Used to examine libraries when file_magic_cmd begins "file"
18601 MAGIC_CMD=$MAGIC_CMD
18603 # Used on cygwin: DLL creation program.
18606 # Used on cygwin: object dumper.
18609 # Used on cygwin: assembler.
18612 # The name of the directory that contains temporary libtool files.
18615 # How to create reloadable object files.
18616 reload_flag=$lt_reload_flag
18617 reload_cmds=$lt_reload_cmds
18619 # How to pass a linker flag through the compiler.
18620 wl=$lt_lt_prog_compiler_wl_RC
18622 # Object file suffix (normally "o").
18623 objext="$ac_objext"
18625 # Old archive suffix (normally "a").
18628 # Shared library suffix (normally ".so").
18629 shrext_cmds='$shrext_cmds'
18631 # Executable file suffix (normally "").
18634 # Additional compiler flags for building library objects.
18635 pic_flag=$lt_lt_prog_compiler_pic_RC
18638 # What is the maximum length of a command?
18639 max_cmd_len=$lt_cv_sys_max_cmd_len
18641 # Does compiler simultaneously support -c and -o options?
18642 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18644 # Must we lock files when doing compilation ?
18645 need_locks=$lt_need_locks
18647 # Do we need the lib prefix for modules?
18648 need_lib_prefix=$need_lib_prefix
18650 # Do we need a version for libraries?
18651 need_version=$need_version
18653 # Whether dlopen is supported.
18654 dlopen_support=$enable_dlopen
18656 # Whether dlopen of programs is supported.
18657 dlopen_self=$enable_dlopen_self
18659 # Whether dlopen of statically linked programs is supported.
18660 dlopen_self_static=$enable_dlopen_self_static
18662 # Compiler flag to prevent dynamic linking.
18663 link_static_flag=$lt_lt_prog_compiler_static_RC
18665 # Compiler flag to turn off builtin functions.
18666 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18668 # Compiler flag to allow reflexive dlopens.
18669 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18671 # Compiler flag to generate shared objects directly from archives.
18672 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18674 # Compiler flag to generate thread-safe objects.
18675 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18677 # Library versioning type.
18678 version_type=$version_type
18680 # Format of library name prefix.
18681 libname_spec=$lt_libname_spec
18683 # List of archive names. First name is the real one, the rest are links.
18684 # The last name is the one that the linker finds with -lNAME.
18685 library_names_spec=$lt_library_names_spec
18687 # The coded name of the library, if different from the real name.
18688 soname_spec=$lt_soname_spec
18690 # Commands used to build and install an old-style archive.
18692 old_archive_cmds=$lt_old_archive_cmds_RC
18693 old_postinstall_cmds=$lt_old_postinstall_cmds
18694 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18696 # Create an old-style archive from a shared archive.
18697 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18699 # Create a temporary old-style archive to link instead of a shared archive.
18700 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18702 # Commands used to build and install a shared archive.
18703 archive_cmds=$lt_archive_cmds_RC
18704 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18705 postinstall_cmds=$lt_postinstall_cmds
18706 postuninstall_cmds=$lt_postuninstall_cmds
18708 # Commands used to build a loadable module (assumed same as above if empty)
18709 module_cmds=$lt_module_cmds_RC
18710 module_expsym_cmds=$lt_module_expsym_cmds_RC
18712 # Commands to strip libraries.
18713 old_striplib=$lt_old_striplib
18714 striplib=$lt_striplib
18716 # Dependencies to place before the objects being linked to create a
18718 predep_objects=$lt_predep_objects_RC
18720 # Dependencies to place after the objects being linked to create a
18722 postdep_objects=$lt_postdep_objects_RC
18724 # Dependencies to place before the objects being linked to create a
18726 predeps=$lt_predeps_RC
18728 # Dependencies to place after the objects being linked to create a
18730 postdeps=$lt_postdeps_RC
18732 # The library search path used internally by the compiler when linking
18733 # a shared library.
18734 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18736 # Method to check whether dependent libraries are shared objects.
18737 deplibs_check_method=$lt_deplibs_check_method
18739 # Command to use when deplibs_check_method == file_magic.
18740 file_magic_cmd=$lt_file_magic_cmd
18742 # Flag that allows shared libraries with undefined symbols to be built.
18743 allow_undefined_flag=$lt_allow_undefined_flag_RC
18745 # Flag that forces no undefined symbols.
18746 no_undefined_flag=$lt_no_undefined_flag_RC
18748 # Commands used to finish a libtool library installation in a directory.
18749 finish_cmds=$lt_finish_cmds
18751 # Same as above, but a single script fragment to be evaled but not shown.
18752 finish_eval=$lt_finish_eval
18754 # Take the output of nm and produce a listing of raw symbols and C names.
18755 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18757 # Transform the output of nm in a proper C declaration
18758 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18760 # Transform the output of nm in a C name address pair
18761 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18763 # This is the shared library runtime path variable.
18764 runpath_var=$runpath_var
18766 # This is the shared library path variable.
18767 shlibpath_var=$shlibpath_var
18769 # Is shlibpath searched before the hard-coded library search path?
18770 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18772 # How to hardcode a shared library path into an executable.
18773 hardcode_action=$hardcode_action_RC
18775 # Whether we should hardcode library paths into libraries.
18776 hardcode_into_libs=$hardcode_into_libs
18778 # Flag to hardcode \$libdir into a binary during linking.
18779 # This must work even if \$libdir does not exist.
18780 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18782 # If ld is used when linking, flag to hardcode \$libdir into
18783 # a binary during linking. This must work even if \$libdir does
18785 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18787 # Whether we need a single -rpath flag with a separated argument.
18788 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18790 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18791 # resulting binary.
18792 hardcode_direct=$hardcode_direct_RC
18794 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18795 # resulting binary.
18796 hardcode_minus_L=$hardcode_minus_L_RC
18798 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18799 # the resulting binary.
18800 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18802 # Set to yes if building a shared library automatically hardcodes DIR into the library
18803 # and all subsequent libraries and executables linked against it.
18804 hardcode_automatic=$hardcode_automatic_RC
18806 # Variables whose values should be saved in libtool wrapper scripts and
18807 # restored at relink time.
18808 variables_saved_for_relink="$variables_saved_for_relink"
18810 # Whether libtool must link a program against all its dependency libraries.
18811 link_all_deplibs=$link_all_deplibs_RC
18813 # Compile-time system search path for libraries
18814 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18816 # Run-time system search path for libraries
18817 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18819 # Fix the shell variable \$srcfile for the compiler.
18820 fix_srcfile_path="$fix_srcfile_path_RC"
18822 # Set to yes if exported symbols are required.
18823 always_export_symbols=$always_export_symbols_RC
18825 # The commands to list exported symbols.
18826 export_symbols_cmds=$lt_export_symbols_cmds_RC
18828 # The commands to extract the exported symbol list from a shared archive.
18829 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18831 # Symbols that should not be listed in the preloaded symbols.
18832 exclude_expsyms=$lt_exclude_expsyms_RC
18834 # Symbols that must always be exported.
18835 include_expsyms=$lt_include_expsyms_RC
18837 # ### END LIBTOOL TAG CONFIG: $tagname
18843 # If there is no Makefile yet, we rely on a make rule to execute
18844 # `config.status --recheck' to rerun these tests and create the
18845 # libtool script then.
18846 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18847 if test -f "$ltmain_in"; then
18848 test -f Makefile && make "$ltmain"
18854 ac_cpp='$CPP $CPPFLAGS'
18855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18864 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18865 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18866 { (exit 1); exit 1; }; }
18870 # Append the new tag name to the list of available tags.
18871 if test -n "$tagname" ; then
18872 available_tags="$available_tags $tagname"
18878 # Now substitute the updated list of available tags.
18879 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18880 mv "${ofile}T" "$ofile"
18884 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18885 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18886 { (exit 1); exit 1; }; }
18892 # This can be used to rebuild libtool when needed
18893 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18895 # Always use our own libtool.
18896 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18898 # Prevent multiple expansion
18920 # Extract the first word of "dot", so it can be a program name with args.
18921 set dummy dot; ac_word=$2
18922 echo "$as_me:$LINENO: checking for $ac_word" >&5
18923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18924 if test "${ac_cv_path_DOT+set}" = set; then
18925 echo $ECHO_N "(cached) $ECHO_C" >&6
18929 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18933 for as_dir in $PATH
18936 test -z "$as_dir" && as_dir=.
18937 for ac_exec_ext in '' $ac_executable_extensions; do
18938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18939 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18946 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18950 DOT=$ac_cv_path_DOT
18952 if test -n "$DOT"; then
18953 echo "$as_me:$LINENO: result: $DOT" >&5
18954 echo "${ECHO_T}$DOT" >&6
18956 echo "$as_me:$LINENO: result: no" >&5
18957 echo "${ECHO_T}no" >&6
18960 # Extract the first word of "etags", so it can be a program name with args.
18961 set dummy etags; ac_word=$2
18962 echo "$as_me:$LINENO: checking for $ac_word" >&5
18963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18964 if test "${ac_cv_path_ETAGS+set}" = set; then
18965 echo $ECHO_N "(cached) $ECHO_C" >&6
18969 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18973 for as_dir in $PATH
18976 test -z "$as_dir" && as_dir=.
18977 for ac_exec_ext in '' $ac_executable_extensions; do
18978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18979 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18986 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18990 ETAGS=$ac_cv_path_ETAGS
18992 if test -n "$ETAGS"; then
18993 echo "$as_me:$LINENO: result: $ETAGS" >&5
18994 echo "${ECHO_T}$ETAGS" >&6
18996 echo "$as_me:$LINENO: result: no" >&5
18997 echo "${ECHO_T}no" >&6
19000 etags_version=`$ETAGS --version 2>&1`
19001 case "$etags_version" in
19002 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19003 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19004 *) ETAGSFLAGS="" ;;
19006 ETAGSFLAGS=$ETAGSFLAGS
19008 # Extract the first word of "python", so it can be a program name with args.
19009 set dummy python; ac_word=$2
19010 echo "$as_me:$LINENO: checking for $ac_word" >&5
19011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19012 if test "${ac_cv_path_PYTHON+set}" = set; then
19013 echo $ECHO_N "(cached) $ECHO_C" >&6
19017 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19021 for as_dir in $PATH
19024 test -z "$as_dir" && as_dir=.
19025 for ac_exec_ext in '' $ac_executable_extensions; do
19026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19027 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19034 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
19038 PYTHON=$ac_cv_path_PYTHON
19040 if test -n "$PYTHON"; then
19041 echo "$as_me:$LINENO: result: $PYTHON" >&5
19042 echo "${ECHO_T}$PYTHON" >&6
19044 echo "$as_me:$LINENO: result: no" >&5
19045 echo "${ECHO_T}no" >&6
19048 if test "$PYTHON" = "false"
19050 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19051 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
19053 # Extract the first word of "qmtest", so it can be a program name with args.
19054 set dummy qmtest; ac_word=$2
19055 echo "$as_me:$LINENO: checking for $ac_word" >&5
19056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19057 if test "${ac_cv_path_QMTEST+set}" = set; then
19058 echo $ECHO_N "(cached) $ECHO_C" >&6
19062 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19066 for as_dir in $PATH
19069 test -z "$as_dir" && as_dir=.
19070 for ac_exec_ext in '' $ac_executable_extensions; do
19071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19072 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19079 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
19083 QMTEST=$ac_cv_path_QMTEST
19085 if test -n "$QMTEST"; then
19086 echo "$as_me:$LINENO: result: $QMTEST" >&5
19087 echo "${ECHO_T}$QMTEST" >&6
19089 echo "$as_me:$LINENO: result: no" >&5
19090 echo "${ECHO_T}no" >&6
19093 if test "$QMTEST" = "false"
19095 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19096 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
19099 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19100 pymajor=`echo $pyversion | cut -d. -f1`
19101 pyminor=`echo $pyversion | cut -d. -f2`
19103 if test "$pymajor" -ge "2"
19105 if test "$pymajor" -eq "2"
19107 if test "$pyminor" -lt "2"
19109 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19110 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19114 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19115 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19119 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19120 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19121 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19122 echo $ECHO_N "(cached) $ECHO_C" >&6
19124 ac_check_lib_save_LIBS=$LIBS
19126 cat >conftest.$ac_ext <<_ACEOF
19129 cat confdefs.h >>conftest.$ac_ext
19130 cat >>conftest.$ac_ext <<_ACEOF
19131 /* end confdefs.h. */
19133 /* Override any gcc2 internal prototype to avoid an error. */
19137 /* We use char because int might match the return type of a gcc2
19138 builtin and then its argument prototype would still apply. */
19148 rm -f conftest.$ac_objext conftest$ac_exeext
19149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19150 (eval $ac_link) 2>conftest.er1
19152 grep -v '^ *+' conftest.er1 >conftest.err
19154 cat conftest.err >&5
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); } &&
19157 { ac_try='test -z "$ac_c_werror_flag"
19158 || test ! -s conftest.err'
19159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160 (eval $ac_try) 2>&5
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; } &&
19164 { ac_try='test -s conftest$ac_exeext'
19165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166 (eval $ac_try) 2>&5
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); }; }; then
19170 ac_cv_lib_elf_elf_begin=yes
19172 echo "$as_me: failed program was:" >&5
19173 sed 's/^/| /' conftest.$ac_ext >&5
19175 ac_cv_lib_elf_elf_begin=no
19177 rm -f conftest.err conftest.$ac_objext \
19178 conftest$ac_exeext conftest.$ac_ext
19179 LIBS=$ac_check_lib_save_LIBS
19181 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19182 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19183 if test $ac_cv_lib_elf_elf_begin = yes; then
19184 cat >>confdefs.h <<_ACEOF
19185 #define HAVE_LIBELF 1
19193 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19194 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19195 if test "${ac_cv_search_dlopen+set}" = set; then
19196 echo $ECHO_N "(cached) $ECHO_C" >&6
19198 ac_func_search_save_LIBS=$LIBS
19199 ac_cv_search_dlopen=no
19200 cat >conftest.$ac_ext <<_ACEOF
19203 cat confdefs.h >>conftest.$ac_ext
19204 cat >>conftest.$ac_ext <<_ACEOF
19205 /* end confdefs.h. */
19207 /* Override any gcc2 internal prototype to avoid an error. */
19211 /* We use char because int might match the return type of a gcc2
19212 builtin and then its argument prototype would still apply. */
19222 rm -f conftest.$ac_objext conftest$ac_exeext
19223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19224 (eval $ac_link) 2>conftest.er1
19226 grep -v '^ *+' conftest.er1 >conftest.err
19228 cat conftest.err >&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); } &&
19231 { ac_try='test -z "$ac_c_werror_flag"
19232 || test ! -s conftest.err'
19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; } &&
19238 { ac_try='test -s conftest$ac_exeext'
19239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19240 (eval $ac_try) 2>&5
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; }; then
19244 ac_cv_search_dlopen="none required"
19246 echo "$as_me: failed program was:" >&5
19247 sed 's/^/| /' conftest.$ac_ext >&5
19250 rm -f conftest.err conftest.$ac_objext \
19251 conftest$ac_exeext conftest.$ac_ext
19252 if test "$ac_cv_search_dlopen" = no; then
19253 for ac_lib in dl; do
19254 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19255 cat >conftest.$ac_ext <<_ACEOF
19258 cat confdefs.h >>conftest.$ac_ext
19259 cat >>conftest.$ac_ext <<_ACEOF
19260 /* end confdefs.h. */
19262 /* Override any gcc2 internal prototype to avoid an error. */
19266 /* We use char because int might match the return type of a gcc2
19267 builtin and then its argument prototype would still apply. */
19277 rm -f conftest.$ac_objext conftest$ac_exeext
19278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19279 (eval $ac_link) 2>conftest.er1
19281 grep -v '^ *+' conftest.er1 >conftest.err
19283 cat conftest.err >&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); } &&
19286 { ac_try='test -z "$ac_c_werror_flag"
19287 || test ! -s conftest.err'
19288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19289 (eval $ac_try) 2>&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); }; } &&
19293 { ac_try='test -s conftest$ac_exeext'
19294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295 (eval $ac_try) 2>&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); }; }; then
19299 ac_cv_search_dlopen="-l$ac_lib"
19302 echo "$as_me: failed program was:" >&5
19303 sed 's/^/| /' conftest.$ac_ext >&5
19306 rm -f conftest.err conftest.$ac_objext \
19307 conftest$ac_exeext conftest.$ac_ext
19310 LIBS=$ac_func_search_save_LIBS
19312 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19313 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19314 if test "$ac_cv_search_dlopen" != no; then
19315 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19317 cat >>confdefs.h <<\_ACEOF
19318 #define HAVE_DLOPEN 1
19322 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19323 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19327 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19328 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19329 if test "${ac_cv_search_mallinfo+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19332 ac_func_search_save_LIBS=$LIBS
19333 ac_cv_search_mallinfo=no
19334 cat >conftest.$ac_ext <<_ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h. */
19341 /* Override any gcc2 internal prototype to avoid an error. */
19345 /* We use char because int might match the return type of a gcc2
19346 builtin and then its argument prototype would still apply. */
19356 rm -f conftest.$ac_objext conftest$ac_exeext
19357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19358 (eval $ac_link) 2>conftest.er1
19360 grep -v '^ *+' conftest.er1 >conftest.err
19362 cat conftest.err >&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } &&
19365 { ac_try='test -z "$ac_c_werror_flag"
19366 || test ! -s conftest.err'
19367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368 (eval $ac_try) 2>&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; } &&
19372 { ac_try='test -s conftest$ac_exeext'
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; }; then
19378 ac_cv_search_mallinfo="none required"
19380 echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19384 rm -f conftest.err conftest.$ac_objext \
19385 conftest$ac_exeext conftest.$ac_ext
19386 if test "$ac_cv_search_mallinfo" = no; then
19387 for ac_lib in malloc; do
19388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19389 cat >conftest.$ac_ext <<_ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19396 /* Override any gcc2 internal prototype to avoid an error. */
19400 /* We use char because int might match the return type of a gcc2
19401 builtin and then its argument prototype would still apply. */
19411 rm -f conftest.$ac_objext conftest$ac_exeext
19412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19413 (eval $ac_link) 2>conftest.er1
19415 grep -v '^ *+' conftest.er1 >conftest.err
19417 cat conftest.err >&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } &&
19420 { ac_try='test -z "$ac_c_werror_flag"
19421 || test ! -s conftest.err'
19422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19423 (eval $ac_try) 2>&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; } &&
19427 { ac_try='test -s conftest$ac_exeext'
19428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429 (eval $ac_try) 2>&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; }; then
19433 ac_cv_search_mallinfo="-l$ac_lib"
19436 echo "$as_me: failed program was:" >&5
19437 sed 's/^/| /' conftest.$ac_ext >&5
19440 rm -f conftest.err conftest.$ac_objext \
19441 conftest$ac_exeext conftest.$ac_ext
19444 LIBS=$ac_func_search_save_LIBS
19446 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19447 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19448 if test "$ac_cv_search_mallinfo" != no; then
19449 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19451 cat >>confdefs.h <<\_ACEOF
19452 #define HAVE_MALLINFO 1
19458 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19459 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19460 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19461 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 ac_func_search_save_LIBS=$LIBS
19464 ac_cv_search_pthread_mutex_lock=no
19465 cat >conftest.$ac_ext <<_ACEOF
19468 cat confdefs.h >>conftest.$ac_ext
19469 cat >>conftest.$ac_ext <<_ACEOF
19470 /* end confdefs.h. */
19472 /* Override any gcc2 internal prototype to avoid an error. */
19476 /* We use char because int might match the return type of a gcc2
19477 builtin and then its argument prototype would still apply. */
19478 char pthread_mutex_lock ();
19482 pthread_mutex_lock ();
19487 rm -f conftest.$ac_objext conftest$ac_exeext
19488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19489 (eval $ac_link) 2>conftest.er1
19491 grep -v '^ *+' conftest.er1 >conftest.err
19493 cat conftest.err >&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } &&
19496 { ac_try='test -z "$ac_c_werror_flag"
19497 || test ! -s conftest.err'
19498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19499 (eval $ac_try) 2>&5
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); }; } &&
19503 { ac_try='test -s conftest$ac_exeext'
19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; }; then
19509 ac_cv_search_pthread_mutex_lock="none required"
19511 echo "$as_me: failed program was:" >&5
19512 sed 's/^/| /' conftest.$ac_ext >&5
19515 rm -f conftest.err conftest.$ac_objext \
19516 conftest$ac_exeext conftest.$ac_ext
19517 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19518 for ac_lib in pthread; do
19519 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19520 cat >conftest.$ac_ext <<_ACEOF
19523 cat confdefs.h >>conftest.$ac_ext
19524 cat >>conftest.$ac_ext <<_ACEOF
19525 /* end confdefs.h. */
19527 /* Override any gcc2 internal prototype to avoid an error. */
19531 /* We use char because int might match the return type of a gcc2
19532 builtin and then its argument prototype would still apply. */
19533 char pthread_mutex_lock ();
19537 pthread_mutex_lock ();
19542 rm -f conftest.$ac_objext conftest$ac_exeext
19543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19544 (eval $ac_link) 2>conftest.er1
19546 grep -v '^ *+' conftest.er1 >conftest.err
19548 cat conftest.err >&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } &&
19551 { ac_try='test -z "$ac_c_werror_flag"
19552 || test ! -s conftest.err'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest$ac_exeext'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; }; then
19564 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19567 echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19571 rm -f conftest.err conftest.$ac_objext \
19572 conftest$ac_exeext conftest.$ac_ext
19575 LIBS=$ac_func_search_save_LIBS
19577 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19578 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19579 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19580 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19581 HAVE_PTHREAD_MUTEX_LOCK=1
19583 HAVE_PTHREAD_MUTEX_LOCK=0
19588 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19589 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19590 if test "${ac_cv_header_stdc+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19593 cat >conftest.$ac_ext <<_ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19599 #include <stdlib.h>
19600 #include <stdarg.h>
19601 #include <string.h>
19612 rm -f conftest.$ac_objext
19613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19614 (eval $ac_compile) 2>conftest.er1
19616 grep -v '^ *+' conftest.er1 >conftest.err
19618 cat conftest.err >&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } &&
19621 { ac_try='test -z "$ac_c_werror_flag"
19622 || test ! -s conftest.err'
19623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624 (eval $ac_try) 2>&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; } &&
19628 { ac_try='test -s conftest.$ac_objext'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; }; then
19634 ac_cv_header_stdc=yes
19636 echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19639 ac_cv_header_stdc=no
19641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19643 if test $ac_cv_header_stdc = yes; then
19644 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19645 cat >conftest.$ac_ext <<_ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19651 #include <string.h>
19654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19655 $EGREP "memchr" >/dev/null 2>&1; then
19658 ac_cv_header_stdc=no
19664 if test $ac_cv_header_stdc = yes; then
19665 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19666 cat >conftest.$ac_ext <<_ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19672 #include <stdlib.h>
19675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19676 $EGREP "free" >/dev/null 2>&1; then
19679 ac_cv_header_stdc=no
19685 if test $ac_cv_header_stdc = yes; then
19686 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19687 if test "$cross_compiling" = yes; then
19690 cat >conftest.$ac_ext <<_ACEOF
19693 cat confdefs.h >>conftest.$ac_ext
19694 cat >>conftest.$ac_ext <<_ACEOF
19695 /* end confdefs.h. */
19697 #if ((' ' & 0x0FF) == 0x020)
19698 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19699 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19701 # define ISLOWER(c) \
19702 (('a' <= (c) && (c) <= 'i') \
19703 || ('j' <= (c) && (c) <= 'r') \
19704 || ('s' <= (c) && (c) <= 'z'))
19705 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19708 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19713 for (i = 0; i < 256; i++)
19714 if (XOR (islower (i), ISLOWER (i))
19715 || toupper (i) != TOUPPER (i))
19720 rm -f conftest$ac_exeext
19721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19722 (eval $ac_link) 2>&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; }; then
19733 echo "$as_me: program exited with status $ac_status" >&5
19734 echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19737 ( exit $ac_status )
19738 ac_cv_header_stdc=no
19740 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19744 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19745 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19746 if test $ac_cv_header_stdc = yes; then
19748 cat >>confdefs.h <<\_ACEOF
19749 #define STDC_HEADERS 1
19754 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19755 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19756 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19757 echo $ECHO_N "(cached) $ECHO_C" >&6
19759 cat >conftest.$ac_ext <<_ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h. */
19765 #include <sys/types.h>
19766 #include <sys/wait.h>
19767 #ifndef WEXITSTATUS
19768 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19771 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19779 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19784 rm -f conftest.$ac_objext
19785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19786 (eval $ac_compile) 2>conftest.er1
19788 grep -v '^ *+' conftest.er1 >conftest.err
19790 cat conftest.err >&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); } &&
19793 { ac_try='test -z "$ac_c_werror_flag"
19794 || test ! -s conftest.err'
19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; } &&
19800 { ac_try='test -s conftest.$ac_objext'
19801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19802 (eval $ac_try) 2>&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; }; then
19806 ac_cv_header_sys_wait_h=yes
19808 echo "$as_me: failed program was:" >&5
19809 sed 's/^/| /' conftest.$ac_ext >&5
19811 ac_cv_header_sys_wait_h=no
19813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19815 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19816 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19817 if test $ac_cv_header_sys_wait_h = yes; then
19819 cat >>confdefs.h <<\_ACEOF
19820 #define HAVE_SYS_WAIT_H 1
19837 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h
19839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19841 echo "$as_me:$LINENO: checking for $ac_header" >&5
19842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19844 echo $ECHO_N "(cached) $ECHO_C" >&6
19846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19849 # Is the header compilable?
19850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19852 cat >conftest.$ac_ext <<_ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19858 $ac_includes_default
19859 #include <$ac_header>
19861 rm -f conftest.$ac_objext
19862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19863 (eval $ac_compile) 2>conftest.er1
19865 grep -v '^ *+' conftest.er1 >conftest.err
19867 cat conftest.err >&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } &&
19870 { ac_try='test -z "$ac_c_werror_flag"
19871 || test ! -s conftest.err'
19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; } &&
19877 { ac_try='test -s conftest.$ac_objext'
19878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879 (eval $ac_try) 2>&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; }; then
19883 ac_header_compiler=yes
19885 echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.$ac_ext >&5
19888 ac_header_compiler=no
19890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19892 echo "${ECHO_T}$ac_header_compiler" >&6
19894 # Is the header present?
19895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19897 cat >conftest.$ac_ext <<_ACEOF
19900 cat confdefs.h >>conftest.$ac_ext
19901 cat >>conftest.$ac_ext <<_ACEOF
19902 /* end confdefs.h. */
19903 #include <$ac_header>
19905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19908 grep -v '^ *+' conftest.er1 >conftest.err
19910 cat conftest.err >&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } >/dev/null; then
19913 if test -s conftest.err; then
19914 ac_cpp_err=$ac_c_preproc_warn_flag
19915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19922 if test -z "$ac_cpp_err"; then
19923 ac_header_preproc=yes
19925 echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19928 ac_header_preproc=no
19930 rm -f conftest.err conftest.$ac_ext
19931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19932 echo "${ECHO_T}$ac_header_preproc" >&6
19934 # So? What about this header?
19935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19941 ac_header_preproc=yes
19944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19958 ## ----------------------------------- ##
19959 ## Report this to llvmbugs@cs.uiuc.edu ##
19960 ## ----------------------------------- ##
19963 sed "s/^/$as_me: WARNING: /" >&2
19966 echo "$as_me:$LINENO: checking for $ac_header" >&5
19967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19971 eval "$as_ac_Header=\$ac_header_preproc"
19973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19978 cat >>confdefs.h <<_ACEOF
19979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19987 if test "${ac_cv_header_sys_types_h+set}" = set; then
19988 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19989 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19990 if test "${ac_cv_header_sys_types_h+set}" = set; then
19991 echo $ECHO_N "(cached) $ECHO_C" >&6
19993 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19994 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19996 # Is the header compilable?
19997 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19998 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19999 cat >conftest.$ac_ext <<_ACEOF
20002 cat confdefs.h >>conftest.$ac_ext
20003 cat >>conftest.$ac_ext <<_ACEOF
20004 /* end confdefs.h. */
20005 $ac_includes_default
20006 #include <sys/types.h>
20008 rm -f conftest.$ac_objext
20009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20010 (eval $ac_compile) 2>conftest.er1
20012 grep -v '^ *+' conftest.er1 >conftest.err
20014 cat conftest.err >&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); } &&
20017 { ac_try='test -z "$ac_c_werror_flag"
20018 || test ! -s conftest.err'
20019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020 (eval $ac_try) 2>&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); }; } &&
20024 { ac_try='test -s conftest.$ac_objext'
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; }; then
20030 ac_header_compiler=yes
20032 echo "$as_me: failed program was:" >&5
20033 sed 's/^/| /' conftest.$ac_ext >&5
20035 ac_header_compiler=no
20037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20039 echo "${ECHO_T}$ac_header_compiler" >&6
20041 # Is the header present?
20042 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20043 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20044 cat >conftest.$ac_ext <<_ACEOF
20047 cat confdefs.h >>conftest.$ac_ext
20048 cat >>conftest.$ac_ext <<_ACEOF
20049 /* end confdefs.h. */
20050 #include <sys/types.h>
20052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20055 grep -v '^ *+' conftest.er1 >conftest.err
20057 cat conftest.err >&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); } >/dev/null; then
20060 if test -s conftest.err; then
20061 ac_cpp_err=$ac_c_preproc_warn_flag
20062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20069 if test -z "$ac_cpp_err"; then
20070 ac_header_preproc=yes
20072 echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.$ac_ext >&5
20075 ac_header_preproc=no
20077 rm -f conftest.err conftest.$ac_ext
20078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20079 echo "${ECHO_T}$ac_header_preproc" >&6
20081 # So? What about this header?
20082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20084 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20085 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20086 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20087 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20088 ac_header_preproc=yes
20091 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20092 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20093 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20094 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20095 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20096 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20097 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20098 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
20099 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20100 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20101 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20102 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20105 ## ----------------------------------- ##
20106 ## Report this to llvmbugs@cs.uiuc.edu ##
20107 ## ----------------------------------- ##
20110 sed "s/^/$as_me: WARNING: /" >&2
20113 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20114 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20115 if test "${ac_cv_header_sys_types_h+set}" = set; then
20116 echo $ECHO_N "(cached) $ECHO_C" >&6
20118 ac_cv_header_sys_types_h=$ac_header_preproc
20120 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20121 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20124 if test $ac_cv_header_sys_types_h = yes; then
20125 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
20127 INCLUDE_SYS_TYPES_H=''
20132 if test "${ac_cv_header_inttypes_h+set}" = set; then
20133 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20134 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20135 if test "${ac_cv_header_inttypes_h+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20138 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20139 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20141 # Is the header compilable?
20142 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20143 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20144 cat >conftest.$ac_ext <<_ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20150 $ac_includes_default
20151 #include <inttypes.h>
20153 rm -f conftest.$ac_objext
20154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20155 (eval $ac_compile) 2>conftest.er1
20157 grep -v '^ *+' conftest.er1 >conftest.err
20159 cat conftest.err >&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); } &&
20162 { ac_try='test -z "$ac_c_werror_flag"
20163 || test ! -s conftest.err'
20164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165 (eval $ac_try) 2>&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; } &&
20169 { ac_try='test -s conftest.$ac_objext'
20170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171 (eval $ac_try) 2>&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); }; }; then
20175 ac_header_compiler=yes
20177 echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20180 ac_header_compiler=no
20182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20183 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20184 echo "${ECHO_T}$ac_header_compiler" >&6
20186 # Is the header present?
20187 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20188 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20189 cat >conftest.$ac_ext <<_ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20195 #include <inttypes.h>
20197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20200 grep -v '^ *+' conftest.er1 >conftest.err
20202 cat conftest.err >&5
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); } >/dev/null; then
20205 if test -s conftest.err; then
20206 ac_cpp_err=$ac_c_preproc_warn_flag
20207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20214 if test -z "$ac_cpp_err"; then
20215 ac_header_preproc=yes
20217 echo "$as_me: failed program was:" >&5
20218 sed 's/^/| /' conftest.$ac_ext >&5
20220 ac_header_preproc=no
20222 rm -f conftest.err conftest.$ac_ext
20223 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20224 echo "${ECHO_T}$ac_header_preproc" >&6
20226 # So? What about this header?
20227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20229 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20230 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20231 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20232 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20233 ac_header_preproc=yes
20236 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20237 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20238 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20239 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20240 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20241 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20242 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20243 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
20244 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20245 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20246 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20247 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20250 ## ----------------------------------- ##
20251 ## Report this to llvmbugs@cs.uiuc.edu ##
20252 ## ----------------------------------- ##
20255 sed "s/^/$as_me: WARNING: /" >&2
20258 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20259 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20260 if test "${ac_cv_header_inttypes_h+set}" = set; then
20261 echo $ECHO_N "(cached) $ECHO_C" >&6
20263 ac_cv_header_inttypes_h=$ac_header_preproc
20265 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20266 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20269 if test $ac_cv_header_inttypes_h = yes; then
20270 INCLUDE_INTTYPES_H='#include <inttypes.h>'
20272 INCLUDE_INTTYPES_H=''
20277 if test "${ac_cv_header_stdint_h+set}" = set; then
20278 echo "$as_me:$LINENO: checking for stdint.h" >&5
20279 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20280 if test "${ac_cv_header_stdint_h+set}" = set; then
20281 echo $ECHO_N "(cached) $ECHO_C" >&6
20283 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20284 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20286 # Is the header compilable?
20287 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20288 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20289 cat >conftest.$ac_ext <<_ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20295 $ac_includes_default
20296 #include <stdint.h>
20298 rm -f conftest.$ac_objext
20299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20300 (eval $ac_compile) 2>conftest.er1
20302 grep -v '^ *+' conftest.er1 >conftest.err
20304 cat conftest.err >&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } &&
20307 { ac_try='test -z "$ac_c_werror_flag"
20308 || test ! -s conftest.err'
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; } &&
20314 { ac_try='test -s conftest.$ac_objext'
20315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316 (eval $ac_try) 2>&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; }; then
20320 ac_header_compiler=yes
20322 echo "$as_me: failed program was:" >&5
20323 sed 's/^/| /' conftest.$ac_ext >&5
20325 ac_header_compiler=no
20327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20329 echo "${ECHO_T}$ac_header_compiler" >&6
20331 # Is the header present?
20332 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20333 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20334 cat >conftest.$ac_ext <<_ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h. */
20340 #include <stdint.h>
20342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20345 grep -v '^ *+' conftest.er1 >conftest.err
20347 cat conftest.err >&5
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); } >/dev/null; then
20350 if test -s conftest.err; then
20351 ac_cpp_err=$ac_c_preproc_warn_flag
20352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20359 if test -z "$ac_cpp_err"; then
20360 ac_header_preproc=yes
20362 echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20365 ac_header_preproc=no
20367 rm -f conftest.err conftest.$ac_ext
20368 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20369 echo "${ECHO_T}$ac_header_preproc" >&6
20371 # So? What about this header?
20372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20374 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20375 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20376 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20377 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20378 ac_header_preproc=yes
20381 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20382 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20383 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20384 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20385 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20386 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20387 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20388 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20389 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20390 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20391 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20392 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20395 ## ----------------------------------- ##
20396 ## Report this to llvmbugs@cs.uiuc.edu ##
20397 ## ----------------------------------- ##
20400 sed "s/^/$as_me: WARNING: /" >&2
20403 echo "$as_me:$LINENO: checking for stdint.h" >&5
20404 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20405 if test "${ac_cv_header_stdint_h+set}" = set; then
20406 echo $ECHO_N "(cached) $ECHO_C" >&6
20408 ac_cv_header_stdint_h=$ac_header_preproc
20410 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20411 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20414 if test $ac_cv_header_stdint_h = yes; then
20415 INCLUDE_STDINT_H='#include <stdint.h>'
20417 INCLUDE_STDINT_H=''
20424 echo "$as_me:$LINENO: checking for pid_t" >&5
20425 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20426 if test "${ac_cv_type_pid_t+set}" = set; then
20427 echo $ECHO_N "(cached) $ECHO_C" >&6
20429 cat >conftest.$ac_ext <<_ACEOF
20432 cat confdefs.h >>conftest.$ac_ext
20433 cat >>conftest.$ac_ext <<_ACEOF
20434 /* end confdefs.h. */
20435 $ac_includes_default
20441 if (sizeof (pid_t))
20447 rm -f conftest.$ac_objext
20448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20449 (eval $ac_compile) 2>conftest.er1
20451 grep -v '^ *+' conftest.er1 >conftest.err
20453 cat conftest.err >&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); } &&
20456 { ac_try='test -z "$ac_c_werror_flag"
20457 || test ! -s conftest.err'
20458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20459 (eval $ac_try) 2>&5
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); }; } &&
20463 { ac_try='test -s conftest.$ac_objext'
20464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465 (eval $ac_try) 2>&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; }; then
20469 ac_cv_type_pid_t=yes
20471 echo "$as_me: failed program was:" >&5
20472 sed 's/^/| /' conftest.$ac_ext >&5
20474 ac_cv_type_pid_t=no
20476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20478 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20479 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20480 if test $ac_cv_type_pid_t = yes; then
20484 cat >>confdefs.h <<_ACEOF
20490 echo "$as_me:$LINENO: checking for size_t" >&5
20491 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20492 if test "${ac_cv_type_size_t+set}" = set; then
20493 echo $ECHO_N "(cached) $ECHO_C" >&6
20495 cat >conftest.$ac_ext <<_ACEOF
20498 cat confdefs.h >>conftest.$ac_ext
20499 cat >>conftest.$ac_ext <<_ACEOF
20500 /* end confdefs.h. */
20501 $ac_includes_default
20507 if (sizeof (size_t))
20513 rm -f conftest.$ac_objext
20514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20515 (eval $ac_compile) 2>conftest.er1
20517 grep -v '^ *+' conftest.er1 >conftest.err
20519 cat conftest.err >&5
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); } &&
20522 { ac_try='test -z "$ac_c_werror_flag"
20523 || test ! -s conftest.err'
20524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20525 (eval $ac_try) 2>&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; } &&
20529 { ac_try='test -s conftest.$ac_objext'
20530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20531 (eval $ac_try) 2>&5
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); }; }; then
20535 ac_cv_type_size_t=yes
20537 echo "$as_me: failed program was:" >&5
20538 sed 's/^/| /' conftest.$ac_ext >&5
20540 ac_cv_type_size_t=no
20542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20544 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20545 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20546 if test $ac_cv_type_size_t = yes; then
20550 cat >>confdefs.h <<_ACEOF
20551 #define size_t unsigned
20556 echo "$as_me:$LINENO: checking for int64_t" >&5
20557 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20558 if test "${ac_cv_type_int64_t+set}" = set; then
20559 echo $ECHO_N "(cached) $ECHO_C" >&6
20561 cat >conftest.$ac_ext <<_ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h. */
20567 $ac_includes_default
20573 if (sizeof (int64_t))
20579 rm -f conftest.$ac_objext
20580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20581 (eval $ac_compile) 2>conftest.er1
20583 grep -v '^ *+' conftest.er1 >conftest.err
20585 cat conftest.err >&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); } &&
20588 { ac_try='test -z "$ac_c_werror_flag"
20589 || test ! -s conftest.err'
20590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20591 (eval $ac_try) 2>&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); }; } &&
20595 { ac_try='test -s conftest.$ac_objext'
20596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; }; then
20601 ac_cv_type_int64_t=yes
20603 echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20606 ac_cv_type_int64_t=no
20608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20610 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20611 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20612 if test $ac_cv_type_int64_t = yes; then
20614 cat >>confdefs.h <<_ACEOF
20615 #define HAVE_INT64_T 1
20620 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20621 echo "$as_me: error: Type int64_t required but not found" >&2;}
20622 { (exit 1); exit 1; }; }
20625 echo "$as_me:$LINENO: checking for uint64_t" >&5
20626 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20627 if test "${ac_cv_type_uint64_t+set}" = set; then
20628 echo $ECHO_N "(cached) $ECHO_C" >&6
20630 cat >conftest.$ac_ext <<_ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h. */
20636 $ac_includes_default
20640 if ((uint64_t *) 0)
20642 if (sizeof (uint64_t))
20648 rm -f conftest.$ac_objext
20649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20650 (eval $ac_compile) 2>conftest.er1
20652 grep -v '^ *+' conftest.er1 >conftest.err
20654 cat conftest.err >&5
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); } &&
20657 { ac_try='test -z "$ac_c_werror_flag"
20658 || test ! -s conftest.err'
20659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660 (eval $ac_try) 2>&5
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; } &&
20664 { ac_try='test -s conftest.$ac_objext'
20665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20666 (eval $ac_try) 2>&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; }; then
20670 ac_cv_type_uint64_t=yes
20672 echo "$as_me: failed program was:" >&5
20673 sed 's/^/| /' conftest.$ac_ext >&5
20675 ac_cv_type_uint64_t=no
20677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20679 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20680 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20681 if test $ac_cv_type_uint64_t = yes; then
20683 cat >>confdefs.h <<_ACEOF
20684 #define HAVE_UINT64_T 1
20689 echo "$as_me:$LINENO: checking for u_int64_t" >&5
20690 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
20691 if test "${ac_cv_type_u_int64_t+set}" = set; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 cat >conftest.$ac_ext <<_ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20700 $ac_includes_default
20704 if ((u_int64_t *) 0)
20706 if (sizeof (u_int64_t))
20712 rm -f conftest.$ac_objext
20713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20714 (eval $ac_compile) 2>conftest.er1
20716 grep -v '^ *+' conftest.er1 >conftest.err
20718 cat conftest.err >&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); } &&
20721 { ac_try='test -z "$ac_c_werror_flag"
20722 || test ! -s conftest.err'
20723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724 (eval $ac_try) 2>&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; } &&
20728 { ac_try='test -s conftest.$ac_objext'
20729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20730 (eval $ac_try) 2>&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); }; }; then
20734 ac_cv_type_u_int64_t=yes
20736 echo "$as_me: failed program was:" >&5
20737 sed 's/^/| /' conftest.$ac_ext >&5
20739 ac_cv_type_u_int64_t=no
20741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20743 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
20744 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
20745 if test $ac_cv_type_u_int64_t = yes; then
20747 cat >>confdefs.h <<_ACEOF
20748 #define HAVE_U_INT64_T 1
20753 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
20754 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
20755 { (exit 1); exit 1; }; }
20760 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20761 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20762 if test "${ac_cv_header_time+set}" = set; then
20763 echo $ECHO_N "(cached) $ECHO_C" >&6
20765 cat >conftest.$ac_ext <<_ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 #include <sys/types.h>
20772 #include <sys/time.h>
20778 if ((struct tm *) 0)
20784 rm -f conftest.$ac_objext
20785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20786 (eval $ac_compile) 2>conftest.er1
20788 grep -v '^ *+' conftest.er1 >conftest.err
20790 cat conftest.err >&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); } &&
20793 { ac_try='test -z "$ac_c_werror_flag"
20794 || test ! -s conftest.err'
20795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796 (eval $ac_try) 2>&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); }; } &&
20800 { ac_try='test -s conftest.$ac_objext'
20801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20802 (eval $ac_try) 2>&5
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); }; }; then
20806 ac_cv_header_time=yes
20808 echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20811 ac_cv_header_time=no
20813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20815 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20816 echo "${ECHO_T}$ac_cv_header_time" >&6
20817 if test $ac_cv_header_time = yes; then
20819 cat >>confdefs.h <<\_ACEOF
20820 #define TIME_WITH_SYS_TIME 1
20825 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20826 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20827 if test "${ac_cv_struct_tm+set}" = set; then
20828 echo $ECHO_N "(cached) $ECHO_C" >&6
20830 cat >conftest.$ac_ext <<_ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h. */
20836 #include <sys/types.h>
20842 struct tm *tp; tp->tm_sec;
20847 rm -f conftest.$ac_objext
20848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20849 (eval $ac_compile) 2>conftest.er1
20851 grep -v '^ *+' conftest.er1 >conftest.err
20853 cat conftest.err >&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } &&
20856 { ac_try='test -z "$ac_c_werror_flag"
20857 || test ! -s conftest.err'
20858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859 (eval $ac_try) 2>&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); }; } &&
20863 { ac_try='test -s conftest.$ac_objext'
20864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865 (eval $ac_try) 2>&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); }; }; then
20869 ac_cv_struct_tm=time.h
20871 echo "$as_me: failed program was:" >&5
20872 sed 's/^/| /' conftest.$ac_ext >&5
20874 ac_cv_struct_tm=sys/time.h
20876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20878 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20879 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20880 if test $ac_cv_struct_tm = sys/time.h; then
20882 cat >>confdefs.h <<\_ACEOF
20883 #define TM_IN_SYS_TIME 1
20890 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20891 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
20893 ac_cpp='$CPP $CPPFLAGS'
20894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20898 if test "$cross_compiling" = yes; then
20901 cat >conftest.$ac_ext <<_ACEOF
20905 cat confdefs.h >>conftest.$ac_ext
20906 cat >>conftest.$ac_ext <<_ACEOF
20907 /* end confdefs.h. */
20910 #include <stdlib.h>
20916 volatile double A, B;
20920 sprintf(Buffer, "%a", A);
20924 if (A != 0x1.999999999999ap-4)
20931 rm -f conftest$ac_exeext
20932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20933 (eval $ac_link) 2>&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20938 (eval $ac_try) 2>&5
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); }; }; then
20944 echo "$as_me: program exited with status $ac_status" >&5
20945 echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20948 ( exit $ac_status )
20951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20954 ac_cpp='$CPP $CPPFLAGS'
20955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20959 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20960 echo "${ECHO_T}$ac_c_printf_a" >&6
20961 if test "$ac_c_printf_a" = "yes"; then
20963 cat >>confdefs.h <<\_ACEOF
20964 #define HAVE_PRINTF_A 1
20970 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20971 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20972 if test "${ac_cv_c_bigendian+set}" = set; then
20973 echo $ECHO_N "(cached) $ECHO_C" >&6
20975 # See if sys/param.h defines the BYTE_ORDER macro.
20976 cat >conftest.$ac_ext <<_ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h. */
20982 #include <sys/types.h>
20983 #include <sys/param.h>
20988 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20989 bogus endian macros
20996 rm -f conftest.$ac_objext
20997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20998 (eval $ac_compile) 2>conftest.er1
21000 grep -v '^ *+' conftest.er1 >conftest.err
21002 cat conftest.err >&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); } &&
21005 { ac_try='test -z "$ac_c_werror_flag"
21006 || test ! -s conftest.err'
21007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21008 (eval $ac_try) 2>&5
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); }; } &&
21012 { ac_try='test -s conftest.$ac_objext'
21013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014 (eval $ac_try) 2>&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; }; then
21018 # It does; now see whether it defined to BIG_ENDIAN or not.
21019 cat >conftest.$ac_ext <<_ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h. */
21025 #include <sys/types.h>
21026 #include <sys/param.h>
21031 #if BYTE_ORDER != BIG_ENDIAN
21039 rm -f conftest.$ac_objext
21040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21041 (eval $ac_compile) 2>conftest.er1
21043 grep -v '^ *+' conftest.er1 >conftest.err
21045 cat conftest.err >&5
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); } &&
21048 { ac_try='test -z "$ac_c_werror_flag"
21049 || test ! -s conftest.err'
21050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21051 (eval $ac_try) 2>&5
21053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); }; } &&
21055 { ac_try='test -s conftest.$ac_objext'
21056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21057 (eval $ac_try) 2>&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; }; then
21061 ac_cv_c_bigendian=yes
21063 echo "$as_me: failed program was:" >&5
21064 sed 's/^/| /' conftest.$ac_ext >&5
21066 ac_cv_c_bigendian=no
21068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21070 echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21073 # It does not; compile a test program.
21074 if test "$cross_compiling" = yes; then
21075 # try to guess the endianness by grepping values into an object file
21076 ac_cv_c_bigendian=unknown
21077 cat >conftest.$ac_ext <<_ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h. */
21083 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21084 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21085 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21086 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21087 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21088 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21092 _ascii (); _ebcdic ();
21097 rm -f conftest.$ac_objext
21098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21099 (eval $ac_compile) 2>conftest.er1
21101 grep -v '^ *+' conftest.er1 >conftest.err
21103 cat conftest.err >&5
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); } &&
21106 { ac_try='test -z "$ac_c_werror_flag"
21107 || test ! -s conftest.err'
21108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109 (eval $ac_try) 2>&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; } &&
21113 { ac_try='test -s conftest.$ac_objext'
21114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115 (eval $ac_try) 2>&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); }; }; then
21119 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21120 ac_cv_c_bigendian=yes
21122 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21123 if test "$ac_cv_c_bigendian" = unknown; then
21124 ac_cv_c_bigendian=no
21126 # finding both strings is unlikely to happen, but who knows?
21127 ac_cv_c_bigendian=unknown
21131 echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.$ac_ext >&5
21135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21137 cat >conftest.$ac_ext <<_ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h. */
21146 /* Are we little or big endian? From Harbison&Steele. */
21150 char c[sizeof (long)];
21153 exit (u.c[sizeof (long) - 1] == 1);
21156 rm -f conftest$ac_exeext
21157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21158 (eval $ac_link) 2>&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21163 (eval $ac_try) 2>&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); }; }; then
21167 ac_cv_c_bigendian=no
21169 echo "$as_me: program exited with status $ac_status" >&5
21170 echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21173 ( exit $ac_status )
21174 ac_cv_c_bigendian=yes
21176 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21181 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21182 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21183 case $ac_cv_c_bigendian in
21191 { { echo "$as_me:$LINENO: error: unknown endianness
21192 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21193 echo "$as_me: error: unknown endianness
21194 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21195 { (exit 1); exit 1; }; } ;;
21199 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21200 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21201 if test "${ac_cv_cxx_namespaces+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21205 ac_cpp='$CXXCPP $CPPFLAGS'
21206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21210 cat >conftest.$ac_ext <<_ACEOF
21213 cat confdefs.h >>conftest.$ac_ext
21214 cat >>conftest.$ac_ext <<_ACEOF
21215 /* end confdefs.h. */
21216 namespace Outer { namespace Inner { int i = 0; }}
21220 using namespace Outer::Inner; return i;
21225 rm -f conftest.$ac_objext
21226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21227 (eval $ac_compile) 2>conftest.er1
21229 grep -v '^ *+' conftest.er1 >conftest.err
21231 cat conftest.err >&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } &&
21234 { ac_try='test -z "$ac_cxx_werror_flag"
21235 || test ! -s conftest.err'
21236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237 (eval $ac_try) 2>&5
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); }; } &&
21241 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
21247 ac_cv_cxx_namespaces=yes
21249 echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.$ac_ext >&5
21252 ac_cv_cxx_namespaces=no
21254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21256 ac_cpp='$CPP $CPPFLAGS'
21257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21263 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21264 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21265 if test "$ac_cv_cxx_namespaces" = yes; then
21267 cat >>confdefs.h <<\_ACEOF
21268 #define HAVE_NAMESPACES
21273 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21274 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21275 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21280 ac_cpp='$CXXCPP $CPPFLAGS'
21281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21285 cat >conftest.$ac_ext <<_ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21291 #include <ext/hash_map>
21292 #ifdef HAVE_NAMESPACES
21293 using namespace std;
21298 hash_map<int, int> t;
21303 rm -f conftest.$ac_objext
21304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21305 (eval $ac_compile) 2>conftest.er1
21307 grep -v '^ *+' conftest.er1 >conftest.err
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } &&
21312 { ac_try='test -z "$ac_cxx_werror_flag"
21313 || test ! -s conftest.err'
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; } &&
21319 { ac_try='test -s conftest.$ac_objext'
21320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21321 (eval $ac_try) 2>&5
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); }; }; then
21325 ac_cv_cxx_have_std_ext_hash_map=yes
21327 echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21330 ac_cv_cxx_have_std_ext_hash_map=no
21332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21334 ac_cpp='$CPP $CPPFLAGS'
21335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21340 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21341 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21342 HAVE_STD_EXT_HASH_MAP=0
21343 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21345 HAVE_STD_EXT_HASH_MAP=1
21348 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21349 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21350 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21351 echo $ECHO_N "(cached) $ECHO_C" >&6
21355 ac_cpp='$CXXCPP $CPPFLAGS'
21356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21358 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21360 cat >conftest.$ac_ext <<_ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h. */
21366 #include <ext/hash_map>
21367 #ifdef HAVE_NAMESPACES
21368 using namespace __gnu_cxx;
21373 hash_map<int,int> t;
21378 rm -f conftest.$ac_objext
21379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21380 (eval $ac_compile) 2>conftest.er1
21382 grep -v '^ *+' conftest.er1 >conftest.err
21384 cat conftest.err >&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } &&
21387 { ac_try='test -z "$ac_cxx_werror_flag"
21388 || test ! -s conftest.err'
21389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21390 (eval $ac_try) 2>&5
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); }; } &&
21394 { ac_try='test -s conftest.$ac_objext'
21395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21396 (eval $ac_try) 2>&5
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); }; }; then
21400 ac_cv_cxx_have_gnu_ext_hash_map=yes
21402 echo "$as_me: failed program was:" >&5
21403 sed 's/^/| /' conftest.$ac_ext >&5
21405 ac_cv_cxx_have_gnu_ext_hash_map=no
21407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21409 ac_cpp='$CPP $CPPFLAGS'
21410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21415 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21416 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21417 HAVE_GNU_EXT_HASH_MAP=0
21418 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21420 HAVE_GNU_EXT_HASH_MAP=1
21423 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21424 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21425 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21426 echo $ECHO_N "(cached) $ECHO_C" >&6
21430 ac_cpp='$CXXCPP $CPPFLAGS'
21431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21435 cat >conftest.$ac_ext <<_ACEOF
21438 cat confdefs.h >>conftest.$ac_ext
21439 cat >>conftest.$ac_ext <<_ACEOF
21440 /* end confdefs.h. */
21441 #include <hash_map>
21445 hash_map<int,int> t;
21450 rm -f conftest.$ac_objext
21451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21452 (eval $ac_compile) 2>conftest.er1
21454 grep -v '^ *+' conftest.er1 >conftest.err
21456 cat conftest.err >&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } &&
21459 { ac_try='test -z "$ac_cxx_werror_flag"
21460 || test ! -s conftest.err'
21461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21462 (eval $ac_try) 2>&5
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); }; } &&
21466 { ac_try='test -s conftest.$ac_objext'
21467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21468 (eval $ac_try) 2>&5
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); }; }; then
21472 ac_cv_cxx_have_global_hash_map=yes
21474 echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.$ac_ext >&5
21477 ac_cv_cxx_have_global_hash_map=no
21479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21481 ac_cpp='$CPP $CPPFLAGS'
21482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21487 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21488 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21489 HAVE_GLOBAL_HASH_MAP=0
21490 if test "$ac_cv_cxx_have_global_hash_map" = yes
21492 HAVE_GLOBAL_HASH_MAP=1
21495 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21496 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21497 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21498 echo $ECHO_N "(cached) $ECHO_C" >&6
21502 ac_cpp='$CXXCPP $CPPFLAGS'
21503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21507 cat >conftest.$ac_ext <<_ACEOF
21510 cat confdefs.h >>conftest.$ac_ext
21511 cat >>conftest.$ac_ext <<_ACEOF
21512 /* end confdefs.h. */
21513 #include <ext/hash_set>
21514 #ifdef HAVE_NAMESPACES
21515 using namespace std;
21525 rm -f conftest.$ac_objext
21526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21527 (eval $ac_compile) 2>conftest.er1
21529 grep -v '^ *+' conftest.er1 >conftest.err
21531 cat conftest.err >&5
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); } &&
21534 { ac_try='test -z "$ac_cxx_werror_flag"
21535 || test ! -s conftest.err'
21536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537 (eval $ac_try) 2>&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); }; } &&
21541 { ac_try='test -s conftest.$ac_objext'
21542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21543 (eval $ac_try) 2>&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); }; }; then
21547 ac_cv_cxx_have_std_ext_hash_set=yes
21549 echo "$as_me: failed program was:" >&5
21550 sed 's/^/| /' conftest.$ac_ext >&5
21552 ac_cv_cxx_have_std_ext_hash_set=no
21554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21556 ac_cpp='$CPP $CPPFLAGS'
21557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21562 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21563 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21564 HAVE_STD_EXT_HASH_SET=0
21565 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21567 HAVE_STD_EXT_HASH_SET=1
21570 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21571 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21572 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21573 echo $ECHO_N "(cached) $ECHO_C" >&6
21577 ac_cpp='$CXXCPP $CPPFLAGS'
21578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21582 cat >conftest.$ac_ext <<_ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21588 #include <ext/hash_set>
21589 #ifdef HAVE_NAMESPACES
21590 using namespace __gnu_cxx;
21600 rm -f conftest.$ac_objext
21601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21602 (eval $ac_compile) 2>conftest.er1
21604 grep -v '^ *+' conftest.er1 >conftest.err
21606 cat conftest.err >&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } &&
21609 { ac_try='test -z "$ac_cxx_werror_flag"
21610 || test ! -s conftest.err'
21611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21612 (eval $ac_try) 2>&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); }; } &&
21616 { ac_try='test -s conftest.$ac_objext'
21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; }; then
21622 ac_cv_cxx_have_gnu_ext_hash_set=yes
21624 echo "$as_me: failed program was:" >&5
21625 sed 's/^/| /' conftest.$ac_ext >&5
21627 ac_cv_cxx_have_gnu_ext_hash_set=no
21629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21631 ac_cpp='$CPP $CPPFLAGS'
21632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21637 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21638 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21639 HAVE_GNU_EXT_HASH_SET=0
21640 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21642 HAVE_GNU_EXT_HASH_SET=1
21645 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21646 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21647 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21648 echo $ECHO_N "(cached) $ECHO_C" >&6
21652 ac_cpp='$CXXCPP $CPPFLAGS'
21653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21657 cat >conftest.$ac_ext <<_ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h. */
21663 #include <hash_set>
21667 hash_set<int> t; return 0;
21672 rm -f conftest.$ac_objext
21673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21674 (eval $ac_compile) 2>conftest.er1
21676 grep -v '^ *+' conftest.er1 >conftest.err
21678 cat conftest.err >&5
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); } &&
21681 { ac_try='test -z "$ac_cxx_werror_flag"
21682 || test ! -s conftest.err'
21683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21684 (eval $ac_try) 2>&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); }; } &&
21688 { ac_try='test -s conftest.$ac_objext'
21689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690 (eval $ac_try) 2>&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); }; }; then
21694 ac_cv_cxx_have_global_hash_set=yes
21696 echo "$as_me: failed program was:" >&5
21697 sed 's/^/| /' conftest.$ac_ext >&5
21699 ac_cv_cxx_have_global_hash_set=no
21701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21703 ac_cpp='$CPP $CPPFLAGS'
21704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21709 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21710 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21711 HAVE_GLOBAL_HASH_SET=0
21712 if test "$ac_cv_cxx_have_global_hash_set" = yes
21714 HAVE_GLOBAL_HASH_SET=1
21717 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21718 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21719 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21720 echo $ECHO_N "(cached) $ECHO_C" >&6
21724 ac_cpp='$CXXCPP $CPPFLAGS'
21725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21729 cat >conftest.$ac_ext <<_ACEOF
21732 cat confdefs.h >>conftest.$ac_ext
21733 cat >>conftest.$ac_ext <<_ACEOF
21734 /* end confdefs.h. */
21735 #include <iterator>
21736 #ifdef HAVE_NAMESPACES
21737 using namespace std;
21742 iterator<int,int,int> t; return 0;
21747 rm -f conftest.$ac_objext
21748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21749 (eval $ac_compile) 2>conftest.er1
21751 grep -v '^ *+' conftest.er1 >conftest.err
21753 cat conftest.err >&5
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); } &&
21756 { ac_try='test -z "$ac_cxx_werror_flag"
21757 || test ! -s conftest.err'
21758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21759 (eval $ac_try) 2>&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); }; } &&
21763 { ac_try='test -s conftest.$ac_objext'
21764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21765 (eval $ac_try) 2>&5
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); }; }; then
21769 ac_cv_cxx_have_std_iterator=yes
21771 echo "$as_me: failed program was:" >&5
21772 sed 's/^/| /' conftest.$ac_ext >&5
21774 ac_cv_cxx_have_std_iterator=no
21776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21778 ac_cpp='$CPP $CPPFLAGS'
21779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21785 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21786 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21787 HAVE_STD_ITERATOR=0
21788 if test "$ac_cv_cxx_have_std_iterator" = yes
21790 HAVE_STD_ITERATOR=1
21793 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21794 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21795 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21796 echo $ECHO_N "(cached) $ECHO_C" >&6
21800 ac_cpp='$CXXCPP $CPPFLAGS'
21801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21805 cat >conftest.$ac_ext <<_ACEOF
21808 cat confdefs.h >>conftest.$ac_ext
21809 cat >>conftest.$ac_ext <<_ACEOF
21810 /* end confdefs.h. */
21811 #include <iterator>
21812 #ifdef HAVE_NAMESPACES
21813 using namespace std;
21818 bidirectional_iterator<int,int> t; return 0;
21823 rm -f conftest.$ac_objext
21824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21825 (eval $ac_compile) 2>conftest.er1
21827 grep -v '^ *+' conftest.er1 >conftest.err
21829 cat conftest.err >&5
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } &&
21832 { ac_try='test -z "$ac_cxx_werror_flag"
21833 || test ! -s conftest.err'
21834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835 (eval $ac_try) 2>&5
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); }; } &&
21839 { ac_try='test -s conftest.$ac_objext'
21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; }; then
21845 ac_cv_cxx_have_bi_iterator=yes
21847 echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21850 ac_cv_cxx_have_bi_iterator=no
21852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21854 ac_cpp='$CPP $CPPFLAGS'
21855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21861 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21862 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21864 if test "$ac_cv_cxx_have_bi_iterator" = yes
21869 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21870 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21871 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21872 echo $ECHO_N "(cached) $ECHO_C" >&6
21876 ac_cpp='$CXXCPP $CPPFLAGS'
21877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21881 cat >conftest.$ac_ext <<_ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h. */
21887 #include <iterator>
21888 #ifdef HAVE_NAMESPACES
21889 using namespace std;
21894 forward_iterator<int,int> t; return 0;
21899 rm -f conftest.$ac_objext
21900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21901 (eval $ac_compile) 2>conftest.er1
21903 grep -v '^ *+' conftest.er1 >conftest.err
21905 cat conftest.err >&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); } &&
21908 { ac_try='test -z "$ac_cxx_werror_flag"
21909 || test ! -s conftest.err'
21910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21911 (eval $ac_try) 2>&5
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); }; } &&
21915 { ac_try='test -s conftest.$ac_objext'
21916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21917 (eval $ac_try) 2>&5
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); }; }; then
21921 ac_cv_cxx_have_fwd_iterator=yes
21923 echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21926 ac_cv_cxx_have_fwd_iterator=no
21928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21930 ac_cpp='$CPP $CPPFLAGS'
21931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21937 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21938 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21939 HAVE_FWD_ITERATOR=0
21940 if test "$ac_cv_cxx_have_fwd_iterator" = yes
21942 HAVE_FWD_ITERATOR=1
21947 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21948 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21949 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21950 echo $ECHO_N "(cached) $ECHO_C" >&6
21953 ac_cpp='$CXXCPP $CPPFLAGS'
21954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21958 cat >conftest.$ac_ext <<_ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h. */
21965 int foo(float f) {return isnan(f);}
21967 rm -f conftest.$ac_objext
21968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21969 (eval $ac_compile) 2>conftest.er1
21971 grep -v '^ *+' conftest.er1 >conftest.err
21973 cat conftest.err >&5
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); } &&
21976 { ac_try='test -z "$ac_cxx_werror_flag"
21977 || test ! -s conftest.err'
21978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21979 (eval $ac_try) 2>&5
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); }; } &&
21983 { ac_try='test -s conftest.$ac_objext'
21984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21985 (eval $ac_try) 2>&5
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); }; }; then
21989 ac_cv_func_isnan_in_math_h=yes
21991 echo "$as_me: failed program was:" >&5
21992 sed 's/^/| /' conftest.$ac_ext >&5
21994 ac_cv_func_isnan_in_math_h=no
21996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21998 ac_cpp='$CPP $CPPFLAGS'
21999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22004 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
22005 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
22006 if test "$ac_cv_func_isnan_in_math_h" = "yes"
22009 cat >>confdefs.h <<\_ACEOF
22010 #define HAVE_ISNAN_IN_MATH_H 1
22014 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
22015 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
22016 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
22017 echo $ECHO_N "(cached) $ECHO_C" >&6
22020 ac_cpp='$CXXCPP $CPPFLAGS'
22021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22025 cat >conftest.$ac_ext <<_ACEOF
22028 cat confdefs.h >>conftest.$ac_ext
22029 cat >>conftest.$ac_ext <<_ACEOF
22030 /* end confdefs.h. */
22032 int foo(float f) {return isnan(f);}
22034 rm -f conftest.$ac_objext
22035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22036 (eval $ac_compile) 2>conftest.er1
22038 grep -v '^ *+' conftest.er1 >conftest.err
22040 cat conftest.err >&5
22041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); } &&
22043 { ac_try='test -z "$ac_cxx_werror_flag"
22044 || test ! -s conftest.err'
22045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22046 (eval $ac_try) 2>&5
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); }; } &&
22050 { ac_try='test -s conftest.$ac_objext'
22051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22052 (eval $ac_try) 2>&5
22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); }; }; then
22056 ac_cv_func_isnan_in_cmath=yes
22058 echo "$as_me: failed program was:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22061 ac_cv_func_isnan_in_cmath=no
22063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22065 ac_cpp='$CPP $CPPFLAGS'
22066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22071 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22072 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22073 if test "$ac_cv_func_isnan_in_cmath" = "yes"
22076 cat >>confdefs.h <<\_ACEOF
22077 #define HAVE_ISNAN_IN_CMATH 1
22081 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22082 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22083 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22084 echo $ECHO_N "(cached) $ECHO_C" >&6
22087 ac_cpp='$CXXCPP $CPPFLAGS'
22088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22092 cat >conftest.$ac_ext <<_ACEOF
22095 cat confdefs.h >>conftest.$ac_ext
22096 cat >>conftest.$ac_ext <<_ACEOF
22097 /* end confdefs.h. */
22099 using std::isnan; int foo(float f) {return isnan(f);}
22101 rm -f conftest.$ac_objext
22102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22103 (eval $ac_compile) 2>conftest.er1
22105 grep -v '^ *+' conftest.er1 >conftest.err
22107 cat conftest.err >&5
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); } &&
22110 { ac_try='test -z "$ac_cxx_werror_flag"
22111 || test ! -s conftest.err'
22112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22113 (eval $ac_try) 2>&5
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); }; } &&
22117 { ac_try='test -s conftest.$ac_objext'
22118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119 (eval $ac_try) 2>&5
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); }; }; then
22123 ac_cv_func_std_isnan_in_cmath=yes
22125 echo "$as_me: failed program was:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22128 ac_cv_func_std_isnan_in_cmath=no
22130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22132 ac_cpp='$CPP $CPPFLAGS'
22133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22138 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22139 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22140 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
22143 cat >>confdefs.h <<\_ACEOF
22144 #define HAVE_STD_ISNAN_IN_CMATH 1
22150 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22151 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22152 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22153 echo $ECHO_N "(cached) $ECHO_C" >&6
22156 ac_cpp='$CXXCPP $CPPFLAGS'
22157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22161 cat >conftest.$ac_ext <<_ACEOF
22164 cat confdefs.h >>conftest.$ac_ext
22165 cat >>conftest.$ac_ext <<_ACEOF
22166 /* end confdefs.h. */
22168 int foo(float f) {return isinf(f);}
22170 rm -f conftest.$ac_objext
22171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22172 (eval $ac_compile) 2>conftest.er1
22174 grep -v '^ *+' conftest.er1 >conftest.err
22176 cat conftest.err >&5
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); } &&
22179 { ac_try='test -z "$ac_cxx_werror_flag"
22180 || test ! -s conftest.err'
22181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22182 (eval $ac_try) 2>&5
22184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185 (exit $ac_status); }; } &&
22186 { ac_try='test -s conftest.$ac_objext'
22187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22188 (eval $ac_try) 2>&5
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); }; }; then
22192 ac_cv_func_isinf_in_math_h=yes
22194 echo "$as_me: failed program was:" >&5
22195 sed 's/^/| /' conftest.$ac_ext >&5
22197 ac_cv_func_isinf_in_math_h=no
22199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22201 ac_cpp='$CPP $CPPFLAGS'
22202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22207 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22208 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22209 if test "$ac_cv_func_isinf_in_math_h" = "yes"
22212 cat >>confdefs.h <<\_ACEOF
22213 #define HAVE_ISINF_IN_MATH_H 1
22217 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22218 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22219 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22220 echo $ECHO_N "(cached) $ECHO_C" >&6
22223 ac_cpp='$CXXCPP $CPPFLAGS'
22224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22228 cat >conftest.$ac_ext <<_ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h. */
22235 int foo(float f) {return isinf(f);}
22237 rm -f conftest.$ac_objext
22238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22239 (eval $ac_compile) 2>conftest.er1
22241 grep -v '^ *+' conftest.er1 >conftest.err
22243 cat conftest.err >&5
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); } &&
22246 { ac_try='test -z "$ac_cxx_werror_flag"
22247 || test ! -s conftest.err'
22248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22249 (eval $ac_try) 2>&5
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); }; } &&
22253 { ac_try='test -s conftest.$ac_objext'
22254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255 (eval $ac_try) 2>&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); }; }; then
22259 ac_cv_func_isinf_in_cmath=yes
22261 echo "$as_me: failed program was:" >&5
22262 sed 's/^/| /' conftest.$ac_ext >&5
22264 ac_cv_func_isinf_in_cmath=no
22266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22268 ac_cpp='$CPP $CPPFLAGS'
22269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22274 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22275 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22276 if test "$ac_cv_func_isinf_in_cmath" = "yes"
22279 cat >>confdefs.h <<\_ACEOF
22280 #define HAVE_ISINF_IN_CMATH 1
22284 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22285 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22286 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22287 echo $ECHO_N "(cached) $ECHO_C" >&6
22290 ac_cpp='$CXXCPP $CPPFLAGS'
22291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22295 cat >conftest.$ac_ext <<_ACEOF
22298 cat confdefs.h >>conftest.$ac_ext
22299 cat >>conftest.$ac_ext <<_ACEOF
22300 /* end confdefs.h. */
22302 using std::isinf; int foo(float f) {return isinf(f);}
22304 rm -f conftest.$ac_objext
22305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22306 (eval $ac_compile) 2>conftest.er1
22308 grep -v '^ *+' conftest.er1 >conftest.err
22310 cat conftest.err >&5
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); } &&
22313 { ac_try='test -z "$ac_cxx_werror_flag"
22314 || test ! -s conftest.err'
22315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22316 (eval $ac_try) 2>&5
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); }; } &&
22320 { ac_try='test -s conftest.$ac_objext'
22321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22322 (eval $ac_try) 2>&5
22324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325 (exit $ac_status); }; }; then
22326 ac_cv_func_std_isinf_in_cmath=yes
22328 echo "$as_me: failed program was:" >&5
22329 sed 's/^/| /' conftest.$ac_ext >&5
22331 ac_cv_func_std_isinf_in_cmath=no
22333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22335 ac_cpp='$CPP $CPPFLAGS'
22336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22341 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22342 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22343 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22346 cat >>confdefs.h <<\_ACEOF
22347 #define HAVE_STD_ISINF_IN_CMATH 1
22351 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22352 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22353 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22354 echo $ECHO_N "(cached) $ECHO_C" >&6
22357 ac_cpp='$CXXCPP $CPPFLAGS'
22358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22362 cat >conftest.$ac_ext <<_ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h. */
22368 #include <ieeefp.h>
22369 int foo(float f) {return finite(f);}
22371 rm -f conftest.$ac_objext
22372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22373 (eval $ac_compile) 2>conftest.er1
22375 grep -v '^ *+' conftest.er1 >conftest.err
22377 cat conftest.err >&5
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); } &&
22380 { ac_try='test -z "$ac_cxx_werror_flag"
22381 || test ! -s conftest.err'
22382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22383 (eval $ac_try) 2>&5
22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); }; } &&
22387 { ac_try='test -s conftest.$ac_objext'
22388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22389 (eval $ac_try) 2>&5
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); }; }; then
22393 ac_cv_func_finite_in_ieeefp_h=yes
22395 echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.$ac_ext >&5
22398 ac_cv_func_finite_in_ieeefp_h=no
22400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22402 ac_cpp='$CPP $CPPFLAGS'
22403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22408 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22409 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22410 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22413 cat >>confdefs.h <<\_ACEOF
22414 #define HAVE_FINITE_IN_IEEEFP_H 1
22420 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22421 # for constant arguments. Useless!
22422 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22423 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22424 if test "${ac_cv_working_alloca_h+set}" = set; then
22425 echo $ECHO_N "(cached) $ECHO_C" >&6
22427 cat >conftest.$ac_ext <<_ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h. */
22433 #include <alloca.h>
22437 char *p = (char *) alloca (2 * sizeof (int));
22442 rm -f conftest.$ac_objext conftest$ac_exeext
22443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22444 (eval $ac_link) 2>conftest.er1
22446 grep -v '^ *+' conftest.er1 >conftest.err
22448 cat conftest.err >&5
22449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450 (exit $ac_status); } &&
22451 { ac_try='test -z "$ac_c_werror_flag"
22452 || test ! -s conftest.err'
22453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22454 (eval $ac_try) 2>&5
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); }; } &&
22458 { ac_try='test -s conftest$ac_exeext'
22459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460 (eval $ac_try) 2>&5
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }; }; then
22464 ac_cv_working_alloca_h=yes
22466 echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22469 ac_cv_working_alloca_h=no
22471 rm -f conftest.err conftest.$ac_objext \
22472 conftest$ac_exeext conftest.$ac_ext
22474 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22475 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22476 if test $ac_cv_working_alloca_h = yes; then
22478 cat >>confdefs.h <<\_ACEOF
22479 #define HAVE_ALLOCA_H 1
22484 echo "$as_me:$LINENO: checking for alloca" >&5
22485 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22486 if test "${ac_cv_func_alloca_works+set}" = set; then
22487 echo $ECHO_N "(cached) $ECHO_C" >&6
22489 cat >conftest.$ac_ext <<_ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h. */
22496 # define alloca __builtin_alloca
22499 # include <malloc.h>
22500 # define alloca _alloca
22503 # include <alloca.h>
22508 # ifndef alloca /* predefined by HP cc +Olibcalls */
22519 char *p = (char *) alloca (1);
22524 rm -f conftest.$ac_objext conftest$ac_exeext
22525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22526 (eval $ac_link) 2>conftest.er1
22528 grep -v '^ *+' conftest.er1 >conftest.err
22530 cat conftest.err >&5
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); } &&
22533 { ac_try='test -z "$ac_c_werror_flag"
22534 || test ! -s conftest.err'
22535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22536 (eval $ac_try) 2>&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); }; } &&
22540 { ac_try='test -s conftest$ac_exeext'
22541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22542 (eval $ac_try) 2>&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }; }; then
22546 ac_cv_func_alloca_works=yes
22548 echo "$as_me: failed program was:" >&5
22549 sed 's/^/| /' conftest.$ac_ext >&5
22551 ac_cv_func_alloca_works=no
22553 rm -f conftest.err conftest.$ac_objext \
22554 conftest$ac_exeext conftest.$ac_ext
22556 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22557 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22559 if test $ac_cv_func_alloca_works = yes; then
22561 cat >>confdefs.h <<\_ACEOF
22562 #define HAVE_ALLOCA 1
22566 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22567 # that cause trouble. Some versions do not even contain alloca or
22568 # contain a buggy version. If you still want to use their alloca,
22569 # use ar to extract alloca.o from them instead of compiling alloca.c.
22571 ALLOCA=alloca.$ac_objext
22573 cat >>confdefs.h <<\_ACEOF
22578 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22579 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22580 if test "${ac_cv_os_cray+set}" = set; then
22581 echo $ECHO_N "(cached) $ECHO_C" >&6
22583 cat >conftest.$ac_ext <<_ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h. */
22589 #if defined(CRAY) && ! defined(CRAY2)
22596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22597 $EGREP "webecray" >/dev/null 2>&1; then
22605 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22606 echo "${ECHO_T}$ac_cv_os_cray" >&6
22607 if test $ac_cv_os_cray = yes; then
22608 for ac_func in _getb67 GETB67 getb67; do
22609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22610 echo "$as_me:$LINENO: checking for $ac_func" >&5
22611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22612 if eval "test \"\${$as_ac_var+set}\" = set"; then
22613 echo $ECHO_N "(cached) $ECHO_C" >&6
22615 cat >conftest.$ac_ext <<_ACEOF
22618 cat confdefs.h >>conftest.$ac_ext
22619 cat >>conftest.$ac_ext <<_ACEOF
22620 /* end confdefs.h. */
22621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22623 #define $ac_func innocuous_$ac_func
22625 /* System header to define __stub macros and hopefully few prototypes,
22626 which can conflict with char $ac_func (); below.
22627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22628 <limits.h> exists even on freestanding compilers. */
22631 # include <limits.h>
22633 # include <assert.h>
22638 /* Override any gcc2 internal prototype to avoid an error. */
22643 /* We use char because int might match the return type of a gcc2
22644 builtin and then its argument prototype would still apply. */
22646 /* The GNU C library defines this for functions which it implements
22647 to always fail with ENOSYS. Some functions are actually named
22648 something starting with __ and the normal name is an alias. */
22649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22652 char (*f) () = $ac_func;
22661 return f != $ac_func;
22666 rm -f conftest.$ac_objext conftest$ac_exeext
22667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22668 (eval $ac_link) 2>conftest.er1
22670 grep -v '^ *+' conftest.er1 >conftest.err
22672 cat conftest.err >&5
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); } &&
22675 { ac_try='test -z "$ac_c_werror_flag"
22676 || test ! -s conftest.err'
22677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22678 (eval $ac_try) 2>&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); }; } &&
22682 { ac_try='test -s conftest$ac_exeext'
22683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684 (eval $ac_try) 2>&5
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); }; }; then
22688 eval "$as_ac_var=yes"
22690 echo "$as_me: failed program was:" >&5
22691 sed 's/^/| /' conftest.$ac_ext >&5
22693 eval "$as_ac_var=no"
22695 rm -f conftest.err conftest.$ac_objext \
22696 conftest$ac_exeext conftest.$ac_ext
22698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22700 if test `eval echo '${'$as_ac_var'}'` = yes; then
22702 cat >>confdefs.h <<_ACEOF
22703 #define CRAY_STACKSEG_END $ac_func
22712 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22713 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22714 if test "${ac_cv_c_stack_direction+set}" = set; then
22715 echo $ECHO_N "(cached) $ECHO_C" >&6
22717 if test "$cross_compiling" = yes; then
22718 ac_cv_c_stack_direction=0
22720 cat >conftest.$ac_ext <<_ACEOF
22723 cat confdefs.h >>conftest.$ac_ext
22724 cat >>conftest.$ac_ext <<_ACEOF
22725 /* end confdefs.h. */
22727 find_stack_direction ()
22729 static char *addr = 0;
22734 return find_stack_direction ();
22737 return (&dummy > addr) ? 1 : -1;
22743 exit (find_stack_direction () < 0);
22746 rm -f conftest$ac_exeext
22747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22748 (eval $ac_link) 2>&5
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22753 (eval $ac_try) 2>&5
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); }; }; then
22757 ac_cv_c_stack_direction=1
22759 echo "$as_me: program exited with status $ac_status" >&5
22760 echo "$as_me: failed program was:" >&5
22761 sed 's/^/| /' conftest.$ac_ext >&5
22763 ( exit $ac_status )
22764 ac_cv_c_stack_direction=-1
22766 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22769 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22770 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22772 cat >>confdefs.h <<_ACEOF
22773 #define STACK_DIRECTION $ac_cv_c_stack_direction
22781 for ac_header in stdlib.h unistd.h
22783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22785 echo "$as_me:$LINENO: checking for $ac_header" >&5
22786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22788 echo $ECHO_N "(cached) $ECHO_C" >&6
22790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22793 # Is the header compilable?
22794 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22796 cat >conftest.$ac_ext <<_ACEOF
22799 cat confdefs.h >>conftest.$ac_ext
22800 cat >>conftest.$ac_ext <<_ACEOF
22801 /* end confdefs.h. */
22802 $ac_includes_default
22803 #include <$ac_header>
22805 rm -f conftest.$ac_objext
22806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22807 (eval $ac_compile) 2>conftest.er1
22809 grep -v '^ *+' conftest.er1 >conftest.err
22811 cat conftest.err >&5
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); } &&
22814 { ac_try='test -z "$ac_c_werror_flag"
22815 || test ! -s conftest.err'
22816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22817 (eval $ac_try) 2>&5
22819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820 (exit $ac_status); }; } &&
22821 { ac_try='test -s conftest.$ac_objext'
22822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22823 (eval $ac_try) 2>&5
22825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826 (exit $ac_status); }; }; then
22827 ac_header_compiler=yes
22829 echo "$as_me: failed program was:" >&5
22830 sed 's/^/| /' conftest.$ac_ext >&5
22832 ac_header_compiler=no
22834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22836 echo "${ECHO_T}$ac_header_compiler" >&6
22838 # Is the header present?
22839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22841 cat >conftest.$ac_ext <<_ACEOF
22844 cat confdefs.h >>conftest.$ac_ext
22845 cat >>conftest.$ac_ext <<_ACEOF
22846 /* end confdefs.h. */
22847 #include <$ac_header>
22849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22852 grep -v '^ *+' conftest.er1 >conftest.err
22854 cat conftest.err >&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); } >/dev/null; then
22857 if test -s conftest.err; then
22858 ac_cpp_err=$ac_c_preproc_warn_flag
22859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22866 if test -z "$ac_cpp_err"; then
22867 ac_header_preproc=yes
22869 echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22872 ac_header_preproc=no
22874 rm -f conftest.err conftest.$ac_ext
22875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22876 echo "${ECHO_T}$ac_header_preproc" >&6
22878 # So? What about this header?
22879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22885 ac_header_preproc=yes
22888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22902 ## ----------------------------------- ##
22903 ## Report this to llvmbugs@cs.uiuc.edu ##
22904 ## ----------------------------------- ##
22907 sed "s/^/$as_me: WARNING: /" >&2
22910 echo "$as_me:$LINENO: checking for $ac_header" >&5
22911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22913 echo $ECHO_N "(cached) $ECHO_C" >&6
22915 eval "$as_ac_Header=\$ac_header_preproc"
22917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22922 cat >>confdefs.h <<_ACEOF
22923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22931 for ac_func in getpagesize
22933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22934 echo "$as_me:$LINENO: checking for $ac_func" >&5
22935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22936 if eval "test \"\${$as_ac_var+set}\" = set"; then
22937 echo $ECHO_N "(cached) $ECHO_C" >&6
22939 cat >conftest.$ac_ext <<_ACEOF
22942 cat confdefs.h >>conftest.$ac_ext
22943 cat >>conftest.$ac_ext <<_ACEOF
22944 /* end confdefs.h. */
22945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22947 #define $ac_func innocuous_$ac_func
22949 /* System header to define __stub macros and hopefully few prototypes,
22950 which can conflict with char $ac_func (); below.
22951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22952 <limits.h> exists even on freestanding compilers. */
22955 # include <limits.h>
22957 # include <assert.h>
22962 /* Override any gcc2 internal prototype to avoid an error. */
22967 /* We use char because int might match the return type of a gcc2
22968 builtin and then its argument prototype would still apply. */
22970 /* The GNU C library defines this for functions which it implements
22971 to always fail with ENOSYS. Some functions are actually named
22972 something starting with __ and the normal name is an alias. */
22973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22976 char (*f) () = $ac_func;
22985 return f != $ac_func;
22990 rm -f conftest.$ac_objext conftest$ac_exeext
22991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22992 (eval $ac_link) 2>conftest.er1
22994 grep -v '^ *+' conftest.er1 >conftest.err
22996 cat conftest.err >&5
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); } &&
22999 { ac_try='test -z "$ac_c_werror_flag"
23000 || test ! -s conftest.err'
23001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23002 (eval $ac_try) 2>&5
23004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005 (exit $ac_status); }; } &&
23006 { ac_try='test -s conftest$ac_exeext'
23007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23008 (eval $ac_try) 2>&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); }; }; then
23012 eval "$as_ac_var=yes"
23014 echo "$as_me: failed program was:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23017 eval "$as_ac_var=no"
23019 rm -f conftest.err conftest.$ac_objext \
23020 conftest$ac_exeext conftest.$ac_ext
23022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23024 if test `eval echo '${'$as_ac_var'}'` = yes; then
23025 cat >>confdefs.h <<_ACEOF
23026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23032 echo "$as_me:$LINENO: checking for working mmap" >&5
23033 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23034 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23035 echo $ECHO_N "(cached) $ECHO_C" >&6
23037 if test "$cross_compiling" = yes; then
23038 ac_cv_func_mmap_fixed_mapped=no
23040 cat >conftest.$ac_ext <<_ACEOF
23043 cat confdefs.h >>conftest.$ac_ext
23044 cat >>conftest.$ac_ext <<_ACEOF
23045 /* end confdefs.h. */
23046 $ac_includes_default
23047 /* malloc might have been renamed as rpl_malloc. */
23050 /* Thanks to Mike Haertel and Jim Avera for this test.
23051 Here is a matrix of mmap possibilities:
23052 mmap private not fixed
23053 mmap private fixed at somewhere currently unmapped
23054 mmap private fixed at somewhere already mapped
23055 mmap shared not fixed
23056 mmap shared fixed at somewhere currently unmapped
23057 mmap shared fixed at somewhere already mapped
23058 For private mappings, we should verify that changes cannot be read()
23059 back from the file, nor mmap's back from the file at a different
23060 address. (There have been systems where private was not correctly
23061 implemented like the infamous i386 svr4.0, and systems where the
23062 VM page cache was not coherent with the file system buffer cache
23063 like early versions of FreeBSD and possibly contemporary NetBSD.)
23064 For shared mappings, we should conversely verify that changes get
23065 propagated back to all the places they're supposed to be.
23067 Grep wants private fixed already mapped.
23068 The main things grep needs to know about mmap are:
23069 * does it exist and is it safe to write into the mmap'd area
23070 * how to use it (BSD variants) */
23073 #include <sys/mman.h>
23075 #if !STDC_HEADERS && !HAVE_STDLIB_H
23079 /* This mess was copied from the GNU getpagesize.h. */
23080 #if !HAVE_GETPAGESIZE
23081 /* Assume that all systems that can run configure have sys/param.h. */
23082 # if !HAVE_SYS_PARAM_H
23083 # define HAVE_SYS_PARAM_H 1
23086 # ifdef _SC_PAGESIZE
23087 # define getpagesize() sysconf(_SC_PAGESIZE)
23088 # else /* no _SC_PAGESIZE */
23089 # if HAVE_SYS_PARAM_H
23090 # include <sys/param.h>
23091 # ifdef EXEC_PAGESIZE
23092 # define getpagesize() EXEC_PAGESIZE
23093 # else /* no EXEC_PAGESIZE */
23095 # define getpagesize() NBPG * CLSIZE
23098 # endif /* no CLSIZE */
23099 # else /* no NBPG */
23101 # define getpagesize() NBPC
23102 # else /* no NBPC */
23104 # define getpagesize() PAGESIZE
23105 # endif /* PAGESIZE */
23106 # endif /* no NBPC */
23107 # endif /* no NBPG */
23108 # endif /* no EXEC_PAGESIZE */
23109 # else /* no HAVE_SYS_PARAM_H */
23110 # define getpagesize() 8192 /* punt totally */
23111 # endif /* no HAVE_SYS_PARAM_H */
23112 # endif /* no _SC_PAGESIZE */
23114 #endif /* no HAVE_GETPAGESIZE */
23119 char *data, *data2, *data3;
23123 pagesize = getpagesize ();
23125 /* First, make a file with some known garbage in it. */
23126 data = (char *) malloc (pagesize);
23129 for (i = 0; i < pagesize; ++i)
23130 *(data + i) = rand ();
23132 fd = creat ("conftest.mmap", 0600);
23135 if (write (fd, data, pagesize) != pagesize)
23139 /* Next, try to mmap the file at a fixed address which already has
23140 something else allocated at it. If we can, also make sure that
23141 we see the same garbage. */
23142 fd = open ("conftest.mmap", O_RDWR);
23145 data2 = (char *) malloc (2 * pagesize);
23148 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
23149 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23150 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23152 for (i = 0; i < pagesize; ++i)
23153 if (*(data + i) != *(data2 + i))
23156 /* Finally, make sure that changes to the mapped area do not
23157 percolate back to the file as seen by read(). (This is a bug on
23158 some variants of i386 svr4.0.) */
23159 for (i = 0; i < pagesize; ++i)
23160 *(data2 + i) = *(data2 + i) + 1;
23161 data3 = (char *) malloc (pagesize);
23164 if (read (fd, data3, pagesize) != pagesize)
23166 for (i = 0; i < pagesize; ++i)
23167 if (*(data + i) != *(data3 + i))
23173 rm -f conftest$ac_exeext
23174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23175 (eval $ac_link) 2>&5
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180 (eval $ac_try) 2>&5
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); }; }; then
23184 ac_cv_func_mmap_fixed_mapped=yes
23186 echo "$as_me: program exited with status $ac_status" >&5
23187 echo "$as_me: failed program was:" >&5
23188 sed 's/^/| /' conftest.$ac_ext >&5
23190 ( exit $ac_status )
23191 ac_cv_func_mmap_fixed_mapped=no
23193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23196 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23197 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23198 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23200 cat >>confdefs.h <<\_ACEOF
23201 #define HAVE_MMAP 1
23205 rm -f conftest.mmap
23207 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23209 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23210 echo "$as_me: WARNING: mmap() required but not found" >&2;}
23212 echo "$as_me:$LINENO: checking for mmap of files" >&5
23213 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23214 if test "${ac_cv_func_mmap_file+set}" = set; then
23215 echo $ECHO_N "(cached) $ECHO_C" >&6
23218 ac_cpp='$CPP $CPPFLAGS'
23219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23223 if test "$cross_compiling" = yes; then
23224 ac_cv_func_mmap_file=no
23226 cat >conftest.$ac_ext <<_ACEOF
23228 #ifdef HAVE_SYS_TYPES_H
23229 #include <sys/types.h>
23232 #ifdef HAVE_SYS_MMAN_H
23233 #include <sys/mman.h>
23236 #ifdef HAVE_FCNTL_H
23242 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
23244 rm -f conftest$ac_exeext
23245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23246 (eval $ac_link) 2>&5
23248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23251 (eval $ac_try) 2>&5
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); }; }; then
23255 ac_cv_func_mmap_file=yes
23257 echo "$as_me: program exited with status $ac_status" >&5
23258 echo "$as_me: failed program was:" >&5
23259 sed 's/^/| /' conftest.$ac_ext >&5
23261 ( exit $ac_status )
23262 ac_cv_func_mmap_file=no
23264 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23267 ac_cpp='$CPP $CPPFLAGS'
23268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23274 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23275 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23276 if test "$ac_cv_func_mmap_file" = yes; then
23278 cat >>confdefs.h <<\_ACEOF
23279 #define HAVE_MMAP_FILE
23286 if test "$ac_cv_func_mmap_file" = "no"
23288 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23289 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23291 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23292 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23293 if test "${ac_cv_header_mmap_anon+set}" = set; then
23294 echo $ECHO_N "(cached) $ECHO_C" >&6
23297 ac_cpp='$CPP $CPPFLAGS'
23298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23302 cat >conftest.$ac_ext <<_ACEOF
23305 cat confdefs.h >>conftest.$ac_ext
23306 cat >>conftest.$ac_ext <<_ACEOF
23307 /* end confdefs.h. */
23308 #include <sys/mman.h>
23309 #include <unistd.h>
23314 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23319 rm -f conftest.$ac_objext
23320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23321 (eval $ac_compile) 2>conftest.er1
23323 grep -v '^ *+' conftest.er1 >conftest.err
23325 cat conftest.err >&5
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); } &&
23328 { ac_try='test -z "$ac_c_werror_flag"
23329 || test ! -s conftest.err'
23330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23331 (eval $ac_try) 2>&5
23333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); }; } &&
23335 { ac_try='test -s conftest.$ac_objext'
23336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23337 (eval $ac_try) 2>&5
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); }; }; then
23341 ac_cv_header_mmap_anon=yes
23343 echo "$as_me: failed program was:" >&5
23344 sed 's/^/| /' conftest.$ac_ext >&5
23346 ac_cv_header_mmap_anon=no
23348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23350 ac_cpp='$CPP $CPPFLAGS'
23351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23357 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23358 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23359 if test "$ac_cv_header_mmap_anon" = yes; then
23361 cat >>confdefs.h <<\_ACEOF
23362 #define HAVE_MMAP_ANONYMOUS
23367 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23368 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23369 if test "${ac_cv_type_signal+set}" = set; then
23370 echo $ECHO_N "(cached) $ECHO_C" >&6
23372 cat >conftest.$ac_ext <<_ACEOF
23375 cat confdefs.h >>conftest.$ac_ext
23376 cat >>conftest.$ac_ext <<_ACEOF
23377 /* end confdefs.h. */
23378 #include <sys/types.h>
23379 #include <signal.h>
23384 extern "C" void (*signal (int, void (*)(int)))(int);
23386 void (*signal ()) ();
23397 rm -f conftest.$ac_objext
23398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23399 (eval $ac_compile) 2>conftest.er1
23401 grep -v '^ *+' conftest.er1 >conftest.err
23403 cat conftest.err >&5
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); } &&
23406 { ac_try='test -z "$ac_c_werror_flag"
23407 || test ! -s conftest.err'
23408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23409 (eval $ac_try) 2>&5
23411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); }; } &&
23413 { ac_try='test -s conftest.$ac_objext'
23414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23415 (eval $ac_try) 2>&5
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); }; }; then
23419 ac_cv_type_signal=void
23421 echo "$as_me: failed program was:" >&5
23422 sed 's/^/| /' conftest.$ac_ext >&5
23424 ac_cv_type_signal=int
23426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23428 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23429 echo "${ECHO_T}$ac_cv_type_signal" >&6
23431 cat >>confdefs.h <<_ACEOF
23432 #define RETSIGTYPE $ac_cv_type_signal
23445 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
23447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23448 echo "$as_me:$LINENO: checking for $ac_func" >&5
23449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23450 if eval "test \"\${$as_ac_var+set}\" = set"; then
23451 echo $ECHO_N "(cached) $ECHO_C" >&6
23453 cat >conftest.$ac_ext <<_ACEOF
23456 cat confdefs.h >>conftest.$ac_ext
23457 cat >>conftest.$ac_ext <<_ACEOF
23458 /* end confdefs.h. */
23459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23461 #define $ac_func innocuous_$ac_func
23463 /* System header to define __stub macros and hopefully few prototypes,
23464 which can conflict with char $ac_func (); below.
23465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23466 <limits.h> exists even on freestanding compilers. */
23469 # include <limits.h>
23471 # include <assert.h>
23476 /* Override any gcc2 internal prototype to avoid an error. */
23481 /* We use char because int might match the return type of a gcc2
23482 builtin and then its argument prototype would still apply. */
23484 /* The GNU C library defines this for functions which it implements
23485 to always fail with ENOSYS. Some functions are actually named
23486 something starting with __ and the normal name is an alias. */
23487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23490 char (*f) () = $ac_func;
23499 return f != $ac_func;
23504 rm -f conftest.$ac_objext conftest$ac_exeext
23505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23506 (eval $ac_link) 2>conftest.er1
23508 grep -v '^ *+' conftest.er1 >conftest.err
23510 cat conftest.err >&5
23511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); } &&
23513 { ac_try='test -z "$ac_c_werror_flag"
23514 || test ! -s conftest.err'
23515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23516 (eval $ac_try) 2>&5
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); }; } &&
23520 { ac_try='test -s conftest$ac_exeext'
23521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23522 (eval $ac_try) 2>&5
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); }; }; then
23526 eval "$as_ac_var=yes"
23528 echo "$as_me: failed program was:" >&5
23529 sed 's/^/| /' conftest.$ac_ext >&5
23531 eval "$as_ac_var=no"
23533 rm -f conftest.err conftest.$ac_objext \
23534 conftest$ac_exeext conftest.$ac_ext
23536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23538 if test `eval echo '${'$as_ac_var'}'` = yes; then
23539 cat >>confdefs.h <<_ACEOF
23540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23546 echo "$as_me:$LINENO: checking for mprotect" >&5
23547 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23548 if test "${ac_cv_func_mprotect+set}" = set; then
23549 echo $ECHO_N "(cached) $ECHO_C" >&6
23551 cat >conftest.$ac_ext <<_ACEOF
23554 cat confdefs.h >>conftest.$ac_ext
23555 cat >>conftest.$ac_ext <<_ACEOF
23556 /* end confdefs.h. */
23557 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23559 #define mprotect innocuous_mprotect
23561 /* System header to define __stub macros and hopefully few prototypes,
23562 which can conflict with char mprotect (); below.
23563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23564 <limits.h> exists even on freestanding compilers. */
23567 # include <limits.h>
23569 # include <assert.h>
23574 /* Override any gcc2 internal prototype to avoid an error. */
23579 /* We use char because int might match the return type of a gcc2
23580 builtin and then its argument prototype would still apply. */
23582 /* The GNU C library defines this for functions which it implements
23583 to always fail with ENOSYS. Some functions are actually named
23584 something starting with __ and the normal name is an alias. */
23585 #if defined (__stub_mprotect) || defined (__stub___mprotect)
23588 char (*f) () = mprotect;
23597 return f != mprotect;
23602 rm -f conftest.$ac_objext conftest$ac_exeext
23603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23604 (eval $ac_link) 2>conftest.er1
23606 grep -v '^ *+' conftest.er1 >conftest.err
23608 cat conftest.err >&5
23609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610 (exit $ac_status); } &&
23611 { ac_try='test -z "$ac_c_werror_flag"
23612 || test ! -s conftest.err'
23613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23614 (eval $ac_try) 2>&5
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); }; } &&
23618 { ac_try='test -s conftest$ac_exeext'
23619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23620 (eval $ac_try) 2>&5
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); }; }; then
23624 ac_cv_func_mprotect=yes
23626 echo "$as_me: failed program was:" >&5
23627 sed 's/^/| /' conftest.$ac_ext >&5
23629 ac_cv_func_mprotect=no
23631 rm -f conftest.err conftest.$ac_objext \
23632 conftest$ac_exeext conftest.$ac_ext
23634 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23635 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23636 if test $ac_cv_func_mprotect = yes; then
23639 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23640 echo "$as_me: error: Function mprotect() required but not found" >&2;}
23641 { (exit 1); exit 1; }; }
23646 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23647 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
23649 ac_cpp='$CPP $CPPFLAGS'
23650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23654 oldcflags="$CFLAGS"
23655 CFLAGS="$CFLAGS -Wl,-R."
23656 cat >conftest.$ac_ext <<_ACEOF
23657 int main() { return 0; }
23659 rm -f conftest.$ac_objext conftest$ac_exeext
23660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23661 (eval $ac_link) 2>conftest.er1
23663 grep -v '^ *+' conftest.er1 >conftest.err
23665 cat conftest.err >&5
23666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667 (exit $ac_status); } &&
23668 { ac_try='test -z "$ac_c_werror_flag"
23669 || test ! -s conftest.err'
23670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23671 (eval $ac_try) 2>&5
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); }; } &&
23675 { ac_try='test -s conftest$ac_exeext'
23676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23677 (eval $ac_try) 2>&5
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); }; }; then
23681 ac_cv_link_use_r=yes
23683 echo "$as_me: failed program was:" >&5
23684 sed 's/^/| /' conftest.$ac_ext >&5
23686 ac_cv_link_use_r=no
23688 rm -f conftest.err conftest.$ac_objext \
23689 conftest$ac_exeext conftest.$ac_ext
23690 CFLAGS="$oldcflags"
23692 ac_cpp='$CPP $CPPFLAGS'
23693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23697 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23698 echo "${ECHO_T}$ac_cv_link_use_r" >&6
23699 if test "$ac_cv_link_use_r" = yes
23702 cat >>confdefs.h <<\_ACEOF
23703 #define HAVE_LINK_R 1
23709 # Check whether --enable-optimized or --disable-optimized was given.
23710 if test "${enable_optimized+set}" = set; then
23711 enableval="$enable_optimized"
23716 if test ${enableval} = "no"
23721 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23725 # Check whether --enable-jit or --disable-jit was given.
23726 if test "${enable_jit+set}" = set; then
23727 enableval="$enable_jit"
23732 if test ${enableval} = "no"
23739 JIT=TARGET_HAS_JIT=1
23743 JIT=TARGET_HAS_JIT=1
23754 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23755 if test "${with_llvmgccdir+set}" = set; then
23756 withval="$with_llvmgccdir"
23757 LLVMGCCDIR=$withval
23760 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23761 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23763 if test -d "$LLVMGCCDIR"
23765 if test -x "$LLVMGCCDIR/bin/gcc"
23767 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23771 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23772 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23773 if test "$LLVM_GCC_CHECK" = "no"
23777 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23778 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23780 if test -x "$LLVM_GCC_CHECK"
23782 cp /dev/null conftest.c
23783 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23789 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
23790 LLVMCC1=$llvmcc1path
23792 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
23793 LLVMCC1PLUS=$llvmcc1pluspath
23796 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23797 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23798 if test "$LLVM_GCC_SANE" = "no"
23803 echo "$as_me:$LINENO: checking for shared library suffix" >&5
23804 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23805 eval "SHLIBEXT=$shrext_cmds"
23806 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23807 echo "${ECHO_T}$SHLIBEXT" >&6
23811 cat >>confdefs.h <<_ACEOF
23812 #define SHLIBEXT "$SHLIBEXT"
23816 # Translate the various configuration directories and other basic
23817 # information into substitutions that will end up in config.h.in so
23818 # that these configured values can be hard-wired into a program.
23819 eval LLVM_PREFIX="${prefix}";
23820 eval LLVM_BINDIR="${prefix}/bin";
23821 eval LLVM_LIBDIR="${prefix}/lib";
23822 eval LLVM_DATADIR="${prefix}/data";
23823 eval LLVM_DOCSDIR="${prefix}/docs";
23824 eval LLVM_ETCDIR="${prefix}/etc";
23825 eval LLVM_INCLUDEDIR="${prefix}/include";
23826 eval LLVM_INFODIR="${prefix}/info";
23827 eval LLVM_MANDIR="${prefix}/man";
23828 LLVM_CONFIGTIME=`date`
23840 cat >>confdefs.h <<_ACEOF
23841 #define LLVM_PREFIX "$LLVM_PREFIX"
23845 cat >>confdefs.h <<_ACEOF
23846 #define LLVM_BINDIR "$LLVM_BINDIR"
23850 cat >>confdefs.h <<_ACEOF
23851 #define LLVM_LIBDIR "$LLVM_LIBDIR"
23855 cat >>confdefs.h <<_ACEOF
23856 #define LLVM_DATADIR "$LLVM_DATADIR"
23860 cat >>confdefs.h <<_ACEOF
23861 #define LLVM_DATADIR "$LLVM_DOCSDIR"
23865 cat >>confdefs.h <<_ACEOF
23866 #define LLVM_ETCDIR "$LLVM_ETCDIR"
23870 cat >>confdefs.h <<_ACEOF
23871 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23875 cat >>confdefs.h <<_ACEOF
23876 #define LLVM_INFODIR "$LLVM_INFODIR"
23880 cat >>confdefs.h <<_ACEOF
23881 #define LLVM_MANDIR "$LLVM_MANDIR"
23885 cat >>confdefs.h <<_ACEOF
23886 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23890 cat >confcache <<\_ACEOF
23891 # This file is a shell script that caches the results of configure
23892 # tests run on this system so they can be shared between configure
23893 # scripts and configure runs, see configure's option --config-cache.
23894 # It is not useful on other systems. If it contains results you don't
23895 # want to keep, you may remove or edit it.
23897 # config.status only pays attention to the cache file if you give it
23898 # the --recheck option to rerun configure.
23900 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23901 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23902 # following values.
23906 # The following way of writing the cache mishandles newlines in values,
23907 # but we know of no workaround that is simple, portable, and efficient.
23908 # So, don't put newlines in cache variables' values.
23909 # Ultrix sh set writes to stderr and can't be redirected directly,
23910 # and sets the high bit in the cache file unless we assign to the vars.
23913 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23915 # `set' does not quote correctly, so add quotes (double-quote
23916 # substitution turns \\\\ into \\, and sed turns \\ into \).
23919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23922 # `set' quotes correctly as required by POSIX, so do not add quotes.
23924 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23931 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23933 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23935 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23936 if test -w $cache_file; then
23937 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23938 cat confcache >$cache_file
23940 echo "not updating unwritable cache $cache_file"
23945 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23946 # Let make expand exec_prefix.
23947 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23949 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23950 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23951 # trailing colons and then remove the whole line if VPATH becomes empty
23952 # (actually we leave an empty line to preserve line numbers).
23953 if test "x$srcdir" = x.; then
23954 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23955 s/:*\$(srcdir):*/:/;
23956 s/:*\${srcdir}:*/:/;
23958 s/^\([^=]*=[ ]*\):*/\1/;
23964 DEFS=-DHAVE_CONFIG_H
23968 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23969 # 1. Remove the extension, and $U if already installed.
23970 ac_i=`echo "$ac_i" |
23971 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23973 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23974 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23976 LIBOBJS=$ac_libobjs
23978 LTLIBOBJS=$ac_ltlibobjs
23982 : ${CONFIG_STATUS=./config.status}
23983 ac_clean_files_save=$ac_clean_files
23984 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23985 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23986 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23987 cat >$CONFIG_STATUS <<_ACEOF
23989 # Generated by $as_me.
23990 # Run this file to recreate the current configuration.
23991 # Compiler output produced by configure, useful for debugging
23992 # configure, is in config.log if it exists.
23995 ac_cs_recheck=false
23997 SHELL=\${CONFIG_SHELL-$SHELL}
24000 cat >>$CONFIG_STATUS <<\_ACEOF
24001 ## --------------------- ##
24002 ## M4sh Initialization. ##
24003 ## --------------------- ##
24005 # Be Bourne compatible
24006 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24009 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24010 # is contrary to our usage. Disable this feature.
24011 alias -g '${1+"$@"}'='"$@"'
24012 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24015 DUALCASE=1; export DUALCASE # for MKS sh
24017 # Support unset when possible.
24018 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24025 # Work around bugs in pre-3.0 UWIN ksh.
24026 $as_unset ENV MAIL MAILPATH
24033 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24034 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24035 LC_TELEPHONE LC_TIME
24037 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24038 eval $as_var=C; export $as_var
24044 # Required to use basename.
24045 if expr a : '\(a\)' >/dev/null 2>&1; then
24051 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24052 as_basename=basename
24058 # Name of the executable.
24059 as_me=`$as_basename "$0" ||
24060 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24061 X"$0" : 'X\(//\)$' \| \
24062 X"$0" : 'X\(/\)$' \| \
24063 . : '\(.\)' 2>/dev/null ||
24065 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24066 /^X\/\(\/\/\)$/{ s//\1/; q; }
24067 /^X\/\(\/\).*/{ s//\1/; q; }
24071 # PATH needs CR, and LINENO needs CR and PATH.
24072 # Avoid depending upon Character Ranges.
24073 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24074 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24075 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24076 as_cr_digits='0123456789'
24077 as_cr_alnum=$as_cr_Letters$as_cr_digits
24079 # The user is always right.
24080 if test "${PATH_SEPARATOR+set}" != set; then
24081 echo "#! /bin/sh" >conf$$.sh
24082 echo "exit 0" >>conf$$.sh
24084 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24093 as_lineno_1=$LINENO
24094 as_lineno_2=$LINENO
24095 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24096 test "x$as_lineno_1" != "x$as_lineno_2" &&
24097 test "x$as_lineno_3" = "x$as_lineno_2" || {
24098 # Find who we are. Look in the path if we contain no path at all
24101 *[\\/]* ) as_myself=$0 ;;
24102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24103 for as_dir in $PATH
24106 test -z "$as_dir" && as_dir=.
24107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24112 # We did not find ourselves, most probably we were run as `sh COMMAND'
24113 # in which case we are not to be found in the path.
24114 if test "x$as_myself" = x; then
24117 if test ! -f "$as_myself"; then
24118 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24119 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24120 { (exit 1); exit 1; }; }
24122 case $CONFIG_SHELL in
24124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24125 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24128 test -z "$as_dir" && as_dir=.
24129 for as_base in sh bash ksh sh5; do
24132 if ("$as_dir/$as_base" -c '
24133 as_lineno_1=$LINENO
24134 as_lineno_2=$LINENO
24135 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24136 test "x$as_lineno_1" != "x$as_lineno_2" &&
24137 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24138 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24139 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24140 CONFIG_SHELL=$as_dir/$as_base
24141 export CONFIG_SHELL
24142 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24150 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24151 # uniformly replaced by the line number. The first 'sed' inserts a
24152 # line-number line before each line; the second 'sed' does the real
24153 # work. The second script uses 'N' to pair each line-number line
24154 # with the numbered line, and appends trailing '-' during
24155 # substitution so that $LINENO is not a special case at line end.
24156 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24157 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24158 sed '=' <$as_myself |
24163 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24166 s,^['$as_cr_digits']*\n,,
24167 ' >$as_me.lineno &&
24168 chmod +x $as_me.lineno ||
24169 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24170 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24171 { (exit 1); exit 1; }; }
24173 # Don't try to exec as it changes $[0], causing all sort of problems
24174 # (the dirname of $[0] is not the place where we might find the
24175 # original and so on. Autoconf is especially sensible to this).
24177 # Exit status is that of the last command.
24182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24183 *c*,-n*) ECHO_N= ECHO_C='
24185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24189 if expr a : '\(a\)' >/dev/null 2>&1; then
24195 rm -f conf$$ conf$$.exe conf$$.file
24197 if ln -s conf$$.file conf$$ 2>/dev/null; then
24198 # We could just check for DJGPP; but this test a) works b) is more generic
24199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24200 if test -f conf$$.exe; then
24201 # Don't use ln at all; we don't have any links
24206 elif ln conf$$.file conf$$ 2>/dev/null; then
24211 rm -f conf$$ conf$$.exe conf$$.file
24213 if mkdir -p . 2>/dev/null; then
24216 test -d ./-p && rmdir ./-p
24220 as_executable_p="test -f"
24222 # Sed expression to map a string onto a valid CPP name.
24223 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24225 # Sed expression to map a string onto a valid variable name.
24226 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24230 # We need space, tab and new line, in precisely that order.
24240 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24241 # report actual input values of CONFIG_FILES etc. instead of their
24242 # values after options handling. Logging --version etc. is OK.
24246 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24247 ## Running $as_me. ##
24252 This file was extended by LLVM $as_me 1.4, which was
24253 generated by GNU Autoconf 2.59. Invocation command line was
24255 CONFIG_FILES = $CONFIG_FILES
24256 CONFIG_HEADERS = $CONFIG_HEADERS
24257 CONFIG_LINKS = $CONFIG_LINKS
24258 CONFIG_COMMANDS = $CONFIG_COMMANDS
24262 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24266 # Files that config.status was made for.
24267 if test -n "$ac_config_files"; then
24268 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24271 if test -n "$ac_config_headers"; then
24272 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24275 if test -n "$ac_config_links"; then
24276 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24279 if test -n "$ac_config_commands"; then
24280 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24283 cat >>$CONFIG_STATUS <<\_ACEOF
24286 \`$as_me' instantiates files from templates according to the
24287 current configuration.
24289 Usage: $0 [OPTIONS] [FILE]...
24291 -h, --help print this help, then exit
24292 -V, --version print version number, then exit
24293 -q, --quiet do not print progress messages
24294 -d, --debug don't remove temporary files
24295 --recheck update $as_me by reconfiguring in the same conditions
24296 --file=FILE[:TEMPLATE]
24297 instantiate the configuration file FILE
24298 --header=FILE[:TEMPLATE]
24299 instantiate the configuration header FILE
24301 Configuration files:
24304 Configuration headers:
24307 Configuration links:
24310 Configuration commands:
24313 Report bugs to <bug-autoconf@gnu.org>."
24316 cat >>$CONFIG_STATUS <<_ACEOF
24318 LLVM config.status 1.4
24319 configured by $0, generated by GNU Autoconf 2.59,
24320 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24322 Copyright (C) 2003 Free Software Foundation, Inc.
24323 This config.status script is free software; the Free Software Foundation
24324 gives unlimited permission to copy, distribute and modify it."
24329 cat >>$CONFIG_STATUS <<\_ACEOF
24330 # If no file are specified by the user, then we need to provide default
24331 # value. By we need to know if files were specified by the user.
24337 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24338 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24346 *) # This is not an option, so the user has probably given explicit
24349 ac_need_defaults=false;;
24353 # Handling of the options.
24355 cat >>$CONFIG_STATUS <<\_ACEOF
24356 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24358 --version | --vers* | -V )
24359 echo "$ac_cs_version"; exit 0 ;;
24361 # Conflict between --help and --header
24362 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24363 Try \`$0 --help' for more information." >&5
24364 echo "$as_me: error: ambiguous option: $1
24365 Try \`$0 --help' for more information." >&2;}
24366 { (exit 1); exit 1; }; };;
24367 --help | --hel | -h )
24368 echo "$ac_cs_usage"; exit 0 ;;
24369 --debug | --d* | -d )
24371 --file | --fil | --fi | --f )
24373 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24374 ac_need_defaults=false;;
24375 --header | --heade | --head | --hea )
24377 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24378 ac_need_defaults=false;;
24379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24380 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24383 # This is an error.
24384 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24385 Try \`$0 --help' for more information." >&5
24386 echo "$as_me: error: unrecognized option: $1
24387 Try \`$0 --help' for more information." >&2;}
24388 { (exit 1); exit 1; }; } ;;
24390 *) ac_config_targets="$ac_config_targets $1" ;;
24396 ac_configure_extra_args=
24398 if $ac_cs_silent; then
24400 ac_configure_extra_args="$ac_configure_extra_args --silent"
24404 cat >>$CONFIG_STATUS <<_ACEOF
24405 if \$ac_cs_recheck; then
24406 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24407 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24412 cat >>$CONFIG_STATUS <<_ACEOF
24414 # INIT-COMMANDS section.
24417 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24418 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
24419 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
24420 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
24421 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24422 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24423 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24424 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24425 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
24426 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
24427 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
24428 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
24434 cat >>$CONFIG_STATUS <<\_ACEOF
24435 for ac_config_target in $ac_config_targets
24437 case "$ac_config_target" in
24438 # Handling of arguments.
24439 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
24440 "include/llvm/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/DataTypes.h" ;;
24441 "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;;
24442 "include/llvm/ADT/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_map" ;;
24443 "include/llvm/ADT/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_set" ;;
24444 "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;;
24445 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
24446 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24447 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
24448 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
24449 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
24450 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24451 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24452 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24453 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24454 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24455 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24456 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24457 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24458 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
24459 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24460 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24461 { (exit 1); exit 1; }; };;
24465 # If the user did not use the arguments to specify the items to instantiate,
24466 # then the envvar interface is used. Set only those that are not.
24467 # We use the long form for the default assignment because of an extremely
24468 # bizarre bug on SunOS 4.1.3.
24469 if $ac_need_defaults; then
24470 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24471 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24472 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24473 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24476 # Have a temporary directory for convenience. Make it in the build tree
24477 # simply because there is no reason to put it here, and in addition,
24478 # creating and moving files from /tmp can sometimes cause problems.
24479 # Create a temporary directory, and hook for its removal unless debugging.
24482 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24483 trap '{ (exit 1); exit 1; }' 1 2 13 15
24486 # Create a (secure) tmp directory for tmp files.
24489 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24490 test -n "$tmp" && test -d "$tmp"
24493 tmp=./confstat$$-$RANDOM
24494 (umask 077 && mkdir $tmp)
24497 echo "$me: cannot create a temporary directory in ." >&2
24498 { (exit 1); exit 1; }
24503 cat >>$CONFIG_STATUS <<_ACEOF
24506 # CONFIG_FILES section.
24509 # No need to generate the scripts if there are no CONFIG_FILES.
24510 # This happens for instance when ./config.status config.h
24511 if test -n "\$CONFIG_FILES"; then
24512 # Protect against being on the right side of a sed subst in config.status.
24513 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24514 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24515 s,@SHELL@,$SHELL,;t t
24516 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24517 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24518 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24519 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24520 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24521 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24522 s,@exec_prefix@,$exec_prefix,;t t
24523 s,@prefix@,$prefix,;t t
24524 s,@program_transform_name@,$program_transform_name,;t t
24525 s,@bindir@,$bindir,;t t
24526 s,@sbindir@,$sbindir,;t t
24527 s,@libexecdir@,$libexecdir,;t t
24528 s,@datadir@,$datadir,;t t
24529 s,@sysconfdir@,$sysconfdir,;t t
24530 s,@sharedstatedir@,$sharedstatedir,;t t
24531 s,@localstatedir@,$localstatedir,;t t
24532 s,@libdir@,$libdir,;t t
24533 s,@includedir@,$includedir,;t t
24534 s,@oldincludedir@,$oldincludedir,;t t
24535 s,@infodir@,$infodir,;t t
24536 s,@mandir@,$mandir,;t t
24537 s,@build_alias@,$build_alias,;t t
24538 s,@host_alias@,$host_alias,;t t
24539 s,@target_alias@,$target_alias,;t t
24540 s,@DEFS@,$DEFS,;t t
24541 s,@ECHO_C@,$ECHO_C,;t t
24542 s,@ECHO_N@,$ECHO_N,;t t
24543 s,@ECHO_T@,$ECHO_T,;t t
24544 s,@LIBS@,$LIBS,;t t
24545 s,@subdirs@,$subdirs,;t t
24546 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24547 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24548 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24549 s,@build@,$build,;t t
24550 s,@build_cpu@,$build_cpu,;t t
24551 s,@build_vendor@,$build_vendor,;t t
24552 s,@build_os@,$build_os,;t t
24553 s,@host@,$host,;t t
24554 s,@host_cpu@,$host_cpu,;t t
24555 s,@host_vendor@,$host_vendor,;t t
24556 s,@host_os@,$host_os,;t t
24557 s,@target@,$target,;t t
24558 s,@target_cpu@,$target_cpu,;t t
24559 s,@target_vendor@,$target_vendor,;t t
24560 s,@target_os@,$target_os,;t t
24562 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24563 s,@ARCH@,$ARCH,;t t
24565 s,@CXXFLAGS@,$CXXFLAGS,;t t
24566 s,@LDFLAGS@,$LDFLAGS,;t t
24567 s,@CPPFLAGS@,$CPPFLAGS,;t t
24568 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24569 s,@EXEEXT@,$EXEEXT,;t t
24570 s,@OBJEXT@,$OBJEXT,;t t
24572 s,@CFLAGS@,$CFLAGS,;t t
24573 s,@ac_ct_CC@,$ac_ct_CC,;t t
24575 s,@ifGNUmake@,$ifGNUmake,;t t
24577 s,@LEXLIB@,$LEXLIB,;t t
24578 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24579 s,@FLEX@,$FLEX,;t t
24580 s,@YACC@,$YACC,;t t
24581 s,@BISON@,$BISON,;t t
24582 s,@EGREP@,$EGREP,;t t
24583 s,@LN_S@,$LN_S,;t t
24584 s,@ECHO@,$ECHO,;t t
24586 s,@ac_ct_AR@,$ac_ct_AR,;t t
24587 s,@RANLIB@,$RANLIB,;t t
24588 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24589 s,@STRIP@,$STRIP,;t t
24590 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24591 s,@CXXCPP@,$CXXCPP,;t t
24593 s,@FFLAGS@,$FFLAGS,;t t
24594 s,@ac_ct_F77@,$ac_ct_F77,;t t
24595 s,@LIBTOOL@,$LIBTOOL,;t t
24597 s,@ETAGS@,$ETAGS,;t t
24598 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
24599 s,@PYTHON@,$PYTHON,;t t
24600 s,@QMTEST@,$QMTEST,;t t
24601 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
24602 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24603 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
24604 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
24605 s,@ENDIAN@,$ENDIAN,;t t
24606 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24607 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24608 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24609 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24610 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24611 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
24612 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24613 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24614 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
24615 s,@ALLOCA@,$ALLOCA,;t t
24616 s,@MMAP_FILE@,$MMAP_FILE,;t t
24617 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24619 s,@LLVMCC1@,$LLVMCC1,;t t
24620 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
24621 s,@SHLIBEXT@,$SHLIBEXT,;t t
24622 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24623 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24624 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24625 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24626 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24627 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24628 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24629 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24630 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24631 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
24632 s,@LIBOBJS@,$LIBOBJS,;t t
24633 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24638 cat >>$CONFIG_STATUS <<\_ACEOF
24639 # Split the substitutions into bite-sized pieces for seds with
24640 # small command number limits, like on Digital OSF/1 and HP-UX.
24641 ac_max_sed_lines=48
24642 ac_sed_frag=1 # Number of current file.
24643 ac_beg=1 # First line for current file.
24644 ac_end=$ac_max_sed_lines # Line after last line for current file.
24647 while $ac_more_lines; do
24648 if test $ac_beg -gt 1; then
24649 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24651 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24653 if test ! -s $tmp/subs.frag; then
24654 ac_more_lines=false
24656 # The purpose of the label and of the branching condition is to
24657 # speed up the sed processing (if there are no `@' at all, there
24658 # is no need to browse any of the substitutions).
24659 # These are the two extra sed commands mentioned above.
24661 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24662 if test -z "$ac_sed_cmds"; then
24663 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24665 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24667 ac_sed_frag=`expr $ac_sed_frag + 1`
24669 ac_end=`expr $ac_end + $ac_max_sed_lines`
24672 if test -z "$ac_sed_cmds"; then
24675 fi # test -n "$CONFIG_FILES"
24678 cat >>$CONFIG_STATUS <<\_ACEOF
24679 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24680 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24682 - | *:- | *:-:* ) # input from stdin
24684 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24685 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24686 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24687 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24688 * ) ac_file_in=$ac_file.in ;;
24691 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24692 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24693 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24694 X"$ac_file" : 'X\(//\)[^/]' \| \
24695 X"$ac_file" : 'X\(//\)$' \| \
24696 X"$ac_file" : 'X\(/\)' \| \
24697 . : '\(.\)' 2>/dev/null ||
24699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24701 /^X\(\/\/\)$/{ s//\1/; q; }
24702 /^X\(\/\).*/{ s//\1/; q; }
24704 { if $as_mkdir_p; then
24709 while test ! -d "$as_dir"; do
24710 as_dirs="$as_dir $as_dirs"
24711 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24713 X"$as_dir" : 'X\(//\)[^/]' \| \
24714 X"$as_dir" : 'X\(//\)$' \| \
24715 X"$as_dir" : 'X\(/\)' \| \
24716 . : '\(.\)' 2>/dev/null ||
24718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24720 /^X\(\/\/\)$/{ s//\1/; q; }
24721 /^X\(\/\).*/{ s//\1/; q; }
24724 test ! -n "$as_dirs" || mkdir $as_dirs
24725 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24726 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24727 { (exit 1); exit 1; }; }; }
24731 if test "$ac_dir" != .; then
24732 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24733 # A "../" for each directory in $ac_dir_suffix.
24734 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24736 ac_dir_suffix= ac_top_builddir=
24740 .) # No --srcdir option. We are building in place.
24742 if test -z "$ac_top_builddir"; then
24745 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24747 [\\/]* | ?:[\\/]* ) # Absolute path.
24748 ac_srcdir=$srcdir$ac_dir_suffix;
24749 ac_top_srcdir=$srcdir ;;
24750 *) # Relative path.
24751 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24752 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24755 # Do not use `cd foo && pwd` to compute absolute paths, because
24756 # the directories may not exist.
24758 .) ac_abs_builddir="$ac_dir";;
24761 .) ac_abs_builddir=`pwd`;;
24762 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24763 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24766 case $ac_abs_builddir in
24767 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24769 case ${ac_top_builddir}. in
24770 .) ac_abs_top_builddir=$ac_abs_builddir;;
24771 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24772 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24775 case $ac_abs_builddir in
24776 .) ac_abs_srcdir=$ac_srcdir;;
24779 .) ac_abs_srcdir=$ac_abs_builddir;;
24780 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24781 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24784 case $ac_abs_builddir in
24785 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24787 case $ac_top_srcdir in
24788 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24789 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24790 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24796 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24797 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24800 if test x"$ac_file" != x-; then
24801 { echo "$as_me:$LINENO: creating $ac_file" >&5
24802 echo "$as_me: creating $ac_file" >&6;}
24805 # Let's still pretend it is `configure' which instantiates (i.e., don't
24806 # use $as_me), people would be surprised to read:
24807 # /* config.h. Generated by config.status. */
24808 if test x"$ac_file" = x-; then
24811 configure_input="$ac_file. "
24813 configure_input=$configure_input"Generated from `echo $ac_file_in |
24814 sed 's,.*/,,'` by configure."
24816 # First look for the input files in the build tree, otherwise in the
24818 ac_file_inputs=`IFS=:
24819 for f in $ac_file_in; do
24821 -) echo $tmp/stdin ;;
24823 # Absolute (can't be DOS-style, as IFS=:)
24824 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24825 echo "$as_me: error: cannot find input file: $f" >&2;}
24826 { (exit 1); exit 1; }; }
24829 if test -f "$f"; then
24832 elif test -f "$srcdir/$f"; then
24837 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24838 echo "$as_me: error: cannot find input file: $f" >&2;}
24839 { (exit 1); exit 1; }; }
24842 done` || { (exit 1); exit 1; }
24844 cat >>$CONFIG_STATUS <<_ACEOF
24848 cat >>$CONFIG_STATUS <<\_ACEOF
24850 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24851 s,@configure_input@,$configure_input,;t t
24852 s,@srcdir@,$ac_srcdir,;t t
24853 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24854 s,@top_srcdir@,$ac_top_srcdir,;t t
24855 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24856 s,@builddir@,$ac_builddir,;t t
24857 s,@abs_builddir@,$ac_abs_builddir,;t t
24858 s,@top_builddir@,$ac_top_builddir,;t t
24859 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24860 s,@INSTALL@,$ac_INSTALL,;t t
24861 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24863 if test x"$ac_file" != x-; then
24864 mv $tmp/out $ac_file
24872 cat >>$CONFIG_STATUS <<\_ACEOF
24875 # CONFIG_HEADER section.
24878 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24879 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24881 # ac_d sets the value in "#define NAME VALUE" lines.
24882 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24883 ac_dB='[ ].*$,\1#\2'
24886 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24887 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24888 ac_uB='$,\1#\2define\3'
24892 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24893 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24895 - | *:- | *:-:* ) # input from stdin
24897 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24898 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24899 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24900 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24901 * ) ac_file_in=$ac_file.in ;;
24904 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24905 echo "$as_me: creating $ac_file" >&6;}
24907 # First look for the input files in the build tree, otherwise in the
24909 ac_file_inputs=`IFS=:
24910 for f in $ac_file_in; do
24912 -) echo $tmp/stdin ;;
24914 # Absolute (can't be DOS-style, as IFS=:)
24915 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24916 echo "$as_me: error: cannot find input file: $f" >&2;}
24917 { (exit 1); exit 1; }; }
24918 # Do quote $f, to prevent DOS paths from being IFS'd.
24921 if test -f "$f"; then
24924 elif test -f "$srcdir/$f"; then
24929 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24930 echo "$as_me: error: cannot find input file: $f" >&2;}
24931 { (exit 1); exit 1; }; }
24934 done` || { (exit 1); exit 1; }
24935 # Remove the trailing spaces.
24936 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24940 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24941 # `conftest.undefs', that substitutes the proper values into
24942 # config.h.in to produce config.h. The first handles `#define'
24943 # templates, and the second `#undef' templates.
24944 # And first: Protect against being on the right side of a sed subst in
24945 # config.status. Protect against being in an unquoted here document
24946 # in config.status.
24947 rm -f conftest.defines conftest.undefs
24948 # Using a here document instead of a string reduces the quoting nightmare.
24949 # Putting comments in sed scripts is not portable.
24951 # `end' is used to avoid that the second main sed command (meant for
24952 # 0-ary CPP macros) applies to n-ary macro definitions.
24953 # See the Autoconf documentation for `clear'.
24954 cat >confdef2sed.sed <<\_ACEOF
24959 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24961 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24964 # If some macros were called several times there might be several times
24965 # the same #defines, which is useless. Nevertheless, we may not want to
24966 # sort them, since we want the *last* AC-DEFINE to be honored.
24967 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24968 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24969 rm -f confdef2sed.sed
24971 # This sed command replaces #undef with comments. This is necessary, for
24972 # example, in the case of _POSIX_SOURCE, which is predefined and required
24973 # on some systems where configure will not decide to define it.
24974 cat >>conftest.undefs <<\_ACEOF
24975 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24978 # Break up conftest.defines because some shells have a limit on the size
24979 # of here documents, and old seds have small limits too (100 cmds).
24980 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24981 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24982 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24983 echo ' :' >>$CONFIG_STATUS
24984 rm -f conftest.tail
24985 while grep . conftest.defines >/dev/null
24987 # Write a limited-size here document to $tmp/defines.sed.
24988 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24989 # Speed up: don't consider the non `#define' lines.
24990 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24991 # Work around the forget-to-reset-the-flag bug.
24992 echo 't clr' >>$CONFIG_STATUS
24993 echo ': clr' >>$CONFIG_STATUS
24994 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24996 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24998 mv $tmp/out $tmp/in
25000 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25001 rm -f conftest.defines
25002 mv conftest.tail conftest.defines
25004 rm -f conftest.defines
25005 echo ' fi # grep' >>$CONFIG_STATUS
25006 echo >>$CONFIG_STATUS
25008 # Break up conftest.undefs because some shells have a limit on the size
25009 # of here documents, and old seds have small limits too (100 cmds).
25010 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25011 rm -f conftest.tail
25012 while grep . conftest.undefs >/dev/null
25014 # Write a limited-size here document to $tmp/undefs.sed.
25015 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25016 # Speed up: don't consider the non `#undef'
25017 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25018 # Work around the forget-to-reset-the-flag bug.
25019 echo 't clr' >>$CONFIG_STATUS
25020 echo ': clr' >>$CONFIG_STATUS
25021 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25023 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25025 mv $tmp/out $tmp/in
25027 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25028 rm -f conftest.undefs
25029 mv conftest.tail conftest.undefs
25031 rm -f conftest.undefs
25033 cat >>$CONFIG_STATUS <<\_ACEOF
25034 # Let's still pretend it is `configure' which instantiates (i.e., don't
25035 # use $as_me), people would be surprised to read:
25036 # /* config.h. Generated by config.status. */
25037 if test x"$ac_file" = x-; then
25038 echo "/* Generated by configure. */" >$tmp/config.h
25040 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25042 cat $tmp/in >>$tmp/config.h
25044 if test x"$ac_file" != x-; then
25045 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25046 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25047 echo "$as_me: $ac_file is unchanged" >&6;}
25049 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25050 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25051 X"$ac_file" : 'X\(//\)[^/]' \| \
25052 X"$ac_file" : 'X\(//\)$' \| \
25053 X"$ac_file" : 'X\(/\)' \| \
25054 . : '\(.\)' 2>/dev/null ||
25056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25058 /^X\(\/\/\)$/{ s//\1/; q; }
25059 /^X\(\/\).*/{ s//\1/; q; }
25061 { if $as_mkdir_p; then
25066 while test ! -d "$as_dir"; do
25067 as_dirs="$as_dir $as_dirs"
25068 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25069 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25070 X"$as_dir" : 'X\(//\)[^/]' \| \
25071 X"$as_dir" : 'X\(//\)$' \| \
25072 X"$as_dir" : 'X\(/\)' \| \
25073 . : '\(.\)' 2>/dev/null ||
25075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25076 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25077 /^X\(\/\/\)$/{ s//\1/; q; }
25078 /^X\(\/\).*/{ s//\1/; q; }
25081 test ! -n "$as_dirs" || mkdir $as_dirs
25082 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25083 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25084 { (exit 1); exit 1; }; }; }
25087 mv $tmp/config.h $ac_file
25091 rm -f $tmp/config.h
25095 cat >>$CONFIG_STATUS <<\_ACEOF
25098 # CONFIG_LINKS section.
25101 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25102 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25103 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25105 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25106 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25108 if test ! -r $srcdir/$ac_source; then
25109 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25110 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25111 { (exit 1); exit 1; }; }
25115 # Make relative symlinks.
25116 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25117 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25118 X"$ac_dest" : 'X\(//\)[^/]' \| \
25119 X"$ac_dest" : 'X\(//\)$' \| \
25120 X"$ac_dest" : 'X\(/\)' \| \
25121 . : '\(.\)' 2>/dev/null ||
25123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25125 /^X\(\/\/\)$/{ s//\1/; q; }
25126 /^X\(\/\).*/{ s//\1/; q; }
25128 { if $as_mkdir_p; then
25129 mkdir -p "$ac_dest_dir"
25131 as_dir="$ac_dest_dir"
25133 while test ! -d "$as_dir"; do
25134 as_dirs="$as_dir $as_dirs"
25135 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25136 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25137 X"$as_dir" : 'X\(//\)[^/]' \| \
25138 X"$as_dir" : 'X\(//\)$' \| \
25139 X"$as_dir" : 'X\(/\)' \| \
25140 . : '\(.\)' 2>/dev/null ||
25142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25143 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25144 /^X\(\/\/\)$/{ s//\1/; q; }
25145 /^X\(\/\).*/{ s//\1/; q; }
25148 test ! -n "$as_dirs" || mkdir $as_dirs
25149 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25150 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25151 { (exit 1); exit 1; }; }; }
25155 if test "$ac_dest_dir" != .; then
25156 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25157 # A "../" for each directory in $ac_dir_suffix.
25158 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25160 ac_dir_suffix= ac_top_builddir=
25164 .) # No --srcdir option. We are building in place.
25166 if test -z "$ac_top_builddir"; then
25169 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25171 [\\/]* | ?:[\\/]* ) # Absolute path.
25172 ac_srcdir=$srcdir$ac_dir_suffix;
25173 ac_top_srcdir=$srcdir ;;
25174 *) # Relative path.
25175 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25176 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25179 # Do not use `cd foo && pwd` to compute absolute paths, because
25180 # the directories may not exist.
25182 .) ac_abs_builddir="$ac_dest_dir";;
25184 case "$ac_dest_dir" in
25185 .) ac_abs_builddir=`pwd`;;
25186 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25187 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25190 case $ac_abs_builddir in
25191 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25193 case ${ac_top_builddir}. in
25194 .) ac_abs_top_builddir=$ac_abs_builddir;;
25195 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25196 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25199 case $ac_abs_builddir in
25200 .) ac_abs_srcdir=$ac_srcdir;;
25203 .) ac_abs_srcdir=$ac_abs_builddir;;
25204 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25205 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25208 case $ac_abs_builddir in
25209 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25211 case $ac_top_srcdir in
25212 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25213 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25214 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25220 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25221 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25224 # Try a symlink, then a hard link, then a copy.
25225 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25226 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25227 cp -p $srcdir/$ac_source $ac_dest ||
25228 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25229 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25230 { (exit 1); exit 1; }; }
25233 cat >>$CONFIG_STATUS <<\_ACEOF
25236 # CONFIG_COMMANDS section.
25238 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25239 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25240 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25241 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25242 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25243 X"$ac_dest" : 'X\(//\)[^/]' \| \
25244 X"$ac_dest" : 'X\(//\)$' \| \
25245 X"$ac_dest" : 'X\(/\)' \| \
25246 . : '\(.\)' 2>/dev/null ||
25248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25249 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25250 /^X\(\/\/\)$/{ s//\1/; q; }
25251 /^X\(\/\).*/{ s//\1/; q; }
25253 { if $as_mkdir_p; then
25258 while test ! -d "$as_dir"; do
25259 as_dirs="$as_dir $as_dirs"
25260 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25261 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25262 X"$as_dir" : 'X\(//\)[^/]' \| \
25263 X"$as_dir" : 'X\(//\)$' \| \
25264 X"$as_dir" : 'X\(/\)' \| \
25265 . : '\(.\)' 2>/dev/null ||
25267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25269 /^X\(\/\/\)$/{ s//\1/; q; }
25270 /^X\(\/\).*/{ s//\1/; q; }
25273 test ! -n "$as_dirs" || mkdir $as_dirs
25274 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25275 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25276 { (exit 1); exit 1; }; }; }
25280 if test "$ac_dir" != .; then
25281 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25282 # A "../" for each directory in $ac_dir_suffix.
25283 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25285 ac_dir_suffix= ac_top_builddir=
25289 .) # No --srcdir option. We are building in place.
25291 if test -z "$ac_top_builddir"; then
25294 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25296 [\\/]* | ?:[\\/]* ) # Absolute path.
25297 ac_srcdir=$srcdir$ac_dir_suffix;
25298 ac_top_srcdir=$srcdir ;;
25299 *) # Relative path.
25300 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25301 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25304 # Do not use `cd foo && pwd` to compute absolute paths, because
25305 # the directories may not exist.
25307 .) ac_abs_builddir="$ac_dir";;
25310 .) ac_abs_builddir=`pwd`;;
25311 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25312 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25315 case $ac_abs_builddir in
25316 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25318 case ${ac_top_builddir}. in
25319 .) ac_abs_top_builddir=$ac_abs_builddir;;
25320 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25321 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25324 case $ac_abs_builddir in
25325 .) ac_abs_srcdir=$ac_srcdir;;
25328 .) ac_abs_srcdir=$ac_abs_builddir;;
25329 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25330 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25333 case $ac_abs_builddir in
25334 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25336 case $ac_top_srcdir in
25337 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25338 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25339 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25344 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25345 echo "$as_me: executing $ac_dest commands" >&6;}
25347 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25348 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25349 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25350 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25351 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25352 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25353 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25354 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25355 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25356 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25357 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25358 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25363 cat >>$CONFIG_STATUS <<\_ACEOF
25365 { (exit 0); exit 0; }
25367 chmod +x $CONFIG_STATUS
25368 ac_clean_files=$ac_clean_files_save
25371 # configure is writing to config.log, and then calls config.status.
25372 # config.status does its own redirection, appending to config.log.
25373 # Unfortunately, on DOS this fails, as config.log is still kept open
25374 # by configure, so config.status won't be able to write to it; its
25375 # output is simply discarded. So we exec the FD to /dev/null,
25376 # effectively closing config.log, so it can be properly (re)opened and
25377 # appended to by config.status. When coming back to configure, we
25378 # need to make the FD available again.
25379 if test "$no_create" != yes; then
25381 ac_config_status_args=
25382 test "$silent" = yes &&
25383 ac_config_status_args="$ac_config_status_args --quiet"
25385 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25387 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25388 # would make configure fail if this is the last instruction.
25389 $ac_cs_success || { (exit 1); exit 1; }
25393 # CONFIG_SUBDIRS section.
25395 if test "$no_recursion" != yes; then
25397 # Remove --cache-file and --srcdir arguments so they do not pile up.
25398 ac_sub_configure_args=
25400 for ac_arg in $ac_configure_args; do
25401 if test -n "$ac_prev"; then
25406 -cache-file | --cache-file | --cache-fil | --cache-fi \
25407 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25408 ac_prev=cache_file ;;
25409 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25410 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25413 --config-cache | -C)
25415 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25417 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25419 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25421 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25423 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25427 # Always prepend --prefix to ensure using the same prefix
25428 # in subdir configurations.
25429 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25432 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25434 # Do not complain, so a configure script can configure whichever
25435 # parts of a large source tree are present.
25436 test -d $srcdir/$ac_dir || continue
25438 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25439 echo "$as_me: configuring in $ac_dir" >&6;}
25440 { if $as_mkdir_p; then
25445 while test ! -d "$as_dir"; do
25446 as_dirs="$as_dir $as_dirs"
25447 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25449 X"$as_dir" : 'X\(//\)[^/]' \| \
25450 X"$as_dir" : 'X\(//\)$' \| \
25451 X"$as_dir" : 'X\(/\)' \| \
25452 . : '\(.\)' 2>/dev/null ||
25454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25455 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25456 /^X\(\/\/\)$/{ s//\1/; q; }
25457 /^X\(\/\).*/{ s//\1/; q; }
25460 test ! -n "$as_dirs" || mkdir $as_dirs
25461 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25462 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25463 { (exit 1); exit 1; }; }; }
25467 if test "$ac_dir" != .; then
25468 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25469 # A "../" for each directory in $ac_dir_suffix.
25470 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25472 ac_dir_suffix= ac_top_builddir=
25476 .) # No --srcdir option. We are building in place.
25478 if test -z "$ac_top_builddir"; then
25481 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25483 [\\/]* | ?:[\\/]* ) # Absolute path.
25484 ac_srcdir=$srcdir$ac_dir_suffix;
25485 ac_top_srcdir=$srcdir ;;
25486 *) # Relative path.
25487 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25488 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25491 # Do not use `cd foo && pwd` to compute absolute paths, because
25492 # the directories may not exist.
25494 .) ac_abs_builddir="$ac_dir";;
25497 .) ac_abs_builddir=`pwd`;;
25498 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25499 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25502 case $ac_abs_builddir in
25503 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25505 case ${ac_top_builddir}. in
25506 .) ac_abs_top_builddir=$ac_abs_builddir;;
25507 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25508 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25511 case $ac_abs_builddir in
25512 .) ac_abs_srcdir=$ac_srcdir;;
25515 .) ac_abs_srcdir=$ac_abs_builddir;;
25516 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25517 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25520 case $ac_abs_builddir in
25521 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25523 case $ac_top_srcdir in
25524 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25525 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25526 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25533 # Check for guested configure; otherwise get Cygnus style configure.
25534 if test -f $ac_srcdir/configure.gnu; then
25535 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25536 elif test -f $ac_srcdir/configure; then
25537 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25538 elif test -f $ac_srcdir/configure.in; then
25539 ac_sub_configure=$ac_configure
25541 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25542 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25546 # The recursion is here.
25547 if test -n "$ac_sub_configure"; then
25548 # Make the cache file name correct relative to the subdirectory.
25549 case $cache_file in
25550 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25551 *) # Relative path.
25552 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25555 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25556 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25557 # The eval makes quoting arguments work.
25558 eval $ac_sub_configure $ac_sub_configure_args \
25559 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25560 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25561 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25562 { (exit 1); exit 1; }; }
25570 if test $llvmgccwarn = yes
25572 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25573 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25574 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25575 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25576 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25577 echo "$as_me: WARNING: ***** " >&2;}
25578 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25579 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25580 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25581 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25582 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25583 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}