2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for [LLVM] [1.3].
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/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 -n "`(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
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236 # We need space, tab and new line, in precisely that order.
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
257 if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
260 elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264 # Yippee, $echo works!
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
271 if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
307 # So, first we look for a working echo in the user's PATH.
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
360 # maybe with a smaller string...
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 # Oops. We lost completely, so just stick with echo.
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
415 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete. It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
422 # Identity of this package.
423 PACKAGE_NAME='[LLVM]'
424 PACKAGE_TARNAME='--llvm--'
425 PACKAGE_VERSION='[1.3]'
426 PACKAGE_STRING='[LLVM] [1.3]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429 ac_subdirs_all="$ac_subdirs_all projects/${i}"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_unique_file=""Makefile.config.in""
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC95_ROOT USE_SPEC95 SPEC2000_ROOT USE_SPEC2000 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CXX_set=${CXX+set}
910 ac_env_CXX_value=$CXX
911 ac_cv_env_CXX_set=${CXX+set}
912 ac_cv_env_CXX_value=$CXX
913 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_env_CXXFLAGS_value=$CXXFLAGS
915 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CC_set=${CC+set}
927 ac_cv_env_CC_set=${CC+set}
928 ac_cv_env_CC_value=$CC
929 ac_env_CFLAGS_set=${CFLAGS+set}
930 ac_env_CFLAGS_value=$CFLAGS
931 ac_cv_env_CFLAGS_set=${CFLAGS+set}
932 ac_cv_env_CFLAGS_value=$CFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures [LLVM] [1.3] to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --build=BUILD configure for building on BUILD [guessed]
1012 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1013 --target=TARGET configure for building compilers for TARGET [HOST]
1017 if test -n "$ac_init_help"; then
1018 case $ac_init_help in
1019 short | recursive ) echo "Configuration of [LLVM] [1.3]:";;
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared[=PKGS]
1027 build shared libraries [default=yes]
1028 --enable-static[=PKGS]
1029 build static libraries [default=yes]
1030 --enable-fast-install[=PKGS]
1031 optimize for fast installation [default=yes]
1032 --disable-libtool-lock avoid locking (might break parallel builds)
1033 --enable-optimized Compile with optimizations enabled (default is NO)
1034 --enable-spec95=ARG Use spec95 as a benchmark (srcs in DIR)
1035 --enable-spec2000=ARG Use spec2000 as a benchmark (srcs in DIR)
1036 --enable-povray=ARG Use povray as a benchmark (srcs in DIR)
1037 --enable-precompiled_bytecode
1038 Use pre-compiled bytecode (default is NO)
1039 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
1040 --enable-jit Enable Just In Time Compiling (default is YES)
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1049 include additional configurations [automatic]
1050 --with-llvmgccdir Location of LLVM GCC front-end
1051 --with-bcrepos Location of Bytecode Repository
1052 --with-papi Location of PAPI
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 ;;
1105 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1123 $ac_configure --help
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1131 test -n "$ac_init_help" && exit 0
1132 if $ac_init_version; then
1134 [LLVM] configure [1.3]
1135 generated by GNU Autoconf 2.57
1137 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1149 It was created by [LLVM] $as_me [1.3], which was
1150 generated by GNU Autoconf 2.57. Invocation command line was
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1209 ac_must_keep_next=false
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238 -* ) ac_must_keep_next=true ;;
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log. We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1267 # The following way of writing the cache mishandles newlines in values,
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1290 for ac_var in $ac_subst_vars
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1297 if test -n "$ac_subst_files"; then
1304 for ac_var in $ac_subst_files
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1312 if test -s confdefs.h; then
1319 sed "/^$/d" confdefs.h | sort
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1326 rm -f core core.* *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330 for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340 # Predefined preprocessor variables.
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376 for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1385 if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1402 # Check that the precious variables saved in the cache have kept the same
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426 echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428 echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1445 if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487 for ac_dir in autoconf $srcdir/autoconf; do
1488 if test -f $ac_dir/install-sh; then
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 elif test -f $ac_dir/install.sh; then
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 elif test -f $ac_dir/shtool; then
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1502 if test -z "$ac_aux_dir"; then
1503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1505 { (exit 1); exit 1; }; }
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512 if test ${srcdir} != "."
1514 if test -f ${srcdir}/include/Config/config.h
1516 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1517 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518 { (exit 1); exit 1; }; }
1522 for i in `ls ${srcdir}/projects`
1524 if test ${i} != "CVS"
1526 if test -f ${srcdir}/projects/${i}/configure
1530 subdirs="$subdirs projects/${i}"
1536 ac_config_headers="$ac_config_headers include/Config/config.h"
1538 ac_config_commands="$ac_config_commands Makefile"
1541 ac_config_commands="$ac_config_commands Makefile.common"
1544 ac_config_commands="$ac_config_commands lib/Makefile"
1547 ac_config_commands="$ac_config_commands runtime/Makefile"
1550 ac_config_commands="$ac_config_commands test/Makefile"
1553 ac_config_commands="$ac_config_commands test/Makefile.tests"
1556 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1559 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1562 ac_config_commands="$ac_config_commands test/Programs/Makefile"
1565 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1568 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1571 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1574 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1577 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1580 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1583 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1586 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1589 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1592 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1595 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1598 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1601 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1604 ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1607 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1610 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1613 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1616 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1619 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1622 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1625 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1628 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1631 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1634 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1637 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1640 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1643 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1646 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1649 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1652 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1655 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1658 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1661 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1664 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1667 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1670 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1673 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1676 ac_config_commands="$ac_config_commands tools/Makefile"
1679 ac_config_commands="$ac_config_commands utils/Makefile"
1682 ac_config_commands="$ac_config_commands projects/Makefile"
1686 # Find a good install program. We prefer a C program (faster),
1687 # so one script is as good as another. But avoid the broken or
1688 # incompatible versions:
1689 # SysV /etc/install, /usr/sbin/install
1690 # SunOS /usr/etc/install
1691 # IRIX /sbin/install
1693 # AmigaOS /C/install, which installs bootblocks on floppy discs
1694 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1695 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1696 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1697 # ./install, which can be erroneously created by make from ./install.sh.
1698 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1699 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1700 if test -z "$INSTALL"; then
1701 if test "${ac_cv_path_install+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 test -z "$as_dir" && as_dir=.
1709 # Account for people who put trailing slashes in PATH elements.
1711 ./ | .// | /cC/* | \
1712 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1715 # OSF1 and SCO ODT 3.0 have their own names for install.
1716 # Don't use installbsd from OSF since it installs stuff as root
1718 for ac_prog in ginstall scoinst install; do
1719 for ac_exec_ext in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1721 if test $ac_prog = install &&
1722 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1723 # AIX install. It has an incompatible calling convention.
1725 elif test $ac_prog = install &&
1726 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1727 # program-specific install script used by HP pwplus--don't use.
1730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1742 if test "${ac_cv_path_install+set}" = set; then
1743 INSTALL=$ac_cv_path_install
1745 # As a last resort, use the slow shell script. We don't cache a
1746 # path for INSTALL within a source directory, because that will
1747 # break other packages using the cache if that directory is
1748 # removed, or if the path is relative.
1749 INSTALL=$ac_install_sh
1752 echo "$as_me:$LINENO: result: $INSTALL" >&5
1753 echo "${ECHO_T}$INSTALL" >&6
1755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1756 # It thinks the first close brace ends the variable substitution.
1757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1764 # Make sure we can run config.sub.
1765 $ac_config_sub sun4 >/dev/null 2>&1 ||
1766 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1767 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1768 { (exit 1); exit 1; }; }
1770 echo "$as_me:$LINENO: checking build system type" >&5
1771 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1772 if test "${ac_cv_build+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1775 ac_cv_build_alias=$build_alias
1776 test -z "$ac_cv_build_alias" &&
1777 ac_cv_build_alias=`$ac_config_guess`
1778 test -z "$ac_cv_build_alias" &&
1779 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1780 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1781 { (exit 1); exit 1; }; }
1782 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1783 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1784 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1785 { (exit 1); exit 1; }; }
1788 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1789 echo "${ECHO_T}$ac_cv_build" >&6
1791 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1792 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1793 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1796 echo "$as_me:$LINENO: checking host system type" >&5
1797 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1798 if test "${ac_cv_host+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 ac_cv_host_alias=$host_alias
1802 test -z "$ac_cv_host_alias" &&
1803 ac_cv_host_alias=$ac_cv_build_alias
1804 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1805 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1806 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1807 { (exit 1); exit 1; }; }
1810 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1811 echo "${ECHO_T}$ac_cv_host" >&6
1813 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1814 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1815 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1818 echo "$as_me:$LINENO: checking target system type" >&5
1819 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1820 if test "${ac_cv_target+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 ac_cv_target_alias=$target_alias
1824 test "x$ac_cv_target_alias" = "x" &&
1825 ac_cv_target_alias=$ac_cv_host_alias
1826 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1827 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1828 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1829 { (exit 1); exit 1; }; }
1832 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1833 echo "${ECHO_T}$ac_cv_target" >&6
1834 target=$ac_cv_target
1835 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1836 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1837 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1840 # The aliases save the names the user supplied, while $host etc.
1841 # will get canonicalized.
1842 test -n "$target_alias" &&
1843 test "$program_prefix$program_suffix$program_transform_name" = \
1845 program_prefix=${target_alias}-
1851 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1853 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1860 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1862 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1884 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1893 sparc*-*) ARCH=Sparc
1896 powerpc*-*) ARCH=PowerPC
1905 ac_cpp='$CXXCPP $CPPFLAGS'
1906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1909 if test -n "$ac_tool_prefix"; then
1910 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1914 echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916 if test "${ac_cv_prog_CXX+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 if test -n "$CXX"; then
1920 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 test -z "$as_dir" && as_dir=.
1927 for ac_exec_ext in '' $ac_executable_extensions; do
1928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 if test -n "$CXX"; then
1940 echo "$as_me:$LINENO: result: $CXX" >&5
1941 echo "${ECHO_T}$CXX" >&6
1943 echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1947 test -n "$CXX" && break
1950 if test -z "$CXX"; then
1952 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1954 # Extract the first word of "$ac_prog", so it can be a program name with args.
1955 set dummy $ac_prog; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$ac_ct_CXX"; then
1962 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_ac_ct_CXX="$ac_prog"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1981 if test -n "$ac_ct_CXX"; then
1982 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1983 echo "${ECHO_T}$ac_ct_CXX" >&6
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1989 test -n "$ac_ct_CXX" && break
1991 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1997 # Provide some information about the compiler.
1998 echo "$as_me:$LINENO:" \
1999 "checking for C++ compiler version" >&5
2000 ac_compiler=`set X $ac_compile; echo $2`
2001 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2002 (eval $ac_compiler --version </dev/null >&5) 2>&5
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }
2006 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2007 (eval $ac_compiler -v </dev/null >&5) 2>&5
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }
2011 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2012 (eval $ac_compiler -V </dev/null >&5) 2>&5
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }
2017 cat >conftest.$ac_ext <<_ACEOF
2018 #line $LINENO "configure"
2021 cat confdefs.h >>conftest.$ac_ext
2022 cat >>conftest.$ac_ext <<_ACEOF
2023 /* end confdefs.h. */
2033 ac_clean_files_save=$ac_clean_files
2034 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2035 # Try to create an executable without -o first, disregard a.out.
2036 # It will help us diagnose broken compilers, and finding out an intuition
2038 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2039 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2040 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2041 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2042 (eval $ac_link_default) 2>&5
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; then
2046 # Find the output, starting from the most likely. This scheme is
2047 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2050 # Be careful to initialize this variable, since it used to be cached.
2051 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2053 # b.out is created by i960 compilers.
2054 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2056 test -f "$ac_file" || continue
2058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2061 # This is the source file.
2064 # We found the default executable, but exeext='' is most
2068 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2069 # FIXME: I believe we export ac_cv_exeext for Libtool,
2070 # but it would be cool to find out if it's true. Does anybody
2071 # maintain Libtool? --akim.
2079 echo "$as_me: failed program was:" >&5
2080 sed 's/^/| /' conftest.$ac_ext >&5
2082 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2083 See \`config.log' for more details." >&5
2084 echo "$as_me: error: C++ compiler cannot create executables
2085 See \`config.log' for more details." >&2;}
2086 { (exit 77); exit 77; }; }
2089 ac_exeext=$ac_cv_exeext
2090 echo "$as_me:$LINENO: result: $ac_file" >&5
2091 echo "${ECHO_T}$ac_file" >&6
2093 # Check the compiler produces executables we can run. If not, either
2094 # the compiler is broken, or we cross compile.
2095 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2096 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2097 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2098 # If not cross compiling, check that we can run a simple program.
2099 if test "$cross_compiling" != yes; then
2100 if { ac_try='./$ac_file'
2101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; }; then
2108 if test "$cross_compiling" = maybe; then
2111 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2112 If you meant to cross compile, use \`--host'.
2113 See \`config.log' for more details." >&5
2114 echo "$as_me: error: cannot run C++ compiled programs.
2115 If you meant to cross compile, use \`--host'.
2116 See \`config.log' for more details." >&2;}
2117 { (exit 1); exit 1; }; }
2121 echo "$as_me:$LINENO: result: yes" >&5
2122 echo "${ECHO_T}yes" >&6
2124 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2125 ac_clean_files=$ac_clean_files_save
2126 # Check the compiler produces executables we can run. If not, either
2127 # the compiler is broken, or we cross compile.
2128 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2129 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2130 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2131 echo "${ECHO_T}$cross_compiling" >&6
2133 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2134 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2136 (eval $ac_link) 2>&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }; then
2140 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2141 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2142 # work properly (i.e., refer to `conftest.exe'), while it won't with
2144 for ac_file in conftest.exe conftest conftest.*; do
2145 test -f "$ac_file" || continue
2147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2148 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2155 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2156 See \`config.log' for more details." >&5
2157 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2158 See \`config.log' for more details." >&2;}
2159 { (exit 1); exit 1; }; }
2162 rm -f conftest$ac_cv_exeext
2163 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2164 echo "${ECHO_T}$ac_cv_exeext" >&6
2166 rm -f conftest.$ac_ext
2167 EXEEXT=$ac_cv_exeext
2169 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2170 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2171 if test "${ac_cv_objext+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 cat >conftest.$ac_ext <<_ACEOF
2175 #line $LINENO "configure"
2178 cat confdefs.h >>conftest.$ac_ext
2179 cat >>conftest.$ac_ext <<_ACEOF
2180 /* end confdefs.h. */
2190 rm -f conftest.o conftest.obj
2191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2192 (eval $ac_compile) 2>&5
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; then
2196 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2199 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2204 echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2207 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2210 See \`config.log' for more details." >&2;}
2211 { (exit 1); exit 1; }; }
2214 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2216 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2217 echo "${ECHO_T}$ac_cv_objext" >&6
2218 OBJEXT=$ac_cv_objext
2220 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2221 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2222 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 cat >conftest.$ac_ext <<_ACEOF
2226 #line $LINENO "configure"
2229 cat confdefs.h >>conftest.$ac_ext
2230 cat >>conftest.$ac_ext <<_ACEOF
2231 /* end confdefs.h. */
2244 rm -f conftest.$ac_objext
2245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2246 (eval $ac_compile) 2>&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); } &&
2250 { ac_try='test -s conftest.$ac_objext'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; }; then
2258 echo "$as_me: failed program was:" >&5
2259 sed 's/^/| /' conftest.$ac_ext >&5
2263 rm -f conftest.$ac_objext conftest.$ac_ext
2264 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2267 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2268 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2269 GXX=`test $ac_compiler_gnu = yes && echo yes`
2270 ac_test_CXXFLAGS=${CXXFLAGS+set}
2271 ac_save_CXXFLAGS=$CXXFLAGS
2273 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2274 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2275 if test "${ac_cv_prog_cxx_g+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 cat >conftest.$ac_ext <<_ACEOF
2279 #line $LINENO "configure"
2282 cat confdefs.h >>conftest.$ac_ext
2283 cat >>conftest.$ac_ext <<_ACEOF
2284 /* end confdefs.h. */
2294 rm -f conftest.$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296 (eval $ac_compile) 2>&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); } &&
2300 { ac_try='test -s conftest.$ac_objext'
2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; }; then
2306 ac_cv_prog_cxx_g=yes
2308 echo "$as_me: failed program was:" >&5
2309 sed 's/^/| /' conftest.$ac_ext >&5
2313 rm -f conftest.$ac_objext conftest.$ac_ext
2315 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2316 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2317 if test "$ac_test_CXXFLAGS" = set; then
2318 CXXFLAGS=$ac_save_CXXFLAGS
2319 elif test $ac_cv_prog_cxx_g = yes; then
2320 if test "$GXX" = yes; then
2326 if test "$GXX" = yes; then
2332 for ac_declaration in \
2334 '#include <stdlib.h>' \
2335 'extern "C" void std::exit (int) throw (); using std::exit;' \
2336 'extern "C" void std::exit (int); using std::exit;' \
2337 'extern "C" void exit (int) throw ();' \
2338 'extern "C" void exit (int);' \
2341 cat >conftest.$ac_ext <<_ACEOF
2342 #line $LINENO "configure"
2345 cat confdefs.h >>conftest.$ac_ext
2346 cat >>conftest.$ac_ext <<_ACEOF
2347 /* end confdefs.h. */
2358 rm -f conftest.$ac_objext
2359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360 (eval $ac_compile) 2>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try='test -s conftest.$ac_objext'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2372 echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2377 rm -f conftest.$ac_objext conftest.$ac_ext
2378 cat >conftest.$ac_ext <<_ACEOF
2379 #line $LINENO "configure"
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h. */
2394 rm -f conftest.$ac_objext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396 (eval $ac_compile) 2>&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -s conftest.$ac_objext'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2408 echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2412 rm -f conftest.$ac_objext conftest.$ac_ext
2415 if test -n "$ac_declaration"; then
2416 echo '#ifdef __cplusplus' >>confdefs.h
2417 echo $ac_declaration >>confdefs.h
2418 echo '#endif' >>confdefs.h
2422 ac_cpp='$CPP $CPPFLAGS'
2423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2428 ac_cpp='$CPP $CPPFLAGS'
2429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2432 if test -n "$ac_tool_prefix"; then
2435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2437 echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 if test -n "$CC"; then
2443 ac_cv_prog_CC="$CC" # Let the user override the test.
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2452 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 if test -n "$CC"; then
2463 echo "$as_me:$LINENO: result: $CC" >&5
2464 echo "${ECHO_T}$CC" >&6
2466 echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6
2470 test -n "$CC" && break
2473 if test -z "$CC"; then
2477 # Extract the first word of "$ac_prog", so it can be a program name with args.
2478 set dummy $ac_prog; ac_word=$2
2479 echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 if test -n "$ac_ct_CC"; then
2485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2494 ac_cv_prog_ac_ct_CC="$ac_prog"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6
2508 echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6
2512 test -n "$ac_ct_CC" && break
2519 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2520 See \`config.log' for more details." >&5
2521 echo "$as_me: error: no acceptable C compiler found in \$PATH
2522 See \`config.log' for more details." >&2;}
2523 { (exit 1); exit 1; }; }
2525 # Provide some information about the compiler.
2526 echo "$as_me:$LINENO:" \
2527 "checking for C compiler version" >&5
2528 ac_compiler=`set X $ac_compile; echo $2`
2529 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2530 (eval $ac_compiler --version </dev/null >&5) 2>&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }
2534 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2535 (eval $ac_compiler -v </dev/null >&5) 2>&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }
2539 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2540 (eval $ac_compiler -V </dev/null >&5) 2>&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }
2545 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2546 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2547 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2550 cat >conftest.$ac_ext <<_ACEOF
2551 #line $LINENO "configure"
2554 cat confdefs.h >>conftest.$ac_ext
2555 cat >>conftest.$ac_ext <<_ACEOF
2556 /* end confdefs.h. */
2569 rm -f conftest.$ac_objext
2570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2571 (eval $ac_compile) 2>&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } &&
2575 { ac_try='test -s conftest.$ac_objext'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2588 rm -f conftest.$ac_objext conftest.$ac_ext
2589 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2592 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2593 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2594 GCC=`test $ac_compiler_gnu = yes && echo yes`
2595 ac_test_CFLAGS=${CFLAGS+set}
2596 ac_save_CFLAGS=$CFLAGS
2598 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2599 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2600 if test "${ac_cv_prog_cc_g+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 cat >conftest.$ac_ext <<_ACEOF
2604 #line $LINENO "configure"
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h. */
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2633 echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2638 rm -f conftest.$ac_objext conftest.$ac_ext
2640 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2641 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2642 if test "$ac_test_CFLAGS" = set; then
2643 CFLAGS=$ac_save_CFLAGS
2644 elif test $ac_cv_prog_cc_g = yes; then
2645 if test "$GCC" = yes; then
2651 if test "$GCC" = yes; then
2657 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2658 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2659 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 ac_cv_prog_cc_stdc=no
2664 cat >conftest.$ac_ext <<_ACEOF
2665 #line $LINENO "configure"
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>conftest.$ac_ext <<_ACEOF
2670 /* end confdefs.h. */
2673 #include <sys/types.h>
2674 #include <sys/stat.h>
2675 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2676 struct buf { int x; };
2677 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2678 static char *e (p, i)
2684 static char *f (char * (*g) (char **, int), char **p, ...)
2689 s = g (p, va_arg (v,int));
2693 int test (int i, double x);
2694 struct s1 {int (*f) (int a);};
2695 struct s2 {int (*f) (double a);};
2696 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2702 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2707 # Don't try gcc -ansi; that turns off useful extensions and
2708 # breaks some systems' header files.
2709 # AIX -qlanglvl=ansi
2710 # Ultrix and OSF/1 -std1
2711 # HP-UX 10.20 and later -Ae
2712 # HP-UX older versions -Aa -D_HPUX_SOURCE
2713 # SVR4 -Xc -D__EXTENSIONS__
2714 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2716 CC="$ac_save_CC $ac_arg"
2717 rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } &&
2723 { ac_try='test -s conftest.$ac_objext'
2724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; }; then
2729 ac_cv_prog_cc_stdc=$ac_arg
2732 echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2736 rm -f conftest.$ac_objext
2738 rm -f conftest.$ac_ext conftest.$ac_objext
2743 case "x$ac_cv_prog_cc_stdc" in
2745 echo "$as_me:$LINENO: result: none needed" >&5
2746 echo "${ECHO_T}none needed" >&6 ;;
2748 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2749 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2750 CC="$CC $ac_cv_prog_cc_stdc" ;;
2753 # Some people use a C++ compiler to compile C. Since we use `exit',
2754 # in C++ we need to declare it. In case someone uses the same compiler
2755 # for both compiling C and C++ we need to have the C++ compiler decide
2756 # the declaration of exit, since it's the most demanding environment.
2757 cat >conftest.$ac_ext <<_ACEOF
2762 rm -f conftest.$ac_objext
2763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764 (eval $ac_compile) 2>&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } &&
2768 { ac_try='test -s conftest.$ac_objext'
2769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }; }; then
2774 for ac_declaration in \
2776 '#include <stdlib.h>' \
2777 'extern "C" void std::exit (int) throw (); using std::exit;' \
2778 'extern "C" void std::exit (int); using std::exit;' \
2779 'extern "C" void exit (int) throw ();' \
2780 'extern "C" void exit (int);' \
2783 cat >conftest.$ac_ext <<_ACEOF
2784 #line $LINENO "configure"
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h. */
2800 rm -f conftest.$ac_objext
2801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2802 (eval $ac_compile) 2>&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } &&
2806 { ac_try='test -s conftest.$ac_objext'
2807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; }; then
2814 echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2819 rm -f conftest.$ac_objext conftest.$ac_ext
2820 cat >conftest.$ac_ext <<_ACEOF
2821 #line $LINENO "configure"
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h. */
2836 rm -f conftest.$ac_objext
2837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838 (eval $ac_compile) 2>&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 { ac_try='test -s conftest.$ac_objext'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2854 rm -f conftest.$ac_objext conftest.$ac_ext
2857 if test -n "$ac_declaration"; then
2858 echo '#ifdef __cplusplus' >>confdefs.h
2859 echo $ac_declaration >>confdefs.h
2860 echo '#endif' >>confdefs.h
2864 echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2868 rm -f conftest.$ac_objext conftest.$ac_ext
2870 ac_cpp='$CPP $CPPFLAGS'
2871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2876 ac_cpp='$CPP $CPPFLAGS'
2877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2881 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2882 # On Suns, sometimes $CPP names a directory.
2883 if test -n "$CPP" && test -d "$CPP"; then
2886 if test -z "$CPP"; then
2887 if test "${ac_cv_prog_CPP+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 # Double quotes because CPP needs to be expanded
2891 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2894 for ac_c_preproc_warn_flag in '' yes
2896 # Use a header file that comes with gcc, so configuring glibc
2897 # with a fresh cross-compiler works.
2898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2899 # <limits.h> exists even on freestanding compilers.
2900 # On the NeXT, cc -E runs the code through the compiler's parser,
2901 # not just through cpp. "Syntax error" is here to catch this case.
2902 cat >conftest.$ac_ext <<_ACEOF
2903 #line $LINENO "configure"
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2910 # include <limits.h>
2912 # include <assert.h>
2916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2919 grep -v '^ *+' conftest.er1 >conftest.err
2921 cat conftest.err >&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } >/dev/null; then
2924 if test -s conftest.err; then
2925 ac_cpp_err=$ac_c_preproc_warn_flag
2932 if test -z "$ac_cpp_err"; then
2935 echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.$ac_ext >&5
2938 # Broken: fails on valid input.
2941 rm -f conftest.err conftest.$ac_ext
2943 # OK, works on sane cases. Now check whether non-existent headers
2944 # can be detected and how.
2945 cat >conftest.$ac_ext <<_ACEOF
2946 #line $LINENO "configure"
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2952 #include <ac_nonexistent.h>
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2957 grep -v '^ *+' conftest.er1 >conftest.err
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } >/dev/null; then
2962 if test -s conftest.err; then
2963 ac_cpp_err=$ac_c_preproc_warn_flag
2970 if test -z "$ac_cpp_err"; then
2971 # Broken: success on invalid input.
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2977 # Passes both tests.
2981 rm -f conftest.err conftest.$ac_ext
2984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2985 rm -f conftest.err conftest.$ac_ext
2986 if $ac_preproc_ok; then
2998 echo "$as_me:$LINENO: result: $CPP" >&5
2999 echo "${ECHO_T}$CPP" >&6
3001 for ac_c_preproc_warn_flag in '' yes
3003 # Use a header file that comes with gcc, so configuring glibc
3004 # with a fresh cross-compiler works.
3005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3006 # <limits.h> exists even on freestanding compilers.
3007 # On the NeXT, cc -E runs the code through the compiler's parser,
3008 # not just through cpp. "Syntax error" is here to catch this case.
3009 cat >conftest.$ac_ext <<_ACEOF
3010 #line $LINENO "configure"
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3017 # include <limits.h>
3019 # include <assert.h>
3023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3026 grep -v '^ *+' conftest.er1 >conftest.err
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } >/dev/null; then
3031 if test -s conftest.err; then
3032 ac_cpp_err=$ac_c_preproc_warn_flag
3039 if test -z "$ac_cpp_err"; then
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3045 # Broken: fails on valid input.
3048 rm -f conftest.err conftest.$ac_ext
3050 # OK, works on sane cases. Now check whether non-existent headers
3051 # can be detected and how.
3052 cat >conftest.$ac_ext <<_ACEOF
3053 #line $LINENO "configure"
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059 #include <ac_nonexistent.h>
3061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3064 grep -v '^ *+' conftest.er1 >conftest.err
3066 cat conftest.err >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } >/dev/null; then
3069 if test -s conftest.err; then
3070 ac_cpp_err=$ac_c_preproc_warn_flag
3077 if test -z "$ac_cpp_err"; then
3078 # Broken: success on invalid input.
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3084 # Passes both tests.
3088 rm -f conftest.err conftest.$ac_ext
3091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3092 rm -f conftest.err conftest.$ac_ext
3093 if $ac_preproc_ok; then
3096 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3097 See \`config.log' for more details." >&5
3098 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3099 See \`config.log' for more details." >&2;}
3100 { (exit 1); exit 1; }; }
3104 ac_cpp='$CPP $CPPFLAGS'
3105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3110 if test "$GCC" != "yes"
3112 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3113 echo "$as_me: error: gcc required but not found" >&2;}
3114 { (exit 1); exit 1; }; }
3116 if test "$GXX" != "yes"
3118 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3119 echo "$as_me: error: g++ required but not found" >&2;}
3120 { (exit 1); exit 1; }; }
3123 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3124 if test "$gccmajor" -lt "3"
3126 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3127 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3128 { (exit 1); exit 1; }; }
3131 echo "$as_me:$LINENO: checking for GNU make" >&5
3132 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3133 if test "${_cv_gnu_make_command+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 _cv_gnu_make_command='' ;
3137 for a in "$MAKE" make gmake gnumake ; do
3138 if test -z "$a" ; then continue ; fi ;
3139 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3140 _cv_gnu_make_command=$a ;
3146 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3147 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3148 if test "x$_cv_gnu_make_command" != "x" ; then
3152 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3153 echo "${ECHO_T}\"Not found\"" >&6;
3157 if test -z "$_cv_gnu_make_command"
3159 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3160 echo "$as_me: error: GNU Make required but not found" >&2;}
3161 { (exit 1); exit 1; }; }
3165 echo "$as_me:$LINENO: checking " >&5
3166 echo $ECHO_N "checking ... $ECHO_C" >&6
3167 if test "${ac_cv_has_flex+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 for ac_prog in flex lex
3172 # Extract the first word of "$ac_prog", so it can be a program name with args.
3173 set dummy $ac_prog; ac_word=$2
3174 echo "$as_me:$LINENO: checking for $ac_word" >&5
3175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3176 if test "${ac_cv_prog_LEX+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3179 if test -n "$LEX"; then
3180 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 ac_cv_prog_LEX="$ac_prog"
3190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 if test -n "$LEX"; then
3200 echo "$as_me:$LINENO: result: $LEX" >&5
3201 echo "${ECHO_T}$LEX" >&6
3203 echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3207 test -n "$LEX" && break
3209 test -n "$LEX" || LEX=":"
3211 if test -z "$LEXLIB"
3213 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3214 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3215 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 ac_check_lib_save_LIBS=$LIBS
3220 cat >conftest.$ac_ext <<_ACEOF
3221 #line $LINENO "configure"
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3228 /* Override any gcc2 internal prototype to avoid an error. */
3232 /* We use char because int might match the return type of a gcc2
3233 builtin and then its argument prototype would still apply. */
3243 rm -f conftest.$ac_objext conftest$ac_exeext
3244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3245 (eval $ac_link) 2>&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } &&
3249 { ac_try='test -s conftest$ac_exeext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 ac_cv_lib_fl_yywrap=yes
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 ac_cv_lib_fl_yywrap=no
3262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3263 LIBS=$ac_check_lib_save_LIBS
3265 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3266 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3267 if test $ac_cv_lib_fl_yywrap = yes; then
3270 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3271 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3272 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 ac_check_lib_save_LIBS=$LIBS
3277 cat >conftest.$ac_ext <<_ACEOF
3278 #line $LINENO "configure"
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3285 /* Override any gcc2 internal prototype to avoid an error. */
3289 /* We use char because int might match the return type of a gcc2
3290 builtin and then its argument prototype would still apply. */
3300 rm -f conftest.$ac_objext conftest$ac_exeext
3301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3302 (eval $ac_link) 2>&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); } &&
3306 { ac_try='test -s conftest$ac_exeext'
3307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; }; then
3312 ac_cv_lib_l_yywrap=yes
3314 echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3317 ac_cv_lib_l_yywrap=no
3319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3320 LIBS=$ac_check_lib_save_LIBS
3322 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3323 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3324 if test $ac_cv_lib_l_yywrap = yes; then
3332 if test "x$LEX" != "x:"; then
3333 echo "$as_me:$LINENO: checking lex output file root" >&5
3334 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3335 if test "${ac_cv_prog_lex_root+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 # The minimal lex program is just a single line: %%. But some broken lexes
3339 # (Solaris, I think it was) want two %% lines, so accommodate them.
3340 cat >conftest.l <<_ACEOF
3344 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3345 (eval $LEX conftest.l) 2>&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }
3349 if test -f lex.yy.c; then
3350 ac_cv_prog_lex_root=lex.yy
3351 elif test -f lexyy.c; then
3352 ac_cv_prog_lex_root=lexyy
3354 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3355 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3356 { (exit 1); exit 1; }; }
3359 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3360 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3362 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3364 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3365 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3366 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 # POSIX says lex can declare yytext either as a pointer or an array; the
3370 # default is implementation-dependent. Figure out which it is, since
3371 # not all implementations provide the %pointer and %array declarations.
3372 ac_cv_prog_lex_yytext_pointer=no
3373 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3375 LIBS="$LIBS $LEXLIB"
3376 cat >conftest.$ac_ext <<_ACEOF
3377 `cat $LEX_OUTPUT_ROOT.c`
3379 rm -f conftest.$ac_objext conftest$ac_exeext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3381 (eval $ac_link) 2>&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } &&
3385 { ac_try='test -s conftest$ac_exeext'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 ac_cv_prog_lex_yytext_pointer=yes
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3399 rm -f "${LEX_OUTPUT_ROOT}.c"
3402 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3403 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3404 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3406 cat >>confdefs.h <<\_ACEOF
3407 #define YYTEXT_POINTER 1
3415 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3416 echo "${ECHO_T}$ac_cv_has_flex" >&6
3417 if test "$LEX" != "flex"; then
3418 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3419 echo "$as_me: error: flex not found but required" >&2;}
3420 { (exit 1); exit 1; }; }
3423 echo "$as_me:$LINENO: checking " >&5
3424 echo $ECHO_N "checking ... $ECHO_C" >&6
3425 if test "${ac_cv_has_bison+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 for ac_prog in 'bison -y' byacc
3430 # Extract the first word of "$ac_prog", so it can be a program name with args.
3431 set dummy $ac_prog; ac_word=$2
3432 echo "$as_me:$LINENO: checking for $ac_word" >&5
3433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3434 if test "${ac_cv_prog_YACC+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 if test -n "$YACC"; then
3438 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447 ac_cv_prog_YACC="$ac_prog"
3448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 YACC=$ac_cv_prog_YACC
3457 if test -n "$YACC"; then
3458 echo "$as_me:$LINENO: result: $YACC" >&5
3459 echo "${ECHO_T}$YACC" >&6
3461 echo "$as_me:$LINENO: result: no" >&5
3462 echo "${ECHO_T}no" >&6
3465 test -n "$YACC" && break
3467 test -n "$YACC" || YACC="yacc"
3471 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3472 echo "${ECHO_T}$ac_cv_has_bison" >&6
3473 if test "$YACC" != "bison -y"; then
3474 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3475 echo "$as_me: error: bison not found but required" >&2;}
3476 { (exit 1); exit 1; }; }
3482 # Check whether --enable-shared or --disable-shared was given.
3483 if test "${enable_shared+set}" = set; then
3484 enableval="$enable_shared"
3485 p=${PACKAGE-default}
3487 yes) enable_shared=yes ;;
3488 no) enable_shared=no ;;
3491 # Look at the argument we got. We use all the common list separators.
3492 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3493 for pkg in $enableval; do
3495 if test "X$pkg" = "X$p"; then
3506 # Check whether --enable-static or --disable-static was given.
3507 if test "${enable_static+set}" = set; then
3508 enableval="$enable_static"
3509 p=${PACKAGE-default}
3511 yes) enable_static=yes ;;
3512 no) enable_static=no ;;
3515 # Look at the argument we got. We use all the common list separators.
3516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3517 for pkg in $enableval; do
3519 if test "X$pkg" = "X$p"; then
3530 # Check whether --enable-fast-install or --disable-fast-install was given.
3531 if test "${enable_fast_install+set}" = set; then
3532 enableval="$enable_fast_install"
3533 p=${PACKAGE-default}
3535 yes) enable_fast_install=yes ;;
3536 no) enable_fast_install=no ;;
3538 enable_fast_install=no
3539 # Look at the argument we got. We use all the common list separators.
3540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3541 for pkg in $enableval; do
3543 if test "X$pkg" = "X$p"; then
3544 enable_fast_install=yes
3551 enable_fast_install=yes
3554 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3555 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3556 if test "${lt_cv_path_SED+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 # Loop through the user's path and test for sed and gsed.
3560 # Then use that list of sed's as ones to test for truncation.
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 test -z "$as_dir" && as_dir=.
3566 for lt_ac_prog in sed gsed; do
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3569 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3576 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3577 # along with /bin/sed that truncates output.
3578 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3579 test ! -f $lt_ac_sed && break
3580 cat /dev/null > conftest.in
3582 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3583 # Check for GNU sed and select it if it is found.
3584 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3585 lt_cv_path_SED=$lt_ac_sed
3589 cat conftest.in conftest.in >conftest.tmp
3590 mv conftest.tmp conftest.in
3591 cp conftest.in conftest.nl
3593 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3594 cmp -s conftest.out conftest.nl || break
3595 # 10000 chars as input seems more than enough
3596 test $lt_ac_count -gt 10 && break
3597 lt_ac_count=`expr $lt_ac_count + 1`
3598 if test $lt_ac_count -gt $lt_ac_max; then
3599 lt_ac_max=$lt_ac_count
3600 lt_cv_path_SED=$lt_ac_sed
3608 echo "$as_me:$LINENO: result: $SED" >&5
3609 echo "${ECHO_T}$SED" >&6
3611 echo "$as_me:$LINENO: checking for egrep" >&5
3612 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3613 if test "${ac_cv_prog_egrep+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3617 then ac_cv_prog_egrep='grep -E'
3618 else ac_cv_prog_egrep='egrep'
3621 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3622 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3623 EGREP=$ac_cv_prog_egrep
3627 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3628 if test "${with_gnu_ld+set}" = set; then
3629 withval="$with_gnu_ld"
3630 test "$withval" = no || with_gnu_ld=yes
3635 if test "$GCC" = yes; then
3636 # Check if gcc -print-prog-name=ld gives a path.
3637 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3638 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3641 # gcc leaves a trailing carriage return which upsets mingw
3642 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3644 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3647 # Accept absolute paths.
3649 re_direlt='/[^/][^/]*/\.\./'
3650 # Canonicalize the path of ld
3651 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3652 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3653 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3655 test -z "$LD" && LD="$ac_prog"
3658 # If it fails, then pretend we aren't using GCC.
3662 # If it is relative, then search for the first ld in PATH.
3666 elif test "$with_gnu_ld" = yes; then
3667 echo "$as_me:$LINENO: checking for GNU ld" >&5
3668 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3670 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3671 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3673 if test "${lt_cv_path_LD+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 if test -z "$LD"; then
3677 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3678 for ac_dir in $PATH; do
3680 test -z "$ac_dir" && ac_dir=.
3681 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3682 lt_cv_path_LD="$ac_dir/$ac_prog"
3683 # Check to see if the program is GNU ld. I'd rather use --version,
3684 # but apparently some GNU ld's only accept -v.
3685 # Break only if it was the GNU/non-GNU ld that we prefer.
3686 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3687 *GNU* | *'with BFD'*)
3688 test "$with_gnu_ld" != no && break
3691 test "$with_gnu_ld" != yes && break
3698 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3703 if test -n "$LD"; then
3704 echo "$as_me:$LINENO: result: $LD" >&5
3705 echo "${ECHO_T}$LD" >&6
3707 echo "$as_me:$LINENO: result: no" >&5
3708 echo "${ECHO_T}no" >&6
3710 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3711 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3712 { (exit 1); exit 1; }; }
3713 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3714 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3715 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3719 case `"$LD" -v 2>&1 </dev/null` in
3720 *GNU* | *'with BFD'*)
3721 lt_cv_prog_gnu_ld=yes
3724 lt_cv_prog_gnu_ld=no
3728 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3729 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3730 with_gnu_ld=$lt_cv_prog_gnu_ld
3733 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3734 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3735 if test "${lt_cv_ld_reload_flag+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 lt_cv_ld_reload_flag='-r'
3740 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3741 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3742 reload_flag=$lt_cv_ld_reload_flag
3743 case $reload_flag in
3745 *) reload_flag=" $reload_flag" ;;
3747 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3749 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3750 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3751 if test "${lt_cv_path_NM+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 if test -n "$NM"; then
3755 # Let the user override the test.
3758 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3759 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3761 test -z "$ac_dir" && ac_dir=.
3762 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3763 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3764 # Check to see if the nm accepts a BSD-compat flag.
3765 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3766 # nm: unknown option "B" ignored
3767 # Tru64's nm complains that /dev/null is an invalid object file
3768 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3769 */dev/null* | *'Invalid file or object type'*)
3770 lt_cv_path_NM="$tmp_nm -B"
3774 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3776 lt_cv_path_NM="$tmp_nm -p"
3780 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3781 continue # so that we can try to find one that supports BSD flags
3788 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3791 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3792 echo "${ECHO_T}$lt_cv_path_NM" >&6
3795 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3796 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3798 if test "$LN_S" = "ln -s"; then
3799 echo "$as_me:$LINENO: result: yes" >&5
3800 echo "${ECHO_T}yes" >&6
3802 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3803 echo "${ECHO_T}no, using $LN_S" >&6
3806 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3807 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3808 if test "${lt_cv_deplibs_check_method+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 lt_cv_file_magic_cmd='$MAGIC_CMD'
3812 lt_cv_file_magic_test_file=
3813 lt_cv_deplibs_check_method='unknown'
3814 # Need to set the preceding variable on all platforms that support
3815 # interlibrary dependencies.
3816 # 'none' -- dependencies not supported.
3817 # `unknown' -- same as none, but documents that we really don't know.
3818 # 'pass_all' -- all dependencies passed with no checks.
3819 # 'test_compile' -- check by making test program.
3820 # 'file_magic [[regex]]' -- check by looking for files in library path
3821 # which responds to the $file_magic_cmd with a given extended regex.
3822 # If you have `file' or equivalent on your system and you're not sure
3823 # whether `pass_all' will *always* work, you probably want this one.
3827 lt_cv_deplibs_check_method=pass_all
3831 lt_cv_deplibs_check_method=pass_all
3835 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3836 lt_cv_file_magic_cmd='/usr/bin/file -L'
3837 lt_cv_file_magic_test_file=/shlib/libc.so
3840 cygwin* | mingw* | pw32*)
3841 # win32_libid is a shell function defined in ltmain.sh
3842 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3843 lt_cv_file_magic_cmd='win32_libid'
3846 darwin* | rhapsody*)
3847 # this will be overwritten by pass_all, but leave it in just in case
3848 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3849 lt_cv_file_magic_cmd='/usr/bin/file -L'
3851 rhapsody* | darwin1.[012])
3852 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3855 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3858 lt_cv_deplibs_check_method=pass_all
3862 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3865 # Not sure whether the presence of OpenBSD here was a mistake.
3866 # Let's accept both of them until this is cleared up.
3867 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3868 lt_cv_file_magic_cmd=/usr/bin/file
3869 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3873 lt_cv_deplibs_check_method=pass_all
3878 lt_cv_deplibs_check_method=pass_all
3881 hpux10.20* | hpux11*)
3882 lt_cv_file_magic_cmd=/usr/bin/file
3885 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3886 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3889 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]'
3890 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3893 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3894 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3899 irix5* | irix6* | nonstopux*)
3901 irix5* | nonstopux*)
3902 # this will be overridden with pass_all, but let us keep it just in case
3903 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3907 *-32|*"-32 ") libmagic=32-bit;;
3908 *-n32|*"-n32 ") libmagic=N32;;
3909 *-64|*"-64 ") libmagic=64-bit;;
3910 *) libmagic=never-match;;
3912 # this will be overridden with pass_all, but let us keep it just in case
3913 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3916 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3917 lt_cv_deplibs_check_method=pass_all
3920 # This must be Linux ELF.
3923 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3924 lt_cv_deplibs_check_method=pass_all ;;
3926 # glibc up to 2.1.1 does not perform some relocations on ARM
3927 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3929 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3933 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3934 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3936 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3942 lt_cv_file_magic_cmd=/usr/bin/file
3943 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3947 lt_cv_deplibs_check_method=unknown
3951 lt_cv_file_magic_cmd=/usr/bin/file
3952 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3953 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3954 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3956 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3960 osf3* | osf4* | osf5*)
3961 # this will be overridden with pass_all, but let us keep it just in case
3962 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3963 lt_cv_file_magic_test_file=/shlib/libc.so
3964 lt_cv_deplibs_check_method=pass_all
3968 lt_cv_deplibs_check_method=pass_all
3972 lt_cv_deplibs_check_method=pass_all
3973 lt_cv_file_magic_test_file=/lib/libc.so
3976 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3977 case $host_vendor in
3979 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]'
3980 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3983 lt_cv_deplibs_check_method=pass_all
3986 lt_cv_file_magic_cmd='/bin/file'
3987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3990 lt_cv_file_magic_cmd='/bin/file'
3991 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3992 lt_cv_file_magic_test_file=/lib/libc.so
3995 lt_cv_deplibs_check_method=pass_all
4000 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4001 lt_cv_deplibs_check_method=pass_all
4006 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4007 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4008 file_magic_cmd=$lt_cv_file_magic_cmd
4009 deplibs_check_method=$lt_cv_deplibs_check_method
4010 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4015 # If no C compiler was specified, use CC.
4018 # Allow CC to be a program name with arguments.
4021 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4022 if test "${enable_libtool_lock+set}" = set; then
4023 enableval="$enable_libtool_lock"
4026 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4028 # Some flags need to be propagated to the compiler or linker for good
4032 # Find out which ABI we are using.
4033 echo 'int i;' > conftest.$ac_ext
4034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; then
4039 case `/usr/bin/file conftest.$ac_objext` in
4051 # Find out which ABI we are using.
4052 echo '#line 4052 "configure"' > conftest.$ac_ext
4053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054 (eval $ac_compile) 2>&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; then
4058 if test "$lt_cv_prog_gnu_ld" = yes; then
4059 case `/usr/bin/file conftest.$ac_objext` in
4061 LD="${LD-ld} -melf32bsmip"
4064 LD="${LD-ld} -melf32bmipn32"
4067 LD="${LD-ld} -melf64bmip"
4071 case `/usr/bin/file conftest.$ac_objext` in
4087 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4088 # Find out which ABI we are using.
4089 echo 'int i;' > conftest.$ac_ext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4091 (eval $ac_compile) 2>&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; then
4095 case "`/usr/bin/file conftest.o`" in
4099 LD="${LD-ld} -m elf_i386"
4102 LD="${LD-ld} -m elf32ppclinux"
4105 LD="${LD-ld} -m elf_s390"
4108 LD="${LD-ld} -m elf32_sparc"
4115 LD="${LD-ld} -m elf_x86_64"
4117 ppc*-*linux*|powerpc*-*linux*)
4118 LD="${LD-ld} -m elf64ppc"
4121 LD="${LD-ld} -m elf64_s390"
4124 LD="${LD-ld} -m elf64_sparc"
4134 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4135 SAVE_CFLAGS="$CFLAGS"
4136 CFLAGS="$CFLAGS -belf"
4137 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4138 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4139 if test "${lt_cv_cc_needs_belf+set}" = set; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148 cat >conftest.$ac_ext <<_ACEOF
4149 #line $LINENO "configure"
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4164 rm -f conftest.$ac_objext conftest$ac_exeext
4165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4166 (eval $ac_link) 2>&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } &&
4170 { ac_try='test -s conftest$ac_exeext'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4176 lt_cv_cc_needs_belf=yes
4178 echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4181 lt_cv_cc_needs_belf=no
4183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4185 ac_cpp='$CPP $CPPFLAGS'
4186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4191 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4192 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4193 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4194 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4195 CFLAGS="$SAVE_CFLAGS"
4201 need_locks="$enable_libtool_lock"
4205 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4206 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4207 if test "${ac_cv_header_stdc+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 cat >conftest.$ac_ext <<_ACEOF
4211 #line $LINENO "configure"
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4230 rm -f conftest.$ac_objext
4231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4232 (eval $ac_compile) 2>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } &&
4236 { ac_try='test -s conftest.$ac_objext'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; }; then
4242 ac_cv_header_stdc=yes
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4247 ac_cv_header_stdc=no
4249 rm -f conftest.$ac_objext conftest.$ac_ext
4251 if test $ac_cv_header_stdc = yes; then
4252 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4253 cat >conftest.$ac_ext <<_ACEOF
4254 #line $LINENO "configure"
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4264 $EGREP "memchr" >/dev/null 2>&1; then
4267 ac_cv_header_stdc=no
4273 if test $ac_cv_header_stdc = yes; then
4274 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4275 cat >conftest.$ac_ext <<_ACEOF
4276 #line $LINENO "configure"
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h. */
4285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4286 $EGREP "free" >/dev/null 2>&1; then
4289 ac_cv_header_stdc=no
4295 if test $ac_cv_header_stdc = yes; then
4296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4297 if test "$cross_compiling" = yes; then
4300 cat >conftest.$ac_ext <<_ACEOF
4301 #line $LINENO "configure"
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4308 #if ((' ' & 0x0FF) == 0x020)
4309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4312 # define ISLOWER(c) \
4313 (('a' <= (c) && (c) <= 'i') \
4314 || ('j' <= (c) && (c) <= 'r') \
4315 || ('s' <= (c) && (c) <= 'z'))
4316 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4324 for (i = 0; i < 256; i++)
4325 if (XOR (islower (i), ISLOWER (i))
4326 || toupper (i) != TOUPPER (i))
4331 rm -f conftest$ac_exeext
4332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4333 (eval $ac_link) 2>&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; }; then
4344 echo "$as_me: program exited with status $ac_status" >&5
4345 echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4349 ac_cv_header_stdc=no
4351 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4355 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4356 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4357 if test $ac_cv_header_stdc = yes; then
4359 cat >>confdefs.h <<\_ACEOF
4360 #define STDC_HEADERS 1
4365 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4375 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4376 inttypes.h stdint.h unistd.h
4378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4379 echo "$as_me:$LINENO: checking for $ac_header" >&5
4380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 cat >conftest.$ac_ext <<_ACEOF
4385 #line $LINENO "configure"
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h. */
4391 $ac_includes_default
4393 #include <$ac_header>
4395 rm -f conftest.$ac_objext
4396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397 (eval $ac_compile) 2>&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } &&
4401 { ac_try='test -s conftest.$ac_objext'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 eval "$as_ac_Header=yes"
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4412 eval "$as_ac_Header=no"
4414 rm -f conftest.$ac_objext conftest.$ac_ext
4416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4419 cat >>confdefs.h <<_ACEOF
4420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4429 for ac_header in dlfcn.h
4431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4433 echo "$as_me:$LINENO: checking for $ac_header" >&5
4434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4441 # Is the header compilable?
4442 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4444 cat >conftest.$ac_ext <<_ACEOF
4445 #line $LINENO "configure"
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 $ac_includes_default
4452 #include <$ac_header>
4454 rm -f conftest.$ac_objext
4455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4456 (eval $ac_compile) 2>&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } &&
4460 { ac_try='test -s conftest.$ac_objext'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
4466 ac_header_compiler=yes
4468 echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4471 ac_header_compiler=no
4473 rm -f conftest.$ac_objext conftest.$ac_ext
4474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4475 echo "${ECHO_T}$ac_header_compiler" >&6
4477 # Is the header present?
4478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4480 cat >conftest.$ac_ext <<_ACEOF
4481 #line $LINENO "configure"
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4487 #include <$ac_header>
4489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4492 grep -v '^ *+' conftest.er1 >conftest.err
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } >/dev/null; then
4497 if test -s conftest.err; then
4498 ac_cpp_err=$ac_c_preproc_warn_flag
4505 if test -z "$ac_cpp_err"; then
4506 ac_header_preproc=yes
4508 echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4511 ac_header_preproc=no
4513 rm -f conftest.err conftest.$ac_ext
4514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4515 echo "${ECHO_T}$ac_header_preproc" >&6
4517 # So? What about this header?
4518 case $ac_header_compiler:$ac_header_preproc in
4520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4526 ## ------------------------------------ ##
4527 ## Report this to bug-autoconf@gnu.org. ##
4528 ## ------------------------------------ ##
4531 sed "s/^/$as_me: WARNING: /" >&2
4534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4542 ## ------------------------------------ ##
4543 ## Report this to bug-autoconf@gnu.org. ##
4544 ## ------------------------------------ ##
4547 sed "s/^/$as_me: WARNING: /" >&2
4550 echo "$as_me:$LINENO: checking for $ac_header" >&5
4551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 eval "$as_ac_Header=$ac_header_preproc"
4557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4562 cat >>confdefs.h <<_ACEOF
4563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4571 ac_cpp='$CXXCPP $CPPFLAGS'
4572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4575 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4576 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4577 if test -z "$CXXCPP"; then
4578 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 # Double quotes because CXXCPP needs to be expanded
4582 for CXXCPP in "$CXX -E" "/lib/cpp"
4585 for ac_cxx_preproc_warn_flag in '' yes
4587 # Use a header file that comes with gcc, so configuring glibc
4588 # with a fresh cross-compiler works.
4589 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4590 # <limits.h> exists even on freestanding compilers.
4591 # On the NeXT, cc -E runs the code through the compiler's parser,
4592 # not just through cpp. "Syntax error" is here to catch this case.
4593 cat >conftest.$ac_ext <<_ACEOF
4594 #line $LINENO "configure"
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4601 # include <limits.h>
4603 # include <assert.h>
4607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4610 grep -v '^ *+' conftest.er1 >conftest.err
4612 cat conftest.err >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } >/dev/null; then
4615 if test -s conftest.err; then
4616 ac_cpp_err=$ac_cxx_preproc_warn_flag
4623 if test -z "$ac_cpp_err"; then
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4629 # Broken: fails on valid input.
4632 rm -f conftest.err conftest.$ac_ext
4634 # OK, works on sane cases. Now check whether non-existent headers
4635 # can be detected and how.
4636 cat >conftest.$ac_ext <<_ACEOF
4637 #line $LINENO "configure"
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 #include <ac_nonexistent.h>
4645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4648 grep -v '^ *+' conftest.er1 >conftest.err
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } >/dev/null; then
4653 if test -s conftest.err; then
4654 ac_cpp_err=$ac_cxx_preproc_warn_flag
4661 if test -z "$ac_cpp_err"; then
4662 # Broken: success on invalid input.
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4668 # Passes both tests.
4672 rm -f conftest.err conftest.$ac_ext
4675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4676 rm -f conftest.err conftest.$ac_ext
4677 if $ac_preproc_ok; then
4682 ac_cv_prog_CXXCPP=$CXXCPP
4685 CXXCPP=$ac_cv_prog_CXXCPP
4687 ac_cv_prog_CXXCPP=$CXXCPP
4689 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4690 echo "${ECHO_T}$CXXCPP" >&6
4692 for ac_cxx_preproc_warn_flag in '' yes
4694 # Use a header file that comes with gcc, so configuring glibc
4695 # with a fresh cross-compiler works.
4696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4697 # <limits.h> exists even on freestanding compilers.
4698 # On the NeXT, cc -E runs the code through the compiler's parser,
4699 # not just through cpp. "Syntax error" is here to catch this case.
4700 cat >conftest.$ac_ext <<_ACEOF
4701 #line $LINENO "configure"
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4708 # include <limits.h>
4710 # include <assert.h>
4714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4717 grep -v '^ *+' conftest.er1 >conftest.err
4719 cat conftest.err >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } >/dev/null; then
4722 if test -s conftest.err; then
4723 ac_cpp_err=$ac_cxx_preproc_warn_flag
4730 if test -z "$ac_cpp_err"; then
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4736 # Broken: fails on valid input.
4739 rm -f conftest.err conftest.$ac_ext
4741 # OK, works on sane cases. Now check whether non-existent headers
4742 # can be detected and how.
4743 cat >conftest.$ac_ext <<_ACEOF
4744 #line $LINENO "configure"
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4750 #include <ac_nonexistent.h>
4752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4755 grep -v '^ *+' conftest.er1 >conftest.err
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } >/dev/null; then
4760 if test -s conftest.err; then
4761 ac_cpp_err=$ac_cxx_preproc_warn_flag
4768 if test -z "$ac_cpp_err"; then
4769 # Broken: success on invalid input.
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4775 # Passes both tests.
4779 rm -f conftest.err conftest.$ac_ext
4782 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4783 rm -f conftest.err conftest.$ac_ext
4784 if $ac_preproc_ok; then
4787 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4788 See \`config.log' for more details." >&5
4789 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4790 See \`config.log' for more details." >&2;}
4791 { (exit 1); exit 1; }; }
4795 ac_cpp='$CXXCPP $CPPFLAGS'
4796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4802 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4803 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4805 if test -n "$ac_tool_prefix"; then
4806 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4810 echo "$as_me:$LINENO: checking for $ac_word" >&5
4811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4812 if test "${ac_cv_prog_F77+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 if test -n "$F77"; then
4816 ac_cv_prog_F77="$F77" # Let the user override the test.
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 if test -n "$F77"; then
4836 echo "$as_me:$LINENO: result: $F77" >&5
4837 echo "${ECHO_T}$F77" >&6
4839 echo "$as_me:$LINENO: result: no" >&5
4840 echo "${ECHO_T}no" >&6
4843 test -n "$F77" && break
4846 if test -z "$F77"; then
4848 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4850 # Extract the first word of "$ac_prog", so it can be a program name with args.
4851 set dummy $ac_prog; ac_word=$2
4852 echo "$as_me:$LINENO: checking for $ac_word" >&5
4853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4854 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 if test -n "$ac_ct_F77"; then
4858 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4867 ac_cv_prog_ac_ct_F77="$ac_prog"
4868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4877 if test -n "$ac_ct_F77"; then
4878 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4879 echo "${ECHO_T}$ac_ct_F77" >&6
4881 echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6
4885 test -n "$ac_ct_F77" && break
4892 # Provide some information about the compiler.
4893 echo "$as_me:4893:" \
4894 "checking for Fortran 77 compiler version" >&5
4895 ac_compiler=`set X $ac_compile; echo $2`
4896 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4897 (eval $ac_compiler --version </dev/null >&5) 2>&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }
4901 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4902 (eval $ac_compiler -v </dev/null >&5) 2>&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }
4906 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4907 (eval $ac_compiler -V </dev/null >&5) 2>&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }
4912 # If we don't use `.F' as extension, the preprocessor is not run on the
4916 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4917 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4918 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4921 cat >conftest.$ac_ext <<_ACEOF
4929 rm -f conftest.$ac_objext
4930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4931 (eval $ac_compile) 2>&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } &&
4935 { ac_try='test -s conftest.$ac_objext'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; }; then
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4948 rm -f conftest.$ac_objext conftest.$ac_ext
4949 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4952 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4953 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4955 G77=`test $ac_compiler_gnu = yes && echo yes`
4956 ac_test_FFLAGS=${FFLAGS+set}
4957 ac_save_FFLAGS=$FFLAGS
4959 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4960 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4961 if test "${ac_cv_prog_f77_g+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 cat >conftest.$ac_ext <<_ACEOF
4970 rm -f conftest.$ac_objext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972 (eval $ac_compile) 2>&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } &&
4976 { ac_try='test -s conftest.$ac_objext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 ac_cv_prog_f77_g=yes
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4989 rm -f conftest.$ac_objext conftest.$ac_ext
4992 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4993 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4994 if test "$ac_test_FFLAGS" = set; then
4995 FFLAGS=$ac_save_FFLAGS
4996 elif test $ac_cv_prog_f77_g = yes; then
4997 if test "$G77" = yes; then
5003 if test "$G77" = yes; then
5010 ac_cpp='$CPP $CPPFLAGS'
5011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5017 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5019 # find the maximum length of command line arguments
5020 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5021 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5022 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 # On DJGPP, this test can blow up pretty badly due to problems in libc
5031 # (any single argument exceeding 2000 bytes causes a buffer overrun
5032 # during glob expansion). Even if it were fixed, the result of this
5033 # check would be larger than it should be.
5034 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5038 # Under GNU Hurd, this test is not required because there is
5039 # no limit to the length of command line arguments.
5040 # Libtool will interpret -1 as no limit whatsoever
5041 lt_cv_sys_max_cmd_len=-1;
5045 # On Win9x/ME, this test blows up -- it succeeds, but takes
5046 # about 5 minutes as the teststring grows exponentially.
5047 # Worse, since 9x/ME are not pre-emptively multitasking,
5048 # you end up with a "frozen" computer, even though with patience
5049 # the test eventually succeeds (with a max line length of 256k).
5050 # Instead, let's just punt: use the minimum linelength reported by
5051 # all of the supported platforms: 8192 (on NT/2K/XP).
5052 lt_cv_sys_max_cmd_len=8192;
5056 # If test is not a shell built-in, we'll probably end up computing a
5057 # maximum length that is only half of the actual maximum length, but
5059 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5060 = "XX$testring") >/dev/null 2>&1 &&
5061 new_result=`expr "X$testring" : ".*" 2>&1` &&
5062 lt_cv_sys_max_cmd_len=$new_result &&
5063 test $i != 17 # 1/2 MB should be enough
5066 testring=$testring$testring
5069 # Add a significant safety factor because C++ compilers can tack on massive
5070 # amounts of additional arguments before passing them to the linker.
5071 # It appears as though 1/2 is a usable value.
5072 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5078 if test -n $lt_cv_sys_max_cmd_len ; then
5079 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5080 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5082 echo "$as_me:$LINENO: result: none" >&5
5083 echo "${ECHO_T}none" >&6
5089 # Check for command to grab the raw symbol name followed by C symbol from nm.
5090 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5091 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5092 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 # These are sane defaults that work on at least a few old systems.
5097 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5099 # Character class describing NM global symbol codes.
5100 symcode='[BCDEGRST]'
5102 # Regexp to match symbols that can be accessed directly from C.
5103 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5105 # Transform the above into a raw symbol and a C symbol.
5106 symxfrm='\1 \2\3 \3'
5108 # Transform an extracted symbol line into a proper C declaration
5109 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5111 # Transform an extracted symbol line into symbol name and symbol address
5112 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'"
5114 # Define system-specific variables.
5119 cygwin* | mingw* | pw32*)
5120 symcode='[ABCDGISTW]'
5122 hpux*) # Its linker distinguishes data from code symbols
5123 if test "$host_cpu" = ia64; then
5124 symcode='[ABCDEGRST]'
5126 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5127 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'"
5130 symcode='[BCDEGRST]'
5133 symcode='[BCDEGQRST]'
5143 # Handle CRLF in mingw tool chain
5147 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5151 # If we're using GNU nm, then use its standard symbol codes.
5152 case `$NM -V 2>&1` in
5153 *GNU* | *'with BFD'*)
5154 symcode='[ABCDGISTW]' ;;
5157 # Try without a prefix undercore, then with it.
5158 for ac_symprfx in "" "_"; do
5160 # Write the raw and C identifiers.
5161 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5163 # Check to see that the pipe works correctly.
5167 cat > conftest.$ac_ext <<EOF
5172 void nm_test_func(){}
5176 int main(){nm_test_var='a';nm_test_func();return(0);}
5179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5180 (eval $ac_compile) 2>&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; then
5184 # Now try to grab the symbols.
5186 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5187 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } && test -s "$nlist"; then
5191 # Try sorting and uniquifying the output.
5192 if sort "$nlist" | uniq > "$nlist"T; then
5193 mv -f "$nlist"T "$nlist"
5198 # Make sure that we snagged all the symbols we need.
5199 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5200 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5201 cat <<EOF > conftest.$ac_ext
5207 # Now generate the symbol file.
5208 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5210 cat <<EOF >> conftest.$ac_ext
5211 #if defined (__STDC__) && __STDC__
5212 # define lt_ptr_t void *
5214 # define lt_ptr_t char *
5218 /* The mapping between symbol names and symbols. */
5223 lt_preloaded_symbols[] =
5226 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5227 cat <<\EOF >> conftest.$ac_ext
5235 # Now try linking the two files.
5236 mv conftest.$ac_objext conftstm.$ac_objext
5237 lt_save_LIBS="$LIBS"
5238 lt_save_CFLAGS="$CFLAGS"
5239 LIBS="conftstm.$ac_objext"
5240 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5242 (eval $ac_link) 2>&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5248 LIBS="$lt_save_LIBS"
5249 CFLAGS="$lt_save_CFLAGS"
5251 echo "cannot find nm_test_func in $nlist" >&5
5254 echo "cannot find nm_test_var in $nlist" >&5
5257 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5260 echo "$progname: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5263 rm -f conftest* conftst*
5265 # Do not use the global_symbol_pipe unless it works.
5266 if test "$pipe_works" = yes; then
5269 lt_cv_sys_global_symbol_pipe=
5275 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5276 lt_cv_sys_global_symbol_to_cdecl=
5278 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5279 echo "$as_me:$LINENO: result: failed" >&5
5280 echo "${ECHO_T}failed" >&6
5282 echo "$as_me:$LINENO: result: ok" >&5
5283 echo "${ECHO_T}ok" >&6
5286 echo "$as_me:$LINENO: checking for objdir" >&5
5287 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5288 if test "${lt_cv_objdir+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 rm -f .libs 2>/dev/null
5292 mkdir .libs 2>/dev/null
5293 if test -d .libs; then
5296 # MS-DOS does not allow filenames that begin with a dot.
5299 rmdir .libs 2>/dev/null
5301 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5302 echo "${ECHO_T}$lt_cv_objdir" >&6
5303 objdir=$lt_cv_objdir
5311 # AIX sometimes has problems with the GCC collect2 program. For some
5312 # reason, if we set the COLLECT_NAMES environment variable, the problems
5313 # vanish in a puff of smoke.
5314 if test "X${COLLECT_NAMES+set}" != Xset; then
5316 export COLLECT_NAMES
5321 # Sed substitution that helps us do robust quoting. It backslashifies
5322 # metacharacters that are still active within double-quoted strings.
5323 Xsed='sed -e s/^X//'
5324 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5326 # Same as above, but do not quote variable references.
5327 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5329 # Sed substitution to delay expansion of an escaped shell variable in a
5330 # double_quote_subst'ed string.
5331 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5333 # Sed substitution to avoid accidental globbing in evaled expressions
5334 no_glob_subst='s/\*/\\\*/g'
5341 can_build_shared=yes
5343 # All known linkers require a `.a' archive for static linking (except M$VC,
5344 # which needs '.lib').
5346 ltmain="$ac_aux_dir/ltmain.sh"
5347 ofile="$default_ofile"
5348 with_gnu_ld="$lt_cv_prog_gnu_ld"
5350 if test -n "$ac_tool_prefix"; then
5351 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5352 set dummy ${ac_tool_prefix}ar; ac_word=$2
5353 echo "$as_me:$LINENO: checking for $ac_word" >&5
5354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5355 if test "${ac_cv_prog_AR+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5358 if test -n "$AR"; then
5359 ac_cv_prog_AR="$AR" # Let the user override the test.
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5368 ac_cv_prog_AR="${ac_tool_prefix}ar"
5369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 if test -n "$AR"; then
5379 echo "$as_me:$LINENO: result: $AR" >&5
5380 echo "${ECHO_T}$AR" >&6
5382 echo "$as_me:$LINENO: result: no" >&5
5383 echo "${ECHO_T}no" >&6
5387 if test -z "$ac_cv_prog_AR"; then
5389 # Extract the first word of "ar", so it can be a program name with args.
5390 set dummy ar; ac_word=$2
5391 echo "$as_me:$LINENO: checking for $ac_word" >&5
5392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5393 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5396 if test -n "$ac_ct_AR"; then
5397 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5406 ac_cv_prog_ac_ct_AR="ar"
5407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5416 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5417 if test -n "$ac_ct_AR"; then
5418 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5419 echo "${ECHO_T}$ac_ct_AR" >&6
5421 echo "$as_me:$LINENO: result: no" >&5
5422 echo "${ECHO_T}no" >&6
5430 if test -n "$ac_tool_prefix"; then
5431 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5432 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5433 echo "$as_me:$LINENO: checking for $ac_word" >&5
5434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5435 if test "${ac_cv_prog_RANLIB+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 if test -n "$RANLIB"; then
5439 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5448 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 RANLIB=$ac_cv_prog_RANLIB
5458 if test -n "$RANLIB"; then
5459 echo "$as_me:$LINENO: result: $RANLIB" >&5
5460 echo "${ECHO_T}$RANLIB" >&6
5462 echo "$as_me:$LINENO: result: no" >&5
5463 echo "${ECHO_T}no" >&6
5467 if test -z "$ac_cv_prog_RANLIB"; then
5468 ac_ct_RANLIB=$RANLIB
5469 # Extract the first word of "ranlib", so it can be a program name with args.
5470 set dummy ranlib; ac_word=$2
5471 echo "$as_me:$LINENO: checking for $ac_word" >&5
5472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5473 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 if test -n "$ac_ct_RANLIB"; then
5477 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486 ac_cv_prog_ac_ct_RANLIB="ranlib"
5487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5496 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5497 if test -n "$ac_ct_RANLIB"; then
5498 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5499 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5501 echo "$as_me:$LINENO: result: no" >&5
5502 echo "${ECHO_T}no" >&6
5505 RANLIB=$ac_ct_RANLIB
5507 RANLIB="$ac_cv_prog_RANLIB"
5510 if test -n "$ac_tool_prefix"; then
5511 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5512 set dummy ${ac_tool_prefix}strip; ac_word=$2
5513 echo "$as_me:$LINENO: checking for $ac_word" >&5
5514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5515 if test "${ac_cv_prog_STRIP+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 if test -n "$STRIP"; then
5519 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5528 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 STRIP=$ac_cv_prog_STRIP
5538 if test -n "$STRIP"; then
5539 echo "$as_me:$LINENO: result: $STRIP" >&5
5540 echo "${ECHO_T}$STRIP" >&6
5542 echo "$as_me:$LINENO: result: no" >&5
5543 echo "${ECHO_T}no" >&6
5547 if test -z "$ac_cv_prog_STRIP"; then
5549 # Extract the first word of "strip", so it can be a program name with args.
5550 set dummy strip; ac_word=$2
5551 echo "$as_me:$LINENO: checking for $ac_word" >&5
5552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5553 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 if test -n "$ac_ct_STRIP"; then
5557 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 test -z "$as_dir" && as_dir=.
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5566 ac_cv_prog_ac_ct_STRIP="strip"
5567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5576 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5577 if test -n "$ac_ct_STRIP"; then
5578 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5579 echo "${ECHO_T}$ac_ct_STRIP" >&6
5581 echo "$as_me:$LINENO: result: no" >&5
5582 echo "${ECHO_T}no" >&6
5587 STRIP="$ac_cv_prog_STRIP"
5592 old_CFLAGS="$CFLAGS"
5594 # Set sane defaults for various variables
5595 test -z "$AR" && AR=ar
5596 test -z "$AR_FLAGS" && AR_FLAGS=cru
5597 test -z "$AS" && AS=as
5598 test -z "$CC" && CC=cc
5599 test -z "$LTCC" && LTCC=$CC
5600 test -z "$DLLTOOL" && DLLTOOL=dlltool
5601 test -z "$LD" && LD=ld
5602 test -z "$LN_S" && LN_S="ln -s"
5603 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5604 test -z "$NM" && NM=nm
5605 test -z "$SED" && SED=sed
5606 test -z "$OBJDUMP" && OBJDUMP=objdump
5607 test -z "$RANLIB" && RANLIB=:
5608 test -z "$STRIP" && STRIP=:
5609 test -z "$ac_objext" && ac_objext=o
5611 # Determine commands to create old-style static archives.
5612 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5613 old_postinstall_cmds='chmod 644 $oldlib'
5614 old_postuninstall_cmds=
5616 if test -n "$RANLIB"; then
5619 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5622 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5625 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5628 # Only perform the check for file, if the check method requires it
5629 case $deplibs_check_method in
5631 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5632 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5633 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5634 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5642 lt_save_MAGIC_CMD="$MAGIC_CMD"
5643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5644 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5645 for ac_dir in $ac_dummy; do
5647 test -z "$ac_dir" && ac_dir=.
5648 if test -f $ac_dir/${ac_tool_prefix}file; then
5649 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5650 if test -n "$file_magic_test_file"; then
5651 case $deplibs_check_method in
5653 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5654 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5655 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5656 $EGREP "$file_magic_regex" > /dev/null; then
5661 *** Warning: the command libtool uses to detect shared libraries,
5662 *** $file_magic_cmd, produces output that libtool cannot recognize.
5663 *** The result is that libtool may fail to recognize shared libraries
5664 *** as such. This will affect the creation of libtool libraries that
5665 *** depend on shared libraries, but programs linked with such libtool
5666 *** libraries will work regardless of this problem. Nevertheless, you
5667 *** may want to report the problem to your system manager and/or to
5668 *** bug-libtool@gnu.org
5678 MAGIC_CMD="$lt_save_MAGIC_CMD"
5683 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5684 if test -n "$MAGIC_CMD"; then
5685 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5686 echo "${ECHO_T}$MAGIC_CMD" >&6
5688 echo "$as_me:$LINENO: result: no" >&5
5689 echo "${ECHO_T}no" >&6
5692 if test -z "$lt_cv_path_MAGIC_CMD"; then
5693 if test -n "$ac_tool_prefix"; then
5694 echo "$as_me:$LINENO: checking for file" >&5
5695 echo $ECHO_N "checking for file... $ECHO_C" >&6
5696 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5704 lt_save_MAGIC_CMD="$MAGIC_CMD"
5705 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5706 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5707 for ac_dir in $ac_dummy; do
5709 test -z "$ac_dir" && ac_dir=.
5710 if test -f $ac_dir/file; then
5711 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5712 if test -n "$file_magic_test_file"; then
5713 case $deplibs_check_method in
5715 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5716 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5717 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5718 $EGREP "$file_magic_regex" > /dev/null; then
5723 *** Warning: the command libtool uses to detect shared libraries,
5724 *** $file_magic_cmd, produces output that libtool cannot recognize.
5725 *** The result is that libtool may fail to recognize shared libraries
5726 *** as such. This will affect the creation of libtool libraries that
5727 *** depend on shared libraries, but programs linked with such libtool
5728 *** libraries will work regardless of this problem. Nevertheless, you
5729 *** may want to report the problem to your system manager and/or to
5730 *** bug-libtool@gnu.org
5740 MAGIC_CMD="$lt_save_MAGIC_CMD"
5745 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5746 if test -n "$MAGIC_CMD"; then
5747 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5748 echo "${ECHO_T}$MAGIC_CMD" >&6
5750 echo "$as_me:$LINENO: result: no" >&5
5751 echo "${ECHO_T}no" >&6
5766 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5767 if test "${enable_libtool_lock+set}" = set; then
5768 enableval="$enable_libtool_lock"
5771 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5774 # Check whether --with-pic or --without-pic was given.
5775 if test "${with_pic+set}" = set; then
5781 test -z "$pic_mode" && pic_mode=default
5783 # Use C for the default configuration in the libtool script
5787 ac_cpp='$CPP $CPPFLAGS'
5788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5793 # Source file extension for C test sources.
5796 # Object file extension for compiled C test sources.
5800 # Code to be used in simple compile tests
5801 lt_simple_compile_test_code="int some_variable = 0;\n"
5803 # Code to be used in simple link tests
5804 lt_simple_link_test_code='int main(){return(0);}\n'
5807 # If no C compiler was specified, use CC.
5810 # Allow CC to be a program name with arguments.
5815 # Check for any special shared library compilation flags.
5818 if test "$GCC" = no; then
5821 lt_prog_cc_shlib='-belf'
5825 if test -n "$lt_prog_cc_shlib"; then
5826 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5827 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5828 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5830 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5831 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5832 lt_cv_prog_cc_can_build_shared=no
5838 # Check to make sure the static flag actually works.
5840 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5841 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5842 if test "${lt_prog_compiler_static_works+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 lt_prog_compiler_static_works=no
5846 save_LDFLAGS="$LDFLAGS"
5847 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5848 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5849 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5850 # The compiler can only warn and ignore the option if not recognized
5851 # So say no if there are warnings
5852 if test -s conftest.err; then
5853 # Append any errors to the config.log.
5854 cat conftest.err 1>&5
5856 lt_prog_compiler_static_works=yes
5860 LDFLAGS="$save_LDFLAGS"
5863 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5864 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5866 if test x"$lt_prog_compiler_static_works" = xyes; then
5869 lt_prog_compiler_static=
5875 lt_prog_compiler_no_builtin_flag=
5877 if test "$GCC" = yes; then
5878 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5880 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5881 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5882 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 lt_cv_prog_compiler_rtti_exceptions=no
5886 ac_outfile=conftest.$ac_objext
5887 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5888 lt_compiler_flag="-fno-rtti -fno-exceptions"
5889 # Insert the option either (1) after the last *FLAGS variable, or
5890 # (2) before a word containing "conftest.", or (3) at the end.
5891 # Note that $ac_compile itself does not contain backslashes and begins
5892 # with a dollar sign (not a hyphen), so the echo should work correctly.
5893 # The option is referenced via a variable to avoid confusing sed.
5894 lt_compile=`echo "$ac_compile" | $SED \
5895 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5897 -e 's:$: $lt_compiler_flag:'`
5898 (eval echo "\"\$as_me:5898: $lt_compile\"" >&5)
5899 (eval "$lt_compile" 2>conftest.err)
5901 cat conftest.err >&5
5902 echo "$as_me:5902: \$? = $ac_status" >&5
5903 if (exit $ac_status) && test -s "$ac_outfile"; then
5904 # The compiler can only warn and ignore the option if not recognized
5905 # So say no if there are warnings
5906 if test ! -s conftest.err; then
5907 lt_cv_prog_compiler_rtti_exceptions=yes
5913 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5914 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5916 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5917 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5924 lt_prog_compiler_wl=
5925 lt_prog_compiler_pic=
5926 lt_prog_compiler_static=
5928 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5929 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5931 if test "$GCC" = yes; then
5932 lt_prog_compiler_wl='-Wl,'
5933 lt_prog_compiler_static='-static'
5937 # All AIX code is PIC.
5938 if test "$host_cpu" = ia64; then
5939 # AIX 5 now supports IA64 processor
5940 lt_prog_compiler_static='-Bstatic'
5945 # FIXME: we need at least 68020 code to build shared libraries, but
5946 # adding the `-m68020' flag to GCC prevents building anything better,
5948 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5951 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5952 # PIC is the default for these OSes.
5955 mingw* | pw32* | os2*)
5956 # This hack is so that the source file can tell whether it is being
5957 # built for inclusion in a dll (and should export symbols for example).
5958 lt_prog_compiler_pic='-DDLL_EXPORT'
5961 darwin* | rhapsody*)
5962 # PIC is the default on this platform
5963 # Common symbols not allowed in MH_DYLIB files
5964 lt_prog_compiler_pic='-fno-common'
5968 # Just because we use GCC doesn't mean we suddenly get shared libraries
5969 # on systems that don't support them.
5970 lt_prog_compiler_can_build_shared=no
5975 if test -d /usr/nec; then
5976 lt_prog_compiler_pic=-Kconform_pic
5981 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5988 lt_prog_compiler_pic='-fPIC'
5994 lt_prog_compiler_pic='-fPIC'
5998 # PORTME Check for flag to pass linker flags through the system compiler.
6001 lt_prog_compiler_wl='-Wl,'
6002 if test "$host_cpu" = ia64; then
6003 # AIX 5 now supports IA64 processor
6004 lt_prog_compiler_static='-Bstatic'
6006 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6010 mingw* | pw32* | os2*)
6011 # This hack is so that the source file can tell whether it is being
6012 # built for inclusion in a dll (and should export symbols for example).
6013 lt_prog_compiler_pic='-DDLL_EXPORT'
6016 hpux9* | hpux10* | hpux11*)
6017 lt_prog_compiler_wl='-Wl,'
6018 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6025 lt_prog_compiler_pic='+Z'
6028 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6029 lt_prog_compiler_static='${wl}-a ${wl}archive'
6032 irix5* | irix6* | nonstopux*)
6033 lt_prog_compiler_wl='-Wl,'
6034 # PIC (with -KPIC) is the default.
6035 lt_prog_compiler_static='-non_shared'
6039 lt_prog_compiler_pic='-KPIC'
6040 lt_prog_compiler_static='-Bstatic'
6046 lt_prog_compiler_wl='-Wl,'
6047 lt_prog_compiler_pic='-KPIC'
6048 lt_prog_compiler_static='-static'
6051 lt_prog_compiler_wl='-Wl,'
6052 # All Alpha code is PIC.
6053 lt_prog_compiler_static='-non_shared'
6058 osf3* | osf4* | osf5*)
6059 lt_prog_compiler_wl='-Wl,'
6060 # All OSF/1 code is PIC.
6061 lt_prog_compiler_static='-non_shared'
6065 lt_prog_compiler_pic='-Kpic'
6066 lt_prog_compiler_static='-dn'
6070 lt_prog_compiler_wl='-Wl,'
6071 lt_prog_compiler_pic='-KPIC'
6072 lt_prog_compiler_static='-Bstatic'
6076 lt_prog_compiler_wl='-Qoption ld '
6077 lt_prog_compiler_pic='-PIC'
6078 lt_prog_compiler_static='-Bstatic'
6081 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6082 lt_prog_compiler_wl='-Wl,'
6083 lt_prog_compiler_pic='-KPIC'
6084 lt_prog_compiler_static='-Bstatic'
6088 if test -d /usr/nec ;then
6089 lt_prog_compiler_pic='-Kconform_pic'
6090 lt_prog_compiler_static='-Bstatic'
6095 lt_prog_compiler_pic='-pic'
6096 lt_prog_compiler_static='-Bstatic'
6100 lt_prog_compiler_can_build_shared=no
6105 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6106 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6109 # Check to make sure the PIC flag actually works.
6111 if test -n "$lt_prog_compiler_pic"; then
6112 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6113 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6114 if test "${lt_prog_compiler_pic_works+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 lt_prog_compiler_pic_works=no
6118 ac_outfile=conftest.$ac_objext
6119 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6120 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6121 # Insert the option either (1) after the last *FLAGS variable, or
6122 # (2) before a word containing "conftest.", or (3) at the end.
6123 # Note that $ac_compile itself does not contain backslashes and begins
6124 # with a dollar sign (not a hyphen), so the echo should work correctly.
6125 # The option is referenced via a variable to avoid confusing sed.
6126 lt_compile=`echo "$ac_compile" | $SED \
6127 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6129 -e 's:$: $lt_compiler_flag:'`
6130 (eval echo "\"\$as_me:6130: $lt_compile\"" >&5)
6131 (eval "$lt_compile" 2>conftest.err)
6133 cat conftest.err >&5
6134 echo "$as_me:6134: \$? = $ac_status" >&5
6135 if (exit $ac_status) && test -s "$ac_outfile"; then
6136 # The compiler can only warn and ignore the option if not recognized
6137 # So say no if there are warnings
6138 if test ! -s conftest.err; then
6139 lt_prog_compiler_pic_works=yes
6145 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6146 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6148 if test x"$lt_prog_compiler_pic_works" = xyes; then
6149 case $lt_prog_compiler_pic in
6151 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6154 lt_prog_compiler_pic=
6155 lt_prog_compiler_can_build_shared=no
6160 # For platforms which do not support PIC, -DPIC is meaningless:
6162 lt_prog_compiler_pic=
6165 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6169 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6170 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6171 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 lt_cv_prog_compiler_c_o=no
6175 $rm -r conftest 2>/dev/null
6179 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6181 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6182 # that will create temporary files in the current directory regardless of
6183 # the output directory. Thus, making CWD read-only will cause this test
6184 # to fail, enabling locking or at least warning the user not to do parallel
6188 lt_compiler_flag="-o out/conftest2.$ac_objext"
6189 # Insert the option either (1) after the last *FLAGS variable, or
6190 # (2) before a word containing "conftest.", or (3) at the end.
6191 # Note that $ac_compile itself does not contain backslashes and begins
6192 # with a dollar sign (not a hyphen), so the echo should work correctly.
6193 lt_compile=`echo "$ac_compile" | $SED \
6194 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6196 -e 's:$: $lt_compiler_flag:'`
6197 (eval echo "\"\$as_me:6197: $lt_compile\"" >&5)
6198 (eval "$lt_compile" 2>out/conftest.err)
6200 cat out/conftest.err >&5
6201 echo "$as_me:6201: \$? = $ac_status" >&5
6202 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6204 # The compiler can only warn and ignore the option if not recognized
6205 # So say no if there are warnings
6206 if test ! -s out/conftest.err; then
6207 lt_cv_prog_compiler_c_o=yes
6218 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6219 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6222 hard_links="nottested"
6223 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6224 # do not overwrite the value of need_locks provided by the user
6225 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6226 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6229 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6231 ln conftest.a conftest.b 2>&5 || hard_links=no
6232 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6233 echo "$as_me:$LINENO: result: $hard_links" >&5
6234 echo "${ECHO_T}$hard_links" >&6
6235 if test "$hard_links" = no; then
6236 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6237 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6244 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6245 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6248 allow_undefined_flag=
6249 enable_shared_with_static_runtimes=no
6251 archive_expsym_cmds=
6252 old_archive_From_new_cmds=
6253 old_archive_from_expsyms_cmds=
6254 export_dynamic_flag_spec=
6255 whole_archive_flag_spec=
6256 thread_safe_flag_spec=
6257 hardcode_libdir_flag_spec=
6258 hardcode_libdir_flag_spec_ld=
6259 hardcode_libdir_separator=
6262 hardcode_shlibpath_var=unsupported
6263 link_all_deplibs=unknown
6264 hardcode_automatic=no
6267 always_export_symbols=no
6268 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6269 # include_expsyms should be a list of space-separated symbols to be *always*
6270 # included in the symbol list
6272 # exclude_expsyms can be an extended regexp of symbols to exclude
6273 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6274 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6275 # as well as any symbol that contains `d'.
6276 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6277 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6278 # platforms (ab)use it in PIC code, but their linkers get confused if
6279 # the symbol is explicitly referenced. Since portable code cannot
6280 # rely on this symbol name, it's probably fine to never include it in
6281 # preloaded symbol tables.
6282 extract_expsyms_cmds=
6285 cygwin* | mingw* | pw32*)
6286 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6287 # When not using gcc, we currently assume that we are using
6288 # Microsoft Visual C++.
6289 if test "$GCC" != yes; then
6299 if test "$with_gnu_ld" = yes; then
6300 # If archive_cmds runs LD, not CC, wlarc should be empty
6303 # See if GNU ld supports shared libraries.
6305 aix3* | aix4* | aix5*)
6306 # On AIX/PPC, the GNU linker is very broken
6307 if test "$host_cpu" != ia64; then
6311 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6312 *** to be unable to reliably create shared libraries on AIX.
6313 *** Therefore, libtool is disabling shared libraries support. If you
6314 *** really care for shared libraries, you may want to modify your PATH
6315 *** so that a non-GNU linker is found, and then restart.
6322 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)'
6323 hardcode_libdir_flag_spec='-L$libdir'
6324 hardcode_minus_L=yes
6326 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6327 # that the semantics of dynamic libraries on AmigaOS, at least up
6328 # to version 4, is to share data among multiple programs linked
6329 # with the same dynamic library. Since this doesn't match the
6330 # behavior of shared libraries on other platforms, we can't use
6336 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6337 allow_undefined_flag=unsupported
6338 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6339 # support --undefined. This deserves some investigation. FIXME
6340 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6346 cygwin* | mingw* | pw32*)
6347 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6348 # as there is no search path for DLLs.
6349 hardcode_libdir_flag_spec='-L$libdir'
6350 allow_undefined_flag=unsupported
6351 always_export_symbols=no
6352 enable_shared_with_static_runtimes=yes
6353 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6355 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6357 # If the export-symbols file already is a .def file (1st line
6358 # is EXPORTS), use it as is; otherwise, prepend...
6359 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6360 cp $export_symbols $output_objdir/$soname.def;
6362 echo EXPORTS > $output_objdir/$soname.def;
6363 cat $export_symbols >> $output_objdir/$soname.def;
6365 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6372 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6373 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6376 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6377 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6382 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6386 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6387 *** create shared libraries on Solaris systems. Therefore, libtool
6388 *** is disabling shared libraries support. We urge you to upgrade GNU
6389 *** binutils to release 2.9.1 or newer. Another option is to modify
6390 *** your PATH or compiler configuration so that the native linker is
6391 *** used, and then restart.
6394 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6396 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6403 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6406 hardcode_shlibpath_var=no
6410 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6412 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6419 if test "$ld_shlibs" = yes; then
6420 runpath_var=LD_RUN_PATH
6421 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6422 export_dynamic_flag_spec='${wl}--export-dynamic'
6423 # ancient GNU ld didn't support --whole-archive et. al.
6424 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6425 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6427 whole_archive_flag_spec=
6431 # PORTME fill in a description of your system's linker (not GNU ld)
6434 allow_undefined_flag=unsupported
6435 always_export_symbols=yes
6436 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'
6437 # Note: this linker hardcodes the directories in LIBPATH if there
6438 # are no directories specified by -L.
6439 hardcode_minus_L=yes
6440 if test "$GCC" = yes && test -z "$link_static_flag"; then
6441 # Neither direct hardcoding nor static linking is supported with a
6443 hardcode_direct=unsupported
6448 if test "$host_cpu" = ia64; then
6449 # On IA64, the linker does run time linking by default, so we don't
6450 # have to do anything special.
6451 aix_use_runtimelinking=no
6452 exp_sym_flag='-Bexport'
6455 # If we're using GNU nm, then we don't want the "-C" option.
6456 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6457 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6458 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'
6460 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'
6462 aix_use_runtimelinking=no
6464 # Test if we are trying to use run time linking or normal
6465 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6466 # need to do runtime linking.
6467 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6468 for ld_flag in $LDFLAGS; do
6469 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6470 aix_use_runtimelinking=yes
6476 exp_sym_flag='-bexport'
6477 no_entry_flag='-bnoentry'
6480 # When large executables or shared objects are built, AIX ld can
6481 # have problems creating the table of contents. If linking a library
6482 # or program results in "error TOC overflow" add -mminimal-toc to
6483 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6484 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6488 hardcode_libdir_separator=':'
6489 link_all_deplibs=yes
6491 if test "$GCC" = yes; then
6492 case $host_os in aix4.012|aix4.012.*)
6493 # We only want to do this on AIX 4.2 and lower, the check
6494 # below for broken collect2 doesn't work under 4.3+
6495 collect2name=`${CC} -print-prog-name=collect2`
6496 if test -f "$collect2name" && \
6497 strings "$collect2name" | grep resolve_lib_name >/dev/null
6499 # We have reworked collect2
6502 # We have old collect2
6503 hardcode_direct=unsupported
6504 # It fails to find uninstalled libraries when the uninstalled
6505 # path is not listed in the libpath. Setting hardcode_minus_L
6506 # to unsupported forces relinking
6507 hardcode_minus_L=yes
6508 hardcode_libdir_flag_spec='-L$libdir'
6509 hardcode_libdir_separator=
6512 shared_flag='-shared'
6515 if test "$host_cpu" = ia64; then
6516 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6517 # chokes on -Wl,-G. The following line is correct:
6520 if test "$aix_use_runtimelinking" = yes; then
6521 shared_flag='${wl}-G'
6523 shared_flag='${wl}-bM:SRE'
6528 # It seems that -bexpall does not export symbols beginning with
6529 # underscore (_), so it is better to generate a list of symbols to export.
6530 always_export_symbols=yes
6531 if test "$aix_use_runtimelinking" = yes; then
6532 # Warning - without using the other runtime loading flags (-brtl),
6533 # -berok will link without error, but may produce a broken library.
6534 allow_undefined_flag='-berok'
6535 # Determine the default libpath from the value encoded in an empty executable.
6536 cat >conftest.$ac_ext <<_ACEOF
6537 #line $LINENO "configure"
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6552 rm -f conftest.$ac_objext conftest$ac_exeext
6553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6554 (eval $ac_link) 2>&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } &&
6558 { ac_try='test -s conftest$ac_exeext'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
6565 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6567 # Check for a 64-bit object if we didn't find anything.
6568 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; }
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6576 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6578 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6579 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"
6581 if test "$host_cpu" = ia64; then
6582 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6583 allow_undefined_flag="-z nodefs"
6584 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"
6586 # Determine the default libpath from the value encoded in an empty executable.
6587 cat >conftest.$ac_ext <<_ACEOF
6588 #line $LINENO "configure"
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6603 rm -f conftest.$ac_objext conftest$ac_exeext
6604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6605 (eval $ac_link) 2>&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } &&
6609 { ac_try='test -s conftest$ac_exeext'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
6616 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6618 # Check for a 64-bit object if we didn't find anything.
6619 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; }
6622 echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6627 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6629 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6630 # Warning - without using the other run time loading flags,
6631 # -berok will link without error, but may produce a broken library.
6632 no_undefined_flag=' ${wl}-bernotok'
6633 allow_undefined_flag=' ${wl}-berok'
6634 # -bexpall does not export symbols beginning with underscore (_)
6635 always_export_symbols=yes
6636 # Exported symbols can be pulled into shared objects from archives
6637 whole_archive_flag_spec=' '
6638 archive_cmds_need_lc=yes
6639 # This is similar to how AIX traditionally builds it's shared libraries.
6640 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'
6646 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)'
6647 hardcode_libdir_flag_spec='-L$libdir'
6648 hardcode_minus_L=yes
6649 # see comment about different semantics on the GNU ld section
6654 export_dynamic_flag_spec=-rdynamic
6657 cygwin* | mingw* | pw32*)
6658 # When not using gcc, we currently assume that we are using
6659 # Microsoft Visual C++.
6660 # hardcode_libdir_flag_spec is actually meaningless, as there is
6661 # no search path for DLLs.
6662 hardcode_libdir_flag_spec=' '
6663 allow_undefined_flag=unsupported
6664 # Tell ltmain to make .lib files, not .a files.
6666 # Tell ltmain to make .dll files, not .so files.
6668 # FIXME: Setting linknames here is a bad hack.
6669 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6670 # The linker will automatically build a .lib file if we build a DLL.
6671 old_archive_From_new_cmds='true'
6672 # FIXME: Should let the user specify the lib program.
6673 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6674 fix_srcfile_path='`cygpath -w "$srcfile"`'
6675 enable_shared_with_static_runtimes=yes
6678 darwin* | rhapsody*)
6679 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6680 archive_cmds_need_lc=no
6682 rhapsody* | darwin1.[012])
6683 allow_undefined_flag='-undefined suppress'
6686 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6689 # FIXME: Relying on posixy $() will cause problems for
6690 # cross-compilation, but unfortunately the echo tests do not
6691 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6692 # `"' quotes if we put them in here... so don't!
6693 lt_int_apple_cc_single_mod=no
6694 output_verbose_link_cmd='echo'
6695 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6696 lt_int_apple_cc_single_mod=yes
6698 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6699 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6701 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6703 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6704 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6705 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6706 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6708 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6710 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6712 hardcode_automatic=yes
6713 hardcode_shlibpath_var=unsupported
6714 whole_archive_flag_spec='-all_load $convenience'
6715 link_all_deplibs=yes
6720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6721 hardcode_libdir_flag_spec='-L$libdir'
6722 hardcode_shlibpath_var=no
6729 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6730 # support. Future versions do this automatically, but an explicit c++rt0.o
6731 # does not break anything, and helps significantly (at the cost of a little
6734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6735 hardcode_libdir_flag_spec='-R$libdir'
6737 hardcode_shlibpath_var=no
6740 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6742 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6744 hardcode_minus_L=yes
6745 hardcode_shlibpath_var=no
6748 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6750 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6751 hardcode_libdir_flag_spec='-R$libdir'
6753 hardcode_shlibpath_var=no
6757 if test "$GCC" = yes; then
6758 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'
6760 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'
6762 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6763 hardcode_libdir_separator=:
6766 # hardcode_minus_L: Not really in the search PATH,
6767 # but as the default location of the library.
6768 hardcode_minus_L=yes
6769 export_dynamic_flag_spec='${wl}-E'
6773 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6776 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6779 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6785 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6788 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6792 if test "$with_gnu_ld" = no; then
6795 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6796 hardcode_libdir_flag_spec_ld='+b $libdir'
6797 hardcode_libdir_separator=:
6799 hardcode_shlibpath_var=no
6802 hardcode_libdir_flag_spec='-L$libdir'
6804 hardcode_shlibpath_var=no
6806 # hardcode_minus_L: Not really in the search PATH,
6807 # but as the default location of the library.
6808 hardcode_minus_L=yes
6811 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6812 hardcode_libdir_separator=:
6814 export_dynamic_flag_spec='${wl}-E'
6816 # hardcode_minus_L: Not really in the search PATH,
6817 # but as the default location of the library.
6818 hardcode_minus_L=yes
6824 irix5* | irix6* | nonstopux*)
6825 if test "$GCC" = yes; then
6826 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'
6828 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'
6829 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6832 hardcode_libdir_separator=:
6833 link_all_deplibs=yes
6837 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6840 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6842 hardcode_libdir_flag_spec='-R$libdir'
6844 hardcode_shlibpath_var=no
6848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6850 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6851 hardcode_libdir_separator=:
6852 hardcode_shlibpath_var=no
6857 hardcode_shlibpath_var=no
6858 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6859 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6860 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6861 export_dynamic_flag_spec='${wl}-E'
6864 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6865 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6866 hardcode_libdir_flag_spec='-R$libdir'
6869 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6870 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6877 hardcode_libdir_flag_spec='-L$libdir'
6878 hardcode_minus_L=yes
6879 allow_undefined_flag=unsupported
6880 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'
6881 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6885 if test "$GCC" = yes; then
6886 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6887 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'
6889 allow_undefined_flag=' -expect_unresolved \*'
6890 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'
6892 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6893 hardcode_libdir_separator=:
6896 osf4* | osf5*) # as osf3* with the addition of -msym flag
6897 if test "$GCC" = yes; then
6898 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6899 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'
6900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6902 allow_undefined_flag=' -expect_unresolved \*'
6903 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'
6904 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6905 $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'
6907 # Both c and cxx compiler support -rpath directly
6908 hardcode_libdir_flag_spec='-rpath $libdir'
6910 hardcode_libdir_separator=:
6914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6915 hardcode_shlibpath_var=no
6916 export_dynamic_flag_spec='${wl}-Bexport'
6917 runpath_var=LD_RUN_PATH
6918 hardcode_runpath_var=yes
6922 no_undefined_flag=' -z text'
6923 if test "$GCC" = yes; then
6924 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6925 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6926 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6928 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6929 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6930 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6932 hardcode_libdir_flag_spec='-R$libdir'
6933 hardcode_shlibpath_var=no
6935 solaris2.[0-5] | solaris2.[0-5].*) ;;
6936 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6937 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6939 link_all_deplibs=yes
6943 if test "x$host_vendor" = xsequent; then
6944 # Use $CC to link under sequent, because it throws in some extra .o
6945 # files that make .init and .fini sections work.
6946 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6948 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6950 hardcode_libdir_flag_spec='-L$libdir'
6952 hardcode_minus_L=yes
6953 hardcode_shlibpath_var=no
6957 case $host_vendor in
6959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6960 hardcode_direct=yes # is this really true???
6963 ## LD is ld it makes a PLAMLIB
6964 ## CC just makes a GrossModule.
6965 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6966 reload_cmds='$CC -r -o $output$reload_objs'
6970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6971 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6974 runpath_var='LD_RUN_PATH'
6975 hardcode_shlibpath_var=no
6979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6980 hardcode_shlibpath_var=no
6981 export_dynamic_flag_spec='-Bexport'
6985 if test -d /usr/nec; then
6986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6987 hardcode_shlibpath_var=no
6988 runpath_var=LD_RUN_PATH
6989 hardcode_runpath_var=yes
6995 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6998 hardcode_shlibpath_var=no
6999 hardcode_runpath_var=yes
7000 runpath_var=LD_RUN_PATH
7003 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7004 no_undefined_flag='${wl}-z ${wl}text'
7005 if test "$GCC" = yes; then
7006 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7008 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7010 runpath_var='LD_RUN_PATH'
7011 hardcode_shlibpath_var=no
7015 no_undefined_flag=' -z text'
7016 # $CC -shared without GNU ld will not create a library from C++
7017 # object files and a static libstdc++, better avoid it by now
7018 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7019 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7020 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7021 hardcode_libdir_flag_spec=
7022 hardcode_shlibpath_var=no
7023 runpath_var='LD_RUN_PATH'
7027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7028 hardcode_libdir_flag_spec='-L$libdir'
7029 hardcode_shlibpath_var=no
7038 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7039 echo "${ECHO_T}$ld_shlibs" >&6
7040 test "$ld_shlibs" = no && can_build_shared=no
7042 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7043 if test "$GCC" = yes; then
7044 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7048 # Do we need to explicitly link libc?
7050 case "x$archive_cmds_need_lc" in
7052 # Assume -lc should be added
7053 archive_cmds_need_lc=yes
7055 if test "$enable_shared" = yes && test "$GCC" = yes; then
7056 case $archive_cmds in
7058 # FIXME: we may have to deal with multi-command sequences.
7061 # Test whether the compiler implicitly links with -lc since on some
7062 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7063 # to ld, don't add -lc before -lgcc.
7064 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7065 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7067 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7070 (eval $ac_compile) 2>&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } 2>conftest.err; then
7076 libobjs=conftest.$ac_objext
7078 wl=$lt_prog_compiler_wl
7084 lt_save_allow_undefined_flag=$allow_undefined_flag
7085 allow_undefined_flag=
7086 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7087 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); }
7092 archive_cmds_need_lc=no
7094 archive_cmds_need_lc=yes
7096 allow_undefined_flag=$lt_save_allow_undefined_flag
7098 cat conftest.err 1>&5
7101 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7102 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7109 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7110 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7112 if test -n "$hardcode_libdir_flag_spec" || \
7113 test -n "$runpath_var " || \
7114 test "X$hardcode_automatic"="Xyes" ; then
7116 # We can hardcode non-existant directories.
7117 if test "$hardcode_direct" != no &&
7118 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7119 # have to relink, otherwise we might link with an installed library
7120 # when we should be linking with a yet-to-be-installed one
7121 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7122 test "$hardcode_minus_L" != no; then
7123 # Linking always hardcodes the temporary library directory.
7124 hardcode_action=relink
7126 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7127 hardcode_action=immediate
7130 # We cannot hardcode anything, or else we can only hardcode existing
7132 hardcode_action=unsupported
7134 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7135 echo "${ECHO_T}$hardcode_action" >&6
7137 if test "$hardcode_action" = relink; then
7138 # Fast installation is not supported
7139 enable_fast_install=no
7140 elif test "$shlibpath_overrides_runpath" = yes ||
7141 test "$enable_shared" = no; then
7142 # Fast installation is not necessary
7143 enable_fast_install=needless
7148 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7149 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7150 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7151 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7152 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7153 echo "$as_me:$LINENO: result: yes" >&5
7154 echo "${ECHO_T}yes" >&6
7156 # FIXME - insert some real tests, host_os isn't really good enough
7159 if test -n "$STRIP" ; then
7160 striplib="$STRIP -x"
7161 echo "$as_me:$LINENO: result: yes" >&5
7162 echo "${ECHO_T}yes" >&6
7164 echo "$as_me:$LINENO: result: no" >&5
7165 echo "${ECHO_T}no" >&6
7169 echo "$as_me:$LINENO: result: no" >&5
7170 echo "${ECHO_T}no" >&6
7175 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7176 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7178 libname_spec='lib$name'
7186 shlibpath_overrides_runpath=unknown
7188 dynamic_linker="$host_os ld.so"
7189 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7190 if test "$GCC" = yes; then
7191 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7192 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7193 # if the path contains ";" then we assume it to be the separator
7194 # otherwise default to the standard path separator (i.e. ":") - it is
7195 # assumed that no part of a normal pathname contains ";" but that should
7196 # okay in the real world where ";" in dirpaths is itself problematic.
7197 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7199 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7202 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7204 need_lib_prefix=unknown
7205 hardcode_into_libs=no
7207 # when you set need_version to no, make sure it does not cause -set_version
7208 # flags to be left without arguments
7209 need_version=unknown
7214 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7215 shlibpath_var=LIBPATH
7217 # AIX 3 has no versioning support, so we append a major version to the name.
7218 soname_spec='${libname}${release}${shared_ext}$major'
7225 hardcode_into_libs=yes
7226 if test "$host_cpu" = ia64; then
7227 # AIX 5 supports IA64
7228 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7229 shlibpath_var=LD_LIBRARY_PATH
7231 # With GCC up to 2.95.x, collect2 would create an import file
7232 # for dependence libraries. The import file would start with
7233 # the line `#! .'. This would cause the generated library to
7234 # depend on `.', always an invalid library. This was fixed in
7235 # development snapshots of GCC prior to 3.0.
7237 aix4 | aix4.[01] | aix4.[01].*)
7238 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7240 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7247 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7248 # soname into executable. Probably we can add versioning support to
7249 # collect2, so additional links can be useful in future.
7250 if test "$aix_use_runtimelinking" = yes; then
7251 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7252 # instead of lib<name>.a to let people know that these are not
7253 # typical AIX shared libraries.
7254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7256 # We preserve .a as extension for shared libraries through AIX4.2
7257 # and later when we are not doing run time linking.
7258 library_names_spec='${libname}${release}.a $libname.a'
7259 soname_spec='${libname}${release}${shared_ext}$major'
7261 shlibpath_var=LIBPATH
7266 library_names_spec='$libname.ixlibrary $libname.a'
7267 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7268 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'
7272 library_names_spec='${libname}${shared_ext}'
7273 dynamic_linker="$host_os ld.so"
7274 shlibpath_var=LIBRARY_PATH
7280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7281 soname_spec='${libname}${release}${shared_ext}$major'
7282 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7283 shlibpath_var=LD_LIBRARY_PATH
7284 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7285 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7286 # the default ld.so.conf also contains /usr/contrib/lib and
7287 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7288 # libtool to hard-code these into programs
7291 cygwin* | mingw* | pw32*)
7292 version_type=windows
7297 case $GCC,$host_os in
7298 yes,cygwin* | yes,mingw* | yes,pw32*)
7299 library_names_spec='$libname.dll.a'
7300 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7301 postinstall_cmds='base_file=`basename \${file}`~
7302 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7303 dldir=$destdir/`dirname \$dlpath`~
7304 test -d \$dldir || mkdir -p \$dldir~
7305 $install_prog $dir/$dlname \$dldir/$dlname'
7306 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7307 dlpath=$dir/\$dldll~
7309 shlibpath_overrides_runpath=yes
7313 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7314 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7315 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7318 # MinGW DLLs use traditional 'lib' prefix
7319 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7320 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7321 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7322 # It is most probably a Windows format PATH printed by
7323 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7324 # path with ; separators, and with drive letters. We can handle the
7325 # drive letters (cygwin fileutils understands them), so leave them,
7326 # especially as we might pass files found there to a mingw objdump,
7327 # which wouldn't understand a cygwinified path. Ahh.
7328 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7330 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7334 # pw32 DLLs use 'pw' prefix rather than 'lib'
7335 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7341 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7344 dynamic_linker='Win32 ld.exe'
7345 # FIXME: first we should search . and the directory the executable is in
7349 darwin* | rhapsody*)
7350 dynamic_linker="$host_os dyld"
7354 # FIXME: Relying on posixy $() will cause problems for
7355 # cross-compilation, but unfortunately the echo tests do not
7356 # yet detect zsh echo's removal of \ escapes.
7357 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7358 soname_spec='${libname}${release}${major}$shared_ext'
7359 shlibpath_overrides_runpath=yes
7360 shlibpath_var=DYLD_LIBRARY_PATH
7361 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7362 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7363 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7364 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"`
7366 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7374 soname_spec='${libname}${release}${shared_ext}$major'
7375 shlibpath_var=LD_LIBRARY_PATH
7383 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7384 version_type=freebsd-$objformat
7385 case $version_type in
7387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7392 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7396 shlibpath_var=LD_LIBRARY_PATH
7399 shlibpath_overrides_runpath=yes
7401 freebsd3.01* | freebsdelf3.01*)
7402 shlibpath_overrides_runpath=yes
7403 hardcode_into_libs=yes
7406 shlibpath_overrides_runpath=no
7407 hardcode_into_libs=yes
7416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7417 soname_spec='${libname}${release}${shared_ext}$major'
7418 shlibpath_var=LD_LIBRARY_PATH
7419 hardcode_into_libs=yes
7422 hpux9* | hpux10* | hpux11*)
7423 # Give a soname corresponding to the major version so that dld.sl refuses to
7424 # link against other versions.
7431 hardcode_into_libs=yes
7432 dynamic_linker="$host_os dld.so"
7433 shlibpath_var=LD_LIBRARY_PATH
7434 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7436 soname_spec='${libname}${release}${shared_ext}$major'
7437 if test "X$HPUX_IA64_MODE" = X32; then
7438 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7440 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7446 hardcode_into_libs=yes
7447 dynamic_linker="$host_os dld.sl"
7448 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7449 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7451 soname_spec='${libname}${release}${shared_ext}$major'
7452 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7453 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7457 dynamic_linker="$host_os dld.sl"
7458 shlibpath_var=SHLIB_PATH
7459 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7461 soname_spec='${libname}${release}${shared_ext}$major'
7464 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7465 postinstall_cmds='chmod 555 $lib'
7468 irix5* | irix6* | nonstopux*)
7470 nonstopux*) version_type=nonstopux ;;
7472 if test "$lt_cv_prog_gnu_ld" = yes; then
7480 soname_spec='${libname}${release}${shared_ext}$major'
7481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7483 irix5* | nonstopux*)
7487 case $LD in # libtool.m4 will add one of these switches to LD
7488 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7489 libsuff= shlibsuff= libmagic=32-bit;;
7490 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7491 libsuff=32 shlibsuff=N32 libmagic=N32;;
7492 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7493 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7494 *) libsuff= shlibsuff= libmagic=never-match;;
7498 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7499 shlibpath_overrides_runpath=no
7500 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7501 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7502 hardcode_into_libs=yes
7505 # No shared lib support for Linux oldld, aout, or coff.
7506 linux*oldld* | linux*aout* | linux*coff*)
7510 # This must be Linux ELF.
7515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7516 soname_spec='${libname}${release}${shared_ext}$major'
7517 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7518 shlibpath_var=LD_LIBRARY_PATH
7519 shlibpath_overrides_runpath=no
7520 # This implies no fast_install, which is unacceptable.
7521 # Some rework will be needed to allow for fast_install
7522 # before this can be enabled.
7523 hardcode_into_libs=yes
7525 # We used to test for /lib/ld.so.1 and disable shared libraries on
7526 # powerpc, because MkLinux only supported shared libraries with the
7527 # GNU dynamic linker. Since this was broken with cross compilers,
7528 # most powerpc-linux boxes support dynamic linking these days and
7529 # people can always --disable-shared, the test was removed, and we
7530 # assume the GNU/Linux dynamic linker is in use.
7531 dynamic_linker='GNU/Linux ld.so'
7538 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7541 dynamic_linker='NetBSD (a.out) ld.so'
7543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7544 soname_spec='${libname}${release}${shared_ext}$major'
7545 dynamic_linker='NetBSD ld.elf_so'
7547 shlibpath_var=LD_LIBRARY_PATH
7548 shlibpath_overrides_runpath=yes
7549 hardcode_into_libs=yes
7554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7555 shlibpath_var=LD_LIBRARY_PATH
7556 shlibpath_overrides_runpath=yes
7563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7564 soname_spec='${libname}${release}${shared_ext}$major'
7565 shlibpath_var=LD_LIBRARY_PATH
7566 shlibpath_overrides_runpath=yes
7573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7575 shlibpath_var=LD_LIBRARY_PATH
7576 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7578 openbsd2.[89] | openbsd2.[89].*)
7579 shlibpath_overrides_runpath=no
7582 shlibpath_overrides_runpath=yes
7586 shlibpath_overrides_runpath=yes
7591 libname_spec='$name'
7594 library_names_spec='$libname${shared_ext} $libname.a'
7595 dynamic_linker='OS/2 ld.exe'
7596 shlibpath_var=LIBPATH
7599 osf3* | osf4* | osf5*)
7603 soname_spec='${libname}${release}${shared_ext}$major'
7604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7605 shlibpath_var=LD_LIBRARY_PATH
7606 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7607 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7612 soname_spec='${libname}${release}${shared_ext}$major'
7613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7614 shlibpath_var=LD_LIBRARY_PATH
7621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7622 soname_spec='${libname}${release}${shared_ext}$major'
7623 shlibpath_var=LD_LIBRARY_PATH
7624 shlibpath_overrides_runpath=yes
7625 hardcode_into_libs=yes
7626 # ldd complains unless libraries are executable
7627 postinstall_cmds='chmod +x $lib'
7632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7633 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7634 shlibpath_var=LD_LIBRARY_PATH
7635 shlibpath_overrides_runpath=yes
7636 if test "$with_gnu_ld" = yes; then
7642 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7645 soname_spec='${libname}${release}${shared_ext}$major'
7646 shlibpath_var=LD_LIBRARY_PATH
7647 case $host_vendor in
7649 shlibpath_overrides_runpath=no
7651 export_dynamic_flag_spec='${wl}-Blargedynsym'
7652 runpath_var=LD_RUN_PATH
7660 shlibpath_overrides_runpath=no
7661 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7667 if test -d /usr/nec ;then
7669 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7670 soname_spec='$libname${shared_ext}.$major'
7671 shlibpath_var=LD_LIBRARY_PATH
7677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7678 soname_spec='${libname}${release}${shared_ext}$major'
7679 shlibpath_var=LD_LIBRARY_PATH
7686 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7687 echo "${ECHO_T}$dynamic_linker" >&6
7688 test "$dynamic_linker" = no && can_build_shared=no
7690 if test "x$enable_dlopen" != xyes; then
7691 enable_dlopen=unknown
7692 enable_dlopen_self=unknown
7693 enable_dlopen_self_static=unknown
7700 lt_cv_dlopen="load_add_on"
7702 lt_cv_dlopen_self=yes
7706 lt_cv_dlopen="LoadLibrary"
7711 lt_cv_dlopen="dlopen"
7716 # if libdl is installed we need to link against it
7717 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7718 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7719 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 ac_check_lib_save_LIBS=$LIBS
7724 cat >conftest.$ac_ext <<_ACEOF
7725 #line $LINENO "configure"
7728 cat confdefs.h >>conftest.$ac_ext
7729 cat >>conftest.$ac_ext <<_ACEOF
7730 /* end confdefs.h. */
7732 /* Override any gcc2 internal prototype to avoid an error. */
7736 /* We use char because int might match the return type of a gcc2
7737 builtin and then its argument prototype would still apply. */
7747 rm -f conftest.$ac_objext conftest$ac_exeext
7748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7749 (eval $ac_link) 2>&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try='test -s conftest$ac_exeext'
7754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); }; }; then
7759 ac_cv_lib_dl_dlopen=yes
7761 echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7764 ac_cv_lib_dl_dlopen=no
7766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7767 LIBS=$ac_check_lib_save_LIBS
7769 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7770 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7771 if test $ac_cv_lib_dl_dlopen = yes; then
7772 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7777 lt_cv_dlopen_self=yes
7784 echo "$as_me:$LINENO: checking for shl_load" >&5
7785 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7786 if test "${ac_cv_func_shl_load+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 cat >conftest.$ac_ext <<_ACEOF
7790 #line $LINENO "configure"
7793 cat confdefs.h >>conftest.$ac_ext
7794 cat >>conftest.$ac_ext <<_ACEOF
7795 /* end confdefs.h. */
7796 /* System header to define __stub macros and hopefully few prototypes,
7797 which can conflict with char shl_load (); below.
7798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7799 <limits.h> exists even on freestanding compilers. */
7801 # include <limits.h>
7803 # include <assert.h>
7805 /* Override any gcc2 internal prototype to avoid an error. */
7810 /* We use char because int might match the return type of a gcc2
7811 builtin and then its argument prototype would still apply. */
7813 /* The GNU C library defines this for functions which it implements
7814 to always fail with ENOSYS. Some functions are actually named
7815 something starting with __ and the normal name is an alias. */
7816 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7819 char (*f) () = shl_load;
7828 return f != shl_load;
7833 rm -f conftest.$ac_objext conftest$ac_exeext
7834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7835 (eval $ac_link) 2>&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } &&
7839 { ac_try='test -s conftest$ac_exeext'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; }; then
7845 ac_cv_func_shl_load=yes
7847 echo "$as_me: failed program was:" >&5
7848 sed 's/^/| /' conftest.$ac_ext >&5
7850 ac_cv_func_shl_load=no
7852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7854 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7855 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7856 if test $ac_cv_func_shl_load = yes; then
7857 lt_cv_dlopen="shl_load"
7859 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7860 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7861 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7862 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 ac_check_lib_save_LIBS=$LIBS
7866 cat >conftest.$ac_ext <<_ACEOF
7867 #line $LINENO "configure"
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h. */
7874 /* Override any gcc2 internal prototype to avoid an error. */
7878 /* We use char because int might match the return type of a gcc2
7879 builtin and then its argument prototype would still apply. */
7889 rm -f conftest.$ac_objext conftest$ac_exeext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7891 (eval $ac_link) 2>&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } &&
7895 { ac_try='test -s conftest$ac_exeext'
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7901 ac_cv_lib_dld_shl_load=yes
7903 echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7906 ac_cv_lib_dld_shl_load=no
7908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7909 LIBS=$ac_check_lib_save_LIBS
7911 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7912 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7913 if test $ac_cv_lib_dld_shl_load = yes; then
7914 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7916 echo "$as_me:$LINENO: checking for dlopen" >&5
7917 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7918 if test "${ac_cv_func_dlopen+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 cat >conftest.$ac_ext <<_ACEOF
7922 #line $LINENO "configure"
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7928 /* System header to define __stub macros and hopefully few prototypes,
7929 which can conflict with char dlopen (); below.
7930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7931 <limits.h> exists even on freestanding compilers. */
7933 # include <limits.h>
7935 # include <assert.h>
7937 /* Override any gcc2 internal prototype to avoid an error. */
7942 /* We use char because int might match the return type of a gcc2
7943 builtin and then its argument prototype would still apply. */
7945 /* The GNU C library defines this for functions which it implements
7946 to always fail with ENOSYS. Some functions are actually named
7947 something starting with __ and the normal name is an alias. */
7948 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7951 char (*f) () = dlopen;
7965 rm -f conftest.$ac_objext conftest$ac_exeext
7966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7967 (eval $ac_link) 2>&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } &&
7971 { ac_try='test -s conftest$ac_exeext'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; }; then
7977 ac_cv_func_dlopen=yes
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7982 ac_cv_func_dlopen=no
7984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7986 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7987 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7988 if test $ac_cv_func_dlopen = yes; then
7989 lt_cv_dlopen="dlopen"
7991 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7992 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7993 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 ac_check_lib_save_LIBS=$LIBS
7998 cat >conftest.$ac_ext <<_ACEOF
7999 #line $LINENO "configure"
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8006 /* Override any gcc2 internal prototype to avoid an error. */
8010 /* We use char because int might match the return type of a gcc2
8011 builtin and then its argument prototype would still apply. */
8021 rm -f conftest.$ac_objext conftest$ac_exeext
8022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8023 (eval $ac_link) 2>&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); } &&
8027 { ac_try='test -s conftest$ac_exeext'
8028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); }; }; then
8033 ac_cv_lib_dl_dlopen=yes
8035 echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.$ac_ext >&5
8038 ac_cv_lib_dl_dlopen=no
8040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8041 LIBS=$ac_check_lib_save_LIBS
8043 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8044 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8045 if test $ac_cv_lib_dl_dlopen = yes; then
8046 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8048 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8049 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8050 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 ac_check_lib_save_LIBS=$LIBS
8055 cat >conftest.$ac_ext <<_ACEOF
8056 #line $LINENO "configure"
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8063 /* Override any gcc2 internal prototype to avoid an error. */
8067 /* We use char because int might match the return type of a gcc2
8068 builtin and then its argument prototype would still apply. */
8078 rm -f conftest.$ac_objext conftest$ac_exeext
8079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8080 (eval $ac_link) 2>&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } &&
8084 { ac_try='test -s conftest$ac_exeext'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; }; then
8090 ac_cv_lib_svld_dlopen=yes
8092 echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8095 ac_cv_lib_svld_dlopen=no
8097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8098 LIBS=$ac_check_lib_save_LIBS
8100 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8101 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8102 if test $ac_cv_lib_svld_dlopen = yes; then
8103 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8105 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8106 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8107 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8110 ac_check_lib_save_LIBS=$LIBS
8112 cat >conftest.$ac_ext <<_ACEOF
8113 #line $LINENO "configure"
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8120 /* Override any gcc2 internal prototype to avoid an error. */
8124 /* We use char because int might match the return type of a gcc2
8125 builtin and then its argument prototype would still apply. */
8135 rm -f conftest.$ac_objext conftest$ac_exeext
8136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8137 (eval $ac_link) 2>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } &&
8141 { ac_try='test -s conftest$ac_exeext'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; }; then
8147 ac_cv_lib_dld_dld_link=yes
8149 echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8152 ac_cv_lib_dld_dld_link=no
8154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8155 LIBS=$ac_check_lib_save_LIBS
8157 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8158 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8159 if test $ac_cv_lib_dld_dld_link = yes; then
8160 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8181 if test "x$lt_cv_dlopen" != xno; then
8187 case $lt_cv_dlopen in
8189 save_CPPFLAGS="$CPPFLAGS"
8190 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8192 save_LDFLAGS="$LDFLAGS"
8193 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8196 LIBS="$lt_cv_dlopen_libs $LIBS"
8198 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8199 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8200 if test "${lt_cv_dlopen_self+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
8203 if test "$cross_compiling" = yes; then :
8204 lt_cv_dlopen_self=cross
8206 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8207 lt_status=$lt_dlunknown
8208 cat > conftest.$ac_ext <<EOF
8209 #line 8209 "configure"
8210 #include "confdefs.h"
8219 # define LT_DLGLOBAL RTLD_GLOBAL
8222 # define LT_DLGLOBAL DL_GLOBAL
8224 # define LT_DLGLOBAL 0
8228 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8229 find out it does not work in some platform. */
8230 #ifndef LT_DLLAZY_OR_NOW
8232 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8235 # define LT_DLLAZY_OR_NOW DL_LAZY
8238 # define LT_DLLAZY_OR_NOW RTLD_NOW
8241 # define LT_DLLAZY_OR_NOW DL_NOW
8243 # define LT_DLLAZY_OR_NOW 0
8251 extern "C" void exit (int);
8254 void fnord() { int i=42;}
8257 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8258 int status = $lt_dlunknown;
8262 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8263 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8264 /* dlclose (self); */
8270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8271 (eval $ac_link) 2>&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8275 (./conftest; exit; ) 2>/dev/null
8278 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8279 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8280 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8283 # compilation failed
8284 lt_cv_dlopen_self=no
8291 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8292 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8294 if test "x$lt_cv_dlopen_self" = xyes; then
8295 LDFLAGS="$LDFLAGS $link_static_flag"
8296 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8297 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8298 if test "${lt_cv_dlopen_self_static+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 if test "$cross_compiling" = yes; then :
8302 lt_cv_dlopen_self_static=cross
8304 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8305 lt_status=$lt_dlunknown
8306 cat > conftest.$ac_ext <<EOF
8307 #line 8307 "configure"
8308 #include "confdefs.h"
8317 # define LT_DLGLOBAL RTLD_GLOBAL
8320 # define LT_DLGLOBAL DL_GLOBAL
8322 # define LT_DLGLOBAL 0
8326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8327 find out it does not work in some platform. */
8328 #ifndef LT_DLLAZY_OR_NOW
8330 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8333 # define LT_DLLAZY_OR_NOW DL_LAZY
8336 # define LT_DLLAZY_OR_NOW RTLD_NOW
8339 # define LT_DLLAZY_OR_NOW DL_NOW
8341 # define LT_DLLAZY_OR_NOW 0
8349 extern "C" void exit (int);
8352 void fnord() { int i=42;}
8355 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8356 int status = $lt_dlunknown;
8360 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8361 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8362 /* dlclose (self); */
8368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369 (eval $ac_link) 2>&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8373 (./conftest; exit; ) 2>/dev/null
8376 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8377 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8378 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8381 # compilation failed
8382 lt_cv_dlopen_self_static=no
8389 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8390 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8393 CPPFLAGS="$save_CPPFLAGS"
8394 LDFLAGS="$save_LDFLAGS"
8399 case $lt_cv_dlopen_self in
8400 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8401 *) enable_dlopen_self=unknown ;;
8404 case $lt_cv_dlopen_self_static in
8405 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8406 *) enable_dlopen_self_static=unknown ;;
8411 # Report which librarie types wil actually be built
8412 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8413 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8414 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8415 echo "${ECHO_T}$can_build_shared" >&6
8417 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8418 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8419 test "$can_build_shared" = "no" && enable_shared=no
8421 # On AIX, shared libraries and static libraries use the same namespace, and
8422 # are all built from PIC.
8425 test "$enable_shared" = yes && enable_static=no
8426 if test -n "$RANLIB"; then
8427 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8428 postinstall_cmds='$RANLIB $lib'
8433 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8434 test "$enable_shared" = yes && enable_static=no
8437 darwin* | rhapsody*)
8438 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8439 archive_cmds_need_lc=no
8441 rhapsody* | darwin1.[012])
8442 allow_undefined_flag='-undefined suppress'
8445 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8448 # FIXME: Relying on posixy $() will cause problems for
8449 # cross-compilation, but unfortunately the echo tests do not
8450 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8451 # `"' quotes if we put them in here... so don't!
8452 output_verbose_link_cmd='echo'
8453 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8454 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8455 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8456 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}'
8457 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8459 hardcode_automatic=yes
8460 hardcode_shlibpath_var=unsupported
8461 whole_archive_flag_spec='-all_load $convenience'
8462 link_all_deplibs=yes
8466 echo "$as_me:$LINENO: result: $enable_shared" >&5
8467 echo "${ECHO_T}$enable_shared" >&6
8469 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8470 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8471 # Make sure either enable_shared or enable_static is yes.
8472 test "$enable_shared" = yes || enable_static=yes
8473 echo "$as_me:$LINENO: result: $enable_static" >&5
8474 echo "${ECHO_T}$enable_static" >&6
8476 # The else clause should only fire when bootstrapping the
8477 # libtool distribution, otherwise you forgot to ship ltmain.sh
8478 # with your package, and you will get complaints that there are
8479 # no rules to generate ltmain.sh.
8480 if test -f "$ltmain"; then
8481 # See if we are running on zsh, and set the options which allow our commands through
8482 # without removal of \ escapes.
8483 if test -n "${ZSH_VERSION+set}" ; then
8484 setopt NO_GLOB_SUBST
8486 # Now quote all the things that may contain metacharacters while being
8487 # careful not to overquote the AC_SUBSTed values. We take copies of the
8488 # variables and quote the copies for generation of the libtool script.
8489 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8490 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8491 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8492 deplibs_check_method reload_flag reload_cmds need_locks \
8493 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8494 lt_cv_sys_global_symbol_to_c_name_address \
8495 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8496 old_postinstall_cmds old_postuninstall_cmds \
8500 lt_prog_compiler_wl \
8501 lt_prog_compiler_pic \
8502 lt_prog_compiler_static \
8503 lt_prog_compiler_no_builtin_flag \
8504 export_dynamic_flag_spec \
8505 thread_safe_flag_spec \
8506 whole_archive_flag_spec \
8507 enable_shared_with_static_runtimes \
8509 old_archive_from_new_cmds \
8514 compiler_lib_search_path \
8516 archive_expsym_cmds \
8518 postuninstall_cmds \
8519 old_archive_from_expsyms_cmds \
8520 allow_undefined_flag \
8522 export_symbols_cmds \
8523 hardcode_libdir_flag_spec \
8524 hardcode_libdir_flag_spec_ld \
8525 hardcode_libdir_separator \
8526 hardcode_automatic \
8528 module_expsym_cmds \
8529 lt_cv_prog_compiler_c_o \
8534 old_archive_cmds | \
8535 old_archive_from_new_cmds | \
8537 archive_expsym_cmds | \
8539 module_expsym_cmds | \
8540 old_archive_from_expsyms_cmds | \
8541 export_symbols_cmds | \
8542 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8543 postinstall_cmds | postuninstall_cmds | \
8544 old_postinstall_cmds | old_postuninstall_cmds | \
8545 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8546 # Double-quote double-evaled strings.
8547 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8550 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8556 *'\$0 --fallback-echo"')
8557 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8562 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8564 { echo "$as_me:$LINENO: creating $ofile" >&5
8565 echo "$as_me: creating $ofile" >&6;}
8567 cat <<__EOF__ >> "$cfgfile"
8570 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8571 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8572 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8574 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8575 # Free Software Foundation, Inc.
8577 # This file is part of GNU Libtool:
8578 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8580 # This program is free software; you can redistribute it and/or modify
8581 # it under the terms of the GNU General Public License as published by
8582 # the Free Software Foundation; either version 2 of the License, or
8583 # (at your option) any later version.
8585 # This program is distributed in the hope that it will be useful, but
8586 # WITHOUT ANY WARRANTY; without even the implied warranty of
8587 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8588 # General Public License for more details.
8590 # You should have received a copy of the GNU General Public License
8591 # along with this program; if not, write to the Free Software
8592 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8594 # As a special exception to the GNU General Public License, if you
8595 # distribute this file as part of a program that contains a
8596 # configuration script generated by Autoconf, you may include it under
8597 # the same distribution terms that you use for the rest of that program.
8599 # A sed program that does not truncate output.
8602 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8603 Xsed="$SED -e s/^X//"
8605 # The HP-UX ksh and POSIX shell print the target directory to stdout
8607 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8609 # The names of the tagged configurations supported by this script.
8612 # ### BEGIN LIBTOOL CONFIG
8614 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8616 # Shell to use when invoking shell scripts.
8619 # Whether or not to build shared libraries.
8620 build_libtool_libs=$enable_shared
8622 # Whether or not to build static libraries.
8623 build_old_libs=$enable_static
8625 # Whether or not to add -lc for building shared libraries.
8626 build_libtool_need_lc=$archive_cmds_need_lc
8628 # Whether or not to disallow shared libs when runtime libs are static
8629 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8631 # Whether or not to optimize for fast installation.
8632 fast_install=$enable_fast_install
8635 host_alias=$host_alias
8638 # An echo program that does not interpret backslashes.
8643 AR_FLAGS=$lt_AR_FLAGS
8648 # A language-specific compiler.
8651 # Is the compiler the GNU C compiler?
8657 # The linker used to build libraries.
8660 # Whether we need hard or soft links.
8663 # A BSD-compatible nm program.
8666 # A symbol stripping program
8669 # Used to examine libraries when file_magic_cmd begins "file"
8670 MAGIC_CMD=$MAGIC_CMD
8672 # Used on cygwin: DLL creation program.
8675 # Used on cygwin: object dumper.
8678 # Used on cygwin: assembler.
8681 # The name of the directory that contains temporary libtool files.
8684 # How to create reloadable object files.
8685 reload_flag=$lt_reload_flag
8686 reload_cmds=$lt_reload_cmds
8688 # How to pass a linker flag through the compiler.
8689 wl=$lt_lt_prog_compiler_wl
8691 # Object file suffix (normally "o").
8694 # Old archive suffix (normally "a").
8697 # Shared library suffix (normally ".so").
8700 # Executable file suffix (normally "").
8703 # Additional compiler flags for building library objects.
8704 pic_flag=$lt_lt_prog_compiler_pic
8707 # What is the maximum length of a command?
8708 max_cmd_len=$lt_cv_sys_max_cmd_len
8710 # Does compiler simultaneously support -c and -o options?
8711 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8713 # Must we lock files when doing compilation ?
8714 need_locks=$lt_need_locks
8716 # Do we need the lib prefix for modules?
8717 need_lib_prefix=$need_lib_prefix
8719 # Do we need a version for libraries?
8720 need_version=$need_version
8722 # Whether dlopen is supported.
8723 dlopen_support=$enable_dlopen
8725 # Whether dlopen of programs is supported.
8726 dlopen_self=$enable_dlopen_self
8728 # Whether dlopen of statically linked programs is supported.
8729 dlopen_self_static=$enable_dlopen_self_static
8731 # Compiler flag to prevent dynamic linking.
8732 link_static_flag=$lt_lt_prog_compiler_static
8734 # Compiler flag to turn off builtin functions.
8735 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8737 # Compiler flag to allow reflexive dlopens.
8738 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8740 # Compiler flag to generate shared objects directly from archives.
8741 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8743 # Compiler flag to generate thread-safe objects.
8744 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8746 # Library versioning type.
8747 version_type=$version_type
8749 # Format of library name prefix.
8750 libname_spec=$lt_libname_spec
8752 # List of archive names. First name is the real one, the rest are links.
8753 # The last name is the one that the linker finds with -lNAME.
8754 library_names_spec=$lt_library_names_spec
8756 # The coded name of the library, if different from the real name.
8757 soname_spec=$lt_soname_spec
8759 # Commands used to build and install an old-style archive.
8761 old_archive_cmds=$lt_old_archive_cmds
8762 old_postinstall_cmds=$lt_old_postinstall_cmds
8763 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8765 # Create an old-style archive from a shared archive.
8766 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8768 # Create a temporary old-style archive to link instead of a shared archive.
8769 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8771 # Commands used to build and install a shared archive.
8772 archive_cmds=$lt_archive_cmds
8773 archive_expsym_cmds=$lt_archive_expsym_cmds
8774 postinstall_cmds=$lt_postinstall_cmds
8775 postuninstall_cmds=$lt_postuninstall_cmds
8777 # Commands used to build a loadable module (assumed same as above if empty)
8778 module_cmds=$lt_module_cmds
8779 module_expsym_cmds=$lt_module_expsym_cmds
8781 # Commands to strip libraries.
8782 old_striplib=$lt_old_striplib
8783 striplib=$lt_striplib
8785 # Dependencies to place before the objects being linked to create a
8787 predep_objects=$lt_predep_objects
8789 # Dependencies to place after the objects being linked to create a
8791 postdep_objects=$lt_postdep_objects
8793 # Dependencies to place before the objects being linked to create a
8797 # Dependencies to place after the objects being linked to create a
8799 postdeps=$lt_postdeps
8801 # The library search path used internally by the compiler when linking
8803 compiler_lib_search_path=$lt_compiler_lib_search_path
8805 # Method to check whether dependent libraries are shared objects.
8806 deplibs_check_method=$lt_deplibs_check_method
8808 # Command to use when deplibs_check_method == file_magic.
8809 file_magic_cmd=$lt_file_magic_cmd
8811 # Flag that allows shared libraries with undefined symbols to be built.
8812 allow_undefined_flag=$lt_allow_undefined_flag
8814 # Flag that forces no undefined symbols.
8815 no_undefined_flag=$lt_no_undefined_flag
8817 # Commands used to finish a libtool library installation in a directory.
8818 finish_cmds=$lt_finish_cmds
8820 # Same as above, but a single script fragment to be evaled but not shown.
8821 finish_eval=$lt_finish_eval
8823 # Take the output of nm and produce a listing of raw symbols and C names.
8824 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8826 # Transform the output of nm in a proper C declaration
8827 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8829 # Transform the output of nm in a C name address pair
8830 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8832 # This is the shared library runtime path variable.
8833 runpath_var=$runpath_var
8835 # This is the shared library path variable.
8836 shlibpath_var=$shlibpath_var
8838 # Is shlibpath searched before the hard-coded library search path?
8839 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8841 # How to hardcode a shared library path into an executable.
8842 hardcode_action=$hardcode_action
8844 # Whether we should hardcode library paths into libraries.
8845 hardcode_into_libs=$hardcode_into_libs
8847 # Flag to hardcode \$libdir into a binary during linking.
8848 # This must work even if \$libdir does not exist.
8849 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8851 # If ld is used when linking, flag to hardcode \$libdir into
8852 # a binary during linking. This must work even if \$libdir does
8854 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8856 # Whether we need a single -rpath flag with a separated argument.
8857 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8859 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8861 hardcode_direct=$hardcode_direct
8863 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8865 hardcode_minus_L=$hardcode_minus_L
8867 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8868 # the resulting binary.
8869 hardcode_shlibpath_var=$hardcode_shlibpath_var
8871 # Set to yes if building a shared library automatically hardcodes DIR into the library
8872 # and all subsequent libraries and executables linked against it.
8873 hardcode_automatic=$hardcode_automatic
8875 # Variables whose values should be saved in libtool wrapper scripts and
8876 # restored at relink time.
8877 variables_saved_for_relink="$variables_saved_for_relink"
8879 # Whether libtool must link a program against all its dependency libraries.
8880 link_all_deplibs=$link_all_deplibs
8882 # Compile-time system search path for libraries
8883 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8885 # Run-time system search path for libraries
8886 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8888 # Fix the shell variable \$srcfile for the compiler.
8889 fix_srcfile_path="$fix_srcfile_path"
8891 # Set to yes if exported symbols are required.
8892 always_export_symbols=$always_export_symbols
8894 # The commands to list exported symbols.
8895 export_symbols_cmds=$lt_export_symbols_cmds
8897 # The commands to extract the exported symbol list from a shared archive.
8898 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8900 # Symbols that should not be listed in the preloaded symbols.
8901 exclude_expsyms=$lt_exclude_expsyms
8903 # Symbols that must always be exported.
8904 include_expsyms=$lt_include_expsyms
8906 # ### END LIBTOOL CONFIG
8913 cat <<\EOF >> "$cfgfile"
8915 # AIX sometimes has problems with the GCC collect2 program. For some
8916 # reason, if we set the COLLECT_NAMES environment variable, the problems
8917 # vanish in a puff of smoke.
8918 if test "X${COLLECT_NAMES+set}" != Xset; then
8920 export COLLECT_NAMES
8926 # We use sed instead of cat because bash on DJGPP gets confused if
8927 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8928 # text mode, it properly converts lines to CR/LF. This bash problem
8929 # is reportedly fixed, but why not run on old versions too?
8930 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8932 mv -f "$cfgfile" "$ofile" || \
8933 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8937 # If there is no Makefile yet, we rely on a make rule to execute
8938 # `config.status --recheck' to rerun these tests and create the
8939 # libtool script then.
8940 test -f Makefile && make "$ltmain"
8945 ac_cpp='$CPP $CPPFLAGS'
8946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8953 # Check whether --with-tags or --without-tags was given.
8954 if test "${with_tags+set}" = set; then
8955 withval="$with_tags"
8959 if test -f "$ltmain" && test -n "$tagnames"; then
8960 if test ! -f "${ofile}"; then
8961 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8962 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8965 if test -z "$LTCC"; then
8966 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8967 if test -z "$LTCC"; then
8968 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8969 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8971 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8972 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8976 # Extract list of available tagged configurations in $ofile.
8977 # Note that this assumes the entire list is on one line.
8978 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8980 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8981 for tagname in $tagnames; do
8983 # Check whether tagname contains only valid characters
8984 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8986 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8987 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8988 { (exit 1); exit 1; }; }
8992 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8994 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8995 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8996 { (exit 1); exit 1; }; }
8999 # Update the list of available tags.
9000 if test -n "$tagname"; then
9001 echo appending configuration tag \"$tagname\" to $ofile
9005 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9007 ac_cpp='$CXXCPP $CPPFLAGS'
9008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9015 archive_cmds_need_lc_CXX=no
9016 allow_undefined_flag_CXX=
9017 always_export_symbols_CXX=no
9018 archive_expsym_cmds_CXX=
9019 export_dynamic_flag_spec_CXX=
9020 hardcode_direct_CXX=no
9021 hardcode_libdir_flag_spec_CXX=
9022 hardcode_libdir_flag_spec_ld_CXX=
9023 hardcode_libdir_separator_CXX=
9024 hardcode_minus_L_CXX=no
9025 hardcode_automatic_CXX=no
9027 module_expsym_cmds_CXX=
9028 link_all_deplibs_CXX=unknown
9029 old_archive_cmds_CXX=$old_archive_cmds
9030 no_undefined_flag_CXX=
9031 whole_archive_flag_spec_CXX=
9032 enable_shared_with_static_runtimes_CXX=no
9034 # Dependencies to place before and after the object being linked:
9036 postdep_objects_CXX=
9039 compiler_lib_search_path_CXX=
9041 # Source file extension for C++ test sources.
9044 # Object file extension for compiled C++ test sources.
9048 # Code to be used in simple compile tests
9049 lt_simple_compile_test_code="int some_variable = 0;\n"
9051 # Code to be used in simple link tests
9052 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9054 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9056 # If no C compiler was specified, use CC.
9059 # Allow CC to be a program name with arguments.
9063 # Allow CC to be a program name with arguments.
9068 lt_save_with_gnu_ld=$with_gnu_ld
9069 lt_save_path_LD=$lt_cv_path_LD
9070 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9071 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9073 unset lt_cv_prog_gnu_ld
9075 if test -n "${lt_cv_path_LDCXX+set}"; then
9076 lt_cv_path_LD=$lt_cv_path_LDCXX
9080 test -z "${LDCXX+set}" || LD=$LDCXX
9084 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9086 # We don't want -fno-exception wen compiling C++ code, so set the
9087 # no_builtin_flag separately
9088 if test "$GXX" = yes; then
9089 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9091 lt_prog_compiler_no_builtin_flag_CXX=
9094 if test "$GXX" = yes; then
9095 # Set up default GNU C++ configuration
9098 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9099 if test "${with_gnu_ld+set}" = set; then
9100 withval="$with_gnu_ld"
9101 test "$withval" = no || with_gnu_ld=yes
9106 if test "$GCC" = yes; then
9107 # Check if gcc -print-prog-name=ld gives a path.
9108 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9109 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9112 # gcc leaves a trailing carriage return which upsets mingw
9113 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9115 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9118 # Accept absolute paths.
9120 re_direlt='/[^/][^/]*/\.\./'
9121 # Canonicalize the path of ld
9122 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9123 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9124 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9126 test -z "$LD" && LD="$ac_prog"
9129 # If it fails, then pretend we aren't using GCC.
9133 # If it is relative, then search for the first ld in PATH.
9137 elif test "$with_gnu_ld" = yes; then
9138 echo "$as_me:$LINENO: checking for GNU ld" >&5
9139 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9141 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9142 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9144 if test "${lt_cv_path_LD+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 if test -z "$LD"; then
9148 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9149 for ac_dir in $PATH; do
9151 test -z "$ac_dir" && ac_dir=.
9152 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9153 lt_cv_path_LD="$ac_dir/$ac_prog"
9154 # Check to see if the program is GNU ld. I'd rather use --version,
9155 # but apparently some GNU ld's only accept -v.
9156 # Break only if it was the GNU/non-GNU ld that we prefer.
9157 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9158 *GNU* | *'with BFD'*)
9159 test "$with_gnu_ld" != no && break
9162 test "$with_gnu_ld" != yes && break
9169 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9174 if test -n "$LD"; then
9175 echo "$as_me:$LINENO: result: $LD" >&5
9176 echo "${ECHO_T}$LD" >&6
9178 echo "$as_me:$LINENO: result: no" >&5
9179 echo "${ECHO_T}no" >&6
9181 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9182 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9183 { (exit 1); exit 1; }; }
9184 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9185 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9186 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9189 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9190 case `"$LD" -v 2>&1 </dev/null` in
9191 *GNU* | *'with BFD'*)
9192 lt_cv_prog_gnu_ld=yes
9195 lt_cv_prog_gnu_ld=no
9199 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9200 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9201 with_gnu_ld=$lt_cv_prog_gnu_ld
9205 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9206 # archiving commands below assume that GNU ld is being used.
9207 if test "$with_gnu_ld" = yes; then
9208 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9209 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'
9211 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9212 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9214 # If archive_cmds runs LD, not CC, wlarc should be empty
9215 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9216 # investigate it a little bit more. (MM)
9219 # ancient GNU ld didn't support --whole-archive et. al.
9220 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9221 grep 'no-whole-archive' > /dev/null; then
9222 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9224 whole_archive_flag_spec_CXX=
9230 # A generic and very simple default shared library creation
9231 # command for GNU C++ for the case where it uses the native
9232 # linker, instead of GNU ld. If possible, this setting should
9233 # overridden to take advantage of the native linker features on
9234 # the platform it is being used on.
9235 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9238 # Commands to make compiler produce verbose output that lists
9239 # what "hidden" libraries, object files and flags are used when
9240 # linking a shared library.
9241 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9249 # PORTME: fill in a description of your system's C++ link characteristics
9250 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9251 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9255 # FIXME: insert proper C++ library support
9259 if test "$host_cpu" = ia64; then
9260 # On IA64, the linker does run time linking by default, so we don't
9261 # have to do anything special.
9262 aix_use_runtimelinking=no
9263 exp_sym_flag='-Bexport'
9266 aix_use_runtimelinking=no
9268 # Test if we are trying to use run time linking or normal
9269 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9270 # need to do runtime linking.
9271 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9272 for ld_flag in $LDFLAGS; do
9275 aix_use_runtimelinking=yes
9282 exp_sym_flag='-bexport'
9283 no_entry_flag='-bnoentry'
9286 # When large executables or shared objects are built, AIX ld can
9287 # have problems creating the table of contents. If linking a library
9288 # or program results in "error TOC overflow" add -mminimal-toc to
9289 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9290 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9293 hardcode_direct_CXX=yes
9294 hardcode_libdir_separator_CXX=':'
9295 link_all_deplibs_CXX=yes
9297 if test "$GXX" = yes; then
9298 case $host_os in aix4.012|aix4.012.*)
9299 # We only want to do this on AIX 4.2 and lower, the check
9300 # below for broken collect2 doesn't work under 4.3+
9301 collect2name=`${CC} -print-prog-name=collect2`
9302 if test -f "$collect2name" && \
9303 strings "$collect2name" | grep resolve_lib_name >/dev/null
9305 # We have reworked collect2
9306 hardcode_direct_CXX=yes
9308 # We have old collect2
9309 hardcode_direct_CXX=unsupported
9310 # It fails to find uninstalled libraries when the uninstalled
9311 # path is not listed in the libpath. Setting hardcode_minus_L
9312 # to unsupported forces relinking
9313 hardcode_minus_L_CXX=yes
9314 hardcode_libdir_flag_spec_CXX='-L$libdir'
9315 hardcode_libdir_separator_CXX=
9318 shared_flag='-shared'
9321 if test "$host_cpu" = ia64; then
9322 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9323 # chokes on -Wl,-G. The following line is correct:
9326 if test "$aix_use_runtimelinking" = yes; then
9327 shared_flag='${wl}-G'
9329 shared_flag='${wl}-bM:SRE'
9334 # It seems that -bexpall does not export symbols beginning with
9335 # underscore (_), so it is better to generate a list of symbols to export.
9336 always_export_symbols_CXX=yes
9337 if test "$aix_use_runtimelinking" = yes; then
9338 # Warning - without using the other runtime loading flags (-brtl),
9339 # -berok will link without error, but may produce a broken library.
9340 allow_undefined_flag_CXX='-berok'
9341 # Determine the default libpath from the value encoded in an empty executable.
9342 cat >conftest.$ac_ext <<_ACEOF
9343 #line $LINENO "configure"
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h. */
9358 rm -f conftest.$ac_objext conftest$ac_exeext
9359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9360 (eval $ac_link) 2>&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try='test -s conftest$ac_exeext'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; }; then
9371 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9373 # Check for a 64-bit object if we didn't find anything.
9374 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; }
9377 echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9382 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9384 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9386 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"
9388 if test "$host_cpu" = ia64; then
9389 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9390 allow_undefined_flag_CXX="-z nodefs"
9391 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"
9393 # Determine the default libpath from the value encoded in an empty executable.
9394 cat >conftest.$ac_ext <<_ACEOF
9395 #line $LINENO "configure"
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9410 rm -f conftest.$ac_objext conftest$ac_exeext
9411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412 (eval $ac_link) 2>&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } &&
9416 { ac_try='test -s conftest$ac_exeext'
9417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; }; then
9423 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9425 # Check for a 64-bit object if we didn't find anything.
9426 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; }
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9434 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9436 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9437 # Warning - without using the other run time loading flags,
9438 # -berok will link without error, but may produce a broken library.
9439 no_undefined_flag_CXX=' ${wl}-bernotok'
9440 allow_undefined_flag_CXX=' ${wl}-berok'
9441 # -bexpall does not export symbols beginning with underscore (_)
9442 always_export_symbols_CXX=yes
9443 # Exported symbols can be pulled into shared objects from archives
9444 whole_archive_flag_spec_CXX=' '
9445 archive_cmds_need_lc_CXX=yes
9446 # This is similar to how AIX traditionally builds it's shared libraries.
9447 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'
9452 case $cc_basename in
9454 # FIXME: insert proper C++ library support
9460 cygwin* | mingw* | pw32*)
9461 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9462 # as there is no search path for DLLs.
9463 hardcode_libdir_flag_spec_CXX='-L$libdir'
9464 allow_undefined_flag_CXX=unsupported
9465 always_export_symbols_CXX=no
9466 enable_shared_with_static_runtimes_CXX=yes
9468 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9469 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'
9470 # If the export-symbols file already is a .def file (1st line
9471 # is EXPORTS), use it as is; otherwise, prepend...
9472 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9473 cp $export_symbols $output_objdir/$soname.def;
9475 echo EXPORTS > $output_objdir/$soname.def;
9476 cat $export_symbols >> $output_objdir/$soname.def;
9478 $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'
9484 darwin* | rhapsody*)
9485 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9486 archive_cmds_need_lc_CXX=no
9488 rhapsody* | darwin1.[012])
9489 allow_undefined_flag_CXX='-undefined suppress'
9492 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9495 lt_int_apple_cc_single_mod=no
9496 output_verbose_link_cmd='echo'
9497 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9498 lt_int_apple_cc_single_mod=yes
9500 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9501 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9503 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9505 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9507 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9508 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9509 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}'
9511 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9513 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9514 hardcode_direct_CXX=no
9515 hardcode_automatic_CXX=yes
9516 hardcode_shlibpath_var_CXX=unsupported
9517 whole_archive_flag_spec_CXX='-all_load $convenience'
9518 link_all_deplibs_CXX=yes
9523 case $cc_basename in
9525 # FIXME: insert proper C++ library support
9529 # Green Hills C++ Compiler
9530 # FIXME: insert proper C++ library support
9534 # FIXME: insert proper C++ library support
9540 # C++ shared libraries reported to be fairly broken before switch to ELF
9544 archive_cmds_need_lc_CXX=no
9547 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9554 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9555 hardcode_libdir_separator_CXX=:
9556 export_dynamic_flag_spec_CXX='${wl}-E'
9557 hardcode_direct_CXX=yes
9558 hardcode_minus_L_CXX=yes # Not in the search PATH,
9559 # but as the default
9560 # location of the library.
9562 case $cc_basename in
9564 # FIXME: insert proper C++ library support
9568 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'
9569 # Commands to make compiler produce verbose output that lists
9570 # what "hidden" libraries, object files and flags are used when
9571 # linking a shared library.
9573 # There doesn't appear to be a way to prevent this compiler from
9574 # explicitly linking system object files so we need to strip them
9575 # from the output so that they don't get included in the library
9577 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9580 if test "$GXX" = yes; then
9581 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'
9583 # FIXME: insert proper C++ library support
9590 if test $with_gnu_ld = no; then
9593 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9594 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9595 hardcode_libdir_separator_CXX=:
9598 hardcode_libdir_flag_spec_CXX='-L$libdir'
9601 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9602 hardcode_libdir_separator_CXX=:
9603 export_dynamic_flag_spec_CXX='${wl}-E'
9609 hardcode_direct_CXX=no
9610 hardcode_shlibpath_var_CXX=no
9613 hardcode_direct_CXX=no
9614 hardcode_shlibpath_var_CXX=no
9615 hardcode_minus_L_CXX=yes # Not in the search PATH,
9616 # but as the default
9617 # location of the library.
9620 hardcode_direct_CXX=yes
9621 hardcode_minus_L_CXX=yes # Not in the search PATH,
9622 # but as the default
9623 # location of the library.
9627 case $cc_basename in
9629 # FIXME: insert proper C++ library support
9635 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9638 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9641 # Commands to make compiler produce verbose output that lists
9642 # what "hidden" libraries, object files and flags are used when
9643 # linking a shared library.
9645 # There doesn't appear to be a way to prevent this compiler from
9646 # explicitly linking system object files so we need to strip them
9647 # from the output so that they don't get included in the library
9649 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'
9652 if test "$GXX" = yes; then
9653 if test $with_gnu_ld = no; then
9656 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9659 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'
9664 # FIXME: insert proper C++ library support
9671 case $cc_basename in
9674 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'
9676 # Archives containing C++ object files must be created using
9677 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9678 # necessary to make sure instantiated templates are included
9680 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9683 if test "$GXX" = yes; then
9684 if test "$with_gnu_ld" = no; then
9685 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'
9687 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'
9690 link_all_deplibs_CXX=yes
9693 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9694 hardcode_libdir_separator_CXX=:
9697 case $cc_basename in
9699 # Kuck and Associates, Inc. (KAI) C++ Compiler
9701 # KCC will only create a shared library if the output file
9702 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9703 # to its proper name (with version) after linking.
9704 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'
9705 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'
9706 # Commands to make compiler produce verbose output that lists
9707 # what "hidden" libraries, object files and flags are used when
9708 # linking a shared library.
9710 # There doesn't appear to be a way to prevent this compiler from
9711 # explicitly linking system object files so we need to strip them
9712 # from the output so that they don't get included in the library
9714 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'
9716 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9717 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9719 # Archives containing C++ object files must be created using
9720 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9721 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9726 archive_cmds_need_lc_CXX=no
9727 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9728 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'
9729 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9730 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9731 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9735 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9736 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'
9738 runpath_var=LD_RUN_PATH
9739 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9740 hardcode_libdir_separator_CXX=:
9742 # Commands to make compiler produce verbose output that lists
9743 # what "hidden" libraries, object files and flags are used when
9744 # linking a shared library.
9746 # There doesn't appear to be a way to prevent this compiler from
9747 # explicitly linking system object files so we need to strip them
9748 # from the output so that they don't get included in the library
9750 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'
9755 # FIXME: insert proper C++ library support
9759 # FIXME: insert proper C++ library support
9763 case $cc_basename in
9765 # FIXME: insert proper C++ library support
9769 # FIXME: insert proper C++ library support
9775 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9776 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9778 hardcode_libdir_flag_spec_CXX='-R$libdir'
9779 hardcode_direct_CXX=yes
9780 hardcode_shlibpath_var_CXX=no
9782 # Workaround some broken pre-1.5 toolchains
9783 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9786 case $cc_basename in
9788 # Kuck and Associates, Inc. (KAI) C++ Compiler
9790 # KCC will only create a shared library if the output file
9791 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9792 # to its proper name (with version) after linking.
9793 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'
9795 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9796 hardcode_libdir_separator_CXX=:
9798 # Archives containing C++ object files must be created using
9799 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9800 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9804 # Rational C++ 2.4.1
9805 # FIXME: insert proper C++ library support
9809 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9810 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'
9812 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9813 hardcode_libdir_separator_CXX=:
9815 # Commands to make compiler produce verbose output that lists
9816 # what "hidden" libraries, object files and flags are used when
9817 # linking a shared library.
9819 # There doesn't appear to be a way to prevent this compiler from
9820 # explicitly linking system object files so we need to strip them
9821 # from the output so that they don't get included in the library
9823 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'
9826 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9827 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9828 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'
9830 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9831 hardcode_libdir_separator_CXX=:
9833 # Commands to make compiler produce verbose output that lists
9834 # what "hidden" libraries, object files and flags are used when
9835 # linking a shared library.
9836 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9839 # FIXME: insert proper C++ library support
9846 case $cc_basename in
9848 # Kuck and Associates, Inc. (KAI) C++ Compiler
9850 # KCC will only create a shared library if the output file
9851 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9852 # to its proper name (with version) after linking.
9853 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'
9855 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9856 hardcode_libdir_separator_CXX=:
9858 # Archives containing C++ object files must be created using
9859 # the KAI C++ compiler.
9860 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9863 # Rational C++ 2.4.1
9864 # FIXME: insert proper C++ library support
9868 allow_undefined_flag_CXX=' -expect_unresolved \*'
9869 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'
9870 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9871 echo "-hidden">> $lib.exp~
9872 $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~
9875 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9876 hardcode_libdir_separator_CXX=:
9878 # Commands to make compiler produce verbose output that lists
9879 # what "hidden" libraries, object files and flags are used when
9880 # linking a shared library.
9882 # There doesn't appear to be a way to prevent this compiler from
9883 # explicitly linking system object files so we need to strip them
9884 # from the output so that they don't get included in the library
9886 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'
9889 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9890 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9891 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'
9893 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9894 hardcode_libdir_separator_CXX=:
9896 # Commands to make compiler produce verbose output that lists
9897 # what "hidden" libraries, object files and flags are used when
9898 # linking a shared library.
9899 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9902 # FIXME: insert proper C++ library support
9909 # FIXME: insert proper C++ library support
9913 archive_cmds_need_lc_CXX=no
9914 case $cc_basename in
9916 # FIXME: insert proper C++ library support
9920 # FIXME: insert proper C++ library support
9926 case $cc_basename in
9929 # FIXME: insert proper C++ library support
9934 # FIXME: insert proper C++ library support
9938 # FIXME: insert proper C++ library support
9944 case $cc_basename in
9946 # Sun C++ 4.2, 5.x and Centerline C++
9947 no_undefined_flag_CXX=' -zdefs'
9948 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9949 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9950 $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'
9952 hardcode_libdir_flag_spec_CXX='-R$libdir'
9953 hardcode_shlibpath_var_CXX=no
9955 solaris2.0-5 | solaris2.0-5.*) ;;
9957 # The C++ compiler is used as linker so we must use $wl
9958 # flag to pass the commands to the underlying system
9960 # Supported since Solaris 2.6 (maybe 2.5.1?)
9961 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9964 link_all_deplibs_CXX=yes
9966 # Commands to make compiler produce verbose output that lists
9967 # what "hidden" libraries, object files and flags are used when
9968 # linking a shared library.
9970 # There doesn't appear to be a way to prevent this compiler from
9971 # explicitly linking system object files so we need to strip them
9972 # from the output so that they don't get included in the library
9974 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'
9976 # Archives containing C++ object files must be created using
9977 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9978 # necessary to make sure instantiated templates are included
9980 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9983 # Green Hills C++ Compiler
9984 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9986 # The C++ compiler must be used to create the archive.
9987 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9990 # GNU C++ compiler with Solaris linker
9991 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9992 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9993 if $CC --version | grep -v '^2\.7' > /dev/null; then
9994 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9995 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9996 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9998 # Commands to make compiler produce verbose output that lists
9999 # what "hidden" libraries, object files and flags are used when
10000 # linking a shared library.
10001 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10003 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10005 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10006 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10007 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10009 # Commands to make compiler produce verbose output that lists
10010 # what "hidden" libraries, object files and flags are used when
10011 # linking a shared library.
10012 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10015 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10020 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10021 archive_cmds_need_lc_CXX=no
10024 case $cc_basename in
10026 # NonStop-UX NCC 3.20
10027 # FIXME: insert proper C++ library support
10031 # FIXME: insert proper C++ library support
10037 # FIXME: insert proper C++ library support
10041 # FIXME: insert proper C++ library support
10045 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10046 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10047 test "$ld_shlibs_CXX" = no && can_build_shared=no
10053 cat > conftest.$ac_ext <<EOF
10057 Foo (void) { a = 0; }
10063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10064 (eval $ac_compile) 2>&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; then
10068 # Parse the compiler output and extract the necessary
10069 # objects, libraries and library flags.
10071 # Sentinel used to keep track of whether or not we are before
10072 # the conftest object file.
10073 pre_test_object_deps_done=no
10075 # The `*' in the case matches for architectures that use `case' in
10076 # $output_verbose_cmd can trigger glob expansion during the loop
10077 # eval without this substitution.
10078 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10080 for p in `eval $output_verbose_link_cmd`; do
10084 # Some compilers place space between "-{L,R}" and the path.
10085 # Remove the space.
10086 if test $p = "-L" \
10087 || test $p = "-R"; then
10094 if test "$pre_test_object_deps_done" = no; then
10097 # Internal compiler library paths should come after those
10098 # provided the user. The postdeps already come after the
10099 # user supplied libs so there is no need to process them.
10100 if test -z "$compiler_lib_search_path_CXX"; then
10101 compiler_lib_search_path_CXX="${prev}${p}"
10103 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10106 # The "-l" case would never come before the object being
10107 # linked, so don't bother handling this case.
10110 if test -z "$postdeps_CXX"; then
10111 postdeps_CXX="${prev}${p}"
10113 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10119 # This assumes that the test object file only shows up
10120 # once in the compiler output.
10121 if test "$p" = "conftest.$objext"; then
10122 pre_test_object_deps_done=yes
10126 if test "$pre_test_object_deps_done" = no; then
10127 if test -z "$predep_objects_CXX"; then
10128 predep_objects_CXX="$p"
10130 predep_objects_CXX="$predep_objects_CXX $p"
10133 if test -z "$postdep_objects_CXX"; then
10134 postdep_objects_CXX="$p"
10136 postdep_objects_CXX="$postdep_objects_CXX $p"
10141 *) ;; # Ignore the rest.
10149 echo "libtool.m4: error: problem compiling CXX test program"
10152 $rm -f confest.$objext
10154 case " $postdeps_CXX " in
10155 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10158 lt_prog_compiler_wl_CXX=
10159 lt_prog_compiler_pic_CXX=
10160 lt_prog_compiler_static_CXX=
10162 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10163 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10165 # C++ specific cases for pic, static, wl, etc.
10166 if test "$GXX" = yes; then
10167 lt_prog_compiler_wl_CXX='-Wl,'
10168 lt_prog_compiler_static_CXX='-static'
10172 # All AIX code is PIC.
10173 if test "$host_cpu" = ia64; then
10174 # AIX 5 now supports IA64 processor
10175 lt_prog_compiler_static_CXX='-Bstatic'
10179 # FIXME: we need at least 68020 code to build shared libraries, but
10180 # adding the `-m68020' flag to GCC prevents building anything better,
10182 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10184 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10185 # PIC is the default for these OSes.
10187 mingw* | os2* | pw32*)
10188 # This hack is so that the source file can tell whether it is being
10189 # built for inclusion in a dll (and should export symbols for example).
10190 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10192 darwin* | rhapsody*)
10193 # PIC is the default on this platform
10194 # Common symbols not allowed in MH_DYLIB files
10195 lt_prog_compiler_pic_CXX='-fno-common'
10198 # DJGPP does not support shared libraries at all
10199 lt_prog_compiler_pic_CXX=
10202 if test -d /usr/nec; then
10203 lt_prog_compiler_pic_CXX=-Kconform_pic
10207 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10208 # not for PA HP-UX.
10209 case "$host_cpu" in
10213 lt_prog_compiler_pic_CXX='-fPIC'
10218 lt_prog_compiler_pic_CXX='-fPIC'
10224 # All AIX code is PIC.
10225 if test "$host_cpu" = ia64; then
10226 # AIX 5 now supports IA64 processor
10227 lt_prog_compiler_static_CXX='-Bstatic'
10229 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10233 case $cc_basename in
10235 # Green Hills C++ Compiler
10236 # _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"
10241 case $cc_basename in
10243 lt_prog_compiler_pic_CXX='-KPIC'
10246 # Green Hills C++ Compiler
10247 lt_prog_compiler_pic_CXX='-pic'
10254 # FreeBSD uses GNU C++
10256 hpux9* | hpux10* | hpux11*)
10257 case $cc_basename in
10259 lt_prog_compiler_wl_CXX='-Wl,'
10260 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10261 if test "$host_cpu" != ia64; then
10262 lt_prog_compiler_pic_CXX='+Z'
10266 lt_prog_compiler_wl_CXX='-Wl,'
10267 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10268 case "$host_cpu" in
10273 lt_prog_compiler_pic_CXX='+Z'
10281 irix5* | irix6* | nonstopux*)
10282 case $cc_basename in
10284 lt_prog_compiler_wl_CXX='-Wl,'
10285 lt_prog_compiler_static_CXX='-non_shared'
10286 # CC pic flag -KPIC is the default.
10293 case $cc_basename in
10296 lt_prog_compiler_wl_CXX='--backend -Wl,'
10297 lt_prog_compiler_pic_CXX='-fPIC'
10301 lt_prog_compiler_wl_CXX='-Wl,'
10302 lt_prog_compiler_pic_CXX='-KPIC'
10303 lt_prog_compiler_static_CXX='-static'
10307 # Make sure the PIC flag is empty. It appears that all Alpha
10308 # Linux and Compaq Tru64 Unix objects are PIC.
10309 lt_prog_compiler_pic_CXX=
10310 lt_prog_compiler_static_CXX='-non_shared'
10321 case $cc_basename in
10323 lt_prog_compiler_pic_CXX='-W c,exportall'
10331 osf3* | osf4* | osf5*)
10332 case $cc_basename in
10334 lt_prog_compiler_wl_CXX='--backend -Wl,'
10337 # Rational C++ 2.4.1
10338 lt_prog_compiler_pic_CXX='-pic'
10341 # Digital/Compaq C++
10342 lt_prog_compiler_wl_CXX='-Wl,'
10343 # Make sure the PIC flag is empty. It appears that all Alpha
10344 # Linux and Compaq Tru64 Unix objects are PIC.
10345 lt_prog_compiler_pic_CXX=
10346 lt_prog_compiler_static_CXX='-non_shared'
10355 case $cc_basename in
10357 lt_prog_compiler_pic_CXX='-fPIC'
10364 case $cc_basename in
10366 # Sun C++ 4.2, 5.x and Centerline C++
10367 lt_prog_compiler_pic_CXX='-KPIC'
10368 lt_prog_compiler_static_CXX='-Bstatic'
10369 lt_prog_compiler_wl_CXX='-Qoption ld '
10372 # Green Hills C++ Compiler
10373 lt_prog_compiler_pic_CXX='-PIC'
10380 case $cc_basename in
10383 lt_prog_compiler_pic_CXX='-pic'
10384 lt_prog_compiler_static_CXX='-Bstatic'
10388 lt_prog_compiler_pic_CXX='-pic'
10395 case $cc_basename in
10397 # NonStop-UX NCC 3.20
10398 lt_prog_compiler_pic_CXX='-KPIC'
10409 lt_prog_compiler_can_build_shared_CXX=no
10414 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10415 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10418 # Check to make sure the PIC flag actually works.
10420 if test -n "$lt_prog_compiler_pic_CXX"; then
10421 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10422 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10423 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10426 lt_prog_compiler_pic_works_CXX=no
10427 ac_outfile=conftest.$ac_objext
10428 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10429 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10430 # Insert the option either (1) after the last *FLAGS variable, or
10431 # (2) before a word containing "conftest.", or (3) at the end.
10432 # Note that $ac_compile itself does not contain backslashes and begins
10433 # with a dollar sign (not a hyphen), so the echo should work correctly.
10434 # The option is referenced via a variable to avoid confusing sed.
10435 lt_compile=`echo "$ac_compile" | $SED \
10436 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10438 -e 's:$: $lt_compiler_flag:'`
10439 (eval echo "\"\$as_me:10439: $lt_compile\"" >&5)
10440 (eval "$lt_compile" 2>conftest.err)
10442 cat conftest.err >&5
10443 echo "$as_me:10443: \$? = $ac_status" >&5
10444 if (exit $ac_status) && test -s "$ac_outfile"; then
10445 # The compiler can only warn and ignore the option if not recognized
10446 # So say no if there are warnings
10447 if test ! -s conftest.err; then
10448 lt_prog_compiler_pic_works_CXX=yes
10454 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10455 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10457 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10458 case $lt_prog_compiler_pic_CXX in
10460 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10463 lt_prog_compiler_pic_CXX=
10464 lt_prog_compiler_can_build_shared_CXX=no
10469 # For platforms which do not support PIC, -DPIC is meaningless:
10471 lt_prog_compiler_pic_CXX=
10474 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10478 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10479 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10480 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 lt_cv_prog_compiler_c_o_CXX=no
10484 $rm -r conftest 2>/dev/null
10488 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10490 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10491 # that will create temporary files in the current directory regardless of
10492 # the output directory. Thus, making CWD read-only will cause this test
10493 # to fail, enabling locking or at least warning the user not to do parallel
10497 lt_compiler_flag="-o out/conftest2.$ac_objext"
10498 # Insert the option either (1) after the last *FLAGS variable, or
10499 # (2) before a word containing "conftest.", or (3) at the end.
10500 # Note that $ac_compile itself does not contain backslashes and begins
10501 # with a dollar sign (not a hyphen), so the echo should work correctly.
10502 lt_compile=`echo "$ac_compile" | $SED \
10503 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10505 -e 's:$: $lt_compiler_flag:'`
10506 (eval echo "\"\$as_me:10506: $lt_compile\"" >&5)
10507 (eval "$lt_compile" 2>out/conftest.err)
10509 cat out/conftest.err >&5
10510 echo "$as_me:10510: \$? = $ac_status" >&5
10511 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10513 # The compiler can only warn and ignore the option if not recognized
10514 # So say no if there are warnings
10515 if test ! -s out/conftest.err; then
10516 lt_cv_prog_compiler_c_o_CXX=yes
10520 $rm conftest* out/*
10527 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10528 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10531 hard_links="nottested"
10532 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10533 # do not overwrite the value of need_locks provided by the user
10534 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10535 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10540 ln conftest.a conftest.b 2>&5 || hard_links=no
10541 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10542 echo "$as_me:$LINENO: result: $hard_links" >&5
10543 echo "${ECHO_T}$hard_links" >&6
10544 if test "$hard_links" = no; then
10545 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10546 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10553 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10554 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10556 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10559 # If we're using GNU nm, then we don't want the "-C" option.
10560 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10561 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10562 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'
10564 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'
10568 export_symbols_cmds_CXX="$ltdll_cmds"
10571 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10574 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10578 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10579 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10580 test "$ld_shlibs_CXX" = no && can_build_shared=no
10582 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10583 if test "$GCC" = yes; then
10584 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10588 # Do we need to explicitly link libc?
10590 case "x$archive_cmds_need_lc_CXX" in
10592 # Assume -lc should be added
10593 archive_cmds_need_lc_CXX=yes
10595 if test "$enable_shared" = yes && test "$GCC" = yes; then
10596 case $archive_cmds_CXX in
10598 # FIXME: we may have to deal with multi-command sequences.
10601 # Test whether the compiler implicitly links with -lc since on some
10602 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10603 # to ld, don't add -lc before -lgcc.
10604 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10605 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10607 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10610 (eval $ac_compile) 2>&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } 2>conftest.err; then
10616 libobjs=conftest.$ac_objext
10618 wl=$lt_prog_compiler_wl_CXX
10624 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10625 allow_undefined_flag_CXX=
10626 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10627 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }
10632 archive_cmds_need_lc_CXX=no
10634 archive_cmds_need_lc_CXX=yes
10636 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10638 cat conftest.err 1>&5
10641 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10642 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10649 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10650 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10651 hardcode_action_CXX=
10652 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10653 test -n "$runpath_var CXX" || \
10654 test "X$hardcode_automatic_CXX"="Xyes" ; then
10656 # We can hardcode non-existant directories.
10657 if test "$hardcode_direct_CXX" != no &&
10658 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10659 # have to relink, otherwise we might link with an installed library
10660 # when we should be linking with a yet-to-be-installed one
10661 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10662 test "$hardcode_minus_L_CXX" != no; then
10663 # Linking always hardcodes the temporary library directory.
10664 hardcode_action_CXX=relink
10666 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10667 hardcode_action_CXX=immediate
10670 # We cannot hardcode anything, or else we can only hardcode existing
10672 hardcode_action_CXX=unsupported
10674 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10675 echo "${ECHO_T}$hardcode_action_CXX" >&6
10677 if test "$hardcode_action_CXX" = relink; then
10678 # Fast installation is not supported
10679 enable_fast_install=no
10680 elif test "$shlibpath_overrides_runpath" = yes ||
10681 test "$enable_shared" = no; then
10682 # Fast installation is not necessary
10683 enable_fast_install=needless
10688 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10689 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10690 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10691 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10692 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10693 echo "$as_me:$LINENO: result: yes" >&5
10694 echo "${ECHO_T}yes" >&6
10696 # FIXME - insert some real tests, host_os isn't really good enough
10699 if test -n "$STRIP" ; then
10700 striplib="$STRIP -x"
10701 echo "$as_me:$LINENO: result: yes" >&5
10702 echo "${ECHO_T}yes" >&6
10704 echo "$as_me:$LINENO: result: no" >&5
10705 echo "${ECHO_T}no" >&6
10709 echo "$as_me:$LINENO: result: no" >&5
10710 echo "${ECHO_T}no" >&6
10715 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10716 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10717 library_names_spec=
10718 libname_spec='lib$name'
10722 postuninstall_cmds=
10726 shlibpath_overrides_runpath=unknown
10728 dynamic_linker="$host_os ld.so"
10729 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10730 if test "$GCC" = yes; then
10731 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10732 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10733 # if the path contains ";" then we assume it to be the separator
10734 # otherwise default to the standard path separator (i.e. ":") - it is
10735 # assumed that no part of a normal pathname contains ";" but that should
10736 # okay in the real world where ";" in dirpaths is itself problematic.
10737 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10739 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10742 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10744 need_lib_prefix=unknown
10745 hardcode_into_libs=no
10747 # when you set need_version to no, make sure it does not cause -set_version
10748 # flags to be left without arguments
10749 need_version=unknown
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10755 shlibpath_var=LIBPATH
10757 # AIX 3 has no versioning support, so we append a major version to the name.
10758 soname_spec='${libname}${release}${shared_ext}$major'
10765 hardcode_into_libs=yes
10766 if test "$host_cpu" = ia64; then
10767 # AIX 5 supports IA64
10768 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10769 shlibpath_var=LD_LIBRARY_PATH
10771 # With GCC up to 2.95.x, collect2 would create an import file
10772 # for dependence libraries. The import file would start with
10773 # the line `#! .'. This would cause the generated library to
10774 # depend on `.', always an invalid library. This was fixed in
10775 # development snapshots of GCC prior to 3.0.
10777 aix4 | aix4.[01] | aix4.[01].*)
10778 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10780 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10783 can_build_shared=no
10787 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10788 # soname into executable. Probably we can add versioning support to
10789 # collect2, so additional links can be useful in future.
10790 if test "$aix_use_runtimelinking" = yes; then
10791 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10792 # instead of lib<name>.a to let people know that these are not
10793 # typical AIX shared libraries.
10794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10796 # We preserve .a as extension for shared libraries through AIX4.2
10797 # and later when we are not doing run time linking.
10798 library_names_spec='${libname}${release}.a $libname.a'
10799 soname_spec='${libname}${release}${shared_ext}$major'
10801 shlibpath_var=LIBPATH
10806 library_names_spec='$libname.ixlibrary $libname.a'
10807 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10808 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'
10812 library_names_spec='${libname}${shared_ext}'
10813 dynamic_linker="$host_os ld.so"
10814 shlibpath_var=LIBRARY_PATH
10820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10821 soname_spec='${libname}${release}${shared_ext}$major'
10822 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10823 shlibpath_var=LD_LIBRARY_PATH
10824 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10825 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10826 # the default ld.so.conf also contains /usr/contrib/lib and
10827 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10828 # libtool to hard-code these into programs
10831 cygwin* | mingw* | pw32*)
10832 version_type=windows
10837 case $GCC,$host_os in
10838 yes,cygwin* | yes,mingw* | yes,pw32*)
10839 library_names_spec='$libname.dll.a'
10840 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10841 postinstall_cmds='base_file=`basename \${file}`~
10842 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10843 dldir=$destdir/`dirname \$dlpath`~
10844 test -d \$dldir || mkdir -p \$dldir~
10845 $install_prog $dir/$dlname \$dldir/$dlname'
10846 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10847 dlpath=$dir/\$dldll~
10849 shlibpath_overrides_runpath=yes
10853 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10854 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10855 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10858 # MinGW DLLs use traditional 'lib' prefix
10859 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10860 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10861 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10862 # It is most probably a Windows format PATH printed by
10863 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10864 # path with ; separators, and with drive letters. We can handle the
10865 # drive letters (cygwin fileutils understands them), so leave them,
10866 # especially as we might pass files found there to a mingw objdump,
10867 # which wouldn't understand a cygwinified path. Ahh.
10868 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10870 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10874 # pw32 DLLs use 'pw' prefix rather than 'lib'
10875 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10881 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10884 dynamic_linker='Win32 ld.exe'
10885 # FIXME: first we should search . and the directory the executable is in
10889 darwin* | rhapsody*)
10890 dynamic_linker="$host_os dyld"
10891 version_type=darwin
10894 # FIXME: Relying on posixy $() will cause problems for
10895 # cross-compilation, but unfortunately the echo tests do not
10896 # yet detect zsh echo's removal of \ escapes.
10897 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10898 soname_spec='${libname}${release}${major}$shared_ext'
10899 shlibpath_overrides_runpath=yes
10900 shlibpath_var=DYLD_LIBRARY_PATH
10901 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10902 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10903 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10904 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"`
10906 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10914 soname_spec='${libname}${release}${shared_ext}$major'
10915 shlibpath_var=LD_LIBRARY_PATH
10923 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10924 version_type=freebsd-$objformat
10925 case $version_type in
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10932 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10936 shlibpath_var=LD_LIBRARY_PATH
10939 shlibpath_overrides_runpath=yes
10941 freebsd3.01* | freebsdelf3.01*)
10942 shlibpath_overrides_runpath=yes
10943 hardcode_into_libs=yes
10946 shlibpath_overrides_runpath=no
10947 hardcode_into_libs=yes
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10957 soname_spec='${libname}${release}${shared_ext}$major'
10958 shlibpath_var=LD_LIBRARY_PATH
10959 hardcode_into_libs=yes
10962 hpux9* | hpux10* | hpux11*)
10963 # Give a soname corresponding to the major version so that dld.sl refuses to
10964 # link against other versions.
10968 case "$host_cpu" in
10971 hardcode_into_libs=yes
10972 dynamic_linker="$host_os dld.so"
10973 shlibpath_var=LD_LIBRARY_PATH
10974 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976 soname_spec='${libname}${release}${shared_ext}$major'
10977 if test "X$HPUX_IA64_MODE" = X32; then
10978 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10980 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10986 hardcode_into_libs=yes
10987 dynamic_linker="$host_os dld.sl"
10988 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10989 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991 soname_spec='${libname}${release}${shared_ext}$major'
10992 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10993 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10997 dynamic_linker="$host_os dld.sl"
10998 shlibpath_var=SHLIB_PATH
10999 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11001 soname_spec='${libname}${release}${shared_ext}$major'
11004 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11005 postinstall_cmds='chmod 555 $lib'
11008 irix5* | irix6* | nonstopux*)
11010 nonstopux*) version_type=nonstopux ;;
11012 if test "$lt_cv_prog_gnu_ld" = yes; then
11020 soname_spec='${libname}${release}${shared_ext}$major'
11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11023 irix5* | nonstopux*)
11024 libsuff= shlibsuff=
11027 case $LD in # libtool.m4 will add one of these switches to LD
11028 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11029 libsuff= shlibsuff= libmagic=32-bit;;
11030 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11031 libsuff=32 shlibsuff=N32 libmagic=N32;;
11032 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11033 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11034 *) libsuff= shlibsuff= libmagic=never-match;;
11038 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11039 shlibpath_overrides_runpath=no
11040 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11041 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11042 hardcode_into_libs=yes
11045 # No shared lib support for Linux oldld, aout, or coff.
11046 linux*oldld* | linux*aout* | linux*coff*)
11050 # This must be Linux ELF.
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056 soname_spec='${libname}${release}${shared_ext}$major'
11057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 shlibpath_overrides_runpath=no
11060 # This implies no fast_install, which is unacceptable.
11061 # Some rework will be needed to allow for fast_install
11062 # before this can be enabled.
11063 hardcode_into_libs=yes
11065 # We used to test for /lib/ld.so.1 and disable shared libraries on
11066 # powerpc, because MkLinux only supported shared libraries with the
11067 # GNU dynamic linker. Since this was broken with cross compilers,
11068 # most powerpc-linux boxes support dynamic linking these days and
11069 # people can always --disable-shared, the test was removed, and we
11070 # assume the GNU/Linux dynamic linker is in use.
11071 dynamic_linker='GNU/Linux ld.so'
11078 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11081 dynamic_linker='NetBSD (a.out) ld.so'
11083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11084 soname_spec='${libname}${release}${shared_ext}$major'
11085 dynamic_linker='NetBSD ld.elf_so'
11087 shlibpath_var=LD_LIBRARY_PATH
11088 shlibpath_overrides_runpath=yes
11089 hardcode_into_libs=yes
11094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095 shlibpath_var=LD_LIBRARY_PATH
11096 shlibpath_overrides_runpath=yes
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 shlibpath_var=LD_LIBRARY_PATH
11106 shlibpath_overrides_runpath=yes
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11118 openbsd2.[89] | openbsd2.[89].*)
11119 shlibpath_overrides_runpath=no
11122 shlibpath_overrides_runpath=yes
11126 shlibpath_overrides_runpath=yes
11131 libname_spec='$name'
11134 library_names_spec='$libname${shared_ext} $libname.a'
11135 dynamic_linker='OS/2 ld.exe'
11136 shlibpath_var=LIBPATH
11139 osf3* | osf4* | osf5*)
11143 soname_spec='${libname}${release}${shared_ext}$major'
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145 shlibpath_var=LD_LIBRARY_PATH
11146 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11147 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11152 soname_spec='${libname}${release}${shared_ext}$major'
11153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154 shlibpath_var=LD_LIBRARY_PATH
11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162 soname_spec='${libname}${release}${shared_ext}$major'
11163 shlibpath_var=LD_LIBRARY_PATH
11164 shlibpath_overrides_runpath=yes
11165 hardcode_into_libs=yes
11166 # ldd complains unless libraries are executable
11167 postinstall_cmds='chmod +x $lib'
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11173 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11174 shlibpath_var=LD_LIBRARY_PATH
11175 shlibpath_overrides_runpath=yes
11176 if test "$with_gnu_ld" = yes; then
11182 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185 soname_spec='${libname}${release}${shared_ext}$major'
11186 shlibpath_var=LD_LIBRARY_PATH
11187 case $host_vendor in
11189 shlibpath_overrides_runpath=no
11191 export_dynamic_flag_spec='${wl}-Blargedynsym'
11192 runpath_var=LD_RUN_PATH
11200 shlibpath_overrides_runpath=no
11201 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11207 if test -d /usr/nec ;then
11209 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11210 soname_spec='$libname${shared_ext}.$major'
11211 shlibpath_var=LD_LIBRARY_PATH
11217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11218 soname_spec='${libname}${release}${shared_ext}$major'
11219 shlibpath_var=LD_LIBRARY_PATH
11226 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11227 echo "${ECHO_T}$dynamic_linker" >&6
11228 test "$dynamic_linker" = no && can_build_shared=no
11230 if test "x$enable_dlopen" != xyes; then
11231 enable_dlopen=unknown
11232 enable_dlopen_self=unknown
11233 enable_dlopen_self_static=unknown
11240 lt_cv_dlopen="load_add_on"
11242 lt_cv_dlopen_self=yes
11246 lt_cv_dlopen="LoadLibrary"
11251 lt_cv_dlopen="dlopen"
11256 # if libdl is installed we need to link against it
11257 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11258 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11259 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 ac_check_lib_save_LIBS=$LIBS
11264 cat >conftest.$ac_ext <<_ACEOF
11265 #line $LINENO "configure"
11268 cat confdefs.h >>conftest.$ac_ext
11269 cat >>conftest.$ac_ext <<_ACEOF
11270 /* end confdefs.h. */
11272 /* Override any gcc2 internal prototype to avoid an error. */
11276 /* We use char because int might match the return type of a gcc2
11277 builtin and then its argument prototype would still apply. */
11287 rm -f conftest.$ac_objext conftest$ac_exeext
11288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11289 (eval $ac_link) 2>&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } &&
11293 { ac_try='test -s conftest$ac_exeext'
11294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295 (eval $ac_try) 2>&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }; }; then
11299 ac_cv_lib_dl_dlopen=yes
11301 echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11304 ac_cv_lib_dl_dlopen=no
11306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11307 LIBS=$ac_check_lib_save_LIBS
11309 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11310 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11311 if test $ac_cv_lib_dl_dlopen = yes; then
11312 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11315 lt_cv_dlopen="dyld"
11317 lt_cv_dlopen_self=yes
11324 echo "$as_me:$LINENO: checking for shl_load" >&5
11325 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11326 if test "${ac_cv_func_shl_load+set}" = set; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11329 cat >conftest.$ac_ext <<_ACEOF
11330 #line $LINENO "configure"
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 /* System header to define __stub macros and hopefully few prototypes,
11337 which can conflict with char shl_load (); below.
11338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11339 <limits.h> exists even on freestanding compilers. */
11341 # include <limits.h>
11343 # include <assert.h>
11345 /* Override any gcc2 internal prototype to avoid an error. */
11350 /* We use char because int might match the return type of a gcc2
11351 builtin and then its argument prototype would still apply. */
11353 /* The GNU C library defines this for functions which it implements
11354 to always fail with ENOSYS. Some functions are actually named
11355 something starting with __ and the normal name is an alias. */
11356 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11359 char (*f) () = shl_load;
11368 return f != shl_load;
11373 rm -f conftest.$ac_objext conftest$ac_exeext
11374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11375 (eval $ac_link) 2>&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } &&
11379 { ac_try='test -s conftest$ac_exeext'
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
11385 ac_cv_func_shl_load=yes
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11390 ac_cv_func_shl_load=no
11392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11394 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11395 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11396 if test $ac_cv_func_shl_load = yes; then
11397 lt_cv_dlopen="shl_load"
11399 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11400 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11401 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 ac_check_lib_save_LIBS=$LIBS
11406 cat >conftest.$ac_ext <<_ACEOF
11407 #line $LINENO "configure"
11410 cat confdefs.h >>conftest.$ac_ext
11411 cat >>conftest.$ac_ext <<_ACEOF
11412 /* end confdefs.h. */
11414 /* Override any gcc2 internal prototype to avoid an error. */
11418 /* We use char because int might match the return type of a gcc2
11419 builtin and then its argument prototype would still apply. */
11429 rm -f conftest.$ac_objext conftest$ac_exeext
11430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11431 (eval $ac_link) 2>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
11435 { ac_try='test -s conftest$ac_exeext'
11436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437 (eval $ac_try) 2>&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); }; }; then
11441 ac_cv_lib_dld_shl_load=yes
11443 echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11446 ac_cv_lib_dld_shl_load=no
11448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11449 LIBS=$ac_check_lib_save_LIBS
11451 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11452 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11453 if test $ac_cv_lib_dld_shl_load = yes; then
11454 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11456 echo "$as_me:$LINENO: checking for dlopen" >&5
11457 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11458 if test "${ac_cv_func_dlopen+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 cat >conftest.$ac_ext <<_ACEOF
11462 #line $LINENO "configure"
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11468 /* System header to define __stub macros and hopefully few prototypes,
11469 which can conflict with char dlopen (); below.
11470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11471 <limits.h> exists even on freestanding compilers. */
11473 # include <limits.h>
11475 # include <assert.h>
11477 /* Override any gcc2 internal prototype to avoid an error. */
11482 /* We use char because int might match the return type of a gcc2
11483 builtin and then its argument prototype would still apply. */
11485 /* The GNU C library defines this for functions which it implements
11486 to always fail with ENOSYS. Some functions are actually named
11487 something starting with __ and the normal name is an alias. */
11488 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11491 char (*f) () = dlopen;
11500 return f != dlopen;
11505 rm -f conftest.$ac_objext conftest$ac_exeext
11506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11507 (eval $ac_link) 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } &&
11511 { ac_try='test -s conftest$ac_exeext'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; }; then
11517 ac_cv_func_dlopen=yes
11519 echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11522 ac_cv_func_dlopen=no
11524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11526 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11527 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11528 if test $ac_cv_func_dlopen = yes; then
11529 lt_cv_dlopen="dlopen"
11531 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11532 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11533 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 ac_check_lib_save_LIBS=$LIBS
11538 cat >conftest.$ac_ext <<_ACEOF
11539 #line $LINENO "configure"
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11546 /* Override any gcc2 internal prototype to avoid an error. */
11550 /* We use char because int might match the return type of a gcc2
11551 builtin and then its argument prototype would still apply. */
11561 rm -f conftest.$ac_objext conftest$ac_exeext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11563 (eval $ac_link) 2>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try='test -s conftest$ac_exeext'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; }; then
11573 ac_cv_lib_dl_dlopen=yes
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11578 ac_cv_lib_dl_dlopen=no
11580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11581 LIBS=$ac_check_lib_save_LIBS
11583 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11584 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11585 if test $ac_cv_lib_dl_dlopen = yes; then
11586 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11588 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11589 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11590 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11591 echo $ECHO_N "(cached) $ECHO_C" >&6
11593 ac_check_lib_save_LIBS=$LIBS
11594 LIBS="-lsvld $LIBS"
11595 cat >conftest.$ac_ext <<_ACEOF
11596 #line $LINENO "configure"
11599 cat confdefs.h >>conftest.$ac_ext
11600 cat >>conftest.$ac_ext <<_ACEOF
11601 /* end confdefs.h. */
11603 /* Override any gcc2 internal prototype to avoid an error. */
11607 /* We use char because int might match the return type of a gcc2
11608 builtin and then its argument prototype would still apply. */
11618 rm -f conftest.$ac_objext conftest$ac_exeext
11619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11620 (eval $ac_link) 2>&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
11624 { ac_try='test -s conftest$ac_exeext'
11625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626 (eval $ac_try) 2>&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; }; then
11630 ac_cv_lib_svld_dlopen=yes
11632 echo "$as_me: failed program was:" >&5
11633 sed 's/^/| /' conftest.$ac_ext >&5
11635 ac_cv_lib_svld_dlopen=no
11637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11638 LIBS=$ac_check_lib_save_LIBS
11640 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11641 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11642 if test $ac_cv_lib_svld_dlopen = yes; then
11643 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11645 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11646 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11647 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11650 ac_check_lib_save_LIBS=$LIBS
11652 cat >conftest.$ac_ext <<_ACEOF
11653 #line $LINENO "configure"
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11660 /* Override any gcc2 internal prototype to avoid an error. */
11664 /* We use char because int might match the return type of a gcc2
11665 builtin and then its argument prototype would still apply. */
11675 rm -f conftest.$ac_objext conftest$ac_exeext
11676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11677 (eval $ac_link) 2>&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } &&
11681 { ac_try='test -s conftest$ac_exeext'
11682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683 (eval $ac_try) 2>&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11687 ac_cv_lib_dld_dld_link=yes
11689 echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11692 ac_cv_lib_dld_dld_link=no
11694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11695 LIBS=$ac_check_lib_save_LIBS
11697 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11698 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11699 if test $ac_cv_lib_dld_dld_link = yes; then
11700 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11721 if test "x$lt_cv_dlopen" != xno; then
11727 case $lt_cv_dlopen in
11729 save_CPPFLAGS="$CPPFLAGS"
11730 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11732 save_LDFLAGS="$LDFLAGS"
11733 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11736 LIBS="$lt_cv_dlopen_libs $LIBS"
11738 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11739 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11740 if test "${lt_cv_dlopen_self+set}" = set; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 if test "$cross_compiling" = yes; then :
11744 lt_cv_dlopen_self=cross
11746 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11747 lt_status=$lt_dlunknown
11748 cat > conftest.$ac_ext <<EOF
11749 #line 11749 "configure"
11750 #include "confdefs.h"
11759 # define LT_DLGLOBAL RTLD_GLOBAL
11762 # define LT_DLGLOBAL DL_GLOBAL
11764 # define LT_DLGLOBAL 0
11768 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11769 find out it does not work in some platform. */
11770 #ifndef LT_DLLAZY_OR_NOW
11772 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11775 # define LT_DLLAZY_OR_NOW DL_LAZY
11778 # define LT_DLLAZY_OR_NOW RTLD_NOW
11781 # define LT_DLLAZY_OR_NOW DL_NOW
11783 # define LT_DLLAZY_OR_NOW 0
11791 extern "C" void exit (int);
11794 void fnord() { int i=42;}
11797 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11798 int status = $lt_dlunknown;
11802 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11803 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11804 /* dlclose (self); */
11810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11811 (eval $ac_link) 2>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11815 (./conftest; exit; ) 2>/dev/null
11817 case x$lt_status in
11818 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11819 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11820 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11823 # compilation failed
11824 lt_cv_dlopen_self=no
11831 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11832 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11834 if test "x$lt_cv_dlopen_self" = xyes; then
11835 LDFLAGS="$LDFLAGS $link_static_flag"
11836 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11837 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11838 if test "${lt_cv_dlopen_self_static+set}" = set; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 if test "$cross_compiling" = yes; then :
11842 lt_cv_dlopen_self_static=cross
11844 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11845 lt_status=$lt_dlunknown
11846 cat > conftest.$ac_ext <<EOF
11847 #line 11847 "configure"
11848 #include "confdefs.h"
11857 # define LT_DLGLOBAL RTLD_GLOBAL
11860 # define LT_DLGLOBAL DL_GLOBAL
11862 # define LT_DLGLOBAL 0
11866 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11867 find out it does not work in some platform. */
11868 #ifndef LT_DLLAZY_OR_NOW
11870 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11873 # define LT_DLLAZY_OR_NOW DL_LAZY
11876 # define LT_DLLAZY_OR_NOW RTLD_NOW
11879 # define LT_DLLAZY_OR_NOW DL_NOW
11881 # define LT_DLLAZY_OR_NOW 0
11889 extern "C" void exit (int);
11892 void fnord() { int i=42;}
11895 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11896 int status = $lt_dlunknown;
11900 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11901 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11902 /* dlclose (self); */
11908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11909 (eval $ac_link) 2>&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11913 (./conftest; exit; ) 2>/dev/null
11915 case x$lt_status in
11916 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11917 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11918 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11921 # compilation failed
11922 lt_cv_dlopen_self_static=no
11929 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11930 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11933 CPPFLAGS="$save_CPPFLAGS"
11934 LDFLAGS="$save_LDFLAGS"
11939 case $lt_cv_dlopen_self in
11940 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11941 *) enable_dlopen_self=unknown ;;
11944 case $lt_cv_dlopen_self_static in
11945 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11946 *) enable_dlopen_self_static=unknown ;;
11951 # The else clause should only fire when bootstrapping the
11952 # libtool distribution, otherwise you forgot to ship ltmain.sh
11953 # with your package, and you will get complaints that there are
11954 # no rules to generate ltmain.sh.
11955 if test -f "$ltmain"; then
11956 # See if we are running on zsh, and set the options which allow our commands through
11957 # without removal of \ escapes.
11958 if test -n "${ZSH_VERSION+set}" ; then
11959 setopt NO_GLOB_SUBST
11961 # Now quote all the things that may contain metacharacters while being
11962 # careful not to overquote the AC_SUBSTed values. We take copies of the
11963 # variables and quote the copies for generation of the libtool script.
11964 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11965 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11966 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11967 deplibs_check_method reload_flag reload_cmds need_locks \
11968 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11969 lt_cv_sys_global_symbol_to_c_name_address \
11970 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11971 old_postinstall_cmds old_postuninstall_cmds \
11975 lt_prog_compiler_wl_CXX \
11976 lt_prog_compiler_pic_CXX \
11977 lt_prog_compiler_static_CXX \
11978 lt_prog_compiler_no_builtin_flag_CXX \
11979 export_dynamic_flag_spec_CXX \
11980 thread_safe_flag_spec_CXX \
11981 whole_archive_flag_spec_CXX \
11982 enable_shared_with_static_runtimes_CXX \
11983 old_archive_cmds_CXX \
11984 old_archive_from_new_cmds_CXX \
11985 predep_objects_CXX \
11986 postdep_objects_CXX \
11989 compiler_lib_search_path_CXX \
11991 archive_expsym_cmds_CXX \
11992 postinstall_cmds_CXX \
11993 postuninstall_cmds_CXX \
11994 old_archive_from_expsyms_cmds_CXX \
11995 allow_undefined_flag_CXX \
11996 no_undefined_flag_CXX \
11997 export_symbols_cmds_CXX \
11998 hardcode_libdir_flag_spec_CXX \
11999 hardcode_libdir_flag_spec_ld_CXX \
12000 hardcode_libdir_separator_CXX \
12001 hardcode_automatic_CXX \
12003 module_expsym_cmds_CXX \
12004 lt_cv_prog_compiler_c_o_CXX \
12005 exclude_expsyms_CXX \
12006 include_expsyms_CXX; do
12009 old_archive_cmds_CXX | \
12010 old_archive_from_new_cmds_CXX | \
12011 archive_cmds_CXX | \
12012 archive_expsym_cmds_CXX | \
12013 module_cmds_CXX | \
12014 module_expsym_cmds_CXX | \
12015 old_archive_from_expsyms_cmds_CXX | \
12016 export_symbols_cmds_CXX | \
12017 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12018 postinstall_cmds | postuninstall_cmds | \
12019 old_postinstall_cmds | old_postuninstall_cmds | \
12020 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12021 # Double-quote double-evaled strings.
12022 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12025 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12031 *'\$0 --fallback-echo"')
12032 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12038 cat <<__EOF__ >> "$cfgfile"
12039 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12041 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12043 # Shell to use when invoking shell scripts.
12046 # Whether or not to build shared libraries.
12047 build_libtool_libs=$enable_shared
12049 # Whether or not to build static libraries.
12050 build_old_libs=$enable_static
12052 # Whether or not to add -lc for building shared libraries.
12053 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12055 # Whether or not to disallow shared libs when runtime libs are static
12056 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12058 # Whether or not to optimize for fast installation.
12059 fast_install=$enable_fast_install
12062 host_alias=$host_alias
12065 # An echo program that does not interpret backslashes.
12070 AR_FLAGS=$lt_AR_FLAGS
12075 # A language-specific compiler.
12076 CC=$lt_compiler_CXX
12078 # Is the compiler the GNU C compiler?
12084 # The linker used to build libraries.
12087 # Whether we need hard or soft links.
12090 # A BSD-compatible nm program.
12093 # A symbol stripping program
12096 # Used to examine libraries when file_magic_cmd begins "file"
12097 MAGIC_CMD=$MAGIC_CMD
12099 # Used on cygwin: DLL creation program.
12102 # Used on cygwin: object dumper.
12105 # Used on cygwin: assembler.
12108 # The name of the directory that contains temporary libtool files.
12111 # How to create reloadable object files.
12112 reload_flag=$lt_reload_flag
12113 reload_cmds=$lt_reload_cmds
12115 # How to pass a linker flag through the compiler.
12116 wl=$lt_lt_prog_compiler_wl_CXX
12118 # Object file suffix (normally "o").
12119 objext="$ac_objext"
12121 # Old archive suffix (normally "a").
12124 # Shared library suffix (normally ".so").
12127 # Executable file suffix (normally "").
12130 # Additional compiler flags for building library objects.
12131 pic_flag=$lt_lt_prog_compiler_pic_CXX
12134 # What is the maximum length of a command?
12135 max_cmd_len=$lt_cv_sys_max_cmd_len
12137 # Does compiler simultaneously support -c and -o options?
12138 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12140 # Must we lock files when doing compilation ?
12141 need_locks=$lt_need_locks
12143 # Do we need the lib prefix for modules?
12144 need_lib_prefix=$need_lib_prefix
12146 # Do we need a version for libraries?
12147 need_version=$need_version
12149 # Whether dlopen is supported.
12150 dlopen_support=$enable_dlopen
12152 # Whether dlopen of programs is supported.
12153 dlopen_self=$enable_dlopen_self
12155 # Whether dlopen of statically linked programs is supported.
12156 dlopen_self_static=$enable_dlopen_self_static
12158 # Compiler flag to prevent dynamic linking.
12159 link_static_flag=$lt_lt_prog_compiler_static_CXX
12161 # Compiler flag to turn off builtin functions.
12162 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12164 # Compiler flag to allow reflexive dlopens.
12165 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12167 # Compiler flag to generate shared objects directly from archives.
12168 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12170 # Compiler flag to generate thread-safe objects.
12171 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12173 # Library versioning type.
12174 version_type=$version_type
12176 # Format of library name prefix.
12177 libname_spec=$lt_libname_spec
12179 # List of archive names. First name is the real one, the rest are links.
12180 # The last name is the one that the linker finds with -lNAME.
12181 library_names_spec=$lt_library_names_spec
12183 # The coded name of the library, if different from the real name.
12184 soname_spec=$lt_soname_spec
12186 # Commands used to build and install an old-style archive.
12188 old_archive_cmds=$lt_old_archive_cmds_CXX
12189 old_postinstall_cmds=$lt_old_postinstall_cmds
12190 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12192 # Create an old-style archive from a shared archive.
12193 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12195 # Create a temporary old-style archive to link instead of a shared archive.
12196 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12198 # Commands used to build and install a shared archive.
12199 archive_cmds=$lt_archive_cmds_CXX
12200 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12201 postinstall_cmds=$lt_postinstall_cmds
12202 postuninstall_cmds=$lt_postuninstall_cmds
12204 # Commands used to build a loadable module (assumed same as above if empty)
12205 module_cmds=$lt_module_cmds_CXX
12206 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12208 # Commands to strip libraries.
12209 old_striplib=$lt_old_striplib
12210 striplib=$lt_striplib
12212 # Dependencies to place before the objects being linked to create a
12214 predep_objects=$lt_predep_objects_CXX
12216 # Dependencies to place after the objects being linked to create a
12218 postdep_objects=$lt_postdep_objects_CXX
12220 # Dependencies to place before the objects being linked to create a
12222 predeps=$lt_predeps_CXX
12224 # Dependencies to place after the objects being linked to create a
12226 postdeps=$lt_postdeps_CXX
12228 # The library search path used internally by the compiler when linking
12229 # a shared library.
12230 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12232 # Method to check whether dependent libraries are shared objects.
12233 deplibs_check_method=$lt_deplibs_check_method
12235 # Command to use when deplibs_check_method == file_magic.
12236 file_magic_cmd=$lt_file_magic_cmd
12238 # Flag that allows shared libraries with undefined symbols to be built.
12239 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12241 # Flag that forces no undefined symbols.
12242 no_undefined_flag=$lt_no_undefined_flag_CXX
12244 # Commands used to finish a libtool library installation in a directory.
12245 finish_cmds=$lt_finish_cmds
12247 # Same as above, but a single script fragment to be evaled but not shown.
12248 finish_eval=$lt_finish_eval
12250 # Take the output of nm and produce a listing of raw symbols and C names.
12251 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12253 # Transform the output of nm in a proper C declaration
12254 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12256 # Transform the output of nm in a C name address pair
12257 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12259 # This is the shared library runtime path variable.
12260 runpath_var=$runpath_var
12262 # This is the shared library path variable.
12263 shlibpath_var=$shlibpath_var
12265 # Is shlibpath searched before the hard-coded library search path?
12266 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12268 # How to hardcode a shared library path into an executable.
12269 hardcode_action=$hardcode_action_CXX
12271 # Whether we should hardcode library paths into libraries.
12272 hardcode_into_libs=$hardcode_into_libs
12274 # Flag to hardcode \$libdir into a binary during linking.
12275 # This must work even if \$libdir does not exist.
12276 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12278 # If ld is used when linking, flag to hardcode \$libdir into
12279 # a binary during linking. This must work even if \$libdir does
12281 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12283 # Whether we need a single -rpath flag with a separated argument.
12284 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12286 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12287 # resulting binary.
12288 hardcode_direct=$hardcode_direct_CXX
12290 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12291 # resulting binary.
12292 hardcode_minus_L=$hardcode_minus_L_CXX
12294 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12295 # the resulting binary.
12296 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12298 # Set to yes if building a shared library automatically hardcodes DIR into the library
12299 # and all subsequent libraries and executables linked against it.
12300 hardcode_automatic=$hardcode_automatic_CXX
12302 # Variables whose values should be saved in libtool wrapper scripts and
12303 # restored at relink time.
12304 variables_saved_for_relink="$variables_saved_for_relink"
12306 # Whether libtool must link a program against all its dependency libraries.
12307 link_all_deplibs=$link_all_deplibs_CXX
12309 # Compile-time system search path for libraries
12310 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12312 # Run-time system search path for libraries
12313 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12315 # Fix the shell variable \$srcfile for the compiler.
12316 fix_srcfile_path="$fix_srcfile_path_CXX"
12318 # Set to yes if exported symbols are required.
12319 always_export_symbols=$always_export_symbols_CXX
12321 # The commands to list exported symbols.
12322 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12324 # The commands to extract the exported symbol list from a shared archive.
12325 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12327 # Symbols that should not be listed in the preloaded symbols.
12328 exclude_expsyms=$lt_exclude_expsyms_CXX
12330 # Symbols that must always be exported.
12331 include_expsyms=$lt_include_expsyms_CXX
12333 # ### END LIBTOOL TAG CONFIG: $tagname
12339 # If there is no Makefile yet, we rely on a make rule to execute
12340 # `config.status --recheck' to rerun these tests and create the
12341 # libtool script then.
12342 test -f Makefile && make "$ltmain"
12347 ac_cpp='$CPP $CPPFLAGS'
12348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12356 with_gnu_ldcxx=$with_gnu_ld
12357 with_gnu_ld=$lt_save_with_gnu_ld
12358 lt_cv_path_LDCXX=$lt_cv_path_LD
12359 lt_cv_path_LD=$lt_save_path_LD
12360 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12361 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12369 if test -n "$F77" && test "X$F77" != "Xno"; then
12372 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12373 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12374 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12377 archive_cmds_need_lc_F77=no
12378 allow_undefined_flag_F77=
12379 always_export_symbols_F77=no
12380 archive_expsym_cmds_F77=
12381 export_dynamic_flag_spec_F77=
12382 hardcode_direct_F77=no
12383 hardcode_libdir_flag_spec_F77=
12384 hardcode_libdir_flag_spec_ld_F77=
12385 hardcode_libdir_separator_F77=
12386 hardcode_minus_L_F77=no
12387 hardcode_automatic_F77=no
12389 module_expsym_cmds_F77=
12390 link_all_deplibs_F77=unknown
12391 old_archive_cmds_F77=$old_archive_cmds
12392 no_undefined_flag_F77=
12393 whole_archive_flag_spec_F77=
12394 enable_shared_with_static_runtimes_F77=no
12396 # Source file extension for f77 test sources.
12399 # Object file extension for compiled f77 test sources.
12403 # Code to be used in simple compile tests
12404 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12406 # Code to be used in simple link tests
12407 lt_simple_link_test_code=" program t\n end\n"
12409 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12411 # If no C compiler was specified, use CC.
12414 # Allow CC to be a program name with arguments.
12418 # Allow CC to be a program name with arguments.
12423 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12425 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12426 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12427 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12428 echo "${ECHO_T}$can_build_shared" >&6
12430 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12431 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12432 test "$can_build_shared" = "no" && enable_shared=no
12434 # On AIX, shared libraries and static libraries use the same namespace, and
12435 # are all built from PIC.
12438 test "$enable_shared" = yes && enable_static=no
12439 if test -n "$RANLIB"; then
12440 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12441 postinstall_cmds='$RANLIB $lib'
12445 test "$enable_shared" = yes && enable_static=no
12448 echo "$as_me:$LINENO: result: $enable_shared" >&5
12449 echo "${ECHO_T}$enable_shared" >&6
12451 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12452 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12453 # Make sure either enable_shared or enable_static is yes.
12454 test "$enable_shared" = yes || enable_static=yes
12455 echo "$as_me:$LINENO: result: $enable_static" >&5
12456 echo "${ECHO_T}$enable_static" >&6
12458 test "$ld_shlibs_F77" = no && can_build_shared=no
12463 lt_prog_compiler_wl_F77=
12464 lt_prog_compiler_pic_F77=
12465 lt_prog_compiler_static_F77=
12467 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12468 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12470 if test "$GCC" = yes; then
12471 lt_prog_compiler_wl_F77='-Wl,'
12472 lt_prog_compiler_static_F77='-static'
12476 # All AIX code is PIC.
12477 if test "$host_cpu" = ia64; then
12478 # AIX 5 now supports IA64 processor
12479 lt_prog_compiler_static_F77='-Bstatic'
12484 # FIXME: we need at least 68020 code to build shared libraries, but
12485 # adding the `-m68020' flag to GCC prevents building anything better,
12487 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12490 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12491 # PIC is the default for these OSes.
12494 mingw* | pw32* | os2*)
12495 # This hack is so that the source file can tell whether it is being
12496 # built for inclusion in a dll (and should export symbols for example).
12497 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12500 darwin* | rhapsody*)
12501 # PIC is the default on this platform
12502 # Common symbols not allowed in MH_DYLIB files
12503 lt_prog_compiler_pic_F77='-fno-common'
12507 # Just because we use GCC doesn't mean we suddenly get shared libraries
12508 # on systems that don't support them.
12509 lt_prog_compiler_can_build_shared_F77=no
12514 if test -d /usr/nec; then
12515 lt_prog_compiler_pic_F77=-Kconform_pic
12520 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12521 # not for PA HP-UX.
12522 case "$host_cpu" in
12527 lt_prog_compiler_pic_F77='-fPIC'
12533 lt_prog_compiler_pic_F77='-fPIC'
12537 # PORTME Check for flag to pass linker flags through the system compiler.
12540 lt_prog_compiler_wl_F77='-Wl,'
12541 if test "$host_cpu" = ia64; then
12542 # AIX 5 now supports IA64 processor
12543 lt_prog_compiler_static_F77='-Bstatic'
12545 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12549 mingw* | pw32* | os2*)
12550 # This hack is so that the source file can tell whether it is being
12551 # built for inclusion in a dll (and should export symbols for example).
12552 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12555 hpux9* | hpux10* | hpux11*)
12556 lt_prog_compiler_wl_F77='-Wl,'
12557 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12558 # not for PA HP-UX.
12559 case "$host_cpu" in
12564 lt_prog_compiler_pic_F77='+Z'
12567 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12568 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12571 irix5* | irix6* | nonstopux*)
12572 lt_prog_compiler_wl_F77='-Wl,'
12573 # PIC (with -KPIC) is the default.
12574 lt_prog_compiler_static_F77='-non_shared'
12578 lt_prog_compiler_pic_F77='-KPIC'
12579 lt_prog_compiler_static_F77='-Bstatic'
12585 lt_prog_compiler_wl_F77='-Wl,'
12586 lt_prog_compiler_pic_F77='-KPIC'
12587 lt_prog_compiler_static_F77='-static'
12590 lt_prog_compiler_wl_F77='-Wl,'
12591 # All Alpha code is PIC.
12592 lt_prog_compiler_static_F77='-non_shared'
12597 osf3* | osf4* | osf5*)
12598 lt_prog_compiler_wl_F77='-Wl,'
12599 # All OSF/1 code is PIC.
12600 lt_prog_compiler_static_F77='-non_shared'
12604 lt_prog_compiler_pic_F77='-Kpic'
12605 lt_prog_compiler_static_F77='-dn'
12609 lt_prog_compiler_wl_F77='-Wl,'
12610 lt_prog_compiler_pic_F77='-KPIC'
12611 lt_prog_compiler_static_F77='-Bstatic'
12615 lt_prog_compiler_wl_F77='-Qoption ld '
12616 lt_prog_compiler_pic_F77='-PIC'
12617 lt_prog_compiler_static_F77='-Bstatic'
12620 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12621 lt_prog_compiler_wl_F77='-Wl,'
12622 lt_prog_compiler_pic_F77='-KPIC'
12623 lt_prog_compiler_static_F77='-Bstatic'
12627 if test -d /usr/nec ;then
12628 lt_prog_compiler_pic_F77='-Kconform_pic'
12629 lt_prog_compiler_static_F77='-Bstatic'
12634 lt_prog_compiler_pic_F77='-pic'
12635 lt_prog_compiler_static_F77='-Bstatic'
12639 lt_prog_compiler_can_build_shared_F77=no
12644 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12645 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12648 # Check to make sure the PIC flag actually works.
12650 if test -n "$lt_prog_compiler_pic_F77"; then
12651 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12652 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12653 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12656 lt_prog_compiler_pic_works_F77=no
12657 ac_outfile=conftest.$ac_objext
12658 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12659 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12660 # Insert the option either (1) after the last *FLAGS variable, or
12661 # (2) before a word containing "conftest.", or (3) at the end.
12662 # Note that $ac_compile itself does not contain backslashes and begins
12663 # with a dollar sign (not a hyphen), so the echo should work correctly.
12664 # The option is referenced via a variable to avoid confusing sed.
12665 lt_compile=`echo "$ac_compile" | $SED \
12666 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12668 -e 's:$: $lt_compiler_flag:'`
12669 (eval echo "\"\$as_me:12669: $lt_compile\"" >&5)
12670 (eval "$lt_compile" 2>conftest.err)
12672 cat conftest.err >&5
12673 echo "$as_me:12673: \$? = $ac_status" >&5
12674 if (exit $ac_status) && test -s "$ac_outfile"; then
12675 # The compiler can only warn and ignore the option if not recognized
12676 # So say no if there are warnings
12677 if test ! -s conftest.err; then
12678 lt_prog_compiler_pic_works_F77=yes
12684 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12685 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12687 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12688 case $lt_prog_compiler_pic_F77 in
12690 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12693 lt_prog_compiler_pic_F77=
12694 lt_prog_compiler_can_build_shared_F77=no
12699 # For platforms which do not support PIC, -DPIC is meaningless:
12701 lt_prog_compiler_pic_F77=
12704 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12708 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12709 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12710 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 lt_cv_prog_compiler_c_o_F77=no
12714 $rm -r conftest 2>/dev/null
12718 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12720 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12721 # that will create temporary files in the current directory regardless of
12722 # the output directory. Thus, making CWD read-only will cause this test
12723 # to fail, enabling locking or at least warning the user not to do parallel
12727 lt_compiler_flag="-o out/conftest2.$ac_objext"
12728 # Insert the option either (1) after the last *FLAGS variable, or
12729 # (2) before a word containing "conftest.", or (3) at the end.
12730 # Note that $ac_compile itself does not contain backslashes and begins
12731 # with a dollar sign (not a hyphen), so the echo should work correctly.
12732 lt_compile=`echo "$ac_compile" | $SED \
12733 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12735 -e 's:$: $lt_compiler_flag:'`
12736 (eval echo "\"\$as_me:12736: $lt_compile\"" >&5)
12737 (eval "$lt_compile" 2>out/conftest.err)
12739 cat out/conftest.err >&5
12740 echo "$as_me:12740: \$? = $ac_status" >&5
12741 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12743 # The compiler can only warn and ignore the option if not recognized
12744 # So say no if there are warnings
12745 if test ! -s out/conftest.err; then
12746 lt_cv_prog_compiler_c_o_F77=yes
12750 $rm conftest* out/*
12757 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12758 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12761 hard_links="nottested"
12762 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12763 # do not overwrite the value of need_locks provided by the user
12764 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12765 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12768 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12770 ln conftest.a conftest.b 2>&5 || hard_links=no
12771 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12772 echo "$as_me:$LINENO: result: $hard_links" >&5
12773 echo "${ECHO_T}$hard_links" >&6
12774 if test "$hard_links" = no; then
12775 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12776 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12783 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12784 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12787 allow_undefined_flag_F77=
12788 enable_shared_with_static_runtimes_F77=no
12790 archive_expsym_cmds_F77=
12791 old_archive_From_new_cmds_F77=
12792 old_archive_from_expsyms_cmds_F77=
12793 export_dynamic_flag_spec_F77=
12794 whole_archive_flag_spec_F77=
12795 thread_safe_flag_spec_F77=
12796 hardcode_libdir_flag_spec_F77=
12797 hardcode_libdir_flag_spec_ld_F77=
12798 hardcode_libdir_separator_F77=
12799 hardcode_direct_F77=no
12800 hardcode_minus_L_F77=no
12801 hardcode_shlibpath_var_F77=unsupported
12802 link_all_deplibs_F77=unknown
12803 hardcode_automatic_F77=no
12805 module_expsym_cmds_F77=
12806 always_export_symbols_F77=no
12807 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12808 # include_expsyms should be a list of space-separated symbols to be *always*
12809 # included in the symbol list
12810 include_expsyms_F77=
12811 # exclude_expsyms can be an extended regexp of symbols to exclude
12812 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12813 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12814 # as well as any symbol that contains `d'.
12815 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12816 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12817 # platforms (ab)use it in PIC code, but their linkers get confused if
12818 # the symbol is explicitly referenced. Since portable code cannot
12819 # rely on this symbol name, it's probably fine to never include it in
12820 # preloaded symbol tables.
12821 extract_expsyms_cmds=
12824 cygwin* | mingw* | pw32*)
12825 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12826 # When not using gcc, we currently assume that we are using
12827 # Microsoft Visual C++.
12828 if test "$GCC" != yes; then
12838 if test "$with_gnu_ld" = yes; then
12839 # If archive_cmds runs LD, not CC, wlarc should be empty
12842 # See if GNU ld supports shared libraries.
12844 aix3* | aix4* | aix5*)
12845 # On AIX/PPC, the GNU linker is very broken
12846 if test "$host_cpu" != ia64; then
12850 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12851 *** to be unable to reliably create shared libraries on AIX.
12852 *** Therefore, libtool is disabling shared libraries support. If you
12853 *** really care for shared libraries, you may want to modify your PATH
12854 *** so that a non-GNU linker is found, and then restart.
12861 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)'
12862 hardcode_libdir_flag_spec_F77='-L$libdir'
12863 hardcode_minus_L_F77=yes
12865 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12866 # that the semantics of dynamic libraries on AmigaOS, at least up
12867 # to version 4, is to share data among multiple programs linked
12868 # with the same dynamic library. Since this doesn't match the
12869 # behavior of shared libraries on other platforms, we can't use
12875 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12876 allow_undefined_flag_F77=unsupported
12877 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12878 # support --undefined. This deserves some investigation. FIXME
12879 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12885 cygwin* | mingw* | pw32*)
12886 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12887 # as there is no search path for DLLs.
12888 hardcode_libdir_flag_spec_F77='-L$libdir'
12889 allow_undefined_flag_F77=unsupported
12890 always_export_symbols_F77=no
12891 enable_shared_with_static_runtimes_F77=yes
12892 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12894 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12895 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12896 # If the export-symbols file already is a .def file (1st line
12897 # is EXPORTS), use it as is; otherwise, prepend...
12898 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12899 cp $export_symbols $output_objdir/$soname.def;
12901 echo EXPORTS > $output_objdir/$soname.def;
12902 cat $export_symbols >> $output_objdir/$soname.def;
12904 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12911 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12912 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12915 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12916 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12921 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12925 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12926 *** create shared libraries on Solaris systems. Therefore, libtool
12927 *** is disabling shared libraries support. We urge you to upgrade GNU
12928 *** binutils to release 2.9.1 or newer. Another option is to modify
12929 *** your PATH or compiler configuration so that the native linker is
12930 *** used, and then restart.
12933 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12934 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12935 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12942 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12944 hardcode_direct_F77=yes
12945 hardcode_shlibpath_var_F77=no
12949 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12950 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12951 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12958 if test "$ld_shlibs_F77" = yes; then
12959 runpath_var=LD_RUN_PATH
12960 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12961 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12962 # ancient GNU ld didn't support --whole-archive et. al.
12963 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12964 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12966 whole_archive_flag_spec_F77=
12970 # PORTME fill in a description of your system's linker (not GNU ld)
12973 allow_undefined_flag_F77=unsupported
12974 always_export_symbols_F77=yes
12975 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'
12976 # Note: this linker hardcodes the directories in LIBPATH if there
12977 # are no directories specified by -L.
12978 hardcode_minus_L_F77=yes
12979 if test "$GCC" = yes && test -z "$link_static_flag"; then
12980 # Neither direct hardcoding nor static linking is supported with a
12982 hardcode_direct_F77=unsupported
12987 if test "$host_cpu" = ia64; then
12988 # On IA64, the linker does run time linking by default, so we don't
12989 # have to do anything special.
12990 aix_use_runtimelinking=no
12991 exp_sym_flag='-Bexport'
12994 # If we're using GNU nm, then we don't want the "-C" option.
12995 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12996 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12997 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'
12999 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'
13001 aix_use_runtimelinking=no
13003 # Test if we are trying to use run time linking or normal
13004 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13005 # need to do runtime linking.
13006 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13007 for ld_flag in $LDFLAGS; do
13008 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13009 aix_use_runtimelinking=yes
13015 exp_sym_flag='-bexport'
13016 no_entry_flag='-bnoentry'
13019 # When large executables or shared objects are built, AIX ld can
13020 # have problems creating the table of contents. If linking a library
13021 # or program results in "error TOC overflow" add -mminimal-toc to
13022 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13023 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13025 archive_cmds_F77=''
13026 hardcode_direct_F77=yes
13027 hardcode_libdir_separator_F77=':'
13028 link_all_deplibs_F77=yes
13030 if test "$GCC" = yes; then
13031 case $host_os in aix4.012|aix4.012.*)
13032 # We only want to do this on AIX 4.2 and lower, the check
13033 # below for broken collect2 doesn't work under 4.3+
13034 collect2name=`${CC} -print-prog-name=collect2`
13035 if test -f "$collect2name" && \
13036 strings "$collect2name" | grep resolve_lib_name >/dev/null
13038 # We have reworked collect2
13039 hardcode_direct_F77=yes
13041 # We have old collect2
13042 hardcode_direct_F77=unsupported
13043 # It fails to find uninstalled libraries when the uninstalled
13044 # path is not listed in the libpath. Setting hardcode_minus_L
13045 # to unsupported forces relinking
13046 hardcode_minus_L_F77=yes
13047 hardcode_libdir_flag_spec_F77='-L$libdir'
13048 hardcode_libdir_separator_F77=
13051 shared_flag='-shared'
13054 if test "$host_cpu" = ia64; then
13055 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13056 # chokes on -Wl,-G. The following line is correct:
13059 if test "$aix_use_runtimelinking" = yes; then
13060 shared_flag='${wl}-G'
13062 shared_flag='${wl}-bM:SRE'
13067 # It seems that -bexpall does not export symbols beginning with
13068 # underscore (_), so it is better to generate a list of symbols to export.
13069 always_export_symbols_F77=yes
13070 if test "$aix_use_runtimelinking" = yes; then
13071 # Warning - without using the other runtime loading flags (-brtl),
13072 # -berok will link without error, but may produce a broken library.
13073 allow_undefined_flag_F77='-berok'
13074 # Determine the default libpath from the value encoded in an empty executable.
13075 cat >conftest.$ac_ext <<_ACEOF
13080 rm -f conftest.$ac_objext conftest$ac_exeext
13081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13082 (eval $ac_link) 2>&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } &&
13086 { ac_try='test -s conftest$ac_exeext'
13087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088 (eval $ac_try) 2>&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; }; then
13093 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13095 # Check for a 64-bit object if we didn't find anything.
13096 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; }
13099 echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13104 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13106 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13107 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"
13109 if test "$host_cpu" = ia64; then
13110 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13111 allow_undefined_flag_F77="-z nodefs"
13112 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"
13114 # Determine the default libpath from the value encoded in an empty executable.
13115 cat >conftest.$ac_ext <<_ACEOF
13120 rm -f conftest.$ac_objext conftest$ac_exeext
13121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13122 (eval $ac_link) 2>&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } &&
13126 { ac_try='test -s conftest$ac_exeext'
13127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128 (eval $ac_try) 2>&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; }; then
13133 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13135 # Check for a 64-bit object if we didn't find anything.
13136 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; }
13139 echo "$as_me: failed program was:" >&5
13140 sed 's/^/| /' conftest.$ac_ext >&5
13143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13144 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13146 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13147 # Warning - without using the other run time loading flags,
13148 # -berok will link without error, but may produce a broken library.
13149 no_undefined_flag_F77=' ${wl}-bernotok'
13150 allow_undefined_flag_F77=' ${wl}-berok'
13151 # -bexpall does not export symbols beginning with underscore (_)
13152 always_export_symbols_F77=yes
13153 # Exported symbols can be pulled into shared objects from archives
13154 whole_archive_flag_spec_F77=' '
13155 archive_cmds_need_lc_F77=yes
13156 # This is similar to how AIX traditionally builds it's shared libraries.
13157 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'
13163 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)'
13164 hardcode_libdir_flag_spec_F77='-L$libdir'
13165 hardcode_minus_L_F77=yes
13166 # see comment about different semantics on the GNU ld section
13171 export_dynamic_flag_spec_F77=-rdynamic
13174 cygwin* | mingw* | pw32*)
13175 # When not using gcc, we currently assume that we are using
13176 # Microsoft Visual C++.
13177 # hardcode_libdir_flag_spec is actually meaningless, as there is
13178 # no search path for DLLs.
13179 hardcode_libdir_flag_spec_F77=' '
13180 allow_undefined_flag_F77=unsupported
13181 # Tell ltmain to make .lib files, not .a files.
13183 # Tell ltmain to make .dll files, not .so files.
13185 # FIXME: Setting linknames here is a bad hack.
13186 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13187 # The linker will automatically build a .lib file if we build a DLL.
13188 old_archive_From_new_cmds_F77='true'
13189 # FIXME: Should let the user specify the lib program.
13190 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13191 fix_srcfile_path='`cygpath -w "$srcfile"`'
13192 enable_shared_with_static_runtimes_F77=yes
13195 darwin* | rhapsody*)
13196 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13197 archive_cmds_need_lc_F77=no
13199 rhapsody* | darwin1.[012])
13200 allow_undefined_flag_F77='-undefined suppress'
13203 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13206 # FIXME: Relying on posixy $() will cause problems for
13207 # cross-compilation, but unfortunately the echo tests do not
13208 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13209 # `"' quotes if we put them in here... so don't!
13210 lt_int_apple_cc_single_mod=no
13211 output_verbose_link_cmd='echo'
13212 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13213 lt_int_apple_cc_single_mod=yes
13215 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13216 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13218 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13220 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13221 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13222 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13223 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13225 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13227 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13228 hardcode_direct_F77=no
13229 hardcode_automatic_F77=yes
13230 hardcode_shlibpath_var_F77=unsupported
13231 whole_archive_flag_spec_F77='-all_load $convenience'
13232 link_all_deplibs_F77=yes
13237 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13238 hardcode_libdir_flag_spec_F77='-L$libdir'
13239 hardcode_shlibpath_var_F77=no
13246 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13247 # support. Future versions do this automatically, but an explicit c++rt0.o
13248 # does not break anything, and helps significantly (at the cost of a little
13251 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13252 hardcode_libdir_flag_spec_F77='-R$libdir'
13253 hardcode_direct_F77=yes
13254 hardcode_shlibpath_var_F77=no
13257 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13259 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13260 hardcode_direct_F77=yes
13261 hardcode_minus_L_F77=yes
13262 hardcode_shlibpath_var_F77=no
13265 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13267 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13268 hardcode_libdir_flag_spec_F77='-R$libdir'
13269 hardcode_direct_F77=yes
13270 hardcode_shlibpath_var_F77=no
13274 if test "$GCC" = yes; then
13275 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'
13277 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'
13279 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13280 hardcode_libdir_separator_F77=:
13281 hardcode_direct_F77=yes
13283 # hardcode_minus_L: Not really in the search PATH,
13284 # but as the default location of the library.
13285 hardcode_minus_L_F77=yes
13286 export_dynamic_flag_spec_F77='${wl}-E'
13290 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13291 case "$host_cpu" in
13293 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13296 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13300 case "$host_cpu" in
13302 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13305 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13309 if test "$with_gnu_ld" = no; then
13310 case "$host_cpu" in
13312 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13313 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13314 hardcode_libdir_separator_F77=:
13315 hardcode_direct_F77=no
13316 hardcode_shlibpath_var_F77=no
13319 hardcode_libdir_flag_spec_F77='-L$libdir'
13320 hardcode_direct_F77=no
13321 hardcode_shlibpath_var_F77=no
13323 # hardcode_minus_L: Not really in the search PATH,
13324 # but as the default location of the library.
13325 hardcode_minus_L_F77=yes
13328 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13329 hardcode_libdir_separator_F77=:
13330 hardcode_direct_F77=yes
13331 export_dynamic_flag_spec_F77='${wl}-E'
13333 # hardcode_minus_L: Not really in the search PATH,
13334 # but as the default location of the library.
13335 hardcode_minus_L_F77=yes
13341 irix5* | irix6* | nonstopux*)
13342 if test "$GCC" = yes; then
13343 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'
13345 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'
13346 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13348 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13349 hardcode_libdir_separator_F77=:
13350 link_all_deplibs_F77=yes
13354 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13355 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13357 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13359 hardcode_libdir_flag_spec_F77='-R$libdir'
13360 hardcode_direct_F77=yes
13361 hardcode_shlibpath_var_F77=no
13365 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13366 hardcode_direct_F77=yes
13367 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13368 hardcode_libdir_separator_F77=:
13369 hardcode_shlibpath_var_F77=no
13373 hardcode_direct_F77=yes
13374 hardcode_shlibpath_var_F77=no
13375 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13376 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13377 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13378 export_dynamic_flag_spec_F77='${wl}-E'
13381 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13382 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13383 hardcode_libdir_flag_spec_F77='-R$libdir'
13386 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13387 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13394 hardcode_libdir_flag_spec_F77='-L$libdir'
13395 hardcode_minus_L_F77=yes
13396 allow_undefined_flag_F77=unsupported
13397 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'
13398 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13402 if test "$GCC" = yes; then
13403 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13404 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'
13406 allow_undefined_flag_F77=' -expect_unresolved \*'
13407 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'
13409 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13410 hardcode_libdir_separator_F77=:
13413 osf4* | osf5*) # as osf3* with the addition of -msym flag
13414 if test "$GCC" = yes; then
13415 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13416 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'
13417 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13419 allow_undefined_flag_F77=' -expect_unresolved \*'
13420 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'
13421 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~
13422 $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'
13424 # Both c and cxx compiler support -rpath directly
13425 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13427 hardcode_libdir_separator_F77=:
13431 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13432 hardcode_shlibpath_var_F77=no
13433 export_dynamic_flag_spec_F77='${wl}-Bexport'
13434 runpath_var=LD_RUN_PATH
13435 hardcode_runpath_var=yes
13439 no_undefined_flag_F77=' -z text'
13440 if test "$GCC" = yes; then
13441 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13442 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13443 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13445 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13446 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13449 hardcode_libdir_flag_spec_F77='-R$libdir'
13450 hardcode_shlibpath_var_F77=no
13452 solaris2.[0-5] | solaris2.[0-5].*) ;;
13453 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13454 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13456 link_all_deplibs_F77=yes
13460 if test "x$host_vendor" = xsequent; then
13461 # Use $CC to link under sequent, because it throws in some extra .o
13462 # files that make .init and .fini sections work.
13463 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13465 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13467 hardcode_libdir_flag_spec_F77='-L$libdir'
13468 hardcode_direct_F77=yes
13469 hardcode_minus_L_F77=yes
13470 hardcode_shlibpath_var_F77=no
13474 case $host_vendor in
13476 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13477 hardcode_direct_F77=yes # is this really true???
13480 ## LD is ld it makes a PLAMLIB
13481 ## CC just makes a GrossModule.
13482 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13483 reload_cmds_F77='$CC -r -o $output$reload_objs'
13484 hardcode_direct_F77=no
13487 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13488 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13491 runpath_var='LD_RUN_PATH'
13492 hardcode_shlibpath_var_F77=no
13496 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13497 hardcode_shlibpath_var_F77=no
13498 export_dynamic_flag_spec_F77='-Bexport'
13502 if test -d /usr/nec; then
13503 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13504 hardcode_shlibpath_var_F77=no
13505 runpath_var=LD_RUN_PATH
13506 hardcode_runpath_var=yes
13512 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13513 hardcode_direct_F77=yes
13514 hardcode_minus_L_F77=no
13515 hardcode_shlibpath_var_F77=no
13516 hardcode_runpath_var=yes
13517 runpath_var=LD_RUN_PATH
13520 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13521 no_undefined_flag_F77='${wl}-z ${wl}text'
13522 if test "$GCC" = yes; then
13523 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13525 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13527 runpath_var='LD_RUN_PATH'
13528 hardcode_shlibpath_var_F77=no
13532 no_undefined_flag_F77=' -z text'
13533 # $CC -shared without GNU ld will not create a library from C++
13534 # object files and a static libstdc++, better avoid it by now
13535 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13536 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13537 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13538 hardcode_libdir_flag_spec_F77=
13539 hardcode_shlibpath_var_F77=no
13540 runpath_var='LD_RUN_PATH'
13544 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13545 hardcode_libdir_flag_spec_F77='-L$libdir'
13546 hardcode_shlibpath_var_F77=no
13555 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13556 echo "${ECHO_T}$ld_shlibs_F77" >&6
13557 test "$ld_shlibs_F77" = no && can_build_shared=no
13559 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13560 if test "$GCC" = yes; then
13561 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13565 # Do we need to explicitly link libc?
13567 case "x$archive_cmds_need_lc_F77" in
13569 # Assume -lc should be added
13570 archive_cmds_need_lc_F77=yes
13572 if test "$enable_shared" = yes && test "$GCC" = yes; then
13573 case $archive_cmds_F77 in
13575 # FIXME: we may have to deal with multi-command sequences.
13578 # Test whether the compiler implicitly links with -lc since on some
13579 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13580 # to ld, don't add -lc before -lgcc.
13581 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13582 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13584 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13587 (eval $ac_compile) 2>&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); } 2>conftest.err; then
13593 libobjs=conftest.$ac_objext
13595 wl=$lt_prog_compiler_wl_F77
13601 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13602 allow_undefined_flag_F77=
13603 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13604 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }
13609 archive_cmds_need_lc_F77=no
13611 archive_cmds_need_lc_F77=yes
13613 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13615 cat conftest.err 1>&5
13618 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13619 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13626 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13627 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13628 hardcode_action_F77=
13629 if test -n "$hardcode_libdir_flag_spec_F77" || \
13630 test -n "$runpath_var F77" || \
13631 test "X$hardcode_automatic_F77"="Xyes" ; then
13633 # We can hardcode non-existant directories.
13634 if test "$hardcode_direct_F77" != no &&
13635 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13636 # have to relink, otherwise we might link with an installed library
13637 # when we should be linking with a yet-to-be-installed one
13638 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13639 test "$hardcode_minus_L_F77" != no; then
13640 # Linking always hardcodes the temporary library directory.
13641 hardcode_action_F77=relink
13643 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13644 hardcode_action_F77=immediate
13647 # We cannot hardcode anything, or else we can only hardcode existing
13649 hardcode_action_F77=unsupported
13651 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13652 echo "${ECHO_T}$hardcode_action_F77" >&6
13654 if test "$hardcode_action_F77" = relink; then
13655 # Fast installation is not supported
13656 enable_fast_install=no
13657 elif test "$shlibpath_overrides_runpath" = yes ||
13658 test "$enable_shared" = no; then
13659 # Fast installation is not necessary
13660 enable_fast_install=needless
13665 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13666 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13667 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13668 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13669 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13670 echo "$as_me:$LINENO: result: yes" >&5
13671 echo "${ECHO_T}yes" >&6
13673 # FIXME - insert some real tests, host_os isn't really good enough
13676 if test -n "$STRIP" ; then
13677 striplib="$STRIP -x"
13678 echo "$as_me:$LINENO: result: yes" >&5
13679 echo "${ECHO_T}yes" >&6
13681 echo "$as_me:$LINENO: result: no" >&5
13682 echo "${ECHO_T}no" >&6
13686 echo "$as_me:$LINENO: result: no" >&5
13687 echo "${ECHO_T}no" >&6
13692 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13693 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13694 library_names_spec=
13695 libname_spec='lib$name'
13699 postuninstall_cmds=
13703 shlibpath_overrides_runpath=unknown
13705 dynamic_linker="$host_os ld.so"
13706 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13707 if test "$GCC" = yes; then
13708 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13709 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13710 # if the path contains ";" then we assume it to be the separator
13711 # otherwise default to the standard path separator (i.e. ":") - it is
13712 # assumed that no part of a normal pathname contains ";" but that should
13713 # okay in the real world where ";" in dirpaths is itself problematic.
13714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13719 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13721 need_lib_prefix=unknown
13722 hardcode_into_libs=no
13724 # when you set need_version to no, make sure it does not cause -set_version
13725 # flags to be left without arguments
13726 need_version=unknown
13731 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13732 shlibpath_var=LIBPATH
13734 # AIX 3 has no versioning support, so we append a major version to the name.
13735 soname_spec='${libname}${release}${shared_ext}$major'
13742 hardcode_into_libs=yes
13743 if test "$host_cpu" = ia64; then
13744 # AIX 5 supports IA64
13745 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13746 shlibpath_var=LD_LIBRARY_PATH
13748 # With GCC up to 2.95.x, collect2 would create an import file
13749 # for dependence libraries. The import file would start with
13750 # the line `#! .'. This would cause the generated library to
13751 # depend on `.', always an invalid library. This was fixed in
13752 # development snapshots of GCC prior to 3.0.
13754 aix4 | aix4.[01] | aix4.[01].*)
13755 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13757 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13760 can_build_shared=no
13764 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13765 # soname into executable. Probably we can add versioning support to
13766 # collect2, so additional links can be useful in future.
13767 if test "$aix_use_runtimelinking" = yes; then
13768 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13769 # instead of lib<name>.a to let people know that these are not
13770 # typical AIX shared libraries.
13771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13773 # We preserve .a as extension for shared libraries through AIX4.2
13774 # and later when we are not doing run time linking.
13775 library_names_spec='${libname}${release}.a $libname.a'
13776 soname_spec='${libname}${release}${shared_ext}$major'
13778 shlibpath_var=LIBPATH
13783 library_names_spec='$libname.ixlibrary $libname.a'
13784 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13785 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'
13789 library_names_spec='${libname}${shared_ext}'
13790 dynamic_linker="$host_os ld.so"
13791 shlibpath_var=LIBRARY_PATH
13797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13798 soname_spec='${libname}${release}${shared_ext}$major'
13799 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13800 shlibpath_var=LD_LIBRARY_PATH
13801 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13802 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13803 # the default ld.so.conf also contains /usr/contrib/lib and
13804 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13805 # libtool to hard-code these into programs
13808 cygwin* | mingw* | pw32*)
13809 version_type=windows
13814 case $GCC,$host_os in
13815 yes,cygwin* | yes,mingw* | yes,pw32*)
13816 library_names_spec='$libname.dll.a'
13817 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13818 postinstall_cmds='base_file=`basename \${file}`~
13819 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13820 dldir=$destdir/`dirname \$dlpath`~
13821 test -d \$dldir || mkdir -p \$dldir~
13822 $install_prog $dir/$dlname \$dldir/$dlname'
13823 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13824 dlpath=$dir/\$dldll~
13826 shlibpath_overrides_runpath=yes
13830 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13831 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13832 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13835 # MinGW DLLs use traditional 'lib' prefix
13836 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13837 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13838 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13839 # It is most probably a Windows format PATH printed by
13840 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13841 # path with ; separators, and with drive letters. We can handle the
13842 # drive letters (cygwin fileutils understands them), so leave them,
13843 # especially as we might pass files found there to a mingw objdump,
13844 # which wouldn't understand a cygwinified path. Ahh.
13845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13851 # pw32 DLLs use 'pw' prefix rather than 'lib'
13852 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13858 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13861 dynamic_linker='Win32 ld.exe'
13862 # FIXME: first we should search . and the directory the executable is in
13866 darwin* | rhapsody*)
13867 dynamic_linker="$host_os dyld"
13868 version_type=darwin
13871 # FIXME: Relying on posixy $() will cause problems for
13872 # cross-compilation, but unfortunately the echo tests do not
13873 # yet detect zsh echo's removal of \ escapes.
13874 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13875 soname_spec='${libname}${release}${major}$shared_ext'
13876 shlibpath_overrides_runpath=yes
13877 shlibpath_var=DYLD_LIBRARY_PATH
13878 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13879 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13880 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13881 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"`
13883 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13891 soname_spec='${libname}${release}${shared_ext}$major'
13892 shlibpath_var=LD_LIBRARY_PATH
13900 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13901 version_type=freebsd-$objformat
13902 case $version_type in
13904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13913 shlibpath_var=LD_LIBRARY_PATH
13916 shlibpath_overrides_runpath=yes
13918 freebsd3.01* | freebsdelf3.01*)
13919 shlibpath_overrides_runpath=yes
13920 hardcode_into_libs=yes
13923 shlibpath_overrides_runpath=no
13924 hardcode_into_libs=yes
13933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13934 soname_spec='${libname}${release}${shared_ext}$major'
13935 shlibpath_var=LD_LIBRARY_PATH
13936 hardcode_into_libs=yes
13939 hpux9* | hpux10* | hpux11*)
13940 # Give a soname corresponding to the major version so that dld.sl refuses to
13941 # link against other versions.
13945 case "$host_cpu" in
13948 hardcode_into_libs=yes
13949 dynamic_linker="$host_os dld.so"
13950 shlibpath_var=LD_LIBRARY_PATH
13951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13953 soname_spec='${libname}${release}${shared_ext}$major'
13954 if test "X$HPUX_IA64_MODE" = X32; then
13955 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13957 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13963 hardcode_into_libs=yes
13964 dynamic_linker="$host_os dld.sl"
13965 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13968 soname_spec='${libname}${release}${shared_ext}$major'
13969 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13974 dynamic_linker="$host_os dld.sl"
13975 shlibpath_var=SHLIB_PATH
13976 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13978 soname_spec='${libname}${release}${shared_ext}$major'
13981 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13982 postinstall_cmds='chmod 555 $lib'
13985 irix5* | irix6* | nonstopux*)
13987 nonstopux*) version_type=nonstopux ;;
13989 if test "$lt_cv_prog_gnu_ld" = yes; then
13997 soname_spec='${libname}${release}${shared_ext}$major'
13998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14000 irix5* | nonstopux*)
14001 libsuff= shlibsuff=
14004 case $LD in # libtool.m4 will add one of these switches to LD
14005 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14006 libsuff= shlibsuff= libmagic=32-bit;;
14007 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14008 libsuff=32 shlibsuff=N32 libmagic=N32;;
14009 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14010 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14011 *) libsuff= shlibsuff= libmagic=never-match;;
14015 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14016 shlibpath_overrides_runpath=no
14017 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14018 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14019 hardcode_into_libs=yes
14022 # No shared lib support for Linux oldld, aout, or coff.
14023 linux*oldld* | linux*aout* | linux*coff*)
14027 # This must be Linux ELF.
14032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14033 soname_spec='${libname}${release}${shared_ext}$major'
14034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14035 shlibpath_var=LD_LIBRARY_PATH
14036 shlibpath_overrides_runpath=no
14037 # This implies no fast_install, which is unacceptable.
14038 # Some rework will be needed to allow for fast_install
14039 # before this can be enabled.
14040 hardcode_into_libs=yes
14042 # We used to test for /lib/ld.so.1 and disable shared libraries on
14043 # powerpc, because MkLinux only supported shared libraries with the
14044 # GNU dynamic linker. Since this was broken with cross compilers,
14045 # most powerpc-linux boxes support dynamic linking these days and
14046 # people can always --disable-shared, the test was removed, and we
14047 # assume the GNU/Linux dynamic linker is in use.
14048 dynamic_linker='GNU/Linux ld.so'
14055 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14058 dynamic_linker='NetBSD (a.out) ld.so'
14060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14061 soname_spec='${libname}${release}${shared_ext}$major'
14062 dynamic_linker='NetBSD ld.elf_so'
14064 shlibpath_var=LD_LIBRARY_PATH
14065 shlibpath_overrides_runpath=yes
14066 hardcode_into_libs=yes
14071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14072 shlibpath_var=LD_LIBRARY_PATH
14073 shlibpath_overrides_runpath=yes
14080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14081 soname_spec='${libname}${release}${shared_ext}$major'
14082 shlibpath_var=LD_LIBRARY_PATH
14083 shlibpath_overrides_runpath=yes
14090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14092 shlibpath_var=LD_LIBRARY_PATH
14093 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14095 openbsd2.[89] | openbsd2.[89].*)
14096 shlibpath_overrides_runpath=no
14099 shlibpath_overrides_runpath=yes
14103 shlibpath_overrides_runpath=yes
14108 libname_spec='$name'
14111 library_names_spec='$libname${shared_ext} $libname.a'
14112 dynamic_linker='OS/2 ld.exe'
14113 shlibpath_var=LIBPATH
14116 osf3* | osf4* | osf5*)
14120 soname_spec='${libname}${release}${shared_ext}$major'
14121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14122 shlibpath_var=LD_LIBRARY_PATH
14123 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14124 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14129 soname_spec='${libname}${release}${shared_ext}$major'
14130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14131 shlibpath_var=LD_LIBRARY_PATH
14138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14139 soname_spec='${libname}${release}${shared_ext}$major'
14140 shlibpath_var=LD_LIBRARY_PATH
14141 shlibpath_overrides_runpath=yes
14142 hardcode_into_libs=yes
14143 # ldd complains unless libraries are executable
14144 postinstall_cmds='chmod +x $lib'
14149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14150 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14151 shlibpath_var=LD_LIBRARY_PATH
14152 shlibpath_overrides_runpath=yes
14153 if test "$with_gnu_ld" = yes; then
14159 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14162 soname_spec='${libname}${release}${shared_ext}$major'
14163 shlibpath_var=LD_LIBRARY_PATH
14164 case $host_vendor in
14166 shlibpath_overrides_runpath=no
14168 export_dynamic_flag_spec='${wl}-Blargedynsym'
14169 runpath_var=LD_RUN_PATH
14177 shlibpath_overrides_runpath=no
14178 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14184 if test -d /usr/nec ;then
14186 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14187 soname_spec='$libname${shared_ext}.$major'
14188 shlibpath_var=LD_LIBRARY_PATH
14194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14195 soname_spec='${libname}${release}${shared_ext}$major'
14196 shlibpath_var=LD_LIBRARY_PATH
14203 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14204 echo "${ECHO_T}$dynamic_linker" >&6
14205 test "$dynamic_linker" = no && can_build_shared=no
14208 # The else clause should only fire when bootstrapping the
14209 # libtool distribution, otherwise you forgot to ship ltmain.sh
14210 # with your package, and you will get complaints that there are
14211 # no rules to generate ltmain.sh.
14212 if test -f "$ltmain"; then
14213 # See if we are running on zsh, and set the options which allow our commands through
14214 # without removal of \ escapes.
14215 if test -n "${ZSH_VERSION+set}" ; then
14216 setopt NO_GLOB_SUBST
14218 # Now quote all the things that may contain metacharacters while being
14219 # careful not to overquote the AC_SUBSTed values. We take copies of the
14220 # variables and quote the copies for generation of the libtool script.
14221 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14222 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14223 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14224 deplibs_check_method reload_flag reload_cmds need_locks \
14225 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14226 lt_cv_sys_global_symbol_to_c_name_address \
14227 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14228 old_postinstall_cmds old_postuninstall_cmds \
14232 lt_prog_compiler_wl_F77 \
14233 lt_prog_compiler_pic_F77 \
14234 lt_prog_compiler_static_F77 \
14235 lt_prog_compiler_no_builtin_flag_F77 \
14236 export_dynamic_flag_spec_F77 \
14237 thread_safe_flag_spec_F77 \
14238 whole_archive_flag_spec_F77 \
14239 enable_shared_with_static_runtimes_F77 \
14240 old_archive_cmds_F77 \
14241 old_archive_from_new_cmds_F77 \
14242 predep_objects_F77 \
14243 postdep_objects_F77 \
14246 compiler_lib_search_path_F77 \
14248 archive_expsym_cmds_F77 \
14249 postinstall_cmds_F77 \
14250 postuninstall_cmds_F77 \
14251 old_archive_from_expsyms_cmds_F77 \
14252 allow_undefined_flag_F77 \
14253 no_undefined_flag_F77 \
14254 export_symbols_cmds_F77 \
14255 hardcode_libdir_flag_spec_F77 \
14256 hardcode_libdir_flag_spec_ld_F77 \
14257 hardcode_libdir_separator_F77 \
14258 hardcode_automatic_F77 \
14260 module_expsym_cmds_F77 \
14261 lt_cv_prog_compiler_c_o_F77 \
14262 exclude_expsyms_F77 \
14263 include_expsyms_F77; do
14266 old_archive_cmds_F77 | \
14267 old_archive_from_new_cmds_F77 | \
14268 archive_cmds_F77 | \
14269 archive_expsym_cmds_F77 | \
14270 module_cmds_F77 | \
14271 module_expsym_cmds_F77 | \
14272 old_archive_from_expsyms_cmds_F77 | \
14273 export_symbols_cmds_F77 | \
14274 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14275 postinstall_cmds | postuninstall_cmds | \
14276 old_postinstall_cmds | old_postuninstall_cmds | \
14277 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14278 # Double-quote double-evaled strings.
14279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14282 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14288 *'\$0 --fallback-echo"')
14289 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14295 cat <<__EOF__ >> "$cfgfile"
14296 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14298 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14300 # Shell to use when invoking shell scripts.
14303 # Whether or not to build shared libraries.
14304 build_libtool_libs=$enable_shared
14306 # Whether or not to build static libraries.
14307 build_old_libs=$enable_static
14309 # Whether or not to add -lc for building shared libraries.
14310 build_libtool_need_lc=$archive_cmds_need_lc_F77
14312 # Whether or not to disallow shared libs when runtime libs are static
14313 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14315 # Whether or not to optimize for fast installation.
14316 fast_install=$enable_fast_install
14319 host_alias=$host_alias
14322 # An echo program that does not interpret backslashes.
14327 AR_FLAGS=$lt_AR_FLAGS
14332 # A language-specific compiler.
14333 CC=$lt_compiler_F77
14335 # Is the compiler the GNU C compiler?
14341 # The linker used to build libraries.
14344 # Whether we need hard or soft links.
14347 # A BSD-compatible nm program.
14350 # A symbol stripping program
14353 # Used to examine libraries when file_magic_cmd begins "file"
14354 MAGIC_CMD=$MAGIC_CMD
14356 # Used on cygwin: DLL creation program.
14359 # Used on cygwin: object dumper.
14362 # Used on cygwin: assembler.
14365 # The name of the directory that contains temporary libtool files.
14368 # How to create reloadable object files.
14369 reload_flag=$lt_reload_flag
14370 reload_cmds=$lt_reload_cmds
14372 # How to pass a linker flag through the compiler.
14373 wl=$lt_lt_prog_compiler_wl_F77
14375 # Object file suffix (normally "o").
14376 objext="$ac_objext"
14378 # Old archive suffix (normally "a").
14381 # Shared library suffix (normally ".so").
14384 # Executable file suffix (normally "").
14387 # Additional compiler flags for building library objects.
14388 pic_flag=$lt_lt_prog_compiler_pic_F77
14391 # What is the maximum length of a command?
14392 max_cmd_len=$lt_cv_sys_max_cmd_len
14394 # Does compiler simultaneously support -c and -o options?
14395 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14397 # Must we lock files when doing compilation ?
14398 need_locks=$lt_need_locks
14400 # Do we need the lib prefix for modules?
14401 need_lib_prefix=$need_lib_prefix
14403 # Do we need a version for libraries?
14404 need_version=$need_version
14406 # Whether dlopen is supported.
14407 dlopen_support=$enable_dlopen
14409 # Whether dlopen of programs is supported.
14410 dlopen_self=$enable_dlopen_self
14412 # Whether dlopen of statically linked programs is supported.
14413 dlopen_self_static=$enable_dlopen_self_static
14415 # Compiler flag to prevent dynamic linking.
14416 link_static_flag=$lt_lt_prog_compiler_static_F77
14418 # Compiler flag to turn off builtin functions.
14419 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14421 # Compiler flag to allow reflexive dlopens.
14422 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14424 # Compiler flag to generate shared objects directly from archives.
14425 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14427 # Compiler flag to generate thread-safe objects.
14428 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14430 # Library versioning type.
14431 version_type=$version_type
14433 # Format of library name prefix.
14434 libname_spec=$lt_libname_spec
14436 # List of archive names. First name is the real one, the rest are links.
14437 # The last name is the one that the linker finds with -lNAME.
14438 library_names_spec=$lt_library_names_spec
14440 # The coded name of the library, if different from the real name.
14441 soname_spec=$lt_soname_spec
14443 # Commands used to build and install an old-style archive.
14445 old_archive_cmds=$lt_old_archive_cmds_F77
14446 old_postinstall_cmds=$lt_old_postinstall_cmds
14447 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14449 # Create an old-style archive from a shared archive.
14450 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14452 # Create a temporary old-style archive to link instead of a shared archive.
14453 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14455 # Commands used to build and install a shared archive.
14456 archive_cmds=$lt_archive_cmds_F77
14457 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14458 postinstall_cmds=$lt_postinstall_cmds
14459 postuninstall_cmds=$lt_postuninstall_cmds
14461 # Commands used to build a loadable module (assumed same as above if empty)
14462 module_cmds=$lt_module_cmds_F77
14463 module_expsym_cmds=$lt_module_expsym_cmds_F77
14465 # Commands to strip libraries.
14466 old_striplib=$lt_old_striplib
14467 striplib=$lt_striplib
14469 # Dependencies to place before the objects being linked to create a
14471 predep_objects=$lt_predep_objects_F77
14473 # Dependencies to place after the objects being linked to create a
14475 postdep_objects=$lt_postdep_objects_F77
14477 # Dependencies to place before the objects being linked to create a
14479 predeps=$lt_predeps_F77
14481 # Dependencies to place after the objects being linked to create a
14483 postdeps=$lt_postdeps_F77
14485 # The library search path used internally by the compiler when linking
14486 # a shared library.
14487 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14489 # Method to check whether dependent libraries are shared objects.
14490 deplibs_check_method=$lt_deplibs_check_method
14492 # Command to use when deplibs_check_method == file_magic.
14493 file_magic_cmd=$lt_file_magic_cmd
14495 # Flag that allows shared libraries with undefined symbols to be built.
14496 allow_undefined_flag=$lt_allow_undefined_flag_F77
14498 # Flag that forces no undefined symbols.
14499 no_undefined_flag=$lt_no_undefined_flag_F77
14501 # Commands used to finish a libtool library installation in a directory.
14502 finish_cmds=$lt_finish_cmds
14504 # Same as above, but a single script fragment to be evaled but not shown.
14505 finish_eval=$lt_finish_eval
14507 # Take the output of nm and produce a listing of raw symbols and C names.
14508 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14510 # Transform the output of nm in a proper C declaration
14511 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14513 # Transform the output of nm in a C name address pair
14514 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14516 # This is the shared library runtime path variable.
14517 runpath_var=$runpath_var
14519 # This is the shared library path variable.
14520 shlibpath_var=$shlibpath_var
14522 # Is shlibpath searched before the hard-coded library search path?
14523 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14525 # How to hardcode a shared library path into an executable.
14526 hardcode_action=$hardcode_action_F77
14528 # Whether we should hardcode library paths into libraries.
14529 hardcode_into_libs=$hardcode_into_libs
14531 # Flag to hardcode \$libdir into a binary during linking.
14532 # This must work even if \$libdir does not exist.
14533 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14535 # If ld is used when linking, flag to hardcode \$libdir into
14536 # a binary during linking. This must work even if \$libdir does
14538 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14540 # Whether we need a single -rpath flag with a separated argument.
14541 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14543 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14544 # resulting binary.
14545 hardcode_direct=$hardcode_direct_F77
14547 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14548 # resulting binary.
14549 hardcode_minus_L=$hardcode_minus_L_F77
14551 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14552 # the resulting binary.
14553 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14555 # Set to yes if building a shared library automatically hardcodes DIR into the library
14556 # and all subsequent libraries and executables linked against it.
14557 hardcode_automatic=$hardcode_automatic_F77
14559 # Variables whose values should be saved in libtool wrapper scripts and
14560 # restored at relink time.
14561 variables_saved_for_relink="$variables_saved_for_relink"
14563 # Whether libtool must link a program against all its dependency libraries.
14564 link_all_deplibs=$link_all_deplibs_F77
14566 # Compile-time system search path for libraries
14567 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14569 # Run-time system search path for libraries
14570 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14572 # Fix the shell variable \$srcfile for the compiler.
14573 fix_srcfile_path="$fix_srcfile_path_F77"
14575 # Set to yes if exported symbols are required.
14576 always_export_symbols=$always_export_symbols_F77
14578 # The commands to list exported symbols.
14579 export_symbols_cmds=$lt_export_symbols_cmds_F77
14581 # The commands to extract the exported symbol list from a shared archive.
14582 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14584 # Symbols that should not be listed in the preloaded symbols.
14585 exclude_expsyms=$lt_exclude_expsyms_F77
14587 # Symbols that must always be exported.
14588 include_expsyms=$lt_include_expsyms_F77
14590 # ### END LIBTOOL TAG CONFIG: $tagname
14596 # If there is no Makefile yet, we rely on a make rule to execute
14597 # `config.status --recheck' to rerun these tests and create the
14598 # libtool script then.
14599 test -f Makefile && make "$ltmain"
14604 ac_cpp='$CPP $CPPFLAGS'
14605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14617 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14621 # Source file extension for Java test sources.
14624 # Object file extension for compiled Java test sources.
14628 # Code to be used in simple compile tests
14629 lt_simple_compile_test_code="class foo {}\n"
14631 # Code to be used in simple link tests
14632 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14634 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14636 # If no C compiler was specified, use CC.
14639 # Allow CC to be a program name with arguments.
14643 # Allow CC to be a program name with arguments.
14649 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14650 archive_cmds_need_lc_GCJ=no
14653 lt_prog_compiler_no_builtin_flag_GCJ=
14655 if test "$GCC" = yes; then
14656 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14658 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14659 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14660 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14663 lt_cv_prog_compiler_rtti_exceptions=no
14664 ac_outfile=conftest.$ac_objext
14665 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14666 lt_compiler_flag="-fno-rtti -fno-exceptions"
14667 # Insert the option either (1) after the last *FLAGS variable, or
14668 # (2) before a word containing "conftest.", or (3) at the end.
14669 # Note that $ac_compile itself does not contain backslashes and begins
14670 # with a dollar sign (not a hyphen), so the echo should work correctly.
14671 # The option is referenced via a variable to avoid confusing sed.
14672 lt_compile=`echo "$ac_compile" | $SED \
14673 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14675 -e 's:$: $lt_compiler_flag:'`
14676 (eval echo "\"\$as_me:14676: $lt_compile\"" >&5)
14677 (eval "$lt_compile" 2>conftest.err)
14679 cat conftest.err >&5
14680 echo "$as_me:14680: \$? = $ac_status" >&5
14681 if (exit $ac_status) && test -s "$ac_outfile"; then
14682 # The compiler can only warn and ignore the option if not recognized
14683 # So say no if there are warnings
14684 if test ! -s conftest.err; then
14685 lt_cv_prog_compiler_rtti_exceptions=yes
14691 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14692 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14694 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14695 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14702 lt_prog_compiler_wl_GCJ=
14703 lt_prog_compiler_pic_GCJ=
14704 lt_prog_compiler_static_GCJ=
14706 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14707 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14709 if test "$GCC" = yes; then
14710 lt_prog_compiler_wl_GCJ='-Wl,'
14711 lt_prog_compiler_static_GCJ='-static'
14715 # All AIX code is PIC.
14716 if test "$host_cpu" = ia64; then
14717 # AIX 5 now supports IA64 processor
14718 lt_prog_compiler_static_GCJ='-Bstatic'
14723 # FIXME: we need at least 68020 code to build shared libraries, but
14724 # adding the `-m68020' flag to GCC prevents building anything better,
14726 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14729 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14730 # PIC is the default for these OSes.
14733 mingw* | pw32* | os2*)
14734 # This hack is so that the source file can tell whether it is being
14735 # built for inclusion in a dll (and should export symbols for example).
14736 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14739 darwin* | rhapsody*)
14740 # PIC is the default on this platform
14741 # Common symbols not allowed in MH_DYLIB files
14742 lt_prog_compiler_pic_GCJ='-fno-common'
14746 # Just because we use GCC doesn't mean we suddenly get shared libraries
14747 # on systems that don't support them.
14748 lt_prog_compiler_can_build_shared_GCJ=no
14753 if test -d /usr/nec; then
14754 lt_prog_compiler_pic_GCJ=-Kconform_pic
14759 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14760 # not for PA HP-UX.
14761 case "$host_cpu" in
14766 lt_prog_compiler_pic_GCJ='-fPIC'
14772 lt_prog_compiler_pic_GCJ='-fPIC'
14776 # PORTME Check for flag to pass linker flags through the system compiler.
14779 lt_prog_compiler_wl_GCJ='-Wl,'
14780 if test "$host_cpu" = ia64; then
14781 # AIX 5 now supports IA64 processor
14782 lt_prog_compiler_static_GCJ='-Bstatic'
14784 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14788 mingw* | pw32* | os2*)
14789 # This hack is so that the source file can tell whether it is being
14790 # built for inclusion in a dll (and should export symbols for example).
14791 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14794 hpux9* | hpux10* | hpux11*)
14795 lt_prog_compiler_wl_GCJ='-Wl,'
14796 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14797 # not for PA HP-UX.
14798 case "$host_cpu" in
14803 lt_prog_compiler_pic_GCJ='+Z'
14806 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14807 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14810 irix5* | irix6* | nonstopux*)
14811 lt_prog_compiler_wl_GCJ='-Wl,'
14812 # PIC (with -KPIC) is the default.
14813 lt_prog_compiler_static_GCJ='-non_shared'
14817 lt_prog_compiler_pic_GCJ='-KPIC'
14818 lt_prog_compiler_static_GCJ='-Bstatic'
14824 lt_prog_compiler_wl_GCJ='-Wl,'
14825 lt_prog_compiler_pic_GCJ='-KPIC'
14826 lt_prog_compiler_static_GCJ='-static'
14829 lt_prog_compiler_wl_GCJ='-Wl,'
14830 # All Alpha code is PIC.
14831 lt_prog_compiler_static_GCJ='-non_shared'
14836 osf3* | osf4* | osf5*)
14837 lt_prog_compiler_wl_GCJ='-Wl,'
14838 # All OSF/1 code is PIC.
14839 lt_prog_compiler_static_GCJ='-non_shared'
14843 lt_prog_compiler_pic_GCJ='-Kpic'
14844 lt_prog_compiler_static_GCJ='-dn'
14848 lt_prog_compiler_wl_GCJ='-Wl,'
14849 lt_prog_compiler_pic_GCJ='-KPIC'
14850 lt_prog_compiler_static_GCJ='-Bstatic'
14854 lt_prog_compiler_wl_GCJ='-Qoption ld '
14855 lt_prog_compiler_pic_GCJ='-PIC'
14856 lt_prog_compiler_static_GCJ='-Bstatic'
14859 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14860 lt_prog_compiler_wl_GCJ='-Wl,'
14861 lt_prog_compiler_pic_GCJ='-KPIC'
14862 lt_prog_compiler_static_GCJ='-Bstatic'
14866 if test -d /usr/nec ;then
14867 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14868 lt_prog_compiler_static_GCJ='-Bstatic'
14873 lt_prog_compiler_pic_GCJ='-pic'
14874 lt_prog_compiler_static_GCJ='-Bstatic'
14878 lt_prog_compiler_can_build_shared_GCJ=no
14883 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14884 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14887 # Check to make sure the PIC flag actually works.
14889 if test -n "$lt_prog_compiler_pic_GCJ"; then
14890 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14891 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14892 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 lt_prog_compiler_pic_works_GCJ=no
14896 ac_outfile=conftest.$ac_objext
14897 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14898 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14899 # Insert the option either (1) after the last *FLAGS variable, or
14900 # (2) before a word containing "conftest.", or (3) at the end.
14901 # Note that $ac_compile itself does not contain backslashes and begins
14902 # with a dollar sign (not a hyphen), so the echo should work correctly.
14903 # The option is referenced via a variable to avoid confusing sed.
14904 lt_compile=`echo "$ac_compile" | $SED \
14905 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14907 -e 's:$: $lt_compiler_flag:'`
14908 (eval echo "\"\$as_me:14908: $lt_compile\"" >&5)
14909 (eval "$lt_compile" 2>conftest.err)
14911 cat conftest.err >&5
14912 echo "$as_me:14912: \$? = $ac_status" >&5
14913 if (exit $ac_status) && test -s "$ac_outfile"; then
14914 # The compiler can only warn and ignore the option if not recognized
14915 # So say no if there are warnings
14916 if test ! -s conftest.err; then
14917 lt_prog_compiler_pic_works_GCJ=yes
14923 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14924 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14926 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14927 case $lt_prog_compiler_pic_GCJ in
14929 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14932 lt_prog_compiler_pic_GCJ=
14933 lt_prog_compiler_can_build_shared_GCJ=no
14938 # For platforms which do not support PIC, -DPIC is meaningless:
14940 lt_prog_compiler_pic_GCJ=
14943 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14947 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14948 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14949 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14952 lt_cv_prog_compiler_c_o_GCJ=no
14953 $rm -r conftest 2>/dev/null
14957 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14959 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14960 # that will create temporary files in the current directory regardless of
14961 # the output directory. Thus, making CWD read-only will cause this test
14962 # to fail, enabling locking or at least warning the user not to do parallel
14966 lt_compiler_flag="-o out/conftest2.$ac_objext"
14967 # Insert the option either (1) after the last *FLAGS variable, or
14968 # (2) before a word containing "conftest.", or (3) at the end.
14969 # Note that $ac_compile itself does not contain backslashes and begins
14970 # with a dollar sign (not a hyphen), so the echo should work correctly.
14971 lt_compile=`echo "$ac_compile" | $SED \
14972 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14974 -e 's:$: $lt_compiler_flag:'`
14975 (eval echo "\"\$as_me:14975: $lt_compile\"" >&5)
14976 (eval "$lt_compile" 2>out/conftest.err)
14978 cat out/conftest.err >&5
14979 echo "$as_me:14979: \$? = $ac_status" >&5
14980 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14982 # The compiler can only warn and ignore the option if not recognized
14983 # So say no if there are warnings
14984 if test ! -s out/conftest.err; then
14985 lt_cv_prog_compiler_c_o_GCJ=yes
14989 $rm conftest* out/*
14996 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14997 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15000 hard_links="nottested"
15001 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15002 # do not overwrite the value of need_locks provided by the user
15003 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15004 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15007 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15009 ln conftest.a conftest.b 2>&5 || hard_links=no
15010 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15011 echo "$as_me:$LINENO: result: $hard_links" >&5
15012 echo "${ECHO_T}$hard_links" >&6
15013 if test "$hard_links" = no; then
15014 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15015 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15022 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15023 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15026 allow_undefined_flag_GCJ=
15027 enable_shared_with_static_runtimes_GCJ=no
15029 archive_expsym_cmds_GCJ=
15030 old_archive_From_new_cmds_GCJ=
15031 old_archive_from_expsyms_cmds_GCJ=
15032 export_dynamic_flag_spec_GCJ=
15033 whole_archive_flag_spec_GCJ=
15034 thread_safe_flag_spec_GCJ=
15035 hardcode_libdir_flag_spec_GCJ=
15036 hardcode_libdir_flag_spec_ld_GCJ=
15037 hardcode_libdir_separator_GCJ=
15038 hardcode_direct_GCJ=no
15039 hardcode_minus_L_GCJ=no
15040 hardcode_shlibpath_var_GCJ=unsupported
15041 link_all_deplibs_GCJ=unknown
15042 hardcode_automatic_GCJ=no
15044 module_expsym_cmds_GCJ=
15045 always_export_symbols_GCJ=no
15046 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15047 # include_expsyms should be a list of space-separated symbols to be *always*
15048 # included in the symbol list
15049 include_expsyms_GCJ=
15050 # exclude_expsyms can be an extended regexp of symbols to exclude
15051 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15052 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15053 # as well as any symbol that contains `d'.
15054 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15055 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15056 # platforms (ab)use it in PIC code, but their linkers get confused if
15057 # the symbol is explicitly referenced. Since portable code cannot
15058 # rely on this symbol name, it's probably fine to never include it in
15059 # preloaded symbol tables.
15060 extract_expsyms_cmds=
15063 cygwin* | mingw* | pw32*)
15064 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15065 # When not using gcc, we currently assume that we are using
15066 # Microsoft Visual C++.
15067 if test "$GCC" != yes; then
15077 if test "$with_gnu_ld" = yes; then
15078 # If archive_cmds runs LD, not CC, wlarc should be empty
15081 # See if GNU ld supports shared libraries.
15083 aix3* | aix4* | aix5*)
15084 # On AIX/PPC, the GNU linker is very broken
15085 if test "$host_cpu" != ia64; then
15089 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15090 *** to be unable to reliably create shared libraries on AIX.
15091 *** Therefore, libtool is disabling shared libraries support. If you
15092 *** really care for shared libraries, you may want to modify your PATH
15093 *** so that a non-GNU linker is found, and then restart.
15100 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)'
15101 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15102 hardcode_minus_L_GCJ=yes
15104 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15105 # that the semantics of dynamic libraries on AmigaOS, at least up
15106 # to version 4, is to share data among multiple programs linked
15107 # with the same dynamic library. Since this doesn't match the
15108 # behavior of shared libraries on other platforms, we can't use
15114 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15115 allow_undefined_flag_GCJ=unsupported
15116 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15117 # support --undefined. This deserves some investigation. FIXME
15118 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15124 cygwin* | mingw* | pw32*)
15125 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15126 # as there is no search path for DLLs.
15127 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15128 allow_undefined_flag_GCJ=unsupported
15129 always_export_symbols_GCJ=no
15130 enable_shared_with_static_runtimes_GCJ=yes
15131 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15133 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15134 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15135 # If the export-symbols file already is a .def file (1st line
15136 # is EXPORTS), use it as is; otherwise, prepend...
15137 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15138 cp $export_symbols $output_objdir/$soname.def;
15140 echo EXPORTS > $output_objdir/$soname.def;
15141 cat $export_symbols >> $output_objdir/$soname.def;
15143 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15150 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15151 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15154 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15155 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15160 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15164 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15165 *** create shared libraries on Solaris systems. Therefore, libtool
15166 *** is disabling shared libraries support. We urge you to upgrade GNU
15167 *** binutils to release 2.9.1 or newer. Another option is to modify
15168 *** your PATH or compiler configuration so that the native linker is
15169 *** used, and then restart.
15172 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15173 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15174 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15181 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15183 hardcode_direct_GCJ=yes
15184 hardcode_shlibpath_var_GCJ=no
15188 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15189 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15190 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15197 if test "$ld_shlibs_GCJ" = yes; then
15198 runpath_var=LD_RUN_PATH
15199 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15200 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15201 # ancient GNU ld didn't support --whole-archive et. al.
15202 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15203 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15205 whole_archive_flag_spec_GCJ=
15209 # PORTME fill in a description of your system's linker (not GNU ld)
15212 allow_undefined_flag_GCJ=unsupported
15213 always_export_symbols_GCJ=yes
15214 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'
15215 # Note: this linker hardcodes the directories in LIBPATH if there
15216 # are no directories specified by -L.
15217 hardcode_minus_L_GCJ=yes
15218 if test "$GCC" = yes && test -z "$link_static_flag"; then
15219 # Neither direct hardcoding nor static linking is supported with a
15221 hardcode_direct_GCJ=unsupported
15226 if test "$host_cpu" = ia64; then
15227 # On IA64, the linker does run time linking by default, so we don't
15228 # have to do anything special.
15229 aix_use_runtimelinking=no
15230 exp_sym_flag='-Bexport'
15233 # If we're using GNU nm, then we don't want the "-C" option.
15234 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15235 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15236 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'
15238 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'
15240 aix_use_runtimelinking=no
15242 # Test if we are trying to use run time linking or normal
15243 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15244 # need to do runtime linking.
15245 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15246 for ld_flag in $LDFLAGS; do
15247 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15248 aix_use_runtimelinking=yes
15254 exp_sym_flag='-bexport'
15255 no_entry_flag='-bnoentry'
15258 # When large executables or shared objects are built, AIX ld can
15259 # have problems creating the table of contents. If linking a library
15260 # or program results in "error TOC overflow" add -mminimal-toc to
15261 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15262 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15264 archive_cmds_GCJ=''
15265 hardcode_direct_GCJ=yes
15266 hardcode_libdir_separator_GCJ=':'
15267 link_all_deplibs_GCJ=yes
15269 if test "$GCC" = yes; then
15270 case $host_os in aix4.012|aix4.012.*)
15271 # We only want to do this on AIX 4.2 and lower, the check
15272 # below for broken collect2 doesn't work under 4.3+
15273 collect2name=`${CC} -print-prog-name=collect2`
15274 if test -f "$collect2name" && \
15275 strings "$collect2name" | grep resolve_lib_name >/dev/null
15277 # We have reworked collect2
15278 hardcode_direct_GCJ=yes
15280 # We have old collect2
15281 hardcode_direct_GCJ=unsupported
15282 # It fails to find uninstalled libraries when the uninstalled
15283 # path is not listed in the libpath. Setting hardcode_minus_L
15284 # to unsupported forces relinking
15285 hardcode_minus_L_GCJ=yes
15286 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15287 hardcode_libdir_separator_GCJ=
15290 shared_flag='-shared'
15293 if test "$host_cpu" = ia64; then
15294 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15295 # chokes on -Wl,-G. The following line is correct:
15298 if test "$aix_use_runtimelinking" = yes; then
15299 shared_flag='${wl}-G'
15301 shared_flag='${wl}-bM:SRE'
15306 # It seems that -bexpall does not export symbols beginning with
15307 # underscore (_), so it is better to generate a list of symbols to export.
15308 always_export_symbols_GCJ=yes
15309 if test "$aix_use_runtimelinking" = yes; then
15310 # Warning - without using the other runtime loading flags (-brtl),
15311 # -berok will link without error, but may produce a broken library.
15312 allow_undefined_flag_GCJ='-berok'
15313 # Determine the default libpath from the value encoded in an empty executable.
15314 cat >conftest.$ac_ext <<_ACEOF
15315 #line $LINENO "configure"
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h. */
15330 rm -f conftest.$ac_objext conftest$ac_exeext
15331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15332 (eval $ac_link) 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } &&
15336 { ac_try='test -s conftest$ac_exeext'
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
15343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15345 # Check for a 64-bit object if we didn't find anything.
15346 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; }
15349 echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15354 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15356 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15357 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"
15359 if test "$host_cpu" = ia64; then
15360 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15361 allow_undefined_flag_GCJ="-z nodefs"
15362 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"
15364 # Determine the default libpath from the value encoded in an empty executable.
15365 cat >conftest.$ac_ext <<_ACEOF
15366 #line $LINENO "configure"
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h. */
15381 rm -f conftest.$ac_objext conftest$ac_exeext
15382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15383 (eval $ac_link) 2>&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } &&
15387 { ac_try='test -s conftest$ac_exeext'
15388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389 (eval $ac_try) 2>&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; }; then
15394 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15396 # Check for a 64-bit object if we didn't find anything.
15397 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; }
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15407 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15408 # Warning - without using the other run time loading flags,
15409 # -berok will link without error, but may produce a broken library.
15410 no_undefined_flag_GCJ=' ${wl}-bernotok'
15411 allow_undefined_flag_GCJ=' ${wl}-berok'
15412 # -bexpall does not export symbols beginning with underscore (_)
15413 always_export_symbols_GCJ=yes
15414 # Exported symbols can be pulled into shared objects from archives
15415 whole_archive_flag_spec_GCJ=' '
15416 archive_cmds_need_lc_GCJ=yes
15417 # This is similar to how AIX traditionally builds it's shared libraries.
15418 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'
15424 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)'
15425 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15426 hardcode_minus_L_GCJ=yes
15427 # see comment about different semantics on the GNU ld section
15432 export_dynamic_flag_spec_GCJ=-rdynamic
15435 cygwin* | mingw* | pw32*)
15436 # When not using gcc, we currently assume that we are using
15437 # Microsoft Visual C++.
15438 # hardcode_libdir_flag_spec is actually meaningless, as there is
15439 # no search path for DLLs.
15440 hardcode_libdir_flag_spec_GCJ=' '
15441 allow_undefined_flag_GCJ=unsupported
15442 # Tell ltmain to make .lib files, not .a files.
15444 # Tell ltmain to make .dll files, not .so files.
15446 # FIXME: Setting linknames here is a bad hack.
15447 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15448 # The linker will automatically build a .lib file if we build a DLL.
15449 old_archive_From_new_cmds_GCJ='true'
15450 # FIXME: Should let the user specify the lib program.
15451 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15452 fix_srcfile_path='`cygpath -w "$srcfile"`'
15453 enable_shared_with_static_runtimes_GCJ=yes
15456 darwin* | rhapsody*)
15457 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15458 archive_cmds_need_lc_GCJ=no
15460 rhapsody* | darwin1.[012])
15461 allow_undefined_flag_GCJ='-undefined suppress'
15464 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15467 # FIXME: Relying on posixy $() will cause problems for
15468 # cross-compilation, but unfortunately the echo tests do not
15469 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15470 # `"' quotes if we put them in here... so don't!
15471 lt_int_apple_cc_single_mod=no
15472 output_verbose_link_cmd='echo'
15473 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15474 lt_int_apple_cc_single_mod=yes
15476 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15477 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15479 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15481 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15482 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15483 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15484 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15486 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15488 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15489 hardcode_direct_GCJ=no
15490 hardcode_automatic_GCJ=yes
15491 hardcode_shlibpath_var_GCJ=unsupported
15492 whole_archive_flag_spec_GCJ='-all_load $convenience'
15493 link_all_deplibs_GCJ=yes
15498 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15499 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15500 hardcode_shlibpath_var_GCJ=no
15507 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15508 # support. Future versions do this automatically, but an explicit c++rt0.o
15509 # does not break anything, and helps significantly (at the cost of a little
15512 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15513 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15514 hardcode_direct_GCJ=yes
15515 hardcode_shlibpath_var_GCJ=no
15518 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15520 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15521 hardcode_direct_GCJ=yes
15522 hardcode_minus_L_GCJ=yes
15523 hardcode_shlibpath_var_GCJ=no
15526 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15528 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15529 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15530 hardcode_direct_GCJ=yes
15531 hardcode_shlibpath_var_GCJ=no
15535 if test "$GCC" = yes; then
15536 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'
15538 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'
15540 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15541 hardcode_libdir_separator_GCJ=:
15542 hardcode_direct_GCJ=yes
15544 # hardcode_minus_L: Not really in the search PATH,
15545 # but as the default location of the library.
15546 hardcode_minus_L_GCJ=yes
15547 export_dynamic_flag_spec_GCJ='${wl}-E'
15551 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15552 case "$host_cpu" in
15554 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15557 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15561 case "$host_cpu" in
15563 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15566 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15570 if test "$with_gnu_ld" = no; then
15571 case "$host_cpu" in
15573 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15574 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15575 hardcode_libdir_separator_GCJ=:
15576 hardcode_direct_GCJ=no
15577 hardcode_shlibpath_var_GCJ=no
15580 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15581 hardcode_direct_GCJ=no
15582 hardcode_shlibpath_var_GCJ=no
15584 # hardcode_minus_L: Not really in the search PATH,
15585 # but as the default location of the library.
15586 hardcode_minus_L_GCJ=yes
15589 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15590 hardcode_libdir_separator_GCJ=:
15591 hardcode_direct_GCJ=yes
15592 export_dynamic_flag_spec_GCJ='${wl}-E'
15594 # hardcode_minus_L: Not really in the search PATH,
15595 # but as the default location of the library.
15596 hardcode_minus_L_GCJ=yes
15602 irix5* | irix6* | nonstopux*)
15603 if test "$GCC" = yes; then
15604 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'
15606 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'
15607 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15609 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15610 hardcode_libdir_separator_GCJ=:
15611 link_all_deplibs_GCJ=yes
15615 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15616 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15618 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15620 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15621 hardcode_direct_GCJ=yes
15622 hardcode_shlibpath_var_GCJ=no
15626 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15627 hardcode_direct_GCJ=yes
15628 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15629 hardcode_libdir_separator_GCJ=:
15630 hardcode_shlibpath_var_GCJ=no
15634 hardcode_direct_GCJ=yes
15635 hardcode_shlibpath_var_GCJ=no
15636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15637 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15638 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15639 export_dynamic_flag_spec_GCJ='${wl}-E'
15642 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15643 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15644 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15647 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15648 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15655 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15656 hardcode_minus_L_GCJ=yes
15657 allow_undefined_flag_GCJ=unsupported
15658 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'
15659 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15663 if test "$GCC" = yes; then
15664 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15665 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'
15667 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15668 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'
15670 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15671 hardcode_libdir_separator_GCJ=:
15674 osf4* | osf5*) # as osf3* with the addition of -msym flag
15675 if test "$GCC" = yes; then
15676 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15677 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'
15678 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15680 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15681 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'
15682 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~
15683 $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'
15685 # Both c and cxx compiler support -rpath directly
15686 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15688 hardcode_libdir_separator_GCJ=:
15692 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15693 hardcode_shlibpath_var_GCJ=no
15694 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15695 runpath_var=LD_RUN_PATH
15696 hardcode_runpath_var=yes
15700 no_undefined_flag_GCJ=' -z text'
15701 if test "$GCC" = yes; then
15702 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15703 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15704 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15706 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15707 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15708 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15710 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15711 hardcode_shlibpath_var_GCJ=no
15713 solaris2.[0-5] | solaris2.[0-5].*) ;;
15714 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15715 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15717 link_all_deplibs_GCJ=yes
15721 if test "x$host_vendor" = xsequent; then
15722 # Use $CC to link under sequent, because it throws in some extra .o
15723 # files that make .init and .fini sections work.
15724 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15726 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15728 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15729 hardcode_direct_GCJ=yes
15730 hardcode_minus_L_GCJ=yes
15731 hardcode_shlibpath_var_GCJ=no
15735 case $host_vendor in
15737 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15738 hardcode_direct_GCJ=yes # is this really true???
15741 ## LD is ld it makes a PLAMLIB
15742 ## CC just makes a GrossModule.
15743 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15744 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15745 hardcode_direct_GCJ=no
15748 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15749 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15752 runpath_var='LD_RUN_PATH'
15753 hardcode_shlibpath_var_GCJ=no
15757 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15758 hardcode_shlibpath_var_GCJ=no
15759 export_dynamic_flag_spec_GCJ='-Bexport'
15763 if test -d /usr/nec; then
15764 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15765 hardcode_shlibpath_var_GCJ=no
15766 runpath_var=LD_RUN_PATH
15767 hardcode_runpath_var=yes
15773 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15774 hardcode_direct_GCJ=yes
15775 hardcode_minus_L_GCJ=no
15776 hardcode_shlibpath_var_GCJ=no
15777 hardcode_runpath_var=yes
15778 runpath_var=LD_RUN_PATH
15781 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15782 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15783 if test "$GCC" = yes; then
15784 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15786 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15788 runpath_var='LD_RUN_PATH'
15789 hardcode_shlibpath_var_GCJ=no
15793 no_undefined_flag_GCJ=' -z text'
15794 # $CC -shared without GNU ld will not create a library from C++
15795 # object files and a static libstdc++, better avoid it by now
15796 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15797 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15798 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15799 hardcode_libdir_flag_spec_GCJ=
15800 hardcode_shlibpath_var_GCJ=no
15801 runpath_var='LD_RUN_PATH'
15805 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15806 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15807 hardcode_shlibpath_var_GCJ=no
15816 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15817 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15818 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15820 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15821 if test "$GCC" = yes; then
15822 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15826 # Do we need to explicitly link libc?
15828 case "x$archive_cmds_need_lc_GCJ" in
15830 # Assume -lc should be added
15831 archive_cmds_need_lc_GCJ=yes
15833 if test "$enable_shared" = yes && test "$GCC" = yes; then
15834 case $archive_cmds_GCJ in
15836 # FIXME: we may have to deal with multi-command sequences.
15839 # Test whether the compiler implicitly links with -lc since on some
15840 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15841 # to ld, don't add -lc before -lgcc.
15842 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15843 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15845 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15848 (eval $ac_compile) 2>&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } 2>conftest.err; then
15854 libobjs=conftest.$ac_objext
15856 wl=$lt_prog_compiler_wl_GCJ
15862 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15863 allow_undefined_flag_GCJ=
15864 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15865 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }
15870 archive_cmds_need_lc_GCJ=no
15872 archive_cmds_need_lc_GCJ=yes
15874 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15876 cat conftest.err 1>&5
15879 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15880 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15887 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15888 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15889 hardcode_action_GCJ=
15890 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15891 test -n "$runpath_var GCJ" || \
15892 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15894 # We can hardcode non-existant directories.
15895 if test "$hardcode_direct_GCJ" != no &&
15896 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15897 # have to relink, otherwise we might link with an installed library
15898 # when we should be linking with a yet-to-be-installed one
15899 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15900 test "$hardcode_minus_L_GCJ" != no; then
15901 # Linking always hardcodes the temporary library directory.
15902 hardcode_action_GCJ=relink
15904 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15905 hardcode_action_GCJ=immediate
15908 # We cannot hardcode anything, or else we can only hardcode existing
15910 hardcode_action_GCJ=unsupported
15912 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15913 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15915 if test "$hardcode_action_GCJ" = relink; then
15916 # Fast installation is not supported
15917 enable_fast_install=no
15918 elif test "$shlibpath_overrides_runpath" = yes ||
15919 test "$enable_shared" = no; then
15920 # Fast installation is not necessary
15921 enable_fast_install=needless
15926 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15927 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15928 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15929 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15930 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15931 echo "$as_me:$LINENO: result: yes" >&5
15932 echo "${ECHO_T}yes" >&6
15934 # FIXME - insert some real tests, host_os isn't really good enough
15937 if test -n "$STRIP" ; then
15938 striplib="$STRIP -x"
15939 echo "$as_me:$LINENO: result: yes" >&5
15940 echo "${ECHO_T}yes" >&6
15942 echo "$as_me:$LINENO: result: no" >&5
15943 echo "${ECHO_T}no" >&6
15947 echo "$as_me:$LINENO: result: no" >&5
15948 echo "${ECHO_T}no" >&6
15953 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15954 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15955 library_names_spec=
15956 libname_spec='lib$name'
15960 postuninstall_cmds=
15964 shlibpath_overrides_runpath=unknown
15966 dynamic_linker="$host_os ld.so"
15967 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15968 if test "$GCC" = yes; then
15969 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15970 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15971 # if the path contains ";" then we assume it to be the separator
15972 # otherwise default to the standard path separator (i.e. ":") - it is
15973 # assumed that no part of a normal pathname contains ";" but that should
15974 # okay in the real world where ";" in dirpaths is itself problematic.
15975 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15980 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15982 need_lib_prefix=unknown
15983 hardcode_into_libs=no
15985 # when you set need_version to no, make sure it does not cause -set_version
15986 # flags to be left without arguments
15987 need_version=unknown
15992 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15993 shlibpath_var=LIBPATH
15995 # AIX 3 has no versioning support, so we append a major version to the name.
15996 soname_spec='${libname}${release}${shared_ext}$major'
16003 hardcode_into_libs=yes
16004 if test "$host_cpu" = ia64; then
16005 # AIX 5 supports IA64
16006 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16007 shlibpath_var=LD_LIBRARY_PATH
16009 # With GCC up to 2.95.x, collect2 would create an import file
16010 # for dependence libraries. The import file would start with
16011 # the line `#! .'. This would cause the generated library to
16012 # depend on `.', always an invalid library. This was fixed in
16013 # development snapshots of GCC prior to 3.0.
16015 aix4 | aix4.[01] | aix4.[01].*)
16016 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16018 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16021 can_build_shared=no
16025 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16026 # soname into executable. Probably we can add versioning support to
16027 # collect2, so additional links can be useful in future.
16028 if test "$aix_use_runtimelinking" = yes; then
16029 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16030 # instead of lib<name>.a to let people know that these are not
16031 # typical AIX shared libraries.
16032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16034 # We preserve .a as extension for shared libraries through AIX4.2
16035 # and later when we are not doing run time linking.
16036 library_names_spec='${libname}${release}.a $libname.a'
16037 soname_spec='${libname}${release}${shared_ext}$major'
16039 shlibpath_var=LIBPATH
16044 library_names_spec='$libname.ixlibrary $libname.a'
16045 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16046 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'
16050 library_names_spec='${libname}${shared_ext}'
16051 dynamic_linker="$host_os ld.so"
16052 shlibpath_var=LIBRARY_PATH
16058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16059 soname_spec='${libname}${release}${shared_ext}$major'
16060 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16061 shlibpath_var=LD_LIBRARY_PATH
16062 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16063 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16064 # the default ld.so.conf also contains /usr/contrib/lib and
16065 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16066 # libtool to hard-code these into programs
16069 cygwin* | mingw* | pw32*)
16070 version_type=windows
16075 case $GCC,$host_os in
16076 yes,cygwin* | yes,mingw* | yes,pw32*)
16077 library_names_spec='$libname.dll.a'
16078 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16079 postinstall_cmds='base_file=`basename \${file}`~
16080 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16081 dldir=$destdir/`dirname \$dlpath`~
16082 test -d \$dldir || mkdir -p \$dldir~
16083 $install_prog $dir/$dlname \$dldir/$dlname'
16084 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16085 dlpath=$dir/\$dldll~
16087 shlibpath_overrides_runpath=yes
16091 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16092 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16093 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16096 # MinGW DLLs use traditional 'lib' prefix
16097 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16098 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16099 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16100 # It is most probably a Windows format PATH printed by
16101 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16102 # path with ; separators, and with drive letters. We can handle the
16103 # drive letters (cygwin fileutils understands them), so leave them,
16104 # especially as we might pass files found there to a mingw objdump,
16105 # which wouldn't understand a cygwinified path. Ahh.
16106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16112 # pw32 DLLs use 'pw' prefix rather than 'lib'
16113 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16119 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16122 dynamic_linker='Win32 ld.exe'
16123 # FIXME: first we should search . and the directory the executable is in
16127 darwin* | rhapsody*)
16128 dynamic_linker="$host_os dyld"
16129 version_type=darwin
16132 # FIXME: Relying on posixy $() will cause problems for
16133 # cross-compilation, but unfortunately the echo tests do not
16134 # yet detect zsh echo's removal of \ escapes.
16135 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16136 soname_spec='${libname}${release}${major}$shared_ext'
16137 shlibpath_overrides_runpath=yes
16138 shlibpath_var=DYLD_LIBRARY_PATH
16139 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16140 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16141 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16142 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"`
16144 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16152 soname_spec='${libname}${release}${shared_ext}$major'
16153 shlibpath_var=LD_LIBRARY_PATH
16161 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16162 version_type=freebsd-$objformat
16163 case $version_type in
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16170 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16174 shlibpath_var=LD_LIBRARY_PATH
16177 shlibpath_overrides_runpath=yes
16179 freebsd3.01* | freebsdelf3.01*)
16180 shlibpath_overrides_runpath=yes
16181 hardcode_into_libs=yes
16184 shlibpath_overrides_runpath=no
16185 hardcode_into_libs=yes
16194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16195 soname_spec='${libname}${release}${shared_ext}$major'
16196 shlibpath_var=LD_LIBRARY_PATH
16197 hardcode_into_libs=yes
16200 hpux9* | hpux10* | hpux11*)
16201 # Give a soname corresponding to the major version so that dld.sl refuses to
16202 # link against other versions.
16206 case "$host_cpu" in
16209 hardcode_into_libs=yes
16210 dynamic_linker="$host_os dld.so"
16211 shlibpath_var=LD_LIBRARY_PATH
16212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214 soname_spec='${libname}${release}${shared_ext}$major'
16215 if test "X$HPUX_IA64_MODE" = X32; then
16216 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16218 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16224 hardcode_into_libs=yes
16225 dynamic_linker="$host_os dld.sl"
16226 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229 soname_spec='${libname}${release}${shared_ext}$major'
16230 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16235 dynamic_linker="$host_os dld.sl"
16236 shlibpath_var=SHLIB_PATH
16237 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16239 soname_spec='${libname}${release}${shared_ext}$major'
16242 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16243 postinstall_cmds='chmod 555 $lib'
16246 irix5* | irix6* | nonstopux*)
16248 nonstopux*) version_type=nonstopux ;;
16250 if test "$lt_cv_prog_gnu_ld" = yes; then
16258 soname_spec='${libname}${release}${shared_ext}$major'
16259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16261 irix5* | nonstopux*)
16262 libsuff= shlibsuff=
16265 case $LD in # libtool.m4 will add one of these switches to LD
16266 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16267 libsuff= shlibsuff= libmagic=32-bit;;
16268 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16269 libsuff=32 shlibsuff=N32 libmagic=N32;;
16270 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16271 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16272 *) libsuff= shlibsuff= libmagic=never-match;;
16276 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16277 shlibpath_overrides_runpath=no
16278 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16279 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16280 hardcode_into_libs=yes
16283 # No shared lib support for Linux oldld, aout, or coff.
16284 linux*oldld* | linux*aout* | linux*coff*)
16288 # This must be Linux ELF.
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16294 soname_spec='${libname}${release}${shared_ext}$major'
16295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16296 shlibpath_var=LD_LIBRARY_PATH
16297 shlibpath_overrides_runpath=no
16298 # This implies no fast_install, which is unacceptable.
16299 # Some rework will be needed to allow for fast_install
16300 # before this can be enabled.
16301 hardcode_into_libs=yes
16303 # We used to test for /lib/ld.so.1 and disable shared libraries on
16304 # powerpc, because MkLinux only supported shared libraries with the
16305 # GNU dynamic linker. Since this was broken with cross compilers,
16306 # most powerpc-linux boxes support dynamic linking these days and
16307 # people can always --disable-shared, the test was removed, and we
16308 # assume the GNU/Linux dynamic linker is in use.
16309 dynamic_linker='GNU/Linux ld.so'
16316 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16319 dynamic_linker='NetBSD (a.out) ld.so'
16321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 dynamic_linker='NetBSD ld.elf_so'
16325 shlibpath_var=LD_LIBRARY_PATH
16326 shlibpath_overrides_runpath=yes
16327 hardcode_into_libs=yes
16332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16333 shlibpath_var=LD_LIBRARY_PATH
16334 shlibpath_overrides_runpath=yes
16341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16342 soname_spec='${libname}${release}${shared_ext}$major'
16343 shlibpath_var=LD_LIBRARY_PATH
16344 shlibpath_overrides_runpath=yes
16351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16353 shlibpath_var=LD_LIBRARY_PATH
16354 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16356 openbsd2.[89] | openbsd2.[89].*)
16357 shlibpath_overrides_runpath=no
16360 shlibpath_overrides_runpath=yes
16364 shlibpath_overrides_runpath=yes
16369 libname_spec='$name'
16372 library_names_spec='$libname${shared_ext} $libname.a'
16373 dynamic_linker='OS/2 ld.exe'
16374 shlibpath_var=LIBPATH
16377 osf3* | osf4* | osf5*)
16381 soname_spec='${libname}${release}${shared_ext}$major'
16382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16383 shlibpath_var=LD_LIBRARY_PATH
16384 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16385 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16390 soname_spec='${libname}${release}${shared_ext}$major'
16391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16392 shlibpath_var=LD_LIBRARY_PATH
16399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16400 soname_spec='${libname}${release}${shared_ext}$major'
16401 shlibpath_var=LD_LIBRARY_PATH
16402 shlibpath_overrides_runpath=yes
16403 hardcode_into_libs=yes
16404 # ldd complains unless libraries are executable
16405 postinstall_cmds='chmod +x $lib'
16410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16411 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16412 shlibpath_var=LD_LIBRARY_PATH
16413 shlibpath_overrides_runpath=yes
16414 if test "$with_gnu_ld" = yes; then
16420 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16423 soname_spec='${libname}${release}${shared_ext}$major'
16424 shlibpath_var=LD_LIBRARY_PATH
16425 case $host_vendor in
16427 shlibpath_overrides_runpath=no
16429 export_dynamic_flag_spec='${wl}-Blargedynsym'
16430 runpath_var=LD_RUN_PATH
16438 shlibpath_overrides_runpath=no
16439 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16445 if test -d /usr/nec ;then
16447 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16448 soname_spec='$libname${shared_ext}.$major'
16449 shlibpath_var=LD_LIBRARY_PATH
16455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16456 soname_spec='${libname}${release}${shared_ext}$major'
16457 shlibpath_var=LD_LIBRARY_PATH
16464 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16465 echo "${ECHO_T}$dynamic_linker" >&6
16466 test "$dynamic_linker" = no && can_build_shared=no
16468 if test "x$enable_dlopen" != xyes; then
16469 enable_dlopen=unknown
16470 enable_dlopen_self=unknown
16471 enable_dlopen_self_static=unknown
16478 lt_cv_dlopen="load_add_on"
16480 lt_cv_dlopen_self=yes
16484 lt_cv_dlopen="LoadLibrary"
16489 lt_cv_dlopen="dlopen"
16494 # if libdl is installed we need to link against it
16495 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16496 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16497 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16500 ac_check_lib_save_LIBS=$LIBS
16502 cat >conftest.$ac_ext <<_ACEOF
16503 #line $LINENO "configure"
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h. */
16510 /* Override any gcc2 internal prototype to avoid an error. */
16514 /* We use char because int might match the return type of a gcc2
16515 builtin and then its argument prototype would still apply. */
16525 rm -f conftest.$ac_objext conftest$ac_exeext
16526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16527 (eval $ac_link) 2>&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } &&
16531 { ac_try='test -s conftest$ac_exeext'
16532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16533 (eval $ac_try) 2>&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); }; }; then
16537 ac_cv_lib_dl_dlopen=yes
16539 echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16542 ac_cv_lib_dl_dlopen=no
16544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16545 LIBS=$ac_check_lib_save_LIBS
16547 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16548 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16549 if test $ac_cv_lib_dl_dlopen = yes; then
16550 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16553 lt_cv_dlopen="dyld"
16555 lt_cv_dlopen_self=yes
16562 echo "$as_me:$LINENO: checking for shl_load" >&5
16563 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16564 if test "${ac_cv_func_shl_load+set}" = set; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16567 cat >conftest.$ac_ext <<_ACEOF
16568 #line $LINENO "configure"
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h. */
16574 /* System header to define __stub macros and hopefully few prototypes,
16575 which can conflict with char shl_load (); below.
16576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16577 <limits.h> exists even on freestanding compilers. */
16579 # include <limits.h>
16581 # include <assert.h>
16583 /* Override any gcc2 internal prototype to avoid an error. */
16588 /* We use char because int might match the return type of a gcc2
16589 builtin and then its argument prototype would still apply. */
16591 /* The GNU C library defines this for functions which it implements
16592 to always fail with ENOSYS. Some functions are actually named
16593 something starting with __ and the normal name is an alias. */
16594 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16597 char (*f) () = shl_load;
16606 return f != shl_load;
16611 rm -f conftest.$ac_objext conftest$ac_exeext
16612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16613 (eval $ac_link) 2>&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); } &&
16617 { ac_try='test -s conftest$ac_exeext'
16618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619 (eval $ac_try) 2>&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); }; }; then
16623 ac_cv_func_shl_load=yes
16625 echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16628 ac_cv_func_shl_load=no
16630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16632 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16633 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16634 if test $ac_cv_func_shl_load = yes; then
16635 lt_cv_dlopen="shl_load"
16637 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16638 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16639 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16642 ac_check_lib_save_LIBS=$LIBS
16644 cat >conftest.$ac_ext <<_ACEOF
16645 #line $LINENO "configure"
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16652 /* Override any gcc2 internal prototype to avoid an error. */
16656 /* We use char because int might match the return type of a gcc2
16657 builtin and then its argument prototype would still apply. */
16667 rm -f conftest.$ac_objext conftest$ac_exeext
16668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16669 (eval $ac_link) 2>&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } &&
16673 { ac_try='test -s conftest$ac_exeext'
16674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675 (eval $ac_try) 2>&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; }; then
16679 ac_cv_lib_dld_shl_load=yes
16681 echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16684 ac_cv_lib_dld_shl_load=no
16686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16687 LIBS=$ac_check_lib_save_LIBS
16689 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16690 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16691 if test $ac_cv_lib_dld_shl_load = yes; then
16692 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16694 echo "$as_me:$LINENO: checking for dlopen" >&5
16695 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16696 if test "${ac_cv_func_dlopen+set}" = set; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16699 cat >conftest.$ac_ext <<_ACEOF
16700 #line $LINENO "configure"
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16706 /* System header to define __stub macros and hopefully few prototypes,
16707 which can conflict with char dlopen (); below.
16708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16709 <limits.h> exists even on freestanding compilers. */
16711 # include <limits.h>
16713 # include <assert.h>
16715 /* Override any gcc2 internal prototype to avoid an error. */
16720 /* We use char because int might match the return type of a gcc2
16721 builtin and then its argument prototype would still apply. */
16723 /* The GNU C library defines this for functions which it implements
16724 to always fail with ENOSYS. Some functions are actually named
16725 something starting with __ and the normal name is an alias. */
16726 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16729 char (*f) () = dlopen;
16738 return f != dlopen;
16743 rm -f conftest.$ac_objext conftest$ac_exeext
16744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16745 (eval $ac_link) 2>&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } &&
16749 { ac_try='test -s conftest$ac_exeext'
16750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751 (eval $ac_try) 2>&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; }; then
16755 ac_cv_func_dlopen=yes
16757 echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16760 ac_cv_func_dlopen=no
16762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16764 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16765 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16766 if test $ac_cv_func_dlopen = yes; then
16767 lt_cv_dlopen="dlopen"
16769 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16770 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16771 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16774 ac_check_lib_save_LIBS=$LIBS
16776 cat >conftest.$ac_ext <<_ACEOF
16777 #line $LINENO "configure"
16780 cat confdefs.h >>conftest.$ac_ext
16781 cat >>conftest.$ac_ext <<_ACEOF
16782 /* end confdefs.h. */
16784 /* Override any gcc2 internal prototype to avoid an error. */
16788 /* We use char because int might match the return type of a gcc2
16789 builtin and then its argument prototype would still apply. */
16799 rm -f conftest.$ac_objext conftest$ac_exeext
16800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16801 (eval $ac_link) 2>&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } &&
16805 { ac_try='test -s conftest$ac_exeext'
16806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16807 (eval $ac_try) 2>&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; }; then
16811 ac_cv_lib_dl_dlopen=yes
16813 echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16816 ac_cv_lib_dl_dlopen=no
16818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16819 LIBS=$ac_check_lib_save_LIBS
16821 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16822 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16823 if test $ac_cv_lib_dl_dlopen = yes; then
16824 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16826 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16827 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16828 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16829 echo $ECHO_N "(cached) $ECHO_C" >&6
16831 ac_check_lib_save_LIBS=$LIBS
16832 LIBS="-lsvld $LIBS"
16833 cat >conftest.$ac_ext <<_ACEOF
16834 #line $LINENO "configure"
16837 cat confdefs.h >>conftest.$ac_ext
16838 cat >>conftest.$ac_ext <<_ACEOF
16839 /* end confdefs.h. */
16841 /* Override any gcc2 internal prototype to avoid an error. */
16845 /* We use char because int might match the return type of a gcc2
16846 builtin and then its argument prototype would still apply. */
16856 rm -f conftest.$ac_objext conftest$ac_exeext
16857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16858 (eval $ac_link) 2>&5
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); } &&
16862 { ac_try='test -s conftest$ac_exeext'
16863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864 (eval $ac_try) 2>&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; }; then
16868 ac_cv_lib_svld_dlopen=yes
16870 echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16873 ac_cv_lib_svld_dlopen=no
16875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16876 LIBS=$ac_check_lib_save_LIBS
16878 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16879 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16880 if test $ac_cv_lib_svld_dlopen = yes; then
16881 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16883 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16884 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16885 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16888 ac_check_lib_save_LIBS=$LIBS
16890 cat >conftest.$ac_ext <<_ACEOF
16891 #line $LINENO "configure"
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h. */
16898 /* Override any gcc2 internal prototype to avoid an error. */
16902 /* We use char because int might match the return type of a gcc2
16903 builtin and then its argument prototype would still apply. */
16913 rm -f conftest.$ac_objext conftest$ac_exeext
16914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16915 (eval $ac_link) 2>&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } &&
16919 { ac_try='test -s conftest$ac_exeext'
16920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; }; then
16925 ac_cv_lib_dld_dld_link=yes
16927 echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16930 ac_cv_lib_dld_dld_link=no
16932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16933 LIBS=$ac_check_lib_save_LIBS
16935 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16936 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16937 if test $ac_cv_lib_dld_dld_link = yes; then
16938 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16959 if test "x$lt_cv_dlopen" != xno; then
16965 case $lt_cv_dlopen in
16967 save_CPPFLAGS="$CPPFLAGS"
16968 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16970 save_LDFLAGS="$LDFLAGS"
16971 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16974 LIBS="$lt_cv_dlopen_libs $LIBS"
16976 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16977 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16978 if test "${lt_cv_dlopen_self+set}" = set; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16981 if test "$cross_compiling" = yes; then :
16982 lt_cv_dlopen_self=cross
16984 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16985 lt_status=$lt_dlunknown
16986 cat > conftest.$ac_ext <<EOF
16987 #line 16987 "configure"
16988 #include "confdefs.h"
16997 # define LT_DLGLOBAL RTLD_GLOBAL
17000 # define LT_DLGLOBAL DL_GLOBAL
17002 # define LT_DLGLOBAL 0
17006 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17007 find out it does not work in some platform. */
17008 #ifndef LT_DLLAZY_OR_NOW
17010 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17013 # define LT_DLLAZY_OR_NOW DL_LAZY
17016 # define LT_DLLAZY_OR_NOW RTLD_NOW
17019 # define LT_DLLAZY_OR_NOW DL_NOW
17021 # define LT_DLLAZY_OR_NOW 0
17029 extern "C" void exit (int);
17032 void fnord() { int i=42;}
17035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17036 int status = $lt_dlunknown;
17040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17041 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17042 /* dlclose (self); */
17048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17049 (eval $ac_link) 2>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17053 (./conftest; exit; ) 2>/dev/null
17055 case x$lt_status in
17056 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17057 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17058 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17061 # compilation failed
17062 lt_cv_dlopen_self=no
17069 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17070 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17072 if test "x$lt_cv_dlopen_self" = xyes; then
17073 LDFLAGS="$LDFLAGS $link_static_flag"
17074 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17075 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17076 if test "${lt_cv_dlopen_self_static+set}" = set; then
17077 echo $ECHO_N "(cached) $ECHO_C" >&6
17079 if test "$cross_compiling" = yes; then :
17080 lt_cv_dlopen_self_static=cross
17082 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17083 lt_status=$lt_dlunknown
17084 cat > conftest.$ac_ext <<EOF
17085 #line 17085 "configure"
17086 #include "confdefs.h"
17095 # define LT_DLGLOBAL RTLD_GLOBAL
17098 # define LT_DLGLOBAL DL_GLOBAL
17100 # define LT_DLGLOBAL 0
17104 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17105 find out it does not work in some platform. */
17106 #ifndef LT_DLLAZY_OR_NOW
17108 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17111 # define LT_DLLAZY_OR_NOW DL_LAZY
17114 # define LT_DLLAZY_OR_NOW RTLD_NOW
17117 # define LT_DLLAZY_OR_NOW DL_NOW
17119 # define LT_DLLAZY_OR_NOW 0
17127 extern "C" void exit (int);
17130 void fnord() { int i=42;}
17133 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17134 int status = $lt_dlunknown;
17138 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17139 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17140 /* dlclose (self); */
17146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17147 (eval $ac_link) 2>&5
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17151 (./conftest; exit; ) 2>/dev/null
17153 case x$lt_status in
17154 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17155 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17156 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17159 # compilation failed
17160 lt_cv_dlopen_self_static=no
17167 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17168 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17171 CPPFLAGS="$save_CPPFLAGS"
17172 LDFLAGS="$save_LDFLAGS"
17177 case $lt_cv_dlopen_self in
17178 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17179 *) enable_dlopen_self=unknown ;;
17182 case $lt_cv_dlopen_self_static in
17183 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17184 *) enable_dlopen_self_static=unknown ;;
17189 # The else clause should only fire when bootstrapping the
17190 # libtool distribution, otherwise you forgot to ship ltmain.sh
17191 # with your package, and you will get complaints that there are
17192 # no rules to generate ltmain.sh.
17193 if test -f "$ltmain"; then
17194 # See if we are running on zsh, and set the options which allow our commands through
17195 # without removal of \ escapes.
17196 if test -n "${ZSH_VERSION+set}" ; then
17197 setopt NO_GLOB_SUBST
17199 # Now quote all the things that may contain metacharacters while being
17200 # careful not to overquote the AC_SUBSTed values. We take copies of the
17201 # variables and quote the copies for generation of the libtool script.
17202 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17203 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17204 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17205 deplibs_check_method reload_flag reload_cmds need_locks \
17206 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17207 lt_cv_sys_global_symbol_to_c_name_address \
17208 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17209 old_postinstall_cmds old_postuninstall_cmds \
17213 lt_prog_compiler_wl_GCJ \
17214 lt_prog_compiler_pic_GCJ \
17215 lt_prog_compiler_static_GCJ \
17216 lt_prog_compiler_no_builtin_flag_GCJ \
17217 export_dynamic_flag_spec_GCJ \
17218 thread_safe_flag_spec_GCJ \
17219 whole_archive_flag_spec_GCJ \
17220 enable_shared_with_static_runtimes_GCJ \
17221 old_archive_cmds_GCJ \
17222 old_archive_from_new_cmds_GCJ \
17223 predep_objects_GCJ \
17224 postdep_objects_GCJ \
17227 compiler_lib_search_path_GCJ \
17229 archive_expsym_cmds_GCJ \
17230 postinstall_cmds_GCJ \
17231 postuninstall_cmds_GCJ \
17232 old_archive_from_expsyms_cmds_GCJ \
17233 allow_undefined_flag_GCJ \
17234 no_undefined_flag_GCJ \
17235 export_symbols_cmds_GCJ \
17236 hardcode_libdir_flag_spec_GCJ \
17237 hardcode_libdir_flag_spec_ld_GCJ \
17238 hardcode_libdir_separator_GCJ \
17239 hardcode_automatic_GCJ \
17241 module_expsym_cmds_GCJ \
17242 lt_cv_prog_compiler_c_o_GCJ \
17243 exclude_expsyms_GCJ \
17244 include_expsyms_GCJ; do
17247 old_archive_cmds_GCJ | \
17248 old_archive_from_new_cmds_GCJ | \
17249 archive_cmds_GCJ | \
17250 archive_expsym_cmds_GCJ | \
17251 module_cmds_GCJ | \
17252 module_expsym_cmds_GCJ | \
17253 old_archive_from_expsyms_cmds_GCJ | \
17254 export_symbols_cmds_GCJ | \
17255 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17256 postinstall_cmds | postuninstall_cmds | \
17257 old_postinstall_cmds | old_postuninstall_cmds | \
17258 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17259 # Double-quote double-evaled strings.
17260 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17263 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17269 *'\$0 --fallback-echo"')
17270 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17276 cat <<__EOF__ >> "$cfgfile"
17277 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17279 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17281 # Shell to use when invoking shell scripts.
17284 # Whether or not to build shared libraries.
17285 build_libtool_libs=$enable_shared
17287 # Whether or not to build static libraries.
17288 build_old_libs=$enable_static
17290 # Whether or not to add -lc for building shared libraries.
17291 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17293 # Whether or not to disallow shared libs when runtime libs are static
17294 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17296 # Whether or not to optimize for fast installation.
17297 fast_install=$enable_fast_install
17300 host_alias=$host_alias
17303 # An echo program that does not interpret backslashes.
17308 AR_FLAGS=$lt_AR_FLAGS
17313 # A language-specific compiler.
17314 CC=$lt_compiler_GCJ
17316 # Is the compiler the GNU C compiler?
17322 # The linker used to build libraries.
17325 # Whether we need hard or soft links.
17328 # A BSD-compatible nm program.
17331 # A symbol stripping program
17334 # Used to examine libraries when file_magic_cmd begins "file"
17335 MAGIC_CMD=$MAGIC_CMD
17337 # Used on cygwin: DLL creation program.
17340 # Used on cygwin: object dumper.
17343 # Used on cygwin: assembler.
17346 # The name of the directory that contains temporary libtool files.
17349 # How to create reloadable object files.
17350 reload_flag=$lt_reload_flag
17351 reload_cmds=$lt_reload_cmds
17353 # How to pass a linker flag through the compiler.
17354 wl=$lt_lt_prog_compiler_wl_GCJ
17356 # Object file suffix (normally "o").
17357 objext="$ac_objext"
17359 # Old archive suffix (normally "a").
17362 # Shared library suffix (normally ".so").
17365 # Executable file suffix (normally "").
17368 # Additional compiler flags for building library objects.
17369 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17372 # What is the maximum length of a command?
17373 max_cmd_len=$lt_cv_sys_max_cmd_len
17375 # Does compiler simultaneously support -c and -o options?
17376 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17378 # Must we lock files when doing compilation ?
17379 need_locks=$lt_need_locks
17381 # Do we need the lib prefix for modules?
17382 need_lib_prefix=$need_lib_prefix
17384 # Do we need a version for libraries?
17385 need_version=$need_version
17387 # Whether dlopen is supported.
17388 dlopen_support=$enable_dlopen
17390 # Whether dlopen of programs is supported.
17391 dlopen_self=$enable_dlopen_self
17393 # Whether dlopen of statically linked programs is supported.
17394 dlopen_self_static=$enable_dlopen_self_static
17396 # Compiler flag to prevent dynamic linking.
17397 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17399 # Compiler flag to turn off builtin functions.
17400 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17402 # Compiler flag to allow reflexive dlopens.
17403 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17405 # Compiler flag to generate shared objects directly from archives.
17406 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17408 # Compiler flag to generate thread-safe objects.
17409 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17411 # Library versioning type.
17412 version_type=$version_type
17414 # Format of library name prefix.
17415 libname_spec=$lt_libname_spec
17417 # List of archive names. First name is the real one, the rest are links.
17418 # The last name is the one that the linker finds with -lNAME.
17419 library_names_spec=$lt_library_names_spec
17421 # The coded name of the library, if different from the real name.
17422 soname_spec=$lt_soname_spec
17424 # Commands used to build and install an old-style archive.
17426 old_archive_cmds=$lt_old_archive_cmds_GCJ
17427 old_postinstall_cmds=$lt_old_postinstall_cmds
17428 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17430 # Create an old-style archive from a shared archive.
17431 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17433 # Create a temporary old-style archive to link instead of a shared archive.
17434 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17436 # Commands used to build and install a shared archive.
17437 archive_cmds=$lt_archive_cmds_GCJ
17438 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17439 postinstall_cmds=$lt_postinstall_cmds
17440 postuninstall_cmds=$lt_postuninstall_cmds
17442 # Commands used to build a loadable module (assumed same as above if empty)
17443 module_cmds=$lt_module_cmds_GCJ
17444 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17446 # Commands to strip libraries.
17447 old_striplib=$lt_old_striplib
17448 striplib=$lt_striplib
17450 # Dependencies to place before the objects being linked to create a
17452 predep_objects=$lt_predep_objects_GCJ
17454 # Dependencies to place after the objects being linked to create a
17456 postdep_objects=$lt_postdep_objects_GCJ
17458 # Dependencies to place before the objects being linked to create a
17460 predeps=$lt_predeps_GCJ
17462 # Dependencies to place after the objects being linked to create a
17464 postdeps=$lt_postdeps_GCJ
17466 # The library search path used internally by the compiler when linking
17467 # a shared library.
17468 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17470 # Method to check whether dependent libraries are shared objects.
17471 deplibs_check_method=$lt_deplibs_check_method
17473 # Command to use when deplibs_check_method == file_magic.
17474 file_magic_cmd=$lt_file_magic_cmd
17476 # Flag that allows shared libraries with undefined symbols to be built.
17477 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17479 # Flag that forces no undefined symbols.
17480 no_undefined_flag=$lt_no_undefined_flag_GCJ
17482 # Commands used to finish a libtool library installation in a directory.
17483 finish_cmds=$lt_finish_cmds
17485 # Same as above, but a single script fragment to be evaled but not shown.
17486 finish_eval=$lt_finish_eval
17488 # Take the output of nm and produce a listing of raw symbols and C names.
17489 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17491 # Transform the output of nm in a proper C declaration
17492 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17494 # Transform the output of nm in a C name address pair
17495 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17497 # This is the shared library runtime path variable.
17498 runpath_var=$runpath_var
17500 # This is the shared library path variable.
17501 shlibpath_var=$shlibpath_var
17503 # Is shlibpath searched before the hard-coded library search path?
17504 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17506 # How to hardcode a shared library path into an executable.
17507 hardcode_action=$hardcode_action_GCJ
17509 # Whether we should hardcode library paths into libraries.
17510 hardcode_into_libs=$hardcode_into_libs
17512 # Flag to hardcode \$libdir into a binary during linking.
17513 # This must work even if \$libdir does not exist.
17514 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17516 # If ld is used when linking, flag to hardcode \$libdir into
17517 # a binary during linking. This must work even if \$libdir does
17519 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17521 # Whether we need a single -rpath flag with a separated argument.
17522 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17524 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17525 # resulting binary.
17526 hardcode_direct=$hardcode_direct_GCJ
17528 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17529 # resulting binary.
17530 hardcode_minus_L=$hardcode_minus_L_GCJ
17532 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17533 # the resulting binary.
17534 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17536 # Set to yes if building a shared library automatically hardcodes DIR into the library
17537 # and all subsequent libraries and executables linked against it.
17538 hardcode_automatic=$hardcode_automatic_GCJ
17540 # Variables whose values should be saved in libtool wrapper scripts and
17541 # restored at relink time.
17542 variables_saved_for_relink="$variables_saved_for_relink"
17544 # Whether libtool must link a program against all its dependency libraries.
17545 link_all_deplibs=$link_all_deplibs_GCJ
17547 # Compile-time system search path for libraries
17548 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17550 # Run-time system search path for libraries
17551 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17553 # Fix the shell variable \$srcfile for the compiler.
17554 fix_srcfile_path="$fix_srcfile_path_GCJ"
17556 # Set to yes if exported symbols are required.
17557 always_export_symbols=$always_export_symbols_GCJ
17559 # The commands to list exported symbols.
17560 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17562 # The commands to extract the exported symbol list from a shared archive.
17563 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17565 # Symbols that should not be listed in the preloaded symbols.
17566 exclude_expsyms=$lt_exclude_expsyms_GCJ
17568 # Symbols that must always be exported.
17569 include_expsyms=$lt_include_expsyms_GCJ
17571 # ### END LIBTOOL TAG CONFIG: $tagname
17577 # If there is no Makefile yet, we rely on a make rule to execute
17578 # `config.status --recheck' to rerun these tests and create the
17579 # libtool script then.
17580 test -f Makefile && make "$ltmain"
17585 ac_cpp='$CPP $CPPFLAGS'
17586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17601 # Source file extension for RC test sources.
17604 # Object file extension for compiled RC test sources.
17608 # Code to be used in simple compile tests
17609 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17611 # Code to be used in simple link tests
17612 lt_simple_link_test_code="$lt_simple_compile_test_code"
17614 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17616 # If no C compiler was specified, use CC.
17619 # Allow CC to be a program name with arguments.
17623 # Allow CC to be a program name with arguments.
17628 lt_cv_prog_compiler_c_o_RC=yes
17630 # The else clause should only fire when bootstrapping the
17631 # libtool distribution, otherwise you forgot to ship ltmain.sh
17632 # with your package, and you will get complaints that there are
17633 # no rules to generate ltmain.sh.
17634 if test -f "$ltmain"; then
17635 # See if we are running on zsh, and set the options which allow our commands through
17636 # without removal of \ escapes.
17637 if test -n "${ZSH_VERSION+set}" ; then
17638 setopt NO_GLOB_SUBST
17640 # Now quote all the things that may contain metacharacters while being
17641 # careful not to overquote the AC_SUBSTed values. We take copies of the
17642 # variables and quote the copies for generation of the libtool script.
17643 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17644 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17645 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17646 deplibs_check_method reload_flag reload_cmds need_locks \
17647 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17648 lt_cv_sys_global_symbol_to_c_name_address \
17649 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17650 old_postinstall_cmds old_postuninstall_cmds \
17654 lt_prog_compiler_wl_RC \
17655 lt_prog_compiler_pic_RC \
17656 lt_prog_compiler_static_RC \
17657 lt_prog_compiler_no_builtin_flag_RC \
17658 export_dynamic_flag_spec_RC \
17659 thread_safe_flag_spec_RC \
17660 whole_archive_flag_spec_RC \
17661 enable_shared_with_static_runtimes_RC \
17662 old_archive_cmds_RC \
17663 old_archive_from_new_cmds_RC \
17664 predep_objects_RC \
17665 postdep_objects_RC \
17668 compiler_lib_search_path_RC \
17670 archive_expsym_cmds_RC \
17671 postinstall_cmds_RC \
17672 postuninstall_cmds_RC \
17673 old_archive_from_expsyms_cmds_RC \
17674 allow_undefined_flag_RC \
17675 no_undefined_flag_RC \
17676 export_symbols_cmds_RC \
17677 hardcode_libdir_flag_spec_RC \
17678 hardcode_libdir_flag_spec_ld_RC \
17679 hardcode_libdir_separator_RC \
17680 hardcode_automatic_RC \
17682 module_expsym_cmds_RC \
17683 lt_cv_prog_compiler_c_o_RC \
17684 exclude_expsyms_RC \
17685 include_expsyms_RC; do
17688 old_archive_cmds_RC | \
17689 old_archive_from_new_cmds_RC | \
17690 archive_cmds_RC | \
17691 archive_expsym_cmds_RC | \
17693 module_expsym_cmds_RC | \
17694 old_archive_from_expsyms_cmds_RC | \
17695 export_symbols_cmds_RC | \
17696 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17697 postinstall_cmds | postuninstall_cmds | \
17698 old_postinstall_cmds | old_postuninstall_cmds | \
17699 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17700 # Double-quote double-evaled strings.
17701 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17704 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17710 *'\$0 --fallback-echo"')
17711 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17717 cat <<__EOF__ >> "$cfgfile"
17718 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17720 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17722 # Shell to use when invoking shell scripts.
17725 # Whether or not to build shared libraries.
17726 build_libtool_libs=$enable_shared
17728 # Whether or not to build static libraries.
17729 build_old_libs=$enable_static
17731 # Whether or not to add -lc for building shared libraries.
17732 build_libtool_need_lc=$archive_cmds_need_lc_RC
17734 # Whether or not to disallow shared libs when runtime libs are static
17735 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17737 # Whether or not to optimize for fast installation.
17738 fast_install=$enable_fast_install
17741 host_alias=$host_alias
17744 # An echo program that does not interpret backslashes.
17749 AR_FLAGS=$lt_AR_FLAGS
17754 # A language-specific compiler.
17757 # Is the compiler the GNU C compiler?
17763 # The linker used to build libraries.
17766 # Whether we need hard or soft links.
17769 # A BSD-compatible nm program.
17772 # A symbol stripping program
17775 # Used to examine libraries when file_magic_cmd begins "file"
17776 MAGIC_CMD=$MAGIC_CMD
17778 # Used on cygwin: DLL creation program.
17781 # Used on cygwin: object dumper.
17784 # Used on cygwin: assembler.
17787 # The name of the directory that contains temporary libtool files.
17790 # How to create reloadable object files.
17791 reload_flag=$lt_reload_flag
17792 reload_cmds=$lt_reload_cmds
17794 # How to pass a linker flag through the compiler.
17795 wl=$lt_lt_prog_compiler_wl_RC
17797 # Object file suffix (normally "o").
17798 objext="$ac_objext"
17800 # Old archive suffix (normally "a").
17803 # Shared library suffix (normally ".so").
17806 # Executable file suffix (normally "").
17809 # Additional compiler flags for building library objects.
17810 pic_flag=$lt_lt_prog_compiler_pic_RC
17813 # What is the maximum length of a command?
17814 max_cmd_len=$lt_cv_sys_max_cmd_len
17816 # Does compiler simultaneously support -c and -o options?
17817 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17819 # Must we lock files when doing compilation ?
17820 need_locks=$lt_need_locks
17822 # Do we need the lib prefix for modules?
17823 need_lib_prefix=$need_lib_prefix
17825 # Do we need a version for libraries?
17826 need_version=$need_version
17828 # Whether dlopen is supported.
17829 dlopen_support=$enable_dlopen
17831 # Whether dlopen of programs is supported.
17832 dlopen_self=$enable_dlopen_self
17834 # Whether dlopen of statically linked programs is supported.
17835 dlopen_self_static=$enable_dlopen_self_static
17837 # Compiler flag to prevent dynamic linking.
17838 link_static_flag=$lt_lt_prog_compiler_static_RC
17840 # Compiler flag to turn off builtin functions.
17841 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17843 # Compiler flag to allow reflexive dlopens.
17844 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17846 # Compiler flag to generate shared objects directly from archives.
17847 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17849 # Compiler flag to generate thread-safe objects.
17850 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17852 # Library versioning type.
17853 version_type=$version_type
17855 # Format of library name prefix.
17856 libname_spec=$lt_libname_spec
17858 # List of archive names. First name is the real one, the rest are links.
17859 # The last name is the one that the linker finds with -lNAME.
17860 library_names_spec=$lt_library_names_spec
17862 # The coded name of the library, if different from the real name.
17863 soname_spec=$lt_soname_spec
17865 # Commands used to build and install an old-style archive.
17867 old_archive_cmds=$lt_old_archive_cmds_RC
17868 old_postinstall_cmds=$lt_old_postinstall_cmds
17869 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17871 # Create an old-style archive from a shared archive.
17872 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17874 # Create a temporary old-style archive to link instead of a shared archive.
17875 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17877 # Commands used to build and install a shared archive.
17878 archive_cmds=$lt_archive_cmds_RC
17879 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17880 postinstall_cmds=$lt_postinstall_cmds
17881 postuninstall_cmds=$lt_postuninstall_cmds
17883 # Commands used to build a loadable module (assumed same as above if empty)
17884 module_cmds=$lt_module_cmds_RC
17885 module_expsym_cmds=$lt_module_expsym_cmds_RC
17887 # Commands to strip libraries.
17888 old_striplib=$lt_old_striplib
17889 striplib=$lt_striplib
17891 # Dependencies to place before the objects being linked to create a
17893 predep_objects=$lt_predep_objects_RC
17895 # Dependencies to place after the objects being linked to create a
17897 postdep_objects=$lt_postdep_objects_RC
17899 # Dependencies to place before the objects being linked to create a
17901 predeps=$lt_predeps_RC
17903 # Dependencies to place after the objects being linked to create a
17905 postdeps=$lt_postdeps_RC
17907 # The library search path used internally by the compiler when linking
17908 # a shared library.
17909 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17911 # Method to check whether dependent libraries are shared objects.
17912 deplibs_check_method=$lt_deplibs_check_method
17914 # Command to use when deplibs_check_method == file_magic.
17915 file_magic_cmd=$lt_file_magic_cmd
17917 # Flag that allows shared libraries with undefined symbols to be built.
17918 allow_undefined_flag=$lt_allow_undefined_flag_RC
17920 # Flag that forces no undefined symbols.
17921 no_undefined_flag=$lt_no_undefined_flag_RC
17923 # Commands used to finish a libtool library installation in a directory.
17924 finish_cmds=$lt_finish_cmds
17926 # Same as above, but a single script fragment to be evaled but not shown.
17927 finish_eval=$lt_finish_eval
17929 # Take the output of nm and produce a listing of raw symbols and C names.
17930 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17932 # Transform the output of nm in a proper C declaration
17933 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17935 # Transform the output of nm in a C name address pair
17936 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17938 # This is the shared library runtime path variable.
17939 runpath_var=$runpath_var
17941 # This is the shared library path variable.
17942 shlibpath_var=$shlibpath_var
17944 # Is shlibpath searched before the hard-coded library search path?
17945 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17947 # How to hardcode a shared library path into an executable.
17948 hardcode_action=$hardcode_action_RC
17950 # Whether we should hardcode library paths into libraries.
17951 hardcode_into_libs=$hardcode_into_libs
17953 # Flag to hardcode \$libdir into a binary during linking.
17954 # This must work even if \$libdir does not exist.
17955 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17957 # If ld is used when linking, flag to hardcode \$libdir into
17958 # a binary during linking. This must work even if \$libdir does
17960 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17962 # Whether we need a single -rpath flag with a separated argument.
17963 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17965 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17966 # resulting binary.
17967 hardcode_direct=$hardcode_direct_RC
17969 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17970 # resulting binary.
17971 hardcode_minus_L=$hardcode_minus_L_RC
17973 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17974 # the resulting binary.
17975 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17977 # Set to yes if building a shared library automatically hardcodes DIR into the library
17978 # and all subsequent libraries and executables linked against it.
17979 hardcode_automatic=$hardcode_automatic_RC
17981 # Variables whose values should be saved in libtool wrapper scripts and
17982 # restored at relink time.
17983 variables_saved_for_relink="$variables_saved_for_relink"
17985 # Whether libtool must link a program against all its dependency libraries.
17986 link_all_deplibs=$link_all_deplibs_RC
17988 # Compile-time system search path for libraries
17989 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17991 # Run-time system search path for libraries
17992 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17994 # Fix the shell variable \$srcfile for the compiler.
17995 fix_srcfile_path="$fix_srcfile_path_RC"
17997 # Set to yes if exported symbols are required.
17998 always_export_symbols=$always_export_symbols_RC
18000 # The commands to list exported symbols.
18001 export_symbols_cmds=$lt_export_symbols_cmds_RC
18003 # The commands to extract the exported symbol list from a shared archive.
18004 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18006 # Symbols that should not be listed in the preloaded symbols.
18007 exclude_expsyms=$lt_exclude_expsyms_RC
18009 # Symbols that must always be exported.
18010 include_expsyms=$lt_include_expsyms_RC
18012 # ### END LIBTOOL TAG CONFIG: $tagname
18018 # If there is no Makefile yet, we rely on a make rule to execute
18019 # `config.status --recheck' to rerun these tests and create the
18020 # libtool script then.
18021 test -f Makefile && make "$ltmain"
18026 ac_cpp='$CPP $CPPFLAGS'
18027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18036 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18037 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18038 { (exit 1); exit 1; }; }
18042 # Append the new tag name to the list of available tags.
18043 if test -n "$tagname" ; then
18044 available_tags="$available_tags $tagname"
18050 # Now substitute the updated list of available tags.
18051 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18052 mv "${ofile}T" "$ofile"
18056 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18057 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18058 { (exit 1); exit 1; }; }
18064 # This can be used to rebuild libtool when needed
18065 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18067 # Always use our own libtool.
18068 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18070 # Prevent multiple expansion
18092 # Extract the first word of "dot", so it can be a program name with args.
18093 set dummy dot; ac_word=$2
18094 echo "$as_me:$LINENO: checking for $ac_word" >&5
18095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18096 if test "${ac_cv_path_DOT+set}" = set; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18101 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18105 for as_dir in $PATH
18108 test -z "$as_dir" && as_dir=.
18109 for ac_exec_ext in '' $ac_executable_extensions; do
18110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18111 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18118 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18122 DOT=$ac_cv_path_DOT
18124 if test -n "$DOT"; then
18125 echo "$as_me:$LINENO: result: $DOT" >&5
18126 echo "${ECHO_T}$DOT" >&6
18128 echo "$as_me:$LINENO: result: no" >&5
18129 echo "${ECHO_T}no" >&6
18132 # Extract the first word of "etags", so it can be a program name with args.
18133 set dummy etags; ac_word=$2
18134 echo "$as_me:$LINENO: checking for $ac_word" >&5
18135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18136 if test "${ac_cv_path_ETAGS+set}" = set; then
18137 echo $ECHO_N "(cached) $ECHO_C" >&6
18141 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18145 for as_dir in $PATH
18148 test -z "$as_dir" && as_dir=.
18149 for ac_exec_ext in '' $ac_executable_extensions; do
18150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18151 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18158 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18162 ETAGS=$ac_cv_path_ETAGS
18164 if test -n "$ETAGS"; then
18165 echo "$as_me:$LINENO: result: $ETAGS" >&5
18166 echo "${ECHO_T}$ETAGS" >&6
18168 echo "$as_me:$LINENO: result: no" >&5
18169 echo "${ECHO_T}no" >&6
18172 etags_version=`$ETAGS --version 2>&1`
18173 case "$etags_version" in
18174 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18175 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18176 *) ETAGSFLAGS="" ;;
18178 ETAGSFLAGS=$ETAGSFLAGS
18180 # Extract the first word of "python", so it can be a program name with args.
18181 set dummy python; ac_word=$2
18182 echo "$as_me:$LINENO: checking for $ac_word" >&5
18183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18184 if test "${ac_cv_path_PYTHON+set}" = set; then
18185 echo $ECHO_N "(cached) $ECHO_C" >&6
18189 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18193 for as_dir in $PATH
18196 test -z "$as_dir" && as_dir=.
18197 for ac_exec_ext in '' $ac_executable_extensions; do
18198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18199 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18206 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18210 PYTHON=$ac_cv_path_PYTHON
18212 if test -n "$PYTHON"; then
18213 echo "$as_me:$LINENO: result: $PYTHON" >&5
18214 echo "${ECHO_T}$PYTHON" >&6
18216 echo "$as_me:$LINENO: result: no" >&5
18217 echo "${ECHO_T}no" >&6
18220 if test "$PYTHON" = "false"
18222 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18223 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18225 # Extract the first word of "qmtest", so it can be a program name with args.
18226 set dummy qmtest; ac_word=$2
18227 echo "$as_me:$LINENO: checking for $ac_word" >&5
18228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18229 if test "${ac_cv_path_QMTEST+set}" = set; then
18230 echo $ECHO_N "(cached) $ECHO_C" >&6
18234 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18238 for as_dir in $PATH
18241 test -z "$as_dir" && as_dir=.
18242 for ac_exec_ext in '' $ac_executable_extensions; do
18243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18244 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18251 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18255 QMTEST=$ac_cv_path_QMTEST
18257 if test -n "$QMTEST"; then
18258 echo "$as_me:$LINENO: result: $QMTEST" >&5
18259 echo "${ECHO_T}$QMTEST" >&6
18261 echo "$as_me:$LINENO: result: no" >&5
18262 echo "${ECHO_T}no" >&6
18265 if test "$QMTEST" = "false"
18267 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18268 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18271 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18272 pymajor=`echo $pyversion | cut -d. -f1`
18273 pyminor=`echo $pyversion | cut -d. -f2`
18275 if test "$pymajor" -ge "2"
18277 if test "$pymajor" -eq "2"
18279 if test "$pyminor" -lt "2"
18281 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18282 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18286 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18287 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18293 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18294 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18295 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18296 echo $ECHO_N "(cached) $ECHO_C" >&6
18298 ac_check_lib_save_LIBS=$LIBS
18300 cat >conftest.$ac_ext <<_ACEOF
18301 #line $LINENO "configure"
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18308 /* Override any gcc2 internal prototype to avoid an error. */
18312 /* We use char because int might match the return type of a gcc2
18313 builtin and then its argument prototype would still apply. */
18323 rm -f conftest.$ac_objext conftest$ac_exeext
18324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18325 (eval $ac_link) 2>&5
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); } &&
18329 { ac_try='test -s conftest$ac_exeext'
18330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331 (eval $ac_try) 2>&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; }; then
18335 ac_cv_lib_elf_elf_begin=yes
18337 echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18340 ac_cv_lib_elf_elf_begin=no
18342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18343 LIBS=$ac_check_lib_save_LIBS
18345 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18346 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18347 if test $ac_cv_lib_elf_elf_begin = yes; then
18348 cat >>confdefs.h <<_ACEOF
18349 #define HAVE_LIBELF 1
18357 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18358 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18359 if test "${ac_cv_search_dlopen+set}" = set; then
18360 echo $ECHO_N "(cached) $ECHO_C" >&6
18362 ac_func_search_save_LIBS=$LIBS
18363 ac_cv_search_dlopen=no
18364 cat >conftest.$ac_ext <<_ACEOF
18365 #line $LINENO "configure"
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18372 /* Override any gcc2 internal prototype to avoid an error. */
18376 /* We use char because int might match the return type of a gcc2
18377 builtin and then its argument prototype would still apply. */
18387 rm -f conftest.$ac_objext conftest$ac_exeext
18388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18389 (eval $ac_link) 2>&5
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); } &&
18393 { ac_try='test -s conftest$ac_exeext'
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; }; then
18399 ac_cv_search_dlopen="none required"
18401 echo "$as_me: failed program was:" >&5
18402 sed 's/^/| /' conftest.$ac_ext >&5
18405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18406 if test "$ac_cv_search_dlopen" = no; then
18407 for ac_lib in dl; do
18408 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18409 cat >conftest.$ac_ext <<_ACEOF
18410 #line $LINENO "configure"
18413 cat confdefs.h >>conftest.$ac_ext
18414 cat >>conftest.$ac_ext <<_ACEOF
18415 /* end confdefs.h. */
18417 /* Override any gcc2 internal prototype to avoid an error. */
18421 /* We use char because int might match the return type of a gcc2
18422 builtin and then its argument prototype would still apply. */
18432 rm -f conftest.$ac_objext conftest$ac_exeext
18433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18434 (eval $ac_link) 2>&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } &&
18438 { ac_try='test -s conftest$ac_exeext'
18439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440 (eval $ac_try) 2>&5
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); }; }; then
18444 ac_cv_search_dlopen="-l$ac_lib"
18447 echo "$as_me: failed program was:" >&5
18448 sed 's/^/| /' conftest.$ac_ext >&5
18451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18454 LIBS=$ac_func_search_save_LIBS
18456 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18457 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18458 if test "$ac_cv_search_dlopen" != no; then
18459 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18461 cat >>confdefs.h <<\_ACEOF
18462 #define HAVE_DLOPEN 1
18466 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18467 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18471 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18472 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18473 if test "${ac_cv_search_mallinfo+set}" = set; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18476 ac_func_search_save_LIBS=$LIBS
18477 ac_cv_search_mallinfo=no
18478 cat >conftest.$ac_ext <<_ACEOF
18479 #line $LINENO "configure"
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h. */
18486 /* Override any gcc2 internal prototype to avoid an error. */
18490 /* We use char because int might match the return type of a gcc2
18491 builtin and then its argument prototype would still apply. */
18501 rm -f conftest.$ac_objext conftest$ac_exeext
18502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18503 (eval $ac_link) 2>&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); } &&
18507 { ac_try='test -s conftest$ac_exeext'
18508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18509 (eval $ac_try) 2>&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); }; }; then
18513 ac_cv_search_mallinfo="none required"
18515 echo "$as_me: failed program was:" >&5
18516 sed 's/^/| /' conftest.$ac_ext >&5
18519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18520 if test "$ac_cv_search_mallinfo" = no; then
18521 for ac_lib in malloc; do
18522 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18523 cat >conftest.$ac_ext <<_ACEOF
18524 #line $LINENO "configure"
18527 cat confdefs.h >>conftest.$ac_ext
18528 cat >>conftest.$ac_ext <<_ACEOF
18529 /* end confdefs.h. */
18531 /* Override any gcc2 internal prototype to avoid an error. */
18535 /* We use char because int might match the return type of a gcc2
18536 builtin and then its argument prototype would still apply. */
18546 rm -f conftest.$ac_objext conftest$ac_exeext
18547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18548 (eval $ac_link) 2>&5
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); } &&
18552 { ac_try='test -s conftest$ac_exeext'
18553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18554 (eval $ac_try) 2>&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; }; then
18558 ac_cv_search_mallinfo="-l$ac_lib"
18561 echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.$ac_ext >&5
18565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18568 LIBS=$ac_func_search_save_LIBS
18570 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18571 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18572 if test "$ac_cv_search_mallinfo" != no; then
18573 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18575 cat >>confdefs.h <<\_ACEOF
18576 #define HAVE_MALLINFO 1
18582 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18583 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18584 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18585 echo $ECHO_N "(cached) $ECHO_C" >&6
18587 ac_func_search_save_LIBS=$LIBS
18588 ac_cv_search_pthread_mutex_lock=no
18589 cat >conftest.$ac_ext <<_ACEOF
18590 #line $LINENO "configure"
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18597 /* Override any gcc2 internal prototype to avoid an error. */
18601 /* We use char because int might match the return type of a gcc2
18602 builtin and then its argument prototype would still apply. */
18603 char pthread_mutex_lock ();
18607 pthread_mutex_lock ();
18612 rm -f conftest.$ac_objext conftest$ac_exeext
18613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18614 (eval $ac_link) 2>&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } &&
18618 { ac_try='test -s conftest$ac_exeext'
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; }; then
18624 ac_cv_search_pthread_mutex_lock="none required"
18626 echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18631 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18632 for ac_lib in pthread; do
18633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18634 cat >conftest.$ac_ext <<_ACEOF
18635 #line $LINENO "configure"
18638 cat confdefs.h >>conftest.$ac_ext
18639 cat >>conftest.$ac_ext <<_ACEOF
18640 /* end confdefs.h. */
18642 /* Override any gcc2 internal prototype to avoid an error. */
18646 /* We use char because int might match the return type of a gcc2
18647 builtin and then its argument prototype would still apply. */
18648 char pthread_mutex_lock ();
18652 pthread_mutex_lock ();
18657 rm -f conftest.$ac_objext conftest$ac_exeext
18658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18659 (eval $ac_link) 2>&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } &&
18663 { ac_try='test -s conftest$ac_exeext'
18664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665 (eval $ac_try) 2>&5
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; }; then
18669 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18679 LIBS=$ac_func_search_save_LIBS
18681 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18682 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18683 if test "$ac_cv_search_pthread_mutex_lock" != no; then
18684 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18685 HAVE_PTHREAD_MUTEX_LOCK=1
18687 HAVE_PTHREAD_MUTEX_LOCK=0
18692 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18693 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18694 if test "${ac_cv_header_stdc+set}" = set; then
18695 echo $ECHO_N "(cached) $ECHO_C" >&6
18697 cat >conftest.$ac_ext <<_ACEOF
18698 #line $LINENO "configure"
18701 cat confdefs.h >>conftest.$ac_ext
18702 cat >>conftest.$ac_ext <<_ACEOF
18703 /* end confdefs.h. */
18704 #include <stdlib.h>
18705 #include <stdarg.h>
18706 #include <string.h>
18717 rm -f conftest.$ac_objext
18718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18719 (eval $ac_compile) 2>&5
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); } &&
18723 { ac_try='test -s conftest.$ac_objext'
18724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725 (eval $ac_try) 2>&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; }; then
18729 ac_cv_header_stdc=yes
18731 echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18734 ac_cv_header_stdc=no
18736 rm -f conftest.$ac_objext conftest.$ac_ext
18738 if test $ac_cv_header_stdc = yes; then
18739 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18740 cat >conftest.$ac_ext <<_ACEOF
18741 #line $LINENO "configure"
18744 cat confdefs.h >>conftest.$ac_ext
18745 cat >>conftest.$ac_ext <<_ACEOF
18746 /* end confdefs.h. */
18747 #include <string.h>
18750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18751 $EGREP "memchr" >/dev/null 2>&1; then
18754 ac_cv_header_stdc=no
18760 if test $ac_cv_header_stdc = yes; then
18761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18762 cat >conftest.$ac_ext <<_ACEOF
18763 #line $LINENO "configure"
18766 cat confdefs.h >>conftest.$ac_ext
18767 cat >>conftest.$ac_ext <<_ACEOF
18768 /* end confdefs.h. */
18769 #include <stdlib.h>
18772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18773 $EGREP "free" >/dev/null 2>&1; then
18776 ac_cv_header_stdc=no
18782 if test $ac_cv_header_stdc = yes; then
18783 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18784 if test "$cross_compiling" = yes; then
18787 cat >conftest.$ac_ext <<_ACEOF
18788 #line $LINENO "configure"
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h. */
18795 #if ((' ' & 0x0FF) == 0x020)
18796 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18797 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18799 # define ISLOWER(c) \
18800 (('a' <= (c) && (c) <= 'i') \
18801 || ('j' <= (c) && (c) <= 'r') \
18802 || ('s' <= (c) && (c) <= 'z'))
18803 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18806 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18811 for (i = 0; i < 256; i++)
18812 if (XOR (islower (i), ISLOWER (i))
18813 || toupper (i) != TOUPPER (i))
18818 rm -f conftest$ac_exeext
18819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18820 (eval $ac_link) 2>&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18825 (eval $ac_try) 2>&5
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); }; }; then
18831 echo "$as_me: program exited with status $ac_status" >&5
18832 echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.$ac_ext >&5
18835 ( exit $ac_status )
18836 ac_cv_header_stdc=no
18838 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18842 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18843 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18844 if test $ac_cv_header_stdc = yes; then
18846 cat >>confdefs.h <<\_ACEOF
18847 #define STDC_HEADERS 1
18852 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18853 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18854 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18855 echo $ECHO_N "(cached) $ECHO_C" >&6
18857 cat >conftest.$ac_ext <<_ACEOF
18858 #line $LINENO "configure"
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h. */
18864 #include <sys/types.h>
18865 #include <sys/wait.h>
18866 #ifndef WEXITSTATUS
18867 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18870 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18878 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18883 rm -f conftest.$ac_objext
18884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18885 (eval $ac_compile) 2>&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); } &&
18889 { ac_try='test -s conftest.$ac_objext'
18890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18891 (eval $ac_try) 2>&5
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; }; then
18895 ac_cv_header_sys_wait_h=yes
18897 echo "$as_me: failed program was:" >&5
18898 sed 's/^/| /' conftest.$ac_ext >&5
18900 ac_cv_header_sys_wait_h=no
18902 rm -f conftest.$ac_objext conftest.$ac_ext
18904 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18905 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18906 if test $ac_cv_header_sys_wait_h = yes; then
18908 cat >>confdefs.h <<\_ACEOF
18909 #define HAVE_SYS_WAIT_H 1
18926 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
18928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18930 echo "$as_me:$LINENO: checking for $ac_header" >&5
18931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18938 # Is the header compilable?
18939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18941 cat >conftest.$ac_ext <<_ACEOF
18942 #line $LINENO "configure"
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h. */
18948 $ac_includes_default
18949 #include <$ac_header>
18951 rm -f conftest.$ac_objext
18952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18953 (eval $ac_compile) 2>&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } &&
18957 { ac_try='test -s conftest.$ac_objext'
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; }; then
18963 ac_header_compiler=yes
18965 echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18968 ac_header_compiler=no
18970 rm -f conftest.$ac_objext conftest.$ac_ext
18971 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18972 echo "${ECHO_T}$ac_header_compiler" >&6
18974 # Is the header present?
18975 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18977 cat >conftest.$ac_ext <<_ACEOF
18978 #line $LINENO "configure"
18981 cat confdefs.h >>conftest.$ac_ext
18982 cat >>conftest.$ac_ext <<_ACEOF
18983 /* end confdefs.h. */
18984 #include <$ac_header>
18986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18989 grep -v '^ *+' conftest.er1 >conftest.err
18991 cat conftest.err >&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } >/dev/null; then
18994 if test -s conftest.err; then
18995 ac_cpp_err=$ac_c_preproc_warn_flag
19002 if test -z "$ac_cpp_err"; then
19003 ac_header_preproc=yes
19005 echo "$as_me: failed program was:" >&5
19006 sed 's/^/| /' conftest.$ac_ext >&5
19008 ac_header_preproc=no
19010 rm -f conftest.err conftest.$ac_ext
19011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19012 echo "${ECHO_T}$ac_header_preproc" >&6
19014 # So? What about this header?
19015 case $ac_header_compiler:$ac_header_preproc in
19017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19023 ## ------------------------------------ ##
19024 ## Report this to bug-autoconf@gnu.org. ##
19025 ## ------------------------------------ ##
19028 sed "s/^/$as_me: WARNING: /" >&2
19031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19039 ## ------------------------------------ ##
19040 ## Report this to bug-autoconf@gnu.org. ##
19041 ## ------------------------------------ ##
19044 sed "s/^/$as_me: WARNING: /" >&2
19047 echo "$as_me:$LINENO: checking for $ac_header" >&5
19048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19050 echo $ECHO_N "(cached) $ECHO_C" >&6
19052 eval "$as_ac_Header=$ac_header_preproc"
19054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19059 cat >>confdefs.h <<_ACEOF
19060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19068 if test "${ac_cv_header_sys_types_h+set}" = set; then
19069 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19070 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19071 if test "${ac_cv_header_sys_types_h+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19074 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19075 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19077 # Is the header compilable?
19078 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19079 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19080 cat >conftest.$ac_ext <<_ACEOF
19081 #line $LINENO "configure"
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h. */
19087 $ac_includes_default
19088 #include <sys/types.h>
19090 rm -f conftest.$ac_objext
19091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19092 (eval $ac_compile) 2>&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } &&
19096 { ac_try='test -s conftest.$ac_objext'
19097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19098 (eval $ac_try) 2>&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); }; }; then
19102 ac_header_compiler=yes
19104 echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19107 ac_header_compiler=no
19109 rm -f conftest.$ac_objext conftest.$ac_ext
19110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19111 echo "${ECHO_T}$ac_header_compiler" >&6
19113 # Is the header present?
19114 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19115 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19116 cat >conftest.$ac_ext <<_ACEOF
19117 #line $LINENO "configure"
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h. */
19123 #include <sys/types.h>
19125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19128 grep -v '^ *+' conftest.er1 >conftest.err
19130 cat conftest.err >&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } >/dev/null; then
19133 if test -s conftest.err; then
19134 ac_cpp_err=$ac_c_preproc_warn_flag
19141 if test -z "$ac_cpp_err"; then
19142 ac_header_preproc=yes
19144 echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19147 ac_header_preproc=no
19149 rm -f conftest.err conftest.$ac_ext
19150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19151 echo "${ECHO_T}$ac_header_preproc" >&6
19153 # So? What about this header?
19154 case $ac_header_compiler:$ac_header_preproc in
19156 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19157 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19158 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19159 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19162 ## ------------------------------------ ##
19163 ## Report this to bug-autoconf@gnu.org. ##
19164 ## ------------------------------------ ##
19167 sed "s/^/$as_me: WARNING: /" >&2
19170 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19171 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19172 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19173 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19174 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19175 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19178 ## ------------------------------------ ##
19179 ## Report this to bug-autoconf@gnu.org. ##
19180 ## ------------------------------------ ##
19183 sed "s/^/$as_me: WARNING: /" >&2
19186 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19187 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19188 if test "${ac_cv_header_sys_types_h+set}" = set; then
19189 echo $ECHO_N "(cached) $ECHO_C" >&6
19191 ac_cv_header_sys_types_h=$ac_header_preproc
19193 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19194 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19197 if test $ac_cv_header_sys_types_h = yes; then
19198 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19200 INCLUDE_SYS_TYPES_H=''
19205 if test "${ac_cv_header_inttypes_h+set}" = set; then
19206 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19207 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19208 if test "${ac_cv_header_inttypes_h+set}" = set; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
19211 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19212 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19214 # Is the header compilable?
19215 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19216 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19217 cat >conftest.$ac_ext <<_ACEOF
19218 #line $LINENO "configure"
19221 cat confdefs.h >>conftest.$ac_ext
19222 cat >>conftest.$ac_ext <<_ACEOF
19223 /* end confdefs.h. */
19224 $ac_includes_default
19225 #include <inttypes.h>
19227 rm -f conftest.$ac_objext
19228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19229 (eval $ac_compile) 2>&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } &&
19233 { ac_try='test -s conftest.$ac_objext'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19239 ac_header_compiler=yes
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19244 ac_header_compiler=no
19246 rm -f conftest.$ac_objext conftest.$ac_ext
19247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19248 echo "${ECHO_T}$ac_header_compiler" >&6
19250 # Is the header present?
19251 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19252 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19253 cat >conftest.$ac_ext <<_ACEOF
19254 #line $LINENO "configure"
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h. */
19260 #include <inttypes.h>
19262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19265 grep -v '^ *+' conftest.er1 >conftest.err
19267 cat conftest.err >&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); } >/dev/null; then
19270 if test -s conftest.err; then
19271 ac_cpp_err=$ac_c_preproc_warn_flag
19278 if test -z "$ac_cpp_err"; then
19279 ac_header_preproc=yes
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19284 ac_header_preproc=no
19286 rm -f conftest.err conftest.$ac_ext
19287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19288 echo "${ECHO_T}$ac_header_preproc" >&6
19290 # So? What about this header?
19291 case $ac_header_compiler:$ac_header_preproc in
19293 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19294 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19295 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19296 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19299 ## ------------------------------------ ##
19300 ## Report this to bug-autoconf@gnu.org. ##
19301 ## ------------------------------------ ##
19304 sed "s/^/$as_me: WARNING: /" >&2
19307 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19308 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19309 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19310 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19311 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19312 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19315 ## ------------------------------------ ##
19316 ## Report this to bug-autoconf@gnu.org. ##
19317 ## ------------------------------------ ##
19320 sed "s/^/$as_me: WARNING: /" >&2
19323 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19324 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19325 if test "${ac_cv_header_inttypes_h+set}" = set; then
19326 echo $ECHO_N "(cached) $ECHO_C" >&6
19328 ac_cv_header_inttypes_h=$ac_header_preproc
19330 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19331 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19334 if test $ac_cv_header_inttypes_h = yes; then
19335 INCLUDE_INTTYPES_H='#include <inttypes.h>'
19337 INCLUDE_INTTYPES_H=''
19343 echo "$as_me:$LINENO: checking for pid_t" >&5
19344 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19345 if test "${ac_cv_type_pid_t+set}" = set; then
19346 echo $ECHO_N "(cached) $ECHO_C" >&6
19348 cat >conftest.$ac_ext <<_ACEOF
19349 #line $LINENO "configure"
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h. */
19355 $ac_includes_default
19361 if (sizeof (pid_t))
19367 rm -f conftest.$ac_objext
19368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19369 (eval $ac_compile) 2>&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try='test -s conftest.$ac_objext'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_type_pid_t=yes
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19384 ac_cv_type_pid_t=no
19386 rm -f conftest.$ac_objext conftest.$ac_ext
19388 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19389 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19390 if test $ac_cv_type_pid_t = yes; then
19394 cat >>confdefs.h <<_ACEOF
19400 echo "$as_me:$LINENO: checking for size_t" >&5
19401 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19402 if test "${ac_cv_type_size_t+set}" = set; then
19403 echo $ECHO_N "(cached) $ECHO_C" >&6
19405 cat >conftest.$ac_ext <<_ACEOF
19406 #line $LINENO "configure"
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19412 $ac_includes_default
19418 if (sizeof (size_t))
19424 rm -f conftest.$ac_objext
19425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19426 (eval $ac_compile) 2>&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); } &&
19430 { ac_try='test -s conftest.$ac_objext'
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; }; then
19436 ac_cv_type_size_t=yes
19438 echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19441 ac_cv_type_size_t=no
19443 rm -f conftest.$ac_objext conftest.$ac_ext
19445 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19446 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19447 if test $ac_cv_type_size_t = yes; then
19451 cat >>confdefs.h <<_ACEOF
19452 #define size_t unsigned
19457 echo "$as_me:$LINENO: checking for int64_t" >&5
19458 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19459 if test "${ac_cv_type_int64_t+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19462 cat >conftest.$ac_ext <<_ACEOF
19463 #line $LINENO "configure"
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h. */
19469 $ac_includes_default
19475 if (sizeof (int64_t))
19481 rm -f conftest.$ac_objext
19482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19483 (eval $ac_compile) 2>&5
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); } &&
19487 { ac_try='test -s conftest.$ac_objext'
19488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489 (eval $ac_try) 2>&5
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; }; then
19493 ac_cv_type_int64_t=yes
19495 echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19498 ac_cv_type_int64_t=no
19500 rm -f conftest.$ac_objext conftest.$ac_ext
19502 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19503 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19504 if test $ac_cv_type_int64_t = yes; then
19506 cat >>confdefs.h <<_ACEOF
19507 #define HAVE_INT64_T 1
19512 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19513 echo "$as_me: error: Type int64_t required but not found" >&2;}
19514 { (exit 1); exit 1; }; }
19517 echo "$as_me:$LINENO: checking for uint64_t" >&5
19518 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19519 if test "${ac_cv_type_uint64_t+set}" = set; then
19520 echo $ECHO_N "(cached) $ECHO_C" >&6
19522 cat >conftest.$ac_ext <<_ACEOF
19523 #line $LINENO "configure"
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19529 $ac_includes_default
19533 if ((uint64_t *) 0)
19535 if (sizeof (uint64_t))
19541 rm -f conftest.$ac_objext
19542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19543 (eval $ac_compile) 2>&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
19547 { ac_try='test -s conftest.$ac_objext'
19548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549 (eval $ac_try) 2>&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); }; }; then
19553 ac_cv_type_uint64_t=yes
19555 echo "$as_me: failed program was:" >&5
19556 sed 's/^/| /' conftest.$ac_ext >&5
19558 ac_cv_type_uint64_t=no
19560 rm -f conftest.$ac_objext conftest.$ac_ext
19562 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19563 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19564 if test $ac_cv_type_uint64_t = yes; then
19566 cat >>confdefs.h <<_ACEOF
19567 #define HAVE_UINT64_T 1
19572 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19573 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19574 { (exit 1); exit 1; }; }
19577 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19578 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19579 if test "${ac_cv_header_time+set}" = set; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
19582 cat >conftest.$ac_ext <<_ACEOF
19583 #line $LINENO "configure"
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h. */
19589 #include <sys/types.h>
19590 #include <sys/time.h>
19596 if ((struct tm *) 0)
19602 rm -f conftest.$ac_objext
19603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19604 (eval $ac_compile) 2>&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } &&
19608 { ac_try='test -s conftest.$ac_objext'
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; }; then
19614 ac_cv_header_time=yes
19616 echo "$as_me: failed program was:" >&5
19617 sed 's/^/| /' conftest.$ac_ext >&5
19619 ac_cv_header_time=no
19621 rm -f conftest.$ac_objext conftest.$ac_ext
19623 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19624 echo "${ECHO_T}$ac_cv_header_time" >&6
19625 if test $ac_cv_header_time = yes; then
19627 cat >>confdefs.h <<\_ACEOF
19628 #define TIME_WITH_SYS_TIME 1
19633 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19634 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19635 if test "${ac_cv_struct_tm+set}" = set; then
19636 echo $ECHO_N "(cached) $ECHO_C" >&6
19638 cat >conftest.$ac_ext <<_ACEOF
19639 #line $LINENO "configure"
19642 cat confdefs.h >>conftest.$ac_ext
19643 cat >>conftest.$ac_ext <<_ACEOF
19644 /* end confdefs.h. */
19645 #include <sys/types.h>
19651 struct tm *tp; tp->tm_sec;
19656 rm -f conftest.$ac_objext
19657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19658 (eval $ac_compile) 2>&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); } &&
19662 { ac_try='test -s conftest.$ac_objext'
19663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19664 (eval $ac_try) 2>&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }; }; then
19668 ac_cv_struct_tm=time.h
19670 echo "$as_me: failed program was:" >&5
19671 sed 's/^/| /' conftest.$ac_ext >&5
19673 ac_cv_struct_tm=sys/time.h
19675 rm -f conftest.$ac_objext conftest.$ac_ext
19677 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19678 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19679 if test $ac_cv_struct_tm = sys/time.h; then
19681 cat >>confdefs.h <<\_ACEOF
19682 #define TM_IN_SYS_TIME 1
19692 ac_cpp='$CPP $CPPFLAGS'
19693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19697 if test "$cross_compiling" = yes; then
19698 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19699 See \`config.log' for more details." >&5
19700 echo "$as_me: error: cannot run test program while cross compiling
19701 See \`config.log' for more details." >&2;}
19702 { (exit 1); exit 1; }; }
19704 cat >conftest.$ac_ext <<_ACEOF
19705 #line $LINENO "configure"
19708 cat confdefs.h >>conftest.$ac_ext
19709 cat >>conftest.$ac_ext <<_ACEOF
19710 /* end confdefs.h. */
19712 #include <stdlib.h>
19717 volatile double A, B;
19721 sprintf(Buffer, "%a", A);
19725 if (A != 0x1.999999999999ap-4)
19732 rm -f conftest$ac_exeext
19733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19734 (eval $ac_link) 2>&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739 (eval $ac_try) 2>&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; }; then
19745 echo "$as_me: program exited with status $ac_status" >&5
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19749 ( exit $ac_status )
19752 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19755 ac_cpp='$CPP $CPPFLAGS'
19756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19760 if test "$ac_c_printf_a" = "yes"; then
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_PRINTF_A 1
19769 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19770 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19771 if test "${ac_cv_c_bigendian+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19774 # See if sys/param.h defines the BYTE_ORDER macro.
19775 cat >conftest.$ac_ext <<_ACEOF
19776 #line $LINENO "configure"
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h. */
19782 #include <sys/types.h>
19783 #include <sys/param.h>
19788 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19789 bogus endian macros
19796 rm -f conftest.$ac_objext
19797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19798 (eval $ac_compile) 2>&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } &&
19802 { ac_try='test -s conftest.$ac_objext'
19803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804 (eval $ac_try) 2>&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; }; then
19808 # It does; now see whether it defined to BIG_ENDIAN or not.
19809 cat >conftest.$ac_ext <<_ACEOF
19810 #line $LINENO "configure"
19813 cat confdefs.h >>conftest.$ac_ext
19814 cat >>conftest.$ac_ext <<_ACEOF
19815 /* end confdefs.h. */
19816 #include <sys/types.h>
19817 #include <sys/param.h>
19822 #if BYTE_ORDER != BIG_ENDIAN
19830 rm -f conftest.$ac_objext
19831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19832 (eval $ac_compile) 2>&5
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } &&
19836 { ac_try='test -s conftest.$ac_objext'
19837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19838 (eval $ac_try) 2>&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; }; then
19842 ac_cv_c_bigendian=yes
19844 echo "$as_me: failed program was:" >&5
19845 sed 's/^/| /' conftest.$ac_ext >&5
19847 ac_cv_c_bigendian=no
19849 rm -f conftest.$ac_objext conftest.$ac_ext
19851 echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19854 # It does not; compile a test program.
19855 if test "$cross_compiling" = yes; then
19856 # try to guess the endianness by grepping values into an object file
19857 ac_cv_c_bigendian=unknown
19858 cat >conftest.$ac_ext <<_ACEOF
19859 #line $LINENO "configure"
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h. */
19865 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19866 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19867 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19868 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19869 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19870 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19874 _ascii (); _ebcdic ();
19879 rm -f conftest.$ac_objext
19880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19881 (eval $ac_compile) 2>&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } &&
19885 { ac_try='test -s conftest.$ac_objext'
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; }; then
19891 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19892 ac_cv_c_bigendian=yes
19894 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19895 if test "$ac_cv_c_bigendian" = unknown; then
19896 ac_cv_c_bigendian=no
19898 # finding both strings is unlikely to happen, but who knows?
19899 ac_cv_c_bigendian=unknown
19903 echo "$as_me: failed program was:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19907 rm -f conftest.$ac_objext conftest.$ac_ext
19909 cat >conftest.$ac_ext <<_ACEOF
19910 #line $LINENO "configure"
19913 cat confdefs.h >>conftest.$ac_ext
19914 cat >>conftest.$ac_ext <<_ACEOF
19915 /* end confdefs.h. */
19919 /* Are we little or big endian? From Harbison&Steele. */
19923 char c[sizeof (long)];
19926 exit (u.c[sizeof (long) - 1] == 1);
19929 rm -f conftest$ac_exeext
19930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19931 (eval $ac_link) 2>&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; }; then
19940 ac_cv_c_bigendian=no
19942 echo "$as_me: program exited with status $ac_status" >&5
19943 echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19946 ( exit $ac_status )
19947 ac_cv_c_bigendian=yes
19949 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19952 rm -f conftest.$ac_objext conftest.$ac_ext
19954 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19955 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19956 case $ac_cv_c_bigendian in
19964 { { echo "$as_me:$LINENO: error: unknown endianness
19965 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19966 echo "$as_me: error: unknown endianness
19967 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19968 { (exit 1); exit 1; }; } ;;
19972 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19973 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19974 if test "${ac_cv_cxx_namespaces+set}" = set; then
19975 echo $ECHO_N "(cached) $ECHO_C" >&6
19980 ac_cpp='$CXXCPP $CPPFLAGS'
19981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19985 cat >conftest.$ac_ext <<_ACEOF
19986 #line $LINENO "configure"
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19992 namespace Outer { namespace Inner { int i = 0; }}
19996 using namespace Outer::Inner; return i;
20001 rm -f conftest.$ac_objext
20002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20003 (eval $ac_compile) 2>&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } &&
20007 { ac_try='test -s conftest.$ac_objext'
20008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009 (eval $ac_try) 2>&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; }; then
20013 ac_cv_cxx_namespaces=yes
20015 echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20018 ac_cv_cxx_namespaces=no
20020 rm -f conftest.$ac_objext conftest.$ac_ext
20022 ac_cpp='$CPP $CPPFLAGS'
20023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20029 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20030 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20031 if test "$ac_cv_cxx_namespaces" = yes; then
20033 cat >>confdefs.h <<\_ACEOF
20034 #define HAVE_NAMESPACES
20039 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20040 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20041 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
20048 ac_cpp='$CXXCPP $CPPFLAGS'
20049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20053 cat >conftest.$ac_ext <<_ACEOF
20054 #line $LINENO "configure"
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h. */
20060 #include <ext/hash_map>
20061 #ifdef HAVE_NAMESPACES
20062 using namespace std;
20067 hash_map<int, int> t;
20072 rm -f conftest.$ac_objext
20073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20074 (eval $ac_compile) 2>&5
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); } &&
20078 { ac_try='test -s conftest.$ac_objext'
20079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; }; then
20084 ac_cv_cxx_have_std_ext_hash_map=yes
20086 echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20089 ac_cv_cxx_have_std_ext_hash_map=no
20091 rm -f conftest.$ac_objext conftest.$ac_ext
20093 ac_cpp='$CPP $CPPFLAGS'
20094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20099 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20100 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20101 HAVE_STD_EXT_HASH_MAP=0
20102 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20104 HAVE_STD_EXT_HASH_MAP=1
20107 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20108 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20109 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20110 echo $ECHO_N "(cached) $ECHO_C" >&6
20116 ac_cpp='$CXXCPP $CPPFLAGS'
20117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20121 cat >conftest.$ac_ext <<_ACEOF
20122 #line $LINENO "configure"
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h. */
20128 #include <ext/hash_map>
20129 #ifdef HAVE_NAMESPACES
20130 using namespace __gnu_cxx;
20135 hash_map<int,int> t;
20140 rm -f conftest.$ac_objext
20141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20142 (eval $ac_compile) 2>&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } &&
20146 { ac_try='test -s conftest.$ac_objext'
20147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148 (eval $ac_try) 2>&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; }; then
20152 ac_cv_cxx_have_gnu_ext_hash_map=yes
20154 echo "$as_me: failed program was:" >&5
20155 sed 's/^/| /' conftest.$ac_ext >&5
20157 ac_cv_cxx_have_gnu_ext_hash_map=no
20159 rm -f conftest.$ac_objext conftest.$ac_ext
20161 ac_cpp='$CPP $CPPFLAGS'
20162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20167 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20168 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20169 HAVE_GNU_EXT_HASH_MAP=0
20170 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20172 HAVE_GNU_EXT_HASH_MAP=1
20175 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20176 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20177 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20178 echo $ECHO_N "(cached) $ECHO_C" >&6
20184 ac_cpp='$CXXCPP $CPPFLAGS'
20185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20189 cat >conftest.$ac_ext <<_ACEOF
20190 #line $LINENO "configure"
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h. */
20196 #include <hash_map>
20200 hash_map<int,int> t;
20205 rm -f conftest.$ac_objext
20206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20207 (eval $ac_compile) 2>&5
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); } &&
20211 { ac_try='test -s conftest.$ac_objext'
20212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20213 (eval $ac_try) 2>&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); }; }; then
20217 ac_cv_cxx_have_global_hash_map=yes
20219 echo "$as_me: failed program was:" >&5
20220 sed 's/^/| /' conftest.$ac_ext >&5
20222 ac_cv_cxx_have_global_hash_map=no
20224 rm -f conftest.$ac_objext conftest.$ac_ext
20226 ac_cpp='$CPP $CPPFLAGS'
20227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20232 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20233 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20234 HAVE_GLOBAL_HASH_MAP=0
20235 if test "$ac_cv_cxx_have_global_hash_map" = yes
20237 HAVE_GLOBAL_HASH_MAP=1
20240 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20241 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20242 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20243 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 ac_cpp='$CXXCPP $CPPFLAGS'
20250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20254 cat >conftest.$ac_ext <<_ACEOF
20255 #line $LINENO "configure"
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h. */
20261 #include <ext/hash_set>
20262 #ifdef HAVE_NAMESPACES
20263 using namespace std;
20273 rm -f conftest.$ac_objext
20274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20275 (eval $ac_compile) 2>&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); } &&
20279 { ac_try='test -s conftest.$ac_objext'
20280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281 (eval $ac_try) 2>&5
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); }; }; then
20285 ac_cv_cxx_have_std_ext_hash_set=yes
20287 echo "$as_me: failed program was:" >&5
20288 sed 's/^/| /' conftest.$ac_ext >&5
20290 ac_cv_cxx_have_std_ext_hash_set=no
20292 rm -f conftest.$ac_objext conftest.$ac_ext
20294 ac_cpp='$CPP $CPPFLAGS'
20295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20300 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20301 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20302 HAVE_STD_EXT_HASH_SET=0
20303 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20305 HAVE_STD_EXT_HASH_SET=1
20308 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20309 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20310 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20317 ac_cpp='$CXXCPP $CPPFLAGS'
20318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20322 cat >conftest.$ac_ext <<_ACEOF
20323 #line $LINENO "configure"
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h. */
20329 #include <ext/hash_set>
20330 #ifdef HAVE_NAMESPACES
20331 using namespace __gnu_cxx;
20341 rm -f conftest.$ac_objext
20342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20343 (eval $ac_compile) 2>&5
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); } &&
20347 { ac_try='test -s conftest.$ac_objext'
20348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349 (eval $ac_try) 2>&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); }; }; then
20353 ac_cv_cxx_have_gnu_ext_hash_set=yes
20355 echo "$as_me: failed program was:" >&5
20356 sed 's/^/| /' conftest.$ac_ext >&5
20358 ac_cv_cxx_have_gnu_ext_hash_set=no
20360 rm -f conftest.$ac_objext conftest.$ac_ext
20362 ac_cpp='$CPP $CPPFLAGS'
20363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20368 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20369 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20370 HAVE_GNU_EXT_HASH_SET=0
20371 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20373 HAVE_GNU_EXT_HASH_SET=1
20376 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20377 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20378 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20385 ac_cpp='$CXXCPP $CPPFLAGS'
20386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20390 cat >conftest.$ac_ext <<_ACEOF
20391 #line $LINENO "configure"
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h. */
20397 #include <hash_set>
20401 hash_set<int> t; return 0;
20406 rm -f conftest.$ac_objext
20407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20408 (eval $ac_compile) 2>&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } &&
20412 { ac_try='test -s conftest.$ac_objext'
20413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414 (eval $ac_try) 2>&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); }; }; then
20418 ac_cv_cxx_have_global_hash_set=yes
20420 echo "$as_me: failed program was:" >&5
20421 sed 's/^/| /' conftest.$ac_ext >&5
20423 ac_cv_cxx_have_global_hash_set=no
20425 rm -f conftest.$ac_objext conftest.$ac_ext
20427 ac_cpp='$CPP $CPPFLAGS'
20428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20433 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20434 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20435 HAVE_GLOBAL_HASH_SET=0
20436 if test "$ac_cv_cxx_have_global_hash_set" = yes
20438 HAVE_GLOBAL_HASH_SET=1
20441 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20442 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20443 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20444 echo $ECHO_N "(cached) $ECHO_C" >&6
20450 ac_cpp='$CXXCPP $CPPFLAGS'
20451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20455 cat >conftest.$ac_ext <<_ACEOF
20456 #line $LINENO "configure"
20459 cat confdefs.h >>conftest.$ac_ext
20460 cat >>conftest.$ac_ext <<_ACEOF
20461 /* end confdefs.h. */
20462 #include <iterator>
20463 #ifdef HAVE_NAMESPACES
20464 using namespace std;
20469 iterator<int,int,int> t; return 0;
20474 rm -f conftest.$ac_objext
20475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20476 (eval $ac_compile) 2>&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } &&
20480 { ac_try='test -s conftest.$ac_objext'
20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; }; then
20486 ac_cv_cxx_have_std_iterator=yes
20488 echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.$ac_ext >&5
20491 ac_cv_cxx_have_std_iterator=no
20493 rm -f conftest.$ac_objext conftest.$ac_ext
20495 ac_cpp='$CPP $CPPFLAGS'
20496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20502 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20503 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20504 HAVE_STD_ITERATOR=0
20505 if test "$ac_cv_cxx_have_std_iterator" = yes
20507 HAVE_STD_ITERATOR=1
20510 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20511 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20512 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20519 ac_cpp='$CXXCPP $CPPFLAGS'
20520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20524 cat >conftest.$ac_ext <<_ACEOF
20525 #line $LINENO "configure"
20528 cat confdefs.h >>conftest.$ac_ext
20529 cat >>conftest.$ac_ext <<_ACEOF
20530 /* end confdefs.h. */
20531 #include <iterator>
20532 #ifdef HAVE_NAMESPACES
20533 using namespace std;
20538 bidirectional_iterator<int,int> t; return 0;
20543 rm -f conftest.$ac_objext
20544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20545 (eval $ac_compile) 2>&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } &&
20549 { ac_try='test -s conftest.$ac_objext'
20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551 (eval $ac_try) 2>&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; }; then
20555 ac_cv_cxx_have_bi_iterator=yes
20557 echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20560 ac_cv_cxx_have_bi_iterator=no
20562 rm -f conftest.$ac_objext conftest.$ac_ext
20564 ac_cpp='$CPP $CPPFLAGS'
20565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20571 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20572 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20574 if test "$ac_cv_cxx_have_bi_iterator" = yes
20579 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20580 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20581 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20582 echo $ECHO_N "(cached) $ECHO_C" >&6
20588 ac_cpp='$CXXCPP $CPPFLAGS'
20589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20593 cat >conftest.$ac_ext <<_ACEOF
20594 #line $LINENO "configure"
20597 cat confdefs.h >>conftest.$ac_ext
20598 cat >>conftest.$ac_ext <<_ACEOF
20599 /* end confdefs.h. */
20600 #include <iterator>
20601 #ifdef HAVE_NAMESPACES
20602 using namespace std;
20607 forward_iterator<int,int> t; return 0;
20612 rm -f conftest.$ac_objext
20613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20614 (eval $ac_compile) 2>&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); } &&
20618 { ac_try='test -s conftest.$ac_objext'
20619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620 (eval $ac_try) 2>&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; }; then
20624 ac_cv_cxx_have_fwd_iterator=yes
20626 echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20629 ac_cv_cxx_have_fwd_iterator=no
20631 rm -f conftest.$ac_objext conftest.$ac_ext
20633 ac_cpp='$CPP $CPPFLAGS'
20634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20640 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20641 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20642 HAVE_FWD_ITERATOR=0
20643 if test "$ac_cv_cxx_have_fwd_iterator" = yes
20645 HAVE_FWD_ITERATOR=1
20649 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20650 # for constant arguments. Useless!
20651 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20652 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20653 if test "${ac_cv_working_alloca_h+set}" = set; then
20654 echo $ECHO_N "(cached) $ECHO_C" >&6
20656 cat >conftest.$ac_ext <<_ACEOF
20657 #line $LINENO "configure"
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h. */
20663 #include <alloca.h>
20667 char *p = (char *) alloca (2 * sizeof (int));
20672 rm -f conftest.$ac_objext conftest$ac_exeext
20673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20674 (eval $ac_link) 2>&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); } &&
20678 { ac_try='test -s conftest$ac_exeext'
20679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680 (eval $ac_try) 2>&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); }; }; then
20684 ac_cv_working_alloca_h=yes
20686 echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.$ac_ext >&5
20689 ac_cv_working_alloca_h=no
20691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20693 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20694 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20695 if test $ac_cv_working_alloca_h = yes; then
20697 cat >>confdefs.h <<\_ACEOF
20698 #define HAVE_ALLOCA_H 1
20703 echo "$as_me:$LINENO: checking for alloca" >&5
20704 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20705 if test "${ac_cv_func_alloca_works+set}" = set; then
20706 echo $ECHO_N "(cached) $ECHO_C" >&6
20708 cat >conftest.$ac_ext <<_ACEOF
20709 #line $LINENO "configure"
20712 cat confdefs.h >>conftest.$ac_ext
20713 cat >>conftest.$ac_ext <<_ACEOF
20714 /* end confdefs.h. */
20716 # define alloca __builtin_alloca
20719 # include <malloc.h>
20720 # define alloca _alloca
20723 # include <alloca.h>
20728 # ifndef alloca /* predefined by HP cc +Olibcalls */
20739 char *p = (char *) alloca (1);
20744 rm -f conftest.$ac_objext conftest$ac_exeext
20745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20746 (eval $ac_link) 2>&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); } &&
20750 { ac_try='test -s conftest$ac_exeext'
20751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20752 (eval $ac_try) 2>&5
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); }; }; then
20756 ac_cv_func_alloca_works=yes
20758 echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20761 ac_cv_func_alloca_works=no
20763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20765 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20766 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20768 if test $ac_cv_func_alloca_works = yes; then
20770 cat >>confdefs.h <<\_ACEOF
20771 #define HAVE_ALLOCA 1
20775 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20776 # that cause trouble. Some versions do not even contain alloca or
20777 # contain a buggy version. If you still want to use their alloca,
20778 # use ar to extract alloca.o from them instead of compiling alloca.c.
20780 ALLOCA=alloca.$ac_objext
20782 cat >>confdefs.h <<\_ACEOF
20787 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20788 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20789 if test "${ac_cv_os_cray+set}" = set; then
20790 echo $ECHO_N "(cached) $ECHO_C" >&6
20792 cat >conftest.$ac_ext <<_ACEOF
20793 #line $LINENO "configure"
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h. */
20799 #if defined(CRAY) && ! defined(CRAY2)
20806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20807 $EGREP "webecray" >/dev/null 2>&1; then
20815 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20816 echo "${ECHO_T}$ac_cv_os_cray" >&6
20817 if test $ac_cv_os_cray = yes; then
20818 for ac_func in _getb67 GETB67 getb67; do
20819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20820 echo "$as_me:$LINENO: checking for $ac_func" >&5
20821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20822 if eval "test \"\${$as_ac_var+set}\" = set"; then
20823 echo $ECHO_N "(cached) $ECHO_C" >&6
20825 cat >conftest.$ac_ext <<_ACEOF
20826 #line $LINENO "configure"
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h. */
20832 /* System header to define __stub macros and hopefully few prototypes,
20833 which can conflict with char $ac_func (); below.
20834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20835 <limits.h> exists even on freestanding compilers. */
20837 # include <limits.h>
20839 # include <assert.h>
20841 /* Override any gcc2 internal prototype to avoid an error. */
20846 /* We use char because int might match the return type of a gcc2
20847 builtin and then its argument prototype would still apply. */
20849 /* The GNU C library defines this for functions which it implements
20850 to always fail with ENOSYS. Some functions are actually named
20851 something starting with __ and the normal name is an alias. */
20852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20855 char (*f) () = $ac_func;
20864 return f != $ac_func;
20869 rm -f conftest.$ac_objext conftest$ac_exeext
20870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20871 (eval $ac_link) 2>&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } &&
20875 { ac_try='test -s conftest$ac_exeext'
20876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20877 (eval $ac_try) 2>&5
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); }; }; then
20881 eval "$as_ac_var=yes"
20883 echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20886 eval "$as_ac_var=no"
20888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20891 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20892 if test `eval echo '${'$as_ac_var'}'` = yes; then
20894 cat >>confdefs.h <<_ACEOF
20895 #define CRAY_STACKSEG_END $ac_func
20904 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20905 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20906 if test "${ac_cv_c_stack_direction+set}" = set; then
20907 echo $ECHO_N "(cached) $ECHO_C" >&6
20909 if test "$cross_compiling" = yes; then
20910 ac_cv_c_stack_direction=0
20912 cat >conftest.$ac_ext <<_ACEOF
20913 #line $LINENO "configure"
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20920 find_stack_direction ()
20922 static char *addr = 0;
20927 return find_stack_direction ();
20930 return (&dummy > addr) ? 1 : -1;
20936 exit (find_stack_direction () < 0);
20939 rm -f conftest$ac_exeext
20940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20941 (eval $ac_link) 2>&5
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20946 (eval $ac_try) 2>&5
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); }; }; then
20950 ac_cv_c_stack_direction=1
20952 echo "$as_me: program exited with status $ac_status" >&5
20953 echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20956 ( exit $ac_status )
20957 ac_cv_c_stack_direction=-1
20959 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20962 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20963 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20965 cat >>confdefs.h <<_ACEOF
20966 #define STACK_DIRECTION $ac_cv_c_stack_direction
20974 for ac_header in stdlib.h unistd.h
20976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20978 echo "$as_me:$LINENO: checking for $ac_header" >&5
20979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20981 echo $ECHO_N "(cached) $ECHO_C" >&6
20983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20986 # Is the header compilable?
20987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20989 cat >conftest.$ac_ext <<_ACEOF
20990 #line $LINENO "configure"
20993 cat confdefs.h >>conftest.$ac_ext
20994 cat >>conftest.$ac_ext <<_ACEOF
20995 /* end confdefs.h. */
20996 $ac_includes_default
20997 #include <$ac_header>
20999 rm -f conftest.$ac_objext
21000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21001 (eval $ac_compile) 2>&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); } &&
21005 { ac_try='test -s conftest.$ac_objext'
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; }; then
21011 ac_header_compiler=yes
21013 echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.$ac_ext >&5
21016 ac_header_compiler=no
21018 rm -f conftest.$ac_objext conftest.$ac_ext
21019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21020 echo "${ECHO_T}$ac_header_compiler" >&6
21022 # Is the header present?
21023 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21025 cat >conftest.$ac_ext <<_ACEOF
21026 #line $LINENO "configure"
21029 cat confdefs.h >>conftest.$ac_ext
21030 cat >>conftest.$ac_ext <<_ACEOF
21031 /* end confdefs.h. */
21032 #include <$ac_header>
21034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21037 grep -v '^ *+' conftest.er1 >conftest.err
21039 cat conftest.err >&5
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); } >/dev/null; then
21042 if test -s conftest.err; then
21043 ac_cpp_err=$ac_c_preproc_warn_flag
21050 if test -z "$ac_cpp_err"; then
21051 ac_header_preproc=yes
21053 echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21056 ac_header_preproc=no
21058 rm -f conftest.err conftest.$ac_ext
21059 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21060 echo "${ECHO_T}$ac_header_preproc" >&6
21062 # So? What about this header?
21063 case $ac_header_compiler:$ac_header_preproc in
21065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21071 ## ------------------------------------ ##
21072 ## Report this to bug-autoconf@gnu.org. ##
21073 ## ------------------------------------ ##
21076 sed "s/^/$as_me: WARNING: /" >&2
21079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21087 ## ------------------------------------ ##
21088 ## Report this to bug-autoconf@gnu.org. ##
21089 ## ------------------------------------ ##
21092 sed "s/^/$as_me: WARNING: /" >&2
21095 echo "$as_me:$LINENO: checking for $ac_header" >&5
21096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21098 echo $ECHO_N "(cached) $ECHO_C" >&6
21100 eval "$as_ac_Header=$ac_header_preproc"
21102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21107 cat >>confdefs.h <<_ACEOF
21108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21116 for ac_func in getpagesize
21118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21119 echo "$as_me:$LINENO: checking for $ac_func" >&5
21120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21121 if eval "test \"\${$as_ac_var+set}\" = set"; then
21122 echo $ECHO_N "(cached) $ECHO_C" >&6
21124 cat >conftest.$ac_ext <<_ACEOF
21125 #line $LINENO "configure"
21128 cat confdefs.h >>conftest.$ac_ext
21129 cat >>conftest.$ac_ext <<_ACEOF
21130 /* end confdefs.h. */
21131 /* System header to define __stub macros and hopefully few prototypes,
21132 which can conflict with char $ac_func (); below.
21133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21134 <limits.h> exists even on freestanding compilers. */
21136 # include <limits.h>
21138 # include <assert.h>
21140 /* Override any gcc2 internal prototype to avoid an error. */
21145 /* We use char because int might match the return type of a gcc2
21146 builtin and then its argument prototype would still apply. */
21148 /* The GNU C library defines this for functions which it implements
21149 to always fail with ENOSYS. Some functions are actually named
21150 something starting with __ and the normal name is an alias. */
21151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21154 char (*f) () = $ac_func;
21163 return f != $ac_func;
21168 rm -f conftest.$ac_objext conftest$ac_exeext
21169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21170 (eval $ac_link) 2>&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); } &&
21174 { ac_try='test -s conftest$ac_exeext'
21175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176 (eval $ac_try) 2>&5
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); }; }; then
21180 eval "$as_ac_var=yes"
21182 echo "$as_me: failed program was:" >&5
21183 sed 's/^/| /' conftest.$ac_ext >&5
21185 eval "$as_ac_var=no"
21187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21191 if test `eval echo '${'$as_ac_var'}'` = yes; then
21192 cat >>confdefs.h <<_ACEOF
21193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21199 echo "$as_me:$LINENO: checking for working mmap" >&5
21200 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21201 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21204 if test "$cross_compiling" = yes; then
21205 ac_cv_func_mmap_fixed_mapped=no
21207 cat >conftest.$ac_ext <<_ACEOF
21208 #line $LINENO "configure"
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h. */
21214 $ac_includes_default
21215 /* malloc might have been renamed as rpl_malloc. */
21218 /* Thanks to Mike Haertel and Jim Avera for this test.
21219 Here is a matrix of mmap possibilities:
21220 mmap private not fixed
21221 mmap private fixed at somewhere currently unmapped
21222 mmap private fixed at somewhere already mapped
21223 mmap shared not fixed
21224 mmap shared fixed at somewhere currently unmapped
21225 mmap shared fixed at somewhere already mapped
21226 For private mappings, we should verify that changes cannot be read()
21227 back from the file, nor mmap's back from the file at a different
21228 address. (There have been systems where private was not correctly
21229 implemented like the infamous i386 svr4.0, and systems where the
21230 VM page cache was not coherent with the file system buffer cache
21231 like early versions of FreeBSD and possibly contemporary NetBSD.)
21232 For shared mappings, we should conversely verify that changes get
21233 propagated back to all the places they're supposed to be.
21235 Grep wants private fixed already mapped.
21236 The main things grep needs to know about mmap are:
21237 * does it exist and is it safe to write into the mmap'd area
21238 * how to use it (BSD variants) */
21241 #include <sys/mman.h>
21243 #if !STDC_HEADERS && !HAVE_STDLIB_H
21247 /* This mess was copied from the GNU getpagesize.h. */
21248 #if !HAVE_GETPAGESIZE
21249 /* Assume that all systems that can run configure have sys/param.h. */
21250 # if !HAVE_SYS_PARAM_H
21251 # define HAVE_SYS_PARAM_H 1
21254 # ifdef _SC_PAGESIZE
21255 # define getpagesize() sysconf(_SC_PAGESIZE)
21256 # else /* no _SC_PAGESIZE */
21257 # if HAVE_SYS_PARAM_H
21258 # include <sys/param.h>
21259 # ifdef EXEC_PAGESIZE
21260 # define getpagesize() EXEC_PAGESIZE
21261 # else /* no EXEC_PAGESIZE */
21263 # define getpagesize() NBPG * CLSIZE
21266 # endif /* no CLSIZE */
21267 # else /* no NBPG */
21269 # define getpagesize() NBPC
21270 # else /* no NBPC */
21272 # define getpagesize() PAGESIZE
21273 # endif /* PAGESIZE */
21274 # endif /* no NBPC */
21275 # endif /* no NBPG */
21276 # endif /* no EXEC_PAGESIZE */
21277 # else /* no HAVE_SYS_PARAM_H */
21278 # define getpagesize() 8192 /* punt totally */
21279 # endif /* no HAVE_SYS_PARAM_H */
21280 # endif /* no _SC_PAGESIZE */
21282 #endif /* no HAVE_GETPAGESIZE */
21287 char *data, *data2, *data3;
21291 pagesize = getpagesize ();
21293 /* First, make a file with some known garbage in it. */
21294 data = (char *) malloc (pagesize);
21297 for (i = 0; i < pagesize; ++i)
21298 *(data + i) = rand ();
21300 fd = creat ("conftest.mmap", 0600);
21303 if (write (fd, data, pagesize) != pagesize)
21307 /* Next, try to mmap the file at a fixed address which already has
21308 something else allocated at it. If we can, also make sure that
21309 we see the same garbage. */
21310 fd = open ("conftest.mmap", O_RDWR);
21313 data2 = (char *) malloc (2 * pagesize);
21316 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21317 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21318 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21320 for (i = 0; i < pagesize; ++i)
21321 if (*(data + i) != *(data2 + i))
21324 /* Finally, make sure that changes to the mapped area do not
21325 percolate back to the file as seen by read(). (This is a bug on
21326 some variants of i386 svr4.0.) */
21327 for (i = 0; i < pagesize; ++i)
21328 *(data2 + i) = *(data2 + i) + 1;
21329 data3 = (char *) malloc (pagesize);
21332 if (read (fd, data3, pagesize) != pagesize)
21334 for (i = 0; i < pagesize; ++i)
21335 if (*(data + i) != *(data3 + i))
21341 rm -f conftest$ac_exeext
21342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21343 (eval $ac_link) 2>&5
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348 (eval $ac_try) 2>&5
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); }; }; then
21352 ac_cv_func_mmap_fixed_mapped=yes
21354 echo "$as_me: program exited with status $ac_status" >&5
21355 echo "$as_me: failed program was:" >&5
21356 sed 's/^/| /' conftest.$ac_ext >&5
21358 ( exit $ac_status )
21359 ac_cv_func_mmap_fixed_mapped=no
21361 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21364 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21365 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21366 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21368 cat >>confdefs.h <<\_ACEOF
21369 #define HAVE_MMAP 1
21373 rm -f conftest.mmap
21375 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21377 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
21378 echo "$as_me: WARNING: mmap() required but not found" >&2;}
21380 echo "$as_me:$LINENO: checking for mmap of files" >&5
21381 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21382 if test "${ac_cv_func_mmap_file+set}" = set; then
21383 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 ac_cpp='$CPP $CPPFLAGS'
21389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21393 if test "$cross_compiling" = yes; then
21394 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21395 See \`config.log' for more details." >&5
21396 echo "$as_me: error: cannot run test program while cross compiling
21397 See \`config.log' for more details." >&2;}
21398 { (exit 1); exit 1; }; }
21400 cat >conftest.$ac_ext <<_ACEOF
21401 #line $LINENO "configure"
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h. */
21408 #ifdef HAVE_SYS_TYPES_H
21409 #include <sys/types.h>
21412 #ifdef HAVE_SYS_MMAN_H
21413 #include <sys/mman.h>
21416 #ifdef HAVE_FCNTL_H
21422 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
21424 rm -f conftest$ac_exeext
21425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21426 (eval $ac_link) 2>&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; }; then
21435 ac_cv_func_mmap_file=yes
21437 echo "$as_me: program exited with status $ac_status" >&5
21438 echo "$as_me: failed program was:" >&5
21439 sed 's/^/| /' conftest.$ac_ext >&5
21441 ( exit $ac_status )
21442 ac_cv_func_mmap_file=no
21444 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21447 ac_cpp='$CPP $CPPFLAGS'
21448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21454 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21455 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21456 if test "$ac_cv_func_mmap_file" = yes; then
21458 cat >>confdefs.h <<\_ACEOF
21459 #define HAVE_MMAP_FILE
21466 if test "$ac_cv_func_mmap_file" = "no"
21468 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21469 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21471 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21472 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21473 if test "${ac_cv_header_mmap_anon+set}" = set; then
21474 echo $ECHO_N "(cached) $ECHO_C" >&6
21479 ac_cpp='$CPP $CPPFLAGS'
21480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21484 cat >conftest.$ac_ext <<_ACEOF
21485 #line $LINENO "configure"
21488 cat confdefs.h >>conftest.$ac_ext
21489 cat >>conftest.$ac_ext <<_ACEOF
21490 /* end confdefs.h. */
21491 #include <sys/mman.h>
21492 #include <unistd.h>
21497 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21502 rm -f conftest.$ac_objext
21503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21504 (eval $ac_compile) 2>&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } &&
21508 { ac_try='test -s conftest.$ac_objext'
21509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21510 (eval $ac_try) 2>&5
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); }; }; then
21514 ac_cv_header_mmap_anon=yes
21516 echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21519 ac_cv_header_mmap_anon=no
21521 rm -f conftest.$ac_objext conftest.$ac_ext
21523 ac_cpp='$CPP $CPPFLAGS'
21524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21530 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21531 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21532 if test "$ac_cv_header_mmap_anon" = yes; then
21534 cat >>confdefs.h <<\_ACEOF
21535 #define HAVE_MMAP_ANONYMOUS
21540 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21541 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21542 if test "${ac_cv_type_signal+set}" = set; then
21543 echo $ECHO_N "(cached) $ECHO_C" >&6
21545 cat >conftest.$ac_ext <<_ACEOF
21546 #line $LINENO "configure"
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h. */
21552 #include <sys/types.h>
21553 #include <signal.h>
21558 extern "C" void (*signal (int, void (*)(int)))(int);
21560 void (*signal ()) ();
21571 rm -f conftest.$ac_objext
21572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21573 (eval $ac_compile) 2>&5
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); } &&
21577 { ac_try='test -s conftest.$ac_objext'
21578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21579 (eval $ac_try) 2>&5
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); }; }; then
21583 ac_cv_type_signal=void
21585 echo "$as_me: failed program was:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21588 ac_cv_type_signal=int
21590 rm -f conftest.$ac_objext conftest.$ac_ext
21592 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21593 echo "${ECHO_T}$ac_cv_type_signal" >&6
21595 cat >>confdefs.h <<_ACEOF
21596 #define RETSIGTYPE $ac_cv_type_signal
21609 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
21611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21612 echo "$as_me:$LINENO: checking for $ac_func" >&5
21613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21614 if eval "test \"\${$as_ac_var+set}\" = set"; then
21615 echo $ECHO_N "(cached) $ECHO_C" >&6
21617 cat >conftest.$ac_ext <<_ACEOF
21618 #line $LINENO "configure"
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h. */
21624 /* System header to define __stub macros and hopefully few prototypes,
21625 which can conflict with char $ac_func (); below.
21626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21627 <limits.h> exists even on freestanding compilers. */
21629 # include <limits.h>
21631 # include <assert.h>
21633 /* Override any gcc2 internal prototype to avoid an error. */
21638 /* We use char because int might match the return type of a gcc2
21639 builtin and then its argument prototype would still apply. */
21641 /* The GNU C library defines this for functions which it implements
21642 to always fail with ENOSYS. Some functions are actually named
21643 something starting with __ and the normal name is an alias. */
21644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21647 char (*f) () = $ac_func;
21656 return f != $ac_func;
21661 rm -f conftest.$ac_objext conftest$ac_exeext
21662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21663 (eval $ac_link) 2>&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } &&
21667 { ac_try='test -s conftest$ac_exeext'
21668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669 (eval $ac_try) 2>&5
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); }; }; then
21673 eval "$as_ac_var=yes"
21675 echo "$as_me: failed program was:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21678 eval "$as_ac_var=no"
21680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21683 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21684 if test `eval echo '${'$as_ac_var'}'` = yes; then
21685 cat >>confdefs.h <<_ACEOF
21686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21692 echo "$as_me:$LINENO: checking for mprotect" >&5
21693 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21694 if test "${ac_cv_func_mprotect+set}" = set; then
21695 echo $ECHO_N "(cached) $ECHO_C" >&6
21697 cat >conftest.$ac_ext <<_ACEOF
21698 #line $LINENO "configure"
21701 cat confdefs.h >>conftest.$ac_ext
21702 cat >>conftest.$ac_ext <<_ACEOF
21703 /* end confdefs.h. */
21704 /* System header to define __stub macros and hopefully few prototypes,
21705 which can conflict with char mprotect (); below.
21706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21707 <limits.h> exists even on freestanding compilers. */
21709 # include <limits.h>
21711 # include <assert.h>
21713 /* Override any gcc2 internal prototype to avoid an error. */
21718 /* We use char because int might match the return type of a gcc2
21719 builtin and then its argument prototype would still apply. */
21721 /* The GNU C library defines this for functions which it implements
21722 to always fail with ENOSYS. Some functions are actually named
21723 something starting with __ and the normal name is an alias. */
21724 #if defined (__stub_mprotect) || defined (__stub___mprotect)
21727 char (*f) () = mprotect;
21736 return f != mprotect;
21741 rm -f conftest.$ac_objext conftest$ac_exeext
21742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21743 (eval $ac_link) 2>&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); } &&
21747 { ac_try='test -s conftest$ac_exeext'
21748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21749 (eval $ac_try) 2>&5
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); }; }; then
21753 ac_cv_func_mprotect=yes
21755 echo "$as_me: failed program was:" >&5
21756 sed 's/^/| /' conftest.$ac_ext >&5
21758 ac_cv_func_mprotect=no
21760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21762 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21763 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21764 if test $ac_cv_func_mprotect = yes; then
21767 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21768 echo "$as_me: error: Function mprotect() required but not found" >&2;}
21769 { (exit 1); exit 1; }; }
21777 ac_cpp='$CPP $CPPFLAGS'
21778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21782 oldcflags="$CFLAGS"
21783 CFLAGS="$CFLAGS -Wl,-R."
21784 cat >conftest.$ac_ext <<_ACEOF
21785 int main() { return 0; }
21787 rm -f conftest.$ac_objext conftest$ac_exeext
21788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21789 (eval $ac_link) 2>&5
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } &&
21793 { ac_try='test -s conftest$ac_exeext'
21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795 (eval $ac_try) 2>&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; }; then
21799 ac_cv_link_use_r=yes
21801 echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.$ac_ext >&5
21804 ac_cv_link_use_r=no
21806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21807 CFLAGS="$oldcflags"
21809 ac_cpp='$CPP $CPPFLAGS'
21810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21814 if test "$ac_cv_link_use_r" = yes
21817 cat >>confdefs.h <<\_ACEOF
21818 #define HAVE_LINK_R 1
21824 # Check whether --enable-optimized or --disable-optimized was given.
21825 if test "${enable_optimized+set}" = set; then
21826 enableval="$enable_optimized"
21831 if test ${enableval} = "no"
21836 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21843 # Check whether --enable-spec95 or --disable-spec95 was given.
21844 if test "${enable_spec95+set}" = set; then
21845 enableval="$enable_spec95"
21846 checkresult=$enableval
21850 echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
21851 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
21852 case "$checkresult" in
21854 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
21855 if test -d "$defaultdir"
21857 SPEC95_ROOT=$defaultdir
21859 USE_SPEC95=USE_SPEC95=1
21861 checkresult="yes, found in $defaultdir"
21871 *) if test -d "$checkresult"
21873 SPEC95_ROOT="$checkresult"
21875 USE_SPEC95=USE_SPEC95=1
21877 checkresult="yes, in $checkresult"
21881 checkresult="no, not found in $checkresult"
21885 echo "$as_me:$LINENO: result: $checkresult" >&5
21886 echo "${ECHO_T}$checkresult" >&6
21890 # Check whether --enable-spec2000 or --disable-spec2000 was given.
21891 if test "${enable_spec2000+set}" = set; then
21892 enableval="$enable_spec2000"
21893 checkresult=$enableval
21897 echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
21898 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
21899 case "$checkresult" in
21901 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21902 if test -d "$defaultdir"
21904 SPEC2000_ROOT=$defaultdir
21906 USE_SPEC2000=USE_SPEC2000=1
21908 checkresult="yes, found in $defaultdir"
21918 *) if test -d "$checkresult"
21920 SPEC2000_ROOT="$checkresult"
21922 USE_SPEC2000=USE_SPEC2000=1
21924 checkresult="yes, in $checkresult"
21928 checkresult="no, not found in $checkresult"
21932 echo "$as_me:$LINENO: result: $checkresult" >&5
21933 echo "${ECHO_T}$checkresult" >&6
21937 # Check whether --enable-povray or --disable-povray was given.
21938 if test "${enable_povray+set}" = set; then
21939 enableval="$enable_povray"
21940 checkresult=$enableval
21944 echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
21945 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
21946 case "$checkresult" in
21948 defaultdir=/home/vadve/shared/benchmarks/povray31
21949 if test -d "$defaultdir"
21951 POVRAY_ROOT=$defaultdir
21953 USE_POVRAY=USE_POVRAY=1
21955 checkresult="yes, found in $defaultdir"
21965 *) if test -d "$checkresult"
21967 POVRAY_ROOT="$checkresult"
21969 USE_POVRAY=USE_POVRAY=1
21971 checkresult="yes, in $checkresult"
21975 checkresult="no, not found in $checkresult"
21979 echo "$as_me:$LINENO: result: $checkresult" >&5
21980 echo "${ECHO_T}$checkresult" >&6
21984 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21985 if test "${enable_precompiled_bytecode+set}" = set; then
21986 enableval="$enable_precompiled_bytecode"
21991 if test ${enableval} = "no"
21996 UPB=USE_PRECOMPILED_BYTECODE=1
22000 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22001 if test "${enable_llc_diffs+set}" = set; then
22002 enableval="$enable_llc_diffs"
22007 if test ${enableval} = "no"
22009 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22016 # Check whether --enable-jit or --disable-jit was given.
22017 if test "${enable_jit+set}" = set; then
22018 enableval="$enable_jit"
22023 if test ${enableval} = "no"
22030 JIT=TARGET_HAS_JIT=1
22034 JIT=TARGET_HAS_JIT=1
22045 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22046 if test "${with_llvmgccdir+set}" = set; then
22047 withval="$with_llvmgccdir"
22048 LLVMGCCDIR=$withval
22051 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22052 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22054 if test -d "$LLVMGCCDIR"
22056 if test -x "$LLVMGCCDIR/bin/gcc"
22058 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22062 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22063 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22064 if test "$LLVM_GCC_CHECK" = "no"
22068 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22069 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22071 if test -x "$LLVM_GCC_CHECK"
22073 cp /dev/null conftest.c
22074 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22080 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
22081 LLVMCC1=$llvmcc1path
22083 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
22084 LLVMCC1PLUS=$llvmcc1pluspath
22087 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22088 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22089 if test "$LLVM_GCC_SANE" = "no"
22095 # Check whether --with-bcrepos or --without-bcrepos was given.
22096 if test "${with_bcrepos+set}" = set; then
22097 withval="$with_bcrepos"
22101 BCR=/home/vadve/lattner/LLVMPrograms
22106 # Check whether --with-papi or --without-papi was given.
22107 if test "${with_papi+set}" = set; then
22108 withval="$with_papi"
22112 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22116 echo "$as_me:$LINENO: checking for shared library suffix" >&5
22117 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22118 eval "SHLIBEXT=$shrext"
22119 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22120 echo "${ECHO_T}$SHLIBEXT" >&6
22124 cat >>confdefs.h <<_ACEOF
22125 #define SHLIBEXT "$SHLIBEXT"
22129 ac_config_files="$ac_config_files Makefile.config include/Support/DataTypes.h include/Support/ThreadSupport.h include/Support/hash_map include/Support/hash_set include/Support/iterator"
22130 cat >confcache <<\_ACEOF
22131 # This file is a shell script that caches the results of configure
22132 # tests run on this system so they can be shared between configure
22133 # scripts and configure runs, see configure's option --config-cache.
22134 # It is not useful on other systems. If it contains results you don't
22135 # want to keep, you may remove or edit it.
22137 # config.status only pays attention to the cache file if you give it
22138 # the --recheck option to rerun configure.
22140 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22141 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22142 # following values.
22146 # The following way of writing the cache mishandles newlines in values,
22147 # but we know of no workaround that is simple, portable, and efficient.
22148 # So, don't put newlines in cache variables' values.
22149 # Ultrix sh set writes to stderr and can't be redirected directly,
22150 # and sets the high bit in the cache file unless we assign to the vars.
22153 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22155 # `set' does not quote correctly, so add quotes (double-quote
22156 # substitution turns \\\\ into \\, and sed turns \\ into \).
22159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22162 # `set' quotes correctly as required by POSIX, so do not add quotes.
22164 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22171 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22173 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22175 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22176 if test -w $cache_file; then
22177 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22178 cat confcache >$cache_file
22180 echo "not updating unwritable cache $cache_file"
22185 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22186 # Let make expand exec_prefix.
22187 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22189 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22190 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22191 # trailing colons and then remove the whole line if VPATH becomes empty
22192 # (actually we leave an empty line to preserve line numbers).
22193 if test "x$srcdir" = x.; then
22194 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22195 s/:*\$(srcdir):*/:/;
22196 s/:*\${srcdir}:*/:/;
22198 s/^\([^=]*=[ ]*\):*/\1/;
22204 DEFS=-DHAVE_CONFIG_H
22208 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22209 # 1. Remove the extension, and $U if already installed.
22210 ac_i=`echo "$ac_i" |
22211 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22213 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22214 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22216 LIBOBJS=$ac_libobjs
22218 LTLIBOBJS=$ac_ltlibobjs
22222 : ${CONFIG_STATUS=./config.status}
22223 ac_clean_files_save=$ac_clean_files
22224 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22225 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22226 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22227 cat >$CONFIG_STATUS <<_ACEOF
22229 # Generated by $as_me.
22230 # Run this file to recreate the current configuration.
22231 # Compiler output produced by configure, useful for debugging
22232 # configure, is in config.log if it exists.
22235 ac_cs_recheck=false
22237 SHELL=\${CONFIG_SHELL-$SHELL}
22240 cat >>$CONFIG_STATUS <<\_ACEOF
22241 ## --------------------- ##
22242 ## M4sh Initialization. ##
22243 ## --------------------- ##
22245 # Be Bourne compatible
22246 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22249 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22250 # is contrary to our usage. Disable this feature.
22251 alias -g '${1+"$@"}'='"$@"'
22252 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22256 # Support unset when possible.
22257 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22264 # Work around bugs in pre-3.0 UWIN ksh.
22265 $as_unset ENV MAIL MAILPATH
22272 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22273 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22274 LC_TELEPHONE LC_TIME
22276 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22277 eval $as_var=C; export $as_var
22283 # Required to use basename.
22284 if expr a : '\(a\)' >/dev/null 2>&1; then
22290 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22291 as_basename=basename
22297 # Name of the executable.
22298 as_me=`$as_basename "$0" ||
22299 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22300 X"$0" : 'X\(//\)$' \| \
22301 X"$0" : 'X\(/\)$' \| \
22302 . : '\(.\)' 2>/dev/null ||
22304 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22305 /^X\/\(\/\/\)$/{ s//\1/; q; }
22306 /^X\/\(\/\).*/{ s//\1/; q; }
22310 # PATH needs CR, and LINENO needs CR and PATH.
22311 # Avoid depending upon Character Ranges.
22312 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22313 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22314 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22315 as_cr_digits='0123456789'
22316 as_cr_alnum=$as_cr_Letters$as_cr_digits
22318 # The user is always right.
22319 if test "${PATH_SEPARATOR+set}" != set; then
22320 echo "#! /bin/sh" >conf$$.sh
22321 echo "exit 0" >>conf$$.sh
22323 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22332 as_lineno_1=$LINENO
22333 as_lineno_2=$LINENO
22334 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22335 test "x$as_lineno_1" != "x$as_lineno_2" &&
22336 test "x$as_lineno_3" = "x$as_lineno_2" || {
22337 # Find who we are. Look in the path if we contain no path at all
22340 *[\\/]* ) as_myself=$0 ;;
22341 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22342 for as_dir in $PATH
22345 test -z "$as_dir" && as_dir=.
22346 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22351 # We did not find ourselves, most probably we were run as `sh COMMAND'
22352 # in which case we are not to be found in the path.
22353 if test "x$as_myself" = x; then
22356 if test ! -f "$as_myself"; then
22357 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22358 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22359 { (exit 1); exit 1; }; }
22361 case $CONFIG_SHELL in
22363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22364 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22367 test -z "$as_dir" && as_dir=.
22368 for as_base in sh bash ksh sh5; do
22371 if ("$as_dir/$as_base" -c '
22372 as_lineno_1=$LINENO
22373 as_lineno_2=$LINENO
22374 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22375 test "x$as_lineno_1" != "x$as_lineno_2" &&
22376 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22377 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22378 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22379 CONFIG_SHELL=$as_dir/$as_base
22380 export CONFIG_SHELL
22381 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22389 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22390 # uniformly replaced by the line number. The first 'sed' inserts a
22391 # line-number line before each line; the second 'sed' does the real
22392 # work. The second script uses 'N' to pair each line-number line
22393 # with the numbered line, and appends trailing '-' during
22394 # substitution so that $LINENO is not a special case at line end.
22395 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22396 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22397 sed '=' <$as_myself |
22402 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22405 s,^['$as_cr_digits']*\n,,
22406 ' >$as_me.lineno &&
22407 chmod +x $as_me.lineno ||
22408 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22409 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22410 { (exit 1); exit 1; }; }
22412 # Don't try to exec as it changes $[0], causing all sort of problems
22413 # (the dirname of $[0] is not the place where we might find the
22414 # original and so on. Autoconf is especially sensible to this).
22416 # Exit status is that of the last command.
22421 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22422 *c*,-n*) ECHO_N= ECHO_C='
22424 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22425 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22428 if expr a : '\(a\)' >/dev/null 2>&1; then
22434 rm -f conf$$ conf$$.exe conf$$.file
22436 if ln -s conf$$.file conf$$ 2>/dev/null; then
22437 # We could just check for DJGPP; but this test a) works b) is more generic
22438 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22439 if test -f conf$$.exe; then
22440 # Don't use ln at all; we don't have any links
22445 elif ln conf$$.file conf$$ 2>/dev/null; then
22450 rm -f conf$$ conf$$.exe conf$$.file
22452 if mkdir -p . 2>/dev/null; then
22458 as_executable_p="test -f"
22460 # Sed expression to map a string onto a valid CPP name.
22461 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22463 # Sed expression to map a string onto a valid variable name.
22464 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22468 # We need space, tab and new line, in precisely that order.
22478 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22479 # report actual input values of CONFIG_FILES etc. instead of their
22480 # values after options handling. Logging --version etc. is OK.
22484 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22485 ## Running $as_me. ##
22490 This file was extended by [LLVM] $as_me [1.3], which was
22491 generated by GNU Autoconf 2.57. Invocation command line was
22493 CONFIG_FILES = $CONFIG_FILES
22494 CONFIG_HEADERS = $CONFIG_HEADERS
22495 CONFIG_LINKS = $CONFIG_LINKS
22496 CONFIG_COMMANDS = $CONFIG_COMMANDS
22500 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22504 # Files that config.status was made for.
22505 if test -n "$ac_config_files"; then
22506 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22509 if test -n "$ac_config_headers"; then
22510 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22513 if test -n "$ac_config_links"; then
22514 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22517 if test -n "$ac_config_commands"; then
22518 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22521 cat >>$CONFIG_STATUS <<\_ACEOF
22524 \`$as_me' instantiates files from templates according to the
22525 current configuration.
22527 Usage: $0 [OPTIONS] [FILE]...
22529 -h, --help print this help, then exit
22530 -V, --version print version number, then exit
22531 -q, --quiet do not print progress messages
22532 -d, --debug don't remove temporary files
22533 --recheck update $as_me by reconfiguring in the same conditions
22534 --file=FILE[:TEMPLATE]
22535 instantiate the configuration file FILE
22536 --header=FILE[:TEMPLATE]
22537 instantiate the configuration header FILE
22539 Configuration files:
22542 Configuration headers:
22545 Configuration commands:
22548 Report bugs to <bug-autoconf@gnu.org>."
22551 cat >>$CONFIG_STATUS <<_ACEOF
22553 [LLVM] config.status [1.3]
22554 configured by $0, generated by GNU Autoconf 2.57,
22555 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22557 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22558 Free Software Foundation, Inc.
22559 This config.status script is free software; the Free Software Foundation
22560 gives unlimited permission to copy, distribute and modify it."
22565 cat >>$CONFIG_STATUS <<\_ACEOF
22566 # If no file are specified by the user, then we need to provide default
22567 # value. By we need to know if files were specified by the user.
22573 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22574 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22582 *) # This is not an option, so the user has probably given explicit
22585 ac_need_defaults=false;;
22589 # Handling of the options.
22591 cat >>$CONFIG_STATUS <<\_ACEOF
22592 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22594 --version | --vers* | -V )
22595 echo "$ac_cs_version"; exit 0 ;;
22597 # Conflict between --help and --header
22598 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22599 Try \`$0 --help' for more information." >&5
22600 echo "$as_me: error: ambiguous option: $1
22601 Try \`$0 --help' for more information." >&2;}
22602 { (exit 1); exit 1; }; };;
22603 --help | --hel | -h )
22604 echo "$ac_cs_usage"; exit 0 ;;
22605 --debug | --d* | -d )
22607 --file | --fil | --fi | --f )
22609 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22610 ac_need_defaults=false;;
22611 --header | --heade | --head | --hea )
22613 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22614 ac_need_defaults=false;;
22615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22616 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22619 # This is an error.
22620 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22621 Try \`$0 --help' for more information." >&5
22622 echo "$as_me: error: unrecognized option: $1
22623 Try \`$0 --help' for more information." >&2;}
22624 { (exit 1); exit 1; }; } ;;
22626 *) ac_config_targets="$ac_config_targets $1" ;;
22632 ac_configure_extra_args=
22634 if $ac_cs_silent; then
22636 ac_configure_extra_args="$ac_configure_extra_args --silent"
22640 cat >>$CONFIG_STATUS <<_ACEOF
22641 if \$ac_cs_recheck; then
22642 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22643 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22648 cat >>$CONFIG_STATUS <<_ACEOF
22650 # INIT-COMMANDS section.
22653 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22654 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
22655 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22656 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22657 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22658 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22659 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
22660 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
22661 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22662 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
22663 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22664 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
22665 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22666 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22667 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22668 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22669 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22670 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22671 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22672 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22673 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22674 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
22675 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
22676 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22677 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
22678 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
22679 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
22680 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
22681 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22682 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
22683 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
22684 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
22685 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
22686 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
22687 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
22688 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
22689 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
22690 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
22691 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
22692 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
22693 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
22694 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
22695 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
22696 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22697 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
22698 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
22699 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22700 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
22701 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
22707 cat >>$CONFIG_STATUS <<\_ACEOF
22708 for ac_config_target in $ac_config_targets
22710 case "$ac_config_target" in
22711 # Handling of arguments.
22712 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22713 "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
22714 "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
22715 "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
22716 "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
22717 "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
22718 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22719 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22720 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22721 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22722 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22723 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22724 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
22725 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
22726 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22727 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
22728 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22729 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
22730 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22731 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22732 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22733 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22734 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22735 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22736 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22737 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22738 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22739 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
22740 "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
22741 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
22742 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
22743 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
22744 "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
22745 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
22746 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
22747 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
22748 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
22749 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
22750 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
22751 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
22752 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
22753 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
22754 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
22755 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
22756 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
22757 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
22758 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
22759 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
22760 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
22761 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
22762 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
22763 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
22764 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22765 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22766 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22767 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22768 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22769 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22770 { (exit 1); exit 1; }; };;
22774 # If the user did not use the arguments to specify the items to instantiate,
22775 # then the envvar interface is used. Set only those that are not.
22776 # We use the long form for the default assignment because of an extremely
22777 # bizarre bug on SunOS 4.1.3.
22778 if $ac_need_defaults; then
22779 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22780 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22781 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22784 # Have a temporary directory for convenience. Make it in the build tree
22785 # simply because there is no reason to put it here, and in addition,
22786 # creating and moving files from /tmp can sometimes cause problems.
22787 # Create a temporary directory, and hook for its removal unless debugging.
22790 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22791 trap '{ (exit 1); exit 1; }' 1 2 13 15
22794 # Create a (secure) tmp directory for tmp files.
22797 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22798 test -n "$tmp" && test -d "$tmp"
22801 tmp=./confstat$$-$RANDOM
22802 (umask 077 && mkdir $tmp)
22805 echo "$me: cannot create a temporary directory in ." >&2
22806 { (exit 1); exit 1; }
22811 cat >>$CONFIG_STATUS <<_ACEOF
22814 # CONFIG_FILES section.
22817 # No need to generate the scripts if there are no CONFIG_FILES.
22818 # This happens for instance when ./config.status config.h
22819 if test -n "\$CONFIG_FILES"; then
22820 # Protect against being on the right side of a sed subst in config.status.
22821 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22822 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22823 s,@SHELL@,$SHELL,;t t
22824 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22825 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22826 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22827 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22828 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22829 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22830 s,@exec_prefix@,$exec_prefix,;t t
22831 s,@prefix@,$prefix,;t t
22832 s,@program_transform_name@,$program_transform_name,;t t
22833 s,@bindir@,$bindir,;t t
22834 s,@sbindir@,$sbindir,;t t
22835 s,@libexecdir@,$libexecdir,;t t
22836 s,@datadir@,$datadir,;t t
22837 s,@sysconfdir@,$sysconfdir,;t t
22838 s,@sharedstatedir@,$sharedstatedir,;t t
22839 s,@localstatedir@,$localstatedir,;t t
22840 s,@libdir@,$libdir,;t t
22841 s,@includedir@,$includedir,;t t
22842 s,@oldincludedir@,$oldincludedir,;t t
22843 s,@infodir@,$infodir,;t t
22844 s,@mandir@,$mandir,;t t
22845 s,@build_alias@,$build_alias,;t t
22846 s,@host_alias@,$host_alias,;t t
22847 s,@target_alias@,$target_alias,;t t
22848 s,@DEFS@,$DEFS,;t t
22849 s,@ECHO_C@,$ECHO_C,;t t
22850 s,@ECHO_N@,$ECHO_N,;t t
22851 s,@ECHO_T@,$ECHO_T,;t t
22852 s,@LIBS@,$LIBS,;t t
22853 s,@subdirs@,$subdirs,;t t
22854 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22855 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22856 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22857 s,@build@,$build,;t t
22858 s,@build_cpu@,$build_cpu,;t t
22859 s,@build_vendor@,$build_vendor,;t t
22860 s,@build_os@,$build_os,;t t
22861 s,@host@,$host,;t t
22862 s,@host_cpu@,$host_cpu,;t t
22863 s,@host_vendor@,$host_vendor,;t t
22864 s,@host_os@,$host_os,;t t
22865 s,@target@,$target,;t t
22866 s,@target_cpu@,$target_cpu,;t t
22867 s,@target_vendor@,$target_vendor,;t t
22868 s,@target_os@,$target_os,;t t
22870 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
22871 s,@ARCH@,$ARCH,;t t
22873 s,@CXXFLAGS@,$CXXFLAGS,;t t
22874 s,@LDFLAGS@,$LDFLAGS,;t t
22875 s,@CPPFLAGS@,$CPPFLAGS,;t t
22876 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22877 s,@EXEEXT@,$EXEEXT,;t t
22878 s,@OBJEXT@,$OBJEXT,;t t
22880 s,@CFLAGS@,$CFLAGS,;t t
22881 s,@ac_ct_CC@,$ac_ct_CC,;t t
22883 s,@ifGNUmake@,$ifGNUmake,;t t
22885 s,@LEXLIB@,$LEXLIB,;t t
22886 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22887 s,@YACC@,$YACC,;t t
22888 s,@BISON@,$BISON,;t t
22889 s,@EGREP@,$EGREP,;t t
22890 s,@LN_S@,$LN_S,;t t
22891 s,@ECHO@,$ECHO,;t t
22893 s,@ac_ct_AR@,$ac_ct_AR,;t t
22894 s,@RANLIB@,$RANLIB,;t t
22895 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22896 s,@STRIP@,$STRIP,;t t
22897 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22898 s,@CXXCPP@,$CXXCPP,;t t
22900 s,@FFLAGS@,$FFLAGS,;t t
22901 s,@ac_ct_F77@,$ac_ct_F77,;t t
22902 s,@LIBTOOL@,$LIBTOOL,;t t
22904 s,@ETAGS@,$ETAGS,;t t
22905 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
22906 s,@PYTHON@,$PYTHON,;t t
22907 s,@QMTEST@,$QMTEST,;t t
22908 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
22909 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
22910 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
22911 s,@ENDIAN@,$ENDIAN,;t t
22912 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
22913 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
22914 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
22915 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
22916 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
22917 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
22918 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
22919 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
22920 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
22921 s,@ALLOCA@,$ALLOCA,;t t
22922 s,@MMAP_FILE@,$MMAP_FILE,;t t
22923 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22924 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
22925 s,@USE_SPEC95@,$USE_SPEC95,;t t
22926 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
22927 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
22928 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
22929 s,@USE_POVRAY@,$USE_POVRAY,;t t
22931 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
22933 s,@LLVMCC1@,$LLVMCC1,;t t
22934 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
22936 s,@PAPIDIR@,$PAPIDIR,;t t
22937 s,@SHLIBEXT@,$SHLIBEXT,;t t
22938 s,@LIBOBJS@,$LIBOBJS,;t t
22939 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22944 cat >>$CONFIG_STATUS <<\_ACEOF
22945 # Split the substitutions into bite-sized pieces for seds with
22946 # small command number limits, like on Digital OSF/1 and HP-UX.
22947 ac_max_sed_lines=48
22948 ac_sed_frag=1 # Number of current file.
22949 ac_beg=1 # First line for current file.
22950 ac_end=$ac_max_sed_lines # Line after last line for current file.
22953 while $ac_more_lines; do
22954 if test $ac_beg -gt 1; then
22955 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22957 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22959 if test ! -s $tmp/subs.frag; then
22960 ac_more_lines=false
22962 # The purpose of the label and of the branching condition is to
22963 # speed up the sed processing (if there are no `@' at all, there
22964 # is no need to browse any of the substitutions).
22965 # These are the two extra sed commands mentioned above.
22967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22968 if test -z "$ac_sed_cmds"; then
22969 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22971 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22973 ac_sed_frag=`expr $ac_sed_frag + 1`
22975 ac_end=`expr $ac_end + $ac_max_sed_lines`
22978 if test -z "$ac_sed_cmds"; then
22981 fi # test -n "$CONFIG_FILES"
22984 cat >>$CONFIG_STATUS <<\_ACEOF
22985 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22986 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22988 - | *:- | *:-:* ) # input from stdin
22990 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22991 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22992 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22993 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22994 * ) ac_file_in=$ac_file.in ;;
22997 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22998 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22999 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23000 X"$ac_file" : 'X\(//\)[^/]' \| \
23001 X"$ac_file" : 'X\(//\)$' \| \
23002 X"$ac_file" : 'X\(/\)' \| \
23003 . : '\(.\)' 2>/dev/null ||
23005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23006 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23007 /^X\(\/\/\)$/{ s//\1/; q; }
23008 /^X\(\/\).*/{ s//\1/; q; }
23010 { if $as_mkdir_p; then
23015 while test ! -d "$as_dir"; do
23016 as_dirs="$as_dir $as_dirs"
23017 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23018 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23019 X"$as_dir" : 'X\(//\)[^/]' \| \
23020 X"$as_dir" : 'X\(//\)$' \| \
23021 X"$as_dir" : 'X\(/\)' \| \
23022 . : '\(.\)' 2>/dev/null ||
23024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23025 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23026 /^X\(\/\/\)$/{ s//\1/; q; }
23027 /^X\(\/\).*/{ s//\1/; q; }
23030 test ! -n "$as_dirs" || mkdir $as_dirs
23031 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23032 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23033 { (exit 1); exit 1; }; }; }
23037 if test "$ac_dir" != .; then
23038 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23039 # A "../" for each directory in $ac_dir_suffix.
23040 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23042 ac_dir_suffix= ac_top_builddir=
23046 .) # No --srcdir option. We are building in place.
23048 if test -z "$ac_top_builddir"; then
23051 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23053 [\\/]* | ?:[\\/]* ) # Absolute path.
23054 ac_srcdir=$srcdir$ac_dir_suffix;
23055 ac_top_srcdir=$srcdir ;;
23056 *) # Relative path.
23057 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23058 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23060 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23062 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23063 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23064 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23065 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23069 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23070 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23073 if test x"$ac_file" != x-; then
23074 { echo "$as_me:$LINENO: creating $ac_file" >&5
23075 echo "$as_me: creating $ac_file" >&6;}
23078 # Let's still pretend it is `configure' which instantiates (i.e., don't
23079 # use $as_me), people would be surprised to read:
23080 # /* config.h. Generated by config.status. */
23081 if test x"$ac_file" = x-; then
23084 configure_input="$ac_file. "
23086 configure_input=$configure_input"Generated from `echo $ac_file_in |
23087 sed 's,.*/,,'` by configure."
23089 # First look for the input files in the build tree, otherwise in the
23091 ac_file_inputs=`IFS=:
23092 for f in $ac_file_in; do
23094 -) echo $tmp/stdin ;;
23096 # Absolute (can't be DOS-style, as IFS=:)
23097 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23098 echo "$as_me: error: cannot find input file: $f" >&2;}
23099 { (exit 1); exit 1; }; }
23102 if test -f "$f"; then
23105 elif test -f "$srcdir/$f"; then
23110 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23111 echo "$as_me: error: cannot find input file: $f" >&2;}
23112 { (exit 1); exit 1; }; }
23115 done` || { (exit 1); exit 1; }
23117 cat >>$CONFIG_STATUS <<_ACEOF
23121 cat >>$CONFIG_STATUS <<\_ACEOF
23123 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23124 s,@configure_input@,$configure_input,;t t
23125 s,@srcdir@,$ac_srcdir,;t t
23126 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23127 s,@top_srcdir@,$ac_top_srcdir,;t t
23128 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23129 s,@builddir@,$ac_builddir,;t t
23130 s,@abs_builddir@,$ac_abs_builddir,;t t
23131 s,@top_builddir@,$ac_top_builddir,;t t
23132 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23133 s,@INSTALL@,$ac_INSTALL,;t t
23134 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23136 if test x"$ac_file" != x-; then
23137 mv $tmp/out $ac_file
23145 cat >>$CONFIG_STATUS <<\_ACEOF
23148 # CONFIG_HEADER section.
23151 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23152 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23154 # ac_d sets the value in "#define NAME VALUE" lines.
23155 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23156 ac_dB='[ ].*$,\1#\2'
23159 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23160 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23161 ac_uB='$,\1#\2define\3'
23165 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23166 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23168 - | *:- | *:-:* ) # input from stdin
23170 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23171 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23172 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23173 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23174 * ) ac_file_in=$ac_file.in ;;
23177 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23178 echo "$as_me: creating $ac_file" >&6;}
23180 # First look for the input files in the build tree, otherwise in the
23182 ac_file_inputs=`IFS=:
23183 for f in $ac_file_in; do
23185 -) echo $tmp/stdin ;;
23187 # Absolute (can't be DOS-style, as IFS=:)
23188 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23189 echo "$as_me: error: cannot find input file: $f" >&2;}
23190 { (exit 1); exit 1; }; }
23193 if test -f "$f"; then
23196 elif test -f "$srcdir/$f"; then
23201 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23202 echo "$as_me: error: cannot find input file: $f" >&2;}
23203 { (exit 1); exit 1; }; }
23206 done` || { (exit 1); exit 1; }
23207 # Remove the trailing spaces.
23208 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23212 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23213 # `conftest.undefs', that substitutes the proper values into
23214 # config.h.in to produce config.h. The first handles `#define'
23215 # templates, and the second `#undef' templates.
23216 # And first: Protect against being on the right side of a sed subst in
23217 # config.status. Protect against being in an unquoted here document
23218 # in config.status.
23219 rm -f conftest.defines conftest.undefs
23220 # Using a here document instead of a string reduces the quoting nightmare.
23221 # Putting comments in sed scripts is not portable.
23223 # `end' is used to avoid that the second main sed command (meant for
23224 # 0-ary CPP macros) applies to n-ary macro definitions.
23225 # See the Autoconf documentation for `clear'.
23226 cat >confdef2sed.sed <<\_ACEOF
23231 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23233 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23236 # If some macros were called several times there might be several times
23237 # the same #defines, which is useless. Nevertheless, we may not want to
23238 # sort them, since we want the *last* AC-DEFINE to be honored.
23239 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23240 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23241 rm -f confdef2sed.sed
23243 # This sed command replaces #undef with comments. This is necessary, for
23244 # example, in the case of _POSIX_SOURCE, which is predefined and required
23245 # on some systems where configure will not decide to define it.
23246 cat >>conftest.undefs <<\_ACEOF
23247 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23250 # Break up conftest.defines because some shells have a limit on the size
23251 # of here documents, and old seds have small limits too (100 cmds).
23252 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23253 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23254 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23255 echo ' :' >>$CONFIG_STATUS
23256 rm -f conftest.tail
23257 while grep . conftest.defines >/dev/null
23259 # Write a limited-size here document to $tmp/defines.sed.
23260 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23261 # Speed up: don't consider the non `#define' lines.
23262 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23263 # Work around the forget-to-reset-the-flag bug.
23264 echo 't clr' >>$CONFIG_STATUS
23265 echo ': clr' >>$CONFIG_STATUS
23266 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23268 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23270 mv $tmp/out $tmp/in
23272 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23273 rm -f conftest.defines
23274 mv conftest.tail conftest.defines
23276 rm -f conftest.defines
23277 echo ' fi # grep' >>$CONFIG_STATUS
23278 echo >>$CONFIG_STATUS
23280 # Break up conftest.undefs because some shells have a limit on the size
23281 # of here documents, and old seds have small limits too (100 cmds).
23282 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23283 rm -f conftest.tail
23284 while grep . conftest.undefs >/dev/null
23286 # Write a limited-size here document to $tmp/undefs.sed.
23287 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23288 # Speed up: don't consider the non `#undef'
23289 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23290 # Work around the forget-to-reset-the-flag bug.
23291 echo 't clr' >>$CONFIG_STATUS
23292 echo ': clr' >>$CONFIG_STATUS
23293 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23295 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23297 mv $tmp/out $tmp/in
23299 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23300 rm -f conftest.undefs
23301 mv conftest.tail conftest.undefs
23303 rm -f conftest.undefs
23305 cat >>$CONFIG_STATUS <<\_ACEOF
23306 # Let's still pretend it is `configure' which instantiates (i.e., don't
23307 # use $as_me), people would be surprised to read:
23308 # /* config.h. Generated by config.status. */
23309 if test x"$ac_file" = x-; then
23310 echo "/* Generated by configure. */" >$tmp/config.h
23312 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23314 cat $tmp/in >>$tmp/config.h
23316 if test x"$ac_file" != x-; then
23317 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23318 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23319 echo "$as_me: $ac_file is unchanged" >&6;}
23321 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23322 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23323 X"$ac_file" : 'X\(//\)[^/]' \| \
23324 X"$ac_file" : 'X\(//\)$' \| \
23325 X"$ac_file" : 'X\(/\)' \| \
23326 . : '\(.\)' 2>/dev/null ||
23328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23330 /^X\(\/\/\)$/{ s//\1/; q; }
23331 /^X\(\/\).*/{ s//\1/; q; }
23333 { if $as_mkdir_p; then
23338 while test ! -d "$as_dir"; do
23339 as_dirs="$as_dir $as_dirs"
23340 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23342 X"$as_dir" : 'X\(//\)[^/]' \| \
23343 X"$as_dir" : 'X\(//\)$' \| \
23344 X"$as_dir" : 'X\(/\)' \| \
23345 . : '\(.\)' 2>/dev/null ||
23347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23349 /^X\(\/\/\)$/{ s//\1/; q; }
23350 /^X\(\/\).*/{ s//\1/; q; }
23353 test ! -n "$as_dirs" || mkdir $as_dirs
23354 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23355 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23356 { (exit 1); exit 1; }; }; }
23359 mv $tmp/config.h $ac_file
23363 rm -f $tmp/config.h
23367 cat >>$CONFIG_STATUS <<\_ACEOF
23370 # CONFIG_COMMANDS section.
23372 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23373 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23374 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23375 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23376 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23377 X"$ac_dest" : 'X\(//\)[^/]' \| \
23378 X"$ac_dest" : 'X\(//\)$' \| \
23379 X"$ac_dest" : 'X\(/\)' \| \
23380 . : '\(.\)' 2>/dev/null ||
23382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23383 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23384 /^X\(\/\/\)$/{ s//\1/; q; }
23385 /^X\(\/\).*/{ s//\1/; q; }
23389 if test "$ac_dir" != .; then
23390 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23391 # A "../" for each directory in $ac_dir_suffix.
23392 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23394 ac_dir_suffix= ac_top_builddir=
23398 .) # No --srcdir option. We are building in place.
23400 if test -z "$ac_top_builddir"; then
23403 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23405 [\\/]* | ?:[\\/]* ) # Absolute path.
23406 ac_srcdir=$srcdir$ac_dir_suffix;
23407 ac_top_srcdir=$srcdir ;;
23408 *) # Relative path.
23409 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23410 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23412 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23414 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23415 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23416 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23417 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23420 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23421 echo "$as_me: executing $ac_dest commands" >&6;}
23423 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23424 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
23425 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
23426 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23427 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23428 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23429 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23430 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
23431 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23432 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23433 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23434 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
23435 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
23436 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
23437 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
23438 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
23439 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
23440 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
23441 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
23442 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
23443 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
23444 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
23445 test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
23446 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
23447 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
23448 test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
23449 test/Programs/External/SPEC/Makefile.spec2000 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec2000 test/Programs/External/SPEC/Makefile.spec2000 ;;
23450 test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;;
23451 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
23452 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
23453 test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
23454 test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
23455 test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
23456 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
23457 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
23458 test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
23459 test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
23460 test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
23461 test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
23462 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
23463 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
23464 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
23465 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
23466 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
23467 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
23468 test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
23469 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
23470 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
23471 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
23476 cat >>$CONFIG_STATUS <<\_ACEOF
23478 { (exit 0); exit 0; }
23480 chmod +x $CONFIG_STATUS
23481 ac_clean_files=$ac_clean_files_save
23484 # configure is writing to config.log, and then calls config.status.
23485 # config.status does its own redirection, appending to config.log.
23486 # Unfortunately, on DOS this fails, as config.log is still kept open
23487 # by configure, so config.status won't be able to write to it; its
23488 # output is simply discarded. So we exec the FD to /dev/null,
23489 # effectively closing config.log, so it can be properly (re)opened and
23490 # appended to by config.status. When coming back to configure, we
23491 # need to make the FD available again.
23492 if test "$no_create" != yes; then
23494 ac_config_status_args=
23495 test "$silent" = yes &&
23496 ac_config_status_args="$ac_config_status_args --quiet"
23498 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23500 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23501 # would make configure fail if this is the last instruction.
23502 $ac_cs_success || { (exit 1); exit 1; }
23506 # CONFIG_SUBDIRS section.
23508 if test "$no_recursion" != yes; then
23510 # Remove --cache-file and --srcdir arguments so they do not pile up.
23511 ac_sub_configure_args=
23513 for ac_arg in $ac_configure_args; do
23514 if test -n "$ac_prev"; then
23519 -cache-file | --cache-file | --cache-fil | --cache-fi \
23520 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23521 ac_prev=cache_file ;;
23522 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23523 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23526 --config-cache | -C)
23528 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23530 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23532 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23534 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23536 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23540 # Always prepend --prefix to ensure using the same prefix
23541 # in subdir configurations.
23542 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23545 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23547 # Do not complain, so a configure script can configure whichever
23548 # parts of a large source tree are present.
23549 test -d $srcdir/$ac_dir || continue
23551 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23552 echo "$as_me: configuring in $ac_dir" >&6;}
23553 { if $as_mkdir_p; then
23558 while test ! -d "$as_dir"; do
23559 as_dirs="$as_dir $as_dirs"
23560 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23562 X"$as_dir" : 'X\(//\)[^/]' \| \
23563 X"$as_dir" : 'X\(//\)$' \| \
23564 X"$as_dir" : 'X\(/\)' \| \
23565 . : '\(.\)' 2>/dev/null ||
23567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23568 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23569 /^X\(\/\/\)$/{ s//\1/; q; }
23570 /^X\(\/\).*/{ s//\1/; q; }
23573 test ! -n "$as_dirs" || mkdir $as_dirs
23574 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23575 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23576 { (exit 1); exit 1; }; }; }
23580 if test "$ac_dir" != .; then
23581 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23582 # A "../" for each directory in $ac_dir_suffix.
23583 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23585 ac_dir_suffix= ac_top_builddir=
23589 .) # No --srcdir option. We are building in place.
23591 if test -z "$ac_top_builddir"; then
23594 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23596 [\\/]* | ?:[\\/]* ) # Absolute path.
23597 ac_srcdir=$srcdir$ac_dir_suffix;
23598 ac_top_srcdir=$srcdir ;;
23599 *) # Relative path.
23600 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23601 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23603 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23605 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23606 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23607 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23608 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23613 # Check for guested configure; otherwise get Cygnus style configure.
23614 if test -f $ac_srcdir/configure.gnu; then
23615 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23616 elif test -f $ac_srcdir/configure; then
23617 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23618 elif test -f $ac_srcdir/configure.in; then
23619 ac_sub_configure=$ac_configure
23621 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23622 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23626 # The recursion is here.
23627 if test -n "$ac_sub_configure"; then
23628 # Make the cache file name correct relative to the subdirectory.
23629 case $cache_file in
23630 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23631 *) # Relative path.
23632 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23635 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23636 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23637 # The eval makes quoting arguments work.
23638 eval $ac_sub_configure $ac_sub_configure_args \
23639 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23640 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23641 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23642 { (exit 1); exit 1; }; }
23650 if test $llvmgccwarn = yes
23652 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
23653 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
23654 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
23655 echo "$as_me: WARNING: ***** appear to be working." >&2;}
23656 { echo "$as_me:$LINENO: WARNING: ***** " >&5
23657 echo "$as_me: WARNING: ***** " >&2;}
23658 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
23659 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
23660 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
23661 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
23662 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
23663 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}