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/Java"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
439 # Factoring default headers for most tests.
440 ac_includes_default="\
443 # include <sys/types.h>
446 # include <sys/stat.h>
457 # if !STDC_HEADERS && HAVE_MEMORY_H
463 # include <strings.h>
466 # include <inttypes.h>
476 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 ENDIAN 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'
479 # Initialize some variables set by options.
481 ac_init_version=false
482 # The variables have the same names as the options, with
483 # dashes changed to underlines.
491 program_transform_name=s,x,x,
499 # Installation directory options.
500 # These are left unexpanded so users can "make install exec_prefix=/foo"
501 # and all the variables that are supposed to be based on exec_prefix
502 # by default will actually change.
503 # Use braces instead of parens because sh, perl, etc. also accept them.
504 bindir='${exec_prefix}/bin'
505 sbindir='${exec_prefix}/sbin'
506 libexecdir='${exec_prefix}/libexec'
507 datadir='${prefix}/share'
508 sysconfdir='${prefix}/etc'
509 sharedstatedir='${prefix}/com'
510 localstatedir='${prefix}/var'
511 libdir='${exec_prefix}/lib'
512 includedir='${prefix}/include'
513 oldincludedir='/usr/include'
514 infodir='${prefix}/info'
515 mandir='${prefix}/man'
520 # If the previous option needs an argument, assign it.
521 if test -n "$ac_prev"; then
522 eval "$ac_prev=\$ac_option"
527 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
529 # Accept the important Cygnus configure options, so we can diagnose typos.
533 -bindir | --bindir | --bindi | --bind | --bin | --bi)
535 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
538 -build | --build | --buil | --bui | --bu)
539 ac_prev=build_alias ;;
540 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
541 build_alias=$ac_optarg ;;
543 -cache-file | --cache-file | --cache-fil | --cache-fi \
544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
545 ac_prev=cache_file ;;
546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
548 cache_file=$ac_optarg ;;
551 cache_file=config.cache ;;
553 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
555 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
557 datadir=$ac_optarg ;;
559 -disable-* | --disable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 eval "enable_$ac_feature=no" ;;
568 -enable-* | --enable-*)
569 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
570 # Reject names that are not valid shell variable names.
571 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
572 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
573 { (exit 1); exit 1; }; }
574 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
576 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
579 eval "enable_$ac_feature='$ac_optarg'" ;;
581 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
582 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
583 | --exec | --exe | --ex)
584 ac_prev=exec_prefix ;;
585 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
586 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
587 | --exec=* | --exe=* | --ex=*)
588 exec_prefix=$ac_optarg ;;
590 -gas | --gas | --ga | --g)
591 # Obsolete; use --with-gas.
594 -help | --help | --hel | --he | -h)
596 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
597 ac_init_help=recursive ;;
598 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
599 ac_init_help=short ;;
601 -host | --host | --hos | --ho)
602 ac_prev=host_alias ;;
603 -host=* | --host=* | --hos=* | --ho=*)
604 host_alias=$ac_optarg ;;
606 -includedir | --includedir | --includedi | --included | --include \
607 | --includ | --inclu | --incl | --inc)
608 ac_prev=includedir ;;
609 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
610 | --includ=* | --inclu=* | --incl=* | --inc=*)
611 includedir=$ac_optarg ;;
613 -infodir | --infodir | --infodi | --infod | --info | --inf)
615 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
616 infodir=$ac_optarg ;;
618 -libdir | --libdir | --libdi | --libd)
620 -libdir=* | --libdir=* | --libdi=* | --libd=*)
623 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
624 | --libexe | --libex | --libe)
625 ac_prev=libexecdir ;;
626 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
627 | --libexe=* | --libex=* | --libe=*)
628 libexecdir=$ac_optarg ;;
630 -localstatedir | --localstatedir | --localstatedi | --localstated \
631 | --localstate | --localstat | --localsta | --localst \
632 | --locals | --local | --loca | --loc | --lo)
633 ac_prev=localstatedir ;;
634 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
635 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
636 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
637 localstatedir=$ac_optarg ;;
639 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
641 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 # Obsolete; use --without-fp.
648 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
649 | --no-cr | --no-c | -n)
652 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
653 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
656 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
657 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
658 | --oldin | --oldi | --old | --ol | --o)
659 ac_prev=oldincludedir ;;
660 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
661 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
662 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
663 oldincludedir=$ac_optarg ;;
665 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
667 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
670 -program-prefix | --program-prefix | --program-prefi | --program-pref \
671 | --program-pre | --program-pr | --program-p)
672 ac_prev=program_prefix ;;
673 -program-prefix=* | --program-prefix=* | --program-prefi=* \
674 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
675 program_prefix=$ac_optarg ;;
677 -program-suffix | --program-suffix | --program-suffi | --program-suff \
678 | --program-suf | --program-su | --program-s)
679 ac_prev=program_suffix ;;
680 -program-suffix=* | --program-suffix=* | --program-suffi=* \
681 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
682 program_suffix=$ac_optarg ;;
684 -program-transform-name | --program-transform-name \
685 | --program-transform-nam | --program-transform-na \
686 | --program-transform-n | --program-transform- \
687 | --program-transform | --program-transfor \
688 | --program-transfo | --program-transf \
689 | --program-trans | --program-tran \
690 | --progr-tra | --program-tr | --program-t)
691 ac_prev=program_transform_name ;;
692 -program-transform-name=* | --program-transform-name=* \
693 | --program-transform-nam=* | --program-transform-na=* \
694 | --program-transform-n=* | --program-transform-=* \
695 | --program-transform=* | --program-transfor=* \
696 | --program-transfo=* | --program-transf=* \
697 | --program-trans=* | --program-tran=* \
698 | --progr-tra=* | --program-tr=* | --program-t=*)
699 program_transform_name=$ac_optarg ;;
701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
702 | -silent | --silent | --silen | --sile | --sil)
705 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
707 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
709 sbindir=$ac_optarg ;;
711 -sharedstatedir | --sharedstatedir | --sharedstatedi \
712 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
713 | --sharedst | --shareds | --shared | --share | --shar \
715 ac_prev=sharedstatedir ;;
716 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
717 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
718 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
720 sharedstatedir=$ac_optarg ;;
722 -site | --site | --sit)
724 -site=* | --site=* | --sit=*)
727 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
729 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
732 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
733 | --syscon | --sysco | --sysc | --sys | --sy)
734 ac_prev=sysconfdir ;;
735 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
736 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
737 sysconfdir=$ac_optarg ;;
739 -target | --target | --targe | --targ | --tar | --ta | --t)
740 ac_prev=target_alias ;;
741 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
742 target_alias=$ac_optarg ;;
744 -v | -verbose | --verbose | --verbos | --verbo | --verb)
747 -version | --version | --versio | --versi | --vers | -V)
751 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
752 # Reject names that are not valid shell variable names.
753 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754 { echo "$as_me: error: invalid package name: $ac_package" >&2
755 { (exit 1); exit 1; }; }
756 ac_package=`echo $ac_package| sed 's/-/_/g'`
758 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
761 eval "with_$ac_package='$ac_optarg'" ;;
763 -without-* | --without-*)
764 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
765 # Reject names that are not valid shell variable names.
766 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
767 { echo "$as_me: error: invalid package name: $ac_package" >&2
768 { (exit 1); exit 1; }; }
769 ac_package=`echo $ac_package | sed 's/-/_/g'`
770 eval "with_$ac_package=no" ;;
773 # Obsolete; use --with-x.
776 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
777 | --x-incl | --x-inc | --x-in | --x-i)
778 ac_prev=x_includes ;;
779 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
780 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
781 x_includes=$ac_optarg ;;
783 -x-libraries | --x-libraries | --x-librarie | --x-librari \
784 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
785 ac_prev=x_libraries ;;
786 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
787 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
788 x_libraries=$ac_optarg ;;
790 -*) { echo "$as_me: error: unrecognized option: $ac_option
791 Try \`$0 --help' for more information." >&2
792 { (exit 1); exit 1; }; }
796 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
797 # Reject names that are not valid shell variable names.
798 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
799 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
800 { (exit 1); exit 1; }; }
801 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
802 eval "$ac_envvar='$ac_optarg'"
806 # FIXME: should be removed in autoconf 3.0.
807 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
808 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
809 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
810 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
816 if test -n "$ac_prev"; then
817 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
818 { echo "$as_me: error: missing argument to $ac_option" >&2
819 { (exit 1); exit 1; }; }
822 # Be sure to have absolute paths.
823 for ac_var in exec_prefix prefix
825 eval ac_val=$`echo $ac_var`
827 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
828 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829 { (exit 1); exit 1; }; };;
833 # Be sure to have absolute paths.
834 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
835 localstatedir libdir includedir oldincludedir infodir mandir
837 eval ac_val=$`echo $ac_var`
839 [\\/$]* | ?:[\\/]* ) ;;
840 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
841 { (exit 1); exit 1; }; };;
845 # There might be people who depend on the old broken behavior: `$host'
846 # used to hold the argument of --host etc.
847 # FIXME: To remove some day.
852 # FIXME: To remove some day.
853 if test "x$host_alias" != x; then
854 if test "x$build_alias" = x; then
855 cross_compiling=maybe
856 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
857 If a cross compiler is detected then cross compile mode will be used." >&2
858 elif test "x$build_alias" != "x$host_alias"; then
864 test -n "$host_alias" && ac_tool_prefix=$host_alias-
866 test "$silent" = yes && exec 6>/dev/null
869 # Find the source files, if location was not specified.
870 if test -z "$srcdir"; then
871 ac_srcdir_defaulted=yes
872 # Try the directory containing this script, then its parent.
873 ac_confdir=`(dirname "$0") 2>/dev/null ||
874 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875 X"$0" : 'X\(//\)[^/]' \| \
876 X"$0" : 'X\(//\)$' \| \
877 X"$0" : 'X\(/\)' \| \
878 . : '\(.\)' 2>/dev/null ||
880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
881 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
882 /^X\(\/\/\)$/{ s//\1/; q; }
883 /^X\(\/\).*/{ s//\1/; q; }
886 if test ! -r $srcdir/$ac_unique_file; then
890 ac_srcdir_defaulted=no
892 if test ! -r $srcdir/$ac_unique_file; then
893 if test "$ac_srcdir_defaulted" = yes; then
894 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
895 { (exit 1); exit 1; }; }
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
898 { (exit 1); exit 1; }; }
901 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
902 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
903 { (exit 1); exit 1; }; }
904 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
905 ac_env_build_alias_set=${build_alias+set}
906 ac_env_build_alias_value=$build_alias
907 ac_cv_env_build_alias_set=${build_alias+set}
908 ac_cv_env_build_alias_value=$build_alias
909 ac_env_host_alias_set=${host_alias+set}
910 ac_env_host_alias_value=$host_alias
911 ac_cv_env_host_alias_set=${host_alias+set}
912 ac_cv_env_host_alias_value=$host_alias
913 ac_env_target_alias_set=${target_alias+set}
914 ac_env_target_alias_value=$target_alias
915 ac_cv_env_target_alias_set=${target_alias+set}
916 ac_cv_env_target_alias_value=$target_alias
917 ac_env_CXX_set=${CXX+set}
918 ac_env_CXX_value=$CXX
919 ac_cv_env_CXX_set=${CXX+set}
920 ac_cv_env_CXX_value=$CXX
921 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
922 ac_env_CXXFLAGS_value=$CXXFLAGS
923 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
924 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
925 ac_env_LDFLAGS_set=${LDFLAGS+set}
926 ac_env_LDFLAGS_value=$LDFLAGS
927 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
928 ac_cv_env_LDFLAGS_value=$LDFLAGS
929 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
930 ac_env_CPPFLAGS_value=$CPPFLAGS
931 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
932 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
933 ac_env_CC_set=${CC+set}
935 ac_cv_env_CC_set=${CC+set}
936 ac_cv_env_CC_value=$CC
937 ac_env_CFLAGS_set=${CFLAGS+set}
938 ac_env_CFLAGS_value=$CFLAGS
939 ac_cv_env_CFLAGS_set=${CFLAGS+set}
940 ac_cv_env_CFLAGS_value=$CFLAGS
941 ac_env_CPP_set=${CPP+set}
942 ac_env_CPP_value=$CPP
943 ac_cv_env_CPP_set=${CPP+set}
944 ac_cv_env_CPP_value=$CPP
945 ac_env_CXXCPP_set=${CXXCPP+set}
946 ac_env_CXXCPP_value=$CXXCPP
947 ac_cv_env_CXXCPP_set=${CXXCPP+set}
948 ac_cv_env_CXXCPP_value=$CXXCPP
949 ac_env_F77_set=${F77+set}
950 ac_env_F77_value=$F77
951 ac_cv_env_F77_set=${F77+set}
952 ac_cv_env_F77_value=$F77
953 ac_env_FFLAGS_set=${FFLAGS+set}
954 ac_env_FFLAGS_value=$FFLAGS
955 ac_cv_env_FFLAGS_set=${FFLAGS+set}
956 ac_cv_env_FFLAGS_value=$FFLAGS
959 # Report the --help message.
961 if test "$ac_init_help" = "long"; then
962 # Omit some internal or obsolete options to make the list less imposing.
963 # This message is too long to be a string in the A/UX 3.1 sh.
965 \`configure' configures LLVM 1.4 to adapt to many kinds of systems.
967 Usage: $0 [OPTION]... [VAR=VALUE]...
969 To assign environment variables (e.g., CC, CFLAGS...), specify them as
970 VAR=VALUE. See below for descriptions of some of the useful variables.
972 Defaults for the options are specified in brackets.
975 -h, --help display this help and exit
976 --help=short display options specific to this package
977 --help=recursive display the short help of all the included packages
978 -V, --version display version information and exit
979 -q, --quiet, --silent do not print \`checking...' messages
980 --cache-file=FILE cache test results in FILE [disabled]
981 -C, --config-cache alias for \`--cache-file=config.cache'
982 -n, --no-create do not create output files
983 --srcdir=DIR find the sources in DIR [configure dir or \`..']
988 Installation directories:
989 --prefix=PREFIX install architecture-independent files in PREFIX
991 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
994 By default, \`make install' will install all the files in
995 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
996 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
997 for instance \`--prefix=\$HOME'.
999 For better control, use the options below.
1001 Fine tuning of the installation directories:
1002 --bindir=DIR user executables [EPREFIX/bin]
1003 --sbindir=DIR system admin executables [EPREFIX/sbin]
1004 --libexecdir=DIR program executables [EPREFIX/libexec]
1005 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1006 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1007 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1008 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1009 --libdir=DIR object code libraries [EPREFIX/lib]
1010 --includedir=DIR C header files [PREFIX/include]
1011 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1012 --infodir=DIR info documentation [PREFIX/info]
1013 --mandir=DIR man documentation [PREFIX/man]
1019 --build=BUILD configure for building on BUILD [guessed]
1020 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1021 --target=TARGET configure for building compilers for TARGET [HOST]
1025 if test -n "$ac_init_help"; then
1026 case $ac_init_help in
1027 short | recursive ) echo "Configuration of LLVM 1.4:";;
1032 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1033 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1034 --enable-shared[=PKGS]
1035 build shared libraries [default=yes]
1036 --enable-static[=PKGS]
1037 build static libraries [default=yes]
1038 --enable-fast-install[=PKGS]
1039 optimize for fast installation [default=yes]
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --enable-optimized Compile with optimizations enabled (default is NO)
1042 --enable-jit Enable Just In Time Compiling (default is YES)
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048 --with-pic try to use only PIC/non-PIC objects [default=use
1051 include additional configurations [automatic]
1052 --with-llvmgccdir Location of LLVM GCC front-end
1054 Some influential environment variables:
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CC C compiler command
1062 CFLAGS C compiler flags
1064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1071 Report bugs to <llvmbugs@cs.uiuc.edu>.
1075 if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1082 if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 ac_dir_suffix= ac_top_builddir=
1091 .) # No --srcdir option. We are building in place.
1093 if test -z "$ac_top_builddir"; then
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106 # Do not use `cd foo && pwd` to compute absolute paths, because
1107 # the directories may not exist.
1109 .) ac_abs_builddir="$ac_dir";;
1112 .) ac_abs_builddir=`pwd`;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1114 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1117 case $ac_abs_builddir in
1118 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 case ${ac_top_builddir}. in
1121 .) ac_abs_top_builddir=$ac_abs_builddir;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1123 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1126 case $ac_abs_builddir in
1127 .) ac_abs_srcdir=$ac_srcdir;;
1130 .) ac_abs_srcdir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1132 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1135 case $ac_abs_builddir in
1136 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 case $ac_top_srcdir in
1139 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1141 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1146 # Check for guested configure; otherwise get Cygnus style configure.
1147 if test -f $ac_srcdir/configure.gnu; then
1149 $SHELL $ac_srcdir/configure.gnu --help=recursive
1150 elif test -f $ac_srcdir/configure; then
1152 $SHELL $ac_srcdir/configure --help=recursive
1153 elif test -f $ac_srcdir/configure.ac ||
1154 test -f $ac_srcdir/configure.in; then
1156 $ac_configure --help
1158 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1164 test -n "$ac_init_help" && exit 0
1165 if $ac_init_version; then
1168 generated by GNU Autoconf 2.59
1170 Copyright (C) 2003 Free Software Foundation, Inc.
1171 This configure script is free software; the Free Software Foundation
1172 gives unlimited permission to copy, distribute and modify it.
1178 This file contains any messages produced by compilers while
1179 running configure, to aid debugging if configure makes a mistake.
1181 It was created by LLVM $as_me 1.4, which was
1182 generated by GNU Autoconf 2.59. Invocation command line was
1193 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1194 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1195 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1196 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1197 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1200 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1202 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1203 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1204 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1205 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1206 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1207 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1208 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1216 test -z "$as_dir" && as_dir=.
1217 echo "PATH: $as_dir"
1232 # Keep a trace of the command line.
1233 # Strip out --no-create and --no-recursion so they do not pile up.
1234 # Strip out --silent because we don't want to record it for future runs.
1235 # Also quote any args containing shell meta-characters.
1236 # Make two passes to allow for proper duplicate-argument suppression.
1241 ac_must_keep_next=false
1247 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249 | -silent | --silent | --silen | --sile | --sil)
1251 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1255 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1258 if test $ac_must_keep_next = true; then
1259 ac_must_keep_next=false # Got value, back to normal.
1262 *=* | --config-cache | -C | -disable-* | --disable-* \
1263 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1264 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1265 | -with-* | --with-* | -without-* | --without-* | --x)
1266 case "$ac_configure_args0 " in
1267 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1270 -* ) ac_must_keep_next=true ;;
1273 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1274 # Get rid of the leading space.
1280 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1281 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283 # When interrupted or exit'd, cleanup temporary files, and complete
1284 # config.log. We remove comments because anyway the quotes in there
1285 # would cause problems or look ugly.
1286 # WARNING: Be sure not to use single quotes in there, as some shells,
1287 # such as our DU 5.0 friend, will then `close' the trap.
1288 trap 'exit_status=$?
1289 # Save into config.log some information that might help in debugging.
1294 ## ---------------- ##
1295 ## Cache variables. ##
1296 ## ---------------- ##
1299 # The following way of writing the cache mishandles newlines in values,
1302 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1305 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1310 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1317 ## ----------------- ##
1318 ## Output variables. ##
1319 ## ----------------- ##
1322 for ac_var in $ac_subst_vars
1324 eval ac_val=$`echo $ac_var`
1325 echo "$ac_var='"'"'$ac_val'"'"'"
1329 if test -n "$ac_subst_files"; then
1336 for ac_var in $ac_subst_files
1338 eval ac_val=$`echo $ac_var`
1339 echo "$ac_var='"'"'$ac_val'"'"'"
1344 if test -s confdefs.h; then
1351 sed "/^$/d" confdefs.h | sort
1354 test "$ac_signal" != 0 &&
1355 echo "$as_me: caught signal $ac_signal"
1356 echo "$as_me: exit $exit_status"
1358 rm -f core *.core &&
1359 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1362 for ac_signal in 1 2 13 15; do
1363 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1367 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1368 rm -rf conftest* confdefs.h
1369 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1372 # Predefined preprocessor variables.
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_NAME "$PACKAGE_NAME"
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_STRING "$PACKAGE_STRING"
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1399 # Let the site file select an alternate cache file if it wants to.
1400 # Prefer explicitly selected file to automatically selected ones.
1401 if test -z "$CONFIG_SITE"; then
1402 if test "x$prefix" != xNONE; then
1403 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1408 for ac_site_file in $CONFIG_SITE; do
1409 if test -r "$ac_site_file"; then
1410 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1411 echo "$as_me: loading site script $ac_site_file" >&6;}
1412 sed 's/^/| /' "$ac_site_file" >&5
1417 if test -r "$cache_file"; then
1418 # Some versions of bash will fail to source /dev/null (special
1419 # files actually), so we avoid doing that.
1420 if test -f "$cache_file"; then
1421 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1422 echo "$as_me: loading cache $cache_file" >&6;}
1424 [\\/]* | ?:[\\/]* ) . $cache_file;;
1425 *) . ./$cache_file;;
1429 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1430 echo "$as_me: creating cache $cache_file" >&6;}
1434 # Check that the precious variables saved in the cache have kept the same
1436 ac_cache_corrupted=false
1437 for ac_var in `(set) 2>&1 |
1438 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1439 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1440 eval ac_new_set=\$ac_env_${ac_var}_set
1441 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1442 eval ac_new_val="\$ac_env_${ac_var}_value"
1443 case $ac_old_set,$ac_new_set in
1445 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1447 ac_cache_corrupted=: ;;
1449 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1450 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1451 ac_cache_corrupted=: ;;
1454 if test "x$ac_old_val" != "x$ac_new_val"; then
1455 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1456 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1457 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1458 echo "$as_me: former value: $ac_old_val" >&2;}
1459 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1460 echo "$as_me: current value: $ac_new_val" >&2;}
1461 ac_cache_corrupted=:
1464 # Pass precious variables to config.status.
1465 if test "$ac_new_set" = set; then
1467 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1468 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1469 *) ac_arg=$ac_var=$ac_new_val ;;
1471 case " $ac_configure_args " in
1472 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1473 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1477 if $ac_cache_corrupted; then
1478 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482 { (exit 1); exit 1; }; }
1486 ac_cpp='$CPP $CPPFLAGS'
1487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1519 for ac_dir in autoconf $srcdir/autoconf; do
1520 if test -f $ac_dir/install-sh; then
1522 ac_install_sh="$ac_aux_dir/install-sh -c"
1524 elif test -f $ac_dir/install.sh; then
1526 ac_install_sh="$ac_aux_dir/install.sh -c"
1528 elif test -f $ac_dir/shtool; then
1530 ac_install_sh="$ac_aux_dir/shtool install -c"
1534 if test -z "$ac_aux_dir"; then
1535 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1536 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1537 { (exit 1); exit 1; }; }
1539 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1545 if test ${srcdir} != "." ; then
1546 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1547 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1548 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1549 { (exit 1); exit 1; }; }
1553 for i in `ls ${srcdir}/projects`
1555 if test -d ${srcdir}/projects/${i} ; then
1560 subdirs="$subdirs projects/sample"
1564 subdirs="$subdirs projects/Stacker"
1568 subdirs="$subdirs projects/llvm-test"
1572 subdirs="$subdirs projects/llvm-reopt"
1576 subdirs="$subdirs projects/llvm-gcc"
1580 subdirs="$subdirs projects/Java"
1584 subdirs="$subdirs projects/llvm-tv"
1588 subdirs="$subdirs projects/llvm-fefw"
1591 { echo "$as_me:$LINENO: WARNING: Unknown projects (${i})won't be configured automatically" >&5
1592 echo "$as_me: WARNING: Unknown projects (${i})won't be configured automatically" >&2;}
1598 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
1601 ac_config_files="$ac_config_files Makefile.config include/llvm/Support/ThreadSupport.h include/llvm/ADT/iterator"
1603 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
1605 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
1607 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
1610 ac_config_commands="$ac_config_commands Makefile"
1613 ac_config_commands="$ac_config_commands Makefile.common"
1616 ac_config_commands="$ac_config_commands examples/Makefile"
1619 ac_config_commands="$ac_config_commands lib/Makefile"
1622 ac_config_commands="$ac_config_commands runtime/Makefile"
1625 ac_config_commands="$ac_config_commands test/Makefile"
1628 ac_config_commands="$ac_config_commands test/Makefile.tests"
1631 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1634 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1637 ac_config_commands="$ac_config_commands tools/Makefile"
1640 ac_config_commands="$ac_config_commands utils/Makefile"
1643 ac_config_commands="$ac_config_commands projects/Makefile"
1647 # Find a good install program. We prefer a C program (faster),
1648 # so one script is as good as another. But avoid the broken or
1649 # incompatible versions:
1650 # SysV /etc/install, /usr/sbin/install
1651 # SunOS /usr/etc/install
1652 # IRIX /sbin/install
1654 # AmigaOS /C/install, which installs bootblocks on floppy discs
1655 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1656 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1657 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1658 # OS/2's system install, which has a completely different semantic
1659 # ./install, which can be erroneously created by make from ./install.sh.
1660 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1661 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1662 if test -z "$INSTALL"; then
1663 if test "${ac_cv_path_install+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 test -z "$as_dir" && as_dir=.
1671 # Account for people who put trailing slashes in PATH elements.
1673 ./ | .// | /cC/* | \
1674 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1675 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1678 # OSF1 and SCO ODT 3.0 have their own names for install.
1679 # Don't use installbsd from OSF since it installs stuff as root
1681 for ac_prog in ginstall scoinst install; do
1682 for ac_exec_ext in '' $ac_executable_extensions; do
1683 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1684 if test $ac_prog = install &&
1685 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1686 # AIX install. It has an incompatible calling convention.
1688 elif test $ac_prog = install &&
1689 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1690 # program-specific install script used by HP pwplus--don't use.
1693 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1705 if test "${ac_cv_path_install+set}" = set; then
1706 INSTALL=$ac_cv_path_install
1708 # As a last resort, use the slow shell script. We don't cache a
1709 # path for INSTALL within a source directory, because that will
1710 # break other packages using the cache if that directory is
1711 # removed, or if the path is relative.
1712 INSTALL=$ac_install_sh
1715 echo "$as_me:$LINENO: result: $INSTALL" >&5
1716 echo "${ECHO_T}$INSTALL" >&6
1718 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1719 # It thinks the first close brace ends the variable substitution.
1720 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1722 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1724 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1727 # Make sure we can run config.sub.
1728 $ac_config_sub sun4 >/dev/null 2>&1 ||
1729 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1730 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1731 { (exit 1); exit 1; }; }
1733 echo "$as_me:$LINENO: checking build system type" >&5
1734 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1735 if test "${ac_cv_build+set}" = set; then
1736 echo $ECHO_N "(cached) $ECHO_C" >&6
1738 ac_cv_build_alias=$build_alias
1739 test -z "$ac_cv_build_alias" &&
1740 ac_cv_build_alias=`$ac_config_guess`
1741 test -z "$ac_cv_build_alias" &&
1742 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1743 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1744 { (exit 1); exit 1; }; }
1745 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1746 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1747 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1748 { (exit 1); exit 1; }; }
1751 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1752 echo "${ECHO_T}$ac_cv_build" >&6
1754 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1755 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1756 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1759 echo "$as_me:$LINENO: checking host system type" >&5
1760 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1761 if test "${ac_cv_host+set}" = set; then
1762 echo $ECHO_N "(cached) $ECHO_C" >&6
1764 ac_cv_host_alias=$host_alias
1765 test -z "$ac_cv_host_alias" &&
1766 ac_cv_host_alias=$ac_cv_build_alias
1767 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1768 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1769 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1770 { (exit 1); exit 1; }; }
1773 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1774 echo "${ECHO_T}$ac_cv_host" >&6
1776 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1777 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1778 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1781 echo "$as_me:$LINENO: checking target system type" >&5
1782 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1783 if test "${ac_cv_target+set}" = set; then
1784 echo $ECHO_N "(cached) $ECHO_C" >&6
1786 ac_cv_target_alias=$target_alias
1787 test "x$ac_cv_target_alias" = "x" &&
1788 ac_cv_target_alias=$ac_cv_host_alias
1789 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1790 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1791 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1792 { (exit 1); exit 1; }; }
1795 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1796 echo "${ECHO_T}$ac_cv_target" >&6
1797 target=$ac_cv_target
1798 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1799 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1800 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1803 # The aliases save the names the user supplied, while $host etc.
1804 # will get canonicalized.
1805 test -n "$target_alias" &&
1806 test "$program_prefix$program_suffix$program_transform_name" = \
1808 program_prefix=${target_alias}-
1811 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1812 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1822 platform_type="Cygwin"
1827 platform_type="Darwin"
1832 platform_type="FreeBSD"
1837 platform_type="Interix"
1842 platform_type="Linux"
1843 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1845 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1852 platform_type="SunOS"
1853 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1855 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1862 platform_type="Win32"
1867 platform_type="Win32"
1872 platform_type="Unknown"
1876 if test "$platform_type" = "Unknown" ; then
1877 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1878 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1879 { (exit 1); exit 1; }; }
1882 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1886 echo "$as_me:$LINENO: checking target architecture" >&5
1887 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1889 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1917 echo "$as_me:$LINENO: result: $ARCH" >&5
1918 echo "${ECHO_T}$ARCH" >&6
1921 ac_cpp='$CXXCPP $CPPFLAGS'
1922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1925 if test -n "$ac_tool_prefix"; then
1926 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1928 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1929 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_CXX+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 if test -n "$CXX"; then
1936 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 test -z "$as_dir" && as_dir=.
1943 for ac_exec_ext in '' $ac_executable_extensions; do
1944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955 if test -n "$CXX"; then
1956 echo "$as_me:$LINENO: result: $CXX" >&5
1957 echo "${ECHO_T}$CXX" >&6
1959 echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6
1963 test -n "$CXX" && break
1966 if test -z "$CXX"; then
1968 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1970 # Extract the first word of "$ac_prog", so it can be a program name with args.
1971 set dummy $ac_prog; ac_word=$2
1972 echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 if test -n "$ac_ct_CXX"; then
1978 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987 ac_cv_prog_ac_ct_CXX="$ac_prog"
1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1997 if test -n "$ac_ct_CXX"; then
1998 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1999 echo "${ECHO_T}$ac_ct_CXX" >&6
2001 echo "$as_me:$LINENO: result: no" >&5
2002 echo "${ECHO_T}no" >&6
2005 test -n "$ac_ct_CXX" && break
2007 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2013 # Provide some information about the compiler.
2014 echo "$as_me:$LINENO:" \
2015 "checking for C++ compiler version" >&5
2016 ac_compiler=`set X $ac_compile; echo $2`
2017 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2018 (eval $ac_compiler --version </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); }
2027 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2028 (eval $ac_compiler -V </dev/null >&5) 2>&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }
2033 cat >conftest.$ac_ext <<_ACEOF
2036 cat confdefs.h >>conftest.$ac_ext
2037 cat >>conftest.$ac_ext <<_ACEOF
2038 /* end confdefs.h. */
2048 ac_clean_files_save=$ac_clean_files
2049 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2050 # Try to create an executable without -o first, disregard a.out.
2051 # It will help us diagnose broken compilers, and finding out an intuition
2053 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2054 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2055 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2056 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2057 (eval $ac_link_default) 2>&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; then
2061 # Find the output, starting from the most likely. This scheme is
2062 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2065 # Be careful to initialize this variable, since it used to be cached.
2066 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2068 # b.out is created by i960 compilers.
2069 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2071 test -f "$ac_file" || continue
2073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2076 # This is the source file.
2079 # We found the default executable, but exeext='' is most
2083 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2084 # FIXME: I believe we export ac_cv_exeext for Libtool,
2085 # but it would be cool to find out if it's true. Does anybody
2086 # maintain Libtool? --akim.
2094 echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2097 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2098 See \`config.log' for more details." >&5
2099 echo "$as_me: error: C++ compiler cannot create executables
2100 See \`config.log' for more details." >&2;}
2101 { (exit 77); exit 77; }; }
2104 ac_exeext=$ac_cv_exeext
2105 echo "$as_me:$LINENO: result: $ac_file" >&5
2106 echo "${ECHO_T}$ac_file" >&6
2108 # Check the compiler produces executables we can run. If not, either
2109 # the compiler is broken, or we cross compile.
2110 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2111 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2112 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2113 # If not cross compiling, check that we can run a simple program.
2114 if test "$cross_compiling" != yes; then
2115 if { ac_try='./$ac_file'
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; }; then
2123 if test "$cross_compiling" = maybe; then
2126 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2127 If you meant to cross compile, use \`--host'.
2128 See \`config.log' for more details." >&5
2129 echo "$as_me: error: cannot run C++ compiled programs.
2130 If you meant to cross compile, use \`--host'.
2131 See \`config.log' for more details." >&2;}
2132 { (exit 1); exit 1; }; }
2136 echo "$as_me:$LINENO: result: yes" >&5
2137 echo "${ECHO_T}yes" >&6
2139 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2140 ac_clean_files=$ac_clean_files_save
2141 # Check the compiler produces executables we can run. If not, either
2142 # the compiler is broken, or we cross compile.
2143 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2144 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2145 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2146 echo "${ECHO_T}$cross_compiling" >&6
2148 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2149 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2151 (eval $ac_link) 2>&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; then
2155 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2156 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2157 # work properly (i.e., refer to `conftest.exe'), while it won't with
2159 for ac_file in conftest.exe conftest conftest.*; do
2160 test -f "$ac_file" || continue
2162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2163 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2170 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2171 See \`config.log' for more details." >&5
2172 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2173 See \`config.log' for more details." >&2;}
2174 { (exit 1); exit 1; }; }
2177 rm -f conftest$ac_cv_exeext
2178 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2179 echo "${ECHO_T}$ac_cv_exeext" >&6
2181 rm -f conftest.$ac_ext
2182 EXEEXT=$ac_cv_exeext
2184 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2185 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2186 if test "${ac_cv_objext+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2189 cat >conftest.$ac_ext <<_ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h. */
2204 rm -f conftest.o conftest.obj
2205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206 (eval $ac_compile) 2>&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; then
2210 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2213 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2218 echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2221 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2222 See \`config.log' for more details." >&5
2223 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2224 See \`config.log' for more details." >&2;}
2225 { (exit 1); exit 1; }; }
2228 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2230 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2231 echo "${ECHO_T}$ac_cv_objext" >&6
2232 OBJEXT=$ac_cv_objext
2234 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2235 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2236 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 cat >conftest.$ac_ext <<_ACEOF
2242 cat confdefs.h >>conftest.$ac_ext
2243 cat >>conftest.$ac_ext <<_ACEOF
2244 /* end confdefs.h. */
2257 rm -f conftest.$ac_objext
2258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259 (eval $ac_compile) 2>conftest.er1
2261 grep -v '^ *+' conftest.er1 >conftest.err
2263 cat conftest.err >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); } &&
2266 { ac_try='test -z "$ac_cxx_werror_flag"
2267 || test ! -s conftest.err'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; } &&
2273 { ac_try='test -s conftest.$ac_objext'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2281 echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2287 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2290 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2291 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2292 GXX=`test $ac_compiler_gnu = yes && echo yes`
2293 ac_test_CXXFLAGS=${CXXFLAGS+set}
2294 ac_save_CXXFLAGS=$CXXFLAGS
2296 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2297 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2298 if test "${ac_cv_prog_cxx_g+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 cat >conftest.$ac_ext <<_ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h. */
2316 rm -f conftest.$ac_objext
2317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318 (eval $ac_compile) 2>conftest.er1
2320 grep -v '^ *+' conftest.er1 >conftest.err
2322 cat conftest.err >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); } &&
2325 { ac_try='test -z "$ac_cxx_werror_flag"
2326 || test ! -s conftest.err'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; } &&
2332 { ac_try='test -s conftest.$ac_objext'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; }; then
2338 ac_cv_prog_cxx_g=yes
2340 echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2347 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2348 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2349 if test "$ac_test_CXXFLAGS" = set; then
2350 CXXFLAGS=$ac_save_CXXFLAGS
2351 elif test $ac_cv_prog_cxx_g = yes; then
2352 if test "$GXX" = yes; then
2358 if test "$GXX" = yes; then
2364 for ac_declaration in \
2366 'extern "C" void std::exit (int) throw (); using std::exit;' \
2367 'extern "C" void std::exit (int); using std::exit;' \
2368 'extern "C" void exit (int) throw ();' \
2369 'extern "C" void exit (int);' \
2372 cat >conftest.$ac_ext <<_ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h. */
2388 rm -f conftest.$ac_objext
2389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390 (eval $ac_compile) 2>conftest.er1
2392 grep -v '^ *+' conftest.er1 >conftest.err
2394 cat conftest.err >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } &&
2397 { ac_try='test -z "$ac_cxx_werror_flag"
2398 || test ! -s conftest.err'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; } &&
2404 { ac_try='test -s conftest.$ac_objext'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2412 echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2418 cat >conftest.$ac_ext <<_ACEOF
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h. */
2433 rm -f conftest.$ac_objext
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435 (eval $ac_compile) 2>conftest.er1
2437 grep -v '^ *+' conftest.er1 >conftest.err
2439 cat conftest.err >&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); } &&
2442 { ac_try='test -z "$ac_cxx_werror_flag"
2443 || test ! -s conftest.err'
2444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; } &&
2449 { ac_try='test -s conftest.$ac_objext'
2450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; }; then
2457 echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2464 if test -n "$ac_declaration"; then
2465 echo '#ifdef __cplusplus' >>confdefs.h
2466 echo $ac_declaration >>confdefs.h
2467 echo '#endif' >>confdefs.h
2471 ac_cpp='$CPP $CPPFLAGS'
2472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481 if test -n "$ac_tool_prefix"; then
2484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2486 echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488 if test "${ac_cv_prog_CC+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 if test -n "$CC"; then
2492 ac_cv_prog_CC="$CC" # Let the user override the test.
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 if test -n "$CC"; then
2512 echo "$as_me:$LINENO: result: $CC" >&5
2513 echo "${ECHO_T}$CC" >&6
2515 echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6
2519 test -n "$CC" && break
2522 if test -z "$CC"; then
2526 # Extract the first word of "$ac_prog", so it can be a program name with args.
2527 set dummy $ac_prog; ac_word=$2
2528 echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2530 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 if test -n "$ac_ct_CC"; then
2534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543 ac_cv_prog_ac_ct_CC="$ac_prog"
2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2553 if test -n "$ac_ct_CC"; then
2554 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2555 echo "${ECHO_T}$ac_ct_CC" >&6
2557 echo "$as_me:$LINENO: result: no" >&5
2558 echo "${ECHO_T}no" >&6
2561 test -n "$ac_ct_CC" && break
2568 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: no acceptable C compiler found in \$PATH
2571 See \`config.log' for more details." >&2;}
2572 { (exit 1); exit 1; }; }
2574 # Provide some information about the compiler.
2575 echo "$as_me:$LINENO:" \
2576 "checking for C compiler version" >&5
2577 ac_compiler=`set X $ac_compile; echo $2`
2578 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2579 (eval $ac_compiler --version </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); }
2588 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2589 (eval $ac_compiler -V </dev/null >&5) 2>&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }
2594 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2595 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2596 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 cat >conftest.$ac_ext <<_ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h. */
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619 (eval $ac_compile) 2>conftest.er1
2621 grep -v '^ *+' conftest.er1 >conftest.err
2623 cat conftest.err >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
2626 { ac_try='test -z "$ac_c_werror_flag"
2627 || test ! -s conftest.err'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest.$ac_objext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2641 echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2647 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2650 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2651 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2652 GCC=`test $ac_compiler_gnu = yes && echo yes`
2653 ac_test_CFLAGS=${CFLAGS+set}
2654 ac_save_CFLAGS=$CFLAGS
2656 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2657 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2658 if test "${ac_cv_prog_cc_g+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2661 cat >conftest.$ac_ext <<_ACEOF
2664 cat confdefs.h >>conftest.$ac_ext
2665 cat >>conftest.$ac_ext <<_ACEOF
2666 /* end confdefs.h. */
2676 rm -f conftest.$ac_objext
2677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678 (eval $ac_compile) 2>conftest.er1
2680 grep -v '^ *+' conftest.er1 >conftest.err
2682 cat conftest.err >&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); } &&
2685 { ac_try='test -z "$ac_c_werror_flag"
2686 || test ! -s conftest.err'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; } &&
2692 { ac_try='test -s conftest.$ac_objext'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
2700 echo "$as_me: failed program was:" >&5
2701 sed 's/^/| /' conftest.$ac_ext >&5
2705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2707 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2708 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2709 if test "$ac_test_CFLAGS" = set; then
2710 CFLAGS=$ac_save_CFLAGS
2711 elif test $ac_cv_prog_cc_g = yes; then
2712 if test "$GCC" = yes; then
2718 if test "$GCC" = yes; then
2724 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2725 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2726 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 ac_cv_prog_cc_stdc=no
2731 cat >conftest.$ac_ext <<_ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h. */
2739 #include <sys/types.h>
2740 #include <sys/stat.h>
2741 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2742 struct buf { int x; };
2743 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2744 static char *e (p, i)
2750 static char *f (char * (*g) (char **, int), char **p, ...)
2755 s = g (p, va_arg (v,int));
2760 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2761 function prototypes and stuff, but not '\xHH' hex character constants.
2762 These don't provoke an error unfortunately, instead are silently treated
2763 as 'x'. The following induces an error, until -std1 is added to get
2764 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2765 array size at least. It's necessary to write '\x00'==0 to get something
2766 that's true only with -std1. */
2767 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2769 int test (int i, double x);
2770 struct s1 {int (*f) (int a);};
2771 struct s2 {int (*f) (double a);};
2772 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2778 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2783 # Don't try gcc -ansi; that turns off useful extensions and
2784 # breaks some systems' header files.
2785 # AIX -qlanglvl=ansi
2786 # Ultrix and OSF/1 -std1
2787 # HP-UX 10.20 and later -Ae
2788 # HP-UX older versions -Aa -D_HPUX_SOURCE
2789 # SVR4 -Xc -D__EXTENSIONS__
2790 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2792 CC="$ac_save_CC $ac_arg"
2793 rm -f conftest.$ac_objext
2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795 (eval $ac_compile) 2>conftest.er1
2797 grep -v '^ *+' conftest.er1 >conftest.err
2799 cat conftest.err >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 { ac_try='test -z "$ac_c_werror_flag"
2803 || test ! -s conftest.err'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; } &&
2809 { ac_try='test -s conftest.$ac_objext'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 ac_cv_prog_cc_stdc=$ac_arg
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2822 rm -f conftest.err conftest.$ac_objext
2824 rm -f conftest.$ac_ext conftest.$ac_objext
2829 case "x$ac_cv_prog_cc_stdc" in
2831 echo "$as_me:$LINENO: result: none needed" >&5
2832 echo "${ECHO_T}none needed" >&6 ;;
2834 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2835 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2836 CC="$CC $ac_cv_prog_cc_stdc" ;;
2839 # Some people use a C++ compiler to compile C. Since we use `exit',
2840 # in C++ we need to declare it. In case someone uses the same compiler
2841 # for both compiling C and C++ we need to have the C++ compiler decide
2842 # the declaration of exit, since it's the most demanding environment.
2843 cat >conftest.$ac_ext <<_ACEOF
2848 rm -f conftest.$ac_objext
2849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2850 (eval $ac_compile) 2>conftest.er1
2852 grep -v '^ *+' conftest.er1 >conftest.err
2854 cat conftest.err >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } &&
2857 { ac_try='test -z "$ac_c_werror_flag"
2858 || test ! -s conftest.err'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; } &&
2864 { ac_try='test -s conftest.$ac_objext'
2865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; }; then
2870 for ac_declaration in \
2872 'extern "C" void std::exit (int) throw (); using std::exit;' \
2873 'extern "C" void std::exit (int); using std::exit;' \
2874 'extern "C" void exit (int) throw ();' \
2875 'extern "C" void exit (int);' \
2878 cat >conftest.$ac_ext <<_ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2896 (eval $ac_compile) 2>conftest.er1
2898 grep -v '^ *+' conftest.er1 >conftest.err
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } &&
2903 { ac_try='test -z "$ac_c_werror_flag"
2904 || test ! -s conftest.err'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; } &&
2910 { ac_try='test -s conftest.$ac_objext'
2911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; }; then
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2924 cat >conftest.$ac_ext <<_ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h. */
2939 rm -f conftest.$ac_objext
2940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2941 (eval $ac_compile) 2>conftest.er1
2943 grep -v '^ *+' conftest.er1 >conftest.err
2945 cat conftest.err >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try='test -z "$ac_c_werror_flag"
2949 || test ! -s conftest.err'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; } &&
2955 { ac_try='test -s conftest.$ac_objext'
2956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2970 if test -n "$ac_declaration"; then
2971 echo '#ifdef __cplusplus' >>confdefs.h
2972 echo $ac_declaration >>confdefs.h
2973 echo '#endif' >>confdefs.h
2977 echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2983 ac_cpp='$CPP $CPPFLAGS'
2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988 if test "$GCC" != "yes"
2990 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2991 echo "$as_me: error: gcc required but not found" >&2;}
2992 { (exit 1); exit 1; }; }
2995 ac_cpp='$CPP $CPPFLAGS'
2996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3000 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3001 # On Suns, sometimes $CPP names a directory.
3002 if test -n "$CPP" && test -d "$CPP"; then
3005 if test -z "$CPP"; then
3006 if test "${ac_cv_prog_CPP+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 # Double quotes because CPP needs to be expanded
3010 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3013 for ac_c_preproc_warn_flag in '' yes
3015 # Use a header file that comes with gcc, so configuring glibc
3016 # with a fresh cross-compiler works.
3017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3018 # <limits.h> exists even on freestanding compilers.
3019 # On the NeXT, cc -E runs the code through the compiler's parser,
3020 # not just through cpp. "Syntax error" is here to catch this case.
3021 cat >conftest.$ac_ext <<_ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h. */
3028 # include <limits.h>
3030 # include <assert.h>
3034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3037 grep -v '^ *+' conftest.er1 >conftest.err
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } >/dev/null; then
3042 if test -s conftest.err; then
3043 ac_cpp_err=$ac_c_preproc_warn_flag
3044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3051 if test -z "$ac_cpp_err"; then
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3057 # Broken: fails on valid input.
3060 rm -f conftest.err conftest.$ac_ext
3062 # OK, works on sane cases. Now check whether non-existent headers
3063 # can be detected and how.
3064 cat >conftest.$ac_ext <<_ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3070 #include <ac_nonexistent.h>
3072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3075 grep -v '^ *+' conftest.er1 >conftest.err
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } >/dev/null; then
3080 if test -s conftest.err; then
3081 ac_cpp_err=$ac_c_preproc_warn_flag
3082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3089 if test -z "$ac_cpp_err"; then
3090 # Broken: success on invalid input.
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 # Passes both tests.
3100 rm -f conftest.err conftest.$ac_ext
3103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3104 rm -f conftest.err conftest.$ac_ext
3105 if $ac_preproc_ok; then
3117 echo "$as_me:$LINENO: result: $CPP" >&5
3118 echo "${ECHO_T}$CPP" >&6
3120 for ac_c_preproc_warn_flag in '' yes
3122 # Use a header file that comes with gcc, so configuring glibc
3123 # with a fresh cross-compiler works.
3124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3125 # <limits.h> exists even on freestanding compilers.
3126 # On the NeXT, cc -E runs the code through the compiler's parser,
3127 # not just through cpp. "Syntax error" is here to catch this case.
3128 cat >conftest.$ac_ext <<_ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3135 # include <limits.h>
3137 # include <assert.h>
3141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3144 grep -v '^ *+' conftest.er1 >conftest.err
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } >/dev/null; then
3149 if test -s conftest.err; then
3150 ac_cpp_err=$ac_c_preproc_warn_flag
3151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3158 if test -z "$ac_cpp_err"; then
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3164 # Broken: fails on valid input.
3167 rm -f conftest.err conftest.$ac_ext
3169 # OK, works on sane cases. Now check whether non-existent headers
3170 # can be detected and how.
3171 cat >conftest.$ac_ext <<_ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3177 #include <ac_nonexistent.h>
3179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3182 grep -v '^ *+' conftest.er1 >conftest.err
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } >/dev/null; then
3187 if test -s conftest.err; then
3188 ac_cpp_err=$ac_c_preproc_warn_flag
3189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3196 if test -z "$ac_cpp_err"; then
3197 # Broken: success on invalid input.
3200 echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3203 # Passes both tests.
3207 rm -f conftest.err conftest.$ac_ext
3210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3211 rm -f conftest.err conftest.$ac_ext
3212 if $ac_preproc_ok; then
3215 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3216 See \`config.log' for more details." >&5
3217 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3218 See \`config.log' for more details." >&2;}
3219 { (exit 1); exit 1; }; }
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228 if test "$GXX" != "yes"
3230 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3231 echo "$as_me: error: g++ required but not found" >&2;}
3232 { (exit 1); exit 1; }; }
3235 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3236 if test "$gccmajor" -lt "3"
3238 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3239 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3240 { (exit 1); exit 1; }; }
3243 echo "$as_me:$LINENO: checking for GNU make" >&5
3244 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3245 if test "${_cv_gnu_make_command+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 _cv_gnu_make_command='' ;
3249 for a in "$MAKE" make gmake gnumake ; do
3250 if test -z "$a" ; then continue ; fi ;
3251 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3252 _cv_gnu_make_command=$a ;
3258 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3259 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3260 if test "x$_cv_gnu_make_command" != "x" ; then
3264 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3265 echo "${ECHO_T}\"Not found\"" >&6;
3269 if test -z "$_cv_gnu_make_command"
3271 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3272 echo "$as_me: error: GNU Make required but not found" >&2;}
3273 { (exit 1); exit 1; }; }
3277 echo "$as_me:$LINENO: checking " >&5
3278 echo $ECHO_N "checking ... $ECHO_C" >&6
3279 if test "${ac_cv_has_flex+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 for ac_prog in flex lex
3284 # Extract the first word of "$ac_prog", so it can be a program name with args.
3285 set dummy $ac_prog; ac_word=$2
3286 echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288 if test "${ac_cv_prog_LEX+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 if test -n "$LEX"; then
3292 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301 ac_cv_prog_LEX="$ac_prog"
3302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 if test -n "$LEX"; then
3312 echo "$as_me:$LINENO: result: $LEX" >&5
3313 echo "${ECHO_T}$LEX" >&6
3315 echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6
3319 test -n "$LEX" && break
3321 test -n "$LEX" || LEX=":"
3323 if test -z "$LEXLIB"
3325 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3326 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3327 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 ac_check_lib_save_LIBS=$LIBS
3332 cat >conftest.$ac_ext <<_ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3339 /* Override any gcc2 internal prototype to avoid an error. */
3343 /* We use char because int might match the return type of a gcc2
3344 builtin and then its argument prototype would still apply. */
3354 rm -f conftest.$ac_objext conftest$ac_exeext
3355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3356 (eval $ac_link) 2>conftest.er1
3358 grep -v '^ *+' conftest.er1 >conftest.err
3360 cat conftest.err >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); } &&
3363 { ac_try='test -z "$ac_c_werror_flag"
3364 || test ! -s conftest.err'
3365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; } &&
3370 { ac_try='test -s conftest$ac_exeext'
3371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); }; }; then
3376 ac_cv_lib_fl_yywrap=yes
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3381 ac_cv_lib_fl_yywrap=no
3383 rm -f conftest.err conftest.$ac_objext \
3384 conftest$ac_exeext conftest.$ac_ext
3385 LIBS=$ac_check_lib_save_LIBS
3387 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3388 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3389 if test $ac_cv_lib_fl_yywrap = yes; then
3392 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3393 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3394 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 ac_check_lib_save_LIBS=$LIBS
3399 cat >conftest.$ac_ext <<_ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h. */
3406 /* Override any gcc2 internal prototype to avoid an error. */
3410 /* We use char because int might match the return type of a gcc2
3411 builtin and then its argument prototype would still apply. */
3421 rm -f conftest.$ac_objext conftest$ac_exeext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3423 (eval $ac_link) 2>conftest.er1
3425 grep -v '^ *+' conftest.er1 >conftest.err
3427 cat conftest.err >&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } &&
3430 { ac_try='test -z "$ac_c_werror_flag"
3431 || test ! -s conftest.err'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; } &&
3437 { ac_try='test -s conftest$ac_exeext'
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; }; then
3443 ac_cv_lib_l_yywrap=yes
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3448 ac_cv_lib_l_yywrap=no
3450 rm -f conftest.err conftest.$ac_objext \
3451 conftest$ac_exeext conftest.$ac_ext
3452 LIBS=$ac_check_lib_save_LIBS
3454 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3455 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3456 if test $ac_cv_lib_l_yywrap = yes; then
3464 if test "x$LEX" != "x:"; then
3465 echo "$as_me:$LINENO: checking lex output file root" >&5
3466 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3467 if test "${ac_cv_prog_lex_root+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 # The minimal lex program is just a single line: %%. But some broken lexes
3471 # (Solaris, I think it was) want two %% lines, so accommodate them.
3472 cat >conftest.l <<_ACEOF
3476 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3477 (eval $LEX conftest.l) 2>&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }
3481 if test -f lex.yy.c; then
3482 ac_cv_prog_lex_root=lex.yy
3483 elif test -f lexyy.c; then
3484 ac_cv_prog_lex_root=lexyy
3486 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3487 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3488 { (exit 1); exit 1; }; }
3491 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3492 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3494 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3496 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3497 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3498 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 # POSIX says lex can declare yytext either as a pointer or an array; the
3502 # default is implementation-dependent. Figure out which it is, since
3503 # not all implementations provide the %pointer and %array declarations.
3504 ac_cv_prog_lex_yytext_pointer=no
3505 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3507 LIBS="$LIBS $LEXLIB"
3508 cat >conftest.$ac_ext <<_ACEOF
3509 `cat $LEX_OUTPUT_ROOT.c`
3511 rm -f conftest.$ac_objext conftest$ac_exeext
3512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3513 (eval $ac_link) 2>conftest.er1
3515 grep -v '^ *+' conftest.er1 >conftest.err
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 { ac_try='test -z "$ac_c_werror_flag"
3521 || test ! -s conftest.err'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; } &&
3527 { ac_try='test -s conftest$ac_exeext'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; }; then
3533 ac_cv_prog_lex_yytext_pointer=yes
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3539 rm -f conftest.err conftest.$ac_objext \
3540 conftest$ac_exeext conftest.$ac_ext
3542 rm -f "${LEX_OUTPUT_ROOT}.c"
3545 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3546 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3547 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3549 cat >>confdefs.h <<\_ACEOF
3550 #define YYTEXT_POINTER 1
3558 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3559 echo "${ECHO_T}$ac_cv_has_flex" >&6
3560 if test "$LEX" != "flex"; then
3561 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3562 echo "$as_me: error: flex not found but required" >&2;}
3563 { (exit 1); exit 1; }; }
3569 echo "$as_me:$LINENO: checking " >&5
3570 echo $ECHO_N "checking ... $ECHO_C" >&6
3571 if test "${ac_cv_has_bison+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3574 for ac_prog in 'bison -y' byacc
3576 # Extract the first word of "$ac_prog", so it can be a program name with args.
3577 set dummy $ac_prog; ac_word=$2
3578 echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3580 if test "${ac_cv_prog_YACC+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 if test -n "$YACC"; then
3584 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593 ac_cv_prog_YACC="$ac_prog"
3594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 YACC=$ac_cv_prog_YACC
3603 if test -n "$YACC"; then
3604 echo "$as_me:$LINENO: result: $YACC" >&5
3605 echo "${ECHO_T}$YACC" >&6
3607 echo "$as_me:$LINENO: result: no" >&5
3608 echo "${ECHO_T}no" >&6
3611 test -n "$YACC" && break
3613 test -n "$YACC" || YACC="yacc"
3617 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3618 echo "${ECHO_T}$ac_cv_has_bison" >&6
3619 if test "$YACC" != "bison -y"; then
3620 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3621 echo "$as_me: error: bison not found but required" >&2;}
3622 { (exit 1); exit 1; }; }
3628 # Check whether --enable-shared or --disable-shared was given.
3629 if test "${enable_shared+set}" = set; then
3630 enableval="$enable_shared"
3631 p=${PACKAGE-default}
3633 yes) enable_shared=yes ;;
3634 no) enable_shared=no ;;
3637 # Look at the argument we got. We use all the common list separators.
3638 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3639 for pkg in $enableval; do
3641 if test "X$pkg" = "X$p"; then
3652 # Check whether --enable-static or --disable-static was given.
3653 if test "${enable_static+set}" = set; then
3654 enableval="$enable_static"
3655 p=${PACKAGE-default}
3657 yes) enable_static=yes ;;
3658 no) enable_static=no ;;
3661 # Look at the argument we got. We use all the common list separators.
3662 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3663 for pkg in $enableval; do
3665 if test "X$pkg" = "X$p"; then
3676 # Check whether --enable-fast-install or --disable-fast-install was given.
3677 if test "${enable_fast_install+set}" = set; then
3678 enableval="$enable_fast_install"
3679 p=${PACKAGE-default}
3681 yes) enable_fast_install=yes ;;
3682 no) enable_fast_install=no ;;
3684 enable_fast_install=no
3685 # Look at the argument we got. We use all the common list separators.
3686 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3687 for pkg in $enableval; do
3689 if test "X$pkg" = "X$p"; then
3690 enable_fast_install=yes
3697 enable_fast_install=yes
3700 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3701 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3702 if test "${lt_cv_path_SED+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 # Loop through the user's path and test for sed and gsed.
3706 # Then use that list of sed's as ones to test for truncation.
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 test -z "$as_dir" && as_dir=.
3712 for lt_ac_prog in sed gsed; do
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3715 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3722 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3723 # along with /bin/sed that truncates output.
3724 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3725 test ! -f $lt_ac_sed && break
3726 cat /dev/null > conftest.in
3728 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3729 # Check for GNU sed and select it if it is found.
3730 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3731 lt_cv_path_SED=$lt_ac_sed
3735 cat conftest.in conftest.in >conftest.tmp
3736 mv conftest.tmp conftest.in
3737 cp conftest.in conftest.nl
3739 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3740 cmp -s conftest.out conftest.nl || break
3741 # 10000 chars as input seems more than enough
3742 test $lt_ac_count -gt 10 && break
3743 lt_ac_count=`expr $lt_ac_count + 1`
3744 if test $lt_ac_count -gt $lt_ac_max; then
3745 lt_ac_max=$lt_ac_count
3746 lt_cv_path_SED=$lt_ac_sed
3754 echo "$as_me:$LINENO: result: $SED" >&5
3755 echo "${ECHO_T}$SED" >&6
3757 echo "$as_me:$LINENO: checking for egrep" >&5
3758 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3759 if test "${ac_cv_prog_egrep+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3763 then ac_cv_prog_egrep='grep -E'
3764 else ac_cv_prog_egrep='egrep'
3767 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3768 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3769 EGREP=$ac_cv_prog_egrep
3773 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3774 if test "${with_gnu_ld+set}" = set; then
3775 withval="$with_gnu_ld"
3776 test "$withval" = no || with_gnu_ld=yes
3781 if test "$GCC" = yes; then
3782 # Check if gcc -print-prog-name=ld gives a path.
3783 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3784 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3787 # gcc leaves a trailing carriage return which upsets mingw
3788 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3790 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3793 # Accept absolute paths.
3795 re_direlt='/[^/][^/]*/\.\./'
3796 # Canonicalize the pathname of ld
3797 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3798 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3799 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3801 test -z "$LD" && LD="$ac_prog"
3804 # If it fails, then pretend we aren't using GCC.
3808 # If it is relative, then search for the first ld in PATH.
3812 elif test "$with_gnu_ld" = yes; then
3813 echo "$as_me:$LINENO: checking for GNU ld" >&5
3814 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3816 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3817 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3819 if test "${lt_cv_path_LD+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 if test -z "$LD"; then
3823 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3824 for ac_dir in $PATH; do
3826 test -z "$ac_dir" && ac_dir=.
3827 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3828 lt_cv_path_LD="$ac_dir/$ac_prog"
3829 # Check to see if the program is GNU ld. I'd rather use --version,
3830 # but apparently some GNU ld's only accept -v.
3831 # Break only if it was the GNU/non-GNU ld that we prefer.
3832 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3833 *GNU* | *'with BFD'*)
3834 test "$with_gnu_ld" != no && break
3837 test "$with_gnu_ld" != yes && break
3844 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3849 if test -n "$LD"; then
3850 echo "$as_me:$LINENO: result: $LD" >&5
3851 echo "${ECHO_T}$LD" >&6
3853 echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6
3856 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3857 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3858 { (exit 1); exit 1; }; }
3859 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3860 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3861 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3865 case `$LD -v 2>&1 </dev/null` in
3866 *GNU* | *'with BFD'*)
3867 lt_cv_prog_gnu_ld=yes
3870 lt_cv_prog_gnu_ld=no
3874 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3875 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3876 with_gnu_ld=$lt_cv_prog_gnu_ld
3879 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3880 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3881 if test "${lt_cv_ld_reload_flag+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 lt_cv_ld_reload_flag='-r'
3886 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3887 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3888 reload_flag=$lt_cv_ld_reload_flag
3889 case $reload_flag in
3891 *) reload_flag=" $reload_flag" ;;
3893 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3896 if test "$GCC" = yes; then
3897 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3899 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3904 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3905 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3906 if test "${lt_cv_path_NM+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 if test -n "$NM"; then
3910 # Let the user override the test.
3913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3914 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3916 test -z "$ac_dir" && ac_dir=.
3917 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3918 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3919 # Check to see if the nm accepts a BSD-compat flag.
3920 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3921 # nm: unknown option "B" ignored
3922 # Tru64's nm complains that /dev/null is an invalid object file
3923 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3924 */dev/null* | *'Invalid file or object type'*)
3925 lt_cv_path_NM="$tmp_nm -B"
3929 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3931 lt_cv_path_NM="$tmp_nm -p"
3935 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3936 continue # so that we can try to find one that supports BSD flags
3943 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3946 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3947 echo "${ECHO_T}$lt_cv_path_NM" >&6
3950 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3951 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3953 if test "$LN_S" = "ln -s"; then
3954 echo "$as_me:$LINENO: result: yes" >&5
3955 echo "${ECHO_T}yes" >&6
3957 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3958 echo "${ECHO_T}no, using $LN_S" >&6
3961 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3962 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3963 if test "${lt_cv_deplibs_check_method+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 lt_cv_file_magic_cmd='$MAGIC_CMD'
3967 lt_cv_file_magic_test_file=
3968 lt_cv_deplibs_check_method='unknown'
3969 # Need to set the preceding variable on all platforms that support
3970 # interlibrary dependencies.
3971 # 'none' -- dependencies not supported.
3972 # `unknown' -- same as none, but documents that we really don't know.
3973 # 'pass_all' -- all dependencies passed with no checks.
3974 # 'test_compile' -- check by making test program.
3975 # 'file_magic [[regex]]' -- check by looking for files in library path
3976 # which responds to the $file_magic_cmd with a given extended regex.
3977 # If you have `file' or equivalent on your system and you're not sure
3978 # whether `pass_all' will *always* work, you probably want this one.
3982 lt_cv_deplibs_check_method=pass_all
3986 lt_cv_deplibs_check_method=pass_all
3990 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3991 lt_cv_file_magic_cmd='/usr/bin/file -L'
3992 lt_cv_file_magic_test_file=/shlib/libc.so
3996 # func_win32_libid is a shell function defined in ltmain.sh
3997 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3998 lt_cv_file_magic_cmd='func_win32_libid'
4002 # Base MSYS/MinGW do not provide the 'file' command needed by
4003 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4004 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4005 lt_cv_file_magic_cmd='$OBJDUMP -f'
4008 darwin* | rhapsody*)
4009 lt_cv_deplibs_check_method=pass_all
4012 freebsd* | kfreebsd*-gnu)
4013 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4016 # Not sure whether the presence of OpenBSD here was a mistake.
4017 # Let's accept both of them until this is cleared up.
4018 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4019 lt_cv_file_magic_cmd=/usr/bin/file
4020 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4024 lt_cv_deplibs_check_method=pass_all
4029 lt_cv_deplibs_check_method=pass_all
4032 hpux10.20* | hpux11*)
4033 lt_cv_file_magic_cmd=/usr/bin/file
4036 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4037 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4040 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]'
4041 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4044 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4045 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4050 irix5* | irix6* | nonstopux*)
4052 *-32|*"-32 ") libmagic=32-bit;;
4053 *-n32|*"-n32 ") libmagic=N32;;
4054 *-64|*"-64 ") libmagic=64-bit;;
4055 *) libmagic=never-match;;
4057 lt_cv_deplibs_check_method=pass_all
4060 # This must be Linux ELF.
4062 lt_cv_deplibs_check_method=pass_all
4066 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4074 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4075 lt_cv_file_magic_cmd=/usr/bin/file
4076 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4080 lt_cv_deplibs_check_method=unknown
4084 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4087 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4091 osf3* | osf4* | osf5*)
4092 lt_cv_deplibs_check_method=pass_all
4096 lt_cv_deplibs_check_method=pass_all
4100 lt_cv_deplibs_check_method=pass_all
4103 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4104 case $host_vendor in
4106 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]'
4107 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4110 lt_cv_deplibs_check_method=pass_all
4113 lt_cv_file_magic_cmd='/bin/file'
4114 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4117 lt_cv_file_magic_cmd='/bin/file'
4118 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4119 lt_cv_file_magic_test_file=/lib/libc.so
4122 lt_cv_deplibs_check_method=pass_all
4127 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4128 lt_cv_deplibs_check_method=pass_all
4133 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4134 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4135 file_magic_cmd=$lt_cv_file_magic_cmd
4136 deplibs_check_method=$lt_cv_deplibs_check_method
4137 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4142 # If no C compiler was specified, use CC.
4145 # Allow CC to be a program name with arguments.
4148 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4149 if test "${enable_libtool_lock+set}" = set; then
4150 enableval="$enable_libtool_lock"
4153 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4155 # Some flags need to be propagated to the compiler or linker for good
4159 # Find out which ABI we are using.
4160 echo 'int i;' > conftest.$ac_ext
4161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4162 (eval $ac_compile) 2>&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; then
4166 case `/usr/bin/file conftest.$ac_objext` in
4178 # Find out which ABI we are using.
4179 echo '#line 4179 "configure"' > conftest.$ac_ext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4181 (eval $ac_compile) 2>&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; then
4185 if test "$lt_cv_prog_gnu_ld" = yes; then
4186 case `/usr/bin/file conftest.$ac_objext` in
4188 LD="${LD-ld} -melf32bsmip"
4191 LD="${LD-ld} -melf32bmipn32"
4194 LD="${LD-ld} -melf64bmip"
4198 case `/usr/bin/file conftest.$ac_objext` in
4214 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4215 # Find out which ABI we are using.
4216 echo 'int i;' > conftest.$ac_ext
4217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218 (eval $ac_compile) 2>&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; then
4222 case "`/usr/bin/file conftest.o`" in
4226 LD="${LD-ld} -m elf_i386"
4228 ppc64-*linux*|powerpc64-*linux*)
4229 LD="${LD-ld} -m elf32ppclinux"
4232 LD="${LD-ld} -m elf_s390"
4235 LD="${LD-ld} -m elf32_sparc"
4242 LD="${LD-ld} -m elf_x86_64"
4244 ppc*-*linux*|powerpc*-*linux*)
4245 LD="${LD-ld} -m elf64ppc"
4248 LD="${LD-ld} -m elf64_s390"
4251 LD="${LD-ld} -m elf64_sparc"
4261 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4262 SAVE_CFLAGS="$CFLAGS"
4263 CFLAGS="$CFLAGS -belf"
4264 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4265 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4266 if test "${lt_cv_cc_needs_belf+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 ac_cpp='$CPP $CPPFLAGS'
4271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275 cat >conftest.$ac_ext <<_ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4290 rm -f conftest.$ac_objext conftest$ac_exeext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4292 (eval $ac_link) 2>conftest.er1
4294 grep -v '^ *+' conftest.er1 >conftest.err
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } &&
4299 { ac_try='test -z "$ac_c_werror_flag"
4300 || test ! -s conftest.err'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; } &&
4306 { ac_try='test -s conftest$ac_exeext'
4307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4312 lt_cv_cc_needs_belf=yes
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4317 lt_cv_cc_needs_belf=no
4319 rm -f conftest.err conftest.$ac_objext \
4320 conftest$ac_exeext conftest.$ac_ext
4322 ac_cpp='$CPP $CPPFLAGS'
4323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4329 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4330 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4331 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4332 CFLAGS="$SAVE_CFLAGS"
4338 need_locks="$enable_libtool_lock"
4342 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4343 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4344 if test "${ac_cv_header_stdc+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 cat >conftest.$ac_ext <<_ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4366 rm -f conftest.$ac_objext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368 (eval $ac_compile) 2>conftest.er1
4370 grep -v '^ *+' conftest.er1 >conftest.err
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } &&
4375 { ac_try='test -z "$ac_c_werror_flag"
4376 || test ! -s conftest.err'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; } &&
4382 { ac_try='test -s conftest.$ac_objext'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
4388 ac_cv_header_stdc=yes
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 ac_cv_header_stdc=no
4395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4397 if test $ac_cv_header_stdc = yes; then
4398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4399 cat >conftest.$ac_ext <<_ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4409 $EGREP "memchr" >/dev/null 2>&1; then
4412 ac_cv_header_stdc=no
4418 if test $ac_cv_header_stdc = yes; then
4419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4420 cat >conftest.$ac_ext <<_ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4430 $EGREP "free" >/dev/null 2>&1; then
4433 ac_cv_header_stdc=no
4439 if test $ac_cv_header_stdc = yes; then
4440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4441 if test "$cross_compiling" = yes; then
4444 cat >conftest.$ac_ext <<_ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4451 #if ((' ' & 0x0FF) == 0x020)
4452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4455 # define ISLOWER(c) \
4456 (('a' <= (c) && (c) <= 'i') \
4457 || ('j' <= (c) && (c) <= 'r') \
4458 || ('s' <= (c) && (c) <= 'z'))
4459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4467 for (i = 0; i < 256; i++)
4468 if (XOR (islower (i), ISLOWER (i))
4469 || toupper (i) != TOUPPER (i))
4474 rm -f conftest$ac_exeext
4475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4476 (eval $ac_link) 2>&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4487 echo "$as_me: program exited with status $ac_status" >&5
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4492 ac_cv_header_stdc=no
4494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4498 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4499 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4500 if test $ac_cv_header_stdc = yes; then
4502 cat >>confdefs.h <<\_ACEOF
4503 #define STDC_HEADERS 1
4508 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4518 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4519 inttypes.h stdint.h unistd.h
4521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4522 echo "$as_me:$LINENO: checking for $ac_header" >&5
4523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 cat >conftest.$ac_ext <<_ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533 $ac_includes_default
4535 #include <$ac_header>
4537 rm -f conftest.$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539 (eval $ac_compile) 2>conftest.er1
4541 grep -v '^ *+' conftest.er1 >conftest.err
4543 cat conftest.err >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -z "$ac_c_werror_flag"
4547 || test ! -s conftest.err'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; } &&
4553 { ac_try='test -s conftest.$ac_objext'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; }; then
4559 eval "$as_ac_Header=yes"
4561 echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4564 eval "$as_ac_Header=no"
4566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4571 cat >>confdefs.h <<_ACEOF
4572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4581 for ac_header in dlfcn.h
4583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4585 echo "$as_me:$LINENO: checking for $ac_header" >&5
4586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4593 # Is the header compilable?
4594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4596 cat >conftest.$ac_ext <<_ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4602 $ac_includes_default
4603 #include <$ac_header>
4605 rm -f conftest.$ac_objext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607 (eval $ac_compile) 2>conftest.er1
4609 grep -v '^ *+' conftest.er1 >conftest.err
4611 cat conftest.err >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } &&
4614 { ac_try='test -z "$ac_c_werror_flag"
4615 || test ! -s conftest.err'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest.$ac_objext'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 ac_header_compiler=yes
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4632 ac_header_compiler=no
4634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4635 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4636 echo "${ECHO_T}$ac_header_compiler" >&6
4638 # Is the header present?
4639 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4641 cat >conftest.$ac_ext <<_ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h. */
4647 #include <$ac_header>
4649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4652 grep -v '^ *+' conftest.er1 >conftest.err
4654 cat conftest.err >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } >/dev/null; then
4657 if test -s conftest.err; then
4658 ac_cpp_err=$ac_c_preproc_warn_flag
4659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4666 if test -z "$ac_cpp_err"; then
4667 ac_header_preproc=yes
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4672 ac_header_preproc=no
4674 rm -f conftest.err conftest.$ac_ext
4675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4676 echo "${ECHO_T}$ac_header_preproc" >&6
4678 # So? What about this header?
4679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4685 ac_header_preproc=yes
4688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4691 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4695 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4702 ## ----------------------------------- ##
4703 ## Report this to llvmbugs@cs.uiuc.edu ##
4704 ## ----------------------------------- ##
4707 sed "s/^/$as_me: WARNING: /" >&2
4710 echo "$as_me:$LINENO: checking for $ac_header" >&5
4711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 eval "$as_ac_Header=\$ac_header_preproc"
4717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4722 cat >>confdefs.h <<_ACEOF
4723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4732 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4733 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4734 (test "X$CXX" != "Xg++"))) ; then
4736 ac_cpp='$CXXCPP $CPPFLAGS'
4737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4740 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4741 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4742 if test -z "$CXXCPP"; then
4743 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 # Double quotes because CXXCPP needs to be expanded
4747 for CXXCPP in "$CXX -E" "/lib/cpp"
4750 for ac_cxx_preproc_warn_flag in '' yes
4752 # Use a header file that comes with gcc, so configuring glibc
4753 # with a fresh cross-compiler works.
4754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4755 # <limits.h> exists even on freestanding compilers.
4756 # On the NeXT, cc -E runs the code through the compiler's parser,
4757 # not just through cpp. "Syntax error" is here to catch this case.
4758 cat >conftest.$ac_ext <<_ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4765 # include <limits.h>
4767 # include <assert.h>
4771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4774 grep -v '^ *+' conftest.er1 >conftest.err
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } >/dev/null; then
4779 if test -s conftest.err; then
4780 ac_cpp_err=$ac_cxx_preproc_warn_flag
4781 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4788 if test -z "$ac_cpp_err"; then
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4794 # Broken: fails on valid input.
4797 rm -f conftest.err conftest.$ac_ext
4799 # OK, works on sane cases. Now check whether non-existent headers
4800 # can be detected and how.
4801 cat >conftest.$ac_ext <<_ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 #include <ac_nonexistent.h>
4809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4812 grep -v '^ *+' conftest.er1 >conftest.err
4814 cat conftest.err >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } >/dev/null; then
4817 if test -s conftest.err; then
4818 ac_cpp_err=$ac_cxx_preproc_warn_flag
4819 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4826 if test -z "$ac_cpp_err"; then
4827 # Broken: success on invalid input.
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4833 # Passes both tests.
4837 rm -f conftest.err conftest.$ac_ext
4840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4841 rm -f conftest.err conftest.$ac_ext
4842 if $ac_preproc_ok; then
4847 ac_cv_prog_CXXCPP=$CXXCPP
4850 CXXCPP=$ac_cv_prog_CXXCPP
4852 ac_cv_prog_CXXCPP=$CXXCPP
4854 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4855 echo "${ECHO_T}$CXXCPP" >&6
4857 for ac_cxx_preproc_warn_flag in '' yes
4859 # Use a header file that comes with gcc, so configuring glibc
4860 # with a fresh cross-compiler works.
4861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4862 # <limits.h> exists even on freestanding compilers.
4863 # On the NeXT, cc -E runs the code through the compiler's parser,
4864 # not just through cpp. "Syntax error" is here to catch this case.
4865 cat >conftest.$ac_ext <<_ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4872 # include <limits.h>
4874 # include <assert.h>
4878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4881 grep -v '^ *+' conftest.er1 >conftest.err
4883 cat conftest.err >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } >/dev/null; then
4886 if test -s conftest.err; then
4887 ac_cpp_err=$ac_cxx_preproc_warn_flag
4888 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4895 if test -z "$ac_cpp_err"; then
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4901 # Broken: fails on valid input.
4904 rm -f conftest.err conftest.$ac_ext
4906 # OK, works on sane cases. Now check whether non-existent headers
4907 # can be detected and how.
4908 cat >conftest.$ac_ext <<_ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4914 #include <ac_nonexistent.h>
4916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4919 grep -v '^ *+' conftest.er1 >conftest.err
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } >/dev/null; then
4924 if test -s conftest.err; then
4925 ac_cpp_err=$ac_cxx_preproc_warn_flag
4926 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4933 if test -z "$ac_cpp_err"; then
4934 # Broken: success on invalid input.
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4940 # Passes both tests.
4944 rm -f conftest.err conftest.$ac_ext
4947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4948 rm -f conftest.err conftest.$ac_ext
4949 if $ac_preproc_ok; then
4952 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4953 See \`config.log' for more details." >&5
4954 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4955 See \`config.log' for more details." >&2;}
4956 { (exit 1); exit 1; }; }
4960 ac_cpp='$CXXCPP $CPPFLAGS'
4961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4969 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4970 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4972 if test -n "$ac_tool_prefix"; then
4973 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4977 echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979 if test "${ac_cv_prog_F77+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 if test -n "$F77"; then
4983 ac_cv_prog_F77="$F77" # Let the user override the test.
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 if test -n "$F77"; then
5003 echo "$as_me:$LINENO: result: $F77" >&5
5004 echo "${ECHO_T}$F77" >&6
5006 echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6
5010 test -n "$F77" && break
5013 if test -z "$F77"; then
5015 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5017 # Extract the first word of "$ac_prog", so it can be a program name with args.
5018 set dummy $ac_prog; ac_word=$2
5019 echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5021 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 if test -n "$ac_ct_F77"; then
5025 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5034 ac_cv_prog_ac_ct_F77="$ac_prog"
5035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5044 if test -n "$ac_ct_F77"; then
5045 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5046 echo "${ECHO_T}$ac_ct_F77" >&6
5048 echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6
5052 test -n "$ac_ct_F77" && break
5059 # Provide some information about the compiler.
5060 echo "$as_me:5060:" \
5061 "checking for Fortran 77 compiler version" >&5
5062 ac_compiler=`set X $ac_compile; echo $2`
5063 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5064 (eval $ac_compiler --version </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); }
5073 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5074 (eval $ac_compiler -V </dev/null >&5) 2>&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }
5080 # If we don't use `.F' as extension, the preprocessor is not run on the
5081 # input file. (Note that this only needs to work for GNU compilers.)
5084 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5085 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5086 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 cat >conftest.$ac_ext <<_ACEOF
5097 rm -f conftest.$ac_objext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5099 (eval $ac_compile) 2>conftest.er1
5101 grep -v '^ *+' conftest.er1 >conftest.err
5103 cat conftest.err >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } &&
5106 { ac_try='test -z "$ac_f77_werror_flag"
5107 || test ! -s conftest.err'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; } &&
5113 { ac_try='test -s conftest.$ac_objext'
5114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5121 echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5127 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5130 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5131 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5133 ac_test_FFLAGS=${FFLAGS+set}
5134 ac_save_FFLAGS=$FFLAGS
5136 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5137 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5138 if test "${ac_cv_prog_f77_g+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 cat >conftest.$ac_ext <<_ACEOF
5147 rm -f conftest.$ac_objext
5148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5149 (eval $ac_compile) 2>conftest.er1
5151 grep -v '^ *+' conftest.er1 >conftest.err
5153 cat conftest.err >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } &&
5156 { ac_try='test -z "$ac_f77_werror_flag"
5157 || test ! -s conftest.err'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; } &&
5163 { ac_try='test -s conftest.$ac_objext'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; }; then
5169 ac_cv_prog_f77_g=yes
5171 echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5179 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5180 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5181 if test "$ac_test_FFLAGS" = set; then
5182 FFLAGS=$ac_save_FFLAGS
5183 elif test $ac_cv_prog_f77_g = yes; then
5184 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5190 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5197 G77=`test $ac_compiler_gnu = yes && echo yes`
5199 ac_cpp='$CPP $CPPFLAGS'
5200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5206 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5208 # find the maximum length of command line arguments
5209 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5210 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5211 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 # On DJGPP, this test can blow up pretty badly due to problems in libc
5220 # (any single argument exceeding 2000 bytes causes a buffer overrun
5221 # during glob expansion). Even if it were fixed, the result of this
5222 # check would be larger than it should be.
5223 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5227 # Under GNU Hurd, this test is not required because there is
5228 # no limit to the length of command line arguments.
5229 # Libtool will interpret -1 as no limit whatsoever
5230 lt_cv_sys_max_cmd_len=-1;
5234 # On Win9x/ME, this test blows up -- it succeeds, but takes
5235 # about 5 minutes as the teststring grows exponentially.
5236 # Worse, since 9x/ME are not pre-emptively multitasking,
5237 # you end up with a "frozen" computer, even though with patience
5238 # the test eventually succeeds (with a max line length of 256k).
5239 # Instead, let's just punt: use the minimum linelength reported by
5240 # all of the supported platforms: 8192 (on NT/2K/XP).
5241 lt_cv_sys_max_cmd_len=8192;
5245 # On AmigaOS with pdksh, this test takes hours, literally.
5246 # So we just punt and use a minimum line length of 8192.
5247 lt_cv_sys_max_cmd_len=8192;
5250 netbsd* | freebsd* | openbsd* | darwin* )
5251 # This has been around since 386BSD, at least. Likely further.
5252 if test -x /sbin/sysctl; then
5253 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5254 elif test -x /usr/sbin/sysctl; then
5255 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5257 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5259 # And add a safety zone
5260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5264 # If test is not a shell built-in, we'll probably end up computing a
5265 # maximum length that is only half of the actual maximum length, but
5267 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5268 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5269 = "XX$teststring") >/dev/null 2>&1 &&
5270 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5271 lt_cv_sys_max_cmd_len=$new_result &&
5272 test $i != 17 # 1/2 MB should be enough
5275 teststring=$teststring$teststring
5278 # Add a significant safety factor because C++ compilers can tack on massive
5279 # amounts of additional arguments before passing them to the linker.
5280 # It appears as though 1/2 is a usable value.
5281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5287 if test -n $lt_cv_sys_max_cmd_len ; then
5288 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5289 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5291 echo "$as_me:$LINENO: result: none" >&5
5292 echo "${ECHO_T}none" >&6
5298 # Check for command to grab the raw symbol name followed by C symbol from nm.
5299 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5300 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5301 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 # These are sane defaults that work on at least a few old systems.
5306 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5308 # Character class describing NM global symbol codes.
5309 symcode='[BCDEGRST]'
5311 # Regexp to match symbols that can be accessed directly from C.
5312 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5314 # Transform the above into a raw symbol and a C symbol.
5315 symxfrm='\1 \2\3 \3'
5317 # Transform an extracted symbol line into a proper C declaration
5318 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5320 # Transform an extracted symbol line into symbol name and symbol address
5321 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'"
5323 # Define system-specific variables.
5328 cygwin* | mingw* | pw32*)
5329 symcode='[ABCDGISTW]'
5331 hpux*) # Its linker distinguishes data from code symbols
5332 if test "$host_cpu" = ia64; then
5333 symcode='[ABCDEGRST]'
5335 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5336 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'"
5339 if test "$host_cpu" = ia64; then
5340 symcode='[ABCDGIRSTW]'
5341 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5342 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'"
5346 symcode='[BCDEGRST]'
5349 symcode='[BCDEGQRST]'
5359 # Handle CRLF in mingw tool chain
5363 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5367 # If we're using GNU nm, then use its standard symbol codes.
5368 case `$NM -V 2>&1` in
5369 *GNU* | *'with BFD'*)
5370 symcode='[ABCDGIRSTW]' ;;
5373 # Try without a prefix undercore, then with it.
5374 for ac_symprfx in "" "_"; do
5376 # Write the raw and C identifiers.
5377 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5379 # Check to see that the pipe works correctly.
5383 cat > conftest.$ac_ext <<EOF
5388 void nm_test_func(){}
5392 int main(){nm_test_var='a';nm_test_func();return(0);}
5395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5396 (eval $ac_compile) 2>&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; then
5400 # Now try to grab the symbols.
5402 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5403 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } && test -s "$nlist"; then
5407 # Try sorting and uniquifying the output.
5408 if sort "$nlist" | uniq > "$nlist"T; then
5409 mv -f "$nlist"T "$nlist"
5414 # Make sure that we snagged all the symbols we need.
5415 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5416 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5417 cat <<EOF > conftest.$ac_ext
5423 # Now generate the symbol file.
5424 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5426 cat <<EOF >> conftest.$ac_ext
5427 #if defined (__STDC__) && __STDC__
5428 # define lt_ptr_t void *
5430 # define lt_ptr_t char *
5434 /* The mapping between symbol names and symbols. */
5439 lt_preloaded_symbols[] =
5442 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5443 cat <<\EOF >> conftest.$ac_ext
5451 # Now try linking the two files.
5452 mv conftest.$ac_objext conftstm.$ac_objext
5453 lt_save_LIBS="$LIBS"
5454 lt_save_CFLAGS="$CFLAGS"
5455 LIBS="conftstm.$ac_objext"
5456 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5458 (eval $ac_link) 2>&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5464 LIBS="$lt_save_LIBS"
5465 CFLAGS="$lt_save_CFLAGS"
5467 echo "cannot find nm_test_func in $nlist" >&5
5470 echo "cannot find nm_test_var in $nlist" >&5
5473 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5476 echo "$progname: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5479 rm -f conftest* conftst*
5481 # Do not use the global_symbol_pipe unless it works.
5482 if test "$pipe_works" = yes; then
5485 lt_cv_sys_global_symbol_pipe=
5491 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5492 lt_cv_sys_global_symbol_to_cdecl=
5494 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5495 echo "$as_me:$LINENO: result: failed" >&5
5496 echo "${ECHO_T}failed" >&6
5498 echo "$as_me:$LINENO: result: ok" >&5
5499 echo "${ECHO_T}ok" >&6
5502 echo "$as_me:$LINENO: checking for objdir" >&5
5503 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5504 if test "${lt_cv_objdir+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5507 rm -f .libs 2>/dev/null
5508 mkdir .libs 2>/dev/null
5509 if test -d .libs; then
5512 # MS-DOS does not allow filenames that begin with a dot.
5515 rmdir .libs 2>/dev/null
5517 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5518 echo "${ECHO_T}$lt_cv_objdir" >&6
5519 objdir=$lt_cv_objdir
5527 # AIX sometimes has problems with the GCC collect2 program. For some
5528 # reason, if we set the COLLECT_NAMES environment variable, the problems
5529 # vanish in a puff of smoke.
5530 if test "X${COLLECT_NAMES+set}" != Xset; then
5532 export COLLECT_NAMES
5537 # Sed substitution that helps us do robust quoting. It backslashifies
5538 # metacharacters that are still active within double-quoted strings.
5539 Xsed='sed -e s/^X//'
5540 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5542 # Same as above, but do not quote variable references.
5543 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5545 # Sed substitution to delay expansion of an escaped shell variable in a
5546 # double_quote_subst'ed string.
5547 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5549 # Sed substitution to avoid accidental globbing in evaled expressions
5550 no_glob_subst='s/\*/\\\*/g'
5557 can_build_shared=yes
5559 # All known linkers require a `.a' archive for static linking (except M$VC,
5560 # which needs '.lib').
5562 ltmain="$ac_aux_dir/ltmain.sh"
5563 ofile="$default_ofile"
5564 with_gnu_ld="$lt_cv_prog_gnu_ld"
5566 if test -n "$ac_tool_prefix"; then
5567 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5568 set dummy ${ac_tool_prefix}ar; ac_word=$2
5569 echo "$as_me:$LINENO: checking for $ac_word" >&5
5570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5571 if test "${ac_cv_prog_AR+set}" = set; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 if test -n "$AR"; then
5575 ac_cv_prog_AR="$AR" # Let the user override the test.
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_prog_AR="${ac_tool_prefix}ar"
5585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 if test -n "$AR"; then
5595 echo "$as_me:$LINENO: result: $AR" >&5
5596 echo "${ECHO_T}$AR" >&6
5598 echo "$as_me:$LINENO: result: no" >&5
5599 echo "${ECHO_T}no" >&6
5603 if test -z "$ac_cv_prog_AR"; then
5605 # Extract the first word of "ar", so it can be a program name with args.
5606 set dummy ar; ac_word=$2
5607 echo "$as_me:$LINENO: checking for $ac_word" >&5
5608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 if test -n "$ac_ct_AR"; then
5613 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622 ac_cv_prog_ac_ct_AR="ar"
5623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5632 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5633 if test -n "$ac_ct_AR"; then
5634 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5635 echo "${ECHO_T}$ac_ct_AR" >&6
5637 echo "$as_me:$LINENO: result: no" >&5
5638 echo "${ECHO_T}no" >&6
5646 if test -n "$ac_tool_prefix"; then
5647 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5648 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5649 echo "$as_me:$LINENO: checking for $ac_word" >&5
5650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5651 if test "${ac_cv_prog_RANLIB+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 if test -n "$RANLIB"; then
5655 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5673 RANLIB=$ac_cv_prog_RANLIB
5674 if test -n "$RANLIB"; then
5675 echo "$as_me:$LINENO: result: $RANLIB" >&5
5676 echo "${ECHO_T}$RANLIB" >&6
5678 echo "$as_me:$LINENO: result: no" >&5
5679 echo "${ECHO_T}no" >&6
5683 if test -z "$ac_cv_prog_RANLIB"; then
5684 ac_ct_RANLIB=$RANLIB
5685 # Extract the first word of "ranlib", so it can be a program name with args.
5686 set dummy ranlib; ac_word=$2
5687 echo "$as_me:$LINENO: checking for $ac_word" >&5
5688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5689 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 if test -n "$ac_ct_RANLIB"; then
5693 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_ac_ct_RANLIB="ranlib"
5703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5712 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5713 if test -n "$ac_ct_RANLIB"; then
5714 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5715 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5717 echo "$as_me:$LINENO: result: no" >&5
5718 echo "${ECHO_T}no" >&6
5721 RANLIB=$ac_ct_RANLIB
5723 RANLIB="$ac_cv_prog_RANLIB"
5726 if test -n "$ac_tool_prefix"; then
5727 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}strip; ac_word=$2
5729 echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5731 if test "${ac_cv_prog_STRIP+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 if test -n "$STRIP"; then
5735 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 STRIP=$ac_cv_prog_STRIP
5754 if test -n "$STRIP"; then
5755 echo "$as_me:$LINENO: result: $STRIP" >&5
5756 echo "${ECHO_T}$STRIP" >&6
5758 echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6
5763 if test -z "$ac_cv_prog_STRIP"; then
5765 # Extract the first word of "strip", so it can be a program name with args.
5766 set dummy strip; ac_word=$2
5767 echo "$as_me:$LINENO: checking for $ac_word" >&5
5768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 if test -n "$ac_ct_STRIP"; then
5773 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_ac_ct_STRIP="strip"
5783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5792 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5793 if test -n "$ac_ct_STRIP"; then
5794 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5795 echo "${ECHO_T}$ac_ct_STRIP" >&6
5797 echo "$as_me:$LINENO: result: no" >&5
5798 echo "${ECHO_T}no" >&6
5803 STRIP="$ac_cv_prog_STRIP"
5808 old_CFLAGS="$CFLAGS"
5810 # Set sane defaults for various variables
5811 test -z "$AR" && AR=ar
5812 test -z "$AR_FLAGS" && AR_FLAGS=cru
5813 test -z "$AS" && AS=as
5814 test -z "$CC" && CC=cc
5815 test -z "$LTCC" && LTCC=$CC
5816 test -z "$DLLTOOL" && DLLTOOL=dlltool
5817 test -z "$LD" && LD=ld
5818 test -z "$LN_S" && LN_S="ln -s"
5819 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5820 test -z "$NM" && NM=nm
5821 test -z "$SED" && SED=sed
5822 test -z "$OBJDUMP" && OBJDUMP=objdump
5823 test -z "$RANLIB" && RANLIB=:
5824 test -z "$STRIP" && STRIP=:
5825 test -z "$ac_objext" && ac_objext=o
5827 # Determine commands to create old-style static archives.
5828 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5829 old_postinstall_cmds='chmod 644 $oldlib'
5830 old_postuninstall_cmds=
5832 if test -n "$RANLIB"; then
5835 old_postinstall_cmds="\$RANLIB -t \$oldlib;$old_postinstall_cmds"
5838 old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds"
5841 old_archive_cmds="$old_archive_cmds;\$RANLIB \$oldlib"
5844 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5846 # Only perform the check for file, if the check method requires it
5847 case $deplibs_check_method in
5849 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5850 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5851 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5852 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5860 lt_save_MAGIC_CMD="$MAGIC_CMD"
5861 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5862 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5863 for ac_dir in $ac_dummy; do
5865 test -z "$ac_dir" && ac_dir=.
5866 if test -f $ac_dir/${ac_tool_prefix}file; then
5867 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5868 if test -n "$file_magic_test_file"; then
5869 case $deplibs_check_method in
5871 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5872 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5873 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5874 $EGREP "$file_magic_regex" > /dev/null; then
5879 *** Warning: the command libtool uses to detect shared libraries,
5880 *** $file_magic_cmd, produces output that libtool cannot recognize.
5881 *** The result is that libtool may fail to recognize shared libraries
5882 *** as such. This will affect the creation of libtool libraries that
5883 *** depend on shared libraries, but programs linked with such libtool
5884 *** libraries will work regardless of this problem. Nevertheless, you
5885 *** may want to report the problem to your system manager and/or to
5886 *** bug-libtool@gnu.org
5896 MAGIC_CMD="$lt_save_MAGIC_CMD"
5901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5902 if test -n "$MAGIC_CMD"; then
5903 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5904 echo "${ECHO_T}$MAGIC_CMD" >&6
5906 echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6
5910 if test -z "$lt_cv_path_MAGIC_CMD"; then
5911 if test -n "$ac_tool_prefix"; then
5912 echo "$as_me:$LINENO: checking for file" >&5
5913 echo $ECHO_N "checking for file... $ECHO_C" >&6
5914 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5922 lt_save_MAGIC_CMD="$MAGIC_CMD"
5923 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5924 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5925 for ac_dir in $ac_dummy; do
5927 test -z "$ac_dir" && ac_dir=.
5928 if test -f $ac_dir/file; then
5929 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5930 if test -n "$file_magic_test_file"; then
5931 case $deplibs_check_method in
5933 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5934 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5935 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5936 $EGREP "$file_magic_regex" > /dev/null; then
5941 *** Warning: the command libtool uses to detect shared libraries,
5942 *** $file_magic_cmd, produces output that libtool cannot recognize.
5943 *** The result is that libtool may fail to recognize shared libraries
5944 *** as such. This will affect the creation of libtool libraries that
5945 *** depend on shared libraries, but programs linked with such libtool
5946 *** libraries will work regardless of this problem. Nevertheless, you
5947 *** may want to report the problem to your system manager and/or to
5948 *** bug-libtool@gnu.org
5958 MAGIC_CMD="$lt_save_MAGIC_CMD"
5963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5964 if test -n "$MAGIC_CMD"; then
5965 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5966 echo "${ECHO_T}$MAGIC_CMD" >&6
5968 echo "$as_me:$LINENO: result: no" >&5
5969 echo "${ECHO_T}no" >&6
5984 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5985 if test "${enable_libtool_lock+set}" = set; then
5986 enableval="$enable_libtool_lock"
5989 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5992 # Check whether --with-pic or --without-pic was given.
5993 if test "${with_pic+set}" = set; then
5999 test -z "$pic_mode" && pic_mode=default
6001 # Use C for the default configuration in the libtool script
6005 ac_cpp='$CPP $CPPFLAGS'
6006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6011 # Source file extension for C test sources.
6014 # Object file extension for compiled C test sources.
6018 # Code to be used in simple compile tests
6019 lt_simple_compile_test_code="int some_variable = 0;\n"
6021 # Code to be used in simple link tests
6022 lt_simple_link_test_code='int main(){return(0);}\n'
6025 # If no C compiler was specified, use CC.
6028 # Allow CC to be a program name with arguments.
6033 # Check for any special shared library compilation flags.
6036 if test "$GCC" = no; then
6039 lt_prog_cc_shlib='-belf'
6043 if test -n "$lt_prog_cc_shlib"; then
6044 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6045 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6046 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6048 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6049 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6050 lt_cv_prog_cc_can_build_shared=no
6056 # Check to make sure the static flag actually works.
6058 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6059 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6060 if test "${lt_prog_compiler_static_works+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 lt_prog_compiler_static_works=no
6064 save_LDFLAGS="$LDFLAGS"
6065 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6066 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6067 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6068 # The compiler can only warn and ignore the option if not recognized
6069 # So say no if there are warnings
6070 if test -s conftest.err; then
6071 # Append any errors to the config.log.
6072 cat conftest.err 1>&5
6074 lt_prog_compiler_static_works=yes
6078 LDFLAGS="$save_LDFLAGS"
6081 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6082 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6084 if test x"$lt_prog_compiler_static_works" = xyes; then
6087 lt_prog_compiler_static=
6093 lt_prog_compiler_no_builtin_flag=
6095 if test "$GCC" = yes; then
6096 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6099 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6100 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6101 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 lt_cv_prog_compiler_rtti_exceptions=no
6105 ac_outfile=conftest.$ac_objext
6106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6107 lt_compiler_flag="-fno-rtti -fno-exceptions"
6108 # Insert the option either (1) after the last *FLAGS variable, or
6109 # (2) before a word containing "conftest.", or (3) at the end.
6110 # Note that $ac_compile itself does not contain backslashes and begins
6111 # with a dollar sign (not a hyphen), so the echo should work correctly.
6112 # The option is referenced via a variable to avoid confusing sed.
6113 lt_compile=`echo "$ac_compile" | $SED \
6114 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6116 -e 's:$: $lt_compiler_flag:'`
6117 (eval echo "\"\$as_me:6117: $lt_compile\"" >&5)
6118 (eval "$lt_compile" 2>conftest.err)
6120 cat conftest.err >&5
6121 echo "$as_me:6121: \$? = $ac_status" >&5
6122 if (exit $ac_status) && test -s "$ac_outfile"; then
6123 # The compiler can only warn and ignore the option if not recognized
6124 # So say no if there are warnings
6125 if test ! -s conftest.err; then
6126 lt_cv_prog_compiler_rtti_exceptions=yes
6132 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6133 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6135 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6136 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6143 lt_prog_compiler_wl=
6144 lt_prog_compiler_pic=
6145 lt_prog_compiler_static=
6147 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6148 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6150 if test "$GCC" = yes; then
6151 lt_prog_compiler_wl='-Wl,'
6152 lt_prog_compiler_static='-static'
6156 # All AIX code is PIC.
6157 if test "$host_cpu" = ia64; then
6158 # AIX 5 now supports IA64 processor
6159 lt_prog_compiler_static='-Bstatic'
6164 # FIXME: we need at least 68020 code to build shared libraries, but
6165 # adding the `-m68020' flag to GCC prevents building anything better,
6167 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6170 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6171 # PIC is the default for these OSes.
6174 mingw* | pw32* | os2*)
6175 # This hack is so that the source file can tell whether it is being
6176 # built for inclusion in a dll (and should export symbols for example).
6177 lt_prog_compiler_pic='-DDLL_EXPORT'
6180 darwin* | rhapsody*)
6181 # PIC is the default on this platform
6182 # Common symbols not allowed in MH_DYLIB files
6183 lt_prog_compiler_pic='-fno-common'
6187 # Just because we use GCC doesn't mean we suddenly get shared libraries
6188 # on systems that don't support them.
6189 lt_prog_compiler_can_build_shared=no
6194 if test -d /usr/nec; then
6195 lt_prog_compiler_pic=-Kconform_pic
6200 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6207 lt_prog_compiler_pic='-fPIC'
6213 lt_prog_compiler_pic='-fPIC'
6217 # PORTME Check for flag to pass linker flags through the system compiler.
6220 lt_prog_compiler_wl='-Wl,'
6221 if test "$host_cpu" = ia64; then
6222 # AIX 5 now supports IA64 processor
6223 lt_prog_compiler_static='-Bstatic'
6225 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6229 # PIC is the default on this platform
6230 # Common symbols not allowed in MH_DYLIB files
6231 case "$cc_basename" in
6233 lt_prog_compiler_pic='-qnocommon'
6234 lt_prog_compiler_wl='-Wl,'
6239 mingw* | pw32* | os2*)
6240 # This hack is so that the source file can tell whether it is being
6241 # built for inclusion in a dll (and should export symbols for example).
6242 lt_prog_compiler_pic='-DDLL_EXPORT'
6245 hpux9* | hpux10* | hpux11*)
6246 lt_prog_compiler_wl='-Wl,'
6247 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6254 lt_prog_compiler_pic='+Z'
6257 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6258 lt_prog_compiler_static='${wl}-a ${wl}archive'
6261 irix5* | irix6* | nonstopux*)
6262 lt_prog_compiler_wl='-Wl,'
6263 # PIC (with -KPIC) is the default.
6264 lt_prog_compiler_static='-non_shared'
6268 lt_prog_compiler_pic='-KPIC'
6269 lt_prog_compiler_static='-Bstatic'
6275 lt_prog_compiler_wl='-Wl,'
6276 lt_prog_compiler_pic='-KPIC'
6277 lt_prog_compiler_static='-static'
6280 lt_prog_compiler_wl='-Wl,'
6281 # All Alpha code is PIC.
6282 lt_prog_compiler_static='-non_shared'
6287 osf3* | osf4* | osf5*)
6288 lt_prog_compiler_wl='-Wl,'
6289 # All OSF/1 code is PIC.
6290 lt_prog_compiler_static='-non_shared'
6294 lt_prog_compiler_pic='-Kpic'
6295 lt_prog_compiler_static='-dn'
6299 lt_prog_compiler_wl='-Wl,'
6300 lt_prog_compiler_pic='-KPIC'
6301 lt_prog_compiler_static='-Bstatic'
6305 lt_prog_compiler_wl='-Qoption ld '
6306 lt_prog_compiler_pic='-PIC'
6307 lt_prog_compiler_static='-Bstatic'
6310 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6311 lt_prog_compiler_wl='-Wl,'
6312 lt_prog_compiler_pic='-KPIC'
6313 lt_prog_compiler_static='-Bstatic'
6317 if test -d /usr/nec ;then
6318 lt_prog_compiler_pic='-Kconform_pic'
6319 lt_prog_compiler_static='-Bstatic'
6324 lt_prog_compiler_pic='-pic'
6325 lt_prog_compiler_static='-Bstatic'
6329 lt_prog_compiler_can_build_shared=no
6334 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6335 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6338 # Check to make sure the PIC flag actually works.
6340 if test -n "$lt_prog_compiler_pic"; then
6342 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6343 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6344 if test "${lt_prog_compiler_pic_works+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 lt_prog_compiler_pic_works=no
6348 ac_outfile=conftest.$ac_objext
6349 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6350 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6351 # Insert the option either (1) after the last *FLAGS variable, or
6352 # (2) before a word containing "conftest.", or (3) at the end.
6353 # Note that $ac_compile itself does not contain backslashes and begins
6354 # with a dollar sign (not a hyphen), so the echo should work correctly.
6355 # The option is referenced via a variable to avoid confusing sed.
6356 lt_compile=`echo "$ac_compile" | $SED \
6357 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6359 -e 's:$: $lt_compiler_flag:'`
6360 (eval echo "\"\$as_me:6360: $lt_compile\"" >&5)
6361 (eval "$lt_compile" 2>conftest.err)
6363 cat conftest.err >&5
6364 echo "$as_me:6364: \$? = $ac_status" >&5
6365 if (exit $ac_status) && test -s "$ac_outfile"; then
6366 # The compiler can only warn and ignore the option if not recognized
6367 # So say no if there are warnings
6368 if test ! -s conftest.err; then
6369 lt_prog_compiler_pic_works=yes
6375 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6376 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6378 if test x"$lt_prog_compiler_pic_works" = xyes; then
6379 case $lt_prog_compiler_pic in
6381 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6384 lt_prog_compiler_pic=
6385 lt_prog_compiler_can_build_shared=no
6390 # For platforms which do not support PIC, -DPIC is meaningless:
6392 lt_prog_compiler_pic=
6395 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6399 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6400 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6401 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 lt_cv_prog_compiler_c_o=no
6405 $rm -r conftest 2>/dev/null
6409 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6411 lt_compiler_flag="-o out/conftest2.$ac_objext"
6412 # Insert the option either (1) after the last *FLAGS variable, or
6413 # (2) before a word containing "conftest.", or (3) at the end.
6414 # Note that $ac_compile itself does not contain backslashes and begins
6415 # with a dollar sign (not a hyphen), so the echo should work correctly.
6416 lt_compile=`echo "$ac_compile" | $SED \
6417 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6419 -e 's:$: $lt_compiler_flag:'`
6420 (eval echo "\"\$as_me:6420: $lt_compile\"" >&5)
6421 (eval "$lt_compile" 2>out/conftest.err)
6423 cat out/conftest.err >&5
6424 echo "$as_me:6424: \$? = $ac_status" >&5
6425 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6427 # The compiler can only warn and ignore the option if not recognized
6428 # So say no if there are warnings
6429 if test ! -s out/conftest.err; then
6430 lt_cv_prog_compiler_c_o=yes
6435 # SGI C++ compiler will create directory out/ii_files/ for
6436 # template instantiation
6437 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6438 $rm out/* && rmdir out
6444 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6445 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6448 hard_links="nottested"
6449 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6450 # do not overwrite the value of need_locks provided by the user
6451 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6452 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6457 ln conftest.a conftest.b 2>&5 || hard_links=no
6458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6459 echo "$as_me:$LINENO: result: $hard_links" >&5
6460 echo "${ECHO_T}$hard_links" >&6
6461 if test "$hard_links" = no; then
6462 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6463 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6470 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6471 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6474 allow_undefined_flag=
6475 enable_shared_with_static_runtimes=no
6477 archive_expsym_cmds=
6478 old_archive_From_new_cmds=
6479 old_archive_from_expsyms_cmds=
6480 export_dynamic_flag_spec=
6481 whole_archive_flag_spec=
6482 thread_safe_flag_spec=
6483 hardcode_libdir_flag_spec=
6484 hardcode_libdir_flag_spec_ld=
6485 hardcode_libdir_separator=
6488 hardcode_shlibpath_var=unsupported
6489 link_all_deplibs=unknown
6490 hardcode_automatic=no
6493 always_export_symbols=no
6494 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6495 # include_expsyms should be a list of space-separated symbols to be *always*
6496 # included in the symbol list
6498 # exclude_expsyms can be an extended regexp of symbols to exclude
6499 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6500 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6501 # as well as any symbol that contains `d'.
6502 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6503 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6504 # platforms (ab)use it in PIC code, but their linkers get confused if
6505 # the symbol is explicitly referenced. Since portable code cannot
6506 # rely on this symbol name, it's probably fine to never include it in
6507 # preloaded symbol tables.
6508 extract_expsyms_cmds=
6511 cygwin* | mingw* | pw32*)
6512 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6513 # When not using gcc, we currently assume that we are using
6514 # Microsoft Visual C++.
6515 if test "$GCC" != yes; then
6525 if test "$with_gnu_ld" = yes; then
6526 # If archive_cmds runs LD, not CC, wlarc should be empty
6529 # See if GNU ld supports shared libraries.
6531 aix3* | aix4* | aix5*)
6532 # On AIX/PPC, the GNU linker is very broken
6533 if test "$host_cpu" != ia64; then
6537 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6538 *** to be unable to reliably create shared libraries on AIX.
6539 *** Therefore, libtool is disabling shared libraries support. If you
6540 *** really care for shared libraries, you may want to modify your PATH
6541 *** so that a non-GNU linker is found, and then restart.
6548 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)'
6549 hardcode_libdir_flag_spec='-L$libdir'
6550 hardcode_minus_L=yes
6552 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6553 # that the semantics of dynamic libraries on AmigaOS, at least up
6554 # to version 4, is to share data among multiple programs linked
6555 # with the same dynamic library. Since this doesn't match the
6556 # behavior of shared libraries on other platforms, we can't use
6562 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6563 allow_undefined_flag=unsupported
6564 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6565 # support --undefined. This deserves some investigation. FIXME
6566 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6572 cygwin* | mingw* | pw32*)
6573 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6574 # as there is no search path for DLLs.
6575 hardcode_libdir_flag_spec='-L$libdir'
6576 allow_undefined_flag=unsupported
6577 always_export_symbols=no
6578 enable_shared_with_static_runtimes=yes
6579 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6581 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6583 # If the export-symbols file already is a .def file (1st line
6584 # is EXPORTS), use it as is; otherwise, prepend...
6585 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6586 cp $export_symbols $output_objdir/$soname.def;
6588 echo EXPORTS > $output_objdir/$soname.def;
6589 cat $export_symbols >> $output_objdir/$soname.def;
6590 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6597 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6598 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6602 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6607 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6611 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6612 *** create shared libraries on Solaris systems. Therefore, libtool
6613 *** is disabling shared libraries support. We urge you to upgrade GNU
6614 *** binutils to release 2.9.1 or newer. Another option is to modify
6615 *** your PATH or compiler configuration so that the native linker is
6616 *** used, and then restart.
6619 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6620 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6621 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6628 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6631 hardcode_shlibpath_var=no
6635 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6636 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6637 archive_cmds="$tmp_archive_cmds"
6638 supports_anon_versioning=no
6639 case `$LD -v 2>/dev/null` in
6640 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6641 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6642 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6643 *\ 2.11.*) ;; # other 2.11 versions
6644 *) supports_anon_versioning=yes ;;
6646 if test $supports_anon_versioning = yes; then
6647 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;
6648 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6650 archive_expsym_cmds="$tmp_archive_cmds"
6658 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6667 if test "$ld_shlibs" = yes; then
6668 runpath_var=LD_RUN_PATH
6669 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6670 export_dynamic_flag_spec='${wl}--export-dynamic'
6671 # ancient GNU ld didn't support --whole-archive et. al.
6672 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6673 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6675 whole_archive_flag_spec=
6679 # PORTME fill in a description of your system's linker (not GNU ld)
6682 allow_undefined_flag=unsupported
6683 always_export_symbols=yes
6684 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'
6685 # Note: this linker hardcodes the directories in LIBPATH if there
6686 # are no directories specified by -L.
6687 hardcode_minus_L=yes
6688 if test "$GCC" = yes && test -z "$link_static_flag"; then
6689 # Neither direct hardcoding nor static linking is supported with a
6691 hardcode_direct=unsupported
6696 if test "$host_cpu" = ia64; then
6697 # On IA64, the linker does run time linking by default, so we don't
6698 # have to do anything special.
6699 aix_use_runtimelinking=no
6700 exp_sym_flag='-Bexport'
6703 # If we're using GNU nm, then we don't want the "-C" option.
6704 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6705 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6706 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'
6708 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'
6710 aix_use_runtimelinking=no
6712 # Test if we are trying to use run time linking or normal
6713 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6714 # need to do runtime linking.
6715 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6716 for ld_flag in $LDFLAGS; do
6717 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6718 aix_use_runtimelinking=yes
6724 exp_sym_flag='-bexport'
6725 no_entry_flag='-bnoentry'
6728 # When large executables or shared objects are built, AIX ld can
6729 # have problems creating the table of contents. If linking a library
6730 # or program results in "error TOC overflow" add -mminimal-toc to
6731 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6732 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6736 hardcode_libdir_separator=':'
6737 link_all_deplibs=yes
6739 if test "$GCC" = yes; then
6740 case $host_os in aix4.012|aix4.012.*)
6741 # We only want to do this on AIX 4.2 and lower, the check
6742 # below for broken collect2 doesn't work under 4.3+
6743 collect2name=`${CC} -print-prog-name=collect2`
6744 if test -f "$collect2name" && \
6745 strings "$collect2name" | grep resolve_lib_name >/dev/null
6747 # We have reworked collect2
6750 # We have old collect2
6751 hardcode_direct=unsupported
6752 # It fails to find uninstalled libraries when the uninstalled
6753 # path is not listed in the libpath. Setting hardcode_minus_L
6754 # to unsupported forces relinking
6755 hardcode_minus_L=yes
6756 hardcode_libdir_flag_spec='-L$libdir'
6757 hardcode_libdir_separator=
6760 shared_flag='-shared'
6763 if test "$host_cpu" = ia64; then
6764 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6765 # chokes on -Wl,-G. The following line is correct:
6768 if test "$aix_use_runtimelinking" = yes; then
6769 shared_flag='${wl}-G'
6771 shared_flag='${wl}-bM:SRE'
6776 # It seems that -bexpall does not export symbols beginning with
6777 # underscore (_), so it is better to generate a list of symbols to export.
6778 always_export_symbols=yes
6779 if test "$aix_use_runtimelinking" = yes; then
6780 # Warning - without using the other runtime loading flags (-brtl),
6781 # -berok will link without error, but may produce a broken library.
6782 allow_undefined_flag='-berok'
6783 # Determine the default libpath from the value encoded in an empty executable.
6784 cat >conftest.$ac_ext <<_ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6799 rm -f conftest.$ac_objext conftest$ac_exeext
6800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6801 (eval $ac_link) 2>conftest.er1
6803 grep -v '^ *+' conftest.er1 >conftest.err
6805 cat conftest.err >&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } &&
6808 { ac_try='test -z "$ac_c_werror_flag"
6809 || test ! -s conftest.err'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; } &&
6815 { ac_try='test -s conftest$ac_exeext'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; }; then
6822 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6824 # Check for a 64-bit object if we didn't find anything.
6825 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; }
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6832 rm -f conftest.err conftest.$ac_objext \
6833 conftest$ac_exeext conftest.$ac_ext
6834 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6836 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6837 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"
6839 if test "$host_cpu" = ia64; then
6840 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6841 allow_undefined_flag="-z nodefs"
6842 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"
6844 # Determine the default libpath from the value encoded in an empty executable.
6845 cat >conftest.$ac_ext <<_ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6860 rm -f conftest.$ac_objext conftest$ac_exeext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6862 (eval $ac_link) 2>conftest.er1
6864 grep -v '^ *+' conftest.er1 >conftest.err
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try='test -z "$ac_c_werror_flag"
6870 || test ! -s conftest.err'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; } &&
6876 { ac_try='test -s conftest$ac_exeext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6883 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6885 # Check for a 64-bit object if we didn't find anything.
6886 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; }
6889 echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.$ac_ext >&5
6893 rm -f conftest.err conftest.$ac_objext \
6894 conftest$ac_exeext conftest.$ac_ext
6895 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6897 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6898 # Warning - without using the other run time loading flags,
6899 # -berok will link without error, but may produce a broken library.
6900 no_undefined_flag=' ${wl}-bernotok'
6901 allow_undefined_flag=' ${wl}-berok'
6902 # -bexpall does not export symbols beginning with underscore (_)
6903 always_export_symbols=yes
6904 # Exported symbols can be pulled into shared objects from archives
6905 whole_archive_flag_spec=' '
6906 archive_cmds_need_lc=yes
6907 # This is similar to how AIX traditionally builds it's shared libraries.
6908 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'
6914 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)'
6915 hardcode_libdir_flag_spec='-L$libdir'
6916 hardcode_minus_L=yes
6917 # see comment about different semantics on the GNU ld section
6922 export_dynamic_flag_spec=-rdynamic
6925 cygwin* | mingw* | pw32*)
6926 # When not using gcc, we currently assume that we are using
6927 # Microsoft Visual C++.
6928 # hardcode_libdir_flag_spec is actually meaningless, as there is
6929 # no search path for DLLs.
6930 hardcode_libdir_flag_spec=' '
6931 allow_undefined_flag=unsupported
6932 # Tell ltmain to make .lib files, not .a files.
6934 # Tell ltmain to make .dll files, not .so files.
6936 # FIXME: Setting linknames here is a bad hack.
6937 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
6938 # The linker will automatically build a .lib file if we build a DLL.
6939 old_archive_From_new_cmds='true'
6940 # FIXME: Should let the user specify the lib program.
6941 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6942 fix_srcfile_path='`cygpath -w "$srcfile"`'
6943 enable_shared_with_static_runtimes=yes
6946 darwin* | rhapsody*)
6948 rhapsody* | darwin1.[012])
6949 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6952 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6953 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6955 case ${MACOSX_DEPLOYMENT_TARGET} in
6957 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6960 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6966 archive_cmds_need_lc=no
6968 hardcode_automatic=yes
6969 hardcode_shlibpath_var=unsupported
6970 whole_archive_flag_spec=''
6971 link_all_deplibs=yes
6972 if test "$GCC" = yes ; then
6973 output_verbose_link_cmd='echo'
6974 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6975 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6976 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6977 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}'
6978 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}'
6980 case "$cc_basename" in
6982 output_verbose_link_cmd='echo'
6983 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6984 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6985 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6986 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}'
6987 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}'
6997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6998 hardcode_libdir_flag_spec='-L$libdir'
6999 hardcode_shlibpath_var=no
7006 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7007 # support. Future versions do this automatically, but an explicit c++rt0.o
7008 # does not break anything, and helps significantly (at the cost of a little
7011 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7012 hardcode_libdir_flag_spec='-R$libdir'
7014 hardcode_shlibpath_var=no
7017 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7019 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7021 hardcode_minus_L=yes
7022 hardcode_shlibpath_var=no
7025 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7026 freebsd* | kfreebsd*-gnu)
7027 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7028 hardcode_libdir_flag_spec='-R$libdir'
7030 hardcode_shlibpath_var=no
7034 if test "$GCC" = yes; then
7035 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'
7037 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'
7039 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7040 hardcode_libdir_separator=:
7043 # hardcode_minus_L: Not really in the search PATH,
7044 # but as the default location of the library.
7045 hardcode_minus_L=yes
7046 export_dynamic_flag_spec='${wl}-E'
7050 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7053 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7056 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7062 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7065 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7069 if test "$with_gnu_ld" = no; then
7072 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7073 hardcode_libdir_flag_spec_ld='+b $libdir'
7074 hardcode_libdir_separator=:
7076 hardcode_shlibpath_var=no
7079 hardcode_libdir_flag_spec='-L$libdir'
7081 hardcode_shlibpath_var=no
7083 # hardcode_minus_L: Not really in the search PATH,
7084 # but as the default location of the library.
7085 hardcode_minus_L=yes
7088 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7089 hardcode_libdir_separator=:
7091 export_dynamic_flag_spec='${wl}-E'
7093 # hardcode_minus_L: Not really in the search PATH,
7094 # but as the default location of the library.
7095 hardcode_minus_L=yes
7101 irix5* | irix6* | nonstopux*)
7102 if test "$GCC" = yes; then
7103 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'
7105 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'
7106 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7108 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7109 hardcode_libdir_separator=:
7110 link_all_deplibs=yes
7114 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7115 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7117 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7119 hardcode_libdir_flag_spec='-R$libdir'
7121 hardcode_shlibpath_var=no
7125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7127 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7128 hardcode_libdir_separator=:
7129 hardcode_shlibpath_var=no
7134 hardcode_shlibpath_var=no
7135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7136 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7137 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7138 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7139 export_dynamic_flag_spec='${wl}-E'
7142 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7144 hardcode_libdir_flag_spec='-R$libdir'
7147 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7148 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7155 hardcode_libdir_flag_spec='-L$libdir'
7156 hardcode_minus_L=yes
7157 allow_undefined_flag=unsupported
7158 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'
7159 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7163 if test "$GCC" = yes; then
7164 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7165 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'
7167 allow_undefined_flag=' -expect_unresolved \*'
7168 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'
7170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7171 hardcode_libdir_separator=:
7174 osf4* | osf5*) # as osf3* with the addition of -msym flag
7175 if test "$GCC" = yes; then
7176 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7177 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'
7178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7180 allow_undefined_flag=' -expect_unresolved \*'
7181 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'
7182 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'
7183 # Both c and cxx compiler support -rpath directly
7184 hardcode_libdir_flag_spec='-rpath $libdir'
7186 hardcode_libdir_separator=:
7190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7191 hardcode_shlibpath_var=no
7192 export_dynamic_flag_spec='${wl}-Bexport'
7193 runpath_var=LD_RUN_PATH
7194 hardcode_runpath_var=yes
7198 no_undefined_flag=' -z text'
7199 if test "$GCC" = yes; then
7200 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7201 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'
7203 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7204 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'
7206 hardcode_libdir_flag_spec='-R$libdir'
7207 hardcode_shlibpath_var=no
7209 solaris2.[0-5] | solaris2.[0-5].*) ;;
7210 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7211 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7213 link_all_deplibs=yes
7217 if test "x$host_vendor" = xsequent; then
7218 # Use $CC to link under sequent, because it throws in some extra .o
7219 # files that make .init and .fini sections work.
7220 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7222 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7224 hardcode_libdir_flag_spec='-L$libdir'
7226 hardcode_minus_L=yes
7227 hardcode_shlibpath_var=no
7231 case $host_vendor in
7233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7234 hardcode_direct=yes # is this really true???
7237 ## LD is ld it makes a PLAMLIB
7238 ## CC just makes a GrossModule.
7239 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7240 reload_cmds='$CC -r -o $output$reload_objs'
7244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7245 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7248 runpath_var='LD_RUN_PATH'
7249 hardcode_shlibpath_var=no
7253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7254 hardcode_shlibpath_var=no
7255 export_dynamic_flag_spec='-Bexport'
7259 if test -d /usr/nec; then
7260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7261 hardcode_shlibpath_var=no
7262 runpath_var=LD_RUN_PATH
7263 hardcode_runpath_var=yes
7269 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7272 hardcode_shlibpath_var=no
7273 hardcode_runpath_var=yes
7274 runpath_var=LD_RUN_PATH
7277 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7278 no_undefined_flag='${wl}-z ${wl}text'
7279 if test "$GCC" = yes; then
7280 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7282 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7284 runpath_var='LD_RUN_PATH'
7285 hardcode_shlibpath_var=no
7289 no_undefined_flag=' -z text'
7290 # $CC -shared without GNU ld will not create a library from C++
7291 # object files and a static libstdc++, better avoid it by now
7292 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7293 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'
7294 hardcode_libdir_flag_spec=
7295 hardcode_shlibpath_var=no
7296 runpath_var='LD_RUN_PATH'
7300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7301 hardcode_libdir_flag_spec='-L$libdir'
7302 hardcode_shlibpath_var=no
7311 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7312 echo "${ECHO_T}$ld_shlibs" >&6
7313 test "$ld_shlibs" = no && can_build_shared=no
7315 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7316 if test "$GCC" = yes; then
7317 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7321 # Do we need to explicitly link libc?
7323 case "x$archive_cmds_need_lc" in
7325 # Assume -lc should be added
7326 archive_cmds_need_lc=yes
7328 if test "$enable_shared" = yes && test "$GCC" = yes; then
7329 case $archive_cmds in
7331 # FIXME: we may have to deal with multi-command sequences.
7334 # Test whether the compiler implicitly links with -lc since on some
7335 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7336 # to ld, don't add -lc before -lgcc.
7337 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7338 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7340 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7343 (eval $ac_compile) 2>&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } 2>conftest.err; then
7349 libobjs=conftest.$ac_objext
7351 wl=$lt_prog_compiler_wl
7357 lt_save_allow_undefined_flag=$allow_undefined_flag
7358 allow_undefined_flag=
7359 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7360 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); }
7365 archive_cmds_need_lc=no
7367 archive_cmds_need_lc=yes
7369 allow_undefined_flag=$lt_save_allow_undefined_flag
7371 cat conftest.err 1>&5
7374 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7375 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7382 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7383 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7385 libname_spec='lib$name'
7393 shlibpath_overrides_runpath=unknown
7395 dynamic_linker="$host_os ld.so"
7396 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7397 if test "$GCC" = yes; then
7398 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7399 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7400 # if the path contains ";" then we assume it to be the separator
7401 # otherwise default to the standard path separator (i.e. ":") - it is
7402 # assumed that no part of a normal pathname contains ";" but that should
7403 # okay in the real world where ";" in dirpaths is itself problematic.
7404 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7406 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7409 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7411 need_lib_prefix=unknown
7412 hardcode_into_libs=no
7414 # when you set need_version to no, make sure it does not cause -set_version
7415 # flags to be left without arguments
7416 need_version=unknown
7421 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7422 shlibpath_var=LIBPATH
7424 # AIX 3 has no versioning support, so we append a major version to the name.
7425 soname_spec='${libname}${release}${shared_ext}$major'
7432 hardcode_into_libs=yes
7433 if test "$host_cpu" = ia64; then
7434 # AIX 5 supports IA64
7435 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7436 shlibpath_var=LD_LIBRARY_PATH
7438 # With GCC up to 2.95.x, collect2 would create an import file
7439 # for dependence libraries. The import file would start with
7440 # the line `#! .'. This would cause the generated library to
7441 # depend on `.', always an invalid library. This was fixed in
7442 # development snapshots of GCC prior to 3.0.
7444 aix4 | aix4.[01] | aix4.[01].*)
7445 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7447 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7454 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7455 # soname into executable. Probably we can add versioning support to
7456 # collect2, so additional links can be useful in future.
7457 if test "$aix_use_runtimelinking" = yes; then
7458 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7459 # instead of lib<name>.a to let people know that these are not
7460 # typical AIX shared libraries.
7461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7463 # We preserve .a as extension for shared libraries through AIX4.2
7464 # and later when we are not doing run time linking.
7465 library_names_spec='${libname}${release}.a $libname.a'
7466 soname_spec='${libname}${release}${shared_ext}$major'
7468 shlibpath_var=LIBPATH
7473 library_names_spec='$libname.ixlibrary $libname.a'
7474 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7475 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'
7479 library_names_spec='${libname}${shared_ext}'
7480 dynamic_linker="$host_os ld.so"
7481 shlibpath_var=LIBRARY_PATH
7487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7488 soname_spec='${libname}${release}${shared_ext}$major'
7489 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7490 shlibpath_var=LD_LIBRARY_PATH
7491 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7492 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7493 # the default ld.so.conf also contains /usr/contrib/lib and
7494 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7495 # libtool to hard-code these into programs
7498 cygwin* | mingw* | pw32*)
7499 version_type=windows
7504 case $GCC,$host_os in
7505 yes,cygwin* | yes,mingw* | yes,pw32*)
7506 library_names_spec='$libname.dll.a'
7507 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7508 postinstall_cmds='base_file=`basename \${file}`;
7509 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
7510 dldir=$destdir/`dirname \$dlpath`;
7511 test -d \$dldir || mkdir -p \$dldir;
7512 $install_prog $dir/$dlname \$dldir/$dlname'
7513 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
7514 dlpath=$dir/\$dldll;
7516 shlibpath_overrides_runpath=yes
7520 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7521 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7522 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7525 # MinGW DLLs use traditional 'lib' prefix
7526 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7527 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7528 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7529 # It is most probably a Windows format PATH printed by
7530 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7531 # path with ; separators, and with drive letters. We can handle the
7532 # drive letters (cygwin fileutils understands them), so leave them,
7533 # especially as we might pass files found there to a mingw objdump,
7534 # which wouldn't understand a cygwinified path. Ahh.
7535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7537 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7541 # pw32 DLLs use 'pw' prefix rather than 'lib'
7542 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7548 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7551 dynamic_linker='Win32 ld.exe'
7552 # FIXME: first we should search . and the directory the executable is in
7556 darwin* | rhapsody*)
7557 dynamic_linker="$host_os dyld"
7561 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7562 soname_spec='${libname}${release}${major}$shared_ext'
7563 shlibpath_overrides_runpath=yes
7564 shlibpath_var=DYLD_LIBRARY_PATH
7565 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7566 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7567 if test "$GCC" = yes; then
7568 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"`
7570 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7572 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7580 soname_spec='${libname}${release}${shared_ext}$major'
7581 shlibpath_var=LD_LIBRARY_PATH
7592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7593 soname_spec='${libname}${release}${shared_ext}$major'
7594 shlibpath_var=LD_LIBRARY_PATH
7595 shlibpath_overrides_runpath=no
7596 hardcode_into_libs=yes
7597 dynamic_linker='GNU ld.so'
7601 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7602 version_type=freebsd-$objformat
7603 case $version_type in
7605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7610 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7614 shlibpath_var=LD_LIBRARY_PATH
7617 shlibpath_overrides_runpath=yes
7619 freebsd3.01* | freebsdelf3.01*)
7620 shlibpath_overrides_runpath=yes
7621 hardcode_into_libs=yes
7624 shlibpath_overrides_runpath=no
7625 hardcode_into_libs=yes
7634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7635 soname_spec='${libname}${release}${shared_ext}$major'
7636 shlibpath_var=LD_LIBRARY_PATH
7637 hardcode_into_libs=yes
7640 hpux9* | hpux10* | hpux11*)
7641 # Give a soname corresponding to the major version so that dld.sl refuses to
7642 # link against other versions.
7649 hardcode_into_libs=yes
7650 dynamic_linker="$host_os dld.so"
7651 shlibpath_var=LD_LIBRARY_PATH
7652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7654 soname_spec='${libname}${release}${shared_ext}$major'
7655 if test "X$HPUX_IA64_MODE" = X32; then
7656 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7658 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7660 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7664 hardcode_into_libs=yes
7665 dynamic_linker="$host_os dld.sl"
7666 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7667 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7669 soname_spec='${libname}${release}${shared_ext}$major'
7670 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7675 dynamic_linker="$host_os dld.sl"
7676 shlibpath_var=SHLIB_PATH
7677 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7679 soname_spec='${libname}${release}${shared_ext}$major'
7682 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7683 postinstall_cmds='chmod 555 $lib'
7686 irix5* | irix6* | nonstopux*)
7688 nonstopux*) version_type=nonstopux ;;
7690 if test "$lt_cv_prog_gnu_ld" = yes; then
7698 soname_spec='${libname}${release}${shared_ext}$major'
7699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7701 irix5* | nonstopux*)
7705 case $LD in # libtool.m4 will add one of these switches to LD
7706 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7707 libsuff= shlibsuff= libmagic=32-bit;;
7708 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7709 libsuff=32 shlibsuff=N32 libmagic=N32;;
7710 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7711 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7712 *) libsuff= shlibsuff= libmagic=never-match;;
7716 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7717 shlibpath_overrides_runpath=no
7718 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7719 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7720 hardcode_into_libs=yes
7723 # No shared lib support for Linux oldld, aout, or coff.
7724 linux*oldld* | linux*aout* | linux*coff*)
7728 # This must be Linux ELF.
7733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7734 soname_spec='${libname}${release}${shared_ext}$major'
7735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7736 shlibpath_var=LD_LIBRARY_PATH
7737 shlibpath_overrides_runpath=no
7738 # This implies no fast_install, which is unacceptable.
7739 # Some rework will be needed to allow for fast_install
7740 # before this can be enabled.
7741 hardcode_into_libs=yes
7743 # Append ld.so.conf contents to the search path
7744 if test -f /etc/ld.so.conf; then
7745 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7746 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7749 # We used to test for /lib/ld.so.1 and disable shared libraries on
7750 # powerpc, because MkLinux only supported shared libraries with the
7751 # GNU dynamic linker. Since this was broken with cross compilers,
7752 # most powerpc-linux boxes support dynamic linking these days and
7753 # people can always --disable-shared, the test was removed, and we
7754 # assume the GNU/Linux dynamic linker is in use.
7755 dynamic_linker='GNU/Linux ld.so'
7762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7763 soname_spec='${libname}${release}${shared_ext}$major'
7764 shlibpath_var=LD_LIBRARY_PATH
7765 shlibpath_overrides_runpath=no
7766 hardcode_into_libs=yes
7767 dynamic_linker='GNU ld.so'
7774 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7777 dynamic_linker='NetBSD (a.out) ld.so'
7779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7780 soname_spec='${libname}${release}${shared_ext}$major'
7781 dynamic_linker='NetBSD ld.elf_so'
7783 shlibpath_var=LD_LIBRARY_PATH
7784 shlibpath_overrides_runpath=yes
7785 hardcode_into_libs=yes
7790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7791 shlibpath_var=LD_LIBRARY_PATH
7792 shlibpath_overrides_runpath=yes
7799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7800 soname_spec='${libname}${release}${shared_ext}$major'
7801 shlibpath_var=LD_LIBRARY_PATH
7802 shlibpath_overrides_runpath=yes
7809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7811 shlibpath_var=LD_LIBRARY_PATH
7812 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7814 openbsd2.[89] | openbsd2.[89].*)
7815 shlibpath_overrides_runpath=no
7818 shlibpath_overrides_runpath=yes
7822 shlibpath_overrides_runpath=yes
7827 libname_spec='$name'
7830 library_names_spec='$libname${shared_ext} $libname.a'
7831 dynamic_linker='OS/2 ld.exe'
7832 shlibpath_var=LIBPATH
7835 osf3* | osf4* | osf5*)
7839 soname_spec='${libname}${release}${shared_ext}$major'
7840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7841 shlibpath_var=LD_LIBRARY_PATH
7842 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7843 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7848 soname_spec='${libname}${release}${shared_ext}$major'
7849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7850 shlibpath_var=LD_LIBRARY_PATH
7857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7858 soname_spec='${libname}${release}${shared_ext}$major'
7859 shlibpath_var=LD_LIBRARY_PATH
7860 shlibpath_overrides_runpath=yes
7861 hardcode_into_libs=yes
7862 # ldd complains unless libraries are executable
7863 postinstall_cmds='chmod +x $lib'
7868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7869 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7870 shlibpath_var=LD_LIBRARY_PATH
7871 shlibpath_overrides_runpath=yes
7872 if test "$with_gnu_ld" = yes; then
7878 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7881 soname_spec='${libname}${release}${shared_ext}$major'
7882 shlibpath_var=LD_LIBRARY_PATH
7883 case $host_vendor in
7885 shlibpath_overrides_runpath=no
7887 export_dynamic_flag_spec='${wl}-Blargedynsym'
7888 runpath_var=LD_RUN_PATH
7896 shlibpath_overrides_runpath=no
7897 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7903 if test -d /usr/nec ;then
7905 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7906 soname_spec='$libname${shared_ext}.$major'
7907 shlibpath_var=LD_LIBRARY_PATH
7913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7914 soname_spec='${libname}${release}${shared_ext}$major'
7915 shlibpath_var=LD_LIBRARY_PATH
7922 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7923 echo "${ECHO_T}$dynamic_linker" >&6
7924 test "$dynamic_linker" = no && can_build_shared=no
7926 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7927 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7929 if test -n "$hardcode_libdir_flag_spec" || \
7930 test -n "$runpath_var" || \
7931 test "X$hardcode_automatic" = "Xyes" ; then
7933 # We can hardcode non-existant directories.
7934 if test "$hardcode_direct" != no &&
7935 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7936 # have to relink, otherwise we might link with an installed library
7937 # when we should be linking with a yet-to-be-installed one
7938 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7939 test "$hardcode_minus_L" != no; then
7940 # Linking always hardcodes the temporary library directory.
7941 hardcode_action=relink
7943 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7944 hardcode_action=immediate
7947 # We cannot hardcode anything, or else we can only hardcode existing
7949 hardcode_action=unsupported
7951 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7952 echo "${ECHO_T}$hardcode_action" >&6
7954 if test "$hardcode_action" = relink; then
7955 # Fast installation is not supported
7956 enable_fast_install=no
7957 elif test "$shlibpath_overrides_runpath" = yes ||
7958 test "$enable_shared" = no; then
7959 # Fast installation is not necessary
7960 enable_fast_install=needless
7965 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7966 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7967 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7968 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7969 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7970 echo "$as_me:$LINENO: result: yes" >&5
7971 echo "${ECHO_T}yes" >&6
7973 # FIXME - insert some real tests, host_os isn't really good enough
7976 if test -n "$STRIP" ; then
7977 striplib="$STRIP -x"
7978 echo "$as_me:$LINENO: result: yes" >&5
7979 echo "${ECHO_T}yes" >&6
7981 echo "$as_me:$LINENO: result: no" >&5
7982 echo "${ECHO_T}no" >&6
7986 echo "$as_me:$LINENO: result: no" >&5
7987 echo "${ECHO_T}no" >&6
7992 if test "x$enable_dlopen" != xyes; then
7993 enable_dlopen=unknown
7994 enable_dlopen_self=unknown
7995 enable_dlopen_self_static=unknown
8002 lt_cv_dlopen="load_add_on"
8004 lt_cv_dlopen_self=yes
8008 lt_cv_dlopen="LoadLibrary"
8013 lt_cv_dlopen="dlopen"
8018 # if libdl is installed we need to link against it
8019 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8020 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8021 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8022 echo $ECHO_N "(cached) $ECHO_C" >&6
8024 ac_check_lib_save_LIBS=$LIBS
8026 cat >conftest.$ac_ext <<_ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8033 /* Override any gcc2 internal prototype to avoid an error. */
8037 /* We use char because int might match the return type of a gcc2
8038 builtin and then its argument prototype would still apply. */
8048 rm -f conftest.$ac_objext conftest$ac_exeext
8049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8050 (eval $ac_link) 2>conftest.er1
8052 grep -v '^ *+' conftest.er1 >conftest.err
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } &&
8057 { ac_try='test -z "$ac_c_werror_flag"
8058 || test ! -s conftest.err'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; } &&
8064 { ac_try='test -s conftest$ac_exeext'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8070 ac_cv_lib_dl_dlopen=yes
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8075 ac_cv_lib_dl_dlopen=no
8077 rm -f conftest.err conftest.$ac_objext \
8078 conftest$ac_exeext conftest.$ac_ext
8079 LIBS=$ac_check_lib_save_LIBS
8081 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8082 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8083 if test $ac_cv_lib_dl_dlopen = yes; then
8084 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8089 lt_cv_dlopen_self=yes
8096 echo "$as_me:$LINENO: checking for shl_load" >&5
8097 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8098 if test "${ac_cv_func_shl_load+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 cat >conftest.$ac_ext <<_ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8107 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8109 #define shl_load innocuous_shl_load
8111 /* System header to define __stub macros and hopefully few prototypes,
8112 which can conflict with char shl_load (); below.
8113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8114 <limits.h> exists even on freestanding compilers. */
8117 # include <limits.h>
8119 # include <assert.h>
8124 /* Override any gcc2 internal prototype to avoid an error. */
8129 /* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8132 /* The GNU C library defines this for functions which it implements
8133 to always fail with ENOSYS. Some functions are actually named
8134 something starting with __ and the normal name is an alias. */
8135 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8138 char (*f) () = shl_load;
8147 return f != shl_load;
8152 rm -f conftest.$ac_objext conftest$ac_exeext
8153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8154 (eval $ac_link) 2>conftest.er1
8156 grep -v '^ *+' conftest.er1 >conftest.err
8158 cat conftest.err >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } &&
8161 { ac_try='test -z "$ac_c_werror_flag"
8162 || test ! -s conftest.err'
8163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; } &&
8168 { ac_try='test -s conftest$ac_exeext'
8169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; }; then
8174 ac_cv_func_shl_load=yes
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8179 ac_cv_func_shl_load=no
8181 rm -f conftest.err conftest.$ac_objext \
8182 conftest$ac_exeext conftest.$ac_ext
8184 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8185 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8186 if test $ac_cv_func_shl_load = yes; then
8187 lt_cv_dlopen="shl_load"
8189 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8190 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8191 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 ac_check_lib_save_LIBS=$LIBS
8196 cat >conftest.$ac_ext <<_ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8203 /* Override any gcc2 internal prototype to avoid an error. */
8207 /* We use char because int might match the return type of a gcc2
8208 builtin and then its argument prototype would still apply. */
8218 rm -f conftest.$ac_objext conftest$ac_exeext
8219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8220 (eval $ac_link) 2>conftest.er1
8222 grep -v '^ *+' conftest.er1 >conftest.err
8224 cat conftest.err >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } &&
8227 { ac_try='test -z "$ac_c_werror_flag"
8228 || test ! -s conftest.err'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; } &&
8234 { ac_try='test -s conftest$ac_exeext'
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8240 ac_cv_lib_dld_shl_load=yes
8242 echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8245 ac_cv_lib_dld_shl_load=no
8247 rm -f conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext conftest.$ac_ext
8249 LIBS=$ac_check_lib_save_LIBS
8251 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8252 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8253 if test $ac_cv_lib_dld_shl_load = yes; then
8254 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8256 echo "$as_me:$LINENO: checking for dlopen" >&5
8257 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8258 if test "${ac_cv_func_dlopen+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8261 cat >conftest.$ac_ext <<_ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h. */
8267 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8269 #define dlopen innocuous_dlopen
8271 /* System header to define __stub macros and hopefully few prototypes,
8272 which can conflict with char dlopen (); below.
8273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8274 <limits.h> exists even on freestanding compilers. */
8277 # include <limits.h>
8279 # include <assert.h>
8284 /* Override any gcc2 internal prototype to avoid an error. */
8289 /* We use char because int might match the return type of a gcc2
8290 builtin and then its argument prototype would still apply. */
8292 /* The GNU C library defines this for functions which it implements
8293 to always fail with ENOSYS. Some functions are actually named
8294 something starting with __ and the normal name is an alias. */
8295 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8298 char (*f) () = dlopen;
8312 rm -f conftest.$ac_objext conftest$ac_exeext
8313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8314 (eval $ac_link) 2>conftest.er1
8316 grep -v '^ *+' conftest.er1 >conftest.err
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } &&
8321 { ac_try='test -z "$ac_c_werror_flag"
8322 || test ! -s conftest.err'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; } &&
8328 { ac_try='test -s conftest$ac_exeext'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8334 ac_cv_func_dlopen=yes
8336 echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8339 ac_cv_func_dlopen=no
8341 rm -f conftest.err conftest.$ac_objext \
8342 conftest$ac_exeext conftest.$ac_ext
8344 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8345 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8346 if test $ac_cv_func_dlopen = yes; then
8347 lt_cv_dlopen="dlopen"
8349 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8350 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8351 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 ac_check_lib_save_LIBS=$LIBS
8356 cat >conftest.$ac_ext <<_ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h. */
8363 /* Override any gcc2 internal prototype to avoid an error. */
8367 /* We use char because int might match the return type of a gcc2
8368 builtin and then its argument prototype would still apply. */
8378 rm -f conftest.$ac_objext conftest$ac_exeext
8379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8380 (eval $ac_link) 2>conftest.er1
8382 grep -v '^ *+' conftest.er1 >conftest.err
8384 cat conftest.err >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } &&
8387 { ac_try='test -z "$ac_c_werror_flag"
8388 || test ! -s conftest.err'
8389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; } &&
8394 { ac_try='test -s conftest$ac_exeext'
8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; }; then
8400 ac_cv_lib_dl_dlopen=yes
8402 echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.$ac_ext >&5
8405 ac_cv_lib_dl_dlopen=no
8407 rm -f conftest.err conftest.$ac_objext \
8408 conftest$ac_exeext conftest.$ac_ext
8409 LIBS=$ac_check_lib_save_LIBS
8411 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8412 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8413 if test $ac_cv_lib_dl_dlopen = yes; then
8414 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8416 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8417 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8418 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 ac_check_lib_save_LIBS=$LIBS
8423 cat >conftest.$ac_ext <<_ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8430 /* Override any gcc2 internal prototype to avoid an error. */
8434 /* We use char because int might match the return type of a gcc2
8435 builtin and then its argument prototype would still apply. */
8445 rm -f conftest.$ac_objext conftest$ac_exeext
8446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8447 (eval $ac_link) 2>conftest.er1
8449 grep -v '^ *+' conftest.er1 >conftest.err
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
8454 { ac_try='test -z "$ac_c_werror_flag"
8455 || test ! -s conftest.err'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; } &&
8461 { ac_try='test -s conftest$ac_exeext'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 ac_cv_lib_svld_dlopen=yes
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8472 ac_cv_lib_svld_dlopen=no
8474 rm -f conftest.err conftest.$ac_objext \
8475 conftest$ac_exeext conftest.$ac_ext
8476 LIBS=$ac_check_lib_save_LIBS
8478 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8479 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8480 if test $ac_cv_lib_svld_dlopen = yes; then
8481 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8483 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8484 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8485 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 ac_check_lib_save_LIBS=$LIBS
8490 cat >conftest.$ac_ext <<_ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8497 /* Override any gcc2 internal prototype to avoid an error. */
8501 /* We use char because int might match the return type of a gcc2
8502 builtin and then its argument prototype would still apply. */
8512 rm -f conftest.$ac_objext conftest$ac_exeext
8513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8514 (eval $ac_link) 2>conftest.er1
8516 grep -v '^ *+' conftest.er1 >conftest.err
8518 cat conftest.err >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } &&
8521 { ac_try='test -z "$ac_c_werror_flag"
8522 || test ! -s conftest.err'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; } &&
8528 { ac_try='test -s conftest$ac_exeext'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8534 ac_cv_lib_dld_dld_link=yes
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8539 ac_cv_lib_dld_dld_link=no
8541 rm -f conftest.err conftest.$ac_objext \
8542 conftest$ac_exeext conftest.$ac_ext
8543 LIBS=$ac_check_lib_save_LIBS
8545 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8546 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8547 if test $ac_cv_lib_dld_dld_link = yes; then
8548 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8569 if test "x$lt_cv_dlopen" != xno; then
8575 case $lt_cv_dlopen in
8577 save_CPPFLAGS="$CPPFLAGS"
8578 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8580 save_LDFLAGS="$LDFLAGS"
8581 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8584 LIBS="$lt_cv_dlopen_libs $LIBS"
8586 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8587 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8588 if test "${lt_cv_dlopen_self+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 if test "$cross_compiling" = yes; then :
8592 lt_cv_dlopen_self=cross
8594 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8595 lt_status=$lt_dlunknown
8596 cat > conftest.$ac_ext <<EOF
8597 #line 8597 "configure"
8598 #include "confdefs.h"
8607 # define LT_DLGLOBAL RTLD_GLOBAL
8610 # define LT_DLGLOBAL DL_GLOBAL
8612 # define LT_DLGLOBAL 0
8616 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8617 find out it does not work in some platform. */
8618 #ifndef LT_DLLAZY_OR_NOW
8620 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8623 # define LT_DLLAZY_OR_NOW DL_LAZY
8626 # define LT_DLLAZY_OR_NOW RTLD_NOW
8629 # define LT_DLLAZY_OR_NOW DL_NOW
8631 # define LT_DLLAZY_OR_NOW 0
8639 extern "C" void exit (int);
8642 void fnord() { int i=42;}
8645 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8646 int status = $lt_dlunknown;
8650 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8651 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8652 /* dlclose (self); */
8658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8659 (eval $ac_link) 2>&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8663 (./conftest; exit; ) 2>/dev/null
8666 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8667 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8668 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8671 # compilation failed
8672 lt_cv_dlopen_self=no
8679 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8680 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8682 if test "x$lt_cv_dlopen_self" = xyes; then
8683 LDFLAGS="$LDFLAGS $link_static_flag"
8684 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8685 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8686 if test "${lt_cv_dlopen_self_static+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 if test "$cross_compiling" = yes; then :
8690 lt_cv_dlopen_self_static=cross
8692 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8693 lt_status=$lt_dlunknown
8694 cat > conftest.$ac_ext <<EOF
8695 #line 8695 "configure"
8696 #include "confdefs.h"
8705 # define LT_DLGLOBAL RTLD_GLOBAL
8708 # define LT_DLGLOBAL DL_GLOBAL
8710 # define LT_DLGLOBAL 0
8714 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8715 find out it does not work in some platform. */
8716 #ifndef LT_DLLAZY_OR_NOW
8718 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8721 # define LT_DLLAZY_OR_NOW DL_LAZY
8724 # define LT_DLLAZY_OR_NOW RTLD_NOW
8727 # define LT_DLLAZY_OR_NOW DL_NOW
8729 # define LT_DLLAZY_OR_NOW 0
8737 extern "C" void exit (int);
8740 void fnord() { int i=42;}
8743 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8744 int status = $lt_dlunknown;
8748 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8749 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8750 /* dlclose (self); */
8756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8757 (eval $ac_link) 2>&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8761 (./conftest; exit; ) 2>/dev/null
8764 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8765 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8766 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8769 # compilation failed
8770 lt_cv_dlopen_self_static=no
8777 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8778 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8781 CPPFLAGS="$save_CPPFLAGS"
8782 LDFLAGS="$save_LDFLAGS"
8787 case $lt_cv_dlopen_self in
8788 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8789 *) enable_dlopen_self=unknown ;;
8792 case $lt_cv_dlopen_self_static in
8793 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8794 *) enable_dlopen_self_static=unknown ;;
8799 # Report which librarie types wil actually be built
8800 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8801 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8802 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8803 echo "${ECHO_T}$can_build_shared" >&6
8805 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8806 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8807 test "$can_build_shared" = "no" && enable_shared=no
8809 # On AIX, shared libraries and static libraries use the same namespace, and
8810 # are all built from PIC.
8813 test "$enable_shared" = yes && enable_static=no
8814 if test -n "$RANLIB"; then
8815 archive_cmds="$archive_cmds;\$RANLIB \$lib"
8816 postinstall_cmds='$RANLIB $lib'
8821 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8822 test "$enable_shared" = yes && enable_static=no
8826 echo "$as_me:$LINENO: result: $enable_shared" >&5
8827 echo "${ECHO_T}$enable_shared" >&6
8829 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8830 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8831 # Make sure either enable_shared or enable_static is yes.
8832 test "$enable_shared" = yes || enable_static=yes
8833 echo "$as_me:$LINENO: result: $enable_static" >&5
8834 echo "${ECHO_T}$enable_static" >&6
8836 # The else clause should only fire when bootstrapping the
8837 # libtool distribution, otherwise you forgot to ship ltmain.sh
8838 # with your package, and you will get complaints that there are
8839 # no rules to generate ltmain.sh.
8840 if test -f "$ltmain"; then
8841 # See if we are running on zsh, and set the options which allow our commands through
8842 # without removal of \ escapes.
8843 if test -n "${ZSH_VERSION+set}" ; then
8844 setopt NO_GLOB_SUBST
8846 # Now quote all the things that may contain metacharacters while being
8847 # careful not to overquote the AC_SUBSTed values. We take copies of the
8848 # variables and quote the copies for generation of the libtool script.
8849 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8851 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8852 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8853 deplibs_check_method reload_flag reload_cmds need_locks \
8854 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8855 lt_cv_sys_global_symbol_to_c_name_address \
8856 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8857 old_postinstall_cmds old_postuninstall_cmds \
8861 lt_prog_compiler_wl \
8862 lt_prog_compiler_pic \
8863 lt_prog_compiler_static \
8864 lt_prog_compiler_no_builtin_flag \
8865 export_dynamic_flag_spec \
8866 thread_safe_flag_spec \
8867 whole_archive_flag_spec \
8868 enable_shared_with_static_runtimes \
8870 old_archive_from_new_cmds \
8875 compiler_lib_search_path \
8877 archive_expsym_cmds \
8879 postuninstall_cmds \
8880 old_archive_from_expsyms_cmds \
8881 allow_undefined_flag \
8883 export_symbols_cmds \
8884 hardcode_libdir_flag_spec \
8885 hardcode_libdir_flag_spec_ld \
8886 hardcode_libdir_separator \
8887 hardcode_automatic \
8889 module_expsym_cmds \
8890 lt_cv_prog_compiler_c_o \
8895 old_archive_cmds | \
8896 old_archive_from_new_cmds | \
8898 archive_expsym_cmds | \
8900 module_expsym_cmds | \
8901 old_archive_from_expsyms_cmds | \
8902 export_symbols_cmds | \
8903 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8904 postinstall_cmds | postuninstall_cmds | \
8905 old_postinstall_cmds | old_postuninstall_cmds | \
8906 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8907 # Double-quote double-evaled strings.
8908 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8911 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8917 *'\$0 --fallback-echo"')
8918 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8923 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8925 { echo "$as_me:$LINENO: creating $ofile" >&5
8926 echo "$as_me: creating $ofile" >&6;}
8928 cat <<__EOF__ >> "$cfgfile"
8931 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8932 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8933 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8935 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8936 # Free Software Foundation, Inc.
8938 # This file is part of GNU Libtool:
8939 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8941 # This program is free software; you can redistribute it and/or modify
8942 # it under the terms of the GNU General Public License as published by
8943 # the Free Software Foundation; either version 2 of the License, or
8944 # (at your option) any later version.
8946 # This program is distributed in the hope that it will be useful, but
8947 # WITHOUT ANY WARRANTY; without even the implied warranty of
8948 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8949 # General Public License for more details.
8951 # You should have received a copy of the GNU General Public License
8952 # along with this program; if not, write to the Free Software
8953 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8955 # As a special exception to the GNU General Public License, if you
8956 # distribute this file as part of a program that contains a
8957 # configuration script generated by Autoconf, you may include it under
8958 # the same distribution terms that you use for the rest of that program.
8960 # A sed program that does not truncate output.
8963 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8964 Xsed="$SED -e s/^X//"
8966 # The HP-UX ksh and POSIX shell print the target directory to stdout
8968 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8970 # The names of the tagged configurations supported by this script.
8973 # ### BEGIN LIBTOOL CONFIG
8975 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8977 # Shell to use when invoking shell scripts.
8980 # Whether or not to build shared libraries.
8981 build_libtool_libs=$enable_shared
8983 # Whether or not to build static libraries.
8984 build_old_libs=$enable_static
8986 # Whether or not to add -lc for building shared libraries.
8987 build_libtool_need_lc=$archive_cmds_need_lc
8989 # Whether or not to disallow shared libs when runtime libs are static
8990 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8992 # Whether or not to optimize for fast installation.
8993 fast_install=$enable_fast_install
8996 host_alias=$host_alias
8999 # An echo program that does not interpret backslashes.
9004 AR_FLAGS=$lt_AR_FLAGS
9009 # A language-specific compiler.
9012 # Is the compiler the GNU C compiler?
9018 # The linker used to build libraries.
9021 # Whether we need hard or soft links.
9024 # A BSD-compatible nm program.
9027 # A symbol stripping program
9030 # Used to examine libraries when file_magic_cmd begins "file"
9031 MAGIC_CMD=$MAGIC_CMD
9033 # Used on cygwin: DLL creation program.
9036 # Used on cygwin: object dumper.
9039 # Used on cygwin: assembler.
9042 # The name of the directory that contains temporary libtool files.
9045 # How to create reloadable object files.
9046 reload_flag=$lt_reload_flag
9047 reload_cmds=$lt_reload_cmds
9049 # How to pass a linker flag through the compiler.
9050 wl=$lt_lt_prog_compiler_wl
9052 # Object file suffix (normally "o").
9055 # Old archive suffix (normally "a").
9058 # Shared library suffix (normally ".so").
9059 shrext_cmds='$shrext_cmds'
9061 # Executable file suffix (normally "").
9064 # Additional compiler flags for building library objects.
9065 pic_flag=$lt_lt_prog_compiler_pic
9068 # What is the maximum length of a command?
9069 max_cmd_len=$lt_cv_sys_max_cmd_len
9071 # Does compiler simultaneously support -c and -o options?
9072 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9074 # Must we lock files when doing compilation ?
9075 need_locks=$lt_need_locks
9077 # Do we need the lib prefix for modules?
9078 need_lib_prefix=$need_lib_prefix
9080 # Do we need a version for libraries?
9081 need_version=$need_version
9083 # Whether dlopen is supported.
9084 dlopen_support=$enable_dlopen
9086 # Whether dlopen of programs is supported.
9087 dlopen_self=$enable_dlopen_self
9089 # Whether dlopen of statically linked programs is supported.
9090 dlopen_self_static=$enable_dlopen_self_static
9092 # Compiler flag to prevent dynamic linking.
9093 link_static_flag=$lt_lt_prog_compiler_static
9095 # Compiler flag to turn off builtin functions.
9096 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9098 # Compiler flag to allow reflexive dlopens.
9099 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9101 # Compiler flag to generate shared objects directly from archives.
9102 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9104 # Compiler flag to generate thread-safe objects.
9105 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9107 # Library versioning type.
9108 version_type=$version_type
9110 # Format of library name prefix.
9111 libname_spec=$lt_libname_spec
9113 # List of archive names. First name is the real one, the rest are links.
9114 # The last name is the one that the linker finds with -lNAME.
9115 library_names_spec=$lt_library_names_spec
9117 # The coded name of the library, if different from the real name.
9118 soname_spec=$lt_soname_spec
9120 # Commands used to build and install an old-style archive.
9122 old_archive_cmds=$lt_old_archive_cmds
9123 old_postinstall_cmds=$lt_old_postinstall_cmds
9124 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9126 # Create an old-style archive from a shared archive.
9127 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9129 # Create a temporary old-style archive to link instead of a shared archive.
9130 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9132 # Commands used to build and install a shared archive.
9133 archive_cmds=$lt_archive_cmds
9134 archive_expsym_cmds=$lt_archive_expsym_cmds
9135 postinstall_cmds=$lt_postinstall_cmds
9136 postuninstall_cmds=$lt_postuninstall_cmds
9138 # Commands used to build a loadable module (assumed same as above if empty)
9139 module_cmds=$lt_module_cmds
9140 module_expsym_cmds=$lt_module_expsym_cmds
9142 # Commands to strip libraries.
9143 old_striplib=$lt_old_striplib
9144 striplib=$lt_striplib
9146 # Dependencies to place before the objects being linked to create a
9148 predep_objects=$lt_predep_objects
9150 # Dependencies to place after the objects being linked to create a
9152 postdep_objects=$lt_postdep_objects
9154 # Dependencies to place before the objects being linked to create a
9158 # Dependencies to place after the objects being linked to create a
9160 postdeps=$lt_postdeps
9162 # The library search path used internally by the compiler when linking
9164 compiler_lib_search_path=$lt_compiler_lib_search_path
9166 # Method to check whether dependent libraries are shared objects.
9167 deplibs_check_method=$lt_deplibs_check_method
9169 # Command to use when deplibs_check_method == file_magic.
9170 file_magic_cmd=$lt_file_magic_cmd
9172 # Flag that allows shared libraries with undefined symbols to be built.
9173 allow_undefined_flag=$lt_allow_undefined_flag
9175 # Flag that forces no undefined symbols.
9176 no_undefined_flag=$lt_no_undefined_flag
9178 # Commands used to finish a libtool library installation in a directory.
9179 finish_cmds=$lt_finish_cmds
9181 # Same as above, but a single script fragment to be evaled but not shown.
9182 finish_eval=$lt_finish_eval
9184 # Take the output of nm and produce a listing of raw symbols and C names.
9185 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9187 # Transform the output of nm in a proper C declaration
9188 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9190 # Transform the output of nm in a C name address pair
9191 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9193 # This is the shared library runtime path variable.
9194 runpath_var=$runpath_var
9196 # This is the shared library path variable.
9197 shlibpath_var=$shlibpath_var
9199 # Is shlibpath searched before the hard-coded library search path?
9200 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9202 # How to hardcode a shared library path into an executable.
9203 hardcode_action=$hardcode_action
9205 # Whether we should hardcode library paths into libraries.
9206 hardcode_into_libs=$hardcode_into_libs
9208 # Flag to hardcode \$libdir into a binary during linking.
9209 # This must work even if \$libdir does not exist.
9210 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9212 # If ld is used when linking, flag to hardcode \$libdir into
9213 # a binary during linking. This must work even if \$libdir does
9215 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9217 # Whether we need a single -rpath flag with a separated argument.
9218 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9220 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9222 hardcode_direct=$hardcode_direct
9224 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9226 hardcode_minus_L=$hardcode_minus_L
9228 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9229 # the resulting binary.
9230 hardcode_shlibpath_var=$hardcode_shlibpath_var
9232 # Set to yes if building a shared library automatically hardcodes DIR into the library
9233 # and all subsequent libraries and executables linked against it.
9234 hardcode_automatic=$hardcode_automatic
9236 # Variables whose values should be saved in libtool wrapper scripts and
9237 # restored at relink time.
9238 variables_saved_for_relink="$variables_saved_for_relink"
9240 # Whether libtool must link a program against all its dependency libraries.
9241 link_all_deplibs=$link_all_deplibs
9243 # Compile-time system search path for libraries
9244 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9246 # Run-time system search path for libraries
9247 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9249 # Fix the shell variable \$srcfile for the compiler.
9250 fix_srcfile_path="$fix_srcfile_path"
9252 # Set to yes if exported symbols are required.
9253 always_export_symbols=$always_export_symbols
9255 # The commands to list exported symbols.
9256 export_symbols_cmds=$lt_export_symbols_cmds
9258 # The commands to extract the exported symbol list from a shared archive.
9259 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9261 # Symbols that should not be listed in the preloaded symbols.
9262 exclude_expsyms=$lt_exclude_expsyms
9264 # Symbols that must always be exported.
9265 include_expsyms=$lt_include_expsyms
9267 # ### END LIBTOOL CONFIG
9274 cat <<\EOF >> "$cfgfile"
9276 # AIX sometimes has problems with the GCC collect2 program. For some
9277 # reason, if we set the COLLECT_NAMES environment variable, the problems
9278 # vanish in a puff of smoke.
9279 if test "X${COLLECT_NAMES+set}" != Xset; then
9281 export COLLECT_NAMES
9287 # We use sed instead of cat because bash on DJGPP gets confused if
9288 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9289 # text mode, it properly converts lines to CR/LF. This bash problem
9290 # is reportedly fixed, but why not run on old versions too?
9291 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9293 mv -f "$cfgfile" "$ofile" || \
9294 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9298 # If there is no Makefile yet, we rely on a make rule to execute
9299 # `config.status --recheck' to rerun these tests and create the
9300 # libtool script then.
9301 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9302 if test -f "$ltmain_in"; then
9303 test -f Makefile && make "$ltmain"
9309 ac_cpp='$CPP $CPPFLAGS'
9310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9317 # Check whether --with-tags or --without-tags was given.
9318 if test "${with_tags+set}" = set; then
9319 withval="$with_tags"
9323 if test -f "$ltmain" && test -n "$tagnames"; then
9324 if test ! -f "${ofile}"; then
9325 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9326 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9329 if test -z "$LTCC"; then
9330 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9331 if test -z "$LTCC"; then
9332 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9333 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9335 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9336 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9340 # Extract list of available tagged configurations in $ofile.
9341 # Note that this assumes the entire list is on one line.
9342 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9344 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9345 for tagname in $tagnames; do
9347 # Check whether tagname contains only valid characters
9348 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9350 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9351 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9352 { (exit 1); exit 1; }; }
9356 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9358 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9359 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9360 { (exit 1); exit 1; }; }
9363 # Update the list of available tags.
9364 if test -n "$tagname"; then
9365 echo appending configuration tag \"$tagname\" to $ofile
9369 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9370 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9371 (test "X$CXX" != "Xg++"))) ; then
9373 ac_cpp='$CXXCPP $CPPFLAGS'
9374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9381 archive_cmds_need_lc_CXX=no
9382 allow_undefined_flag_CXX=
9383 always_export_symbols_CXX=no
9384 archive_expsym_cmds_CXX=
9385 export_dynamic_flag_spec_CXX=
9386 hardcode_direct_CXX=no
9387 hardcode_libdir_flag_spec_CXX=
9388 hardcode_libdir_flag_spec_ld_CXX=
9389 hardcode_libdir_separator_CXX=
9390 hardcode_minus_L_CXX=no
9391 hardcode_automatic_CXX=no
9393 module_expsym_cmds_CXX=
9394 link_all_deplibs_CXX=unknown
9395 old_archive_cmds_CXX=$old_archive_cmds
9396 no_undefined_flag_CXX=
9397 whole_archive_flag_spec_CXX=
9398 enable_shared_with_static_runtimes_CXX=no
9400 # Dependencies to place before and after the object being linked:
9402 postdep_objects_CXX=
9405 compiler_lib_search_path_CXX=
9407 # Source file extension for C++ test sources.
9410 # Object file extension for compiled C++ test sources.
9414 # Code to be used in simple compile tests
9415 lt_simple_compile_test_code="int some_variable = 0;\n"
9417 # Code to be used in simple link tests
9418 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9420 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9422 # If no C compiler was specified, use CC.
9425 # Allow CC to be a program name with arguments.
9429 # Allow CC to be a program name with arguments.
9434 lt_save_with_gnu_ld=$with_gnu_ld
9435 lt_save_path_LD=$lt_cv_path_LD
9436 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9437 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9439 unset lt_cv_prog_gnu_ld
9441 if test -n "${lt_cv_path_LDCXX+set}"; then
9442 lt_cv_path_LD=$lt_cv_path_LDCXX
9446 test -z "${LDCXX+set}" || LD=$LDCXX
9450 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9452 # We don't want -fno-exception wen compiling C++ code, so set the
9453 # no_builtin_flag separately
9454 if test "$GXX" = yes; then
9455 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9457 lt_prog_compiler_no_builtin_flag_CXX=
9460 if test "$GXX" = yes; then
9461 # Set up default GNU C++ configuration
9464 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9465 if test "${with_gnu_ld+set}" = set; then
9466 withval="$with_gnu_ld"
9467 test "$withval" = no || with_gnu_ld=yes
9472 if test "$GCC" = yes; then
9473 # Check if gcc -print-prog-name=ld gives a path.
9474 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9475 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9478 # gcc leaves a trailing carriage return which upsets mingw
9479 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9481 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9484 # Accept absolute paths.
9486 re_direlt='/[^/][^/]*/\.\./'
9487 # Canonicalize the pathname of ld
9488 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9489 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9490 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9492 test -z "$LD" && LD="$ac_prog"
9495 # If it fails, then pretend we aren't using GCC.
9499 # If it is relative, then search for the first ld in PATH.
9503 elif test "$with_gnu_ld" = yes; then
9504 echo "$as_me:$LINENO: checking for GNU ld" >&5
9505 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9507 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9508 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9510 if test "${lt_cv_path_LD+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 if test -z "$LD"; then
9514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9515 for ac_dir in $PATH; do
9517 test -z "$ac_dir" && ac_dir=.
9518 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9519 lt_cv_path_LD="$ac_dir/$ac_prog"
9520 # Check to see if the program is GNU ld. I'd rather use --version,
9521 # but apparently some GNU ld's only accept -v.
9522 # Break only if it was the GNU/non-GNU ld that we prefer.
9523 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9524 *GNU* | *'with BFD'*)
9525 test "$with_gnu_ld" != no && break
9528 test "$with_gnu_ld" != yes && break
9535 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9540 if test -n "$LD"; then
9541 echo "$as_me:$LINENO: result: $LD" >&5
9542 echo "${ECHO_T}$LD" >&6
9544 echo "$as_me:$LINENO: result: no" >&5
9545 echo "${ECHO_T}no" >&6
9547 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9548 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9549 { (exit 1); exit 1; }; }
9550 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9551 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9552 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9556 case `$LD -v 2>&1 </dev/null` in
9557 *GNU* | *'with BFD'*)
9558 lt_cv_prog_gnu_ld=yes
9561 lt_cv_prog_gnu_ld=no
9565 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9566 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9567 with_gnu_ld=$lt_cv_prog_gnu_ld
9571 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9572 # archiving commands below assume that GNU ld is being used.
9573 if test "$with_gnu_ld" = yes; then
9574 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9575 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'
9577 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9578 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9580 # If archive_cmds runs LD, not CC, wlarc should be empty
9581 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9582 # investigate it a little bit more. (MM)
9585 # ancient GNU ld didn't support --whole-archive et. al.
9586 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9587 grep 'no-whole-archive' > /dev/null; then
9588 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9590 whole_archive_flag_spec_CXX=
9596 # A generic and very simple default shared library creation
9597 # command for GNU C++ for the case where it uses the native
9598 # linker, instead of GNU ld. If possible, this setting should
9599 # overridden to take advantage of the native linker features on
9600 # the platform it is being used on.
9601 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9604 # Commands to make compiler produce verbose output that lists
9605 # what "hidden" libraries, object files and flags are used when
9606 # linking a shared library.
9607 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9615 # PORTME: fill in a description of your system's C++ link characteristics
9616 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9617 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9621 # FIXME: insert proper C++ library support
9625 if test "$host_cpu" = ia64; then
9626 # On IA64, the linker does run time linking by default, so we don't
9627 # have to do anything special.
9628 aix_use_runtimelinking=no
9629 exp_sym_flag='-Bexport'
9632 aix_use_runtimelinking=no
9634 # Test if we are trying to use run time linking or normal
9635 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9636 # need to do runtime linking.
9637 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9638 for ld_flag in $LDFLAGS; do
9641 aix_use_runtimelinking=yes
9648 exp_sym_flag='-bexport'
9649 no_entry_flag='-bnoentry'
9652 # When large executables or shared objects are built, AIX ld can
9653 # have problems creating the table of contents. If linking a library
9654 # or program results in "error TOC overflow" add -mminimal-toc to
9655 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9656 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9659 hardcode_direct_CXX=yes
9660 hardcode_libdir_separator_CXX=':'
9661 link_all_deplibs_CXX=yes
9663 if test "$GXX" = yes; then
9664 case $host_os in aix4.012|aix4.012.*)
9665 # We only want to do this on AIX 4.2 and lower, the check
9666 # below for broken collect2 doesn't work under 4.3+
9667 collect2name=`${CC} -print-prog-name=collect2`
9668 if test -f "$collect2name" && \
9669 strings "$collect2name" | grep resolve_lib_name >/dev/null
9671 # We have reworked collect2
9672 hardcode_direct_CXX=yes
9674 # We have old collect2
9675 hardcode_direct_CXX=unsupported
9676 # It fails to find uninstalled libraries when the uninstalled
9677 # path is not listed in the libpath. Setting hardcode_minus_L
9678 # to unsupported forces relinking
9679 hardcode_minus_L_CXX=yes
9680 hardcode_libdir_flag_spec_CXX='-L$libdir'
9681 hardcode_libdir_separator_CXX=
9684 shared_flag='-shared'
9687 if test "$host_cpu" = ia64; then
9688 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9689 # chokes on -Wl,-G. The following line is correct:
9692 if test "$aix_use_runtimelinking" = yes; then
9693 shared_flag='${wl}-G'
9695 shared_flag='${wl}-bM:SRE'
9700 # It seems that -bexpall does not export symbols beginning with
9701 # underscore (_), so it is better to generate a list of symbols to export.
9702 always_export_symbols_CXX=yes
9703 if test "$aix_use_runtimelinking" = yes; then
9704 # Warning - without using the other runtime loading flags (-brtl),
9705 # -berok will link without error, but may produce a broken library.
9706 allow_undefined_flag_CXX='-berok'
9707 # Determine the default libpath from the value encoded in an empty executable.
9708 cat >conftest.$ac_ext <<_ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9723 rm -f conftest.$ac_objext conftest$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725 (eval $ac_link) 2>conftest.er1
9727 grep -v '^ *+' conftest.er1 >conftest.err
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } &&
9732 { ac_try='test -z "$ac_cxx_werror_flag"
9733 || test ! -s conftest.err'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; } &&
9739 { ac_try='test -s conftest$ac_exeext'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9746 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9748 # Check for a 64-bit object if we didn't find anything.
9749 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; }
9752 echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9756 rm -f conftest.err conftest.$ac_objext \
9757 conftest$ac_exeext conftest.$ac_ext
9758 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9760 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9762 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"
9764 if test "$host_cpu" = ia64; then
9765 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9766 allow_undefined_flag_CXX="-z nodefs"
9767 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"
9769 # Determine the default libpath from the value encoded in an empty executable.
9770 cat >conftest.$ac_ext <<_ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9785 rm -f conftest.$ac_objext conftest$ac_exeext
9786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9787 (eval $ac_link) 2>conftest.er1
9789 grep -v '^ *+' conftest.er1 >conftest.err
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
9794 { ac_try='test -z "$ac_cxx_werror_flag"
9795 || test ! -s conftest.err'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; } &&
9801 { ac_try='test -s conftest$ac_exeext'
9802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; }; then
9808 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9810 # Check for a 64-bit object if we didn't find anything.
9811 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; }
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9818 rm -f conftest.err conftest.$ac_objext \
9819 conftest$ac_exeext conftest.$ac_ext
9820 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9822 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9823 # Warning - without using the other run time loading flags,
9824 # -berok will link without error, but may produce a broken library.
9825 no_undefined_flag_CXX=' ${wl}-bernotok'
9826 allow_undefined_flag_CXX=' ${wl}-berok'
9827 # -bexpall does not export symbols beginning with underscore (_)
9828 always_export_symbols_CXX=yes
9829 # Exported symbols can be pulled into shared objects from archives
9830 whole_archive_flag_spec_CXX=' '
9831 archive_cmds_need_lc_CXX=yes
9832 # This is similar to how AIX traditionally builds it's shared libraries.
9833 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'
9838 case $cc_basename in
9840 # FIXME: insert proper C++ library support
9847 cygwin* | mingw* | pw32*)
9848 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9849 # as there is no search path for DLLs.
9850 hardcode_libdir_flag_spec_CXX='-L$libdir'
9851 allow_undefined_flag_CXX=unsupported
9852 always_export_symbols_CXX=no
9853 enable_shared_with_static_runtimes_CXX=yes
9855 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9856 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'
9857 # If the export-symbols file already is a .def file (1st line
9858 # is EXPORTS), use it as is; otherwise, prepend...
9859 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9860 cp $export_symbols $output_objdir/$soname.def;
9862 echo EXPORTS > $output_objdir/$soname.def;
9863 cat $export_symbols >> $output_objdir/$soname.def;
9864 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'
9869 darwin* | rhapsody*)
9871 rhapsody* | darwin1.[012])
9872 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9875 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9876 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9878 case ${MACOSX_DEPLOYMENT_TARGET} in
9880 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9883 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9889 archive_cmds_need_lc_CXX=no
9890 hardcode_direct_CXX=no
9891 hardcode_automatic_CXX=yes
9892 hardcode_shlibpath_var_CXX=unsupported
9893 whole_archive_flag_spec_CXX=''
9894 link_all_deplibs_CXX=yes
9896 if test "$GXX" = yes ; then
9897 lt_int_apple_cc_single_mod=no
9898 output_verbose_link_cmd='echo'
9899 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9900 lt_int_apple_cc_single_mod=yes
9902 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9903 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9905 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'
9907 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9908 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9909 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9910 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}'
9912 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}'
9914 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}'
9916 case "$cc_basename" in
9918 output_verbose_link_cmd='echo'
9919 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'
9920 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9921 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9922 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}'
9923 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}'
9933 case $cc_basename in
9935 # FIXME: insert proper C++ library support
9939 # Green Hills C++ Compiler
9940 # FIXME: insert proper C++ library support
9944 # FIXME: insert proper C++ library support
9950 # C++ shared libraries reported to be fairly broken before switch to ELF
9954 archive_cmds_need_lc_CXX=no
9956 freebsd* | kfreebsd*-gnu)
9957 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9964 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9965 hardcode_libdir_separator_CXX=:
9966 export_dynamic_flag_spec_CXX='${wl}-E'
9967 hardcode_direct_CXX=yes
9968 hardcode_minus_L_CXX=yes # Not in the search PATH,
9969 # but as the default
9970 # location of the library.
9972 case $cc_basename in
9974 # FIXME: insert proper C++ library support
9978 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'
9979 # Commands to make compiler produce verbose output that lists
9980 # what "hidden" libraries, object files and flags are used when
9981 # linking a shared library.
9983 # There doesn't appear to be a way to prevent this compiler from
9984 # explicitly linking system object files so we need to strip them
9985 # from the output so that they don't get included in the library
9987 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'
9990 if test "$GXX" = yes; then
9991 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'
9993 # FIXME: insert proper C++ library support
10000 if test $with_gnu_ld = no; then
10001 case "$host_cpu" in
10003 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10004 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10005 hardcode_libdir_separator_CXX=:
10008 hardcode_libdir_flag_spec_CXX='-L$libdir'
10011 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10012 hardcode_libdir_separator_CXX=:
10013 export_dynamic_flag_spec_CXX='${wl}-E'
10017 case "$host_cpu" in
10019 hardcode_direct_CXX=no
10020 hardcode_shlibpath_var_CXX=no
10023 hardcode_direct_CXX=no
10024 hardcode_shlibpath_var_CXX=no
10025 hardcode_minus_L_CXX=yes # Not in the search PATH,
10026 # but as the default
10027 # location of the library.
10030 hardcode_direct_CXX=yes
10031 hardcode_minus_L_CXX=yes # Not in the search PATH,
10032 # but as the default
10033 # location of the library.
10037 case $cc_basename in
10039 # FIXME: insert proper C++ library support
10043 case "$host_cpu" in
10045 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10048 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10051 # Commands to make compiler produce verbose output that lists
10052 # what "hidden" libraries, object files and flags are used when
10053 # linking a shared library.
10055 # There doesn't appear to be a way to prevent this compiler from
10056 # explicitly linking system object files so we need to strip them
10057 # from the output so that they don't get included in the library
10059 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'
10062 if test "$GXX" = yes; then
10063 if test $with_gnu_ld = no; then
10064 case "$host_cpu" in
10066 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10069 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'
10074 # FIXME: insert proper C++ library support
10081 case $cc_basename in
10084 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'
10086 # Archives containing C++ object files must be created using
10087 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10088 # necessary to make sure instantiated templates are included
10090 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10093 if test "$GXX" = yes; then
10094 if test "$with_gnu_ld" = no; then
10095 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'
10097 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'
10100 link_all_deplibs_CXX=yes
10103 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10104 hardcode_libdir_separator_CXX=:
10107 case $cc_basename in
10109 # Kuck and Associates, Inc. (KAI) C++ Compiler
10111 # KCC will only create a shared library if the output file
10112 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10113 # to its proper name (with version) after linking.
10114 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'
10115 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'
10116 # Commands to make compiler produce verbose output that lists
10117 # what "hidden" libraries, object files and flags are used when
10118 # linking a shared library.
10120 # There doesn't appear to be a way to prevent this compiler from
10121 # explicitly linking system object files so we need to strip them
10122 # from the output so that they don't get included in the library
10124 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'
10126 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10127 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10129 # Archives containing C++ object files must be created using
10130 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10131 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10136 # version 8.0 and above of icpc choke on multiply defined symbols
10137 # if we add $predep_objects and $postdep_objects, however 7.1 and
10138 # earlier do not add the objects themselves.
10139 case `$CC -V 2>&1` in
10141 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10142 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'
10144 *) # Version 8.0 or newer
10145 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10146 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10149 archive_cmds_need_lc_CXX=no
10150 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10151 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10152 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10156 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10157 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'
10159 runpath_var=LD_RUN_PATH
10160 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10161 hardcode_libdir_separator_CXX=:
10163 # Commands to make compiler produce verbose output that lists
10164 # what "hidden" libraries, object files and flags are used when
10165 # linking a shared library.
10167 # There doesn't appear to be a way to prevent this compiler from
10168 # explicitly linking system object files so we need to strip them
10169 # from the output so that they don't get included in the library
10171 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'
10176 # FIXME: insert proper C++ library support
10180 # FIXME: insert proper C++ library support
10184 case $cc_basename in
10186 # FIXME: insert proper C++ library support
10190 # FIXME: insert proper C++ library support
10196 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10197 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10199 hardcode_libdir_flag_spec_CXX='-R$libdir'
10200 hardcode_direct_CXX=yes
10201 hardcode_shlibpath_var_CXX=no
10203 # Workaround some broken pre-1.5 toolchains
10204 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10207 # C++ shared libraries are fairly broken
10211 hardcode_direct_CXX=yes
10212 hardcode_shlibpath_var_CXX=no
10213 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10214 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10215 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10216 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10217 export_dynamic_flag_spec_CXX='${wl}-E'
10218 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10220 output_verbose_link_cmd='echo'
10223 case $cc_basename in
10225 # Kuck and Associates, Inc. (KAI) C++ Compiler
10227 # KCC will only create a shared library if the output file
10228 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10229 # to its proper name (with version) after linking.
10230 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'
10232 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10233 hardcode_libdir_separator_CXX=:
10235 # Archives containing C++ object files must be created using
10236 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10237 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10241 # Rational C++ 2.4.1
10242 # FIXME: insert proper C++ library support
10246 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10247 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'
10249 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10250 hardcode_libdir_separator_CXX=:
10252 # Commands to make compiler produce verbose output that lists
10253 # what "hidden" libraries, object files and flags are used when
10254 # linking a shared library.
10256 # There doesn't appear to be a way to prevent this compiler from
10257 # explicitly linking system object files so we need to strip them
10258 # from the output so that they don't get included in the library
10260 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'
10263 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10264 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10265 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'
10267 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10268 hardcode_libdir_separator_CXX=:
10270 # Commands to make compiler produce verbose output that lists
10271 # what "hidden" libraries, object files and flags are used when
10272 # linking a shared library.
10273 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10276 # FIXME: insert proper C++ library support
10283 case $cc_basename in
10285 # Kuck and Associates, Inc. (KAI) C++ Compiler
10287 # KCC will only create a shared library if the output file
10288 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10289 # to its proper name (with version) after linking.
10290 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'
10292 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10293 hardcode_libdir_separator_CXX=:
10295 # Archives containing C++ object files must be created using
10296 # the KAI C++ compiler.
10297 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10300 # Rational C++ 2.4.1
10301 # FIXME: insert proper C++ library support
10305 allow_undefined_flag_CXX=' -expect_unresolved \*'
10306 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'
10307 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'
10309 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10310 hardcode_libdir_separator_CXX=:
10312 # Commands to make compiler produce verbose output that lists
10313 # what "hidden" libraries, object files and flags are used when
10314 # linking a shared library.
10316 # There doesn't appear to be a way to prevent this compiler from
10317 # explicitly linking system object files so we need to strip them
10318 # from the output so that they don't get included in the library
10320 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'
10323 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10324 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10325 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'
10327 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10328 hardcode_libdir_separator_CXX=:
10330 # Commands to make compiler produce verbose output that lists
10331 # what "hidden" libraries, object files and flags are used when
10332 # linking a shared library.
10333 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10336 # FIXME: insert proper C++ library support
10343 # FIXME: insert proper C++ library support
10347 archive_cmds_need_lc_CXX=no
10348 case $cc_basename in
10350 # FIXME: insert proper C++ library support
10354 # FIXME: insert proper C++ library support
10360 case $cc_basename in
10363 # FIXME: insert proper C++ library support
10368 # FIXME: insert proper C++ library support
10372 # FIXME: insert proper C++ library support
10378 case $cc_basename in
10380 # Sun C++ 4.2, 5.x and Centerline C++
10381 no_undefined_flag_CXX=' -zdefs'
10382 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10383 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'
10385 hardcode_libdir_flag_spec_CXX='-R$libdir'
10386 hardcode_shlibpath_var_CXX=no
10388 solaris2.0-5 | solaris2.0-5.*) ;;
10390 # The C++ compiler is used as linker so we must use $wl
10391 # flag to pass the commands to the underlying system
10393 # Supported since Solaris 2.6 (maybe 2.5.1?)
10394 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10397 link_all_deplibs_CXX=yes
10399 # Commands to make compiler produce verbose output that lists
10400 # what "hidden" libraries, object files and flags are used when
10401 # linking a shared library.
10403 # There doesn't appear to be a way to prevent this compiler from
10404 # explicitly linking system object files so we need to strip them
10405 # from the output so that they don't get included in the library
10407 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'
10409 # Archives containing C++ object files must be created using
10410 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10411 # necessary to make sure instantiated templates are included
10413 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10416 # Green Hills C++ Compiler
10417 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10419 # The C++ compiler must be used to create the archive.
10420 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10423 # GNU C++ compiler with Solaris linker
10424 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10425 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10426 if $CC --version | grep -v '^2\.7' > /dev/null; then
10427 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10428 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'
10429 # Commands to make compiler produce verbose output that lists
10430 # what "hidden" libraries, object files and flags are used when
10431 # linking a shared library.
10432 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10434 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10436 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10437 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp;
10438 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
10440 # Commands to make compiler produce verbose output that lists
10441 # what "hidden" libraries, object files and flags are used when
10442 # linking a shared library.
10443 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10446 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10451 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10452 archive_cmds_need_lc_CXX=no
10455 case $cc_basename in
10457 # NonStop-UX NCC 3.20
10458 # FIXME: insert proper C++ library support
10462 # FIXME: insert proper C++ library support
10468 # FIXME: insert proper C++ library support
10472 # FIXME: insert proper C++ library support
10476 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10477 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10478 test "$ld_shlibs_CXX" = no && can_build_shared=no
10484 cat > conftest.$ac_ext <<EOF
10488 Foo (void) { a = 0; }
10494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10495 (eval $ac_compile) 2>&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; then
10499 # Parse the compiler output and extract the necessary
10500 # objects, libraries and library flags.
10502 # Sentinel used to keep track of whether or not we are before
10503 # the conftest object file.
10504 pre_test_object_deps_done=no
10506 # The `*' in the case matches for architectures that use `case' in
10507 # $output_verbose_cmd can trigger glob expansion during the loop
10508 # eval without this substitution.
10509 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10511 for p in `eval $output_verbose_link_cmd`; do
10515 # Some compilers place space between "-{L,R}" and the path.
10516 # Remove the space.
10517 if test $p = "-L" \
10518 || test $p = "-R"; then
10525 if test "$pre_test_object_deps_done" = no; then
10528 # Internal compiler library paths should come after those
10529 # provided the user. The postdeps already come after the
10530 # user supplied libs so there is no need to process them.
10531 if test -z "$compiler_lib_search_path_CXX"; then
10532 compiler_lib_search_path_CXX="${prev}${p}"
10534 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10537 # The "-l" case would never come before the object being
10538 # linked, so don't bother handling this case.
10541 if test -z "$postdeps_CXX"; then
10542 postdeps_CXX="${prev}${p}"
10544 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10550 # This assumes that the test object file only shows up
10551 # once in the compiler output.
10552 if test "$p" = "conftest.$objext"; then
10553 pre_test_object_deps_done=yes
10557 if test "$pre_test_object_deps_done" = no; then
10558 if test -z "$predep_objects_CXX"; then
10559 predep_objects_CXX="$p"
10561 predep_objects_CXX="$predep_objects_CXX $p"
10564 if test -z "$postdep_objects_CXX"; then
10565 postdep_objects_CXX="$p"
10567 postdep_objects_CXX="$postdep_objects_CXX $p"
10572 *) ;; # Ignore the rest.
10580 echo "libtool.m4: error: problem compiling CXX test program"
10583 $rm -f confest.$objext
10585 case " $postdeps_CXX " in
10586 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10589 lt_prog_compiler_wl_CXX=
10590 lt_prog_compiler_pic_CXX=
10591 lt_prog_compiler_static_CXX=
10593 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10594 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10596 # C++ specific cases for pic, static, wl, etc.
10597 if test "$GXX" = yes; then
10598 lt_prog_compiler_wl_CXX='-Wl,'
10599 lt_prog_compiler_static_CXX='-static'
10603 # All AIX code is PIC.
10604 if test "$host_cpu" = ia64; then
10605 # AIX 5 now supports IA64 processor
10606 lt_prog_compiler_static_CXX='-Bstatic'
10610 # FIXME: we need at least 68020 code to build shared libraries, but
10611 # adding the `-m68020' flag to GCC prevents building anything better,
10613 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10615 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10616 # PIC is the default for these OSes.
10618 mingw* | os2* | pw32*)
10619 # This hack is so that the source file can tell whether it is being
10620 # built for inclusion in a dll (and should export symbols for example).
10621 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10623 darwin* | rhapsody*)
10624 # PIC is the default on this platform
10625 # Common symbols not allowed in MH_DYLIB files
10626 lt_prog_compiler_pic_CXX='-fno-common'
10629 # DJGPP does not support shared libraries at all
10630 lt_prog_compiler_pic_CXX=
10633 if test -d /usr/nec; then
10634 lt_prog_compiler_pic_CXX=-Kconform_pic
10638 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10639 # not for PA HP-UX.
10640 case "$host_cpu" in
10644 lt_prog_compiler_pic_CXX='-fPIC'
10649 lt_prog_compiler_pic_CXX='-fPIC'
10655 # All AIX code is PIC.
10656 if test "$host_cpu" = ia64; then
10657 # AIX 5 now supports IA64 processor
10658 lt_prog_compiler_static_CXX='-Bstatic'
10660 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10664 case $cc_basename in
10666 # Green Hills C++ Compiler
10667 # _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"
10672 # PIC is the default on this platform
10673 # Common symbols not allowed in MH_DYLIB files
10674 case "$cc_basename" in
10676 lt_prog_compiler_pic_CXX='-qnocommon'
10677 lt_prog_compiler_wl_CXX='-Wl,'
10682 case $cc_basename in
10684 lt_prog_compiler_pic_CXX='-KPIC'
10687 # Green Hills C++ Compiler
10688 lt_prog_compiler_pic_CXX='-pic'
10694 freebsd* | kfreebsd*-gnu)
10695 # FreeBSD uses GNU C++
10697 hpux9* | hpux10* | hpux11*)
10698 case $cc_basename in
10700 lt_prog_compiler_wl_CXX='-Wl,'
10701 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10702 if test "$host_cpu" != ia64; then
10703 lt_prog_compiler_pic_CXX='+Z'
10707 lt_prog_compiler_wl_CXX='-Wl,'
10708 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10709 case "$host_cpu" in
10714 lt_prog_compiler_pic_CXX='+Z'
10722 irix5* | irix6* | nonstopux*)
10723 case $cc_basename in
10725 lt_prog_compiler_wl_CXX='-Wl,'
10726 lt_prog_compiler_static_CXX='-non_shared'
10727 # CC pic flag -KPIC is the default.
10734 case $cc_basename in
10737 lt_prog_compiler_wl_CXX='--backend -Wl,'
10738 lt_prog_compiler_pic_CXX='-fPIC'
10742 lt_prog_compiler_wl_CXX='-Wl,'
10743 lt_prog_compiler_pic_CXX='-KPIC'
10744 lt_prog_compiler_static_CXX='-static'
10748 # Make sure the PIC flag is empty. It appears that all Alpha
10749 # Linux and Compaq Tru64 Unix objects are PIC.
10750 lt_prog_compiler_pic_CXX=
10751 lt_prog_compiler_static_CXX='-non_shared'
10762 case $cc_basename in
10764 lt_prog_compiler_pic_CXX='-W c,exportall'
10772 osf3* | osf4* | osf5*)
10773 case $cc_basename in
10775 lt_prog_compiler_wl_CXX='--backend -Wl,'
10778 # Rational C++ 2.4.1
10779 lt_prog_compiler_pic_CXX='-pic'
10782 # Digital/Compaq C++
10783 lt_prog_compiler_wl_CXX='-Wl,'
10784 # Make sure the PIC flag is empty. It appears that all Alpha
10785 # Linux and Compaq Tru64 Unix objects are PIC.
10786 lt_prog_compiler_pic_CXX=
10787 lt_prog_compiler_static_CXX='-non_shared'
10796 case $cc_basename in
10798 lt_prog_compiler_pic_CXX='-fPIC'
10805 case $cc_basename in
10807 # Sun C++ 4.2, 5.x and Centerline C++
10808 lt_prog_compiler_pic_CXX='-KPIC'
10809 lt_prog_compiler_static_CXX='-Bstatic'
10810 lt_prog_compiler_wl_CXX='-Qoption ld '
10813 # Green Hills C++ Compiler
10814 lt_prog_compiler_pic_CXX='-PIC'
10821 case $cc_basename in
10824 lt_prog_compiler_pic_CXX='-pic'
10825 lt_prog_compiler_static_CXX='-Bstatic'
10829 lt_prog_compiler_pic_CXX='-pic'
10836 case $cc_basename in
10838 # NonStop-UX NCC 3.20
10839 lt_prog_compiler_pic_CXX='-KPIC'
10850 lt_prog_compiler_can_build_shared_CXX=no
10855 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10856 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10859 # Check to make sure the PIC flag actually works.
10861 if test -n "$lt_prog_compiler_pic_CXX"; then
10863 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10864 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10865 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10868 lt_prog_compiler_pic_works_CXX=no
10869 ac_outfile=conftest.$ac_objext
10870 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10871 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10872 # Insert the option either (1) after the last *FLAGS variable, or
10873 # (2) before a word containing "conftest.", or (3) at the end.
10874 # Note that $ac_compile itself does not contain backslashes and begins
10875 # with a dollar sign (not a hyphen), so the echo should work correctly.
10876 # The option is referenced via a variable to avoid confusing sed.
10877 lt_compile=`echo "$ac_compile" | $SED \
10878 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10880 -e 's:$: $lt_compiler_flag:'`
10881 (eval echo "\"\$as_me:10881: $lt_compile\"" >&5)
10882 (eval "$lt_compile" 2>conftest.err)
10884 cat conftest.err >&5
10885 echo "$as_me:10885: \$? = $ac_status" >&5
10886 if (exit $ac_status) && test -s "$ac_outfile"; then
10887 # The compiler can only warn and ignore the option if not recognized
10888 # So say no if there are warnings
10889 if test ! -s conftest.err; then
10890 lt_prog_compiler_pic_works_CXX=yes
10896 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10897 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10899 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10900 case $lt_prog_compiler_pic_CXX in
10902 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10905 lt_prog_compiler_pic_CXX=
10906 lt_prog_compiler_can_build_shared_CXX=no
10911 # For platforms which do not support PIC, -DPIC is meaningless:
10913 lt_prog_compiler_pic_CXX=
10916 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10920 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10921 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10922 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 lt_cv_prog_compiler_c_o_CXX=no
10926 $rm -r conftest 2>/dev/null
10930 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10932 lt_compiler_flag="-o out/conftest2.$ac_objext"
10933 # Insert the option either (1) after the last *FLAGS variable, or
10934 # (2) before a word containing "conftest.", or (3) at the end.
10935 # Note that $ac_compile itself does not contain backslashes and begins
10936 # with a dollar sign (not a hyphen), so the echo should work correctly.
10937 lt_compile=`echo "$ac_compile" | $SED \
10938 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10940 -e 's:$: $lt_compiler_flag:'`
10941 (eval echo "\"\$as_me:10941: $lt_compile\"" >&5)
10942 (eval "$lt_compile" 2>out/conftest.err)
10944 cat out/conftest.err >&5
10945 echo "$as_me:10945: \$? = $ac_status" >&5
10946 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10948 # The compiler can only warn and ignore the option if not recognized
10949 # So say no if there are warnings
10950 if test ! -s out/conftest.err; then
10951 lt_cv_prog_compiler_c_o_CXX=yes
10956 # SGI C++ compiler will create directory out/ii_files/ for
10957 # template instantiation
10958 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10959 $rm out/* && rmdir out
10965 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10966 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10969 hard_links="nottested"
10970 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10971 # do not overwrite the value of need_locks provided by the user
10972 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10973 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10976 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10978 ln conftest.a conftest.b 2>&5 || hard_links=no
10979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10980 echo "$as_me:$LINENO: result: $hard_links" >&5
10981 echo "${ECHO_T}$hard_links" >&6
10982 if test "$hard_links" = no; then
10983 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10984 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10991 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10992 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10994 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10997 # If we're using GNU nm, then we don't want the "-C" option.
10998 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10999 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11000 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'
11002 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'
11006 export_symbols_cmds_CXX="$ltdll_cmds"
11009 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11012 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11016 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11017 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11018 test "$ld_shlibs_CXX" = no && can_build_shared=no
11020 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11021 if test "$GCC" = yes; then
11022 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11026 # Do we need to explicitly link libc?
11028 case "x$archive_cmds_need_lc_CXX" in
11030 # Assume -lc should be added
11031 archive_cmds_need_lc_CXX=yes
11033 if test "$enable_shared" = yes && test "$GCC" = yes; then
11034 case $archive_cmds_CXX in
11036 # FIXME: we may have to deal with multi-command sequences.
11039 # Test whether the compiler implicitly links with -lc since on some
11040 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11041 # to ld, don't add -lc before -lgcc.
11042 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11043 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11045 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11048 (eval $ac_compile) 2>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } 2>conftest.err; then
11054 libobjs=conftest.$ac_objext
11056 wl=$lt_prog_compiler_wl_CXX
11062 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11063 allow_undefined_flag_CXX=
11064 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11065 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }
11070 archive_cmds_need_lc_CXX=no
11072 archive_cmds_need_lc_CXX=yes
11074 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11076 cat conftest.err 1>&5
11079 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11080 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11087 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11088 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11089 library_names_spec=
11090 libname_spec='lib$name'
11094 postuninstall_cmds=
11098 shlibpath_overrides_runpath=unknown
11100 dynamic_linker="$host_os ld.so"
11101 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11102 if test "$GCC" = yes; then
11103 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11104 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11105 # if the path contains ";" then we assume it to be the separator
11106 # otherwise default to the standard path separator (i.e. ":") - it is
11107 # assumed that no part of a normal pathname contains ";" but that should
11108 # okay in the real world where ";" in dirpaths is itself problematic.
11109 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11111 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11114 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11116 need_lib_prefix=unknown
11117 hardcode_into_libs=no
11119 # when you set need_version to no, make sure it does not cause -set_version
11120 # flags to be left without arguments
11121 need_version=unknown
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11127 shlibpath_var=LIBPATH
11129 # AIX 3 has no versioning support, so we append a major version to the name.
11130 soname_spec='${libname}${release}${shared_ext}$major'
11137 hardcode_into_libs=yes
11138 if test "$host_cpu" = ia64; then
11139 # AIX 5 supports IA64
11140 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11141 shlibpath_var=LD_LIBRARY_PATH
11143 # With GCC up to 2.95.x, collect2 would create an import file
11144 # for dependence libraries. The import file would start with
11145 # the line `#! .'. This would cause the generated library to
11146 # depend on `.', always an invalid library. This was fixed in
11147 # development snapshots of GCC prior to 3.0.
11149 aix4 | aix4.[01] | aix4.[01].*)
11150 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11152 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11155 can_build_shared=no
11159 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11160 # soname into executable. Probably we can add versioning support to
11161 # collect2, so additional links can be useful in future.
11162 if test "$aix_use_runtimelinking" = yes; then
11163 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11164 # instead of lib<name>.a to let people know that these are not
11165 # typical AIX shared libraries.
11166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11168 # We preserve .a as extension for shared libraries through AIX4.2
11169 # and later when we are not doing run time linking.
11170 library_names_spec='${libname}${release}.a $libname.a'
11171 soname_spec='${libname}${release}${shared_ext}$major'
11173 shlibpath_var=LIBPATH
11178 library_names_spec='$libname.ixlibrary $libname.a'
11179 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11180 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'
11184 library_names_spec='${libname}${shared_ext}'
11185 dynamic_linker="$host_os ld.so"
11186 shlibpath_var=LIBRARY_PATH
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193 soname_spec='${libname}${release}${shared_ext}$major'
11194 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11195 shlibpath_var=LD_LIBRARY_PATH
11196 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11197 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11198 # the default ld.so.conf also contains /usr/contrib/lib and
11199 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11200 # libtool to hard-code these into programs
11203 cygwin* | mingw* | pw32*)
11204 version_type=windows
11209 case $GCC,$host_os in
11210 yes,cygwin* | yes,mingw* | yes,pw32*)
11211 library_names_spec='$libname.dll.a'
11212 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11213 postinstall_cmds='base_file=`basename \${file}`;
11214 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
11215 dldir=$destdir/`dirname \$dlpath`;
11216 test -d \$dldir || mkdir -p \$dldir;
11217 $install_prog $dir/$dlname \$dldir/$dlname'
11218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
11219 dlpath=$dir/\$dldll;
11221 shlibpath_overrides_runpath=yes
11225 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11226 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11227 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11230 # MinGW DLLs use traditional 'lib' prefix
11231 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11232 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11233 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11234 # It is most probably a Windows format PATH printed by
11235 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11236 # path with ; separators, and with drive letters. We can handle the
11237 # drive letters (cygwin fileutils understands them), so leave them,
11238 # especially as we might pass files found there to a mingw objdump,
11239 # which wouldn't understand a cygwinified path. Ahh.
11240 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11246 # pw32 DLLs use 'pw' prefix rather than 'lib'
11247 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11253 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11256 dynamic_linker='Win32 ld.exe'
11257 # FIXME: first we should search . and the directory the executable is in
11261 darwin* | rhapsody*)
11262 dynamic_linker="$host_os dyld"
11263 version_type=darwin
11266 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11267 soname_spec='${libname}${release}${major}$shared_ext'
11268 shlibpath_overrides_runpath=yes
11269 shlibpath_var=DYLD_LIBRARY_PATH
11270 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11271 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11272 if test "$GCC" = yes; then
11273 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"`
11275 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11277 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11285 soname_spec='${libname}${release}${shared_ext}$major'
11286 shlibpath_var=LD_LIBRARY_PATH
11297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11298 soname_spec='${libname}${release}${shared_ext}$major'
11299 shlibpath_var=LD_LIBRARY_PATH
11300 shlibpath_overrides_runpath=no
11301 hardcode_into_libs=yes
11302 dynamic_linker='GNU ld.so'
11306 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11307 version_type=freebsd-$objformat
11308 case $version_type in
11310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11319 shlibpath_var=LD_LIBRARY_PATH
11322 shlibpath_overrides_runpath=yes
11324 freebsd3.01* | freebsdelf3.01*)
11325 shlibpath_overrides_runpath=yes
11326 hardcode_into_libs=yes
11329 shlibpath_overrides_runpath=no
11330 hardcode_into_libs=yes
11339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11340 soname_spec='${libname}${release}${shared_ext}$major'
11341 shlibpath_var=LD_LIBRARY_PATH
11342 hardcode_into_libs=yes
11345 hpux9* | hpux10* | hpux11*)
11346 # Give a soname corresponding to the major version so that dld.sl refuses to
11347 # link against other versions.
11351 case "$host_cpu" in
11354 hardcode_into_libs=yes
11355 dynamic_linker="$host_os dld.so"
11356 shlibpath_var=LD_LIBRARY_PATH
11357 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11359 soname_spec='${libname}${release}${shared_ext}$major'
11360 if test "X$HPUX_IA64_MODE" = X32; then
11361 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11363 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11369 hardcode_into_libs=yes
11370 dynamic_linker="$host_os dld.sl"
11371 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11372 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374 soname_spec='${libname}${release}${shared_ext}$major'
11375 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11380 dynamic_linker="$host_os dld.sl"
11381 shlibpath_var=SHLIB_PATH
11382 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11384 soname_spec='${libname}${release}${shared_ext}$major'
11387 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11388 postinstall_cmds='chmod 555 $lib'
11391 irix5* | irix6* | nonstopux*)
11393 nonstopux*) version_type=nonstopux ;;
11395 if test "$lt_cv_prog_gnu_ld" = yes; then
11403 soname_spec='${libname}${release}${shared_ext}$major'
11404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11406 irix5* | nonstopux*)
11407 libsuff= shlibsuff=
11410 case $LD in # libtool.m4 will add one of these switches to LD
11411 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11412 libsuff= shlibsuff= libmagic=32-bit;;
11413 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11414 libsuff=32 shlibsuff=N32 libmagic=N32;;
11415 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11416 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11417 *) libsuff= shlibsuff= libmagic=never-match;;
11421 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11422 shlibpath_overrides_runpath=no
11423 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11424 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11425 hardcode_into_libs=yes
11428 # No shared lib support for Linux oldld, aout, or coff.
11429 linux*oldld* | linux*aout* | linux*coff*)
11433 # This must be Linux ELF.
11438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11439 soname_spec='${libname}${release}${shared_ext}$major'
11440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11441 shlibpath_var=LD_LIBRARY_PATH
11442 shlibpath_overrides_runpath=no
11443 # This implies no fast_install, which is unacceptable.
11444 # Some rework will be needed to allow for fast_install
11445 # before this can be enabled.
11446 hardcode_into_libs=yes
11448 # Append ld.so.conf contents to the search path
11449 if test -f /etc/ld.so.conf; then
11450 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11451 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11454 # We used to test for /lib/ld.so.1 and disable shared libraries on
11455 # powerpc, because MkLinux only supported shared libraries with the
11456 # GNU dynamic linker. Since this was broken with cross compilers,
11457 # most powerpc-linux boxes support dynamic linking these days and
11458 # people can always --disable-shared, the test was removed, and we
11459 # assume the GNU/Linux dynamic linker is in use.
11460 dynamic_linker='GNU/Linux ld.so'
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11468 soname_spec='${libname}${release}${shared_ext}$major'
11469 shlibpath_var=LD_LIBRARY_PATH
11470 shlibpath_overrides_runpath=no
11471 hardcode_into_libs=yes
11472 dynamic_linker='GNU ld.so'
11479 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11482 dynamic_linker='NetBSD (a.out) ld.so'
11484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11485 soname_spec='${libname}${release}${shared_ext}$major'
11486 dynamic_linker='NetBSD ld.elf_so'
11488 shlibpath_var=LD_LIBRARY_PATH
11489 shlibpath_overrides_runpath=yes
11490 hardcode_into_libs=yes
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 shlibpath_overrides_runpath=yes
11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11505 soname_spec='${libname}${release}${shared_ext}$major'
11506 shlibpath_var=LD_LIBRARY_PATH
11507 shlibpath_overrides_runpath=yes
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11516 shlibpath_var=LD_LIBRARY_PATH
11517 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11519 openbsd2.[89] | openbsd2.[89].*)
11520 shlibpath_overrides_runpath=no
11523 shlibpath_overrides_runpath=yes
11527 shlibpath_overrides_runpath=yes
11532 libname_spec='$name'
11535 library_names_spec='$libname${shared_ext} $libname.a'
11536 dynamic_linker='OS/2 ld.exe'
11537 shlibpath_var=LIBPATH
11540 osf3* | osf4* | osf5*)
11544 soname_spec='${libname}${release}${shared_ext}$major'
11545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11546 shlibpath_var=LD_LIBRARY_PATH
11547 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11548 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11553 soname_spec='${libname}${release}${shared_ext}$major'
11554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11555 shlibpath_var=LD_LIBRARY_PATH
11562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11563 soname_spec='${libname}${release}${shared_ext}$major'
11564 shlibpath_var=LD_LIBRARY_PATH
11565 shlibpath_overrides_runpath=yes
11566 hardcode_into_libs=yes
11567 # ldd complains unless libraries are executable
11568 postinstall_cmds='chmod +x $lib'
11573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11574 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11575 shlibpath_var=LD_LIBRARY_PATH
11576 shlibpath_overrides_runpath=yes
11577 if test "$with_gnu_ld" = yes; then
11583 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586 soname_spec='${libname}${release}${shared_ext}$major'
11587 shlibpath_var=LD_LIBRARY_PATH
11588 case $host_vendor in
11590 shlibpath_overrides_runpath=no
11592 export_dynamic_flag_spec='${wl}-Blargedynsym'
11593 runpath_var=LD_RUN_PATH
11601 shlibpath_overrides_runpath=no
11602 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11608 if test -d /usr/nec ;then
11610 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11611 soname_spec='$libname${shared_ext}.$major'
11612 shlibpath_var=LD_LIBRARY_PATH
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619 soname_spec='${libname}${release}${shared_ext}$major'
11620 shlibpath_var=LD_LIBRARY_PATH
11627 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11628 echo "${ECHO_T}$dynamic_linker" >&6
11629 test "$dynamic_linker" = no && can_build_shared=no
11631 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11632 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11633 hardcode_action_CXX=
11634 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11635 test -n "$runpath_var_CXX" || \
11636 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11638 # We can hardcode non-existant directories.
11639 if test "$hardcode_direct_CXX" != no &&
11640 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11641 # have to relink, otherwise we might link with an installed library
11642 # when we should be linking with a yet-to-be-installed one
11643 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11644 test "$hardcode_minus_L_CXX" != no; then
11645 # Linking always hardcodes the temporary library directory.
11646 hardcode_action_CXX=relink
11648 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11649 hardcode_action_CXX=immediate
11652 # We cannot hardcode anything, or else we can only hardcode existing
11654 hardcode_action_CXX=unsupported
11656 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11657 echo "${ECHO_T}$hardcode_action_CXX" >&6
11659 if test "$hardcode_action_CXX" = relink; then
11660 # Fast installation is not supported
11661 enable_fast_install=no
11662 elif test "$shlibpath_overrides_runpath" = yes ||
11663 test "$enable_shared" = no; then
11664 # Fast installation is not necessary
11665 enable_fast_install=needless
11670 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11671 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11672 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11673 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11674 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11675 echo "$as_me:$LINENO: result: yes" >&5
11676 echo "${ECHO_T}yes" >&6
11678 # FIXME - insert some real tests, host_os isn't really good enough
11681 if test -n "$STRIP" ; then
11682 striplib="$STRIP -x"
11683 echo "$as_me:$LINENO: result: yes" >&5
11684 echo "${ECHO_T}yes" >&6
11686 echo "$as_me:$LINENO: result: no" >&5
11687 echo "${ECHO_T}no" >&6
11691 echo "$as_me:$LINENO: result: no" >&5
11692 echo "${ECHO_T}no" >&6
11697 if test "x$enable_dlopen" != xyes; then
11698 enable_dlopen=unknown
11699 enable_dlopen_self=unknown
11700 enable_dlopen_self_static=unknown
11707 lt_cv_dlopen="load_add_on"
11709 lt_cv_dlopen_self=yes
11713 lt_cv_dlopen="LoadLibrary"
11718 lt_cv_dlopen="dlopen"
11723 # if libdl is installed we need to link against it
11724 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11725 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11726 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11729 ac_check_lib_save_LIBS=$LIBS
11731 cat >conftest.$ac_ext <<_ACEOF
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h. */
11738 /* Override any gcc2 internal prototype to avoid an error. */
11742 /* We use char because int might match the return type of a gcc2
11743 builtin and then its argument prototype would still apply. */
11753 rm -f conftest.$ac_objext conftest$ac_exeext
11754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11755 (eval $ac_link) 2>conftest.er1
11757 grep -v '^ *+' conftest.er1 >conftest.err
11759 cat conftest.err >&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } &&
11762 { ac_try='test -z "$ac_cxx_werror_flag"
11763 || test ! -s conftest.err'
11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; } &&
11769 { ac_try='test -s conftest$ac_exeext'
11770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; }; then
11775 ac_cv_lib_dl_dlopen=yes
11777 echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11780 ac_cv_lib_dl_dlopen=no
11782 rm -f conftest.err conftest.$ac_objext \
11783 conftest$ac_exeext conftest.$ac_ext
11784 LIBS=$ac_check_lib_save_LIBS
11786 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11787 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11788 if test $ac_cv_lib_dl_dlopen = yes; then
11789 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11792 lt_cv_dlopen="dyld"
11794 lt_cv_dlopen_self=yes
11801 echo "$as_me:$LINENO: checking for shl_load" >&5
11802 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11803 if test "${ac_cv_func_shl_load+set}" = set; then
11804 echo $ECHO_N "(cached) $ECHO_C" >&6
11806 cat >conftest.$ac_ext <<_ACEOF
11809 cat confdefs.h >>conftest.$ac_ext
11810 cat >>conftest.$ac_ext <<_ACEOF
11811 /* end confdefs.h. */
11812 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11814 #define shl_load innocuous_shl_load
11816 /* System header to define __stub macros and hopefully few prototypes,
11817 which can conflict with char shl_load (); below.
11818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11819 <limits.h> exists even on freestanding compilers. */
11822 # include <limits.h>
11824 # include <assert.h>
11829 /* Override any gcc2 internal prototype to avoid an error. */
11834 /* We use char because int might match the return type of a gcc2
11835 builtin and then its argument prototype would still apply. */
11837 /* The GNU C library defines this for functions which it implements
11838 to always fail with ENOSYS. Some functions are actually named
11839 something starting with __ and the normal name is an alias. */
11840 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11843 char (*f) () = shl_load;
11852 return f != shl_load;
11857 rm -f conftest.$ac_objext conftest$ac_exeext
11858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11859 (eval $ac_link) 2>conftest.er1
11861 grep -v '^ *+' conftest.er1 >conftest.err
11863 cat conftest.err >&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); } &&
11866 { ac_try='test -z "$ac_cxx_werror_flag"
11867 || test ! -s conftest.err'
11868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 (eval $ac_try) 2>&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; } &&
11873 { ac_try='test -s conftest$ac_exeext'
11874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875 (eval $ac_try) 2>&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; }; then
11879 ac_cv_func_shl_load=yes
11881 echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11884 ac_cv_func_shl_load=no
11886 rm -f conftest.err conftest.$ac_objext \
11887 conftest$ac_exeext conftest.$ac_ext
11889 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11890 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11891 if test $ac_cv_func_shl_load = yes; then
11892 lt_cv_dlopen="shl_load"
11894 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11895 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11896 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 ac_check_lib_save_LIBS=$LIBS
11901 cat >conftest.$ac_ext <<_ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11908 /* Override any gcc2 internal prototype to avoid an error. */
11912 /* We use char because int might match the return type of a gcc2
11913 builtin and then its argument prototype would still apply. */
11923 rm -f conftest.$ac_objext conftest$ac_exeext
11924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11925 (eval $ac_link) 2>conftest.er1
11927 grep -v '^ *+' conftest.er1 >conftest.err
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try='test -z "$ac_cxx_werror_flag"
11933 || test ! -s conftest.err'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; } &&
11939 { ac_try='test -s conftest$ac_exeext'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; }; then
11945 ac_cv_lib_dld_shl_load=yes
11947 echo "$as_me: failed program was:" >&5
11948 sed 's/^/| /' conftest.$ac_ext >&5
11950 ac_cv_lib_dld_shl_load=no
11952 rm -f conftest.err conftest.$ac_objext \
11953 conftest$ac_exeext conftest.$ac_ext
11954 LIBS=$ac_check_lib_save_LIBS
11956 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11957 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11958 if test $ac_cv_lib_dld_shl_load = yes; then
11959 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11961 echo "$as_me:$LINENO: checking for dlopen" >&5
11962 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11963 if test "${ac_cv_func_dlopen+set}" = set; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 cat >conftest.$ac_ext <<_ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h. */
11972 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11974 #define dlopen innocuous_dlopen
11976 /* System header to define __stub macros and hopefully few prototypes,
11977 which can conflict with char dlopen (); below.
11978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11979 <limits.h> exists even on freestanding compilers. */
11982 # include <limits.h>
11984 # include <assert.h>
11989 /* Override any gcc2 internal prototype to avoid an error. */
11994 /* We use char because int might match the return type of a gcc2
11995 builtin and then its argument prototype would still apply. */
11997 /* The GNU C library defines this for functions which it implements
11998 to always fail with ENOSYS. Some functions are actually named
11999 something starting with __ and the normal name is an alias. */
12000 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12003 char (*f) () = dlopen;
12012 return f != dlopen;
12017 rm -f conftest.$ac_objext conftest$ac_exeext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12019 (eval $ac_link) 2>conftest.er1
12021 grep -v '^ *+' conftest.er1 >conftest.err
12023 cat conftest.err >&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } &&
12026 { ac_try='test -z "$ac_cxx_werror_flag"
12027 || test ! -s conftest.err'
12028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029 (eval $ac_try) 2>&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; } &&
12033 { ac_try='test -s conftest$ac_exeext'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
12039 ac_cv_func_dlopen=yes
12041 echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12044 ac_cv_func_dlopen=no
12046 rm -f conftest.err conftest.$ac_objext \
12047 conftest$ac_exeext conftest.$ac_ext
12049 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12050 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12051 if test $ac_cv_func_dlopen = yes; then
12052 lt_cv_dlopen="dlopen"
12054 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12055 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12056 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12059 ac_check_lib_save_LIBS=$LIBS
12061 cat >conftest.$ac_ext <<_ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h. */
12068 /* Override any gcc2 internal prototype to avoid an error. */
12072 /* We use char because int might match the return type of a gcc2
12073 builtin and then its argument prototype would still apply. */
12083 rm -f conftest.$ac_objext conftest$ac_exeext
12084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12085 (eval $ac_link) 2>conftest.er1
12087 grep -v '^ *+' conftest.er1 >conftest.err
12089 cat conftest.err >&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } &&
12092 { ac_try='test -z "$ac_cxx_werror_flag"
12093 || test ! -s conftest.err'
12094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095 (eval $ac_try) 2>&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; } &&
12099 { ac_try='test -s conftest$ac_exeext'
12100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12101 (eval $ac_try) 2>&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; }; then
12105 ac_cv_lib_dl_dlopen=yes
12107 echo "$as_me: failed program was:" >&5
12108 sed 's/^/| /' conftest.$ac_ext >&5
12110 ac_cv_lib_dl_dlopen=no
12112 rm -f conftest.err conftest.$ac_objext \
12113 conftest$ac_exeext conftest.$ac_ext
12114 LIBS=$ac_check_lib_save_LIBS
12116 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12117 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12118 if test $ac_cv_lib_dl_dlopen = yes; then
12119 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12121 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12122 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12123 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12124 echo $ECHO_N "(cached) $ECHO_C" >&6
12126 ac_check_lib_save_LIBS=$LIBS
12127 LIBS="-lsvld $LIBS"
12128 cat >conftest.$ac_ext <<_ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12135 /* Override any gcc2 internal prototype to avoid an error. */
12139 /* We use char because int might match the return type of a gcc2
12140 builtin and then its argument prototype would still apply. */
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12152 (eval $ac_link) 2>conftest.er1
12154 grep -v '^ *+' conftest.er1 >conftest.err
12156 cat conftest.err >&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } &&
12159 { ac_try='test -z "$ac_cxx_werror_flag"
12160 || test ! -s conftest.err'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; } &&
12166 { ac_try='test -s conftest$ac_exeext'
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; }; then
12172 ac_cv_lib_svld_dlopen=yes
12174 echo "$as_me: failed program was:" >&5
12175 sed 's/^/| /' conftest.$ac_ext >&5
12177 ac_cv_lib_svld_dlopen=no
12179 rm -f conftest.err conftest.$ac_objext \
12180 conftest$ac_exeext conftest.$ac_ext
12181 LIBS=$ac_check_lib_save_LIBS
12183 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12184 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12185 if test $ac_cv_lib_svld_dlopen = yes; then
12186 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12188 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12189 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12190 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12193 ac_check_lib_save_LIBS=$LIBS
12195 cat >conftest.$ac_ext <<_ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h. */
12202 /* Override any gcc2 internal prototype to avoid an error. */
12206 /* We use char because int might match the return type of a gcc2
12207 builtin and then its argument prototype would still apply. */
12217 rm -f conftest.$ac_objext conftest$ac_exeext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12219 (eval $ac_link) 2>conftest.er1
12221 grep -v '^ *+' conftest.er1 >conftest.err
12223 cat conftest.err >&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } &&
12226 { ac_try='test -z "$ac_cxx_werror_flag"
12227 || test ! -s conftest.err'
12228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229 (eval $ac_try) 2>&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; } &&
12233 { ac_try='test -s conftest$ac_exeext'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 ac_cv_lib_dld_dld_link=yes
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12244 ac_cv_lib_dld_dld_link=no
12246 rm -f conftest.err conftest.$ac_objext \
12247 conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12250 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12251 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12252 if test $ac_cv_lib_dld_dld_link = yes; then
12253 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12274 if test "x$lt_cv_dlopen" != xno; then
12280 case $lt_cv_dlopen in
12282 save_CPPFLAGS="$CPPFLAGS"
12283 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12285 save_LDFLAGS="$LDFLAGS"
12286 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12289 LIBS="$lt_cv_dlopen_libs $LIBS"
12291 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12292 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12293 if test "${lt_cv_dlopen_self+set}" = set; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12296 if test "$cross_compiling" = yes; then :
12297 lt_cv_dlopen_self=cross
12299 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12300 lt_status=$lt_dlunknown
12301 cat > conftest.$ac_ext <<EOF
12302 #line 12302 "configure"
12303 #include "confdefs.h"
12312 # define LT_DLGLOBAL RTLD_GLOBAL
12315 # define LT_DLGLOBAL DL_GLOBAL
12317 # define LT_DLGLOBAL 0
12321 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12322 find out it does not work in some platform. */
12323 #ifndef LT_DLLAZY_OR_NOW
12325 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12328 # define LT_DLLAZY_OR_NOW DL_LAZY
12331 # define LT_DLLAZY_OR_NOW RTLD_NOW
12334 # define LT_DLLAZY_OR_NOW DL_NOW
12336 # define LT_DLLAZY_OR_NOW 0
12344 extern "C" void exit (int);
12347 void fnord() { int i=42;}
12350 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12351 int status = $lt_dlunknown;
12355 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12356 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12357 /* dlclose (self); */
12363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12364 (eval $ac_link) 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12368 (./conftest; exit; ) 2>/dev/null
12370 case x$lt_status in
12371 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12372 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12373 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12376 # compilation failed
12377 lt_cv_dlopen_self=no
12384 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12385 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12387 if test "x$lt_cv_dlopen_self" = xyes; then
12388 LDFLAGS="$LDFLAGS $link_static_flag"
12389 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12390 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12391 if test "${lt_cv_dlopen_self_static+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12394 if test "$cross_compiling" = yes; then :
12395 lt_cv_dlopen_self_static=cross
12397 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12398 lt_status=$lt_dlunknown
12399 cat > conftest.$ac_ext <<EOF
12400 #line 12400 "configure"
12401 #include "confdefs.h"
12410 # define LT_DLGLOBAL RTLD_GLOBAL
12413 # define LT_DLGLOBAL DL_GLOBAL
12415 # define LT_DLGLOBAL 0
12419 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12420 find out it does not work in some platform. */
12421 #ifndef LT_DLLAZY_OR_NOW
12423 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12426 # define LT_DLLAZY_OR_NOW DL_LAZY
12429 # define LT_DLLAZY_OR_NOW RTLD_NOW
12432 # define LT_DLLAZY_OR_NOW DL_NOW
12434 # define LT_DLLAZY_OR_NOW 0
12442 extern "C" void exit (int);
12445 void fnord() { int i=42;}
12448 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12449 int status = $lt_dlunknown;
12453 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12454 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12455 /* dlclose (self); */
12461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12462 (eval $ac_link) 2>&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12466 (./conftest; exit; ) 2>/dev/null
12468 case x$lt_status in
12469 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12470 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12471 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12474 # compilation failed
12475 lt_cv_dlopen_self_static=no
12482 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12483 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12486 CPPFLAGS="$save_CPPFLAGS"
12487 LDFLAGS="$save_LDFLAGS"
12492 case $lt_cv_dlopen_self in
12493 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12494 *) enable_dlopen_self=unknown ;;
12497 case $lt_cv_dlopen_self_static in
12498 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12499 *) enable_dlopen_self_static=unknown ;;
12504 # The else clause should only fire when bootstrapping the
12505 # libtool distribution, otherwise you forgot to ship ltmain.sh
12506 # with your package, and you will get complaints that there are
12507 # no rules to generate ltmain.sh.
12508 if test -f "$ltmain"; then
12509 # See if we are running on zsh, and set the options which allow our commands through
12510 # without removal of \ escapes.
12511 if test -n "${ZSH_VERSION+set}" ; then
12512 setopt NO_GLOB_SUBST
12514 # Now quote all the things that may contain metacharacters while being
12515 # careful not to overquote the AC_SUBSTed values. We take copies of the
12516 # variables and quote the copies for generation of the libtool script.
12517 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12519 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12520 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12521 deplibs_check_method reload_flag reload_cmds need_locks \
12522 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12523 lt_cv_sys_global_symbol_to_c_name_address \
12524 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12525 old_postinstall_cmds old_postuninstall_cmds \
12529 lt_prog_compiler_wl_CXX \
12530 lt_prog_compiler_pic_CXX \
12531 lt_prog_compiler_static_CXX \
12532 lt_prog_compiler_no_builtin_flag_CXX \
12533 export_dynamic_flag_spec_CXX \
12534 thread_safe_flag_spec_CXX \
12535 whole_archive_flag_spec_CXX \
12536 enable_shared_with_static_runtimes_CXX \
12537 old_archive_cmds_CXX \
12538 old_archive_from_new_cmds_CXX \
12539 predep_objects_CXX \
12540 postdep_objects_CXX \
12543 compiler_lib_search_path_CXX \
12545 archive_expsym_cmds_CXX \
12546 postinstall_cmds_CXX \
12547 postuninstall_cmds_CXX \
12548 old_archive_from_expsyms_cmds_CXX \
12549 allow_undefined_flag_CXX \
12550 no_undefined_flag_CXX \
12551 export_symbols_cmds_CXX \
12552 hardcode_libdir_flag_spec_CXX \
12553 hardcode_libdir_flag_spec_ld_CXX \
12554 hardcode_libdir_separator_CXX \
12555 hardcode_automatic_CXX \
12557 module_expsym_cmds_CXX \
12558 lt_cv_prog_compiler_c_o_CXX \
12559 exclude_expsyms_CXX \
12560 include_expsyms_CXX; do
12563 old_archive_cmds_CXX | \
12564 old_archive_from_new_cmds_CXX | \
12565 archive_cmds_CXX | \
12566 archive_expsym_cmds_CXX | \
12567 module_cmds_CXX | \
12568 module_expsym_cmds_CXX | \
12569 old_archive_from_expsyms_cmds_CXX | \
12570 export_symbols_cmds_CXX | \
12571 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12572 postinstall_cmds | postuninstall_cmds | \
12573 old_postinstall_cmds | old_postuninstall_cmds | \
12574 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12575 # Double-quote double-evaled strings.
12576 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12579 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12585 *'\$0 --fallback-echo"')
12586 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12592 cat <<__EOF__ >> "$cfgfile"
12593 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12595 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12597 # Shell to use when invoking shell scripts.
12600 # Whether or not to build shared libraries.
12601 build_libtool_libs=$enable_shared
12603 # Whether or not to build static libraries.
12604 build_old_libs=$enable_static
12606 # Whether or not to add -lc for building shared libraries.
12607 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12609 # Whether or not to disallow shared libs when runtime libs are static
12610 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12612 # Whether or not to optimize for fast installation.
12613 fast_install=$enable_fast_install
12616 host_alias=$host_alias
12619 # An echo program that does not interpret backslashes.
12624 AR_FLAGS=$lt_AR_FLAGS
12629 # A language-specific compiler.
12630 CC=$lt_compiler_CXX
12632 # Is the compiler the GNU C compiler?
12638 # The linker used to build libraries.
12641 # Whether we need hard or soft links.
12644 # A BSD-compatible nm program.
12647 # A symbol stripping program
12650 # Used to examine libraries when file_magic_cmd begins "file"
12651 MAGIC_CMD=$MAGIC_CMD
12653 # Used on cygwin: DLL creation program.
12656 # Used on cygwin: object dumper.
12659 # Used on cygwin: assembler.
12662 # The name of the directory that contains temporary libtool files.
12665 # How to create reloadable object files.
12666 reload_flag=$lt_reload_flag
12667 reload_cmds=$lt_reload_cmds
12669 # How to pass a linker flag through the compiler.
12670 wl=$lt_lt_prog_compiler_wl_CXX
12672 # Object file suffix (normally "o").
12673 objext="$ac_objext"
12675 # Old archive suffix (normally "a").
12678 # Shared library suffix (normally ".so").
12679 shrext_cmds='$shrext_cmds'
12681 # Executable file suffix (normally "").
12684 # Additional compiler flags for building library objects.
12685 pic_flag=$lt_lt_prog_compiler_pic_CXX
12688 # What is the maximum length of a command?
12689 max_cmd_len=$lt_cv_sys_max_cmd_len
12691 # Does compiler simultaneously support -c and -o options?
12692 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12694 # Must we lock files when doing compilation ?
12695 need_locks=$lt_need_locks
12697 # Do we need the lib prefix for modules?
12698 need_lib_prefix=$need_lib_prefix
12700 # Do we need a version for libraries?
12701 need_version=$need_version
12703 # Whether dlopen is supported.
12704 dlopen_support=$enable_dlopen
12706 # Whether dlopen of programs is supported.
12707 dlopen_self=$enable_dlopen_self
12709 # Whether dlopen of statically linked programs is supported.
12710 dlopen_self_static=$enable_dlopen_self_static
12712 # Compiler flag to prevent dynamic linking.
12713 link_static_flag=$lt_lt_prog_compiler_static_CXX
12715 # Compiler flag to turn off builtin functions.
12716 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12718 # Compiler flag to allow reflexive dlopens.
12719 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12721 # Compiler flag to generate shared objects directly from archives.
12722 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12724 # Compiler flag to generate thread-safe objects.
12725 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12727 # Library versioning type.
12728 version_type=$version_type
12730 # Format of library name prefix.
12731 libname_spec=$lt_libname_spec
12733 # List of archive names. First name is the real one, the rest are links.
12734 # The last name is the one that the linker finds with -lNAME.
12735 library_names_spec=$lt_library_names_spec
12737 # The coded name of the library, if different from the real name.
12738 soname_spec=$lt_soname_spec
12740 # Commands used to build and install an old-style archive.
12742 old_archive_cmds=$lt_old_archive_cmds_CXX
12743 old_postinstall_cmds=$lt_old_postinstall_cmds
12744 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12746 # Create an old-style archive from a shared archive.
12747 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12749 # Create a temporary old-style archive to link instead of a shared archive.
12750 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12752 # Commands used to build and install a shared archive.
12753 archive_cmds=$lt_archive_cmds_CXX
12754 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12755 postinstall_cmds=$lt_postinstall_cmds
12756 postuninstall_cmds=$lt_postuninstall_cmds
12758 # Commands used to build a loadable module (assumed same as above if empty)
12759 module_cmds=$lt_module_cmds_CXX
12760 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12762 # Commands to strip libraries.
12763 old_striplib=$lt_old_striplib
12764 striplib=$lt_striplib
12766 # Dependencies to place before the objects being linked to create a
12768 predep_objects=$lt_predep_objects_CXX
12770 # Dependencies to place after the objects being linked to create a
12772 postdep_objects=$lt_postdep_objects_CXX
12774 # Dependencies to place before the objects being linked to create a
12776 predeps=$lt_predeps_CXX
12778 # Dependencies to place after the objects being linked to create a
12780 postdeps=$lt_postdeps_CXX
12782 # The library search path used internally by the compiler when linking
12783 # a shared library.
12784 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12786 # Method to check whether dependent libraries are shared objects.
12787 deplibs_check_method=$lt_deplibs_check_method
12789 # Command to use when deplibs_check_method == file_magic.
12790 file_magic_cmd=$lt_file_magic_cmd
12792 # Flag that allows shared libraries with undefined symbols to be built.
12793 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12795 # Flag that forces no undefined symbols.
12796 no_undefined_flag=$lt_no_undefined_flag_CXX
12798 # Commands used to finish a libtool library installation in a directory.
12799 finish_cmds=$lt_finish_cmds
12801 # Same as above, but a single script fragment to be evaled but not shown.
12802 finish_eval=$lt_finish_eval
12804 # Take the output of nm and produce a listing of raw symbols and C names.
12805 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12807 # Transform the output of nm in a proper C declaration
12808 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12810 # Transform the output of nm in a C name address pair
12811 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12813 # This is the shared library runtime path variable.
12814 runpath_var=$runpath_var
12816 # This is the shared library path variable.
12817 shlibpath_var=$shlibpath_var
12819 # Is shlibpath searched before the hard-coded library search path?
12820 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12822 # How to hardcode a shared library path into an executable.
12823 hardcode_action=$hardcode_action_CXX
12825 # Whether we should hardcode library paths into libraries.
12826 hardcode_into_libs=$hardcode_into_libs
12828 # Flag to hardcode \$libdir into a binary during linking.
12829 # This must work even if \$libdir does not exist.
12830 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12832 # If ld is used when linking, flag to hardcode \$libdir into
12833 # a binary during linking. This must work even if \$libdir does
12835 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12837 # Whether we need a single -rpath flag with a separated argument.
12838 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12840 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12841 # resulting binary.
12842 hardcode_direct=$hardcode_direct_CXX
12844 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12845 # resulting binary.
12846 hardcode_minus_L=$hardcode_minus_L_CXX
12848 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12849 # the resulting binary.
12850 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12852 # Set to yes if building a shared library automatically hardcodes DIR into the library
12853 # and all subsequent libraries and executables linked against it.
12854 hardcode_automatic=$hardcode_automatic_CXX
12856 # Variables whose values should be saved in libtool wrapper scripts and
12857 # restored at relink time.
12858 variables_saved_for_relink="$variables_saved_for_relink"
12860 # Whether libtool must link a program against all its dependency libraries.
12861 link_all_deplibs=$link_all_deplibs_CXX
12863 # Compile-time system search path for libraries
12864 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12866 # Run-time system search path for libraries
12867 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12869 # Fix the shell variable \$srcfile for the compiler.
12870 fix_srcfile_path="$fix_srcfile_path_CXX"
12872 # Set to yes if exported symbols are required.
12873 always_export_symbols=$always_export_symbols_CXX
12875 # The commands to list exported symbols.
12876 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12878 # The commands to extract the exported symbol list from a shared archive.
12879 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12881 # Symbols that should not be listed in the preloaded symbols.
12882 exclude_expsyms=$lt_exclude_expsyms_CXX
12884 # Symbols that must always be exported.
12885 include_expsyms=$lt_include_expsyms_CXX
12887 # ### END LIBTOOL TAG CONFIG: $tagname
12893 # If there is no Makefile yet, we rely on a make rule to execute
12894 # `config.status --recheck' to rerun these tests and create the
12895 # libtool script then.
12896 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12897 if test -f "$ltmain_in"; then
12898 test -f Makefile && make "$ltmain"
12904 ac_cpp='$CPP $CPPFLAGS'
12905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12913 with_gnu_ldcxx=$with_gnu_ld
12914 with_gnu_ld=$lt_save_with_gnu_ld
12915 lt_cv_path_LDCXX=$lt_cv_path_LD
12916 lt_cv_path_LD=$lt_save_path_LD
12917 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12918 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12926 if test -n "$F77" && test "X$F77" != "Xno"; then
12929 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12930 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12931 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12934 archive_cmds_need_lc_F77=no
12935 allow_undefined_flag_F77=
12936 always_export_symbols_F77=no
12937 archive_expsym_cmds_F77=
12938 export_dynamic_flag_spec_F77=
12939 hardcode_direct_F77=no
12940 hardcode_libdir_flag_spec_F77=
12941 hardcode_libdir_flag_spec_ld_F77=
12942 hardcode_libdir_separator_F77=
12943 hardcode_minus_L_F77=no
12944 hardcode_automatic_F77=no
12946 module_expsym_cmds_F77=
12947 link_all_deplibs_F77=unknown
12948 old_archive_cmds_F77=$old_archive_cmds
12949 no_undefined_flag_F77=
12950 whole_archive_flag_spec_F77=
12951 enable_shared_with_static_runtimes_F77=no
12953 # Source file extension for f77 test sources.
12956 # Object file extension for compiled f77 test sources.
12960 # Code to be used in simple compile tests
12961 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12963 # Code to be used in simple link tests
12964 lt_simple_link_test_code=" program t\n end\n"
12966 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12968 # If no C compiler was specified, use CC.
12971 # Allow CC to be a program name with arguments.
12975 # Allow CC to be a program name with arguments.
12980 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12982 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12983 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12984 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12985 echo "${ECHO_T}$can_build_shared" >&6
12987 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12988 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12989 test "$can_build_shared" = "no" && enable_shared=no
12991 # On AIX, shared libraries and static libraries use the same namespace, and
12992 # are all built from PIC.
12995 test "$enable_shared" = yes && enable_static=no
12996 if test -n "$RANLIB"; then
12997 archive_cmds="$archive_cmds;\$RANLIB \$lib"
12998 postinstall_cmds='$RANLIB $lib'
13002 test "$enable_shared" = yes && enable_static=no
13005 echo "$as_me:$LINENO: result: $enable_shared" >&5
13006 echo "${ECHO_T}$enable_shared" >&6
13008 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13009 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13010 # Make sure either enable_shared or enable_static is yes.
13011 test "$enable_shared" = yes || enable_static=yes
13012 echo "$as_me:$LINENO: result: $enable_static" >&5
13013 echo "${ECHO_T}$enable_static" >&6
13015 test "$ld_shlibs_F77" = no && can_build_shared=no
13020 lt_prog_compiler_wl_F77=
13021 lt_prog_compiler_pic_F77=
13022 lt_prog_compiler_static_F77=
13024 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13025 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13027 if test "$GCC" = yes; then
13028 lt_prog_compiler_wl_F77='-Wl,'
13029 lt_prog_compiler_static_F77='-static'
13033 # All AIX code is PIC.
13034 if test "$host_cpu" = ia64; then
13035 # AIX 5 now supports IA64 processor
13036 lt_prog_compiler_static_F77='-Bstatic'
13041 # FIXME: we need at least 68020 code to build shared libraries, but
13042 # adding the `-m68020' flag to GCC prevents building anything better,
13044 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13047 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13048 # PIC is the default for these OSes.
13051 mingw* | pw32* | os2*)
13052 # This hack is so that the source file can tell whether it is being
13053 # built for inclusion in a dll (and should export symbols for example).
13054 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13057 darwin* | rhapsody*)
13058 # PIC is the default on this platform
13059 # Common symbols not allowed in MH_DYLIB files
13060 lt_prog_compiler_pic_F77='-fno-common'
13064 # Just because we use GCC doesn't mean we suddenly get shared libraries
13065 # on systems that don't support them.
13066 lt_prog_compiler_can_build_shared_F77=no
13071 if test -d /usr/nec; then
13072 lt_prog_compiler_pic_F77=-Kconform_pic
13077 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13078 # not for PA HP-UX.
13079 case "$host_cpu" in
13084 lt_prog_compiler_pic_F77='-fPIC'
13090 lt_prog_compiler_pic_F77='-fPIC'
13094 # PORTME Check for flag to pass linker flags through the system compiler.
13097 lt_prog_compiler_wl_F77='-Wl,'
13098 if test "$host_cpu" = ia64; then
13099 # AIX 5 now supports IA64 processor
13100 lt_prog_compiler_static_F77='-Bstatic'
13102 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13106 # PIC is the default on this platform
13107 # Common symbols not allowed in MH_DYLIB files
13108 case "$cc_basename" in
13110 lt_prog_compiler_pic_F77='-qnocommon'
13111 lt_prog_compiler_wl_F77='-Wl,'
13116 mingw* | pw32* | os2*)
13117 # This hack is so that the source file can tell whether it is being
13118 # built for inclusion in a dll (and should export symbols for example).
13119 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13122 hpux9* | hpux10* | hpux11*)
13123 lt_prog_compiler_wl_F77='-Wl,'
13124 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13125 # not for PA HP-UX.
13126 case "$host_cpu" in
13131 lt_prog_compiler_pic_F77='+Z'
13134 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13135 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13138 irix5* | irix6* | nonstopux*)
13139 lt_prog_compiler_wl_F77='-Wl,'
13140 # PIC (with -KPIC) is the default.
13141 lt_prog_compiler_static_F77='-non_shared'
13145 lt_prog_compiler_pic_F77='-KPIC'
13146 lt_prog_compiler_static_F77='-Bstatic'
13152 lt_prog_compiler_wl_F77='-Wl,'
13153 lt_prog_compiler_pic_F77='-KPIC'
13154 lt_prog_compiler_static_F77='-static'
13157 lt_prog_compiler_wl_F77='-Wl,'
13158 # All Alpha code is PIC.
13159 lt_prog_compiler_static_F77='-non_shared'
13164 osf3* | osf4* | osf5*)
13165 lt_prog_compiler_wl_F77='-Wl,'
13166 # All OSF/1 code is PIC.
13167 lt_prog_compiler_static_F77='-non_shared'
13171 lt_prog_compiler_pic_F77='-Kpic'
13172 lt_prog_compiler_static_F77='-dn'
13176 lt_prog_compiler_wl_F77='-Wl,'
13177 lt_prog_compiler_pic_F77='-KPIC'
13178 lt_prog_compiler_static_F77='-Bstatic'
13182 lt_prog_compiler_wl_F77='-Qoption ld '
13183 lt_prog_compiler_pic_F77='-PIC'
13184 lt_prog_compiler_static_F77='-Bstatic'
13187 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13188 lt_prog_compiler_wl_F77='-Wl,'
13189 lt_prog_compiler_pic_F77='-KPIC'
13190 lt_prog_compiler_static_F77='-Bstatic'
13194 if test -d /usr/nec ;then
13195 lt_prog_compiler_pic_F77='-Kconform_pic'
13196 lt_prog_compiler_static_F77='-Bstatic'
13201 lt_prog_compiler_pic_F77='-pic'
13202 lt_prog_compiler_static_F77='-Bstatic'
13206 lt_prog_compiler_can_build_shared_F77=no
13211 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13212 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13215 # Check to make sure the PIC flag actually works.
13217 if test -n "$lt_prog_compiler_pic_F77"; then
13219 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13220 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13221 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13224 lt_prog_compiler_pic_works_F77=no
13225 ac_outfile=conftest.$ac_objext
13226 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13227 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13228 # Insert the option either (1) after the last *FLAGS variable, or
13229 # (2) before a word containing "conftest.", or (3) at the end.
13230 # Note that $ac_compile itself does not contain backslashes and begins
13231 # with a dollar sign (not a hyphen), so the echo should work correctly.
13232 # The option is referenced via a variable to avoid confusing sed.
13233 lt_compile=`echo "$ac_compile" | $SED \
13234 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13236 -e 's:$: $lt_compiler_flag:'`
13237 (eval echo "\"\$as_me:13237: $lt_compile\"" >&5)
13238 (eval "$lt_compile" 2>conftest.err)
13240 cat conftest.err >&5
13241 echo "$as_me:13241: \$? = $ac_status" >&5
13242 if (exit $ac_status) && test -s "$ac_outfile"; then
13243 # The compiler can only warn and ignore the option if not recognized
13244 # So say no if there are warnings
13245 if test ! -s conftest.err; then
13246 lt_prog_compiler_pic_works_F77=yes
13252 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13253 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13255 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13256 case $lt_prog_compiler_pic_F77 in
13258 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13261 lt_prog_compiler_pic_F77=
13262 lt_prog_compiler_can_build_shared_F77=no
13267 # For platforms which do not support PIC, -DPIC is meaningless:
13269 lt_prog_compiler_pic_F77=
13272 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13276 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13277 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13278 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13281 lt_cv_prog_compiler_c_o_F77=no
13282 $rm -r conftest 2>/dev/null
13286 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13288 lt_compiler_flag="-o out/conftest2.$ac_objext"
13289 # Insert the option either (1) after the last *FLAGS variable, or
13290 # (2) before a word containing "conftest.", or (3) at the end.
13291 # Note that $ac_compile itself does not contain backslashes and begins
13292 # with a dollar sign (not a hyphen), so the echo should work correctly.
13293 lt_compile=`echo "$ac_compile" | $SED \
13294 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13296 -e 's:$: $lt_compiler_flag:'`
13297 (eval echo "\"\$as_me:13297: $lt_compile\"" >&5)
13298 (eval "$lt_compile" 2>out/conftest.err)
13300 cat out/conftest.err >&5
13301 echo "$as_me:13301: \$? = $ac_status" >&5
13302 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13304 # The compiler can only warn and ignore the option if not recognized
13305 # So say no if there are warnings
13306 if test ! -s out/conftest.err; then
13307 lt_cv_prog_compiler_c_o_F77=yes
13312 # SGI C++ compiler will create directory out/ii_files/ for
13313 # template instantiation
13314 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13315 $rm out/* && rmdir out
13321 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13322 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13325 hard_links="nottested"
13326 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13327 # do not overwrite the value of need_locks provided by the user
13328 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13329 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13332 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13334 ln conftest.a conftest.b 2>&5 || hard_links=no
13335 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13336 echo "$as_me:$LINENO: result: $hard_links" >&5
13337 echo "${ECHO_T}$hard_links" >&6
13338 if test "$hard_links" = no; then
13339 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13340 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13347 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13348 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13351 allow_undefined_flag_F77=
13352 enable_shared_with_static_runtimes_F77=no
13354 archive_expsym_cmds_F77=
13355 old_archive_From_new_cmds_F77=
13356 old_archive_from_expsyms_cmds_F77=
13357 export_dynamic_flag_spec_F77=
13358 whole_archive_flag_spec_F77=
13359 thread_safe_flag_spec_F77=
13360 hardcode_libdir_flag_spec_F77=
13361 hardcode_libdir_flag_spec_ld_F77=
13362 hardcode_libdir_separator_F77=
13363 hardcode_direct_F77=no
13364 hardcode_minus_L_F77=no
13365 hardcode_shlibpath_var_F77=unsupported
13366 link_all_deplibs_F77=unknown
13367 hardcode_automatic_F77=no
13369 module_expsym_cmds_F77=
13370 always_export_symbols_F77=no
13371 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13372 # include_expsyms should be a list of space-separated symbols to be *always*
13373 # included in the symbol list
13374 include_expsyms_F77=
13375 # exclude_expsyms can be an extended regexp of symbols to exclude
13376 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13377 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13378 # as well as any symbol that contains `d'.
13379 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13380 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13381 # platforms (ab)use it in PIC code, but their linkers get confused if
13382 # the symbol is explicitly referenced. Since portable code cannot
13383 # rely on this symbol name, it's probably fine to never include it in
13384 # preloaded symbol tables.
13385 extract_expsyms_cmds=
13388 cygwin* | mingw* | pw32*)
13389 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13390 # When not using gcc, we currently assume that we are using
13391 # Microsoft Visual C++.
13392 if test "$GCC" != yes; then
13402 if test "$with_gnu_ld" = yes; then
13403 # If archive_cmds runs LD, not CC, wlarc should be empty
13406 # See if GNU ld supports shared libraries.
13408 aix3* | aix4* | aix5*)
13409 # On AIX/PPC, the GNU linker is very broken
13410 if test "$host_cpu" != ia64; then
13414 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13415 *** to be unable to reliably create shared libraries on AIX.
13416 *** Therefore, libtool is disabling shared libraries support. If you
13417 *** really care for shared libraries, you may want to modify your PATH
13418 *** so that a non-GNU linker is found, and then restart.
13425 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)'
13426 hardcode_libdir_flag_spec_F77='-L$libdir'
13427 hardcode_minus_L_F77=yes
13429 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13430 # that the semantics of dynamic libraries on AmigaOS, at least up
13431 # to version 4, is to share data among multiple programs linked
13432 # with the same dynamic library. Since this doesn't match the
13433 # behavior of shared libraries on other platforms, we can't use
13439 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13440 allow_undefined_flag_F77=unsupported
13441 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13442 # support --undefined. This deserves some investigation. FIXME
13443 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13449 cygwin* | mingw* | pw32*)
13450 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13451 # as there is no search path for DLLs.
13452 hardcode_libdir_flag_spec_F77='-L$libdir'
13453 allow_undefined_flag_F77=unsupported
13454 always_export_symbols_F77=no
13455 enable_shared_with_static_runtimes_F77=yes
13456 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13458 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13459 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13460 # If the export-symbols file already is a .def file (1st line
13461 # is EXPORTS), use it as is; otherwise, prepend...
13462 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13463 cp $export_symbols $output_objdir/$soname.def;
13465 echo EXPORTS > $output_objdir/$soname.def;
13466 cat $export_symbols >> $output_objdir/$soname.def;
13467 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13474 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13475 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13478 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13479 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13484 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13488 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13489 *** create shared libraries on Solaris systems. Therefore, libtool
13490 *** is disabling shared libraries support. We urge you to upgrade GNU
13491 *** binutils to release 2.9.1 or newer. Another option is to modify
13492 *** your PATH or compiler configuration so that the native linker is
13493 *** used, and then restart.
13496 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13497 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13498 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13505 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13507 hardcode_direct_F77=yes
13508 hardcode_shlibpath_var_F77=no
13512 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13513 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13514 archive_cmds_F77="$tmp_archive_cmds"
13515 supports_anon_versioning=no
13516 case `$LD -v 2>/dev/null` in
13517 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13518 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13519 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13520 *\ 2.11.*) ;; # other 2.11 versions
13521 *) supports_anon_versioning=yes ;;
13523 if test $supports_anon_versioning = yes; then
13524 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;
13525 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13527 archive_expsym_cmds_F77="$tmp_archive_cmds"
13535 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13536 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13537 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13544 if test "$ld_shlibs_F77" = yes; then
13545 runpath_var=LD_RUN_PATH
13546 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13547 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13548 # ancient GNU ld didn't support --whole-archive et. al.
13549 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13550 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13552 whole_archive_flag_spec_F77=
13556 # PORTME fill in a description of your system's linker (not GNU ld)
13559 allow_undefined_flag_F77=unsupported
13560 always_export_symbols_F77=yes
13561 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'
13562 # Note: this linker hardcodes the directories in LIBPATH if there
13563 # are no directories specified by -L.
13564 hardcode_minus_L_F77=yes
13565 if test "$GCC" = yes && test -z "$link_static_flag"; then
13566 # Neither direct hardcoding nor static linking is supported with a
13568 hardcode_direct_F77=unsupported
13573 if test "$host_cpu" = ia64; then
13574 # On IA64, the linker does run time linking by default, so we don't
13575 # have to do anything special.
13576 aix_use_runtimelinking=no
13577 exp_sym_flag='-Bexport'
13580 # If we're using GNU nm, then we don't want the "-C" option.
13581 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13582 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13583 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'
13585 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'
13587 aix_use_runtimelinking=no
13589 # Test if we are trying to use run time linking or normal
13590 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13591 # need to do runtime linking.
13592 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13593 for ld_flag in $LDFLAGS; do
13594 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13595 aix_use_runtimelinking=yes
13601 exp_sym_flag='-bexport'
13602 no_entry_flag='-bnoentry'
13605 # When large executables or shared objects are built, AIX ld can
13606 # have problems creating the table of contents. If linking a library
13607 # or program results in "error TOC overflow" add -mminimal-toc to
13608 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13609 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13611 archive_cmds_F77=''
13612 hardcode_direct_F77=yes
13613 hardcode_libdir_separator_F77=':'
13614 link_all_deplibs_F77=yes
13616 if test "$GCC" = yes; then
13617 case $host_os in aix4.012|aix4.012.*)
13618 # We only want to do this on AIX 4.2 and lower, the check
13619 # below for broken collect2 doesn't work under 4.3+
13620 collect2name=`${CC} -print-prog-name=collect2`
13621 if test -f "$collect2name" && \
13622 strings "$collect2name" | grep resolve_lib_name >/dev/null
13624 # We have reworked collect2
13625 hardcode_direct_F77=yes
13627 # We have old collect2
13628 hardcode_direct_F77=unsupported
13629 # It fails to find uninstalled libraries when the uninstalled
13630 # path is not listed in the libpath. Setting hardcode_minus_L
13631 # to unsupported forces relinking
13632 hardcode_minus_L_F77=yes
13633 hardcode_libdir_flag_spec_F77='-L$libdir'
13634 hardcode_libdir_separator_F77=
13637 shared_flag='-shared'
13640 if test "$host_cpu" = ia64; then
13641 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13642 # chokes on -Wl,-G. The following line is correct:
13645 if test "$aix_use_runtimelinking" = yes; then
13646 shared_flag='${wl}-G'
13648 shared_flag='${wl}-bM:SRE'
13653 # It seems that -bexpall does not export symbols beginning with
13654 # underscore (_), so it is better to generate a list of symbols to export.
13655 always_export_symbols_F77=yes
13656 if test "$aix_use_runtimelinking" = yes; then
13657 # Warning - without using the other runtime loading flags (-brtl),
13658 # -berok will link without error, but may produce a broken library.
13659 allow_undefined_flag_F77='-berok'
13660 # Determine the default libpath from the value encoded in an empty executable.
13661 cat >conftest.$ac_ext <<_ACEOF
13666 rm -f conftest.$ac_objext conftest$ac_exeext
13667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13668 (eval $ac_link) 2>conftest.er1
13670 grep -v '^ *+' conftest.er1 >conftest.err
13672 cat conftest.err >&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
13675 { ac_try='test -z "$ac_f77_werror_flag"
13676 || test ! -s conftest.err'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; } &&
13682 { ac_try='test -s conftest$ac_exeext'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13689 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13691 # Check for a 64-bit object if we didn't find anything.
13692 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; }
13695 echo "$as_me: failed program was:" >&5
13696 sed 's/^/| /' conftest.$ac_ext >&5
13699 rm -f conftest.err conftest.$ac_objext \
13700 conftest$ac_exeext conftest.$ac_ext
13701 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13703 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13704 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"
13706 if test "$host_cpu" = ia64; then
13707 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13708 allow_undefined_flag_F77="-z nodefs"
13709 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"
13711 # Determine the default libpath from the value encoded in an empty executable.
13712 cat >conftest.$ac_ext <<_ACEOF
13717 rm -f conftest.$ac_objext conftest$ac_exeext
13718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13719 (eval $ac_link) 2>conftest.er1
13721 grep -v '^ *+' conftest.er1 >conftest.err
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
13726 { ac_try='test -z "$ac_f77_werror_flag"
13727 || test ! -s conftest.err'
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; } &&
13733 { ac_try='test -s conftest$ac_exeext'
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; }; then
13740 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13742 # Check for a 64-bit object if we didn't find anything.
13743 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; }
13746 echo "$as_me: failed program was:" >&5
13747 sed 's/^/| /' conftest.$ac_ext >&5
13750 rm -f conftest.err conftest.$ac_objext \
13751 conftest$ac_exeext conftest.$ac_ext
13752 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13754 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13755 # Warning - without using the other run time loading flags,
13756 # -berok will link without error, but may produce a broken library.
13757 no_undefined_flag_F77=' ${wl}-bernotok'
13758 allow_undefined_flag_F77=' ${wl}-berok'
13759 # -bexpall does not export symbols beginning with underscore (_)
13760 always_export_symbols_F77=yes
13761 # Exported symbols can be pulled into shared objects from archives
13762 whole_archive_flag_spec_F77=' '
13763 archive_cmds_need_lc_F77=yes
13764 # This is similar to how AIX traditionally builds it's shared libraries.
13765 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'
13771 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)'
13772 hardcode_libdir_flag_spec_F77='-L$libdir'
13773 hardcode_minus_L_F77=yes
13774 # see comment about different semantics on the GNU ld section
13779 export_dynamic_flag_spec_F77=-rdynamic
13782 cygwin* | mingw* | pw32*)
13783 # When not using gcc, we currently assume that we are using
13784 # Microsoft Visual C++.
13785 # hardcode_libdir_flag_spec is actually meaningless, as there is
13786 # no search path for DLLs.
13787 hardcode_libdir_flag_spec_F77=' '
13788 allow_undefined_flag_F77=unsupported
13789 # Tell ltmain to make .lib files, not .a files.
13791 # Tell ltmain to make .dll files, not .so files.
13793 # FIXME: Setting linknames here is a bad hack.
13794 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
13795 # The linker will automatically build a .lib file if we build a DLL.
13796 old_archive_From_new_cmds_F77='true'
13797 # FIXME: Should let the user specify the lib program.
13798 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13799 fix_srcfile_path='`cygpath -w "$srcfile"`'
13800 enable_shared_with_static_runtimes_F77=yes
13803 darwin* | rhapsody*)
13805 rhapsody* | darwin1.[012])
13806 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13809 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13810 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13812 case ${MACOSX_DEPLOYMENT_TARGET} in
13814 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13817 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13823 archive_cmds_need_lc_F77=no
13824 hardcode_direct_F77=no
13825 hardcode_automatic_F77=yes
13826 hardcode_shlibpath_var_F77=unsupported
13827 whole_archive_flag_spec_F77=''
13828 link_all_deplibs_F77=yes
13829 if test "$GCC" = yes ; then
13830 output_verbose_link_cmd='echo'
13831 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13832 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13833 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13834 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}'
13835 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}'
13837 case "$cc_basename" in
13839 output_verbose_link_cmd='echo'
13840 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13841 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13842 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13843 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}'
13844 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}'
13854 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13855 hardcode_libdir_flag_spec_F77='-L$libdir'
13856 hardcode_shlibpath_var_F77=no
13863 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13864 # support. Future versions do this automatically, but an explicit c++rt0.o
13865 # does not break anything, and helps significantly (at the cost of a little
13868 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13869 hardcode_libdir_flag_spec_F77='-R$libdir'
13870 hardcode_direct_F77=yes
13871 hardcode_shlibpath_var_F77=no
13874 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13876 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13877 hardcode_direct_F77=yes
13878 hardcode_minus_L_F77=yes
13879 hardcode_shlibpath_var_F77=no
13882 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13883 freebsd* | kfreebsd*-gnu)
13884 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13885 hardcode_libdir_flag_spec_F77='-R$libdir'
13886 hardcode_direct_F77=yes
13887 hardcode_shlibpath_var_F77=no
13891 if test "$GCC" = yes; then
13892 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'
13894 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'
13896 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13897 hardcode_libdir_separator_F77=:
13898 hardcode_direct_F77=yes
13900 # hardcode_minus_L: Not really in the search PATH,
13901 # but as the default location of the library.
13902 hardcode_minus_L_F77=yes
13903 export_dynamic_flag_spec_F77='${wl}-E'
13907 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13908 case "$host_cpu" in
13910 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13913 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13917 case "$host_cpu" in
13919 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13922 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13926 if test "$with_gnu_ld" = no; then
13927 case "$host_cpu" in
13929 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13930 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13931 hardcode_libdir_separator_F77=:
13932 hardcode_direct_F77=no
13933 hardcode_shlibpath_var_F77=no
13936 hardcode_libdir_flag_spec_F77='-L$libdir'
13937 hardcode_direct_F77=no
13938 hardcode_shlibpath_var_F77=no
13940 # hardcode_minus_L: Not really in the search PATH,
13941 # but as the default location of the library.
13942 hardcode_minus_L_F77=yes
13945 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13946 hardcode_libdir_separator_F77=:
13947 hardcode_direct_F77=yes
13948 export_dynamic_flag_spec_F77='${wl}-E'
13950 # hardcode_minus_L: Not really in the search PATH,
13951 # but as the default location of the library.
13952 hardcode_minus_L_F77=yes
13958 irix5* | irix6* | nonstopux*)
13959 if test "$GCC" = yes; then
13960 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'
13962 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'
13963 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13965 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13966 hardcode_libdir_separator_F77=:
13967 link_all_deplibs_F77=yes
13971 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13972 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13974 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13976 hardcode_libdir_flag_spec_F77='-R$libdir'
13977 hardcode_direct_F77=yes
13978 hardcode_shlibpath_var_F77=no
13982 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13983 hardcode_direct_F77=yes
13984 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13985 hardcode_libdir_separator_F77=:
13986 hardcode_shlibpath_var_F77=no
13990 hardcode_direct_F77=yes
13991 hardcode_shlibpath_var_F77=no
13992 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13993 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13994 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13995 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13996 export_dynamic_flag_spec_F77='${wl}-E'
13999 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14000 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14001 hardcode_libdir_flag_spec_F77='-R$libdir'
14004 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14005 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14012 hardcode_libdir_flag_spec_F77='-L$libdir'
14013 hardcode_minus_L_F77=yes
14014 allow_undefined_flag_F77=unsupported
14015 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'
14016 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14020 if test "$GCC" = yes; then
14021 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14022 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'
14024 allow_undefined_flag_F77=' -expect_unresolved \*'
14025 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'
14027 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14028 hardcode_libdir_separator_F77=:
14031 osf4* | osf5*) # as osf3* with the addition of -msym flag
14032 if test "$GCC" = yes; then
14033 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14034 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'
14035 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14037 allow_undefined_flag_F77=' -expect_unresolved \*'
14038 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'
14039 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'
14040 # Both c and cxx compiler support -rpath directly
14041 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14043 hardcode_libdir_separator_F77=:
14047 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14048 hardcode_shlibpath_var_F77=no
14049 export_dynamic_flag_spec_F77='${wl}-Bexport'
14050 runpath_var=LD_RUN_PATH
14051 hardcode_runpath_var=yes
14055 no_undefined_flag_F77=' -z text'
14056 if test "$GCC" = yes; then
14057 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14058 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'
14060 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14061 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'
14063 hardcode_libdir_flag_spec_F77='-R$libdir'
14064 hardcode_shlibpath_var_F77=no
14066 solaris2.[0-5] | solaris2.[0-5].*) ;;
14067 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14068 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14070 link_all_deplibs_F77=yes
14074 if test "x$host_vendor" = xsequent; then
14075 # Use $CC to link under sequent, because it throws in some extra .o
14076 # files that make .init and .fini sections work.
14077 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14079 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14081 hardcode_libdir_flag_spec_F77='-L$libdir'
14082 hardcode_direct_F77=yes
14083 hardcode_minus_L_F77=yes
14084 hardcode_shlibpath_var_F77=no
14088 case $host_vendor in
14090 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14091 hardcode_direct_F77=yes # is this really true???
14094 ## LD is ld it makes a PLAMLIB
14095 ## CC just makes a GrossModule.
14096 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14097 reload_cmds_F77='$CC -r -o $output$reload_objs'
14098 hardcode_direct_F77=no
14101 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14102 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14105 runpath_var='LD_RUN_PATH'
14106 hardcode_shlibpath_var_F77=no
14110 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14111 hardcode_shlibpath_var_F77=no
14112 export_dynamic_flag_spec_F77='-Bexport'
14116 if test -d /usr/nec; then
14117 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14118 hardcode_shlibpath_var_F77=no
14119 runpath_var=LD_RUN_PATH
14120 hardcode_runpath_var=yes
14126 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14127 hardcode_direct_F77=yes
14128 hardcode_minus_L_F77=no
14129 hardcode_shlibpath_var_F77=no
14130 hardcode_runpath_var=yes
14131 runpath_var=LD_RUN_PATH
14134 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14135 no_undefined_flag_F77='${wl}-z ${wl}text'
14136 if test "$GCC" = yes; then
14137 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14139 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14141 runpath_var='LD_RUN_PATH'
14142 hardcode_shlibpath_var_F77=no
14146 no_undefined_flag_F77=' -z text'
14147 # $CC -shared without GNU ld will not create a library from C++
14148 # object files and a static libstdc++, better avoid it by now
14149 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14150 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'
14151 hardcode_libdir_flag_spec_F77=
14152 hardcode_shlibpath_var_F77=no
14153 runpath_var='LD_RUN_PATH'
14157 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14158 hardcode_libdir_flag_spec_F77='-L$libdir'
14159 hardcode_shlibpath_var_F77=no
14168 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14169 echo "${ECHO_T}$ld_shlibs_F77" >&6
14170 test "$ld_shlibs_F77" = no && can_build_shared=no
14172 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14173 if test "$GCC" = yes; then
14174 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14178 # Do we need to explicitly link libc?
14180 case "x$archive_cmds_need_lc_F77" in
14182 # Assume -lc should be added
14183 archive_cmds_need_lc_F77=yes
14185 if test "$enable_shared" = yes && test "$GCC" = yes; then
14186 case $archive_cmds_F77 in
14188 # FIXME: we may have to deal with multi-command sequences.
14191 # Test whether the compiler implicitly links with -lc since on some
14192 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14193 # to ld, don't add -lc before -lgcc.
14194 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14195 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14197 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14200 (eval $ac_compile) 2>&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } 2>conftest.err; then
14206 libobjs=conftest.$ac_objext
14208 wl=$lt_prog_compiler_wl_F77
14214 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14215 allow_undefined_flag_F77=
14216 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14217 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }
14222 archive_cmds_need_lc_F77=no
14224 archive_cmds_need_lc_F77=yes
14226 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14228 cat conftest.err 1>&5
14231 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14232 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14239 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14240 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14241 library_names_spec=
14242 libname_spec='lib$name'
14246 postuninstall_cmds=
14250 shlibpath_overrides_runpath=unknown
14252 dynamic_linker="$host_os ld.so"
14253 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14254 if test "$GCC" = yes; then
14255 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14256 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14257 # if the path contains ";" then we assume it to be the separator
14258 # otherwise default to the standard path separator (i.e. ":") - it is
14259 # assumed that no part of a normal pathname contains ";" but that should
14260 # okay in the real world where ";" in dirpaths is itself problematic.
14261 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14263 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14266 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14268 need_lib_prefix=unknown
14269 hardcode_into_libs=no
14271 # when you set need_version to no, make sure it does not cause -set_version
14272 # flags to be left without arguments
14273 need_version=unknown
14278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14279 shlibpath_var=LIBPATH
14281 # AIX 3 has no versioning support, so we append a major version to the name.
14282 soname_spec='${libname}${release}${shared_ext}$major'
14289 hardcode_into_libs=yes
14290 if test "$host_cpu" = ia64; then
14291 # AIX 5 supports IA64
14292 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14293 shlibpath_var=LD_LIBRARY_PATH
14295 # With GCC up to 2.95.x, collect2 would create an import file
14296 # for dependence libraries. The import file would start with
14297 # the line `#! .'. This would cause the generated library to
14298 # depend on `.', always an invalid library. This was fixed in
14299 # development snapshots of GCC prior to 3.0.
14301 aix4 | aix4.[01] | aix4.[01].*)
14302 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14304 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14307 can_build_shared=no
14311 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14312 # soname into executable. Probably we can add versioning support to
14313 # collect2, so additional links can be useful in future.
14314 if test "$aix_use_runtimelinking" = yes; then
14315 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14316 # instead of lib<name>.a to let people know that these are not
14317 # typical AIX shared libraries.
14318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14320 # We preserve .a as extension for shared libraries through AIX4.2
14321 # and later when we are not doing run time linking.
14322 library_names_spec='${libname}${release}.a $libname.a'
14323 soname_spec='${libname}${release}${shared_ext}$major'
14325 shlibpath_var=LIBPATH
14330 library_names_spec='$libname.ixlibrary $libname.a'
14331 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14332 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'
14336 library_names_spec='${libname}${shared_ext}'
14337 dynamic_linker="$host_os ld.so"
14338 shlibpath_var=LIBRARY_PATH
14344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14345 soname_spec='${libname}${release}${shared_ext}$major'
14346 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14347 shlibpath_var=LD_LIBRARY_PATH
14348 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14349 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14350 # the default ld.so.conf also contains /usr/contrib/lib and
14351 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14352 # libtool to hard-code these into programs
14355 cygwin* | mingw* | pw32*)
14356 version_type=windows
14361 case $GCC,$host_os in
14362 yes,cygwin* | yes,mingw* | yes,pw32*)
14363 library_names_spec='$libname.dll.a'
14364 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14365 postinstall_cmds='base_file=`basename \${file}`;
14366 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
14367 dldir=$destdir/`dirname \$dlpath`;
14368 test -d \$dldir || mkdir -p \$dldir;
14369 $install_prog $dir/$dlname \$dldir/$dlname'
14370 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
14371 dlpath=$dir/\$dldll;
14373 shlibpath_overrides_runpath=yes
14377 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14378 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14379 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14382 # MinGW DLLs use traditional 'lib' prefix
14383 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14384 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14385 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14386 # It is most probably a Windows format PATH printed by
14387 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14388 # path with ; separators, and with drive letters. We can handle the
14389 # drive letters (cygwin fileutils understands them), so leave them,
14390 # especially as we might pass files found there to a mingw objdump,
14391 # which wouldn't understand a cygwinified path. Ahh.
14392 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14394 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14398 # pw32 DLLs use 'pw' prefix rather than 'lib'
14399 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14405 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14408 dynamic_linker='Win32 ld.exe'
14409 # FIXME: first we should search . and the directory the executable is in
14413 darwin* | rhapsody*)
14414 dynamic_linker="$host_os dyld"
14415 version_type=darwin
14418 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14419 soname_spec='${libname}${release}${major}$shared_ext'
14420 shlibpath_overrides_runpath=yes
14421 shlibpath_var=DYLD_LIBRARY_PATH
14422 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14423 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14424 if test "$GCC" = yes; then
14425 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"`
14427 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14429 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14437 soname_spec='${libname}${release}${shared_ext}$major'
14438 shlibpath_var=LD_LIBRARY_PATH
14449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14450 soname_spec='${libname}${release}${shared_ext}$major'
14451 shlibpath_var=LD_LIBRARY_PATH
14452 shlibpath_overrides_runpath=no
14453 hardcode_into_libs=yes
14454 dynamic_linker='GNU ld.so'
14458 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14459 version_type=freebsd-$objformat
14460 case $version_type in
14462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14471 shlibpath_var=LD_LIBRARY_PATH
14474 shlibpath_overrides_runpath=yes
14476 freebsd3.01* | freebsdelf3.01*)
14477 shlibpath_overrides_runpath=yes
14478 hardcode_into_libs=yes
14481 shlibpath_overrides_runpath=no
14482 hardcode_into_libs=yes
14491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14492 soname_spec='${libname}${release}${shared_ext}$major'
14493 shlibpath_var=LD_LIBRARY_PATH
14494 hardcode_into_libs=yes
14497 hpux9* | hpux10* | hpux11*)
14498 # Give a soname corresponding to the major version so that dld.sl refuses to
14499 # link against other versions.
14503 case "$host_cpu" in
14506 hardcode_into_libs=yes
14507 dynamic_linker="$host_os dld.so"
14508 shlibpath_var=LD_LIBRARY_PATH
14509 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511 soname_spec='${libname}${release}${shared_ext}$major'
14512 if test "X$HPUX_IA64_MODE" = X32; then
14513 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14515 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14521 hardcode_into_libs=yes
14522 dynamic_linker="$host_os dld.sl"
14523 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14526 soname_spec='${libname}${release}${shared_ext}$major'
14527 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14528 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14532 dynamic_linker="$host_os dld.sl"
14533 shlibpath_var=SHLIB_PATH
14534 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14536 soname_spec='${libname}${release}${shared_ext}$major'
14539 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14540 postinstall_cmds='chmod 555 $lib'
14543 irix5* | irix6* | nonstopux*)
14545 nonstopux*) version_type=nonstopux ;;
14547 if test "$lt_cv_prog_gnu_ld" = yes; then
14555 soname_spec='${libname}${release}${shared_ext}$major'
14556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14558 irix5* | nonstopux*)
14559 libsuff= shlibsuff=
14562 case $LD in # libtool.m4 will add one of these switches to LD
14563 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14564 libsuff= shlibsuff= libmagic=32-bit;;
14565 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14566 libsuff=32 shlibsuff=N32 libmagic=N32;;
14567 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14568 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14569 *) libsuff= shlibsuff= libmagic=never-match;;
14573 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14574 shlibpath_overrides_runpath=no
14575 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14576 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14577 hardcode_into_libs=yes
14580 # No shared lib support for Linux oldld, aout, or coff.
14581 linux*oldld* | linux*aout* | linux*coff*)
14585 # This must be Linux ELF.
14590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14591 soname_spec='${libname}${release}${shared_ext}$major'
14592 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14593 shlibpath_var=LD_LIBRARY_PATH
14594 shlibpath_overrides_runpath=no
14595 # This implies no fast_install, which is unacceptable.
14596 # Some rework will be needed to allow for fast_install
14597 # before this can be enabled.
14598 hardcode_into_libs=yes
14600 # Append ld.so.conf contents to the search path
14601 if test -f /etc/ld.so.conf; then
14602 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14603 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14606 # We used to test for /lib/ld.so.1 and disable shared libraries on
14607 # powerpc, because MkLinux only supported shared libraries with the
14608 # GNU dynamic linker. Since this was broken with cross compilers,
14609 # most powerpc-linux boxes support dynamic linking these days and
14610 # people can always --disable-shared, the test was removed, and we
14611 # assume the GNU/Linux dynamic linker is in use.
14612 dynamic_linker='GNU/Linux ld.so'
14619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14620 soname_spec='${libname}${release}${shared_ext}$major'
14621 shlibpath_var=LD_LIBRARY_PATH
14622 shlibpath_overrides_runpath=no
14623 hardcode_into_libs=yes
14624 dynamic_linker='GNU ld.so'
14631 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14634 dynamic_linker='NetBSD (a.out) ld.so'
14636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14637 soname_spec='${libname}${release}${shared_ext}$major'
14638 dynamic_linker='NetBSD ld.elf_so'
14640 shlibpath_var=LD_LIBRARY_PATH
14641 shlibpath_overrides_runpath=yes
14642 hardcode_into_libs=yes
14647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14648 shlibpath_var=LD_LIBRARY_PATH
14649 shlibpath_overrides_runpath=yes
14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657 soname_spec='${libname}${release}${shared_ext}$major'
14658 shlibpath_var=LD_LIBRARY_PATH
14659 shlibpath_overrides_runpath=yes
14666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14668 shlibpath_var=LD_LIBRARY_PATH
14669 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14671 openbsd2.[89] | openbsd2.[89].*)
14672 shlibpath_overrides_runpath=no
14675 shlibpath_overrides_runpath=yes
14679 shlibpath_overrides_runpath=yes
14684 libname_spec='$name'
14687 library_names_spec='$libname${shared_ext} $libname.a'
14688 dynamic_linker='OS/2 ld.exe'
14689 shlibpath_var=LIBPATH
14692 osf3* | osf4* | osf5*)
14696 soname_spec='${libname}${release}${shared_ext}$major'
14697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14698 shlibpath_var=LD_LIBRARY_PATH
14699 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14700 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14705 soname_spec='${libname}${release}${shared_ext}$major'
14706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707 shlibpath_var=LD_LIBRARY_PATH
14714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14715 soname_spec='${libname}${release}${shared_ext}$major'
14716 shlibpath_var=LD_LIBRARY_PATH
14717 shlibpath_overrides_runpath=yes
14718 hardcode_into_libs=yes
14719 # ldd complains unless libraries are executable
14720 postinstall_cmds='chmod +x $lib'
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14726 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14727 shlibpath_var=LD_LIBRARY_PATH
14728 shlibpath_overrides_runpath=yes
14729 if test "$with_gnu_ld" = yes; then
14735 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738 soname_spec='${libname}${release}${shared_ext}$major'
14739 shlibpath_var=LD_LIBRARY_PATH
14740 case $host_vendor in
14742 shlibpath_overrides_runpath=no
14744 export_dynamic_flag_spec='${wl}-Blargedynsym'
14745 runpath_var=LD_RUN_PATH
14753 shlibpath_overrides_runpath=no
14754 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14760 if test -d /usr/nec ;then
14762 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14763 soname_spec='$libname${shared_ext}.$major'
14764 shlibpath_var=LD_LIBRARY_PATH
14770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14771 soname_spec='${libname}${release}${shared_ext}$major'
14772 shlibpath_var=LD_LIBRARY_PATH
14779 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14780 echo "${ECHO_T}$dynamic_linker" >&6
14781 test "$dynamic_linker" = no && can_build_shared=no
14783 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14784 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14785 hardcode_action_F77=
14786 if test -n "$hardcode_libdir_flag_spec_F77" || \
14787 test -n "$runpath_var_F77" || \
14788 test "X$hardcode_automatic_F77" = "Xyes" ; then
14790 # We can hardcode non-existant directories.
14791 if test "$hardcode_direct_F77" != no &&
14792 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14793 # have to relink, otherwise we might link with an installed library
14794 # when we should be linking with a yet-to-be-installed one
14795 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14796 test "$hardcode_minus_L_F77" != no; then
14797 # Linking always hardcodes the temporary library directory.
14798 hardcode_action_F77=relink
14800 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14801 hardcode_action_F77=immediate
14804 # We cannot hardcode anything, or else we can only hardcode existing
14806 hardcode_action_F77=unsupported
14808 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14809 echo "${ECHO_T}$hardcode_action_F77" >&6
14811 if test "$hardcode_action_F77" = relink; then
14812 # Fast installation is not supported
14813 enable_fast_install=no
14814 elif test "$shlibpath_overrides_runpath" = yes ||
14815 test "$enable_shared" = no; then
14816 # Fast installation is not necessary
14817 enable_fast_install=needless
14822 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14823 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14824 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14825 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14826 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14827 echo "$as_me:$LINENO: result: yes" >&5
14828 echo "${ECHO_T}yes" >&6
14830 # FIXME - insert some real tests, host_os isn't really good enough
14833 if test -n "$STRIP" ; then
14834 striplib="$STRIP -x"
14835 echo "$as_me:$LINENO: result: yes" >&5
14836 echo "${ECHO_T}yes" >&6
14838 echo "$as_me:$LINENO: result: no" >&5
14839 echo "${ECHO_T}no" >&6
14843 echo "$as_me:$LINENO: result: no" >&5
14844 echo "${ECHO_T}no" >&6
14851 # The else clause should only fire when bootstrapping the
14852 # libtool distribution, otherwise you forgot to ship ltmain.sh
14853 # with your package, and you will get complaints that there are
14854 # no rules to generate ltmain.sh.
14855 if test -f "$ltmain"; then
14856 # See if we are running on zsh, and set the options which allow our commands through
14857 # without removal of \ escapes.
14858 if test -n "${ZSH_VERSION+set}" ; then
14859 setopt NO_GLOB_SUBST
14861 # Now quote all the things that may contain metacharacters while being
14862 # careful not to overquote the AC_SUBSTed values. We take copies of the
14863 # variables and quote the copies for generation of the libtool script.
14864 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14866 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14867 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14868 deplibs_check_method reload_flag reload_cmds need_locks \
14869 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14870 lt_cv_sys_global_symbol_to_c_name_address \
14871 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14872 old_postinstall_cmds old_postuninstall_cmds \
14876 lt_prog_compiler_wl_F77 \
14877 lt_prog_compiler_pic_F77 \
14878 lt_prog_compiler_static_F77 \
14879 lt_prog_compiler_no_builtin_flag_F77 \
14880 export_dynamic_flag_spec_F77 \
14881 thread_safe_flag_spec_F77 \
14882 whole_archive_flag_spec_F77 \
14883 enable_shared_with_static_runtimes_F77 \
14884 old_archive_cmds_F77 \
14885 old_archive_from_new_cmds_F77 \
14886 predep_objects_F77 \
14887 postdep_objects_F77 \
14890 compiler_lib_search_path_F77 \
14892 archive_expsym_cmds_F77 \
14893 postinstall_cmds_F77 \
14894 postuninstall_cmds_F77 \
14895 old_archive_from_expsyms_cmds_F77 \
14896 allow_undefined_flag_F77 \
14897 no_undefined_flag_F77 \
14898 export_symbols_cmds_F77 \
14899 hardcode_libdir_flag_spec_F77 \
14900 hardcode_libdir_flag_spec_ld_F77 \
14901 hardcode_libdir_separator_F77 \
14902 hardcode_automatic_F77 \
14904 module_expsym_cmds_F77 \
14905 lt_cv_prog_compiler_c_o_F77 \
14906 exclude_expsyms_F77 \
14907 include_expsyms_F77; do
14910 old_archive_cmds_F77 | \
14911 old_archive_from_new_cmds_F77 | \
14912 archive_cmds_F77 | \
14913 archive_expsym_cmds_F77 | \
14914 module_cmds_F77 | \
14915 module_expsym_cmds_F77 | \
14916 old_archive_from_expsyms_cmds_F77 | \
14917 export_symbols_cmds_F77 | \
14918 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14919 postinstall_cmds | postuninstall_cmds | \
14920 old_postinstall_cmds | old_postuninstall_cmds | \
14921 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14922 # Double-quote double-evaled strings.
14923 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14926 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14932 *'\$0 --fallback-echo"')
14933 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14939 cat <<__EOF__ >> "$cfgfile"
14940 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14942 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14944 # Shell to use when invoking shell scripts.
14947 # Whether or not to build shared libraries.
14948 build_libtool_libs=$enable_shared
14950 # Whether or not to build static libraries.
14951 build_old_libs=$enable_static
14953 # Whether or not to add -lc for building shared libraries.
14954 build_libtool_need_lc=$archive_cmds_need_lc_F77
14956 # Whether or not to disallow shared libs when runtime libs are static
14957 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14959 # Whether or not to optimize for fast installation.
14960 fast_install=$enable_fast_install
14963 host_alias=$host_alias
14966 # An echo program that does not interpret backslashes.
14971 AR_FLAGS=$lt_AR_FLAGS
14976 # A language-specific compiler.
14977 CC=$lt_compiler_F77
14979 # Is the compiler the GNU C compiler?
14985 # The linker used to build libraries.
14988 # Whether we need hard or soft links.
14991 # A BSD-compatible nm program.
14994 # A symbol stripping program
14997 # Used to examine libraries when file_magic_cmd begins "file"
14998 MAGIC_CMD=$MAGIC_CMD
15000 # Used on cygwin: DLL creation program.
15003 # Used on cygwin: object dumper.
15006 # Used on cygwin: assembler.
15009 # The name of the directory that contains temporary libtool files.
15012 # How to create reloadable object files.
15013 reload_flag=$lt_reload_flag
15014 reload_cmds=$lt_reload_cmds
15016 # How to pass a linker flag through the compiler.
15017 wl=$lt_lt_prog_compiler_wl_F77
15019 # Object file suffix (normally "o").
15020 objext="$ac_objext"
15022 # Old archive suffix (normally "a").
15025 # Shared library suffix (normally ".so").
15026 shrext_cmds='$shrext_cmds'
15028 # Executable file suffix (normally "").
15031 # Additional compiler flags for building library objects.
15032 pic_flag=$lt_lt_prog_compiler_pic_F77
15035 # What is the maximum length of a command?
15036 max_cmd_len=$lt_cv_sys_max_cmd_len
15038 # Does compiler simultaneously support -c and -o options?
15039 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15041 # Must we lock files when doing compilation ?
15042 need_locks=$lt_need_locks
15044 # Do we need the lib prefix for modules?
15045 need_lib_prefix=$need_lib_prefix
15047 # Do we need a version for libraries?
15048 need_version=$need_version
15050 # Whether dlopen is supported.
15051 dlopen_support=$enable_dlopen
15053 # Whether dlopen of programs is supported.
15054 dlopen_self=$enable_dlopen_self
15056 # Whether dlopen of statically linked programs is supported.
15057 dlopen_self_static=$enable_dlopen_self_static
15059 # Compiler flag to prevent dynamic linking.
15060 link_static_flag=$lt_lt_prog_compiler_static_F77
15062 # Compiler flag to turn off builtin functions.
15063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15065 # Compiler flag to allow reflexive dlopens.
15066 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15068 # Compiler flag to generate shared objects directly from archives.
15069 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15071 # Compiler flag to generate thread-safe objects.
15072 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15074 # Library versioning type.
15075 version_type=$version_type
15077 # Format of library name prefix.
15078 libname_spec=$lt_libname_spec
15080 # List of archive names. First name is the real one, the rest are links.
15081 # The last name is the one that the linker finds with -lNAME.
15082 library_names_spec=$lt_library_names_spec
15084 # The coded name of the library, if different from the real name.
15085 soname_spec=$lt_soname_spec
15087 # Commands used to build and install an old-style archive.
15089 old_archive_cmds=$lt_old_archive_cmds_F77
15090 old_postinstall_cmds=$lt_old_postinstall_cmds
15091 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15093 # Create an old-style archive from a shared archive.
15094 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15096 # Create a temporary old-style archive to link instead of a shared archive.
15097 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15099 # Commands used to build and install a shared archive.
15100 archive_cmds=$lt_archive_cmds_F77
15101 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15102 postinstall_cmds=$lt_postinstall_cmds
15103 postuninstall_cmds=$lt_postuninstall_cmds
15105 # Commands used to build a loadable module (assumed same as above if empty)
15106 module_cmds=$lt_module_cmds_F77
15107 module_expsym_cmds=$lt_module_expsym_cmds_F77
15109 # Commands to strip libraries.
15110 old_striplib=$lt_old_striplib
15111 striplib=$lt_striplib
15113 # Dependencies to place before the objects being linked to create a
15115 predep_objects=$lt_predep_objects_F77
15117 # Dependencies to place after the objects being linked to create a
15119 postdep_objects=$lt_postdep_objects_F77
15121 # Dependencies to place before the objects being linked to create a
15123 predeps=$lt_predeps_F77
15125 # Dependencies to place after the objects being linked to create a
15127 postdeps=$lt_postdeps_F77
15129 # The library search path used internally by the compiler when linking
15130 # a shared library.
15131 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15133 # Method to check whether dependent libraries are shared objects.
15134 deplibs_check_method=$lt_deplibs_check_method
15136 # Command to use when deplibs_check_method == file_magic.
15137 file_magic_cmd=$lt_file_magic_cmd
15139 # Flag that allows shared libraries with undefined symbols to be built.
15140 allow_undefined_flag=$lt_allow_undefined_flag_F77
15142 # Flag that forces no undefined symbols.
15143 no_undefined_flag=$lt_no_undefined_flag_F77
15145 # Commands used to finish a libtool library installation in a directory.
15146 finish_cmds=$lt_finish_cmds
15148 # Same as above, but a single script fragment to be evaled but not shown.
15149 finish_eval=$lt_finish_eval
15151 # Take the output of nm and produce a listing of raw symbols and C names.
15152 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15154 # Transform the output of nm in a proper C declaration
15155 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15157 # Transform the output of nm in a C name address pair
15158 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15160 # This is the shared library runtime path variable.
15161 runpath_var=$runpath_var
15163 # This is the shared library path variable.
15164 shlibpath_var=$shlibpath_var
15166 # Is shlibpath searched before the hard-coded library search path?
15167 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15169 # How to hardcode a shared library path into an executable.
15170 hardcode_action=$hardcode_action_F77
15172 # Whether we should hardcode library paths into libraries.
15173 hardcode_into_libs=$hardcode_into_libs
15175 # Flag to hardcode \$libdir into a binary during linking.
15176 # This must work even if \$libdir does not exist.
15177 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15179 # If ld is used when linking, flag to hardcode \$libdir into
15180 # a binary during linking. This must work even if \$libdir does
15182 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15184 # Whether we need a single -rpath flag with a separated argument.
15185 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15187 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15188 # resulting binary.
15189 hardcode_direct=$hardcode_direct_F77
15191 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15192 # resulting binary.
15193 hardcode_minus_L=$hardcode_minus_L_F77
15195 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15196 # the resulting binary.
15197 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15199 # Set to yes if building a shared library automatically hardcodes DIR into the library
15200 # and all subsequent libraries and executables linked against it.
15201 hardcode_automatic=$hardcode_automatic_F77
15203 # Variables whose values should be saved in libtool wrapper scripts and
15204 # restored at relink time.
15205 variables_saved_for_relink="$variables_saved_for_relink"
15207 # Whether libtool must link a program against all its dependency libraries.
15208 link_all_deplibs=$link_all_deplibs_F77
15210 # Compile-time system search path for libraries
15211 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15213 # Run-time system search path for libraries
15214 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15216 # Fix the shell variable \$srcfile for the compiler.
15217 fix_srcfile_path="$fix_srcfile_path_F77"
15219 # Set to yes if exported symbols are required.
15220 always_export_symbols=$always_export_symbols_F77
15222 # The commands to list exported symbols.
15223 export_symbols_cmds=$lt_export_symbols_cmds_F77
15225 # The commands to extract the exported symbol list from a shared archive.
15226 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15228 # Symbols that should not be listed in the preloaded symbols.
15229 exclude_expsyms=$lt_exclude_expsyms_F77
15231 # Symbols that must always be exported.
15232 include_expsyms=$lt_include_expsyms_F77
15234 # ### END LIBTOOL TAG CONFIG: $tagname
15240 # If there is no Makefile yet, we rely on a make rule to execute
15241 # `config.status --recheck' to rerun these tests and create the
15242 # libtool script then.
15243 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15244 if test -f "$ltmain_in"; then
15245 test -f Makefile && make "$ltmain"
15251 ac_cpp='$CPP $CPPFLAGS'
15252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15264 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15266 ac_cpp='$CPP $CPPFLAGS'
15267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15272 # Source file extension for Java test sources.
15275 # Object file extension for compiled Java test sources.
15279 # Code to be used in simple compile tests
15280 lt_simple_compile_test_code="class foo {}\n"
15282 # Code to be used in simple link tests
15283 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15285 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15287 # If no C compiler was specified, use CC.
15290 # Allow CC to be a program name with arguments.
15294 # Allow CC to be a program name with arguments.
15300 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15301 archive_cmds_need_lc_GCJ=no
15304 lt_prog_compiler_no_builtin_flag_GCJ=
15306 if test "$GCC" = yes; then
15307 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15310 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15311 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15312 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15313 echo $ECHO_N "(cached) $ECHO_C" >&6
15315 lt_cv_prog_compiler_rtti_exceptions=no
15316 ac_outfile=conftest.$ac_objext
15317 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15318 lt_compiler_flag="-fno-rtti -fno-exceptions"
15319 # Insert the option either (1) after the last *FLAGS variable, or
15320 # (2) before a word containing "conftest.", or (3) at the end.
15321 # Note that $ac_compile itself does not contain backslashes and begins
15322 # with a dollar sign (not a hyphen), so the echo should work correctly.
15323 # The option is referenced via a variable to avoid confusing sed.
15324 lt_compile=`echo "$ac_compile" | $SED \
15325 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15327 -e 's:$: $lt_compiler_flag:'`
15328 (eval echo "\"\$as_me:15328: $lt_compile\"" >&5)
15329 (eval "$lt_compile" 2>conftest.err)
15331 cat conftest.err >&5
15332 echo "$as_me:15332: \$? = $ac_status" >&5
15333 if (exit $ac_status) && test -s "$ac_outfile"; then
15334 # The compiler can only warn and ignore the option if not recognized
15335 # So say no if there are warnings
15336 if test ! -s conftest.err; then
15337 lt_cv_prog_compiler_rtti_exceptions=yes
15343 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15344 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15346 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15347 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15354 lt_prog_compiler_wl_GCJ=
15355 lt_prog_compiler_pic_GCJ=
15356 lt_prog_compiler_static_GCJ=
15358 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15359 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15361 if test "$GCC" = yes; then
15362 lt_prog_compiler_wl_GCJ='-Wl,'
15363 lt_prog_compiler_static_GCJ='-static'
15367 # All AIX code is PIC.
15368 if test "$host_cpu" = ia64; then
15369 # AIX 5 now supports IA64 processor
15370 lt_prog_compiler_static_GCJ='-Bstatic'
15375 # FIXME: we need at least 68020 code to build shared libraries, but
15376 # adding the `-m68020' flag to GCC prevents building anything better,
15378 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15381 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15382 # PIC is the default for these OSes.
15385 mingw* | pw32* | os2*)
15386 # This hack is so that the source file can tell whether it is being
15387 # built for inclusion in a dll (and should export symbols for example).
15388 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15391 darwin* | rhapsody*)
15392 # PIC is the default on this platform
15393 # Common symbols not allowed in MH_DYLIB files
15394 lt_prog_compiler_pic_GCJ='-fno-common'
15398 # Just because we use GCC doesn't mean we suddenly get shared libraries
15399 # on systems that don't support them.
15400 lt_prog_compiler_can_build_shared_GCJ=no
15405 if test -d /usr/nec; then
15406 lt_prog_compiler_pic_GCJ=-Kconform_pic
15411 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15412 # not for PA HP-UX.
15413 case "$host_cpu" in
15418 lt_prog_compiler_pic_GCJ='-fPIC'
15424 lt_prog_compiler_pic_GCJ='-fPIC'
15428 # PORTME Check for flag to pass linker flags through the system compiler.
15431 lt_prog_compiler_wl_GCJ='-Wl,'
15432 if test "$host_cpu" = ia64; then
15433 # AIX 5 now supports IA64 processor
15434 lt_prog_compiler_static_GCJ='-Bstatic'
15436 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15440 # PIC is the default on this platform
15441 # Common symbols not allowed in MH_DYLIB files
15442 case "$cc_basename" in
15444 lt_prog_compiler_pic_GCJ='-qnocommon'
15445 lt_prog_compiler_wl_GCJ='-Wl,'
15450 mingw* | pw32* | os2*)
15451 # This hack is so that the source file can tell whether it is being
15452 # built for inclusion in a dll (and should export symbols for example).
15453 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15456 hpux9* | hpux10* | hpux11*)
15457 lt_prog_compiler_wl_GCJ='-Wl,'
15458 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15459 # not for PA HP-UX.
15460 case "$host_cpu" in
15465 lt_prog_compiler_pic_GCJ='+Z'
15468 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15469 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15472 irix5* | irix6* | nonstopux*)
15473 lt_prog_compiler_wl_GCJ='-Wl,'
15474 # PIC (with -KPIC) is the default.
15475 lt_prog_compiler_static_GCJ='-non_shared'
15479 lt_prog_compiler_pic_GCJ='-KPIC'
15480 lt_prog_compiler_static_GCJ='-Bstatic'
15486 lt_prog_compiler_wl_GCJ='-Wl,'
15487 lt_prog_compiler_pic_GCJ='-KPIC'
15488 lt_prog_compiler_static_GCJ='-static'
15491 lt_prog_compiler_wl_GCJ='-Wl,'
15492 # All Alpha code is PIC.
15493 lt_prog_compiler_static_GCJ='-non_shared'
15498 osf3* | osf4* | osf5*)
15499 lt_prog_compiler_wl_GCJ='-Wl,'
15500 # All OSF/1 code is PIC.
15501 lt_prog_compiler_static_GCJ='-non_shared'
15505 lt_prog_compiler_pic_GCJ='-Kpic'
15506 lt_prog_compiler_static_GCJ='-dn'
15510 lt_prog_compiler_wl_GCJ='-Wl,'
15511 lt_prog_compiler_pic_GCJ='-KPIC'
15512 lt_prog_compiler_static_GCJ='-Bstatic'
15516 lt_prog_compiler_wl_GCJ='-Qoption ld '
15517 lt_prog_compiler_pic_GCJ='-PIC'
15518 lt_prog_compiler_static_GCJ='-Bstatic'
15521 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15522 lt_prog_compiler_wl_GCJ='-Wl,'
15523 lt_prog_compiler_pic_GCJ='-KPIC'
15524 lt_prog_compiler_static_GCJ='-Bstatic'
15528 if test -d /usr/nec ;then
15529 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15530 lt_prog_compiler_static_GCJ='-Bstatic'
15535 lt_prog_compiler_pic_GCJ='-pic'
15536 lt_prog_compiler_static_GCJ='-Bstatic'
15540 lt_prog_compiler_can_build_shared_GCJ=no
15545 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15546 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15549 # Check to make sure the PIC flag actually works.
15551 if test -n "$lt_prog_compiler_pic_GCJ"; then
15553 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15554 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15555 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15558 lt_prog_compiler_pic_works_GCJ=no
15559 ac_outfile=conftest.$ac_objext
15560 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15561 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15562 # Insert the option either (1) after the last *FLAGS variable, or
15563 # (2) before a word containing "conftest.", or (3) at the end.
15564 # Note that $ac_compile itself does not contain backslashes and begins
15565 # with a dollar sign (not a hyphen), so the echo should work correctly.
15566 # The option is referenced via a variable to avoid confusing sed.
15567 lt_compile=`echo "$ac_compile" | $SED \
15568 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15570 -e 's:$: $lt_compiler_flag:'`
15571 (eval echo "\"\$as_me:15571: $lt_compile\"" >&5)
15572 (eval "$lt_compile" 2>conftest.err)
15574 cat conftest.err >&5
15575 echo "$as_me:15575: \$? = $ac_status" >&5
15576 if (exit $ac_status) && test -s "$ac_outfile"; then
15577 # The compiler can only warn and ignore the option if not recognized
15578 # So say no if there are warnings
15579 if test ! -s conftest.err; then
15580 lt_prog_compiler_pic_works_GCJ=yes
15586 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15587 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15589 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15590 case $lt_prog_compiler_pic_GCJ in
15592 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15595 lt_prog_compiler_pic_GCJ=
15596 lt_prog_compiler_can_build_shared_GCJ=no
15601 # For platforms which do not support PIC, -DPIC is meaningless:
15603 lt_prog_compiler_pic_GCJ=
15606 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15610 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15611 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15612 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15615 lt_cv_prog_compiler_c_o_GCJ=no
15616 $rm -r conftest 2>/dev/null
15620 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15622 lt_compiler_flag="-o out/conftest2.$ac_objext"
15623 # Insert the option either (1) after the last *FLAGS variable, or
15624 # (2) before a word containing "conftest.", or (3) at the end.
15625 # Note that $ac_compile itself does not contain backslashes and begins
15626 # with a dollar sign (not a hyphen), so the echo should work correctly.
15627 lt_compile=`echo "$ac_compile" | $SED \
15628 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15630 -e 's:$: $lt_compiler_flag:'`
15631 (eval echo "\"\$as_me:15631: $lt_compile\"" >&5)
15632 (eval "$lt_compile" 2>out/conftest.err)
15634 cat out/conftest.err >&5
15635 echo "$as_me:15635: \$? = $ac_status" >&5
15636 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15638 # The compiler can only warn and ignore the option if not recognized
15639 # So say no if there are warnings
15640 if test ! -s out/conftest.err; then
15641 lt_cv_prog_compiler_c_o_GCJ=yes
15646 # SGI C++ compiler will create directory out/ii_files/ for
15647 # template instantiation
15648 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15649 $rm out/* && rmdir out
15655 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15656 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15659 hard_links="nottested"
15660 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15661 # do not overwrite the value of need_locks provided by the user
15662 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15663 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15666 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15668 ln conftest.a conftest.b 2>&5 || hard_links=no
15669 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15670 echo "$as_me:$LINENO: result: $hard_links" >&5
15671 echo "${ECHO_T}$hard_links" >&6
15672 if test "$hard_links" = no; then
15673 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15674 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15681 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15682 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15685 allow_undefined_flag_GCJ=
15686 enable_shared_with_static_runtimes_GCJ=no
15688 archive_expsym_cmds_GCJ=
15689 old_archive_From_new_cmds_GCJ=
15690 old_archive_from_expsyms_cmds_GCJ=
15691 export_dynamic_flag_spec_GCJ=
15692 whole_archive_flag_spec_GCJ=
15693 thread_safe_flag_spec_GCJ=
15694 hardcode_libdir_flag_spec_GCJ=
15695 hardcode_libdir_flag_spec_ld_GCJ=
15696 hardcode_libdir_separator_GCJ=
15697 hardcode_direct_GCJ=no
15698 hardcode_minus_L_GCJ=no
15699 hardcode_shlibpath_var_GCJ=unsupported
15700 link_all_deplibs_GCJ=unknown
15701 hardcode_automatic_GCJ=no
15703 module_expsym_cmds_GCJ=
15704 always_export_symbols_GCJ=no
15705 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15706 # include_expsyms should be a list of space-separated symbols to be *always*
15707 # included in the symbol list
15708 include_expsyms_GCJ=
15709 # exclude_expsyms can be an extended regexp of symbols to exclude
15710 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15711 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15712 # as well as any symbol that contains `d'.
15713 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15714 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15715 # platforms (ab)use it in PIC code, but their linkers get confused if
15716 # the symbol is explicitly referenced. Since portable code cannot
15717 # rely on this symbol name, it's probably fine to never include it in
15718 # preloaded symbol tables.
15719 extract_expsyms_cmds=
15722 cygwin* | mingw* | pw32*)
15723 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15724 # When not using gcc, we currently assume that we are using
15725 # Microsoft Visual C++.
15726 if test "$GCC" != yes; then
15736 if test "$with_gnu_ld" = yes; then
15737 # If archive_cmds runs LD, not CC, wlarc should be empty
15740 # See if GNU ld supports shared libraries.
15742 aix3* | aix4* | aix5*)
15743 # On AIX/PPC, the GNU linker is very broken
15744 if test "$host_cpu" != ia64; then
15748 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15749 *** to be unable to reliably create shared libraries on AIX.
15750 *** Therefore, libtool is disabling shared libraries support. If you
15751 *** really care for shared libraries, you may want to modify your PATH
15752 *** so that a non-GNU linker is found, and then restart.
15759 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)'
15760 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15761 hardcode_minus_L_GCJ=yes
15763 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15764 # that the semantics of dynamic libraries on AmigaOS, at least up
15765 # to version 4, is to share data among multiple programs linked
15766 # with the same dynamic library. Since this doesn't match the
15767 # behavior of shared libraries on other platforms, we can't use
15773 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15774 allow_undefined_flag_GCJ=unsupported
15775 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15776 # support --undefined. This deserves some investigation. FIXME
15777 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15783 cygwin* | mingw* | pw32*)
15784 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15785 # as there is no search path for DLLs.
15786 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15787 allow_undefined_flag_GCJ=unsupported
15788 always_export_symbols_GCJ=no
15789 enable_shared_with_static_runtimes_GCJ=yes
15790 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15792 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15793 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15794 # If the export-symbols file already is a .def file (1st line
15795 # is EXPORTS), use it as is; otherwise, prepend...
15796 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15797 cp $export_symbols $output_objdir/$soname.def;
15799 echo EXPORTS > $output_objdir/$soname.def;
15800 cat $export_symbols >> $output_objdir/$soname.def;
15801 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15808 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15809 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15812 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15813 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15818 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15822 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15823 *** create shared libraries on Solaris systems. Therefore, libtool
15824 *** is disabling shared libraries support. We urge you to upgrade GNU
15825 *** binutils to release 2.9.1 or newer. Another option is to modify
15826 *** your PATH or compiler configuration so that the native linker is
15827 *** used, and then restart.
15830 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15831 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15832 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15839 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15841 hardcode_direct_GCJ=yes
15842 hardcode_shlibpath_var_GCJ=no
15846 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15847 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15848 archive_cmds_GCJ="$tmp_archive_cmds"
15849 supports_anon_versioning=no
15850 case `$LD -v 2>/dev/null` in
15851 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15852 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15853 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15854 *\ 2.11.*) ;; # other 2.11 versions
15855 *) supports_anon_versioning=yes ;;
15857 if test $supports_anon_versioning = yes; then
15858 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;
15859 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15861 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15869 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15870 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15871 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15878 if test "$ld_shlibs_GCJ" = yes; then
15879 runpath_var=LD_RUN_PATH
15880 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15881 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15882 # ancient GNU ld didn't support --whole-archive et. al.
15883 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15884 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15886 whole_archive_flag_spec_GCJ=
15890 # PORTME fill in a description of your system's linker (not GNU ld)
15893 allow_undefined_flag_GCJ=unsupported
15894 always_export_symbols_GCJ=yes
15895 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'
15896 # Note: this linker hardcodes the directories in LIBPATH if there
15897 # are no directories specified by -L.
15898 hardcode_minus_L_GCJ=yes
15899 if test "$GCC" = yes && test -z "$link_static_flag"; then
15900 # Neither direct hardcoding nor static linking is supported with a
15902 hardcode_direct_GCJ=unsupported
15907 if test "$host_cpu" = ia64; then
15908 # On IA64, the linker does run time linking by default, so we don't
15909 # have to do anything special.
15910 aix_use_runtimelinking=no
15911 exp_sym_flag='-Bexport'
15914 # If we're using GNU nm, then we don't want the "-C" option.
15915 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15916 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15917 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'
15919 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'
15921 aix_use_runtimelinking=no
15923 # Test if we are trying to use run time linking or normal
15924 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15925 # need to do runtime linking.
15926 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15927 for ld_flag in $LDFLAGS; do
15928 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15929 aix_use_runtimelinking=yes
15935 exp_sym_flag='-bexport'
15936 no_entry_flag='-bnoentry'
15939 # When large executables or shared objects are built, AIX ld can
15940 # have problems creating the table of contents. If linking a library
15941 # or program results in "error TOC overflow" add -mminimal-toc to
15942 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15943 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15945 archive_cmds_GCJ=''
15946 hardcode_direct_GCJ=yes
15947 hardcode_libdir_separator_GCJ=':'
15948 link_all_deplibs_GCJ=yes
15950 if test "$GCC" = yes; then
15951 case $host_os in aix4.012|aix4.012.*)
15952 # We only want to do this on AIX 4.2 and lower, the check
15953 # below for broken collect2 doesn't work under 4.3+
15954 collect2name=`${CC} -print-prog-name=collect2`
15955 if test -f "$collect2name" && \
15956 strings "$collect2name" | grep resolve_lib_name >/dev/null
15958 # We have reworked collect2
15959 hardcode_direct_GCJ=yes
15961 # We have old collect2
15962 hardcode_direct_GCJ=unsupported
15963 # It fails to find uninstalled libraries when the uninstalled
15964 # path is not listed in the libpath. Setting hardcode_minus_L
15965 # to unsupported forces relinking
15966 hardcode_minus_L_GCJ=yes
15967 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15968 hardcode_libdir_separator_GCJ=
15971 shared_flag='-shared'
15974 if test "$host_cpu" = ia64; then
15975 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15976 # chokes on -Wl,-G. The following line is correct:
15979 if test "$aix_use_runtimelinking" = yes; then
15980 shared_flag='${wl}-G'
15982 shared_flag='${wl}-bM:SRE'
15987 # It seems that -bexpall does not export symbols beginning with
15988 # underscore (_), so it is better to generate a list of symbols to export.
15989 always_export_symbols_GCJ=yes
15990 if test "$aix_use_runtimelinking" = yes; then
15991 # Warning - without using the other runtime loading flags (-brtl),
15992 # -berok will link without error, but may produce a broken library.
15993 allow_undefined_flag_GCJ='-berok'
15994 # Determine the default libpath from the value encoded in an empty executable.
15995 cat >conftest.$ac_ext <<_ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16010 rm -f conftest.$ac_objext conftest$ac_exeext
16011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16012 (eval $ac_link) 2>conftest.er1
16014 grep -v '^ *+' conftest.er1 >conftest.err
16016 cat conftest.err >&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); } &&
16019 { ac_try='test -z "$ac_c_werror_flag"
16020 || test ! -s conftest.err'
16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; } &&
16026 { ac_try='test -s conftest$ac_exeext'
16027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028 (eval $ac_try) 2>&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; }; then
16033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16035 # Check for a 64-bit object if we didn't find anything.
16036 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; }
16039 echo "$as_me: failed program was:" >&5
16040 sed 's/^/| /' conftest.$ac_ext >&5
16043 rm -f conftest.err conftest.$ac_objext \
16044 conftest$ac_exeext conftest.$ac_ext
16045 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16047 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16048 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"
16050 if test "$host_cpu" = ia64; then
16051 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16052 allow_undefined_flag_GCJ="-z nodefs"
16053 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"
16055 # Determine the default libpath from the value encoded in an empty executable.
16056 cat >conftest.$ac_ext <<_ACEOF
16059 cat confdefs.h >>conftest.$ac_ext
16060 cat >>conftest.$ac_ext <<_ACEOF
16061 /* end confdefs.h. */
16071 rm -f conftest.$ac_objext conftest$ac_exeext
16072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16073 (eval $ac_link) 2>conftest.er1
16075 grep -v '^ *+' conftest.er1 >conftest.err
16077 cat conftest.err >&5
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); } &&
16080 { ac_try='test -z "$ac_c_werror_flag"
16081 || test ! -s conftest.err'
16082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083 (eval $ac_try) 2>&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); }; } &&
16087 { ac_try='test -s conftest$ac_exeext'
16088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089 (eval $ac_try) 2>&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); }; }; then
16094 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16096 # Check for a 64-bit object if we didn't find anything.
16097 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; }
16100 echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16104 rm -f conftest.err conftest.$ac_objext \
16105 conftest$ac_exeext conftest.$ac_ext
16106 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16108 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16109 # Warning - without using the other run time loading flags,
16110 # -berok will link without error, but may produce a broken library.
16111 no_undefined_flag_GCJ=' ${wl}-bernotok'
16112 allow_undefined_flag_GCJ=' ${wl}-berok'
16113 # -bexpall does not export symbols beginning with underscore (_)
16114 always_export_symbols_GCJ=yes
16115 # Exported symbols can be pulled into shared objects from archives
16116 whole_archive_flag_spec_GCJ=' '
16117 archive_cmds_need_lc_GCJ=yes
16118 # This is similar to how AIX traditionally builds it's shared libraries.
16119 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'
16125 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)'
16126 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16127 hardcode_minus_L_GCJ=yes
16128 # see comment about different semantics on the GNU ld section
16133 export_dynamic_flag_spec_GCJ=-rdynamic
16136 cygwin* | mingw* | pw32*)
16137 # When not using gcc, we currently assume that we are using
16138 # Microsoft Visual C++.
16139 # hardcode_libdir_flag_spec is actually meaningless, as there is
16140 # no search path for DLLs.
16141 hardcode_libdir_flag_spec_GCJ=' '
16142 allow_undefined_flag_GCJ=unsupported
16143 # Tell ltmain to make .lib files, not .a files.
16145 # Tell ltmain to make .dll files, not .so files.
16147 # FIXME: Setting linknames here is a bad hack.
16148 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
16149 # The linker will automatically build a .lib file if we build a DLL.
16150 old_archive_From_new_cmds_GCJ='true'
16151 # FIXME: Should let the user specify the lib program.
16152 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16153 fix_srcfile_path='`cygpath -w "$srcfile"`'
16154 enable_shared_with_static_runtimes_GCJ=yes
16157 darwin* | rhapsody*)
16159 rhapsody* | darwin1.[012])
16160 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16163 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16164 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16166 case ${MACOSX_DEPLOYMENT_TARGET} in
16168 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16171 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16177 archive_cmds_need_lc_GCJ=no
16178 hardcode_direct_GCJ=no
16179 hardcode_automatic_GCJ=yes
16180 hardcode_shlibpath_var_GCJ=unsupported
16181 whole_archive_flag_spec_GCJ=''
16182 link_all_deplibs_GCJ=yes
16183 if test "$GCC" = yes ; then
16184 output_verbose_link_cmd='echo'
16185 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16186 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16187 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16188 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}'
16189 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}'
16191 case "$cc_basename" in
16193 output_verbose_link_cmd='echo'
16194 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16195 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16196 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16197 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}'
16198 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}'
16208 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16209 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16210 hardcode_shlibpath_var_GCJ=no
16217 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16218 # support. Future versions do this automatically, but an explicit c++rt0.o
16219 # does not break anything, and helps significantly (at the cost of a little
16222 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16223 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16224 hardcode_direct_GCJ=yes
16225 hardcode_shlibpath_var_GCJ=no
16228 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16230 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16231 hardcode_direct_GCJ=yes
16232 hardcode_minus_L_GCJ=yes
16233 hardcode_shlibpath_var_GCJ=no
16236 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16237 freebsd* | kfreebsd*-gnu)
16238 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16239 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16240 hardcode_direct_GCJ=yes
16241 hardcode_shlibpath_var_GCJ=no
16245 if test "$GCC" = yes; then
16246 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'
16248 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'
16250 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16251 hardcode_libdir_separator_GCJ=:
16252 hardcode_direct_GCJ=yes
16254 # hardcode_minus_L: Not really in the search PATH,
16255 # but as the default location of the library.
16256 hardcode_minus_L_GCJ=yes
16257 export_dynamic_flag_spec_GCJ='${wl}-E'
16261 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16262 case "$host_cpu" in
16264 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16267 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16271 case "$host_cpu" in
16273 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16276 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16280 if test "$with_gnu_ld" = no; then
16281 case "$host_cpu" in
16283 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16284 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16285 hardcode_libdir_separator_GCJ=:
16286 hardcode_direct_GCJ=no
16287 hardcode_shlibpath_var_GCJ=no
16290 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16291 hardcode_direct_GCJ=no
16292 hardcode_shlibpath_var_GCJ=no
16294 # hardcode_minus_L: Not really in the search PATH,
16295 # but as the default location of the library.
16296 hardcode_minus_L_GCJ=yes
16299 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16300 hardcode_libdir_separator_GCJ=:
16301 hardcode_direct_GCJ=yes
16302 export_dynamic_flag_spec_GCJ='${wl}-E'
16304 # hardcode_minus_L: Not really in the search PATH,
16305 # but as the default location of the library.
16306 hardcode_minus_L_GCJ=yes
16312 irix5* | irix6* | nonstopux*)
16313 if test "$GCC" = yes; then
16314 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'
16316 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'
16317 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16319 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16320 hardcode_libdir_separator_GCJ=:
16321 link_all_deplibs_GCJ=yes
16325 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16326 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16328 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16330 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16331 hardcode_direct_GCJ=yes
16332 hardcode_shlibpath_var_GCJ=no
16336 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16337 hardcode_direct_GCJ=yes
16338 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16339 hardcode_libdir_separator_GCJ=:
16340 hardcode_shlibpath_var_GCJ=no
16344 hardcode_direct_GCJ=yes
16345 hardcode_shlibpath_var_GCJ=no
16346 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16347 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16348 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16349 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16350 export_dynamic_flag_spec_GCJ='${wl}-E'
16353 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16354 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16355 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16358 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16359 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16366 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16367 hardcode_minus_L_GCJ=yes
16368 allow_undefined_flag_GCJ=unsupported
16369 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'
16370 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16374 if test "$GCC" = yes; then
16375 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16376 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'
16378 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16379 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'
16381 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16382 hardcode_libdir_separator_GCJ=:
16385 osf4* | osf5*) # as osf3* with the addition of -msym flag
16386 if test "$GCC" = yes; then
16387 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16388 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'
16389 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16391 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16392 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'
16393 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'
16394 # Both c and cxx compiler support -rpath directly
16395 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16397 hardcode_libdir_separator_GCJ=:
16401 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16402 hardcode_shlibpath_var_GCJ=no
16403 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16404 runpath_var=LD_RUN_PATH
16405 hardcode_runpath_var=yes
16409 no_undefined_flag_GCJ=' -z text'
16410 if test "$GCC" = yes; then
16411 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16412 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'
16414 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16415 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'
16417 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16418 hardcode_shlibpath_var_GCJ=no
16420 solaris2.[0-5] | solaris2.[0-5].*) ;;
16421 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16422 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16424 link_all_deplibs_GCJ=yes
16428 if test "x$host_vendor" = xsequent; then
16429 # Use $CC to link under sequent, because it throws in some extra .o
16430 # files that make .init and .fini sections work.
16431 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16433 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16435 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16436 hardcode_direct_GCJ=yes
16437 hardcode_minus_L_GCJ=yes
16438 hardcode_shlibpath_var_GCJ=no
16442 case $host_vendor in
16444 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16445 hardcode_direct_GCJ=yes # is this really true???
16448 ## LD is ld it makes a PLAMLIB
16449 ## CC just makes a GrossModule.
16450 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16451 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16452 hardcode_direct_GCJ=no
16455 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16456 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16459 runpath_var='LD_RUN_PATH'
16460 hardcode_shlibpath_var_GCJ=no
16464 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16465 hardcode_shlibpath_var_GCJ=no
16466 export_dynamic_flag_spec_GCJ='-Bexport'
16470 if test -d /usr/nec; then
16471 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16472 hardcode_shlibpath_var_GCJ=no
16473 runpath_var=LD_RUN_PATH
16474 hardcode_runpath_var=yes
16480 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16481 hardcode_direct_GCJ=yes
16482 hardcode_minus_L_GCJ=no
16483 hardcode_shlibpath_var_GCJ=no
16484 hardcode_runpath_var=yes
16485 runpath_var=LD_RUN_PATH
16488 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16489 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16490 if test "$GCC" = yes; then
16491 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16493 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16495 runpath_var='LD_RUN_PATH'
16496 hardcode_shlibpath_var_GCJ=no
16500 no_undefined_flag_GCJ=' -z text'
16501 # $CC -shared without GNU ld will not create a library from C++
16502 # object files and a static libstdc++, better avoid it by now
16503 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16504 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'
16505 hardcode_libdir_flag_spec_GCJ=
16506 hardcode_shlibpath_var_GCJ=no
16507 runpath_var='LD_RUN_PATH'
16511 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16512 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16513 hardcode_shlibpath_var_GCJ=no
16522 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16523 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16524 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16526 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16527 if test "$GCC" = yes; then
16528 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16532 # Do we need to explicitly link libc?
16534 case "x$archive_cmds_need_lc_GCJ" in
16536 # Assume -lc should be added
16537 archive_cmds_need_lc_GCJ=yes
16539 if test "$enable_shared" = yes && test "$GCC" = yes; then
16540 case $archive_cmds_GCJ in
16542 # FIXME: we may have to deal with multi-command sequences.
16545 # Test whether the compiler implicitly links with -lc since on some
16546 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16547 # to ld, don't add -lc before -lgcc.
16548 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16549 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16554 (eval $ac_compile) 2>&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } 2>conftest.err; then
16560 libobjs=conftest.$ac_objext
16562 wl=$lt_prog_compiler_wl_GCJ
16568 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16569 allow_undefined_flag_GCJ=
16570 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16571 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); }
16576 archive_cmds_need_lc_GCJ=no
16578 archive_cmds_need_lc_GCJ=yes
16580 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16582 cat conftest.err 1>&5
16585 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16586 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16593 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16594 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16595 library_names_spec=
16596 libname_spec='lib$name'
16600 postuninstall_cmds=
16604 shlibpath_overrides_runpath=unknown
16606 dynamic_linker="$host_os ld.so"
16607 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16608 if test "$GCC" = yes; then
16609 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16610 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16611 # if the path contains ";" then we assume it to be the separator
16612 # otherwise default to the standard path separator (i.e. ":") - it is
16613 # assumed that no part of a normal pathname contains ";" but that should
16614 # okay in the real world where ";" in dirpaths is itself problematic.
16615 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16620 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16622 need_lib_prefix=unknown
16623 hardcode_into_libs=no
16625 # when you set need_version to no, make sure it does not cause -set_version
16626 # flags to be left without arguments
16627 need_version=unknown
16632 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16633 shlibpath_var=LIBPATH
16635 # AIX 3 has no versioning support, so we append a major version to the name.
16636 soname_spec='${libname}${release}${shared_ext}$major'
16643 hardcode_into_libs=yes
16644 if test "$host_cpu" = ia64; then
16645 # AIX 5 supports IA64
16646 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16647 shlibpath_var=LD_LIBRARY_PATH
16649 # With GCC up to 2.95.x, collect2 would create an import file
16650 # for dependence libraries. The import file would start with
16651 # the line `#! .'. This would cause the generated library to
16652 # depend on `.', always an invalid library. This was fixed in
16653 # development snapshots of GCC prior to 3.0.
16655 aix4 | aix4.[01] | aix4.[01].*)
16656 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16658 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16661 can_build_shared=no
16665 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16666 # soname into executable. Probably we can add versioning support to
16667 # collect2, so additional links can be useful in future.
16668 if test "$aix_use_runtimelinking" = yes; then
16669 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16670 # instead of lib<name>.a to let people know that these are not
16671 # typical AIX shared libraries.
16672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16674 # We preserve .a as extension for shared libraries through AIX4.2
16675 # and later when we are not doing run time linking.
16676 library_names_spec='${libname}${release}.a $libname.a'
16677 soname_spec='${libname}${release}${shared_ext}$major'
16679 shlibpath_var=LIBPATH
16684 library_names_spec='$libname.ixlibrary $libname.a'
16685 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16686 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'
16690 library_names_spec='${libname}${shared_ext}'
16691 dynamic_linker="$host_os ld.so"
16692 shlibpath_var=LIBRARY_PATH
16698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16699 soname_spec='${libname}${release}${shared_ext}$major'
16700 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16701 shlibpath_var=LD_LIBRARY_PATH
16702 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16703 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16704 # the default ld.so.conf also contains /usr/contrib/lib and
16705 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16706 # libtool to hard-code these into programs
16709 cygwin* | mingw* | pw32*)
16710 version_type=windows
16715 case $GCC,$host_os in
16716 yes,cygwin* | yes,mingw* | yes,pw32*)
16717 library_names_spec='$libname.dll.a'
16718 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16719 postinstall_cmds='base_file=`basename \${file}`;
16720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
16721 dldir=$destdir/`dirname \$dlpath`;
16722 test -d \$dldir || mkdir -p \$dldir;
16723 $install_prog $dir/$dlname \$dldir/$dlname'
16724 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
16725 dlpath=$dir/\$dldll;
16727 shlibpath_overrides_runpath=yes
16731 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16732 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16733 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16736 # MinGW DLLs use traditional 'lib' prefix
16737 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16738 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16739 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16740 # It is most probably a Windows format PATH printed by
16741 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16742 # path with ; separators, and with drive letters. We can handle the
16743 # drive letters (cygwin fileutils understands them), so leave them,
16744 # especially as we might pass files found there to a mingw objdump,
16745 # which wouldn't understand a cygwinified path. Ahh.
16746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16752 # pw32 DLLs use 'pw' prefix rather than 'lib'
16753 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16759 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16762 dynamic_linker='Win32 ld.exe'
16763 # FIXME: first we should search . and the directory the executable is in
16767 darwin* | rhapsody*)
16768 dynamic_linker="$host_os dyld"
16769 version_type=darwin
16772 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16773 soname_spec='${libname}${release}${major}$shared_ext'
16774 shlibpath_overrides_runpath=yes
16775 shlibpath_var=DYLD_LIBRARY_PATH
16776 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16777 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16778 if test "$GCC" = yes; then
16779 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"`
16781 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16783 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16791 soname_spec='${libname}${release}${shared_ext}$major'
16792 shlibpath_var=LD_LIBRARY_PATH
16803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16804 soname_spec='${libname}${release}${shared_ext}$major'
16805 shlibpath_var=LD_LIBRARY_PATH
16806 shlibpath_overrides_runpath=no
16807 hardcode_into_libs=yes
16808 dynamic_linker='GNU ld.so'
16812 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16813 version_type=freebsd-$objformat
16814 case $version_type in
16816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16821 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16825 shlibpath_var=LD_LIBRARY_PATH
16828 shlibpath_overrides_runpath=yes
16830 freebsd3.01* | freebsdelf3.01*)
16831 shlibpath_overrides_runpath=yes
16832 hardcode_into_libs=yes
16835 shlibpath_overrides_runpath=no
16836 hardcode_into_libs=yes
16845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16846 soname_spec='${libname}${release}${shared_ext}$major'
16847 shlibpath_var=LD_LIBRARY_PATH
16848 hardcode_into_libs=yes
16851 hpux9* | hpux10* | hpux11*)
16852 # Give a soname corresponding to the major version so that dld.sl refuses to
16853 # link against other versions.
16857 case "$host_cpu" in
16860 hardcode_into_libs=yes
16861 dynamic_linker="$host_os dld.so"
16862 shlibpath_var=LD_LIBRARY_PATH
16863 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16865 soname_spec='${libname}${release}${shared_ext}$major'
16866 if test "X$HPUX_IA64_MODE" = X32; then
16867 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16869 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16875 hardcode_into_libs=yes
16876 dynamic_linker="$host_os dld.sl"
16877 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16880 soname_spec='${libname}${release}${shared_ext}$major'
16881 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16882 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16886 dynamic_linker="$host_os dld.sl"
16887 shlibpath_var=SHLIB_PATH
16888 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16890 soname_spec='${libname}${release}${shared_ext}$major'
16893 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16894 postinstall_cmds='chmod 555 $lib'
16897 irix5* | irix6* | nonstopux*)
16899 nonstopux*) version_type=nonstopux ;;
16901 if test "$lt_cv_prog_gnu_ld" = yes; then
16909 soname_spec='${libname}${release}${shared_ext}$major'
16910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16912 irix5* | nonstopux*)
16913 libsuff= shlibsuff=
16916 case $LD in # libtool.m4 will add one of these switches to LD
16917 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16918 libsuff= shlibsuff= libmagic=32-bit;;
16919 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16920 libsuff=32 shlibsuff=N32 libmagic=N32;;
16921 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16922 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16923 *) libsuff= shlibsuff= libmagic=never-match;;
16927 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16928 shlibpath_overrides_runpath=no
16929 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16930 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16931 hardcode_into_libs=yes
16934 # No shared lib support for Linux oldld, aout, or coff.
16935 linux*oldld* | linux*aout* | linux*coff*)
16939 # This must be Linux ELF.
16944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16945 soname_spec='${libname}${release}${shared_ext}$major'
16946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16947 shlibpath_var=LD_LIBRARY_PATH
16948 shlibpath_overrides_runpath=no
16949 # This implies no fast_install, which is unacceptable.
16950 # Some rework will be needed to allow for fast_install
16951 # before this can be enabled.
16952 hardcode_into_libs=yes
16954 # Append ld.so.conf contents to the search path
16955 if test -f /etc/ld.so.conf; then
16956 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16957 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16960 # We used to test for /lib/ld.so.1 and disable shared libraries on
16961 # powerpc, because MkLinux only supported shared libraries with the
16962 # GNU dynamic linker. Since this was broken with cross compilers,
16963 # most powerpc-linux boxes support dynamic linking these days and
16964 # people can always --disable-shared, the test was removed, and we
16965 # assume the GNU/Linux dynamic linker is in use.
16966 dynamic_linker='GNU/Linux ld.so'
16973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16974 soname_spec='${libname}${release}${shared_ext}$major'
16975 shlibpath_var=LD_LIBRARY_PATH
16976 shlibpath_overrides_runpath=no
16977 hardcode_into_libs=yes
16978 dynamic_linker='GNU ld.so'
16985 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16988 dynamic_linker='NetBSD (a.out) ld.so'
16990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16991 soname_spec='${libname}${release}${shared_ext}$major'
16992 dynamic_linker='NetBSD ld.elf_so'
16994 shlibpath_var=LD_LIBRARY_PATH
16995 shlibpath_overrides_runpath=yes
16996 hardcode_into_libs=yes
17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17002 shlibpath_var=LD_LIBRARY_PATH
17003 shlibpath_overrides_runpath=yes
17010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17011 soname_spec='${libname}${release}${shared_ext}$major'
17012 shlibpath_var=LD_LIBRARY_PATH
17013 shlibpath_overrides_runpath=yes
17020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17022 shlibpath_var=LD_LIBRARY_PATH
17023 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17025 openbsd2.[89] | openbsd2.[89].*)
17026 shlibpath_overrides_runpath=no
17029 shlibpath_overrides_runpath=yes
17033 shlibpath_overrides_runpath=yes
17038 libname_spec='$name'
17041 library_names_spec='$libname${shared_ext} $libname.a'
17042 dynamic_linker='OS/2 ld.exe'
17043 shlibpath_var=LIBPATH
17046 osf3* | osf4* | osf5*)
17050 soname_spec='${libname}${release}${shared_ext}$major'
17051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17052 shlibpath_var=LD_LIBRARY_PATH
17053 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17054 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17059 soname_spec='${libname}${release}${shared_ext}$major'
17060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17061 shlibpath_var=LD_LIBRARY_PATH
17068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069 soname_spec='${libname}${release}${shared_ext}$major'
17070 shlibpath_var=LD_LIBRARY_PATH
17071 shlibpath_overrides_runpath=yes
17072 hardcode_into_libs=yes
17073 # ldd complains unless libraries are executable
17074 postinstall_cmds='chmod +x $lib'
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17080 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17081 shlibpath_var=LD_LIBRARY_PATH
17082 shlibpath_overrides_runpath=yes
17083 if test "$with_gnu_ld" = yes; then
17089 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092 soname_spec='${libname}${release}${shared_ext}$major'
17093 shlibpath_var=LD_LIBRARY_PATH
17094 case $host_vendor in
17096 shlibpath_overrides_runpath=no
17098 export_dynamic_flag_spec='${wl}-Blargedynsym'
17099 runpath_var=LD_RUN_PATH
17107 shlibpath_overrides_runpath=no
17108 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17114 if test -d /usr/nec ;then
17116 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17117 soname_spec='$libname${shared_ext}.$major'
17118 shlibpath_var=LD_LIBRARY_PATH
17124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17125 soname_spec='${libname}${release}${shared_ext}$major'
17126 shlibpath_var=LD_LIBRARY_PATH
17133 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17134 echo "${ECHO_T}$dynamic_linker" >&6
17135 test "$dynamic_linker" = no && can_build_shared=no
17137 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17138 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17139 hardcode_action_GCJ=
17140 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17141 test -n "$runpath_var_GCJ" || \
17142 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17144 # We can hardcode non-existant directories.
17145 if test "$hardcode_direct_GCJ" != no &&
17146 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17147 # have to relink, otherwise we might link with an installed library
17148 # when we should be linking with a yet-to-be-installed one
17149 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17150 test "$hardcode_minus_L_GCJ" != no; then
17151 # Linking always hardcodes the temporary library directory.
17152 hardcode_action_GCJ=relink
17154 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17155 hardcode_action_GCJ=immediate
17158 # We cannot hardcode anything, or else we can only hardcode existing
17160 hardcode_action_GCJ=unsupported
17162 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17163 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17165 if test "$hardcode_action_GCJ" = relink; then
17166 # Fast installation is not supported
17167 enable_fast_install=no
17168 elif test "$shlibpath_overrides_runpath" = yes ||
17169 test "$enable_shared" = no; then
17170 # Fast installation is not necessary
17171 enable_fast_install=needless
17176 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17177 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17178 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17179 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17180 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17181 echo "$as_me:$LINENO: result: yes" >&5
17182 echo "${ECHO_T}yes" >&6
17184 # FIXME - insert some real tests, host_os isn't really good enough
17187 if test -n "$STRIP" ; then
17188 striplib="$STRIP -x"
17189 echo "$as_me:$LINENO: result: yes" >&5
17190 echo "${ECHO_T}yes" >&6
17192 echo "$as_me:$LINENO: result: no" >&5
17193 echo "${ECHO_T}no" >&6
17197 echo "$as_me:$LINENO: result: no" >&5
17198 echo "${ECHO_T}no" >&6
17203 if test "x$enable_dlopen" != xyes; then
17204 enable_dlopen=unknown
17205 enable_dlopen_self=unknown
17206 enable_dlopen_self_static=unknown
17213 lt_cv_dlopen="load_add_on"
17215 lt_cv_dlopen_self=yes
17219 lt_cv_dlopen="LoadLibrary"
17224 lt_cv_dlopen="dlopen"
17229 # if libdl is installed we need to link against it
17230 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17231 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17232 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17233 echo $ECHO_N "(cached) $ECHO_C" >&6
17235 ac_check_lib_save_LIBS=$LIBS
17237 cat >conftest.$ac_ext <<_ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h. */
17244 /* Override any gcc2 internal prototype to avoid an error. */
17248 /* We use char because int might match the return type of a gcc2
17249 builtin and then its argument prototype would still apply. */
17259 rm -f conftest.$ac_objext conftest$ac_exeext
17260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17261 (eval $ac_link) 2>conftest.er1
17263 grep -v '^ *+' conftest.er1 >conftest.err
17265 cat conftest.err >&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); } &&
17268 { ac_try='test -z "$ac_c_werror_flag"
17269 || test ! -s conftest.err'
17270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271 (eval $ac_try) 2>&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; } &&
17275 { ac_try='test -s conftest$ac_exeext'
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; }; then
17281 ac_cv_lib_dl_dlopen=yes
17283 echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.$ac_ext >&5
17286 ac_cv_lib_dl_dlopen=no
17288 rm -f conftest.err conftest.$ac_objext \
17289 conftest$ac_exeext conftest.$ac_ext
17290 LIBS=$ac_check_lib_save_LIBS
17292 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17293 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17294 if test $ac_cv_lib_dl_dlopen = yes; then
17295 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17298 lt_cv_dlopen="dyld"
17300 lt_cv_dlopen_self=yes
17307 echo "$as_me:$LINENO: checking for shl_load" >&5
17308 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17309 if test "${ac_cv_func_shl_load+set}" = set; then
17310 echo $ECHO_N "(cached) $ECHO_C" >&6
17312 cat >conftest.$ac_ext <<_ACEOF
17315 cat confdefs.h >>conftest.$ac_ext
17316 cat >>conftest.$ac_ext <<_ACEOF
17317 /* end confdefs.h. */
17318 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17320 #define shl_load innocuous_shl_load
17322 /* System header to define __stub macros and hopefully few prototypes,
17323 which can conflict with char shl_load (); below.
17324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17325 <limits.h> exists even on freestanding compilers. */
17328 # include <limits.h>
17330 # include <assert.h>
17335 /* Override any gcc2 internal prototype to avoid an error. */
17340 /* We use char because int might match the return type of a gcc2
17341 builtin and then its argument prototype would still apply. */
17343 /* The GNU C library defines this for functions which it implements
17344 to always fail with ENOSYS. Some functions are actually named
17345 something starting with __ and the normal name is an alias. */
17346 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17349 char (*f) () = shl_load;
17358 return f != shl_load;
17363 rm -f conftest.$ac_objext conftest$ac_exeext
17364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17365 (eval $ac_link) 2>conftest.er1
17367 grep -v '^ *+' conftest.er1 >conftest.err
17369 cat conftest.err >&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } &&
17372 { ac_try='test -z "$ac_c_werror_flag"
17373 || test ! -s conftest.err'
17374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375 (eval $ac_try) 2>&5
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); }; } &&
17379 { ac_try='test -s conftest$ac_exeext'
17380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381 (eval $ac_try) 2>&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; }; then
17385 ac_cv_func_shl_load=yes
17387 echo "$as_me: failed program was:" >&5
17388 sed 's/^/| /' conftest.$ac_ext >&5
17390 ac_cv_func_shl_load=no
17392 rm -f conftest.err conftest.$ac_objext \
17393 conftest$ac_exeext conftest.$ac_ext
17395 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17396 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17397 if test $ac_cv_func_shl_load = yes; then
17398 lt_cv_dlopen="shl_load"
17400 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17401 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17402 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17403 echo $ECHO_N "(cached) $ECHO_C" >&6
17405 ac_check_lib_save_LIBS=$LIBS
17407 cat >conftest.$ac_ext <<_ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17414 /* Override any gcc2 internal prototype to avoid an error. */
17418 /* We use char because int might match the return type of a gcc2
17419 builtin and then its argument prototype would still apply. */
17429 rm -f conftest.$ac_objext conftest$ac_exeext
17430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17431 (eval $ac_link) 2>conftest.er1
17433 grep -v '^ *+' conftest.er1 >conftest.err
17435 cat conftest.err >&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); } &&
17438 { ac_try='test -z "$ac_c_werror_flag"
17439 || test ! -s conftest.err'
17440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; } &&
17445 { ac_try='test -s conftest$ac_exeext'
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 ac_cv_lib_dld_shl_load=yes
17453 echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17456 ac_cv_lib_dld_shl_load=no
17458 rm -f conftest.err conftest.$ac_objext \
17459 conftest$ac_exeext conftest.$ac_ext
17460 LIBS=$ac_check_lib_save_LIBS
17462 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17463 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17464 if test $ac_cv_lib_dld_shl_load = yes; then
17465 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17467 echo "$as_me:$LINENO: checking for dlopen" >&5
17468 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17469 if test "${ac_cv_func_dlopen+set}" = set; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17472 cat >conftest.$ac_ext <<_ACEOF
17475 cat confdefs.h >>conftest.$ac_ext
17476 cat >>conftest.$ac_ext <<_ACEOF
17477 /* end confdefs.h. */
17478 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17480 #define dlopen innocuous_dlopen
17482 /* System header to define __stub macros and hopefully few prototypes,
17483 which can conflict with char dlopen (); below.
17484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17485 <limits.h> exists even on freestanding compilers. */
17488 # include <limits.h>
17490 # include <assert.h>
17495 /* Override any gcc2 internal prototype to avoid an error. */
17500 /* We use char because int might match the return type of a gcc2
17501 builtin and then its argument prototype would still apply. */
17503 /* The GNU C library defines this for functions which it implements
17504 to always fail with ENOSYS. Some functions are actually named
17505 something starting with __ and the normal name is an alias. */
17506 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17509 char (*f) () = dlopen;
17518 return f != dlopen;
17523 rm -f conftest.$ac_objext conftest$ac_exeext
17524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17525 (eval $ac_link) 2>conftest.er1
17527 grep -v '^ *+' conftest.er1 >conftest.err
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } &&
17532 { ac_try='test -z "$ac_c_werror_flag"
17533 || test ! -s conftest.err'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; } &&
17539 { ac_try='test -s conftest$ac_exeext'
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17545 ac_cv_func_dlopen=yes
17547 echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17550 ac_cv_func_dlopen=no
17552 rm -f conftest.err conftest.$ac_objext \
17553 conftest$ac_exeext conftest.$ac_ext
17555 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17556 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17557 if test $ac_cv_func_dlopen = yes; then
17558 lt_cv_dlopen="dlopen"
17560 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17561 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17562 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17565 ac_check_lib_save_LIBS=$LIBS
17567 cat >conftest.$ac_ext <<_ACEOF
17570 cat confdefs.h >>conftest.$ac_ext
17571 cat >>conftest.$ac_ext <<_ACEOF
17572 /* end confdefs.h. */
17574 /* Override any gcc2 internal prototype to avoid an error. */
17578 /* We use char because int might match the return type of a gcc2
17579 builtin and then its argument prototype would still apply. */
17589 rm -f conftest.$ac_objext conftest$ac_exeext
17590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17591 (eval $ac_link) 2>conftest.er1
17593 grep -v '^ *+' conftest.er1 >conftest.err
17595 cat conftest.err >&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } &&
17598 { ac_try='test -z "$ac_c_werror_flag"
17599 || test ! -s conftest.err'
17600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601 (eval $ac_try) 2>&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; } &&
17605 { ac_try='test -s conftest$ac_exeext'
17606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17607 (eval $ac_try) 2>&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); }; }; then
17611 ac_cv_lib_dl_dlopen=yes
17613 echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17616 ac_cv_lib_dl_dlopen=no
17618 rm -f conftest.err conftest.$ac_objext \
17619 conftest$ac_exeext conftest.$ac_ext
17620 LIBS=$ac_check_lib_save_LIBS
17622 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17623 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17624 if test $ac_cv_lib_dl_dlopen = yes; then
17625 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17627 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17628 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17629 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17630 echo $ECHO_N "(cached) $ECHO_C" >&6
17632 ac_check_lib_save_LIBS=$LIBS
17633 LIBS="-lsvld $LIBS"
17634 cat >conftest.$ac_ext <<_ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h. */
17641 /* Override any gcc2 internal prototype to avoid an error. */
17645 /* We use char because int might match the return type of a gcc2
17646 builtin and then its argument prototype would still apply. */
17656 rm -f conftest.$ac_objext conftest$ac_exeext
17657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17658 (eval $ac_link) 2>conftest.er1
17660 grep -v '^ *+' conftest.er1 >conftest.err
17662 cat conftest.err >&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } &&
17665 { ac_try='test -z "$ac_c_werror_flag"
17666 || test ! -s conftest.err'
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; } &&
17672 { ac_try='test -s conftest$ac_exeext'
17673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674 (eval $ac_try) 2>&5
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; }; then
17678 ac_cv_lib_svld_dlopen=yes
17680 echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17683 ac_cv_lib_svld_dlopen=no
17685 rm -f conftest.err conftest.$ac_objext \
17686 conftest$ac_exeext conftest.$ac_ext
17687 LIBS=$ac_check_lib_save_LIBS
17689 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17690 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17691 if test $ac_cv_lib_svld_dlopen = yes; then
17692 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17694 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17695 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17696 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17699 ac_check_lib_save_LIBS=$LIBS
17701 cat >conftest.$ac_ext <<_ACEOF
17704 cat confdefs.h >>conftest.$ac_ext
17705 cat >>conftest.$ac_ext <<_ACEOF
17706 /* end confdefs.h. */
17708 /* Override any gcc2 internal prototype to avoid an error. */
17712 /* We use char because int might match the return type of a gcc2
17713 builtin and then its argument prototype would still apply. */
17723 rm -f conftest.$ac_objext conftest$ac_exeext
17724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17725 (eval $ac_link) 2>conftest.er1
17727 grep -v '^ *+' conftest.er1 >conftest.err
17729 cat conftest.err >&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } &&
17732 { ac_try='test -z "$ac_c_werror_flag"
17733 || test ! -s conftest.err'
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; } &&
17739 { ac_try='test -s conftest$ac_exeext'
17740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17741 (eval $ac_try) 2>&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; }; then
17745 ac_cv_lib_dld_dld_link=yes
17747 echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17750 ac_cv_lib_dld_dld_link=no
17752 rm -f conftest.err conftest.$ac_objext \
17753 conftest$ac_exeext conftest.$ac_ext
17754 LIBS=$ac_check_lib_save_LIBS
17756 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17757 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17758 if test $ac_cv_lib_dld_dld_link = yes; then
17759 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17780 if test "x$lt_cv_dlopen" != xno; then
17786 case $lt_cv_dlopen in
17788 save_CPPFLAGS="$CPPFLAGS"
17789 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17791 save_LDFLAGS="$LDFLAGS"
17792 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17795 LIBS="$lt_cv_dlopen_libs $LIBS"
17797 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17798 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17799 if test "${lt_cv_dlopen_self+set}" = set; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17802 if test "$cross_compiling" = yes; then :
17803 lt_cv_dlopen_self=cross
17805 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17806 lt_status=$lt_dlunknown
17807 cat > conftest.$ac_ext <<EOF
17808 #line 17808 "configure"
17809 #include "confdefs.h"
17818 # define LT_DLGLOBAL RTLD_GLOBAL
17821 # define LT_DLGLOBAL DL_GLOBAL
17823 # define LT_DLGLOBAL 0
17827 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17828 find out it does not work in some platform. */
17829 #ifndef LT_DLLAZY_OR_NOW
17831 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17834 # define LT_DLLAZY_OR_NOW DL_LAZY
17837 # define LT_DLLAZY_OR_NOW RTLD_NOW
17840 # define LT_DLLAZY_OR_NOW DL_NOW
17842 # define LT_DLLAZY_OR_NOW 0
17850 extern "C" void exit (int);
17853 void fnord() { int i=42;}
17856 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17857 int status = $lt_dlunknown;
17861 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17862 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17863 /* dlclose (self); */
17869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17870 (eval $ac_link) 2>&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17874 (./conftest; exit; ) 2>/dev/null
17876 case x$lt_status in
17877 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17878 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17879 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17882 # compilation failed
17883 lt_cv_dlopen_self=no
17890 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17891 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17893 if test "x$lt_cv_dlopen_self" = xyes; then
17894 LDFLAGS="$LDFLAGS $link_static_flag"
17895 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17896 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17897 if test "${lt_cv_dlopen_self_static+set}" = set; then
17898 echo $ECHO_N "(cached) $ECHO_C" >&6
17900 if test "$cross_compiling" = yes; then :
17901 lt_cv_dlopen_self_static=cross
17903 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17904 lt_status=$lt_dlunknown
17905 cat > conftest.$ac_ext <<EOF
17906 #line 17906 "configure"
17907 #include "confdefs.h"
17916 # define LT_DLGLOBAL RTLD_GLOBAL
17919 # define LT_DLGLOBAL DL_GLOBAL
17921 # define LT_DLGLOBAL 0
17925 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17926 find out it does not work in some platform. */
17927 #ifndef LT_DLLAZY_OR_NOW
17929 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17932 # define LT_DLLAZY_OR_NOW DL_LAZY
17935 # define LT_DLLAZY_OR_NOW RTLD_NOW
17938 # define LT_DLLAZY_OR_NOW DL_NOW
17940 # define LT_DLLAZY_OR_NOW 0
17948 extern "C" void exit (int);
17951 void fnord() { int i=42;}
17954 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17955 int status = $lt_dlunknown;
17959 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17960 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17961 /* dlclose (self); */
17967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17968 (eval $ac_link) 2>&5
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17972 (./conftest; exit; ) 2>/dev/null
17974 case x$lt_status in
17975 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17976 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17977 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17980 # compilation failed
17981 lt_cv_dlopen_self_static=no
17988 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17989 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17992 CPPFLAGS="$save_CPPFLAGS"
17993 LDFLAGS="$save_LDFLAGS"
17998 case $lt_cv_dlopen_self in
17999 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18000 *) enable_dlopen_self=unknown ;;
18003 case $lt_cv_dlopen_self_static in
18004 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18005 *) enable_dlopen_self_static=unknown ;;
18010 # The else clause should only fire when bootstrapping the
18011 # libtool distribution, otherwise you forgot to ship ltmain.sh
18012 # with your package, and you will get complaints that there are
18013 # no rules to generate ltmain.sh.
18014 if test -f "$ltmain"; then
18015 # See if we are running on zsh, and set the options which allow our commands through
18016 # without removal of \ escapes.
18017 if test -n "${ZSH_VERSION+set}" ; then
18018 setopt NO_GLOB_SUBST
18020 # Now quote all the things that may contain metacharacters while being
18021 # careful not to overquote the AC_SUBSTed values. We take copies of the
18022 # variables and quote the copies for generation of the libtool script.
18023 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18025 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18026 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18027 deplibs_check_method reload_flag reload_cmds need_locks \
18028 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18029 lt_cv_sys_global_symbol_to_c_name_address \
18030 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18031 old_postinstall_cmds old_postuninstall_cmds \
18035 lt_prog_compiler_wl_GCJ \
18036 lt_prog_compiler_pic_GCJ \
18037 lt_prog_compiler_static_GCJ \
18038 lt_prog_compiler_no_builtin_flag_GCJ \
18039 export_dynamic_flag_spec_GCJ \
18040 thread_safe_flag_spec_GCJ \
18041 whole_archive_flag_spec_GCJ \
18042 enable_shared_with_static_runtimes_GCJ \
18043 old_archive_cmds_GCJ \
18044 old_archive_from_new_cmds_GCJ \
18045 predep_objects_GCJ \
18046 postdep_objects_GCJ \
18049 compiler_lib_search_path_GCJ \
18051 archive_expsym_cmds_GCJ \
18052 postinstall_cmds_GCJ \
18053 postuninstall_cmds_GCJ \
18054 old_archive_from_expsyms_cmds_GCJ \
18055 allow_undefined_flag_GCJ \
18056 no_undefined_flag_GCJ \
18057 export_symbols_cmds_GCJ \
18058 hardcode_libdir_flag_spec_GCJ \
18059 hardcode_libdir_flag_spec_ld_GCJ \
18060 hardcode_libdir_separator_GCJ \
18061 hardcode_automatic_GCJ \
18063 module_expsym_cmds_GCJ \
18064 lt_cv_prog_compiler_c_o_GCJ \
18065 exclude_expsyms_GCJ \
18066 include_expsyms_GCJ; do
18069 old_archive_cmds_GCJ | \
18070 old_archive_from_new_cmds_GCJ | \
18071 archive_cmds_GCJ | \
18072 archive_expsym_cmds_GCJ | \
18073 module_cmds_GCJ | \
18074 module_expsym_cmds_GCJ | \
18075 old_archive_from_expsyms_cmds_GCJ | \
18076 export_symbols_cmds_GCJ | \
18077 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18078 postinstall_cmds | postuninstall_cmds | \
18079 old_postinstall_cmds | old_postuninstall_cmds | \
18080 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18081 # Double-quote double-evaled strings.
18082 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18085 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18091 *'\$0 --fallback-echo"')
18092 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18098 cat <<__EOF__ >> "$cfgfile"
18099 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18101 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18103 # Shell to use when invoking shell scripts.
18106 # Whether or not to build shared libraries.
18107 build_libtool_libs=$enable_shared
18109 # Whether or not to build static libraries.
18110 build_old_libs=$enable_static
18112 # Whether or not to add -lc for building shared libraries.
18113 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18115 # Whether or not to disallow shared libs when runtime libs are static
18116 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18118 # Whether or not to optimize for fast installation.
18119 fast_install=$enable_fast_install
18122 host_alias=$host_alias
18125 # An echo program that does not interpret backslashes.
18130 AR_FLAGS=$lt_AR_FLAGS
18135 # A language-specific compiler.
18136 CC=$lt_compiler_GCJ
18138 # Is the compiler the GNU C compiler?
18144 # The linker used to build libraries.
18147 # Whether we need hard or soft links.
18150 # A BSD-compatible nm program.
18153 # A symbol stripping program
18156 # Used to examine libraries when file_magic_cmd begins "file"
18157 MAGIC_CMD=$MAGIC_CMD
18159 # Used on cygwin: DLL creation program.
18162 # Used on cygwin: object dumper.
18165 # Used on cygwin: assembler.
18168 # The name of the directory that contains temporary libtool files.
18171 # How to create reloadable object files.
18172 reload_flag=$lt_reload_flag
18173 reload_cmds=$lt_reload_cmds
18175 # How to pass a linker flag through the compiler.
18176 wl=$lt_lt_prog_compiler_wl_GCJ
18178 # Object file suffix (normally "o").
18179 objext="$ac_objext"
18181 # Old archive suffix (normally "a").
18184 # Shared library suffix (normally ".so").
18185 shrext_cmds='$shrext_cmds'
18187 # Executable file suffix (normally "").
18190 # Additional compiler flags for building library objects.
18191 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18194 # What is the maximum length of a command?
18195 max_cmd_len=$lt_cv_sys_max_cmd_len
18197 # Does compiler simultaneously support -c and -o options?
18198 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18200 # Must we lock files when doing compilation ?
18201 need_locks=$lt_need_locks
18203 # Do we need the lib prefix for modules?
18204 need_lib_prefix=$need_lib_prefix
18206 # Do we need a version for libraries?
18207 need_version=$need_version
18209 # Whether dlopen is supported.
18210 dlopen_support=$enable_dlopen
18212 # Whether dlopen of programs is supported.
18213 dlopen_self=$enable_dlopen_self
18215 # Whether dlopen of statically linked programs is supported.
18216 dlopen_self_static=$enable_dlopen_self_static
18218 # Compiler flag to prevent dynamic linking.
18219 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18221 # Compiler flag to turn off builtin functions.
18222 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18224 # Compiler flag to allow reflexive dlopens.
18225 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18227 # Compiler flag to generate shared objects directly from archives.
18228 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18230 # Compiler flag to generate thread-safe objects.
18231 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18233 # Library versioning type.
18234 version_type=$version_type
18236 # Format of library name prefix.
18237 libname_spec=$lt_libname_spec
18239 # List of archive names. First name is the real one, the rest are links.
18240 # The last name is the one that the linker finds with -lNAME.
18241 library_names_spec=$lt_library_names_spec
18243 # The coded name of the library, if different from the real name.
18244 soname_spec=$lt_soname_spec
18246 # Commands used to build and install an old-style archive.
18248 old_archive_cmds=$lt_old_archive_cmds_GCJ
18249 old_postinstall_cmds=$lt_old_postinstall_cmds
18250 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18252 # Create an old-style archive from a shared archive.
18253 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18255 # Create a temporary old-style archive to link instead of a shared archive.
18256 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18258 # Commands used to build and install a shared archive.
18259 archive_cmds=$lt_archive_cmds_GCJ
18260 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18261 postinstall_cmds=$lt_postinstall_cmds
18262 postuninstall_cmds=$lt_postuninstall_cmds
18264 # Commands used to build a loadable module (assumed same as above if empty)
18265 module_cmds=$lt_module_cmds_GCJ
18266 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18268 # Commands to strip libraries.
18269 old_striplib=$lt_old_striplib
18270 striplib=$lt_striplib
18272 # Dependencies to place before the objects being linked to create a
18274 predep_objects=$lt_predep_objects_GCJ
18276 # Dependencies to place after the objects being linked to create a
18278 postdep_objects=$lt_postdep_objects_GCJ
18280 # Dependencies to place before the objects being linked to create a
18282 predeps=$lt_predeps_GCJ
18284 # Dependencies to place after the objects being linked to create a
18286 postdeps=$lt_postdeps_GCJ
18288 # The library search path used internally by the compiler when linking
18289 # a shared library.
18290 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18292 # Method to check whether dependent libraries are shared objects.
18293 deplibs_check_method=$lt_deplibs_check_method
18295 # Command to use when deplibs_check_method == file_magic.
18296 file_magic_cmd=$lt_file_magic_cmd
18298 # Flag that allows shared libraries with undefined symbols to be built.
18299 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18301 # Flag that forces no undefined symbols.
18302 no_undefined_flag=$lt_no_undefined_flag_GCJ
18304 # Commands used to finish a libtool library installation in a directory.
18305 finish_cmds=$lt_finish_cmds
18307 # Same as above, but a single script fragment to be evaled but not shown.
18308 finish_eval=$lt_finish_eval
18310 # Take the output of nm and produce a listing of raw symbols and C names.
18311 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18313 # Transform the output of nm in a proper C declaration
18314 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18316 # Transform the output of nm in a C name address pair
18317 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18319 # This is the shared library runtime path variable.
18320 runpath_var=$runpath_var
18322 # This is the shared library path variable.
18323 shlibpath_var=$shlibpath_var
18325 # Is shlibpath searched before the hard-coded library search path?
18326 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18328 # How to hardcode a shared library path into an executable.
18329 hardcode_action=$hardcode_action_GCJ
18331 # Whether we should hardcode library paths into libraries.
18332 hardcode_into_libs=$hardcode_into_libs
18334 # Flag to hardcode \$libdir into a binary during linking.
18335 # This must work even if \$libdir does not exist.
18336 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18338 # If ld is used when linking, flag to hardcode \$libdir into
18339 # a binary during linking. This must work even if \$libdir does
18341 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18343 # Whether we need a single -rpath flag with a separated argument.
18344 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18346 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18347 # resulting binary.
18348 hardcode_direct=$hardcode_direct_GCJ
18350 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18351 # resulting binary.
18352 hardcode_minus_L=$hardcode_minus_L_GCJ
18354 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18355 # the resulting binary.
18356 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18358 # Set to yes if building a shared library automatically hardcodes DIR into the library
18359 # and all subsequent libraries and executables linked against it.
18360 hardcode_automatic=$hardcode_automatic_GCJ
18362 # Variables whose values should be saved in libtool wrapper scripts and
18363 # restored at relink time.
18364 variables_saved_for_relink="$variables_saved_for_relink"
18366 # Whether libtool must link a program against all its dependency libraries.
18367 link_all_deplibs=$link_all_deplibs_GCJ
18369 # Compile-time system search path for libraries
18370 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18372 # Run-time system search path for libraries
18373 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18375 # Fix the shell variable \$srcfile for the compiler.
18376 fix_srcfile_path="$fix_srcfile_path_GCJ"
18378 # Set to yes if exported symbols are required.
18379 always_export_symbols=$always_export_symbols_GCJ
18381 # The commands to list exported symbols.
18382 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18384 # The commands to extract the exported symbol list from a shared archive.
18385 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18387 # Symbols that should not be listed in the preloaded symbols.
18388 exclude_expsyms=$lt_exclude_expsyms_GCJ
18390 # Symbols that must always be exported.
18391 include_expsyms=$lt_include_expsyms_GCJ
18393 # ### END LIBTOOL TAG CONFIG: $tagname
18399 # If there is no Makefile yet, we rely on a make rule to execute
18400 # `config.status --recheck' to rerun these tests and create the
18401 # libtool script then.
18402 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18403 if test -f "$ltmain_in"; then
18404 test -f Makefile && make "$ltmain"
18410 ac_cpp='$CPP $CPPFLAGS'
18411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18424 ac_cpp='$CPP $CPPFLAGS'
18425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18430 # Source file extension for RC test sources.
18433 # Object file extension for compiled RC test sources.
18437 # Code to be used in simple compile tests
18438 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18440 # Code to be used in simple link tests
18441 lt_simple_link_test_code="$lt_simple_compile_test_code"
18443 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18445 # If no C compiler was specified, use CC.
18448 # Allow CC to be a program name with arguments.
18452 # Allow CC to be a program name with arguments.
18457 lt_cv_prog_compiler_c_o_RC=yes
18459 # The else clause should only fire when bootstrapping the
18460 # libtool distribution, otherwise you forgot to ship ltmain.sh
18461 # with your package, and you will get complaints that there are
18462 # no rules to generate ltmain.sh.
18463 if test -f "$ltmain"; then
18464 # See if we are running on zsh, and set the options which allow our commands through
18465 # without removal of \ escapes.
18466 if test -n "${ZSH_VERSION+set}" ; then
18467 setopt NO_GLOB_SUBST
18469 # Now quote all the things that may contain metacharacters while being
18470 # careful not to overquote the AC_SUBSTed values. We take copies of the
18471 # variables and quote the copies for generation of the libtool script.
18472 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18474 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18475 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18476 deplibs_check_method reload_flag reload_cmds need_locks \
18477 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18478 lt_cv_sys_global_symbol_to_c_name_address \
18479 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18480 old_postinstall_cmds old_postuninstall_cmds \
18484 lt_prog_compiler_wl_RC \
18485 lt_prog_compiler_pic_RC \
18486 lt_prog_compiler_static_RC \
18487 lt_prog_compiler_no_builtin_flag_RC \
18488 export_dynamic_flag_spec_RC \
18489 thread_safe_flag_spec_RC \
18490 whole_archive_flag_spec_RC \
18491 enable_shared_with_static_runtimes_RC \
18492 old_archive_cmds_RC \
18493 old_archive_from_new_cmds_RC \
18494 predep_objects_RC \
18495 postdep_objects_RC \
18498 compiler_lib_search_path_RC \
18500 archive_expsym_cmds_RC \
18501 postinstall_cmds_RC \
18502 postuninstall_cmds_RC \
18503 old_archive_from_expsyms_cmds_RC \
18504 allow_undefined_flag_RC \
18505 no_undefined_flag_RC \
18506 export_symbols_cmds_RC \
18507 hardcode_libdir_flag_spec_RC \
18508 hardcode_libdir_flag_spec_ld_RC \
18509 hardcode_libdir_separator_RC \
18510 hardcode_automatic_RC \
18512 module_expsym_cmds_RC \
18513 lt_cv_prog_compiler_c_o_RC \
18514 exclude_expsyms_RC \
18515 include_expsyms_RC; do
18518 old_archive_cmds_RC | \
18519 old_archive_from_new_cmds_RC | \
18520 archive_cmds_RC | \
18521 archive_expsym_cmds_RC | \
18523 module_expsym_cmds_RC | \
18524 old_archive_from_expsyms_cmds_RC | \
18525 export_symbols_cmds_RC | \
18526 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18527 postinstall_cmds | postuninstall_cmds | \
18528 old_postinstall_cmds | old_postuninstall_cmds | \
18529 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18530 # Double-quote double-evaled strings.
18531 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18534 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18540 *'\$0 --fallback-echo"')
18541 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18547 cat <<__EOF__ >> "$cfgfile"
18548 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18550 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18552 # Shell to use when invoking shell scripts.
18555 # Whether or not to build shared libraries.
18556 build_libtool_libs=$enable_shared
18558 # Whether or not to build static libraries.
18559 build_old_libs=$enable_static
18561 # Whether or not to add -lc for building shared libraries.
18562 build_libtool_need_lc=$archive_cmds_need_lc_RC
18564 # Whether or not to disallow shared libs when runtime libs are static
18565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18567 # Whether or not to optimize for fast installation.
18568 fast_install=$enable_fast_install
18571 host_alias=$host_alias
18574 # An echo program that does not interpret backslashes.
18579 AR_FLAGS=$lt_AR_FLAGS
18584 # A language-specific compiler.
18587 # Is the compiler the GNU C compiler?
18593 # The linker used to build libraries.
18596 # Whether we need hard or soft links.
18599 # A BSD-compatible nm program.
18602 # A symbol stripping program
18605 # Used to examine libraries when file_magic_cmd begins "file"
18606 MAGIC_CMD=$MAGIC_CMD
18608 # Used on cygwin: DLL creation program.
18611 # Used on cygwin: object dumper.
18614 # Used on cygwin: assembler.
18617 # The name of the directory that contains temporary libtool files.
18620 # How to create reloadable object files.
18621 reload_flag=$lt_reload_flag
18622 reload_cmds=$lt_reload_cmds
18624 # How to pass a linker flag through the compiler.
18625 wl=$lt_lt_prog_compiler_wl_RC
18627 # Object file suffix (normally "o").
18628 objext="$ac_objext"
18630 # Old archive suffix (normally "a").
18633 # Shared library suffix (normally ".so").
18634 shrext_cmds='$shrext_cmds'
18636 # Executable file suffix (normally "").
18639 # Additional compiler flags for building library objects.
18640 pic_flag=$lt_lt_prog_compiler_pic_RC
18643 # What is the maximum length of a command?
18644 max_cmd_len=$lt_cv_sys_max_cmd_len
18646 # Does compiler simultaneously support -c and -o options?
18647 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18649 # Must we lock files when doing compilation ?
18650 need_locks=$lt_need_locks
18652 # Do we need the lib prefix for modules?
18653 need_lib_prefix=$need_lib_prefix
18655 # Do we need a version for libraries?
18656 need_version=$need_version
18658 # Whether dlopen is supported.
18659 dlopen_support=$enable_dlopen
18661 # Whether dlopen of programs is supported.
18662 dlopen_self=$enable_dlopen_self
18664 # Whether dlopen of statically linked programs is supported.
18665 dlopen_self_static=$enable_dlopen_self_static
18667 # Compiler flag to prevent dynamic linking.
18668 link_static_flag=$lt_lt_prog_compiler_static_RC
18670 # Compiler flag to turn off builtin functions.
18671 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18673 # Compiler flag to allow reflexive dlopens.
18674 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18676 # Compiler flag to generate shared objects directly from archives.
18677 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18679 # Compiler flag to generate thread-safe objects.
18680 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18682 # Library versioning type.
18683 version_type=$version_type
18685 # Format of library name prefix.
18686 libname_spec=$lt_libname_spec
18688 # List of archive names. First name is the real one, the rest are links.
18689 # The last name is the one that the linker finds with -lNAME.
18690 library_names_spec=$lt_library_names_spec
18692 # The coded name of the library, if different from the real name.
18693 soname_spec=$lt_soname_spec
18695 # Commands used to build and install an old-style archive.
18697 old_archive_cmds=$lt_old_archive_cmds_RC
18698 old_postinstall_cmds=$lt_old_postinstall_cmds
18699 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18701 # Create an old-style archive from a shared archive.
18702 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18704 # Create a temporary old-style archive to link instead of a shared archive.
18705 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18707 # Commands used to build and install a shared archive.
18708 archive_cmds=$lt_archive_cmds_RC
18709 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18710 postinstall_cmds=$lt_postinstall_cmds
18711 postuninstall_cmds=$lt_postuninstall_cmds
18713 # Commands used to build a loadable module (assumed same as above if empty)
18714 module_cmds=$lt_module_cmds_RC
18715 module_expsym_cmds=$lt_module_expsym_cmds_RC
18717 # Commands to strip libraries.
18718 old_striplib=$lt_old_striplib
18719 striplib=$lt_striplib
18721 # Dependencies to place before the objects being linked to create a
18723 predep_objects=$lt_predep_objects_RC
18725 # Dependencies to place after the objects being linked to create a
18727 postdep_objects=$lt_postdep_objects_RC
18729 # Dependencies to place before the objects being linked to create a
18731 predeps=$lt_predeps_RC
18733 # Dependencies to place after the objects being linked to create a
18735 postdeps=$lt_postdeps_RC
18737 # The library search path used internally by the compiler when linking
18738 # a shared library.
18739 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18741 # Method to check whether dependent libraries are shared objects.
18742 deplibs_check_method=$lt_deplibs_check_method
18744 # Command to use when deplibs_check_method == file_magic.
18745 file_magic_cmd=$lt_file_magic_cmd
18747 # Flag that allows shared libraries with undefined symbols to be built.
18748 allow_undefined_flag=$lt_allow_undefined_flag_RC
18750 # Flag that forces no undefined symbols.
18751 no_undefined_flag=$lt_no_undefined_flag_RC
18753 # Commands used to finish a libtool library installation in a directory.
18754 finish_cmds=$lt_finish_cmds
18756 # Same as above, but a single script fragment to be evaled but not shown.
18757 finish_eval=$lt_finish_eval
18759 # Take the output of nm and produce a listing of raw symbols and C names.
18760 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18762 # Transform the output of nm in a proper C declaration
18763 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18765 # Transform the output of nm in a C name address pair
18766 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18768 # This is the shared library runtime path variable.
18769 runpath_var=$runpath_var
18771 # This is the shared library path variable.
18772 shlibpath_var=$shlibpath_var
18774 # Is shlibpath searched before the hard-coded library search path?
18775 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18777 # How to hardcode a shared library path into an executable.
18778 hardcode_action=$hardcode_action_RC
18780 # Whether we should hardcode library paths into libraries.
18781 hardcode_into_libs=$hardcode_into_libs
18783 # Flag to hardcode \$libdir into a binary during linking.
18784 # This must work even if \$libdir does not exist.
18785 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18787 # If ld is used when linking, flag to hardcode \$libdir into
18788 # a binary during linking. This must work even if \$libdir does
18790 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18792 # Whether we need a single -rpath flag with a separated argument.
18793 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18795 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18796 # resulting binary.
18797 hardcode_direct=$hardcode_direct_RC
18799 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18800 # resulting binary.
18801 hardcode_minus_L=$hardcode_minus_L_RC
18803 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18804 # the resulting binary.
18805 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18807 # Set to yes if building a shared library automatically hardcodes DIR into the library
18808 # and all subsequent libraries and executables linked against it.
18809 hardcode_automatic=$hardcode_automatic_RC
18811 # Variables whose values should be saved in libtool wrapper scripts and
18812 # restored at relink time.
18813 variables_saved_for_relink="$variables_saved_for_relink"
18815 # Whether libtool must link a program against all its dependency libraries.
18816 link_all_deplibs=$link_all_deplibs_RC
18818 # Compile-time system search path for libraries
18819 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18821 # Run-time system search path for libraries
18822 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18824 # Fix the shell variable \$srcfile for the compiler.
18825 fix_srcfile_path="$fix_srcfile_path_RC"
18827 # Set to yes if exported symbols are required.
18828 always_export_symbols=$always_export_symbols_RC
18830 # The commands to list exported symbols.
18831 export_symbols_cmds=$lt_export_symbols_cmds_RC
18833 # The commands to extract the exported symbol list from a shared archive.
18834 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18836 # Symbols that should not be listed in the preloaded symbols.
18837 exclude_expsyms=$lt_exclude_expsyms_RC
18839 # Symbols that must always be exported.
18840 include_expsyms=$lt_include_expsyms_RC
18842 # ### END LIBTOOL TAG CONFIG: $tagname
18848 # If there is no Makefile yet, we rely on a make rule to execute
18849 # `config.status --recheck' to rerun these tests and create the
18850 # libtool script then.
18851 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18852 if test -f "$ltmain_in"; then
18853 test -f Makefile && make "$ltmain"
18859 ac_cpp='$CPP $CPPFLAGS'
18860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18869 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18870 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18871 { (exit 1); exit 1; }; }
18875 # Append the new tag name to the list of available tags.
18876 if test -n "$tagname" ; then
18877 available_tags="$available_tags $tagname"
18883 # Now substitute the updated list of available tags.
18884 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18885 mv "${ofile}T" "$ofile"
18889 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18890 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18891 { (exit 1); exit 1; }; }
18897 # This can be used to rebuild libtool when needed
18898 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18900 # Always use our own libtool.
18901 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18903 # Prevent multiple expansion
18925 # Extract the first word of "dot", so it can be a program name with args.
18926 set dummy dot; ac_word=$2
18927 echo "$as_me:$LINENO: checking for $ac_word" >&5
18928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18929 if test "${ac_cv_path_DOT+set}" = set; then
18930 echo $ECHO_N "(cached) $ECHO_C" >&6
18934 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18938 for as_dir in $PATH
18941 test -z "$as_dir" && as_dir=.
18942 for ac_exec_ext in '' $ac_executable_extensions; do
18943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18944 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18951 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18955 DOT=$ac_cv_path_DOT
18957 if test -n "$DOT"; then
18958 echo "$as_me:$LINENO: result: $DOT" >&5
18959 echo "${ECHO_T}$DOT" >&6
18961 echo "$as_me:$LINENO: result: no" >&5
18962 echo "${ECHO_T}no" >&6
18965 # Extract the first word of "etags", so it can be a program name with args.
18966 set dummy etags; ac_word=$2
18967 echo "$as_me:$LINENO: checking for $ac_word" >&5
18968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18969 if test "${ac_cv_path_ETAGS+set}" = set; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
18974 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18978 for as_dir in $PATH
18981 test -z "$as_dir" && as_dir=.
18982 for ac_exec_ext in '' $ac_executable_extensions; do
18983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18984 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18991 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18995 ETAGS=$ac_cv_path_ETAGS
18997 if test -n "$ETAGS"; then
18998 echo "$as_me:$LINENO: result: $ETAGS" >&5
18999 echo "${ECHO_T}$ETAGS" >&6
19001 echo "$as_me:$LINENO: result: no" >&5
19002 echo "${ECHO_T}no" >&6
19005 etags_version=`$ETAGS --version 2>&1`
19006 case "$etags_version" in
19007 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19008 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19009 *) ETAGSFLAGS="" ;;
19011 ETAGSFLAGS=$ETAGSFLAGS
19013 # Extract the first word of "python", so it can be a program name with args.
19014 set dummy python; ac_word=$2
19015 echo "$as_me:$LINENO: checking for $ac_word" >&5
19016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19017 if test "${ac_cv_path_PYTHON+set}" = set; then
19018 echo $ECHO_N "(cached) $ECHO_C" >&6
19022 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19026 for as_dir in $PATH
19029 test -z "$as_dir" && as_dir=.
19030 for ac_exec_ext in '' $ac_executable_extensions; do
19031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19032 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19039 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
19043 PYTHON=$ac_cv_path_PYTHON
19045 if test -n "$PYTHON"; then
19046 echo "$as_me:$LINENO: result: $PYTHON" >&5
19047 echo "${ECHO_T}$PYTHON" >&6
19049 echo "$as_me:$LINENO: result: no" >&5
19050 echo "${ECHO_T}no" >&6
19053 if test "$PYTHON" = "false"
19055 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19056 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
19058 # Extract the first word of "qmtest", so it can be a program name with args.
19059 set dummy qmtest; ac_word=$2
19060 echo "$as_me:$LINENO: checking for $ac_word" >&5
19061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19062 if test "${ac_cv_path_QMTEST+set}" = set; then
19063 echo $ECHO_N "(cached) $ECHO_C" >&6
19067 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19071 for as_dir in $PATH
19074 test -z "$as_dir" && as_dir=.
19075 for ac_exec_ext in '' $ac_executable_extensions; do
19076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19077 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19084 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
19088 QMTEST=$ac_cv_path_QMTEST
19090 if test -n "$QMTEST"; then
19091 echo "$as_me:$LINENO: result: $QMTEST" >&5
19092 echo "${ECHO_T}$QMTEST" >&6
19094 echo "$as_me:$LINENO: result: no" >&5
19095 echo "${ECHO_T}no" >&6
19098 if test "$QMTEST" = "false"
19100 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19101 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
19104 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19105 pymajor=`echo $pyversion | cut -d. -f1`
19106 pyminor=`echo $pyversion | cut -d. -f2`
19108 if test "$pymajor" -ge "2"
19110 if test "$pymajor" -eq "2"
19112 if test "$pyminor" -lt "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: WARNING: QMTest requires Python 2.2 or later" >&5
19120 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19124 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19125 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19126 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19129 ac_check_lib_save_LIBS=$LIBS
19131 cat >conftest.$ac_ext <<_ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h. */
19138 /* Override any gcc2 internal prototype to avoid an error. */
19142 /* We use char because int might match the return type of a gcc2
19143 builtin and then its argument prototype would still apply. */
19153 rm -f conftest.$ac_objext conftest$ac_exeext
19154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19155 (eval $ac_link) 2>conftest.er1
19157 grep -v '^ *+' conftest.er1 >conftest.err
19159 cat conftest.err >&5
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); } &&
19162 { ac_try='test -z "$ac_c_werror_flag"
19163 || test ! -s conftest.err'
19164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165 (eval $ac_try) 2>&5
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; } &&
19169 { ac_try='test -s conftest$ac_exeext'
19170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; }; then
19175 ac_cv_lib_elf_elf_begin=yes
19177 echo "$as_me: failed program was:" >&5
19178 sed 's/^/| /' conftest.$ac_ext >&5
19180 ac_cv_lib_elf_elf_begin=no
19182 rm -f conftest.err conftest.$ac_objext \
19183 conftest$ac_exeext conftest.$ac_ext
19184 LIBS=$ac_check_lib_save_LIBS
19186 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19187 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19188 if test $ac_cv_lib_elf_elf_begin = yes; then
19189 cat >>confdefs.h <<_ACEOF
19190 #define HAVE_LIBELF 1
19198 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19199 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19200 if test "${ac_cv_search_dlopen+set}" = set; then
19201 echo $ECHO_N "(cached) $ECHO_C" >&6
19203 ac_func_search_save_LIBS=$LIBS
19204 ac_cv_search_dlopen=no
19205 cat >conftest.$ac_ext <<_ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h. */
19212 /* Override any gcc2 internal prototype to avoid an error. */
19216 /* We use char because int might match the return type of a gcc2
19217 builtin and then its argument prototype would still apply. */
19227 rm -f conftest.$ac_objext conftest$ac_exeext
19228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19229 (eval $ac_link) 2>conftest.er1
19231 grep -v '^ *+' conftest.er1 >conftest.err
19233 cat conftest.err >&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } &&
19236 { ac_try='test -z "$ac_c_werror_flag"
19237 || test ! -s conftest.err'
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; } &&
19243 { ac_try='test -s conftest$ac_exeext'
19244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245 (eval $ac_try) 2>&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; }; then
19249 ac_cv_search_dlopen="none required"
19251 echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19255 rm -f conftest.err conftest.$ac_objext \
19256 conftest$ac_exeext conftest.$ac_ext
19257 if test "$ac_cv_search_dlopen" = no; then
19258 for ac_lib in dl; do
19259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19260 cat >conftest.$ac_ext <<_ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h. */
19267 /* Override any gcc2 internal prototype to avoid an error. */
19271 /* We use char because int might match the return type of a gcc2
19272 builtin and then its argument prototype would still apply. */
19282 rm -f conftest.$ac_objext conftest$ac_exeext
19283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19284 (eval $ac_link) 2>conftest.er1
19286 grep -v '^ *+' conftest.er1 >conftest.err
19288 cat conftest.err >&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } &&
19291 { ac_try='test -z "$ac_c_werror_flag"
19292 || test ! -s conftest.err'
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; } &&
19298 { ac_try='test -s conftest$ac_exeext'
19299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300 (eval $ac_try) 2>&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; }; then
19304 ac_cv_search_dlopen="-l$ac_lib"
19307 echo "$as_me: failed program was:" >&5
19308 sed 's/^/| /' conftest.$ac_ext >&5
19311 rm -f conftest.err conftest.$ac_objext \
19312 conftest$ac_exeext conftest.$ac_ext
19315 LIBS=$ac_func_search_save_LIBS
19317 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19318 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19319 if test "$ac_cv_search_dlopen" != no; then
19320 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19322 cat >>confdefs.h <<\_ACEOF
19323 #define HAVE_DLOPEN 1
19327 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19328 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19332 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19333 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19334 if test "${ac_cv_search_mallinfo+set}" = set; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
19337 ac_func_search_save_LIBS=$LIBS
19338 ac_cv_search_mallinfo=no
19339 cat >conftest.$ac_ext <<_ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19346 /* Override any gcc2 internal prototype to avoid an error. */
19350 /* We use char because int might match the return type of a gcc2
19351 builtin and then its argument prototype would still apply. */
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19363 (eval $ac_link) 2>conftest.er1
19365 grep -v '^ *+' conftest.er1 >conftest.err
19367 cat conftest.err >&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); } &&
19370 { ac_try='test -z "$ac_c_werror_flag"
19371 || test ! -s conftest.err'
19372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373 (eval $ac_try) 2>&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; } &&
19377 { ac_try='test -s conftest$ac_exeext'
19378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; }; then
19383 ac_cv_search_mallinfo="none required"
19385 echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19389 rm -f conftest.err conftest.$ac_objext \
19390 conftest$ac_exeext conftest.$ac_ext
19391 if test "$ac_cv_search_mallinfo" = no; then
19392 for ac_lib in malloc; do
19393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19394 cat >conftest.$ac_ext <<_ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19401 /* Override any gcc2 internal prototype to avoid an error. */
19405 /* We use char because int might match the return type of a gcc2
19406 builtin and then its argument prototype would still apply. */
19416 rm -f conftest.$ac_objext conftest$ac_exeext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19418 (eval $ac_link) 2>conftest.er1
19420 grep -v '^ *+' conftest.er1 >conftest.err
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } &&
19425 { ac_try='test -z "$ac_c_werror_flag"
19426 || test ! -s conftest.err'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; } &&
19432 { ac_try='test -s conftest$ac_exeext'
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; }; then
19438 ac_cv_search_mallinfo="-l$ac_lib"
19441 echo "$as_me: failed program was:" >&5
19442 sed 's/^/| /' conftest.$ac_ext >&5
19445 rm -f conftest.err conftest.$ac_objext \
19446 conftest$ac_exeext conftest.$ac_ext
19449 LIBS=$ac_func_search_save_LIBS
19451 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19452 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19453 if test "$ac_cv_search_mallinfo" != no; then
19454 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19456 cat >>confdefs.h <<\_ACEOF
19457 #define HAVE_MALLINFO 1
19463 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19464 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19465 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 ac_func_search_save_LIBS=$LIBS
19469 ac_cv_search_pthread_mutex_lock=no
19470 cat >conftest.$ac_ext <<_ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h. */
19477 /* Override any gcc2 internal prototype to avoid an error. */
19481 /* We use char because int might match the return type of a gcc2
19482 builtin and then its argument prototype would still apply. */
19483 char pthread_mutex_lock ();
19487 pthread_mutex_lock ();
19492 rm -f conftest.$ac_objext conftest$ac_exeext
19493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19494 (eval $ac_link) 2>conftest.er1
19496 grep -v '^ *+' conftest.er1 >conftest.err
19498 cat conftest.err >&5
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); } &&
19501 { ac_try='test -z "$ac_c_werror_flag"
19502 || test ! -s conftest.err'
19503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; } &&
19508 { ac_try='test -s conftest$ac_exeext'
19509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19510 (eval $ac_try) 2>&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; }; then
19514 ac_cv_search_pthread_mutex_lock="none required"
19516 echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19520 rm -f conftest.err conftest.$ac_objext \
19521 conftest$ac_exeext conftest.$ac_ext
19522 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19523 for ac_lib in pthread; do
19524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19525 cat >conftest.$ac_ext <<_ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h. */
19532 /* Override any gcc2 internal prototype to avoid an error. */
19536 /* We use char because int might match the return type of a gcc2
19537 builtin and then its argument prototype would still apply. */
19538 char pthread_mutex_lock ();
19542 pthread_mutex_lock ();
19547 rm -f conftest.$ac_objext conftest$ac_exeext
19548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19549 (eval $ac_link) 2>conftest.er1
19551 grep -v '^ *+' conftest.er1 >conftest.err
19553 cat conftest.err >&5
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); } &&
19556 { ac_try='test -z "$ac_c_werror_flag"
19557 || test ! -s conftest.err'
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; } &&
19563 { ac_try='test -s conftest$ac_exeext'
19564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565 (eval $ac_try) 2>&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; }; then
19569 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19576 rm -f conftest.err conftest.$ac_objext \
19577 conftest$ac_exeext conftest.$ac_ext
19580 LIBS=$ac_func_search_save_LIBS
19582 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19583 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19584 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19585 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19586 HAVE_PTHREAD_MUTEX_LOCK=1
19588 HAVE_PTHREAD_MUTEX_LOCK=0
19593 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19594 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19595 if test "${ac_cv_header_stdc+set}" = set; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
19598 cat >conftest.$ac_ext <<_ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19604 #include <stdlib.h>
19605 #include <stdarg.h>
19606 #include <string.h>
19617 rm -f conftest.$ac_objext
19618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19619 (eval $ac_compile) 2>conftest.er1
19621 grep -v '^ *+' conftest.er1 >conftest.err
19623 cat conftest.err >&5
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); } &&
19626 { ac_try='test -z "$ac_c_werror_flag"
19627 || test ! -s conftest.err'
19628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; } &&
19633 { ac_try='test -s conftest.$ac_objext'
19634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635 (eval $ac_try) 2>&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; }; then
19639 ac_cv_header_stdc=yes
19641 echo "$as_me: failed program was:" >&5
19642 sed 's/^/| /' conftest.$ac_ext >&5
19644 ac_cv_header_stdc=no
19646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19648 if test $ac_cv_header_stdc = yes; then
19649 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19650 cat >conftest.$ac_ext <<_ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h. */
19656 #include <string.h>
19659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19660 $EGREP "memchr" >/dev/null 2>&1; then
19663 ac_cv_header_stdc=no
19669 if test $ac_cv_header_stdc = yes; then
19670 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19671 cat >conftest.$ac_ext <<_ACEOF
19674 cat confdefs.h >>conftest.$ac_ext
19675 cat >>conftest.$ac_ext <<_ACEOF
19676 /* end confdefs.h. */
19677 #include <stdlib.h>
19680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19681 $EGREP "free" >/dev/null 2>&1; then
19684 ac_cv_header_stdc=no
19690 if test $ac_cv_header_stdc = yes; then
19691 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19692 if test "$cross_compiling" = yes; then
19695 cat >conftest.$ac_ext <<_ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h. */
19702 #if ((' ' & 0x0FF) == 0x020)
19703 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19704 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19706 # define ISLOWER(c) \
19707 (('a' <= (c) && (c) <= 'i') \
19708 || ('j' <= (c) && (c) <= 'r') \
19709 || ('s' <= (c) && (c) <= 'z'))
19710 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19713 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19718 for (i = 0; i < 256; i++)
19719 if (XOR (islower (i), ISLOWER (i))
19720 || toupper (i) != TOUPPER (i))
19725 rm -f conftest$ac_exeext
19726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19727 (eval $ac_link) 2>&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; }; then
19738 echo "$as_me: program exited with status $ac_status" >&5
19739 echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.$ac_ext >&5
19742 ( exit $ac_status )
19743 ac_cv_header_stdc=no
19745 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19749 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19750 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19751 if test $ac_cv_header_stdc = yes; then
19753 cat >>confdefs.h <<\_ACEOF
19754 #define STDC_HEADERS 1
19759 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19760 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19761 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19762 echo $ECHO_N "(cached) $ECHO_C" >&6
19764 cat >conftest.$ac_ext <<_ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h. */
19770 #include <sys/types.h>
19771 #include <sys/wait.h>
19772 #ifndef WEXITSTATUS
19773 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19776 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19784 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19789 rm -f conftest.$ac_objext
19790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19791 (eval $ac_compile) 2>conftest.er1
19793 grep -v '^ *+' conftest.er1 >conftest.err
19795 cat conftest.err >&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); } &&
19798 { ac_try='test -z "$ac_c_werror_flag"
19799 || test ! -s conftest.err'
19800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801 (eval $ac_try) 2>&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; } &&
19805 { ac_try='test -s conftest.$ac_objext'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; }; then
19811 ac_cv_header_sys_wait_h=yes
19813 echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19816 ac_cv_header_sys_wait_h=no
19818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19820 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19821 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19822 if test $ac_cv_header_sys_wait_h = yes; then
19824 cat >>confdefs.h <<\_ACEOF
19825 #define HAVE_SYS_WAIT_H 1
19842 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
19844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19846 echo "$as_me:$LINENO: checking for $ac_header" >&5
19847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
19851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19854 # Is the header compilable?
19855 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19857 cat >conftest.$ac_ext <<_ACEOF
19860 cat confdefs.h >>conftest.$ac_ext
19861 cat >>conftest.$ac_ext <<_ACEOF
19862 /* end confdefs.h. */
19863 $ac_includes_default
19864 #include <$ac_header>
19866 rm -f conftest.$ac_objext
19867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19868 (eval $ac_compile) 2>conftest.er1
19870 grep -v '^ *+' conftest.er1 >conftest.err
19872 cat conftest.err >&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } &&
19875 { ac_try='test -z "$ac_c_werror_flag"
19876 || test ! -s conftest.err'
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; } &&
19882 { ac_try='test -s conftest.$ac_objext'
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
19888 ac_header_compiler=yes
19890 echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19893 ac_header_compiler=no
19895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19897 echo "${ECHO_T}$ac_header_compiler" >&6
19899 # Is the header present?
19900 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19902 cat >conftest.$ac_ext <<_ACEOF
19905 cat confdefs.h >>conftest.$ac_ext
19906 cat >>conftest.$ac_ext <<_ACEOF
19907 /* end confdefs.h. */
19908 #include <$ac_header>
19910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19913 grep -v '^ *+' conftest.er1 >conftest.err
19915 cat conftest.err >&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } >/dev/null; then
19918 if test -s conftest.err; then
19919 ac_cpp_err=$ac_c_preproc_warn_flag
19920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19927 if test -z "$ac_cpp_err"; then
19928 ac_header_preproc=yes
19930 echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19933 ac_header_preproc=no
19935 rm -f conftest.err conftest.$ac_ext
19936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19937 echo "${ECHO_T}$ac_header_preproc" >&6
19939 # So? What about this header?
19940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19946 ac_header_preproc=yes
19949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19952 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19956 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19963 ## ----------------------------------- ##
19964 ## Report this to llvmbugs@cs.uiuc.edu ##
19965 ## ----------------------------------- ##
19968 sed "s/^/$as_me: WARNING: /" >&2
19971 echo "$as_me:$LINENO: checking for $ac_header" >&5
19972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
19976 eval "$as_ac_Header=\$ac_header_preproc"
19978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19983 cat >>confdefs.h <<_ACEOF
19984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19992 if test "${ac_cv_header_sys_types_h+set}" = set; then
19993 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19994 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19995 if test "${ac_cv_header_sys_types_h+set}" = set; then
19996 echo $ECHO_N "(cached) $ECHO_C" >&6
19998 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19999 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20001 # Is the header compilable?
20002 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20003 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
20004 cat >conftest.$ac_ext <<_ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h. */
20010 $ac_includes_default
20011 #include <sys/types.h>
20013 rm -f conftest.$ac_objext
20014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20015 (eval $ac_compile) 2>conftest.er1
20017 grep -v '^ *+' conftest.er1 >conftest.err
20019 cat conftest.err >&5
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); } &&
20022 { ac_try='test -z "$ac_c_werror_flag"
20023 || test ! -s conftest.err'
20024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20025 (eval $ac_try) 2>&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); }; } &&
20029 { ac_try='test -s conftest.$ac_objext'
20030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031 (eval $ac_try) 2>&5
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; }; then
20035 ac_header_compiler=yes
20037 echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20040 ac_header_compiler=no
20042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20043 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20044 echo "${ECHO_T}$ac_header_compiler" >&6
20046 # Is the header present?
20047 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20048 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20049 cat >conftest.$ac_ext <<_ACEOF
20052 cat confdefs.h >>conftest.$ac_ext
20053 cat >>conftest.$ac_ext <<_ACEOF
20054 /* end confdefs.h. */
20055 #include <sys/types.h>
20057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20060 grep -v '^ *+' conftest.er1 >conftest.err
20062 cat conftest.err >&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); } >/dev/null; then
20065 if test -s conftest.err; then
20066 ac_cpp_err=$ac_c_preproc_warn_flag
20067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20074 if test -z "$ac_cpp_err"; then
20075 ac_header_preproc=yes
20077 echo "$as_me: failed program was:" >&5
20078 sed 's/^/| /' conftest.$ac_ext >&5
20080 ac_header_preproc=no
20082 rm -f conftest.err conftest.$ac_ext
20083 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20084 echo "${ECHO_T}$ac_header_preproc" >&6
20086 # So? What about this header?
20087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20089 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20090 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20091 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20092 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20093 ac_header_preproc=yes
20096 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20097 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20098 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20099 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20100 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20101 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20102 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20103 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
20104 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20105 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20106 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20107 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20110 ## ----------------------------------- ##
20111 ## Report this to llvmbugs@cs.uiuc.edu ##
20112 ## ----------------------------------- ##
20115 sed "s/^/$as_me: WARNING: /" >&2
20118 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20119 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20120 if test "${ac_cv_header_sys_types_h+set}" = set; then
20121 echo $ECHO_N "(cached) $ECHO_C" >&6
20123 ac_cv_header_sys_types_h=$ac_header_preproc
20125 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20126 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20131 if test "${ac_cv_header_inttypes_h+set}" = set; then
20132 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20133 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20134 if test "${ac_cv_header_inttypes_h+set}" = set; then
20135 echo $ECHO_N "(cached) $ECHO_C" >&6
20137 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20138 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20140 # Is the header compilable?
20141 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20142 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20143 cat >conftest.$ac_ext <<_ACEOF
20146 cat confdefs.h >>conftest.$ac_ext
20147 cat >>conftest.$ac_ext <<_ACEOF
20148 /* end confdefs.h. */
20149 $ac_includes_default
20150 #include <inttypes.h>
20152 rm -f conftest.$ac_objext
20153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20154 (eval $ac_compile) 2>conftest.er1
20156 grep -v '^ *+' conftest.er1 >conftest.err
20158 cat conftest.err >&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); } &&
20161 { ac_try='test -z "$ac_c_werror_flag"
20162 || test ! -s conftest.err'
20163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164 (eval $ac_try) 2>&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; } &&
20168 { ac_try='test -s conftest.$ac_objext'
20169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170 (eval $ac_try) 2>&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; }; then
20174 ac_header_compiler=yes
20176 echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20179 ac_header_compiler=no
20181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20182 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20183 echo "${ECHO_T}$ac_header_compiler" >&6
20185 # Is the header present?
20186 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20187 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20188 cat >conftest.$ac_ext <<_ACEOF
20191 cat confdefs.h >>conftest.$ac_ext
20192 cat >>conftest.$ac_ext <<_ACEOF
20193 /* end confdefs.h. */
20194 #include <inttypes.h>
20196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20199 grep -v '^ *+' conftest.er1 >conftest.err
20201 cat conftest.err >&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } >/dev/null; then
20204 if test -s conftest.err; then
20205 ac_cpp_err=$ac_c_preproc_warn_flag
20206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20213 if test -z "$ac_cpp_err"; then
20214 ac_header_preproc=yes
20216 echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20219 ac_header_preproc=no
20221 rm -f conftest.err conftest.$ac_ext
20222 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20223 echo "${ECHO_T}$ac_header_preproc" >&6
20225 # So? What about this header?
20226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20228 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20229 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20230 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20231 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20232 ac_header_preproc=yes
20235 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20236 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20237 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20238 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20239 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20240 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20241 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20242 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
20243 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20244 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20245 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20246 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20249 ## ----------------------------------- ##
20250 ## Report this to llvmbugs@cs.uiuc.edu ##
20251 ## ----------------------------------- ##
20254 sed "s/^/$as_me: WARNING: /" >&2
20257 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20258 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20259 if test "${ac_cv_header_inttypes_h+set}" = set; then
20260 echo $ECHO_N "(cached) $ECHO_C" >&6
20262 ac_cv_header_inttypes_h=$ac_header_preproc
20264 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20265 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20270 if test "${ac_cv_header_stdint_h+set}" = set; then
20271 echo "$as_me:$LINENO: checking for stdint.h" >&5
20272 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20273 if test "${ac_cv_header_stdint_h+set}" = set; then
20274 echo $ECHO_N "(cached) $ECHO_C" >&6
20276 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20277 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20279 # Is the header compilable?
20280 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20281 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20282 cat >conftest.$ac_ext <<_ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h. */
20288 $ac_includes_default
20289 #include <stdint.h>
20291 rm -f conftest.$ac_objext
20292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20293 (eval $ac_compile) 2>conftest.er1
20295 grep -v '^ *+' conftest.er1 >conftest.err
20297 cat conftest.err >&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } &&
20300 { ac_try='test -z "$ac_c_werror_flag"
20301 || test ! -s conftest.err'
20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; } &&
20307 { ac_try='test -s conftest.$ac_objext'
20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309 (eval $ac_try) 2>&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; }; then
20313 ac_header_compiler=yes
20315 echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20318 ac_header_compiler=no
20320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20322 echo "${ECHO_T}$ac_header_compiler" >&6
20324 # Is the header present?
20325 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20326 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20327 cat >conftest.$ac_ext <<_ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h. */
20333 #include <stdint.h>
20335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20338 grep -v '^ *+' conftest.er1 >conftest.err
20340 cat conftest.err >&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } >/dev/null; then
20343 if test -s conftest.err; then
20344 ac_cpp_err=$ac_c_preproc_warn_flag
20345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20352 if test -z "$ac_cpp_err"; then
20353 ac_header_preproc=yes
20355 echo "$as_me: failed program was:" >&5
20356 sed 's/^/| /' conftest.$ac_ext >&5
20358 ac_header_preproc=no
20360 rm -f conftest.err conftest.$ac_ext
20361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20362 echo "${ECHO_T}$ac_header_preproc" >&6
20364 # So? What about this header?
20365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20367 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20368 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20369 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20370 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20371 ac_header_preproc=yes
20374 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20375 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20376 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20377 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20378 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20379 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20380 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20381 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20382 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20383 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20384 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20385 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20388 ## ----------------------------------- ##
20389 ## Report this to llvmbugs@cs.uiuc.edu ##
20390 ## ----------------------------------- ##
20393 sed "s/^/$as_me: WARNING: /" >&2
20396 echo "$as_me:$LINENO: checking for stdint.h" >&5
20397 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20398 if test "${ac_cv_header_stdint_h+set}" = set; then
20399 echo $ECHO_N "(cached) $ECHO_C" >&6
20401 ac_cv_header_stdint_h=$ac_header_preproc
20403 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20404 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20410 echo "$as_me:$LINENO: checking for pid_t" >&5
20411 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20412 if test "${ac_cv_type_pid_t+set}" = set; then
20413 echo $ECHO_N "(cached) $ECHO_C" >&6
20415 cat >conftest.$ac_ext <<_ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h. */
20421 $ac_includes_default
20427 if (sizeof (pid_t))
20433 rm -f conftest.$ac_objext
20434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20435 (eval $ac_compile) 2>conftest.er1
20437 grep -v '^ *+' conftest.er1 >conftest.err
20439 cat conftest.err >&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } &&
20442 { ac_try='test -z "$ac_c_werror_flag"
20443 || test ! -s conftest.err'
20444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445 (eval $ac_try) 2>&5
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); }; } &&
20449 { ac_try='test -s conftest.$ac_objext'
20450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20451 (eval $ac_try) 2>&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); }; }; then
20455 ac_cv_type_pid_t=yes
20457 echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20460 ac_cv_type_pid_t=no
20462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20464 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20465 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20466 if test $ac_cv_type_pid_t = yes; then
20470 cat >>confdefs.h <<_ACEOF
20476 echo "$as_me:$LINENO: checking for size_t" >&5
20477 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20478 if test "${ac_cv_type_size_t+set}" = set; then
20479 echo $ECHO_N "(cached) $ECHO_C" >&6
20481 cat >conftest.$ac_ext <<_ACEOF
20484 cat confdefs.h >>conftest.$ac_ext
20485 cat >>conftest.$ac_ext <<_ACEOF
20486 /* end confdefs.h. */
20487 $ac_includes_default
20493 if (sizeof (size_t))
20499 rm -f conftest.$ac_objext
20500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20501 (eval $ac_compile) 2>conftest.er1
20503 grep -v '^ *+' conftest.er1 >conftest.err
20505 cat conftest.err >&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } &&
20508 { ac_try='test -z "$ac_c_werror_flag"
20509 || test ! -s conftest.err'
20510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511 (eval $ac_try) 2>&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; } &&
20515 { ac_try='test -s conftest.$ac_objext'
20516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517 (eval $ac_try) 2>&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); }; }; then
20521 ac_cv_type_size_t=yes
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20526 ac_cv_type_size_t=no
20528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20530 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20531 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20532 if test $ac_cv_type_size_t = yes; then
20536 cat >>confdefs.h <<_ACEOF
20537 #define size_t unsigned
20542 echo "$as_me:$LINENO: checking for int64_t" >&5
20543 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20544 if test "${ac_cv_type_int64_t+set}" = set; then
20545 echo $ECHO_N "(cached) $ECHO_C" >&6
20547 cat >conftest.$ac_ext <<_ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h. */
20553 $ac_includes_default
20559 if (sizeof (int64_t))
20565 rm -f conftest.$ac_objext
20566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20567 (eval $ac_compile) 2>conftest.er1
20569 grep -v '^ *+' conftest.er1 >conftest.err
20571 cat conftest.err >&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); } &&
20574 { ac_try='test -z "$ac_c_werror_flag"
20575 || test ! -s conftest.err'
20576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20577 (eval $ac_try) 2>&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); }; } &&
20581 { ac_try='test -s conftest.$ac_objext'
20582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20583 (eval $ac_try) 2>&5
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; }; then
20587 ac_cv_type_int64_t=yes
20589 echo "$as_me: failed program was:" >&5
20590 sed 's/^/| /' conftest.$ac_ext >&5
20592 ac_cv_type_int64_t=no
20594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20596 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20597 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20598 if test $ac_cv_type_int64_t = yes; then
20600 cat >>confdefs.h <<_ACEOF
20601 #define HAVE_INT64_T 1
20606 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20607 echo "$as_me: error: Type int64_t required but not found" >&2;}
20608 { (exit 1); exit 1; }; }
20611 echo "$as_me:$LINENO: checking for uint64_t" >&5
20612 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20613 if test "${ac_cv_type_uint64_t+set}" = set; then
20614 echo $ECHO_N "(cached) $ECHO_C" >&6
20616 cat >conftest.$ac_ext <<_ACEOF
20619 cat confdefs.h >>conftest.$ac_ext
20620 cat >>conftest.$ac_ext <<_ACEOF
20621 /* end confdefs.h. */
20622 $ac_includes_default
20626 if ((uint64_t *) 0)
20628 if (sizeof (uint64_t))
20634 rm -f conftest.$ac_objext
20635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20636 (eval $ac_compile) 2>conftest.er1
20638 grep -v '^ *+' conftest.er1 >conftest.err
20640 cat conftest.err >&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } &&
20643 { ac_try='test -z "$ac_c_werror_flag"
20644 || test ! -s conftest.err'
20645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20646 (eval $ac_try) 2>&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; } &&
20650 { ac_try='test -s conftest.$ac_objext'
20651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20652 (eval $ac_try) 2>&5
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; }; then
20656 ac_cv_type_uint64_t=yes
20658 echo "$as_me: failed program was:" >&5
20659 sed 's/^/| /' conftest.$ac_ext >&5
20661 ac_cv_type_uint64_t=no
20663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20665 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20666 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20667 if test $ac_cv_type_uint64_t = yes; then
20669 cat >>confdefs.h <<_ACEOF
20670 #define HAVE_UINT64_T 1
20675 echo "$as_me:$LINENO: checking for u_int64_t" >&5
20676 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
20677 if test "${ac_cv_type_u_int64_t+set}" = set; then
20678 echo $ECHO_N "(cached) $ECHO_C" >&6
20680 cat >conftest.$ac_ext <<_ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h. */
20686 $ac_includes_default
20690 if ((u_int64_t *) 0)
20692 if (sizeof (u_int64_t))
20698 rm -f conftest.$ac_objext
20699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20700 (eval $ac_compile) 2>conftest.er1
20702 grep -v '^ *+' conftest.er1 >conftest.err
20704 cat conftest.err >&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); } &&
20707 { ac_try='test -z "$ac_c_werror_flag"
20708 || test ! -s conftest.err'
20709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710 (eval $ac_try) 2>&5
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); }; } &&
20714 { ac_try='test -s conftest.$ac_objext'
20715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20716 (eval $ac_try) 2>&5
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); }; }; then
20720 ac_cv_type_u_int64_t=yes
20722 echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20725 ac_cv_type_u_int64_t=no
20727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20729 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
20730 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
20731 if test $ac_cv_type_u_int64_t = yes; then
20733 cat >>confdefs.h <<_ACEOF
20734 #define HAVE_U_INT64_T 1
20739 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
20740 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
20741 { (exit 1); exit 1; }; }
20746 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20747 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20748 if test "${ac_cv_header_time+set}" = set; then
20749 echo $ECHO_N "(cached) $ECHO_C" >&6
20751 cat >conftest.$ac_ext <<_ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h. */
20757 #include <sys/types.h>
20758 #include <sys/time.h>
20764 if ((struct tm *) 0)
20770 rm -f conftest.$ac_objext
20771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20772 (eval $ac_compile) 2>conftest.er1
20774 grep -v '^ *+' conftest.er1 >conftest.err
20776 cat conftest.err >&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); } &&
20779 { ac_try='test -z "$ac_c_werror_flag"
20780 || test ! -s conftest.err'
20781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20782 (eval $ac_try) 2>&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); }; } &&
20786 { ac_try='test -s conftest.$ac_objext'
20787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20788 (eval $ac_try) 2>&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); }; }; then
20792 ac_cv_header_time=yes
20794 echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20797 ac_cv_header_time=no
20799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20801 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20802 echo "${ECHO_T}$ac_cv_header_time" >&6
20803 if test $ac_cv_header_time = yes; then
20805 cat >>confdefs.h <<\_ACEOF
20806 #define TIME_WITH_SYS_TIME 1
20811 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20812 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20813 if test "${ac_cv_struct_tm+set}" = set; then
20814 echo $ECHO_N "(cached) $ECHO_C" >&6
20816 cat >conftest.$ac_ext <<_ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20822 #include <sys/types.h>
20828 struct tm *tp; tp->tm_sec;
20833 rm -f conftest.$ac_objext
20834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20835 (eval $ac_compile) 2>conftest.er1
20837 grep -v '^ *+' conftest.er1 >conftest.err
20839 cat conftest.err >&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); } &&
20842 { ac_try='test -z "$ac_c_werror_flag"
20843 || test ! -s conftest.err'
20844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20845 (eval $ac_try) 2>&5
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); }; } &&
20849 { ac_try='test -s conftest.$ac_objext'
20850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20851 (eval $ac_try) 2>&5
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); }; }; then
20855 ac_cv_struct_tm=time.h
20857 echo "$as_me: failed program was:" >&5
20858 sed 's/^/| /' conftest.$ac_ext >&5
20860 ac_cv_struct_tm=sys/time.h
20862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20864 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20865 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20866 if test $ac_cv_struct_tm = sys/time.h; then
20868 cat >>confdefs.h <<\_ACEOF
20869 #define TM_IN_SYS_TIME 1
20876 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20877 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
20879 ac_cpp='$CPP $CPPFLAGS'
20880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20884 if test "$cross_compiling" = yes; then
20887 cat >conftest.$ac_ext <<_ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h. */
20896 #include <stdlib.h>
20902 volatile double A, B;
20906 sprintf(Buffer, "%a", A);
20910 if (A != 0x1.999999999999ap-4)
20917 rm -f conftest$ac_exeext
20918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20919 (eval $ac_link) 2>&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; }; then
20930 echo "$as_me: program exited with status $ac_status" >&5
20931 echo "$as_me: failed program was:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20934 ( exit $ac_status )
20937 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20940 ac_cpp='$CPP $CPPFLAGS'
20941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20945 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20946 echo "${ECHO_T}$ac_c_printf_a" >&6
20947 if test "$ac_c_printf_a" = "yes"; then
20949 cat >>confdefs.h <<\_ACEOF
20950 #define HAVE_PRINTF_A 1
20956 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20957 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20958 if test "${ac_cv_c_bigendian+set}" = set; then
20959 echo $ECHO_N "(cached) $ECHO_C" >&6
20961 # See if sys/param.h defines the BYTE_ORDER macro.
20962 cat >conftest.$ac_ext <<_ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h. */
20968 #include <sys/types.h>
20969 #include <sys/param.h>
20974 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20975 bogus endian macros
20982 rm -f conftest.$ac_objext
20983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20984 (eval $ac_compile) 2>conftest.er1
20986 grep -v '^ *+' conftest.er1 >conftest.err
20988 cat conftest.err >&5
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); } &&
20991 { ac_try='test -z "$ac_c_werror_flag"
20992 || test ! -s conftest.err'
20993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20994 (eval $ac_try) 2>&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); }; } &&
20998 { ac_try='test -s conftest.$ac_objext'
20999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21000 (eval $ac_try) 2>&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); }; }; then
21004 # It does; now see whether it defined to BIG_ENDIAN or not.
21005 cat >conftest.$ac_ext <<_ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h. */
21011 #include <sys/types.h>
21012 #include <sys/param.h>
21017 #if BYTE_ORDER != BIG_ENDIAN
21025 rm -f conftest.$ac_objext
21026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21027 (eval $ac_compile) 2>conftest.er1
21029 grep -v '^ *+' conftest.er1 >conftest.err
21031 cat conftest.err >&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } &&
21034 { ac_try='test -z "$ac_c_werror_flag"
21035 || test ! -s conftest.err'
21036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21037 (eval $ac_try) 2>&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); }; } &&
21041 { ac_try='test -s conftest.$ac_objext'
21042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043 (eval $ac_try) 2>&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; }; then
21047 ac_cv_c_bigendian=yes
21049 echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21052 ac_cv_c_bigendian=no
21054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21056 echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21059 # It does not; compile a test program.
21060 if test "$cross_compiling" = yes; then
21061 # try to guess the endianness by grepping values into an object file
21062 ac_cv_c_bigendian=unknown
21063 cat >conftest.$ac_ext <<_ACEOF
21066 cat confdefs.h >>conftest.$ac_ext
21067 cat >>conftest.$ac_ext <<_ACEOF
21068 /* end confdefs.h. */
21069 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21070 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21071 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21072 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21073 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21074 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21078 _ascii (); _ebcdic ();
21083 rm -f conftest.$ac_objext
21084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21085 (eval $ac_compile) 2>conftest.er1
21087 grep -v '^ *+' conftest.er1 >conftest.err
21089 cat conftest.err >&5
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); } &&
21092 { ac_try='test -z "$ac_c_werror_flag"
21093 || test ! -s conftest.err'
21094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21095 (eval $ac_try) 2>&5
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); }; } &&
21099 { ac_try='test -s conftest.$ac_objext'
21100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101 (eval $ac_try) 2>&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); }; }; then
21105 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21106 ac_cv_c_bigendian=yes
21108 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21109 if test "$ac_cv_c_bigendian" = unknown; then
21110 ac_cv_c_bigendian=no
21112 # finding both strings is unlikely to happen, but who knows?
21113 ac_cv_c_bigendian=unknown
21117 echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21123 cat >conftest.$ac_ext <<_ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h. */
21132 /* Are we little or big endian? From Harbison&Steele. */
21136 char c[sizeof (long)];
21139 exit (u.c[sizeof (long) - 1] == 1);
21142 rm -f conftest$ac_exeext
21143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21144 (eval $ac_link) 2>&5
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; }; then
21153 ac_cv_c_bigendian=no
21155 echo "$as_me: program exited with status $ac_status" >&5
21156 echo "$as_me: failed program was:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21159 ( exit $ac_status )
21160 ac_cv_c_bigendian=yes
21162 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21167 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21168 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21169 case $ac_cv_c_bigendian in
21177 { { echo "$as_me:$LINENO: error: unknown endianness
21178 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21179 echo "$as_me: error: unknown endianness
21180 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21181 { (exit 1); exit 1; }; } ;;
21185 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21186 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21187 if test "${ac_cv_cxx_namespaces+set}" = set; then
21188 echo $ECHO_N "(cached) $ECHO_C" >&6
21191 ac_cpp='$CXXCPP $CPPFLAGS'
21192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21196 cat >conftest.$ac_ext <<_ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h. */
21202 namespace Outer { namespace Inner { int i = 0; }}
21206 using namespace Outer::Inner; return i;
21211 rm -f conftest.$ac_objext
21212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21213 (eval $ac_compile) 2>conftest.er1
21215 grep -v '^ *+' conftest.er1 >conftest.err
21217 cat conftest.err >&5
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); } &&
21220 { ac_try='test -z "$ac_cxx_werror_flag"
21221 || test ! -s conftest.err'
21222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21223 (eval $ac_try) 2>&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); }; } &&
21227 { ac_try='test -s conftest.$ac_objext'
21228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21229 (eval $ac_try) 2>&5
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); }; }; then
21233 ac_cv_cxx_namespaces=yes
21235 echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21238 ac_cv_cxx_namespaces=no
21240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21242 ac_cpp='$CPP $CPPFLAGS'
21243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21249 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21250 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21251 if test "$ac_cv_cxx_namespaces" = yes; then
21253 cat >>confdefs.h <<\_ACEOF
21254 #define HAVE_NAMESPACES
21259 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21260 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21261 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
21262 echo $ECHO_N "(cached) $ECHO_C" >&6
21266 ac_cpp='$CXXCPP $CPPFLAGS'
21267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21271 cat >conftest.$ac_ext <<_ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21277 #include <ext/hash_map>
21278 #ifdef HAVE_NAMESPACES
21279 using namespace std;
21284 hash_map<int, int> t;
21289 rm -f conftest.$ac_objext
21290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21291 (eval $ac_compile) 2>conftest.er1
21293 grep -v '^ *+' conftest.er1 >conftest.err
21295 cat conftest.err >&5
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); } &&
21298 { ac_try='test -z "$ac_cxx_werror_flag"
21299 || test ! -s conftest.err'
21300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301 (eval $ac_try) 2>&5
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; } &&
21305 { ac_try='test -s conftest.$ac_objext'
21306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307 (eval $ac_try) 2>&5
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); }; }; then
21311 ac_cv_cxx_have_std_ext_hash_map=yes
21313 echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21316 ac_cv_cxx_have_std_ext_hash_map=no
21318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21320 ac_cpp='$CPP $CPPFLAGS'
21321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21326 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21327 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21328 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21331 cat >>confdefs.h <<\_ACEOF
21332 #define HAVE_STD_EXT_HASH_MAP 1
21337 cat >>confdefs.h <<\_ACEOF
21338 #define HAVE_STD_EXT_HASH_MAP 0
21343 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21344 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21345 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21350 ac_cpp='$CXXCPP $CPPFLAGS'
21351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21355 cat >conftest.$ac_ext <<_ACEOF
21358 cat confdefs.h >>conftest.$ac_ext
21359 cat >>conftest.$ac_ext <<_ACEOF
21360 /* end confdefs.h. */
21361 #include <ext/hash_map>
21362 #ifdef HAVE_NAMESPACES
21363 using namespace __gnu_cxx;
21368 hash_map<int,int> t;
21373 rm -f conftest.$ac_objext
21374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21375 (eval $ac_compile) 2>conftest.er1
21377 grep -v '^ *+' conftest.er1 >conftest.err
21379 cat conftest.err >&5
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); } &&
21382 { ac_try='test -z "$ac_cxx_werror_flag"
21383 || test ! -s conftest.err'
21384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385 (eval $ac_try) 2>&5
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; } &&
21389 { ac_try='test -s conftest.$ac_objext'
21390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391 (eval $ac_try) 2>&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); }; }; then
21395 ac_cv_cxx_have_gnu_ext_hash_map=yes
21397 echo "$as_me: failed program was:" >&5
21398 sed 's/^/| /' conftest.$ac_ext >&5
21400 ac_cv_cxx_have_gnu_ext_hash_map=no
21402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21404 ac_cpp='$CPP $CPPFLAGS'
21405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21410 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21411 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21412 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21415 cat >>confdefs.h <<\_ACEOF
21416 #define HAVE_GNU_EXT_HASH_MAP 1
21421 cat >>confdefs.h <<\_ACEOF
21422 #define HAVE_GNU_EXT_HASH_MAP 0
21427 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21428 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21429 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21430 echo $ECHO_N "(cached) $ECHO_C" >&6
21434 ac_cpp='$CXXCPP $CPPFLAGS'
21435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21439 cat >conftest.$ac_ext <<_ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h. */
21445 #include <hash_map>
21449 hash_map<int,int> t;
21454 rm -f conftest.$ac_objext
21455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21456 (eval $ac_compile) 2>conftest.er1
21458 grep -v '^ *+' conftest.er1 >conftest.err
21460 cat conftest.err >&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } &&
21463 { ac_try='test -z "$ac_cxx_werror_flag"
21464 || test ! -s conftest.err'
21465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466 (eval $ac_try) 2>&5
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); }; } &&
21470 { ac_try='test -s conftest.$ac_objext'
21471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; }; then
21476 ac_cv_cxx_have_global_hash_map=yes
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21481 ac_cv_cxx_have_global_hash_map=no
21483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21485 ac_cpp='$CPP $CPPFLAGS'
21486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21491 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21492 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21493 if test "$ac_cv_cxx_have_global_hash_map" = yes
21496 cat >>confdefs.h <<\_ACEOF
21497 #define HAVE_GLOBAL_HASH_MAP 1
21502 cat >>confdefs.h <<\_ACEOF
21503 #define HAVE_GLOBAL_HASH_MAP 0
21508 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21509 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21510 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21511 echo $ECHO_N "(cached) $ECHO_C" >&6
21515 ac_cpp='$CXXCPP $CPPFLAGS'
21516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21520 cat >conftest.$ac_ext <<_ACEOF
21523 cat confdefs.h >>conftest.$ac_ext
21524 cat >>conftest.$ac_ext <<_ACEOF
21525 /* end confdefs.h. */
21526 #include <ext/hash_set>
21527 #ifdef HAVE_NAMESPACES
21528 using namespace std;
21538 rm -f conftest.$ac_objext
21539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21540 (eval $ac_compile) 2>conftest.er1
21542 grep -v '^ *+' conftest.er1 >conftest.err
21544 cat conftest.err >&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); } &&
21547 { ac_try='test -z "$ac_cxx_werror_flag"
21548 || test ! -s conftest.err'
21549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550 (eval $ac_try) 2>&5
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); }; } &&
21554 { ac_try='test -s conftest.$ac_objext'
21555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21556 (eval $ac_try) 2>&5
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); }; }; then
21560 ac_cv_cxx_have_std_ext_hash_set=yes
21562 echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21565 ac_cv_cxx_have_std_ext_hash_set=no
21567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21569 ac_cpp='$CPP $CPPFLAGS'
21570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21575 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21576 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21577 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21580 cat >>confdefs.h <<\_ACEOF
21581 #define HAVE_STD_EXT_HASH_SET 1
21586 cat >>confdefs.h <<\_ACEOF
21587 #define HAVE_STD_EXT_HASH_SET 0
21592 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21593 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21594 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21595 echo $ECHO_N "(cached) $ECHO_C" >&6
21599 ac_cpp='$CXXCPP $CPPFLAGS'
21600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21604 cat >conftest.$ac_ext <<_ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h. */
21610 #include <ext/hash_set>
21611 #ifdef HAVE_NAMESPACES
21612 using namespace __gnu_cxx;
21622 rm -f conftest.$ac_objext
21623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21624 (eval $ac_compile) 2>conftest.er1
21626 grep -v '^ *+' conftest.er1 >conftest.err
21628 cat conftest.err >&5
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); } &&
21631 { ac_try='test -z "$ac_cxx_werror_flag"
21632 || test ! -s conftest.err'
21633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21634 (eval $ac_try) 2>&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); }; } &&
21638 { ac_try='test -s conftest.$ac_objext'
21639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640 (eval $ac_try) 2>&5
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); }; }; then
21644 ac_cv_cxx_have_gnu_ext_hash_set=yes
21646 echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21649 ac_cv_cxx_have_gnu_ext_hash_set=no
21651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21653 ac_cpp='$CPP $CPPFLAGS'
21654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21659 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21660 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21661 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21664 cat >>confdefs.h <<\_ACEOF
21665 #define HAVE_GNU_EXT_HASH_SET 1
21670 cat >>confdefs.h <<\_ACEOF
21671 #define HAVE_GNU_EXT_HASH_SET 0
21676 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21677 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21678 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21679 echo $ECHO_N "(cached) $ECHO_C" >&6
21683 ac_cpp='$CXXCPP $CPPFLAGS'
21684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21688 cat >conftest.$ac_ext <<_ACEOF
21691 cat confdefs.h >>conftest.$ac_ext
21692 cat >>conftest.$ac_ext <<_ACEOF
21693 /* end confdefs.h. */
21694 #include <hash_set>
21698 hash_set<int> t; return 0;
21703 rm -f conftest.$ac_objext
21704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21705 (eval $ac_compile) 2>conftest.er1
21707 grep -v '^ *+' conftest.er1 >conftest.err
21709 cat conftest.err >&5
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); } &&
21712 { ac_try='test -z "$ac_cxx_werror_flag"
21713 || test ! -s conftest.err'
21714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715 (eval $ac_try) 2>&5
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); }; } &&
21719 { ac_try='test -s conftest.$ac_objext'
21720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721 (eval $ac_try) 2>&5
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); }; }; then
21725 ac_cv_cxx_have_global_hash_set=yes
21727 echo "$as_me: failed program was:" >&5
21728 sed 's/^/| /' conftest.$ac_ext >&5
21730 ac_cv_cxx_have_global_hash_set=no
21732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21734 ac_cpp='$CPP $CPPFLAGS'
21735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21740 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21741 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21742 if test "$ac_cv_cxx_have_global_hash_set" = yes
21745 cat >>confdefs.h <<\_ACEOF
21746 #define HAVE_GLOBAL_HASH_SET 1
21751 cat >>confdefs.h <<\_ACEOF
21752 #define HAVE_GLOBAL_HASH_SET 0
21757 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21758 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21759 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21760 echo $ECHO_N "(cached) $ECHO_C" >&6
21764 ac_cpp='$CXXCPP $CPPFLAGS'
21765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21769 cat >conftest.$ac_ext <<_ACEOF
21772 cat confdefs.h >>conftest.$ac_ext
21773 cat >>conftest.$ac_ext <<_ACEOF
21774 /* end confdefs.h. */
21775 #include <iterator>
21776 #ifdef HAVE_NAMESPACES
21777 using namespace std;
21782 iterator<int,int,int> t; return 0;
21787 rm -f conftest.$ac_objext
21788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21789 (eval $ac_compile) 2>conftest.er1
21791 grep -v '^ *+' conftest.er1 >conftest.err
21793 cat conftest.err >&5
21794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 (exit $ac_status); } &&
21796 { ac_try='test -z "$ac_cxx_werror_flag"
21797 || test ! -s conftest.err'
21798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21799 (eval $ac_try) 2>&5
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); }; } &&
21803 { ac_try='test -s conftest.$ac_objext'
21804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21805 (eval $ac_try) 2>&5
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); }; }; then
21809 ac_cv_cxx_have_std_iterator=yes
21811 echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21814 ac_cv_cxx_have_std_iterator=no
21816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21818 ac_cpp='$CPP $CPPFLAGS'
21819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21825 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21826 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21827 HAVE_STD_ITERATOR=0
21828 if test "$ac_cv_cxx_have_std_iterator" = yes
21830 HAVE_STD_ITERATOR=1
21833 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21834 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21835 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21836 echo $ECHO_N "(cached) $ECHO_C" >&6
21840 ac_cpp='$CXXCPP $CPPFLAGS'
21841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21845 cat >conftest.$ac_ext <<_ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21851 #include <iterator>
21852 #ifdef HAVE_NAMESPACES
21853 using namespace std;
21858 bidirectional_iterator<int,int> t; return 0;
21863 rm -f conftest.$ac_objext
21864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21865 (eval $ac_compile) 2>conftest.er1
21867 grep -v '^ *+' conftest.er1 >conftest.err
21869 cat conftest.err >&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); } &&
21872 { ac_try='test -z "$ac_cxx_werror_flag"
21873 || test ! -s conftest.err'
21874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21875 (eval $ac_try) 2>&5
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); }; } &&
21879 { ac_try='test -s conftest.$ac_objext'
21880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881 (eval $ac_try) 2>&5
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); }; }; then
21885 ac_cv_cxx_have_bi_iterator=yes
21887 echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21890 ac_cv_cxx_have_bi_iterator=no
21892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21894 ac_cpp='$CPP $CPPFLAGS'
21895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21901 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21902 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21904 if test "$ac_cv_cxx_have_bi_iterator" = yes
21909 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21910 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21911 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21912 echo $ECHO_N "(cached) $ECHO_C" >&6
21916 ac_cpp='$CXXCPP $CPPFLAGS'
21917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21921 cat >conftest.$ac_ext <<_ACEOF
21924 cat confdefs.h >>conftest.$ac_ext
21925 cat >>conftest.$ac_ext <<_ACEOF
21926 /* end confdefs.h. */
21927 #include <iterator>
21928 #ifdef HAVE_NAMESPACES
21929 using namespace std;
21934 forward_iterator<int,int> t; return 0;
21939 rm -f conftest.$ac_objext
21940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21941 (eval $ac_compile) 2>conftest.er1
21943 grep -v '^ *+' conftest.er1 >conftest.err
21945 cat conftest.err >&5
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); } &&
21948 { ac_try='test -z "$ac_cxx_werror_flag"
21949 || test ! -s conftest.err'
21950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21951 (eval $ac_try) 2>&5
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); }; } &&
21955 { ac_try='test -s conftest.$ac_objext'
21956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21957 (eval $ac_try) 2>&5
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); }; }; then
21961 ac_cv_cxx_have_fwd_iterator=yes
21963 echo "$as_me: failed program was:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21966 ac_cv_cxx_have_fwd_iterator=no
21968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21970 ac_cpp='$CPP $CPPFLAGS'
21971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21977 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21978 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21979 HAVE_FWD_ITERATOR=0
21980 if test "$ac_cv_cxx_have_fwd_iterator" = yes
21982 HAVE_FWD_ITERATOR=1
21987 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21988 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21989 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21990 echo $ECHO_N "(cached) $ECHO_C" >&6
21993 ac_cpp='$CXXCPP $CPPFLAGS'
21994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21998 cat >conftest.$ac_ext <<_ACEOF
22001 cat confdefs.h >>conftest.$ac_ext
22002 cat >>conftest.$ac_ext <<_ACEOF
22003 /* end confdefs.h. */
22005 int foo(float f) {return isnan(f);}
22007 rm -f conftest.$ac_objext
22008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22009 (eval $ac_compile) 2>conftest.er1
22011 grep -v '^ *+' conftest.er1 >conftest.err
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } &&
22016 { ac_try='test -z "$ac_cxx_werror_flag"
22017 || test ! -s conftest.err'
22018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019 (eval $ac_try) 2>&5
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); }; } &&
22023 { ac_try='test -s conftest.$ac_objext'
22024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22025 (eval $ac_try) 2>&5
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); }; }; then
22029 ac_cv_func_isnan_in_math_h=yes
22031 echo "$as_me: failed program was:" >&5
22032 sed 's/^/| /' conftest.$ac_ext >&5
22034 ac_cv_func_isnan_in_math_h=no
22036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22038 ac_cpp='$CPP $CPPFLAGS'
22039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22044 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
22045 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
22046 if test "$ac_cv_func_isnan_in_math_h" = "yes"
22049 cat >>confdefs.h <<\_ACEOF
22050 #define HAVE_ISNAN_IN_MATH_H 1
22054 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
22055 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
22056 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
22057 echo $ECHO_N "(cached) $ECHO_C" >&6
22060 ac_cpp='$CXXCPP $CPPFLAGS'
22061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22065 cat >conftest.$ac_ext <<_ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h. */
22072 int foo(float f) {return isnan(f);}
22074 rm -f conftest.$ac_objext
22075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22076 (eval $ac_compile) 2>conftest.er1
22078 grep -v '^ *+' conftest.er1 >conftest.err
22080 cat conftest.err >&5
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); } &&
22083 { ac_try='test -z "$ac_cxx_werror_flag"
22084 || test ! -s conftest.err'
22085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22086 (eval $ac_try) 2>&5
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); }; } &&
22090 { ac_try='test -s conftest.$ac_objext'
22091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22092 (eval $ac_try) 2>&5
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); }; }; then
22096 ac_cv_func_isnan_in_cmath=yes
22098 echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.$ac_ext >&5
22101 ac_cv_func_isnan_in_cmath=no
22103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22105 ac_cpp='$CPP $CPPFLAGS'
22106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22111 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22112 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22113 if test "$ac_cv_func_isnan_in_cmath" = "yes"
22116 cat >>confdefs.h <<\_ACEOF
22117 #define HAVE_ISNAN_IN_CMATH 1
22121 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22122 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22123 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22124 echo $ECHO_N "(cached) $ECHO_C" >&6
22127 ac_cpp='$CXXCPP $CPPFLAGS'
22128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22132 cat >conftest.$ac_ext <<_ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h. */
22139 using std::isnan; int foo(float f) {return isnan(f);}
22141 rm -f conftest.$ac_objext
22142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22143 (eval $ac_compile) 2>conftest.er1
22145 grep -v '^ *+' conftest.er1 >conftest.err
22147 cat conftest.err >&5
22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); } &&
22150 { ac_try='test -z "$ac_cxx_werror_flag"
22151 || test ! -s conftest.err'
22152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22153 (eval $ac_try) 2>&5
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); }; } &&
22157 { ac_try='test -s conftest.$ac_objext'
22158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22159 (eval $ac_try) 2>&5
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); }; }; then
22163 ac_cv_func_std_isnan_in_cmath=yes
22165 echo "$as_me: failed program was:" >&5
22166 sed 's/^/| /' conftest.$ac_ext >&5
22168 ac_cv_func_std_isnan_in_cmath=no
22170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22172 ac_cpp='$CPP $CPPFLAGS'
22173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22178 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22179 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22180 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
22183 cat >>confdefs.h <<\_ACEOF
22184 #define HAVE_STD_ISNAN_IN_CMATH 1
22190 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22191 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22192 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22193 echo $ECHO_N "(cached) $ECHO_C" >&6
22196 ac_cpp='$CXXCPP $CPPFLAGS'
22197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22201 cat >conftest.$ac_ext <<_ACEOF
22204 cat confdefs.h >>conftest.$ac_ext
22205 cat >>conftest.$ac_ext <<_ACEOF
22206 /* end confdefs.h. */
22208 int foo(float f) {return isinf(f);}
22210 rm -f conftest.$ac_objext
22211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22212 (eval $ac_compile) 2>conftest.er1
22214 grep -v '^ *+' conftest.er1 >conftest.err
22216 cat conftest.err >&5
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); } &&
22219 { ac_try='test -z "$ac_cxx_werror_flag"
22220 || test ! -s conftest.err'
22221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222 (eval $ac_try) 2>&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); }; } &&
22226 { ac_try='test -s conftest.$ac_objext'
22227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22228 (eval $ac_try) 2>&5
22230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231 (exit $ac_status); }; }; then
22232 ac_cv_func_isinf_in_math_h=yes
22234 echo "$as_me: failed program was:" >&5
22235 sed 's/^/| /' conftest.$ac_ext >&5
22237 ac_cv_func_isinf_in_math_h=no
22239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22241 ac_cpp='$CPP $CPPFLAGS'
22242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22247 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22248 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22249 if test "$ac_cv_func_isinf_in_math_h" = "yes"
22252 cat >>confdefs.h <<\_ACEOF
22253 #define HAVE_ISINF_IN_MATH_H 1
22257 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22258 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22259 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22260 echo $ECHO_N "(cached) $ECHO_C" >&6
22263 ac_cpp='$CXXCPP $CPPFLAGS'
22264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22268 cat >conftest.$ac_ext <<_ACEOF
22271 cat confdefs.h >>conftest.$ac_ext
22272 cat >>conftest.$ac_ext <<_ACEOF
22273 /* end confdefs.h. */
22275 int foo(float f) {return isinf(f);}
22277 rm -f conftest.$ac_objext
22278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22279 (eval $ac_compile) 2>conftest.er1
22281 grep -v '^ *+' conftest.er1 >conftest.err
22283 cat conftest.err >&5
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } &&
22286 { ac_try='test -z "$ac_cxx_werror_flag"
22287 || test ! -s conftest.err'
22288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22289 (eval $ac_try) 2>&5
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); }; } &&
22293 { ac_try='test -s conftest.$ac_objext'
22294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22295 (eval $ac_try) 2>&5
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); }; }; then
22299 ac_cv_func_isinf_in_cmath=yes
22301 echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22304 ac_cv_func_isinf_in_cmath=no
22306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22308 ac_cpp='$CPP $CPPFLAGS'
22309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22314 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22315 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22316 if test "$ac_cv_func_isinf_in_cmath" = "yes"
22319 cat >>confdefs.h <<\_ACEOF
22320 #define HAVE_ISINF_IN_CMATH 1
22324 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22325 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22326 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22327 echo $ECHO_N "(cached) $ECHO_C" >&6
22330 ac_cpp='$CXXCPP $CPPFLAGS'
22331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22335 cat >conftest.$ac_ext <<_ACEOF
22338 cat confdefs.h >>conftest.$ac_ext
22339 cat >>conftest.$ac_ext <<_ACEOF
22340 /* end confdefs.h. */
22342 using std::isinf; int foo(float f) {return isinf(f);}
22344 rm -f conftest.$ac_objext
22345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22346 (eval $ac_compile) 2>conftest.er1
22348 grep -v '^ *+' conftest.er1 >conftest.err
22350 cat conftest.err >&5
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); } &&
22353 { ac_try='test -z "$ac_cxx_werror_flag"
22354 || test ! -s conftest.err'
22355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22356 (eval $ac_try) 2>&5
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); }; } &&
22360 { ac_try='test -s conftest.$ac_objext'
22361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362 (eval $ac_try) 2>&5
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); }; }; then
22366 ac_cv_func_std_isinf_in_cmath=yes
22368 echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22371 ac_cv_func_std_isinf_in_cmath=no
22373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22375 ac_cpp='$CPP $CPPFLAGS'
22376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22381 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22382 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22383 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22386 cat >>confdefs.h <<\_ACEOF
22387 #define HAVE_STD_ISINF_IN_CMATH 1
22391 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22392 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22393 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22394 echo $ECHO_N "(cached) $ECHO_C" >&6
22397 ac_cpp='$CXXCPP $CPPFLAGS'
22398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22402 cat >conftest.$ac_ext <<_ACEOF
22405 cat confdefs.h >>conftest.$ac_ext
22406 cat >>conftest.$ac_ext <<_ACEOF
22407 /* end confdefs.h. */
22408 #include <ieeefp.h>
22409 int foo(float f) {return finite(f);}
22411 rm -f conftest.$ac_objext
22412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22413 (eval $ac_compile) 2>conftest.er1
22415 grep -v '^ *+' conftest.er1 >conftest.err
22417 cat conftest.err >&5
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); } &&
22420 { ac_try='test -z "$ac_cxx_werror_flag"
22421 || test ! -s conftest.err'
22422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22423 (eval $ac_try) 2>&5
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); }; } &&
22427 { ac_try='test -s conftest.$ac_objext'
22428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22429 (eval $ac_try) 2>&5
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); }; }; then
22433 ac_cv_func_finite_in_ieeefp_h=yes
22435 echo "$as_me: failed program was:" >&5
22436 sed 's/^/| /' conftest.$ac_ext >&5
22438 ac_cv_func_finite_in_ieeefp_h=no
22440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22442 ac_cpp='$CPP $CPPFLAGS'
22443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22448 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22449 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22450 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22453 cat >>confdefs.h <<\_ACEOF
22454 #define HAVE_FINITE_IN_IEEEFP_H 1
22460 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22461 # for constant arguments. Useless!
22462 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22463 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22464 if test "${ac_cv_working_alloca_h+set}" = set; then
22465 echo $ECHO_N "(cached) $ECHO_C" >&6
22467 cat >conftest.$ac_ext <<_ACEOF
22470 cat confdefs.h >>conftest.$ac_ext
22471 cat >>conftest.$ac_ext <<_ACEOF
22472 /* end confdefs.h. */
22473 #include <alloca.h>
22477 char *p = (char *) alloca (2 * sizeof (int));
22482 rm -f conftest.$ac_objext conftest$ac_exeext
22483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22484 (eval $ac_link) 2>conftest.er1
22486 grep -v '^ *+' conftest.er1 >conftest.err
22488 cat conftest.err >&5
22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); } &&
22491 { ac_try='test -z "$ac_c_werror_flag"
22492 || test ! -s conftest.err'
22493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22494 (eval $ac_try) 2>&5
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); }; } &&
22498 { ac_try='test -s conftest$ac_exeext'
22499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22500 (eval $ac_try) 2>&5
22502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); }; }; then
22504 ac_cv_working_alloca_h=yes
22506 echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22509 ac_cv_working_alloca_h=no
22511 rm -f conftest.err conftest.$ac_objext \
22512 conftest$ac_exeext conftest.$ac_ext
22514 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22515 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22516 if test $ac_cv_working_alloca_h = yes; then
22518 cat >>confdefs.h <<\_ACEOF
22519 #define HAVE_ALLOCA_H 1
22524 echo "$as_me:$LINENO: checking for alloca" >&5
22525 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22526 if test "${ac_cv_func_alloca_works+set}" = set; then
22527 echo $ECHO_N "(cached) $ECHO_C" >&6
22529 cat >conftest.$ac_ext <<_ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h. */
22536 # define alloca __builtin_alloca
22539 # include <malloc.h>
22540 # define alloca _alloca
22543 # include <alloca.h>
22548 # ifndef alloca /* predefined by HP cc +Olibcalls */
22559 char *p = (char *) alloca (1);
22564 rm -f conftest.$ac_objext conftest$ac_exeext
22565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22566 (eval $ac_link) 2>conftest.er1
22568 grep -v '^ *+' conftest.er1 >conftest.err
22570 cat conftest.err >&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); } &&
22573 { ac_try='test -z "$ac_c_werror_flag"
22574 || test ! -s conftest.err'
22575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576 (eval $ac_try) 2>&5
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); }; } &&
22580 { ac_try='test -s conftest$ac_exeext'
22581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22582 (eval $ac_try) 2>&5
22584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); }; }; then
22586 ac_cv_func_alloca_works=yes
22588 echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.$ac_ext >&5
22591 ac_cv_func_alloca_works=no
22593 rm -f conftest.err conftest.$ac_objext \
22594 conftest$ac_exeext conftest.$ac_ext
22596 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22597 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22599 if test $ac_cv_func_alloca_works = yes; then
22601 cat >>confdefs.h <<\_ACEOF
22602 #define HAVE_ALLOCA 1
22606 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22607 # that cause trouble. Some versions do not even contain alloca or
22608 # contain a buggy version. If you still want to use their alloca,
22609 # use ar to extract alloca.o from them instead of compiling alloca.c.
22611 ALLOCA=alloca.$ac_objext
22613 cat >>confdefs.h <<\_ACEOF
22618 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22619 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22620 if test "${ac_cv_os_cray+set}" = set; then
22621 echo $ECHO_N "(cached) $ECHO_C" >&6
22623 cat >conftest.$ac_ext <<_ACEOF
22626 cat confdefs.h >>conftest.$ac_ext
22627 cat >>conftest.$ac_ext <<_ACEOF
22628 /* end confdefs.h. */
22629 #if defined(CRAY) && ! defined(CRAY2)
22636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22637 $EGREP "webecray" >/dev/null 2>&1; then
22645 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22646 echo "${ECHO_T}$ac_cv_os_cray" >&6
22647 if test $ac_cv_os_cray = yes; then
22648 for ac_func in _getb67 GETB67 getb67; do
22649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22650 echo "$as_me:$LINENO: checking for $ac_func" >&5
22651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22652 if eval "test \"\${$as_ac_var+set}\" = set"; then
22653 echo $ECHO_N "(cached) $ECHO_C" >&6
22655 cat >conftest.$ac_ext <<_ACEOF
22658 cat confdefs.h >>conftest.$ac_ext
22659 cat >>conftest.$ac_ext <<_ACEOF
22660 /* end confdefs.h. */
22661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22663 #define $ac_func innocuous_$ac_func
22665 /* System header to define __stub macros and hopefully few prototypes,
22666 which can conflict with char $ac_func (); below.
22667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22668 <limits.h> exists even on freestanding compilers. */
22671 # include <limits.h>
22673 # include <assert.h>
22678 /* Override any gcc2 internal prototype to avoid an error. */
22683 /* We use char because int might match the return type of a gcc2
22684 builtin and then its argument prototype would still apply. */
22686 /* The GNU C library defines this for functions which it implements
22687 to always fail with ENOSYS. Some functions are actually named
22688 something starting with __ and the normal name is an alias. */
22689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22692 char (*f) () = $ac_func;
22701 return f != $ac_func;
22706 rm -f conftest.$ac_objext conftest$ac_exeext
22707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22708 (eval $ac_link) 2>conftest.er1
22710 grep -v '^ *+' conftest.er1 >conftest.err
22712 cat conftest.err >&5
22713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714 (exit $ac_status); } &&
22715 { ac_try='test -z "$ac_c_werror_flag"
22716 || test ! -s conftest.err'
22717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22718 (eval $ac_try) 2>&5
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); }; } &&
22722 { ac_try='test -s conftest$ac_exeext'
22723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22724 (eval $ac_try) 2>&5
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); }; }; then
22728 eval "$as_ac_var=yes"
22730 echo "$as_me: failed program was:" >&5
22731 sed 's/^/| /' conftest.$ac_ext >&5
22733 eval "$as_ac_var=no"
22735 rm -f conftest.err conftest.$ac_objext \
22736 conftest$ac_exeext conftest.$ac_ext
22738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22740 if test `eval echo '${'$as_ac_var'}'` = yes; then
22742 cat >>confdefs.h <<_ACEOF
22743 #define CRAY_STACKSEG_END $ac_func
22752 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22753 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22754 if test "${ac_cv_c_stack_direction+set}" = set; then
22755 echo $ECHO_N "(cached) $ECHO_C" >&6
22757 if test "$cross_compiling" = yes; then
22758 ac_cv_c_stack_direction=0
22760 cat >conftest.$ac_ext <<_ACEOF
22763 cat confdefs.h >>conftest.$ac_ext
22764 cat >>conftest.$ac_ext <<_ACEOF
22765 /* end confdefs.h. */
22767 find_stack_direction ()
22769 static char *addr = 0;
22774 return find_stack_direction ();
22777 return (&dummy > addr) ? 1 : -1;
22783 exit (find_stack_direction () < 0);
22786 rm -f conftest$ac_exeext
22787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22788 (eval $ac_link) 2>&5
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22793 (eval $ac_try) 2>&5
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); }; }; then
22797 ac_cv_c_stack_direction=1
22799 echo "$as_me: program exited with status $ac_status" >&5
22800 echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22803 ( exit $ac_status )
22804 ac_cv_c_stack_direction=-1
22806 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22809 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22810 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22812 cat >>confdefs.h <<_ACEOF
22813 #define STACK_DIRECTION $ac_cv_c_stack_direction
22821 for ac_header in stdlib.h unistd.h
22823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22825 echo "$as_me:$LINENO: checking for $ac_header" >&5
22826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22828 echo $ECHO_N "(cached) $ECHO_C" >&6
22830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22833 # Is the header compilable?
22834 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22836 cat >conftest.$ac_ext <<_ACEOF
22839 cat confdefs.h >>conftest.$ac_ext
22840 cat >>conftest.$ac_ext <<_ACEOF
22841 /* end confdefs.h. */
22842 $ac_includes_default
22843 #include <$ac_header>
22845 rm -f conftest.$ac_objext
22846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22847 (eval $ac_compile) 2>conftest.er1
22849 grep -v '^ *+' conftest.er1 >conftest.err
22851 cat conftest.err >&5
22852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853 (exit $ac_status); } &&
22854 { ac_try='test -z "$ac_c_werror_flag"
22855 || test ! -s conftest.err'
22856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22857 (eval $ac_try) 2>&5
22859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860 (exit $ac_status); }; } &&
22861 { ac_try='test -s conftest.$ac_objext'
22862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22863 (eval $ac_try) 2>&5
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); }; }; then
22867 ac_header_compiler=yes
22869 echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22872 ac_header_compiler=no
22874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22876 echo "${ECHO_T}$ac_header_compiler" >&6
22878 # Is the header present?
22879 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22881 cat >conftest.$ac_ext <<_ACEOF
22884 cat confdefs.h >>conftest.$ac_ext
22885 cat >>conftest.$ac_ext <<_ACEOF
22886 /* end confdefs.h. */
22887 #include <$ac_header>
22889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22892 grep -v '^ *+' conftest.er1 >conftest.err
22894 cat conftest.err >&5
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); } >/dev/null; then
22897 if test -s conftest.err; then
22898 ac_cpp_err=$ac_c_preproc_warn_flag
22899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22906 if test -z "$ac_cpp_err"; then
22907 ac_header_preproc=yes
22909 echo "$as_me: failed program was:" >&5
22910 sed 's/^/| /' conftest.$ac_ext >&5
22912 ac_header_preproc=no
22914 rm -f conftest.err conftest.$ac_ext
22915 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22916 echo "${ECHO_T}$ac_header_preproc" >&6
22918 # So? What about this header?
22919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22925 ac_header_preproc=yes
22928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22935 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22942 ## ----------------------------------- ##
22943 ## Report this to llvmbugs@cs.uiuc.edu ##
22944 ## ----------------------------------- ##
22947 sed "s/^/$as_me: WARNING: /" >&2
22950 echo "$as_me:$LINENO: checking for $ac_header" >&5
22951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22953 echo $ECHO_N "(cached) $ECHO_C" >&6
22955 eval "$as_ac_Header=\$ac_header_preproc"
22957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22962 cat >>confdefs.h <<_ACEOF
22963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22971 for ac_func in getpagesize
22973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22974 echo "$as_me:$LINENO: checking for $ac_func" >&5
22975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22976 if eval "test \"\${$as_ac_var+set}\" = set"; then
22977 echo $ECHO_N "(cached) $ECHO_C" >&6
22979 cat >conftest.$ac_ext <<_ACEOF
22982 cat confdefs.h >>conftest.$ac_ext
22983 cat >>conftest.$ac_ext <<_ACEOF
22984 /* end confdefs.h. */
22985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22987 #define $ac_func innocuous_$ac_func
22989 /* System header to define __stub macros and hopefully few prototypes,
22990 which can conflict with char $ac_func (); below.
22991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22992 <limits.h> exists even on freestanding compilers. */
22995 # include <limits.h>
22997 # include <assert.h>
23002 /* Override any gcc2 internal prototype to avoid an error. */
23007 /* We use char because int might match the return type of a gcc2
23008 builtin and then its argument prototype would still apply. */
23010 /* The GNU C library defines this for functions which it implements
23011 to always fail with ENOSYS. Some functions are actually named
23012 something starting with __ and the normal name is an alias. */
23013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23016 char (*f) () = $ac_func;
23025 return f != $ac_func;
23030 rm -f conftest.$ac_objext conftest$ac_exeext
23031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23032 (eval $ac_link) 2>conftest.er1
23034 grep -v '^ *+' conftest.er1 >conftest.err
23036 cat conftest.err >&5
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); } &&
23039 { ac_try='test -z "$ac_c_werror_flag"
23040 || test ! -s conftest.err'
23041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042 (eval $ac_try) 2>&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); }; } &&
23046 { ac_try='test -s conftest$ac_exeext'
23047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048 (eval $ac_try) 2>&5
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); }; }; then
23052 eval "$as_ac_var=yes"
23054 echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23057 eval "$as_ac_var=no"
23059 rm -f conftest.err conftest.$ac_objext \
23060 conftest$ac_exeext conftest.$ac_ext
23062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23064 if test `eval echo '${'$as_ac_var'}'` = yes; then
23065 cat >>confdefs.h <<_ACEOF
23066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23072 echo "$as_me:$LINENO: checking for working mmap" >&5
23073 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23074 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23075 echo $ECHO_N "(cached) $ECHO_C" >&6
23077 if test "$cross_compiling" = yes; then
23078 ac_cv_func_mmap_fixed_mapped=no
23080 cat >conftest.$ac_ext <<_ACEOF
23083 cat confdefs.h >>conftest.$ac_ext
23084 cat >>conftest.$ac_ext <<_ACEOF
23085 /* end confdefs.h. */
23086 $ac_includes_default
23087 /* malloc might have been renamed as rpl_malloc. */
23090 /* Thanks to Mike Haertel and Jim Avera for this test.
23091 Here is a matrix of mmap possibilities:
23092 mmap private not fixed
23093 mmap private fixed at somewhere currently unmapped
23094 mmap private fixed at somewhere already mapped
23095 mmap shared not fixed
23096 mmap shared fixed at somewhere currently unmapped
23097 mmap shared fixed at somewhere already mapped
23098 For private mappings, we should verify that changes cannot be read()
23099 back from the file, nor mmap's back from the file at a different
23100 address. (There have been systems where private was not correctly
23101 implemented like the infamous i386 svr4.0, and systems where the
23102 VM page cache was not coherent with the file system buffer cache
23103 like early versions of FreeBSD and possibly contemporary NetBSD.)
23104 For shared mappings, we should conversely verify that changes get
23105 propagated back to all the places they're supposed to be.
23107 Grep wants private fixed already mapped.
23108 The main things grep needs to know about mmap are:
23109 * does it exist and is it safe to write into the mmap'd area
23110 * how to use it (BSD variants) */
23113 #include <sys/mman.h>
23115 #if !STDC_HEADERS && !HAVE_STDLIB_H
23119 /* This mess was copied from the GNU getpagesize.h. */
23120 #if !HAVE_GETPAGESIZE
23121 /* Assume that all systems that can run configure have sys/param.h. */
23122 # if !HAVE_SYS_PARAM_H
23123 # define HAVE_SYS_PARAM_H 1
23126 # ifdef _SC_PAGESIZE
23127 # define getpagesize() sysconf(_SC_PAGESIZE)
23128 # else /* no _SC_PAGESIZE */
23129 # if HAVE_SYS_PARAM_H
23130 # include <sys/param.h>
23131 # ifdef EXEC_PAGESIZE
23132 # define getpagesize() EXEC_PAGESIZE
23133 # else /* no EXEC_PAGESIZE */
23135 # define getpagesize() NBPG * CLSIZE
23138 # endif /* no CLSIZE */
23139 # else /* no NBPG */
23141 # define getpagesize() NBPC
23142 # else /* no NBPC */
23144 # define getpagesize() PAGESIZE
23145 # endif /* PAGESIZE */
23146 # endif /* no NBPC */
23147 # endif /* no NBPG */
23148 # endif /* no EXEC_PAGESIZE */
23149 # else /* no HAVE_SYS_PARAM_H */
23150 # define getpagesize() 8192 /* punt totally */
23151 # endif /* no HAVE_SYS_PARAM_H */
23152 # endif /* no _SC_PAGESIZE */
23154 #endif /* no HAVE_GETPAGESIZE */
23159 char *data, *data2, *data3;
23163 pagesize = getpagesize ();
23165 /* First, make a file with some known garbage in it. */
23166 data = (char *) malloc (pagesize);
23169 for (i = 0; i < pagesize; ++i)
23170 *(data + i) = rand ();
23172 fd = creat ("conftest.mmap", 0600);
23175 if (write (fd, data, pagesize) != pagesize)
23179 /* Next, try to mmap the file at a fixed address which already has
23180 something else allocated at it. If we can, also make sure that
23181 we see the same garbage. */
23182 fd = open ("conftest.mmap", O_RDWR);
23185 data2 = (char *) malloc (2 * pagesize);
23188 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
23189 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23190 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23192 for (i = 0; i < pagesize; ++i)
23193 if (*(data + i) != *(data2 + i))
23196 /* Finally, make sure that changes to the mapped area do not
23197 percolate back to the file as seen by read(). (This is a bug on
23198 some variants of i386 svr4.0.) */
23199 for (i = 0; i < pagesize; ++i)
23200 *(data2 + i) = *(data2 + i) + 1;
23201 data3 = (char *) malloc (pagesize);
23204 if (read (fd, data3, pagesize) != pagesize)
23206 for (i = 0; i < pagesize; ++i)
23207 if (*(data + i) != *(data3 + i))
23213 rm -f conftest$ac_exeext
23214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23215 (eval $ac_link) 2>&5
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23220 (eval $ac_try) 2>&5
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); }; }; then
23224 ac_cv_func_mmap_fixed_mapped=yes
23226 echo "$as_me: program exited with status $ac_status" >&5
23227 echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23230 ( exit $ac_status )
23231 ac_cv_func_mmap_fixed_mapped=no
23233 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23236 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23237 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23238 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23240 cat >>confdefs.h <<\_ACEOF
23241 #define HAVE_MMAP 1
23245 rm -f conftest.mmap
23247 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23249 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23250 echo "$as_me: WARNING: mmap() required but not found" >&2;}
23252 echo "$as_me:$LINENO: checking for mmap of files" >&5
23253 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23254 if test "${ac_cv_func_mmap_file+set}" = set; then
23255 echo $ECHO_N "(cached) $ECHO_C" >&6
23258 ac_cpp='$CPP $CPPFLAGS'
23259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23263 if test "$cross_compiling" = yes; then
23264 ac_cv_func_mmap_file=no
23266 cat >conftest.$ac_ext <<_ACEOF
23270 cat confdefs.h >>conftest.$ac_ext
23271 cat >>conftest.$ac_ext <<_ACEOF
23272 /* end confdefs.h. */
23274 #include <sys/types.h>
23275 #include <sys/mman.h>
23283 fd = creat ("foo",0777);
23284 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
23286 return (fd != (int) MAP_FAILED);
23291 rm -f conftest$ac_exeext
23292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23293 (eval $ac_link) 2>&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23298 (eval $ac_try) 2>&5
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); }; }; then
23302 ac_cv_func_mmap_file=yes
23304 echo "$as_me: program exited with status $ac_status" >&5
23305 echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23308 ( exit $ac_status )
23309 ac_cv_func_mmap_file=no
23311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23314 ac_cpp='$CPP $CPPFLAGS'
23315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23321 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23322 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23323 if test "$ac_cv_func_mmap_file" = yes; then
23325 cat >>confdefs.h <<\_ACEOF
23326 #define HAVE_MMAP_FILE
23333 if test "$ac_cv_func_mmap_file" = "no"
23335 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23336 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23338 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23339 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23340 if test "${ac_cv_header_mmap_anon+set}" = set; then
23341 echo $ECHO_N "(cached) $ECHO_C" >&6
23344 ac_cpp='$CPP $CPPFLAGS'
23345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23349 cat >conftest.$ac_ext <<_ACEOF
23352 cat confdefs.h >>conftest.$ac_ext
23353 cat >>conftest.$ac_ext <<_ACEOF
23354 /* end confdefs.h. */
23355 #include <sys/mman.h>
23356 #include <unistd.h>
23361 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23366 rm -f conftest.$ac_objext
23367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23368 (eval $ac_compile) 2>conftest.er1
23370 grep -v '^ *+' conftest.er1 >conftest.err
23372 cat conftest.err >&5
23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); } &&
23375 { ac_try='test -z "$ac_c_werror_flag"
23376 || test ! -s conftest.err'
23377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23378 (eval $ac_try) 2>&5
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); }; } &&
23382 { ac_try='test -s conftest.$ac_objext'
23383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384 (eval $ac_try) 2>&5
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); }; }; then
23388 ac_cv_header_mmap_anon=yes
23390 echo "$as_me: failed program was:" >&5
23391 sed 's/^/| /' conftest.$ac_ext >&5
23393 ac_cv_header_mmap_anon=no
23395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23397 ac_cpp='$CPP $CPPFLAGS'
23398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23404 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23405 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23406 if test "$ac_cv_header_mmap_anon" = yes; then
23408 cat >>confdefs.h <<\_ACEOF
23409 #define HAVE_MMAP_ANONYMOUS
23414 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23415 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23416 if test "${ac_cv_type_signal+set}" = set; then
23417 echo $ECHO_N "(cached) $ECHO_C" >&6
23419 cat >conftest.$ac_ext <<_ACEOF
23422 cat confdefs.h >>conftest.$ac_ext
23423 cat >>conftest.$ac_ext <<_ACEOF
23424 /* end confdefs.h. */
23425 #include <sys/types.h>
23426 #include <signal.h>
23431 extern "C" void (*signal (int, void (*)(int)))(int);
23433 void (*signal ()) ();
23444 rm -f conftest.$ac_objext
23445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23446 (eval $ac_compile) 2>conftest.er1
23448 grep -v '^ *+' conftest.er1 >conftest.err
23450 cat conftest.err >&5
23451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); } &&
23453 { ac_try='test -z "$ac_c_werror_flag"
23454 || test ! -s conftest.err'
23455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23456 (eval $ac_try) 2>&5
23458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459 (exit $ac_status); }; } &&
23460 { ac_try='test -s conftest.$ac_objext'
23461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23462 (eval $ac_try) 2>&5
23464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); }; }; then
23466 ac_cv_type_signal=void
23468 echo "$as_me: failed program was:" >&5
23469 sed 's/^/| /' conftest.$ac_ext >&5
23471 ac_cv_type_signal=int
23473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23475 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23476 echo "${ECHO_T}$ac_cv_type_signal" >&6
23478 cat >>confdefs.h <<_ACEOF
23479 #define RETSIGTYPE $ac_cv_type_signal
23492 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
23494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23495 echo "$as_me:$LINENO: checking for $ac_func" >&5
23496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23497 if eval "test \"\${$as_ac_var+set}\" = set"; then
23498 echo $ECHO_N "(cached) $ECHO_C" >&6
23500 cat >conftest.$ac_ext <<_ACEOF
23503 cat confdefs.h >>conftest.$ac_ext
23504 cat >>conftest.$ac_ext <<_ACEOF
23505 /* end confdefs.h. */
23506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23508 #define $ac_func innocuous_$ac_func
23510 /* System header to define __stub macros and hopefully few prototypes,
23511 which can conflict with char $ac_func (); below.
23512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23513 <limits.h> exists even on freestanding compilers. */
23516 # include <limits.h>
23518 # include <assert.h>
23523 /* Override any gcc2 internal prototype to avoid an error. */
23528 /* We use char because int might match the return type of a gcc2
23529 builtin and then its argument prototype would still apply. */
23531 /* The GNU C library defines this for functions which it implements
23532 to always fail with ENOSYS. Some functions are actually named
23533 something starting with __ and the normal name is an alias. */
23534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23537 char (*f) () = $ac_func;
23546 return f != $ac_func;
23551 rm -f conftest.$ac_objext conftest$ac_exeext
23552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23553 (eval $ac_link) 2>conftest.er1
23555 grep -v '^ *+' conftest.er1 >conftest.err
23557 cat conftest.err >&5
23558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559 (exit $ac_status); } &&
23560 { ac_try='test -z "$ac_c_werror_flag"
23561 || test ! -s conftest.err'
23562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23563 (eval $ac_try) 2>&5
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); }; } &&
23567 { ac_try='test -s conftest$ac_exeext'
23568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23569 (eval $ac_try) 2>&5
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); }; }; then
23573 eval "$as_ac_var=yes"
23575 echo "$as_me: failed program was:" >&5
23576 sed 's/^/| /' conftest.$ac_ext >&5
23578 eval "$as_ac_var=no"
23580 rm -f conftest.err conftest.$ac_objext \
23581 conftest$ac_exeext conftest.$ac_ext
23583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23584 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23585 if test `eval echo '${'$as_ac_var'}'` = yes; then
23586 cat >>confdefs.h <<_ACEOF
23587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23593 echo "$as_me:$LINENO: checking for mprotect" >&5
23594 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23595 if test "${ac_cv_func_mprotect+set}" = set; then
23596 echo $ECHO_N "(cached) $ECHO_C" >&6
23598 cat >conftest.$ac_ext <<_ACEOF
23601 cat confdefs.h >>conftest.$ac_ext
23602 cat >>conftest.$ac_ext <<_ACEOF
23603 /* end confdefs.h. */
23604 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23606 #define mprotect innocuous_mprotect
23608 /* System header to define __stub macros and hopefully few prototypes,
23609 which can conflict with char mprotect (); below.
23610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23611 <limits.h> exists even on freestanding compilers. */
23614 # include <limits.h>
23616 # include <assert.h>
23621 /* Override any gcc2 internal prototype to avoid an error. */
23626 /* We use char because int might match the return type of a gcc2
23627 builtin and then its argument prototype would still apply. */
23629 /* The GNU C library defines this for functions which it implements
23630 to always fail with ENOSYS. Some functions are actually named
23631 something starting with __ and the normal name is an alias. */
23632 #if defined (__stub_mprotect) || defined (__stub___mprotect)
23635 char (*f) () = mprotect;
23644 return f != mprotect;
23649 rm -f conftest.$ac_objext conftest$ac_exeext
23650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23651 (eval $ac_link) 2>conftest.er1
23653 grep -v '^ *+' conftest.er1 >conftest.err
23655 cat conftest.err >&5
23656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657 (exit $ac_status); } &&
23658 { ac_try='test -z "$ac_c_werror_flag"
23659 || test ! -s conftest.err'
23660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23661 (eval $ac_try) 2>&5
23663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); }; } &&
23665 { ac_try='test -s conftest$ac_exeext'
23666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23667 (eval $ac_try) 2>&5
23669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23670 (exit $ac_status); }; }; then
23671 ac_cv_func_mprotect=yes
23673 echo "$as_me: failed program was:" >&5
23674 sed 's/^/| /' conftest.$ac_ext >&5
23676 ac_cv_func_mprotect=no
23678 rm -f conftest.err conftest.$ac_objext \
23679 conftest$ac_exeext conftest.$ac_ext
23681 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23682 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23683 if test $ac_cv_func_mprotect = yes; then
23686 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23687 echo "$as_me: error: Function mprotect() required but not found" >&2;}
23688 { (exit 1); exit 1; }; }
23693 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23694 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
23696 ac_cpp='$CPP $CPPFLAGS'
23697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23701 oldcflags="$CFLAGS"
23702 CFLAGS="$CFLAGS -Wl,-R."
23703 cat >conftest.$ac_ext <<_ACEOF
23706 cat confdefs.h >>conftest.$ac_ext
23707 cat >>conftest.$ac_ext <<_ACEOF
23708 /* end confdefs.h. */
23713 int main() { return 0; }
23718 rm -f conftest.$ac_objext conftest$ac_exeext
23719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23720 (eval $ac_link) 2>conftest.er1
23722 grep -v '^ *+' conftest.er1 >conftest.err
23724 cat conftest.err >&5
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); } &&
23727 { ac_try='test -z "$ac_c_werror_flag"
23728 || test ! -s conftest.err'
23729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730 (eval $ac_try) 2>&5
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); }; } &&
23734 { ac_try='test -s conftest$ac_exeext'
23735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736 (eval $ac_try) 2>&5
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); }; }; then
23740 ac_cv_link_use_r=yes
23742 echo "$as_me: failed program was:" >&5
23743 sed 's/^/| /' conftest.$ac_ext >&5
23745 ac_cv_link_use_r=no
23747 rm -f conftest.err conftest.$ac_objext \
23748 conftest$ac_exeext conftest.$ac_ext
23749 CFLAGS="$oldcflags"
23751 ac_cpp='$CPP $CPPFLAGS'
23752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23756 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23757 echo "${ECHO_T}$ac_cv_link_use_r" >&6
23758 if test "$ac_cv_link_use_r" = yes
23761 cat >>confdefs.h <<\_ACEOF
23762 #define HAVE_LINK_R 1
23768 # Check whether --enable-optimized or --disable-optimized was given.
23769 if test "${enable_optimized+set}" = set; then
23770 enableval="$enable_optimized"
23775 if test ${enableval} = "no"
23780 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23784 # Check whether --enable-jit or --disable-jit was given.
23785 if test "${enable_jit+set}" = set; then
23786 enableval="$enable_jit"
23791 if test ${enableval} = "no"
23798 JIT=TARGET_HAS_JIT=1
23802 JIT=TARGET_HAS_JIT=1
23813 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23814 if test "${with_llvmgccdir+set}" = set; then
23815 withval="$with_llvmgccdir"
23816 LLVMGCCDIR=$withval
23819 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23820 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23822 if test -d "$LLVMGCCDIR"
23824 if test -x "$LLVMGCCDIR/bin/gcc"
23826 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23830 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23831 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23832 if test "$LLVM_GCC_CHECK" = "no"
23836 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23837 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23839 if test -x "$LLVM_GCC_CHECK"
23841 cp /dev/null conftest.c
23842 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23848 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
23849 LLVMCC1=$llvmcc1path
23851 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
23852 LLVMCC1PLUS=$llvmcc1pluspath
23855 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23856 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23857 if test "$LLVM_GCC_SANE" = "no"
23862 echo "$as_me:$LINENO: checking for shared library suffix" >&5
23863 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23864 eval "SHLIBEXT=$shrext_cmds"
23865 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23866 echo "${ECHO_T}$SHLIBEXT" >&6
23870 cat >>confdefs.h <<_ACEOF
23871 #define SHLIBEXT "$SHLIBEXT"
23875 # Translate the various configuration directories and other basic
23876 # information into substitutions that will end up in config.h.in so
23877 # that these configured values can be hard-wired into a program.
23878 eval LLVM_PREFIX="${prefix}";
23879 eval LLVM_BINDIR="${prefix}/bin";
23880 eval LLVM_LIBDIR="${prefix}/lib";
23881 eval LLVM_DATADIR="${prefix}/data";
23882 eval LLVM_DOCSDIR="${prefix}/docs";
23883 eval LLVM_ETCDIR="${prefix}/etc";
23884 eval LLVM_INCLUDEDIR="${prefix}/include";
23885 eval LLVM_INFODIR="${prefix}/info";
23886 eval LLVM_MANDIR="${prefix}/man";
23887 LLVM_CONFIGTIME=`date`
23899 cat >>confdefs.h <<_ACEOF
23900 #define LLVM_PREFIX "$LLVM_PREFIX"
23904 cat >>confdefs.h <<_ACEOF
23905 #define LLVM_BINDIR "$LLVM_BINDIR"
23909 cat >>confdefs.h <<_ACEOF
23910 #define LLVM_LIBDIR "$LLVM_LIBDIR"
23914 cat >>confdefs.h <<_ACEOF
23915 #define LLVM_DATADIR "$LLVM_DATADIR"
23919 cat >>confdefs.h <<_ACEOF
23920 #define LLVM_DATADIR "$LLVM_DOCSDIR"
23924 cat >>confdefs.h <<_ACEOF
23925 #define LLVM_ETCDIR "$LLVM_ETCDIR"
23929 cat >>confdefs.h <<_ACEOF
23930 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23934 cat >>confdefs.h <<_ACEOF
23935 #define LLVM_INFODIR "$LLVM_INFODIR"
23939 cat >>confdefs.h <<_ACEOF
23940 #define LLVM_MANDIR "$LLVM_MANDIR"
23944 cat >>confdefs.h <<_ACEOF
23945 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23949 cat >confcache <<\_ACEOF
23950 # This file is a shell script that caches the results of configure
23951 # tests run on this system so they can be shared between configure
23952 # scripts and configure runs, see configure's option --config-cache.
23953 # It is not useful on other systems. If it contains results you don't
23954 # want to keep, you may remove or edit it.
23956 # config.status only pays attention to the cache file if you give it
23957 # the --recheck option to rerun configure.
23959 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23960 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23961 # following values.
23965 # The following way of writing the cache mishandles newlines in values,
23966 # but we know of no workaround that is simple, portable, and efficient.
23967 # So, don't put newlines in cache variables' values.
23968 # Ultrix sh set writes to stderr and can't be redirected directly,
23969 # and sets the high bit in the cache file unless we assign to the vars.
23972 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23974 # `set' does not quote correctly, so add quotes (double-quote
23975 # substitution turns \\\\ into \\, and sed turns \\ into \).
23978 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23981 # `set' quotes correctly as required by POSIX, so do not add quotes.
23983 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23990 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23992 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23994 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23995 if test -w $cache_file; then
23996 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23997 cat confcache >$cache_file
23999 echo "not updating unwritable cache $cache_file"
24004 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24005 # Let make expand exec_prefix.
24006 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24008 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24009 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24010 # trailing colons and then remove the whole line if VPATH becomes empty
24011 # (actually we leave an empty line to preserve line numbers).
24012 if test "x$srcdir" = x.; then
24013 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24014 s/:*\$(srcdir):*/:/;
24015 s/:*\${srcdir}:*/:/;
24017 s/^\([^=]*=[ ]*\):*/\1/;
24023 DEFS=-DHAVE_CONFIG_H
24027 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24028 # 1. Remove the extension, and $U if already installed.
24029 ac_i=`echo "$ac_i" |
24030 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24032 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24033 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24035 LIBOBJS=$ac_libobjs
24037 LTLIBOBJS=$ac_ltlibobjs
24041 : ${CONFIG_STATUS=./config.status}
24042 ac_clean_files_save=$ac_clean_files
24043 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24044 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24045 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24046 cat >$CONFIG_STATUS <<_ACEOF
24048 # Generated by $as_me.
24049 # Run this file to recreate the current configuration.
24050 # Compiler output produced by configure, useful for debugging
24051 # configure, is in config.log if it exists.
24054 ac_cs_recheck=false
24056 SHELL=\${CONFIG_SHELL-$SHELL}
24059 cat >>$CONFIG_STATUS <<\_ACEOF
24060 ## --------------------- ##
24061 ## M4sh Initialization. ##
24062 ## --------------------- ##
24064 # Be Bourne compatible
24065 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24068 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24069 # is contrary to our usage. Disable this feature.
24070 alias -g '${1+"$@"}'='"$@"'
24071 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24074 DUALCASE=1; export DUALCASE # for MKS sh
24076 # Support unset when possible.
24077 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24084 # Work around bugs in pre-3.0 UWIN ksh.
24085 $as_unset ENV MAIL MAILPATH
24092 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24093 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24094 LC_TELEPHONE LC_TIME
24096 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24097 eval $as_var=C; export $as_var
24103 # Required to use basename.
24104 if expr a : '\(a\)' >/dev/null 2>&1; then
24110 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24111 as_basename=basename
24117 # Name of the executable.
24118 as_me=`$as_basename "$0" ||
24119 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24120 X"$0" : 'X\(//\)$' \| \
24121 X"$0" : 'X\(/\)$' \| \
24122 . : '\(.\)' 2>/dev/null ||
24124 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24125 /^X\/\(\/\/\)$/{ s//\1/; q; }
24126 /^X\/\(\/\).*/{ s//\1/; q; }
24130 # PATH needs CR, and LINENO needs CR and PATH.
24131 # Avoid depending upon Character Ranges.
24132 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24133 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24134 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24135 as_cr_digits='0123456789'
24136 as_cr_alnum=$as_cr_Letters$as_cr_digits
24138 # The user is always right.
24139 if test "${PATH_SEPARATOR+set}" != set; then
24140 echo "#! /bin/sh" >conf$$.sh
24141 echo "exit 0" >>conf$$.sh
24143 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24152 as_lineno_1=$LINENO
24153 as_lineno_2=$LINENO
24154 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24155 test "x$as_lineno_1" != "x$as_lineno_2" &&
24156 test "x$as_lineno_3" = "x$as_lineno_2" || {
24157 # Find who we are. Look in the path if we contain no path at all
24160 *[\\/]* ) as_myself=$0 ;;
24161 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24162 for as_dir in $PATH
24165 test -z "$as_dir" && as_dir=.
24166 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24171 # We did not find ourselves, most probably we were run as `sh COMMAND'
24172 # in which case we are not to be found in the path.
24173 if test "x$as_myself" = x; then
24176 if test ! -f "$as_myself"; then
24177 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24178 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24179 { (exit 1); exit 1; }; }
24181 case $CONFIG_SHELL in
24183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24184 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24187 test -z "$as_dir" && as_dir=.
24188 for as_base in sh bash ksh sh5; do
24191 if ("$as_dir/$as_base" -c '
24192 as_lineno_1=$LINENO
24193 as_lineno_2=$LINENO
24194 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24195 test "x$as_lineno_1" != "x$as_lineno_2" &&
24196 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24197 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24198 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24199 CONFIG_SHELL=$as_dir/$as_base
24200 export CONFIG_SHELL
24201 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24209 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24210 # uniformly replaced by the line number. The first 'sed' inserts a
24211 # line-number line before each line; the second 'sed' does the real
24212 # work. The second script uses 'N' to pair each line-number line
24213 # with the numbered line, and appends trailing '-' during
24214 # substitution so that $LINENO is not a special case at line end.
24215 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24216 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24217 sed '=' <$as_myself |
24222 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24225 s,^['$as_cr_digits']*\n,,
24226 ' >$as_me.lineno &&
24227 chmod +x $as_me.lineno ||
24228 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24229 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24230 { (exit 1); exit 1; }; }
24232 # Don't try to exec as it changes $[0], causing all sort of problems
24233 # (the dirname of $[0] is not the place where we might find the
24234 # original and so on. Autoconf is especially sensible to this).
24236 # Exit status is that of the last command.
24241 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24242 *c*,-n*) ECHO_N= ECHO_C='
24244 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24245 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24248 if expr a : '\(a\)' >/dev/null 2>&1; then
24254 rm -f conf$$ conf$$.exe conf$$.file
24256 if ln -s conf$$.file conf$$ 2>/dev/null; then
24257 # We could just check for DJGPP; but this test a) works b) is more generic
24258 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24259 if test -f conf$$.exe; then
24260 # Don't use ln at all; we don't have any links
24265 elif ln conf$$.file conf$$ 2>/dev/null; then
24270 rm -f conf$$ conf$$.exe conf$$.file
24272 if mkdir -p . 2>/dev/null; then
24275 test -d ./-p && rmdir ./-p
24279 as_executable_p="test -f"
24281 # Sed expression to map a string onto a valid CPP name.
24282 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24284 # Sed expression to map a string onto a valid variable name.
24285 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24289 # We need space, tab and new line, in precisely that order.
24299 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24300 # report actual input values of CONFIG_FILES etc. instead of their
24301 # values after options handling. Logging --version etc. is OK.
24305 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24306 ## Running $as_me. ##
24311 This file was extended by LLVM $as_me 1.4, which was
24312 generated by GNU Autoconf 2.59. Invocation command line was
24314 CONFIG_FILES = $CONFIG_FILES
24315 CONFIG_HEADERS = $CONFIG_HEADERS
24316 CONFIG_LINKS = $CONFIG_LINKS
24317 CONFIG_COMMANDS = $CONFIG_COMMANDS
24321 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24325 # Files that config.status was made for.
24326 if test -n "$ac_config_files"; then
24327 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24330 if test -n "$ac_config_headers"; then
24331 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24334 if test -n "$ac_config_links"; then
24335 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24338 if test -n "$ac_config_commands"; then
24339 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24342 cat >>$CONFIG_STATUS <<\_ACEOF
24345 \`$as_me' instantiates files from templates according to the
24346 current configuration.
24348 Usage: $0 [OPTIONS] [FILE]...
24350 -h, --help print this help, then exit
24351 -V, --version print version number, then exit
24352 -q, --quiet do not print progress messages
24353 -d, --debug don't remove temporary files
24354 --recheck update $as_me by reconfiguring in the same conditions
24355 --file=FILE[:TEMPLATE]
24356 instantiate the configuration file FILE
24357 --header=FILE[:TEMPLATE]
24358 instantiate the configuration header FILE
24360 Configuration files:
24363 Configuration headers:
24366 Configuration links:
24369 Configuration commands:
24372 Report bugs to <bug-autoconf@gnu.org>."
24375 cat >>$CONFIG_STATUS <<_ACEOF
24377 LLVM config.status 1.4
24378 configured by $0, generated by GNU Autoconf 2.59,
24379 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24381 Copyright (C) 2003 Free Software Foundation, Inc.
24382 This config.status script is free software; the Free Software Foundation
24383 gives unlimited permission to copy, distribute and modify it."
24388 cat >>$CONFIG_STATUS <<\_ACEOF
24389 # If no file are specified by the user, then we need to provide default
24390 # value. By we need to know if files were specified by the user.
24396 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24397 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24405 *) # This is not an option, so the user has probably given explicit
24408 ac_need_defaults=false;;
24412 # Handling of the options.
24414 cat >>$CONFIG_STATUS <<\_ACEOF
24415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24417 --version | --vers* | -V )
24418 echo "$ac_cs_version"; exit 0 ;;
24420 # Conflict between --help and --header
24421 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24422 Try \`$0 --help' for more information." >&5
24423 echo "$as_me: error: ambiguous option: $1
24424 Try \`$0 --help' for more information." >&2;}
24425 { (exit 1); exit 1; }; };;
24426 --help | --hel | -h )
24427 echo "$ac_cs_usage"; exit 0 ;;
24428 --debug | --d* | -d )
24430 --file | --fil | --fi | --f )
24432 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24433 ac_need_defaults=false;;
24434 --header | --heade | --head | --hea )
24436 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24437 ac_need_defaults=false;;
24438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24439 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24442 # This is an error.
24443 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24444 Try \`$0 --help' for more information." >&5
24445 echo "$as_me: error: unrecognized option: $1
24446 Try \`$0 --help' for more information." >&2;}
24447 { (exit 1); exit 1; }; } ;;
24449 *) ac_config_targets="$ac_config_targets $1" ;;
24455 ac_configure_extra_args=
24457 if $ac_cs_silent; then
24459 ac_configure_extra_args="$ac_configure_extra_args --silent"
24463 cat >>$CONFIG_STATUS <<_ACEOF
24464 if \$ac_cs_recheck; then
24465 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24466 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24471 cat >>$CONFIG_STATUS <<_ACEOF
24473 # INIT-COMMANDS section.
24476 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24477 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
24478 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
24479 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
24480 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24481 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24482 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24483 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24484 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
24485 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
24486 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
24487 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
24493 cat >>$CONFIG_STATUS <<\_ACEOF
24494 for ac_config_target in $ac_config_targets
24496 case "$ac_config_target" in
24497 # Handling of arguments.
24498 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
24499 "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;;
24500 "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;;
24501 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
24502 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24503 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
24504 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
24505 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
24506 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24507 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24508 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24509 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24510 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24511 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24512 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24513 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24514 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
24515 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
24516 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
24517 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
24518 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24519 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24520 { (exit 1); exit 1; }; };;
24524 # If the user did not use the arguments to specify the items to instantiate,
24525 # then the envvar interface is used. Set only those that are not.
24526 # We use the long form for the default assignment because of an extremely
24527 # bizarre bug on SunOS 4.1.3.
24528 if $ac_need_defaults; then
24529 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24530 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24531 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24532 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24535 # Have a temporary directory for convenience. Make it in the build tree
24536 # simply because there is no reason to put it here, and in addition,
24537 # creating and moving files from /tmp can sometimes cause problems.
24538 # Create a temporary directory, and hook for its removal unless debugging.
24541 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24542 trap '{ (exit 1); exit 1; }' 1 2 13 15
24545 # Create a (secure) tmp directory for tmp files.
24548 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24549 test -n "$tmp" && test -d "$tmp"
24552 tmp=./confstat$$-$RANDOM
24553 (umask 077 && mkdir $tmp)
24556 echo "$me: cannot create a temporary directory in ." >&2
24557 { (exit 1); exit 1; }
24562 cat >>$CONFIG_STATUS <<_ACEOF
24565 # CONFIG_FILES section.
24568 # No need to generate the scripts if there are no CONFIG_FILES.
24569 # This happens for instance when ./config.status config.h
24570 if test -n "\$CONFIG_FILES"; then
24571 # Protect against being on the right side of a sed subst in config.status.
24572 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24573 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24574 s,@SHELL@,$SHELL,;t t
24575 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24576 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24577 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24578 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24579 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24580 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24581 s,@exec_prefix@,$exec_prefix,;t t
24582 s,@prefix@,$prefix,;t t
24583 s,@program_transform_name@,$program_transform_name,;t t
24584 s,@bindir@,$bindir,;t t
24585 s,@sbindir@,$sbindir,;t t
24586 s,@libexecdir@,$libexecdir,;t t
24587 s,@datadir@,$datadir,;t t
24588 s,@sysconfdir@,$sysconfdir,;t t
24589 s,@sharedstatedir@,$sharedstatedir,;t t
24590 s,@localstatedir@,$localstatedir,;t t
24591 s,@libdir@,$libdir,;t t
24592 s,@includedir@,$includedir,;t t
24593 s,@oldincludedir@,$oldincludedir,;t t
24594 s,@infodir@,$infodir,;t t
24595 s,@mandir@,$mandir,;t t
24596 s,@build_alias@,$build_alias,;t t
24597 s,@host_alias@,$host_alias,;t t
24598 s,@target_alias@,$target_alias,;t t
24599 s,@DEFS@,$DEFS,;t t
24600 s,@ECHO_C@,$ECHO_C,;t t
24601 s,@ECHO_N@,$ECHO_N,;t t
24602 s,@ECHO_T@,$ECHO_T,;t t
24603 s,@LIBS@,$LIBS,;t t
24604 s,@subdirs@,$subdirs,;t t
24605 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24606 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24607 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24608 s,@build@,$build,;t t
24609 s,@build_cpu@,$build_cpu,;t t
24610 s,@build_vendor@,$build_vendor,;t t
24611 s,@build_os@,$build_os,;t t
24612 s,@host@,$host,;t t
24613 s,@host_cpu@,$host_cpu,;t t
24614 s,@host_vendor@,$host_vendor,;t t
24615 s,@host_os@,$host_os,;t t
24616 s,@target@,$target,;t t
24617 s,@target_cpu@,$target_cpu,;t t
24618 s,@target_vendor@,$target_vendor,;t t
24619 s,@target_os@,$target_os,;t t
24621 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24622 s,@ARCH@,$ARCH,;t t
24624 s,@CXXFLAGS@,$CXXFLAGS,;t t
24625 s,@LDFLAGS@,$LDFLAGS,;t t
24626 s,@CPPFLAGS@,$CPPFLAGS,;t t
24627 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24628 s,@EXEEXT@,$EXEEXT,;t t
24629 s,@OBJEXT@,$OBJEXT,;t t
24631 s,@CFLAGS@,$CFLAGS,;t t
24632 s,@ac_ct_CC@,$ac_ct_CC,;t t
24634 s,@ifGNUmake@,$ifGNUmake,;t t
24636 s,@LEXLIB@,$LEXLIB,;t t
24637 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24638 s,@FLEX@,$FLEX,;t t
24639 s,@YACC@,$YACC,;t t
24640 s,@BISON@,$BISON,;t t
24641 s,@EGREP@,$EGREP,;t t
24642 s,@LN_S@,$LN_S,;t t
24643 s,@ECHO@,$ECHO,;t t
24645 s,@ac_ct_AR@,$ac_ct_AR,;t t
24646 s,@RANLIB@,$RANLIB,;t t
24647 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24648 s,@STRIP@,$STRIP,;t t
24649 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24650 s,@CXXCPP@,$CXXCPP,;t t
24652 s,@FFLAGS@,$FFLAGS,;t t
24653 s,@ac_ct_F77@,$ac_ct_F77,;t t
24654 s,@LIBTOOL@,$LIBTOOL,;t t
24656 s,@ETAGS@,$ETAGS,;t t
24657 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
24658 s,@PYTHON@,$PYTHON,;t t
24659 s,@QMTEST@,$QMTEST,;t t
24660 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
24661 s,@ENDIAN@,$ENDIAN,;t t
24662 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24663 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24664 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
24665 s,@ALLOCA@,$ALLOCA,;t t
24666 s,@MMAP_FILE@,$MMAP_FILE,;t t
24667 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24669 s,@LLVMCC1@,$LLVMCC1,;t t
24670 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
24671 s,@SHLIBEXT@,$SHLIBEXT,;t t
24672 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24673 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24674 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24675 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24676 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24677 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24678 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24679 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24680 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24681 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
24682 s,@LIBOBJS@,$LIBOBJS,;t t
24683 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24688 cat >>$CONFIG_STATUS <<\_ACEOF
24689 # Split the substitutions into bite-sized pieces for seds with
24690 # small command number limits, like on Digital OSF/1 and HP-UX.
24691 ac_max_sed_lines=48
24692 ac_sed_frag=1 # Number of current file.
24693 ac_beg=1 # First line for current file.
24694 ac_end=$ac_max_sed_lines # Line after last line for current file.
24697 while $ac_more_lines; do
24698 if test $ac_beg -gt 1; then
24699 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24701 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24703 if test ! -s $tmp/subs.frag; then
24704 ac_more_lines=false
24706 # The purpose of the label and of the branching condition is to
24707 # speed up the sed processing (if there are no `@' at all, there
24708 # is no need to browse any of the substitutions).
24709 # These are the two extra sed commands mentioned above.
24711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24712 if test -z "$ac_sed_cmds"; then
24713 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24715 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24717 ac_sed_frag=`expr $ac_sed_frag + 1`
24719 ac_end=`expr $ac_end + $ac_max_sed_lines`
24722 if test -z "$ac_sed_cmds"; then
24725 fi # test -n "$CONFIG_FILES"
24728 cat >>$CONFIG_STATUS <<\_ACEOF
24729 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24730 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24732 - | *:- | *:-:* ) # input from stdin
24734 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24735 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24736 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24737 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24738 * ) ac_file_in=$ac_file.in ;;
24741 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24742 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24743 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24744 X"$ac_file" : 'X\(//\)[^/]' \| \
24745 X"$ac_file" : 'X\(//\)$' \| \
24746 X"$ac_file" : 'X\(/\)' \| \
24747 . : '\(.\)' 2>/dev/null ||
24749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24750 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24751 /^X\(\/\/\)$/{ s//\1/; q; }
24752 /^X\(\/\).*/{ s//\1/; q; }
24754 { if $as_mkdir_p; then
24759 while test ! -d "$as_dir"; do
24760 as_dirs="$as_dir $as_dirs"
24761 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24762 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24763 X"$as_dir" : 'X\(//\)[^/]' \| \
24764 X"$as_dir" : 'X\(//\)$' \| \
24765 X"$as_dir" : 'X\(/\)' \| \
24766 . : '\(.\)' 2>/dev/null ||
24768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24770 /^X\(\/\/\)$/{ s//\1/; q; }
24771 /^X\(\/\).*/{ s//\1/; q; }
24774 test ! -n "$as_dirs" || mkdir $as_dirs
24775 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24776 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24777 { (exit 1); exit 1; }; }; }
24781 if test "$ac_dir" != .; then
24782 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24783 # A "../" for each directory in $ac_dir_suffix.
24784 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24786 ac_dir_suffix= ac_top_builddir=
24790 .) # No --srcdir option. We are building in place.
24792 if test -z "$ac_top_builddir"; then
24795 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24797 [\\/]* | ?:[\\/]* ) # Absolute path.
24798 ac_srcdir=$srcdir$ac_dir_suffix;
24799 ac_top_srcdir=$srcdir ;;
24800 *) # Relative path.
24801 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24802 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24805 # Do not use `cd foo && pwd` to compute absolute paths, because
24806 # the directories may not exist.
24808 .) ac_abs_builddir="$ac_dir";;
24811 .) ac_abs_builddir=`pwd`;;
24812 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24813 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24816 case $ac_abs_builddir in
24817 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24819 case ${ac_top_builddir}. in
24820 .) ac_abs_top_builddir=$ac_abs_builddir;;
24821 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24822 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24825 case $ac_abs_builddir in
24826 .) ac_abs_srcdir=$ac_srcdir;;
24829 .) ac_abs_srcdir=$ac_abs_builddir;;
24830 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24831 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24834 case $ac_abs_builddir in
24835 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24837 case $ac_top_srcdir in
24838 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24839 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24840 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24846 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24847 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24850 if test x"$ac_file" != x-; then
24851 { echo "$as_me:$LINENO: creating $ac_file" >&5
24852 echo "$as_me: creating $ac_file" >&6;}
24855 # Let's still pretend it is `configure' which instantiates (i.e., don't
24856 # use $as_me), people would be surprised to read:
24857 # /* config.h. Generated by config.status. */
24858 if test x"$ac_file" = x-; then
24861 configure_input="$ac_file. "
24863 configure_input=$configure_input"Generated from `echo $ac_file_in |
24864 sed 's,.*/,,'` by configure."
24866 # First look for the input files in the build tree, otherwise in the
24868 ac_file_inputs=`IFS=:
24869 for f in $ac_file_in; do
24871 -) echo $tmp/stdin ;;
24873 # Absolute (can't be DOS-style, as IFS=:)
24874 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24875 echo "$as_me: error: cannot find input file: $f" >&2;}
24876 { (exit 1); exit 1; }; }
24879 if test -f "$f"; then
24882 elif test -f "$srcdir/$f"; then
24887 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24888 echo "$as_me: error: cannot find input file: $f" >&2;}
24889 { (exit 1); exit 1; }; }
24892 done` || { (exit 1); exit 1; }
24894 cat >>$CONFIG_STATUS <<_ACEOF
24898 cat >>$CONFIG_STATUS <<\_ACEOF
24900 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24901 s,@configure_input@,$configure_input,;t t
24902 s,@srcdir@,$ac_srcdir,;t t
24903 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24904 s,@top_srcdir@,$ac_top_srcdir,;t t
24905 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24906 s,@builddir@,$ac_builddir,;t t
24907 s,@abs_builddir@,$ac_abs_builddir,;t t
24908 s,@top_builddir@,$ac_top_builddir,;t t
24909 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24910 s,@INSTALL@,$ac_INSTALL,;t t
24911 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24913 if test x"$ac_file" != x-; then
24914 mv $tmp/out $ac_file
24922 cat >>$CONFIG_STATUS <<\_ACEOF
24925 # CONFIG_HEADER section.
24928 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24929 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24931 # ac_d sets the value in "#define NAME VALUE" lines.
24932 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24933 ac_dB='[ ].*$,\1#\2'
24936 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24937 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24938 ac_uB='$,\1#\2define\3'
24942 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24943 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24945 - | *:- | *:-:* ) # input from stdin
24947 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24948 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24949 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24950 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24951 * ) ac_file_in=$ac_file.in ;;
24954 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24955 echo "$as_me: creating $ac_file" >&6;}
24957 # First look for the input files in the build tree, otherwise in the
24959 ac_file_inputs=`IFS=:
24960 for f in $ac_file_in; do
24962 -) echo $tmp/stdin ;;
24964 # Absolute (can't be DOS-style, as IFS=:)
24965 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24966 echo "$as_me: error: cannot find input file: $f" >&2;}
24967 { (exit 1); exit 1; }; }
24968 # Do quote $f, to prevent DOS paths from being IFS'd.
24971 if test -f "$f"; then
24974 elif test -f "$srcdir/$f"; then
24979 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24980 echo "$as_me: error: cannot find input file: $f" >&2;}
24981 { (exit 1); exit 1; }; }
24984 done` || { (exit 1); exit 1; }
24985 # Remove the trailing spaces.
24986 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24990 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24991 # `conftest.undefs', that substitutes the proper values into
24992 # config.h.in to produce config.h. The first handles `#define'
24993 # templates, and the second `#undef' templates.
24994 # And first: Protect against being on the right side of a sed subst in
24995 # config.status. Protect against being in an unquoted here document
24996 # in config.status.
24997 rm -f conftest.defines conftest.undefs
24998 # Using a here document instead of a string reduces the quoting nightmare.
24999 # Putting comments in sed scripts is not portable.
25001 # `end' is used to avoid that the second main sed command (meant for
25002 # 0-ary CPP macros) applies to n-ary macro definitions.
25003 # See the Autoconf documentation for `clear'.
25004 cat >confdef2sed.sed <<\_ACEOF
25009 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25011 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25014 # If some macros were called several times there might be several times
25015 # the same #defines, which is useless. Nevertheless, we may not want to
25016 # sort them, since we want the *last* AC-DEFINE to be honored.
25017 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25018 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25019 rm -f confdef2sed.sed
25021 # This sed command replaces #undef with comments. This is necessary, for
25022 # example, in the case of _POSIX_SOURCE, which is predefined and required
25023 # on some systems where configure will not decide to define it.
25024 cat >>conftest.undefs <<\_ACEOF
25025 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25028 # Break up conftest.defines because some shells have a limit on the size
25029 # of here documents, and old seds have small limits too (100 cmds).
25030 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25031 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25032 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25033 echo ' :' >>$CONFIG_STATUS
25034 rm -f conftest.tail
25035 while grep . conftest.defines >/dev/null
25037 # Write a limited-size here document to $tmp/defines.sed.
25038 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25039 # Speed up: don't consider the non `#define' lines.
25040 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25041 # Work around the forget-to-reset-the-flag bug.
25042 echo 't clr' >>$CONFIG_STATUS
25043 echo ': clr' >>$CONFIG_STATUS
25044 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25046 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25048 mv $tmp/out $tmp/in
25050 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25051 rm -f conftest.defines
25052 mv conftest.tail conftest.defines
25054 rm -f conftest.defines
25055 echo ' fi # grep' >>$CONFIG_STATUS
25056 echo >>$CONFIG_STATUS
25058 # Break up conftest.undefs because some shells have a limit on the size
25059 # of here documents, and old seds have small limits too (100 cmds).
25060 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25061 rm -f conftest.tail
25062 while grep . conftest.undefs >/dev/null
25064 # Write a limited-size here document to $tmp/undefs.sed.
25065 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25066 # Speed up: don't consider the non `#undef'
25067 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25068 # Work around the forget-to-reset-the-flag bug.
25069 echo 't clr' >>$CONFIG_STATUS
25070 echo ': clr' >>$CONFIG_STATUS
25071 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25073 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25075 mv $tmp/out $tmp/in
25077 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25078 rm -f conftest.undefs
25079 mv conftest.tail conftest.undefs
25081 rm -f conftest.undefs
25083 cat >>$CONFIG_STATUS <<\_ACEOF
25084 # Let's still pretend it is `configure' which instantiates (i.e., don't
25085 # use $as_me), people would be surprised to read:
25086 # /* config.h. Generated by config.status. */
25087 if test x"$ac_file" = x-; then
25088 echo "/* Generated by configure. */" >$tmp/config.h
25090 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25092 cat $tmp/in >>$tmp/config.h
25094 if test x"$ac_file" != x-; then
25095 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25096 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25097 echo "$as_me: $ac_file is unchanged" >&6;}
25099 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25100 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25101 X"$ac_file" : 'X\(//\)[^/]' \| \
25102 X"$ac_file" : 'X\(//\)$' \| \
25103 X"$ac_file" : 'X\(/\)' \| \
25104 . : '\(.\)' 2>/dev/null ||
25106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25107 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25108 /^X\(\/\/\)$/{ s//\1/; q; }
25109 /^X\(\/\).*/{ s//\1/; q; }
25111 { if $as_mkdir_p; then
25116 while test ! -d "$as_dir"; do
25117 as_dirs="$as_dir $as_dirs"
25118 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25120 X"$as_dir" : 'X\(//\)[^/]' \| \
25121 X"$as_dir" : 'X\(//\)$' \| \
25122 X"$as_dir" : 'X\(/\)' \| \
25123 . : '\(.\)' 2>/dev/null ||
25125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25127 /^X\(\/\/\)$/{ s//\1/; q; }
25128 /^X\(\/\).*/{ s//\1/; q; }
25131 test ! -n "$as_dirs" || mkdir $as_dirs
25132 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25133 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25134 { (exit 1); exit 1; }; }; }
25137 mv $tmp/config.h $ac_file
25141 rm -f $tmp/config.h
25145 cat >>$CONFIG_STATUS <<\_ACEOF
25148 # CONFIG_LINKS section.
25151 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25152 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25153 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25155 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25156 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25158 if test ! -r $srcdir/$ac_source; then
25159 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25160 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25161 { (exit 1); exit 1; }; }
25165 # Make relative symlinks.
25166 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25167 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25168 X"$ac_dest" : 'X\(//\)[^/]' \| \
25169 X"$ac_dest" : 'X\(//\)$' \| \
25170 X"$ac_dest" : 'X\(/\)' \| \
25171 . : '\(.\)' 2>/dev/null ||
25173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25174 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25175 /^X\(\/\/\)$/{ s//\1/; q; }
25176 /^X\(\/\).*/{ s//\1/; q; }
25178 { if $as_mkdir_p; then
25179 mkdir -p "$ac_dest_dir"
25181 as_dir="$ac_dest_dir"
25183 while test ! -d "$as_dir"; do
25184 as_dirs="$as_dir $as_dirs"
25185 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25186 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25187 X"$as_dir" : 'X\(//\)[^/]' \| \
25188 X"$as_dir" : 'X\(//\)$' \| \
25189 X"$as_dir" : 'X\(/\)' \| \
25190 . : '\(.\)' 2>/dev/null ||
25192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25193 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25194 /^X\(\/\/\)$/{ s//\1/; q; }
25195 /^X\(\/\).*/{ s//\1/; q; }
25198 test ! -n "$as_dirs" || mkdir $as_dirs
25199 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25200 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25201 { (exit 1); exit 1; }; }; }
25205 if test "$ac_dest_dir" != .; then
25206 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25207 # A "../" for each directory in $ac_dir_suffix.
25208 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25210 ac_dir_suffix= ac_top_builddir=
25214 .) # No --srcdir option. We are building in place.
25216 if test -z "$ac_top_builddir"; then
25219 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25221 [\\/]* | ?:[\\/]* ) # Absolute path.
25222 ac_srcdir=$srcdir$ac_dir_suffix;
25223 ac_top_srcdir=$srcdir ;;
25224 *) # Relative path.
25225 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25226 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25229 # Do not use `cd foo && pwd` to compute absolute paths, because
25230 # the directories may not exist.
25232 .) ac_abs_builddir="$ac_dest_dir";;
25234 case "$ac_dest_dir" in
25235 .) ac_abs_builddir=`pwd`;;
25236 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25237 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25240 case $ac_abs_builddir in
25241 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25243 case ${ac_top_builddir}. in
25244 .) ac_abs_top_builddir=$ac_abs_builddir;;
25245 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25246 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25249 case $ac_abs_builddir in
25250 .) ac_abs_srcdir=$ac_srcdir;;
25253 .) ac_abs_srcdir=$ac_abs_builddir;;
25254 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25255 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25258 case $ac_abs_builddir in
25259 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25261 case $ac_top_srcdir in
25262 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25263 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25264 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25270 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25271 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25274 # Try a symlink, then a hard link, then a copy.
25275 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25276 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25277 cp -p $srcdir/$ac_source $ac_dest ||
25278 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25279 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25280 { (exit 1); exit 1; }; }
25283 cat >>$CONFIG_STATUS <<\_ACEOF
25286 # CONFIG_COMMANDS section.
25288 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25289 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25290 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25291 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25292 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25293 X"$ac_dest" : 'X\(//\)[^/]' \| \
25294 X"$ac_dest" : 'X\(//\)$' \| \
25295 X"$ac_dest" : 'X\(/\)' \| \
25296 . : '\(.\)' 2>/dev/null ||
25298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25299 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25300 /^X\(\/\/\)$/{ s//\1/; q; }
25301 /^X\(\/\).*/{ s//\1/; q; }
25303 { if $as_mkdir_p; then
25308 while test ! -d "$as_dir"; do
25309 as_dirs="$as_dir $as_dirs"
25310 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25312 X"$as_dir" : 'X\(//\)[^/]' \| \
25313 X"$as_dir" : 'X\(//\)$' \| \
25314 X"$as_dir" : 'X\(/\)' \| \
25315 . : '\(.\)' 2>/dev/null ||
25317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25318 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25319 /^X\(\/\/\)$/{ s//\1/; q; }
25320 /^X\(\/\).*/{ s//\1/; q; }
25323 test ! -n "$as_dirs" || mkdir $as_dirs
25324 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25325 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25326 { (exit 1); exit 1; }; }; }
25330 if test "$ac_dir" != .; then
25331 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25332 # A "../" for each directory in $ac_dir_suffix.
25333 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25335 ac_dir_suffix= ac_top_builddir=
25339 .) # No --srcdir option. We are building in place.
25341 if test -z "$ac_top_builddir"; then
25344 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25346 [\\/]* | ?:[\\/]* ) # Absolute path.
25347 ac_srcdir=$srcdir$ac_dir_suffix;
25348 ac_top_srcdir=$srcdir ;;
25349 *) # Relative path.
25350 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25351 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25354 # Do not use `cd foo && pwd` to compute absolute paths, because
25355 # the directories may not exist.
25357 .) ac_abs_builddir="$ac_dir";;
25360 .) ac_abs_builddir=`pwd`;;
25361 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25362 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25365 case $ac_abs_builddir in
25366 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25368 case ${ac_top_builddir}. in
25369 .) ac_abs_top_builddir=$ac_abs_builddir;;
25370 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25371 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25374 case $ac_abs_builddir in
25375 .) ac_abs_srcdir=$ac_srcdir;;
25378 .) ac_abs_srcdir=$ac_abs_builddir;;
25379 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25380 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25383 case $ac_abs_builddir in
25384 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25386 case $ac_top_srcdir in
25387 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25388 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25389 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25394 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25395 echo "$as_me: executing $ac_dest commands" >&6;}
25397 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25398 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25399 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25400 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25401 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25402 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25403 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25404 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25405 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25406 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25407 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25408 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25413 cat >>$CONFIG_STATUS <<\_ACEOF
25415 { (exit 0); exit 0; }
25417 chmod +x $CONFIG_STATUS
25418 ac_clean_files=$ac_clean_files_save
25421 # configure is writing to config.log, and then calls config.status.
25422 # config.status does its own redirection, appending to config.log.
25423 # Unfortunately, on DOS this fails, as config.log is still kept open
25424 # by configure, so config.status won't be able to write to it; its
25425 # output is simply discarded. So we exec the FD to /dev/null,
25426 # effectively closing config.log, so it can be properly (re)opened and
25427 # appended to by config.status. When coming back to configure, we
25428 # need to make the FD available again.
25429 if test "$no_create" != yes; then
25431 ac_config_status_args=
25432 test "$silent" = yes &&
25433 ac_config_status_args="$ac_config_status_args --quiet"
25435 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25438 # would make configure fail if this is the last instruction.
25439 $ac_cs_success || { (exit 1); exit 1; }
25443 # CONFIG_SUBDIRS section.
25445 if test "$no_recursion" != yes; then
25447 # Remove --cache-file and --srcdir arguments so they do not pile up.
25448 ac_sub_configure_args=
25450 for ac_arg in $ac_configure_args; do
25451 if test -n "$ac_prev"; then
25456 -cache-file | --cache-file | --cache-fil | --cache-fi \
25457 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25458 ac_prev=cache_file ;;
25459 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25460 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25463 --config-cache | -C)
25465 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25467 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25469 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25471 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25473 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25477 # Always prepend --prefix to ensure using the same prefix
25478 # in subdir configurations.
25479 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25482 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25484 # Do not complain, so a configure script can configure whichever
25485 # parts of a large source tree are present.
25486 test -d $srcdir/$ac_dir || continue
25488 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25489 echo "$as_me: configuring in $ac_dir" >&6;}
25490 { if $as_mkdir_p; then
25495 while test ! -d "$as_dir"; do
25496 as_dirs="$as_dir $as_dirs"
25497 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25498 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25499 X"$as_dir" : 'X\(//\)[^/]' \| \
25500 X"$as_dir" : 'X\(//\)$' \| \
25501 X"$as_dir" : 'X\(/\)' \| \
25502 . : '\(.\)' 2>/dev/null ||
25504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25505 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25506 /^X\(\/\/\)$/{ s//\1/; q; }
25507 /^X\(\/\).*/{ s//\1/; q; }
25510 test ! -n "$as_dirs" || mkdir $as_dirs
25511 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25512 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25513 { (exit 1); exit 1; }; }; }
25517 if test "$ac_dir" != .; then
25518 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25519 # A "../" for each directory in $ac_dir_suffix.
25520 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25522 ac_dir_suffix= ac_top_builddir=
25526 .) # No --srcdir option. We are building in place.
25528 if test -z "$ac_top_builddir"; then
25531 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25533 [\\/]* | ?:[\\/]* ) # Absolute path.
25534 ac_srcdir=$srcdir$ac_dir_suffix;
25535 ac_top_srcdir=$srcdir ;;
25536 *) # Relative path.
25537 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25538 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25541 # Do not use `cd foo && pwd` to compute absolute paths, because
25542 # the directories may not exist.
25544 .) ac_abs_builddir="$ac_dir";;
25547 .) ac_abs_builddir=`pwd`;;
25548 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25549 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25552 case $ac_abs_builddir in
25553 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25555 case ${ac_top_builddir}. in
25556 .) ac_abs_top_builddir=$ac_abs_builddir;;
25557 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25558 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25561 case $ac_abs_builddir in
25562 .) ac_abs_srcdir=$ac_srcdir;;
25565 .) ac_abs_srcdir=$ac_abs_builddir;;
25566 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25567 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25570 case $ac_abs_builddir in
25571 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25573 case $ac_top_srcdir in
25574 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25575 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25576 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25583 # Check for guested configure; otherwise get Cygnus style configure.
25584 if test -f $ac_srcdir/configure.gnu; then
25585 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25586 elif test -f $ac_srcdir/configure; then
25587 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25588 elif test -f $ac_srcdir/configure.in; then
25589 ac_sub_configure=$ac_configure
25591 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25592 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25596 # The recursion is here.
25597 if test -n "$ac_sub_configure"; then
25598 # Make the cache file name correct relative to the subdirectory.
25599 case $cache_file in
25600 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25601 *) # Relative path.
25602 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25605 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25606 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25607 # The eval makes quoting arguments work.
25608 eval $ac_sub_configure $ac_sub_configure_args \
25609 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25610 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25611 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25612 { (exit 1); exit 1; }; }
25620 if test $llvmgccwarn = yes
25622 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25623 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25624 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25625 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25626 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25627 echo "$as_me: WARNING: ***** " >&2;}
25628 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25629 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25630 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25631 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25632 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25633 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}