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/
1861 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1863 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1883 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1892 sparc*-*) ARCH=Sparc
1895 powerpc*-*) ARCH=PowerPC
1904 ac_cpp='$CXXCPP $CPPFLAGS'
1905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1908 if test -n "$ac_tool_prefix"; then
1909 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1913 echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915 if test "${ac_cv_prog_CXX+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 if test -n "$CXX"; then
1919 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938 if test -n "$CXX"; then
1939 echo "$as_me:$LINENO: result: $CXX" >&5
1940 echo "${ECHO_T}$CXX" >&6
1942 echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6
1946 test -n "$CXX" && break
1949 if test -z "$CXX"; then
1951 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1953 # Extract the first word of "$ac_prog", so it can be a program name with args.
1954 set dummy $ac_prog; ac_word=$2
1955 echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 if test -n "$ac_ct_CXX"; then
1961 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970 ac_cv_prog_ac_ct_CXX="$ac_prog"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1980 if test -n "$ac_ct_CXX"; then
1981 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1982 echo "${ECHO_T}$ac_ct_CXX" >&6
1984 echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6
1988 test -n "$ac_ct_CXX" && break
1990 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1996 # Provide some information about the compiler.
1997 echo "$as_me:$LINENO:" \
1998 "checking for C++ compiler version" >&5
1999 ac_compiler=`set X $ac_compile; echo $2`
2000 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2001 (eval $ac_compiler --version </dev/null >&5) 2>&5
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }
2005 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2006 (eval $ac_compiler -v </dev/null >&5) 2>&5
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }
2010 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2011 (eval $ac_compiler -V </dev/null >&5) 2>&5
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }
2016 cat >conftest.$ac_ext <<_ACEOF
2017 #line $LINENO "configure"
2020 cat confdefs.h >>conftest.$ac_ext
2021 cat >>conftest.$ac_ext <<_ACEOF
2022 /* end confdefs.h. */
2032 ac_clean_files_save=$ac_clean_files
2033 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2034 # Try to create an executable without -o first, disregard a.out.
2035 # It will help us diagnose broken compilers, and finding out an intuition
2037 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2038 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2039 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2040 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2041 (eval $ac_link_default) 2>&5
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }; then
2045 # Find the output, starting from the most likely. This scheme is
2046 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2049 # Be careful to initialize this variable, since it used to be cached.
2050 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2052 # b.out is created by i960 compilers.
2053 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2055 test -f "$ac_file" || continue
2057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2060 # This is the source file.
2063 # We found the default executable, but exeext='' is most
2067 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2068 # FIXME: I believe we export ac_cv_exeext for Libtool,
2069 # but it would be cool to find out if it's true. Does anybody
2070 # maintain Libtool? --akim.
2078 echo "$as_me: failed program was:" >&5
2079 sed 's/^/| /' conftest.$ac_ext >&5
2081 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2082 See \`config.log' for more details." >&5
2083 echo "$as_me: error: C++ compiler cannot create executables
2084 See \`config.log' for more details." >&2;}
2085 { (exit 77); exit 77; }; }
2088 ac_exeext=$ac_cv_exeext
2089 echo "$as_me:$LINENO: result: $ac_file" >&5
2090 echo "${ECHO_T}$ac_file" >&6
2092 # Check the compiler produces executables we can run. If not, either
2093 # the compiler is broken, or we cross compile.
2094 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2095 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2096 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2097 # If not cross compiling, check that we can run a simple program.
2098 if test "$cross_compiling" != yes; then
2099 if { ac_try='./$ac_file'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; }; then
2107 if test "$cross_compiling" = maybe; then
2110 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2111 If you meant to cross compile, use \`--host'.
2112 See \`config.log' for more details." >&5
2113 echo "$as_me: error: cannot run C++ compiled programs.
2114 If you meant to cross compile, use \`--host'.
2115 See \`config.log' for more details." >&2;}
2116 { (exit 1); exit 1; }; }
2120 echo "$as_me:$LINENO: result: yes" >&5
2121 echo "${ECHO_T}yes" >&6
2123 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2124 ac_clean_files=$ac_clean_files_save
2125 # Check the compiler produces executables we can run. If not, either
2126 # the compiler is broken, or we cross compile.
2127 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2128 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2129 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2130 echo "${ECHO_T}$cross_compiling" >&6
2132 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2133 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2135 (eval $ac_link) 2>&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }; then
2139 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2140 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2141 # work properly (i.e., refer to `conftest.exe'), while it won't with
2143 for ac_file in conftest.exe conftest conftest.*; do
2144 test -f "$ac_file" || continue
2146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2147 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2154 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2155 See \`config.log' for more details." >&5
2156 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2157 See \`config.log' for more details." >&2;}
2158 { (exit 1); exit 1; }; }
2161 rm -f conftest$ac_cv_exeext
2162 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2163 echo "${ECHO_T}$ac_cv_exeext" >&6
2165 rm -f conftest.$ac_ext
2166 EXEEXT=$ac_cv_exeext
2168 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2169 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2170 if test "${ac_cv_objext+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 cat >conftest.$ac_ext <<_ACEOF
2174 #line $LINENO "configure"
2177 cat confdefs.h >>conftest.$ac_ext
2178 cat >>conftest.$ac_ext <<_ACEOF
2179 /* end confdefs.h. */
2189 rm -f conftest.o conftest.obj
2190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191 (eval $ac_compile) 2>&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; then
2195 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2198 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2203 echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2206 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2207 See \`config.log' for more details." >&5
2208 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2209 See \`config.log' for more details." >&2;}
2210 { (exit 1); exit 1; }; }
2213 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2215 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2216 echo "${ECHO_T}$ac_cv_objext" >&6
2217 OBJEXT=$ac_cv_objext
2219 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2220 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2221 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 cat >conftest.$ac_ext <<_ACEOF
2225 #line $LINENO "configure"
2228 cat confdefs.h >>conftest.$ac_ext
2229 cat >>conftest.$ac_ext <<_ACEOF
2230 /* end confdefs.h. */
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -s conftest.$ac_objext'
2250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; }; then
2257 echo "$as_me: failed program was:" >&5
2258 sed 's/^/| /' conftest.$ac_ext >&5
2262 rm -f conftest.$ac_objext conftest.$ac_ext
2263 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2266 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2267 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2268 GXX=`test $ac_compiler_gnu = yes && echo yes`
2269 ac_test_CXXFLAGS=${CXXFLAGS+set}
2270 ac_save_CXXFLAGS=$CXXFLAGS
2272 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2273 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2274 if test "${ac_cv_prog_cxx_g+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 cat >conftest.$ac_ext <<_ACEOF
2278 #line $LINENO "configure"
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2293 rm -f conftest.$ac_objext
2294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295 (eval $ac_compile) 2>&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); } &&
2299 { ac_try='test -s conftest.$ac_objext'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; }; then
2305 ac_cv_prog_cxx_g=yes
2307 echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2312 rm -f conftest.$ac_objext conftest.$ac_ext
2314 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2315 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2316 if test "$ac_test_CXXFLAGS" = set; then
2317 CXXFLAGS=$ac_save_CXXFLAGS
2318 elif test $ac_cv_prog_cxx_g = yes; then
2319 if test "$GXX" = yes; then
2325 if test "$GXX" = yes; then
2331 for ac_declaration in \
2333 '#include <stdlib.h>' \
2334 'extern "C" void std::exit (int) throw (); using std::exit;' \
2335 'extern "C" void std::exit (int); using std::exit;' \
2336 'extern "C" void exit (int) throw ();' \
2337 'extern "C" void exit (int);' \
2340 cat >conftest.$ac_ext <<_ACEOF
2341 #line $LINENO "configure"
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h. */
2357 rm -f conftest.$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359 (eval $ac_compile) 2>&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try='test -s conftest.$ac_objext'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; }; then
2371 echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2376 rm -f conftest.$ac_objext conftest.$ac_ext
2377 cat >conftest.$ac_ext <<_ACEOF
2378 #line $LINENO "configure"
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h. */
2393 rm -f conftest.$ac_objext
2394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395 (eval $ac_compile) 2>&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2411 rm -f conftest.$ac_objext conftest.$ac_ext
2414 if test -n "$ac_declaration"; then
2415 echo '#ifdef __cplusplus' >>confdefs.h
2416 echo $ac_declaration >>confdefs.h
2417 echo '#endif' >>confdefs.h
2421 ac_cpp='$CPP $CPPFLAGS'
2422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2427 ac_cpp='$CPP $CPPFLAGS'
2428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2431 if test -n "$ac_tool_prefix"; then
2434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2436 echo "$as_me:$LINENO: checking for $ac_word" >&5
2437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2438 if test "${ac_cv_prog_CC+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 if test -n "$CC"; then
2442 ac_cv_prog_CC="$CC" # Let the user override the test.
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2451 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 if test -n "$CC"; then
2462 echo "$as_me:$LINENO: result: $CC" >&5
2463 echo "${ECHO_T}$CC" >&6
2465 echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6
2469 test -n "$CC" && break
2472 if test -z "$CC"; then
2476 # Extract the first word of "$ac_prog", so it can be a program name with args.
2477 set dummy $ac_prog; ac_word=$2
2478 echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 if test -n "$ac_ct_CC"; then
2484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2493 ac_cv_prog_ac_ct_CC="$ac_prog"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503 if test -n "$ac_ct_CC"; then
2504 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505 echo "${ECHO_T}$ac_ct_CC" >&6
2507 echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6
2511 test -n "$ac_ct_CC" && break
2518 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2519 See \`config.log' for more details." >&5
2520 echo "$as_me: error: no acceptable C compiler found in \$PATH
2521 See \`config.log' for more details." >&2;}
2522 { (exit 1); exit 1; }; }
2524 # Provide some information about the compiler.
2525 echo "$as_me:$LINENO:" \
2526 "checking for C compiler version" >&5
2527 ac_compiler=`set X $ac_compile; echo $2`
2528 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2529 (eval $ac_compiler --version </dev/null >&5) 2>&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }
2533 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2534 (eval $ac_compiler -v </dev/null >&5) 2>&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }
2538 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2539 (eval $ac_compiler -V </dev/null >&5) 2>&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }
2544 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2545 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2546 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 cat >conftest.$ac_ext <<_ACEOF
2550 #line $LINENO "configure"
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h. */
2568 rm -f conftest.$ac_objext
2569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570 (eval $ac_compile) 2>&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -s conftest.$ac_objext'
2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; }; then
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2587 rm -f conftest.$ac_objext conftest.$ac_ext
2588 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2591 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2592 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2593 GCC=`test $ac_compiler_gnu = yes && echo yes`
2594 ac_test_CFLAGS=${CFLAGS+set}
2595 ac_save_CFLAGS=$CFLAGS
2597 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2598 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2599 if test "${ac_cv_prog_cc_g+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 cat >conftest.$ac_ext <<_ACEOF
2603 #line $LINENO "configure"
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2618 rm -f conftest.$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620 (eval $ac_compile) 2>&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
2624 { ac_try='test -s conftest.$ac_objext'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2632 echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2637 rm -f conftest.$ac_objext conftest.$ac_ext
2639 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2640 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2641 if test "$ac_test_CFLAGS" = set; then
2642 CFLAGS=$ac_save_CFLAGS
2643 elif test $ac_cv_prog_cc_g = yes; then
2644 if test "$GCC" = yes; then
2650 if test "$GCC" = yes; then
2656 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2657 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2658 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2661 ac_cv_prog_cc_stdc=no
2663 cat >conftest.$ac_ext <<_ACEOF
2664 #line $LINENO "configure"
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h. */
2672 #include <sys/types.h>
2673 #include <sys/stat.h>
2674 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2675 struct buf { int x; };
2676 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2677 static char *e (p, i)
2683 static char *f (char * (*g) (char **, int), char **p, ...)
2688 s = g (p, va_arg (v,int));
2692 int test (int i, double x);
2693 struct s1 {int (*f) (int a);};
2694 struct s2 {int (*f) (double a);};
2695 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2701 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2706 # Don't try gcc -ansi; that turns off useful extensions and
2707 # breaks some systems' header files.
2708 # AIX -qlanglvl=ansi
2709 # Ultrix and OSF/1 -std1
2710 # HP-UX 10.20 and later -Ae
2711 # HP-UX older versions -Aa -D_HPUX_SOURCE
2712 # SVR4 -Xc -D__EXTENSIONS__
2713 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2715 CC="$ac_save_CC $ac_arg"
2716 rm -f conftest.$ac_objext
2717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2718 (eval $ac_compile) 2>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try='test -s conftest.$ac_objext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2728 ac_cv_prog_cc_stdc=$ac_arg
2731 echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2735 rm -f conftest.$ac_objext
2737 rm -f conftest.$ac_ext conftest.$ac_objext
2742 case "x$ac_cv_prog_cc_stdc" in
2744 echo "$as_me:$LINENO: result: none needed" >&5
2745 echo "${ECHO_T}none needed" >&6 ;;
2747 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2748 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2749 CC="$CC $ac_cv_prog_cc_stdc" ;;
2752 # Some people use a C++ compiler to compile C. Since we use `exit',
2753 # in C++ we need to declare it. In case someone uses the same compiler
2754 # for both compiling C and C++ we need to have the C++ compiler decide
2755 # the declaration of exit, since it's the most demanding environment.
2756 cat >conftest.$ac_ext <<_ACEOF
2761 rm -f conftest.$ac_objext
2762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2763 (eval $ac_compile) 2>&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); } &&
2767 { ac_try='test -s conftest.$ac_objext'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; }; then
2773 for ac_declaration in \
2775 '#include <stdlib.h>' \
2776 'extern "C" void std::exit (int) throw (); using std::exit;' \
2777 'extern "C" void std::exit (int); using std::exit;' \
2778 'extern "C" void exit (int) throw ();' \
2779 'extern "C" void exit (int);' \
2782 cat >conftest.$ac_ext <<_ACEOF
2783 #line $LINENO "configure"
2786 cat confdefs.h >>conftest.$ac_ext
2787 cat >>conftest.$ac_ext <<_ACEOF
2788 /* end confdefs.h. */
2799 rm -f conftest.$ac_objext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801 (eval $ac_compile) 2>&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); } &&
2805 { ac_try='test -s conftest.$ac_objext'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2813 echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2818 rm -f conftest.$ac_objext conftest.$ac_ext
2819 cat >conftest.$ac_ext <<_ACEOF
2820 #line $LINENO "configure"
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2835 rm -f conftest.$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837 (eval $ac_compile) 2>&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } &&
2841 { ac_try='test -s conftest.$ac_objext'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2849 echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2853 rm -f conftest.$ac_objext conftest.$ac_ext
2856 if test -n "$ac_declaration"; then
2857 echo '#ifdef __cplusplus' >>confdefs.h
2858 echo $ac_declaration >>confdefs.h
2859 echo '#endif' >>confdefs.h
2863 echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2867 rm -f conftest.$ac_objext conftest.$ac_ext
2869 ac_cpp='$CPP $CPPFLAGS'
2870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2875 ac_cpp='$CPP $CPPFLAGS'
2876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2880 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2881 # On Suns, sometimes $CPP names a directory.
2882 if test -n "$CPP" && test -d "$CPP"; then
2885 if test -z "$CPP"; then
2886 if test "${ac_cv_prog_CPP+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 # Double quotes because CPP needs to be expanded
2890 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2893 for ac_c_preproc_warn_flag in '' yes
2895 # Use a header file that comes with gcc, so configuring glibc
2896 # with a fresh cross-compiler works.
2897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2898 # <limits.h> exists even on freestanding compilers.
2899 # On the NeXT, cc -E runs the code through the compiler's parser,
2900 # not just through cpp. "Syntax error" is here to catch this case.
2901 cat >conftest.$ac_ext <<_ACEOF
2902 #line $LINENO "configure"
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2909 # include <limits.h>
2911 # include <assert.h>
2915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2918 grep -v '^ *+' conftest.er1 >conftest.err
2920 cat conftest.err >&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); } >/dev/null; then
2923 if test -s conftest.err; then
2924 ac_cpp_err=$ac_c_preproc_warn_flag
2931 if test -z "$ac_cpp_err"; then
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2937 # Broken: fails on valid input.
2940 rm -f conftest.err conftest.$ac_ext
2942 # OK, works on sane cases. Now check whether non-existent headers
2943 # can be detected and how.
2944 cat >conftest.$ac_ext <<_ACEOF
2945 #line $LINENO "configure"
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h. */
2951 #include <ac_nonexistent.h>
2953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2956 grep -v '^ *+' conftest.er1 >conftest.err
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } >/dev/null; then
2961 if test -s conftest.err; then
2962 ac_cpp_err=$ac_c_preproc_warn_flag
2969 if test -z "$ac_cpp_err"; then
2970 # Broken: success on invalid input.
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 # Passes both tests.
2980 rm -f conftest.err conftest.$ac_ext
2983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2984 rm -f conftest.err conftest.$ac_ext
2985 if $ac_preproc_ok; then
2997 echo "$as_me:$LINENO: result: $CPP" >&5
2998 echo "${ECHO_T}$CPP" >&6
3000 for ac_c_preproc_warn_flag in '' yes
3002 # Use a header file that comes with gcc, so configuring glibc
3003 # with a fresh cross-compiler works.
3004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3005 # <limits.h> exists even on freestanding compilers.
3006 # On the NeXT, cc -E runs the code through the compiler's parser,
3007 # not just through cpp. "Syntax error" is here to catch this case.
3008 cat >conftest.$ac_ext <<_ACEOF
3009 #line $LINENO "configure"
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3016 # include <limits.h>
3018 # include <assert.h>
3022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3025 grep -v '^ *+' conftest.er1 >conftest.err
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } >/dev/null; then
3030 if test -s conftest.err; then
3031 ac_cpp_err=$ac_c_preproc_warn_flag
3038 if test -z "$ac_cpp_err"; then
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3044 # Broken: fails on valid input.
3047 rm -f conftest.err conftest.$ac_ext
3049 # OK, works on sane cases. Now check whether non-existent headers
3050 # can be detected and how.
3051 cat >conftest.$ac_ext <<_ACEOF
3052 #line $LINENO "configure"
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3058 #include <ac_nonexistent.h>
3060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3063 grep -v '^ *+' conftest.er1 >conftest.err
3065 cat conftest.err >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } >/dev/null; then
3068 if test -s conftest.err; then
3069 ac_cpp_err=$ac_c_preproc_warn_flag
3076 if test -z "$ac_cpp_err"; then
3077 # Broken: success on invalid input.
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3083 # Passes both tests.
3087 rm -f conftest.err conftest.$ac_ext
3090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3091 rm -f conftest.err conftest.$ac_ext
3092 if $ac_preproc_ok; then
3095 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3096 See \`config.log' for more details." >&5
3097 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&2;}
3099 { (exit 1); exit 1; }; }
3103 ac_cpp='$CPP $CPPFLAGS'
3104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109 if test "$GCC" != "yes"
3111 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3112 echo "$as_me: error: gcc required but not found" >&2;}
3113 { (exit 1); exit 1; }; }
3115 if test "$GXX" != "yes"
3117 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3118 echo "$as_me: error: g++ required but not found" >&2;}
3119 { (exit 1); exit 1; }; }
3122 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3123 if test "$gccmajor" -lt "3"
3125 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3126 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3127 { (exit 1); exit 1; }; }
3130 echo "$as_me:$LINENO: checking for GNU make" >&5
3131 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3132 if test "${_cv_gnu_make_command+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 _cv_gnu_make_command='' ;
3136 for a in "$MAKE" make gmake gnumake ; do
3137 if test -z "$a" ; then continue ; fi ;
3138 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3139 _cv_gnu_make_command=$a ;
3145 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3146 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3147 if test "x$_cv_gnu_make_command" != "x" ; then
3151 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3152 echo "${ECHO_T}\"Not found\"" >&6;
3156 if test -z "$_cv_gnu_make_command"
3158 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3159 echo "$as_me: error: GNU Make required but not found" >&2;}
3160 { (exit 1); exit 1; }; }
3164 echo "$as_me:$LINENO: checking " >&5
3165 echo $ECHO_N "checking ... $ECHO_C" >&6
3166 if test "${ac_cv_has_flex+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 for ac_prog in flex lex
3171 # Extract the first word of "$ac_prog", so it can be a program name with args.
3172 set dummy $ac_prog; ac_word=$2
3173 echo "$as_me:$LINENO: checking for $ac_word" >&5
3174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3175 if test "${ac_cv_prog_LEX+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 if test -n "$LEX"; then
3179 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_LEX="$ac_prog"
3189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 if test -n "$LEX"; then
3199 echo "$as_me:$LINENO: result: $LEX" >&5
3200 echo "${ECHO_T}$LEX" >&6
3202 echo "$as_me:$LINENO: result: no" >&5
3203 echo "${ECHO_T}no" >&6
3206 test -n "$LEX" && break
3208 test -n "$LEX" || LEX=":"
3210 if test -z "$LEXLIB"
3212 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3213 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3214 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 ac_check_lib_save_LIBS=$LIBS
3219 cat >conftest.$ac_ext <<_ACEOF
3220 #line $LINENO "configure"
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3227 /* Override any gcc2 internal prototype to avoid an error. */
3231 /* We use char because int might match the return type of a gcc2
3232 builtin and then its argument prototype would still apply. */
3242 rm -f conftest.$ac_objext conftest$ac_exeext
3243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3244 (eval $ac_link) 2>&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } &&
3248 { ac_try='test -s conftest$ac_exeext'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3254 ac_cv_lib_fl_yywrap=yes
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3259 ac_cv_lib_fl_yywrap=no
3261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3262 LIBS=$ac_check_lib_save_LIBS
3264 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3265 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3266 if test $ac_cv_lib_fl_yywrap = yes; then
3269 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3270 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3271 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 ac_check_lib_save_LIBS=$LIBS
3276 cat >conftest.$ac_ext <<_ACEOF
3277 #line $LINENO "configure"
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3284 /* Override any gcc2 internal prototype to avoid an error. */
3288 /* We use char because int might match the return type of a gcc2
3289 builtin and then its argument prototype would still apply. */
3299 rm -f conftest.$ac_objext conftest$ac_exeext
3300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3301 (eval $ac_link) 2>&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } &&
3305 { ac_try='test -s conftest$ac_exeext'
3306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; }; then
3311 ac_cv_lib_l_yywrap=yes
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3316 ac_cv_lib_l_yywrap=no
3318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3319 LIBS=$ac_check_lib_save_LIBS
3321 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3322 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3323 if test $ac_cv_lib_l_yywrap = yes; then
3331 if test "x$LEX" != "x:"; then
3332 echo "$as_me:$LINENO: checking lex output file root" >&5
3333 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3334 if test "${ac_cv_prog_lex_root+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 # The minimal lex program is just a single line: %%. But some broken lexes
3338 # (Solaris, I think it was) want two %% lines, so accommodate them.
3339 cat >conftest.l <<_ACEOF
3343 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3344 (eval $LEX conftest.l) 2>&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }
3348 if test -f lex.yy.c; then
3349 ac_cv_prog_lex_root=lex.yy
3350 elif test -f lexyy.c; then
3351 ac_cv_prog_lex_root=lexyy
3353 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3354 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3355 { (exit 1); exit 1; }; }
3358 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3359 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3361 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3363 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3364 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3365 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 # POSIX says lex can declare yytext either as a pointer or an array; the
3369 # default is implementation-dependent. Figure out which it is, since
3370 # not all implementations provide the %pointer and %array declarations.
3371 ac_cv_prog_lex_yytext_pointer=no
3372 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3374 LIBS="$LIBS $LEXLIB"
3375 cat >conftest.$ac_ext <<_ACEOF
3376 `cat $LEX_OUTPUT_ROOT.c`
3378 rm -f conftest.$ac_objext conftest$ac_exeext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3380 (eval $ac_link) 2>&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } &&
3384 { ac_try='test -s conftest$ac_exeext'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3390 ac_cv_prog_lex_yytext_pointer=yes
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3398 rm -f "${LEX_OUTPUT_ROOT}.c"
3401 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3402 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3403 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3405 cat >>confdefs.h <<\_ACEOF
3406 #define YYTEXT_POINTER 1
3414 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3415 echo "${ECHO_T}$ac_cv_has_flex" >&6
3416 if test "$LEX" != "flex"; then
3417 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3418 echo "$as_me: error: flex not found but required" >&2;}
3419 { (exit 1); exit 1; }; }
3422 echo "$as_me:$LINENO: checking " >&5
3423 echo $ECHO_N "checking ... $ECHO_C" >&6
3424 if test "${ac_cv_has_bison+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 for ac_prog in 'bison -y' byacc
3429 # Extract the first word of "$ac_prog", so it can be a program name with args.
3430 set dummy $ac_prog; ac_word=$2
3431 echo "$as_me:$LINENO: checking for $ac_word" >&5
3432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3433 if test "${ac_cv_prog_YACC+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 if test -n "$YACC"; then
3437 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3446 ac_cv_prog_YACC="$ac_prog"
3447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 YACC=$ac_cv_prog_YACC
3456 if test -n "$YACC"; then
3457 echo "$as_me:$LINENO: result: $YACC" >&5
3458 echo "${ECHO_T}$YACC" >&6
3460 echo "$as_me:$LINENO: result: no" >&5
3461 echo "${ECHO_T}no" >&6
3464 test -n "$YACC" && break
3466 test -n "$YACC" || YACC="yacc"
3470 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3471 echo "${ECHO_T}$ac_cv_has_bison" >&6
3472 if test "$YACC" != "bison -y"; then
3473 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3474 echo "$as_me: error: bison not found but required" >&2;}
3475 { (exit 1); exit 1; }; }
3481 # Check whether --enable-shared or --disable-shared was given.
3482 if test "${enable_shared+set}" = set; then
3483 enableval="$enable_shared"
3484 p=${PACKAGE-default}
3486 yes) enable_shared=yes ;;
3487 no) enable_shared=no ;;
3490 # Look at the argument we got. We use all the common list separators.
3491 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3492 for pkg in $enableval; do
3494 if test "X$pkg" = "X$p"; then
3505 # Check whether --enable-static or --disable-static was given.
3506 if test "${enable_static+set}" = set; then
3507 enableval="$enable_static"
3508 p=${PACKAGE-default}
3510 yes) enable_static=yes ;;
3511 no) enable_static=no ;;
3514 # Look at the argument we got. We use all the common list separators.
3515 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3516 for pkg in $enableval; do
3518 if test "X$pkg" = "X$p"; then
3529 # Check whether --enable-fast-install or --disable-fast-install was given.
3530 if test "${enable_fast_install+set}" = set; then
3531 enableval="$enable_fast_install"
3532 p=${PACKAGE-default}
3534 yes) enable_fast_install=yes ;;
3535 no) enable_fast_install=no ;;
3537 enable_fast_install=no
3538 # Look at the argument we got. We use all the common list separators.
3539 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3540 for pkg in $enableval; do
3542 if test "X$pkg" = "X$p"; then
3543 enable_fast_install=yes
3550 enable_fast_install=yes
3553 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3554 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3555 if test "${lt_cv_path_SED+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 # Loop through the user's path and test for sed and gsed.
3559 # Then use that list of sed's as ones to test for truncation.
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 test -z "$as_dir" && as_dir=.
3565 for lt_ac_prog in sed gsed; do
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3568 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3575 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3576 # along with /bin/sed that truncates output.
3577 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3578 test ! -f $lt_ac_sed && break
3579 cat /dev/null > conftest.in
3581 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3582 # Check for GNU sed and select it if it is found.
3583 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3584 lt_cv_path_SED=$lt_ac_sed
3588 cat conftest.in conftest.in >conftest.tmp
3589 mv conftest.tmp conftest.in
3590 cp conftest.in conftest.nl
3592 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3593 cmp -s conftest.out conftest.nl || break
3594 # 10000 chars as input seems more than enough
3595 test $lt_ac_count -gt 10 && break
3596 lt_ac_count=`expr $lt_ac_count + 1`
3597 if test $lt_ac_count -gt $lt_ac_max; then
3598 lt_ac_max=$lt_ac_count
3599 lt_cv_path_SED=$lt_ac_sed
3607 echo "$as_me:$LINENO: result: $SED" >&5
3608 echo "${ECHO_T}$SED" >&6
3610 echo "$as_me:$LINENO: checking for egrep" >&5
3611 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3612 if test "${ac_cv_prog_egrep+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3616 then ac_cv_prog_egrep='grep -E'
3617 else ac_cv_prog_egrep='egrep'
3620 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3621 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3622 EGREP=$ac_cv_prog_egrep
3626 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3627 if test "${with_gnu_ld+set}" = set; then
3628 withval="$with_gnu_ld"
3629 test "$withval" = no || with_gnu_ld=yes
3634 if test "$GCC" = yes; then
3635 # Check if gcc -print-prog-name=ld gives a path.
3636 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3637 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3640 # gcc leaves a trailing carriage return which upsets mingw
3641 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3643 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3646 # Accept absolute paths.
3648 re_direlt='/[^/][^/]*/\.\./'
3649 # Canonicalize the path of ld
3650 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3651 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3652 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3654 test -z "$LD" && LD="$ac_prog"
3657 # If it fails, then pretend we aren't using GCC.
3661 # If it is relative, then search for the first ld in PATH.
3665 elif test "$with_gnu_ld" = yes; then
3666 echo "$as_me:$LINENO: checking for GNU ld" >&5
3667 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3669 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3670 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3672 if test "${lt_cv_path_LD+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 if test -z "$LD"; then
3676 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3677 for ac_dir in $PATH; do
3679 test -z "$ac_dir" && ac_dir=.
3680 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3681 lt_cv_path_LD="$ac_dir/$ac_prog"
3682 # Check to see if the program is GNU ld. I'd rather use --version,
3683 # but apparently some GNU ld's only accept -v.
3684 # Break only if it was the GNU/non-GNU ld that we prefer.
3685 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3686 *GNU* | *'with BFD'*)
3687 test "$with_gnu_ld" != no && break
3690 test "$with_gnu_ld" != yes && break
3697 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3702 if test -n "$LD"; then
3703 echo "$as_me:$LINENO: result: $LD" >&5
3704 echo "${ECHO_T}$LD" >&6
3706 echo "$as_me:$LINENO: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3709 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3710 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3711 { (exit 1); exit 1; }; }
3712 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3713 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3714 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3718 case `"$LD" -v 2>&1 </dev/null` in
3719 *GNU* | *'with BFD'*)
3720 lt_cv_prog_gnu_ld=yes
3723 lt_cv_prog_gnu_ld=no
3727 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3728 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3729 with_gnu_ld=$lt_cv_prog_gnu_ld
3732 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3733 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3734 if test "${lt_cv_ld_reload_flag+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 lt_cv_ld_reload_flag='-r'
3739 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3740 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3741 reload_flag=$lt_cv_ld_reload_flag
3742 case $reload_flag in
3744 *) reload_flag=" $reload_flag" ;;
3746 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3748 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3749 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3750 if test "${lt_cv_path_NM+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 if test -n "$NM"; then
3754 # Let the user override the test.
3757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3758 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3760 test -z "$ac_dir" && ac_dir=.
3761 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3762 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3763 # Check to see if the nm accepts a BSD-compat flag.
3764 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3765 # nm: unknown option "B" ignored
3766 # Tru64's nm complains that /dev/null is an invalid object file
3767 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3768 */dev/null* | *'Invalid file or object type'*)
3769 lt_cv_path_NM="$tmp_nm -B"
3773 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3775 lt_cv_path_NM="$tmp_nm -p"
3779 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3780 continue # so that we can try to find one that supports BSD flags
3787 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3790 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3791 echo "${ECHO_T}$lt_cv_path_NM" >&6
3794 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3795 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3797 if test "$LN_S" = "ln -s"; then
3798 echo "$as_me:$LINENO: result: yes" >&5
3799 echo "${ECHO_T}yes" >&6
3801 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3802 echo "${ECHO_T}no, using $LN_S" >&6
3805 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3806 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3807 if test "${lt_cv_deplibs_check_method+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 lt_cv_file_magic_cmd='$MAGIC_CMD'
3811 lt_cv_file_magic_test_file=
3812 lt_cv_deplibs_check_method='unknown'
3813 # Need to set the preceding variable on all platforms that support
3814 # interlibrary dependencies.
3815 # 'none' -- dependencies not supported.
3816 # `unknown' -- same as none, but documents that we really don't know.
3817 # 'pass_all' -- all dependencies passed with no checks.
3818 # 'test_compile' -- check by making test program.
3819 # 'file_magic [[regex]]' -- check by looking for files in library path
3820 # which responds to the $file_magic_cmd with a given extended regex.
3821 # If you have `file' or equivalent on your system and you're not sure
3822 # whether `pass_all' will *always* work, you probably want this one.
3826 lt_cv_deplibs_check_method=pass_all
3830 lt_cv_deplibs_check_method=pass_all
3834 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3835 lt_cv_file_magic_cmd='/usr/bin/file -L'
3836 lt_cv_file_magic_test_file=/shlib/libc.so
3839 cygwin* | mingw* | pw32*)
3840 # win32_libid is a shell function defined in ltmain.sh
3841 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3842 lt_cv_file_magic_cmd='win32_libid'
3845 darwin* | rhapsody*)
3846 # this will be overwritten by pass_all, but leave it in just in case
3847 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3848 lt_cv_file_magic_cmd='/usr/bin/file -L'
3850 rhapsody* | darwin1.[012])
3851 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3854 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3857 lt_cv_deplibs_check_method=pass_all
3861 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3864 # Not sure whether the presence of OpenBSD here was a mistake.
3865 # Let's accept both of them until this is cleared up.
3866 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3867 lt_cv_file_magic_cmd=/usr/bin/file
3868 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3872 lt_cv_deplibs_check_method=pass_all
3877 lt_cv_deplibs_check_method=pass_all
3880 hpux10.20* | hpux11*)
3881 lt_cv_file_magic_cmd=/usr/bin/file
3884 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3885 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3888 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]'
3889 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3892 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3893 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3898 irix5* | irix6* | nonstopux*)
3900 irix5* | nonstopux*)
3901 # this will be overridden with pass_all, but let us keep it just in case
3902 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3906 *-32|*"-32 ") libmagic=32-bit;;
3907 *-n32|*"-n32 ") libmagic=N32;;
3908 *-64|*"-64 ") libmagic=64-bit;;
3909 *) libmagic=never-match;;
3911 # this will be overridden with pass_all, but let us keep it just in case
3912 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3915 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3916 lt_cv_deplibs_check_method=pass_all
3919 # This must be Linux ELF.
3922 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3923 lt_cv_deplibs_check_method=pass_all ;;
3925 # glibc up to 2.1.1 does not perform some relocations on ARM
3926 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3928 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3932 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3940 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3941 lt_cv_file_magic_cmd=/usr/bin/file
3942 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3946 lt_cv_deplibs_check_method=unknown
3950 lt_cv_file_magic_cmd=/usr/bin/file
3951 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3952 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3953 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3955 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3959 osf3* | osf4* | osf5*)
3960 # this will be overridden with pass_all, but let us keep it just in case
3961 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3962 lt_cv_file_magic_test_file=/shlib/libc.so
3963 lt_cv_deplibs_check_method=pass_all
3967 lt_cv_deplibs_check_method=pass_all
3971 lt_cv_deplibs_check_method=pass_all
3972 lt_cv_file_magic_test_file=/lib/libc.so
3975 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3976 case $host_vendor in
3978 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]'
3979 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3982 lt_cv_deplibs_check_method=pass_all
3985 lt_cv_file_magic_cmd='/bin/file'
3986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3989 lt_cv_file_magic_cmd='/bin/file'
3990 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3991 lt_cv_file_magic_test_file=/lib/libc.so
3994 lt_cv_deplibs_check_method=pass_all
3999 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4000 lt_cv_deplibs_check_method=pass_all
4005 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4006 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4007 file_magic_cmd=$lt_cv_file_magic_cmd
4008 deplibs_check_method=$lt_cv_deplibs_check_method
4009 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4014 # If no C compiler was specified, use CC.
4017 # Allow CC to be a program name with arguments.
4020 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4021 if test "${enable_libtool_lock+set}" = set; then
4022 enableval="$enable_libtool_lock"
4025 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4027 # Some flags need to be propagated to the compiler or linker for good
4031 # Find out which ABI we are using.
4032 echo 'int i;' > conftest.$ac_ext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034 (eval $ac_compile) 2>&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; then
4038 case `/usr/bin/file conftest.$ac_objext` in
4050 # Find out which ABI we are using.
4051 echo '#line 4051 "configure"' > conftest.$ac_ext
4052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4053 (eval $ac_compile) 2>&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; then
4057 if test "$lt_cv_prog_gnu_ld" = yes; then
4058 case `/usr/bin/file conftest.$ac_objext` in
4060 LD="${LD-ld} -melf32bsmip"
4063 LD="${LD-ld} -melf32bmipn32"
4066 LD="${LD-ld} -melf64bmip"
4070 case `/usr/bin/file conftest.$ac_objext` in
4086 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4087 # Find out which ABI we are using.
4088 echo 'int i;' > conftest.$ac_ext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4090 (eval $ac_compile) 2>&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; then
4094 case "`/usr/bin/file conftest.o`" in
4098 LD="${LD-ld} -m elf_i386"
4101 LD="${LD-ld} -m elf32ppclinux"
4104 LD="${LD-ld} -m elf_s390"
4107 LD="${LD-ld} -m elf32_sparc"
4114 LD="${LD-ld} -m elf_x86_64"
4116 ppc*-*linux*|powerpc*-*linux*)
4117 LD="${LD-ld} -m elf64ppc"
4120 LD="${LD-ld} -m elf64_s390"
4123 LD="${LD-ld} -m elf64_sparc"
4133 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4134 SAVE_CFLAGS="$CFLAGS"
4135 CFLAGS="$CFLAGS -belf"
4136 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4137 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4138 if test "${lt_cv_cc_needs_belf+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 ac_cpp='$CPP $CPPFLAGS'
4143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147 cat >conftest.$ac_ext <<_ACEOF
4148 #line $LINENO "configure"
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4163 rm -f conftest.$ac_objext conftest$ac_exeext
4164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4165 (eval $ac_link) 2>&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try='test -s conftest$ac_exeext'
4170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4175 lt_cv_cc_needs_belf=yes
4177 echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4180 lt_cv_cc_needs_belf=no
4182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4184 ac_cpp='$CPP $CPPFLAGS'
4185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4191 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4192 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4193 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4194 CFLAGS="$SAVE_CFLAGS"
4200 need_locks="$enable_libtool_lock"
4204 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4205 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4206 if test "${ac_cv_header_stdc+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 cat >conftest.$ac_ext <<_ACEOF
4210 #line $LINENO "configure"
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4229 rm -f conftest.$ac_objext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4231 (eval $ac_compile) 2>&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } &&
4235 { ac_try='test -s conftest.$ac_objext'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4241 ac_cv_header_stdc=yes
4243 echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4246 ac_cv_header_stdc=no
4248 rm -f conftest.$ac_objext conftest.$ac_ext
4250 if test $ac_cv_header_stdc = yes; then
4251 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4252 cat >conftest.$ac_ext <<_ACEOF
4253 #line $LINENO "configure"
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4263 $EGREP "memchr" >/dev/null 2>&1; then
4266 ac_cv_header_stdc=no
4272 if test $ac_cv_header_stdc = yes; then
4273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4274 cat >conftest.$ac_ext <<_ACEOF
4275 #line $LINENO "configure"
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4285 $EGREP "free" >/dev/null 2>&1; then
4288 ac_cv_header_stdc=no
4294 if test $ac_cv_header_stdc = yes; then
4295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4296 if test "$cross_compiling" = yes; then
4299 cat >conftest.$ac_ext <<_ACEOF
4300 #line $LINENO "configure"
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4307 #if ((' ' & 0x0FF) == 0x020)
4308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4311 # define ISLOWER(c) \
4312 (('a' <= (c) && (c) <= 'i') \
4313 || ('j' <= (c) && (c) <= 'r') \
4314 || ('s' <= (c) && (c) <= 'z'))
4315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4323 for (i = 0; i < 256; i++)
4324 if (XOR (islower (i), ISLOWER (i))
4325 || toupper (i) != TOUPPER (i))
4330 rm -f conftest$ac_exeext
4331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4332 (eval $ac_link) 2>&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4343 echo "$as_me: program exited with status $ac_status" >&5
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4348 ac_cv_header_stdc=no
4350 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4354 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4355 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4356 if test $ac_cv_header_stdc = yes; then
4358 cat >>confdefs.h <<\_ACEOF
4359 #define STDC_HEADERS 1
4364 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4374 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4375 inttypes.h stdint.h unistd.h
4377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4378 echo "$as_me:$LINENO: checking for $ac_header" >&5
4379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 cat >conftest.$ac_ext <<_ACEOF
4384 #line $LINENO "configure"
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4390 $ac_includes_default
4392 #include <$ac_header>
4394 rm -f conftest.$ac_objext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396 (eval $ac_compile) 2>&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try='test -s conftest.$ac_objext'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4406 eval "$as_ac_Header=yes"
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4411 eval "$as_ac_Header=no"
4413 rm -f conftest.$ac_objext conftest.$ac_ext
4415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4418 cat >>confdefs.h <<_ACEOF
4419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4428 for ac_header in dlfcn.h
4430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4432 echo "$as_me:$LINENO: checking for $ac_header" >&5
4433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4440 # Is the header compilable?
4441 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4443 cat >conftest.$ac_ext <<_ACEOF
4444 #line $LINENO "configure"
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 $ac_includes_default
4451 #include <$ac_header>
4453 rm -f conftest.$ac_objext
4454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455 (eval $ac_compile) 2>&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try='test -s conftest.$ac_objext'
4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; }; then
4465 ac_header_compiler=yes
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4470 ac_header_compiler=no
4472 rm -f conftest.$ac_objext conftest.$ac_ext
4473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4474 echo "${ECHO_T}$ac_header_compiler" >&6
4476 # Is the header present?
4477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4479 cat >conftest.$ac_ext <<_ACEOF
4480 #line $LINENO "configure"
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486 #include <$ac_header>
4488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4491 grep -v '^ *+' conftest.er1 >conftest.err
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } >/dev/null; then
4496 if test -s conftest.err; then
4497 ac_cpp_err=$ac_c_preproc_warn_flag
4504 if test -z "$ac_cpp_err"; then
4505 ac_header_preproc=yes
4507 echo "$as_me: failed program was:" >&5
4508 sed 's/^/| /' conftest.$ac_ext >&5
4510 ac_header_preproc=no
4512 rm -f conftest.err conftest.$ac_ext
4513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4514 echo "${ECHO_T}$ac_header_preproc" >&6
4516 # So? What about this header?
4517 case $ac_header_compiler:$ac_header_preproc in
4519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4525 ## ------------------------------------ ##
4526 ## Report this to bug-autoconf@gnu.org. ##
4527 ## ------------------------------------ ##
4530 sed "s/^/$as_me: WARNING: /" >&2
4533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4541 ## ------------------------------------ ##
4542 ## Report this to bug-autoconf@gnu.org. ##
4543 ## ------------------------------------ ##
4546 sed "s/^/$as_me: WARNING: /" >&2
4549 echo "$as_me:$LINENO: checking for $ac_header" >&5
4550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 eval "$as_ac_Header=$ac_header_preproc"
4556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4561 cat >>confdefs.h <<_ACEOF
4562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4570 ac_cpp='$CXXCPP $CPPFLAGS'
4571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4574 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4575 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4576 if test -z "$CXXCPP"; then
4577 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 # Double quotes because CXXCPP needs to be expanded
4581 for CXXCPP in "$CXX -E" "/lib/cpp"
4584 for ac_cxx_preproc_warn_flag in '' yes
4586 # Use a header file that comes with gcc, so configuring glibc
4587 # with a fresh cross-compiler works.
4588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4589 # <limits.h> exists even on freestanding compilers.
4590 # On the NeXT, cc -E runs the code through the compiler's parser,
4591 # not just through cpp. "Syntax error" is here to catch this case.
4592 cat >conftest.$ac_ext <<_ACEOF
4593 #line $LINENO "configure"
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4600 # include <limits.h>
4602 # include <assert.h>
4606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4609 grep -v '^ *+' conftest.er1 >conftest.err
4611 cat conftest.err >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } >/dev/null; then
4614 if test -s conftest.err; then
4615 ac_cpp_err=$ac_cxx_preproc_warn_flag
4622 if test -z "$ac_cpp_err"; then
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4628 # Broken: fails on valid input.
4631 rm -f conftest.err conftest.$ac_ext
4633 # OK, works on sane cases. Now check whether non-existent headers
4634 # can be detected and how.
4635 cat >conftest.$ac_ext <<_ACEOF
4636 #line $LINENO "configure"
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4642 #include <ac_nonexistent.h>
4644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4647 grep -v '^ *+' conftest.er1 >conftest.err
4649 cat conftest.err >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } >/dev/null; then
4652 if test -s conftest.err; then
4653 ac_cpp_err=$ac_cxx_preproc_warn_flag
4660 if test -z "$ac_cpp_err"; then
4661 # Broken: success on invalid input.
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4667 # Passes both tests.
4671 rm -f conftest.err conftest.$ac_ext
4674 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4675 rm -f conftest.err conftest.$ac_ext
4676 if $ac_preproc_ok; then
4681 ac_cv_prog_CXXCPP=$CXXCPP
4684 CXXCPP=$ac_cv_prog_CXXCPP
4686 ac_cv_prog_CXXCPP=$CXXCPP
4688 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4689 echo "${ECHO_T}$CXXCPP" >&6
4691 for ac_cxx_preproc_warn_flag in '' yes
4693 # Use a header file that comes with gcc, so configuring glibc
4694 # with a fresh cross-compiler works.
4695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4696 # <limits.h> exists even on freestanding compilers.
4697 # On the NeXT, cc -E runs the code through the compiler's parser,
4698 # not just through cpp. "Syntax error" is here to catch this case.
4699 cat >conftest.$ac_ext <<_ACEOF
4700 #line $LINENO "configure"
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4707 # include <limits.h>
4709 # include <assert.h>
4713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4716 grep -v '^ *+' conftest.er1 >conftest.err
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } >/dev/null; then
4721 if test -s conftest.err; then
4722 ac_cpp_err=$ac_cxx_preproc_warn_flag
4729 if test -z "$ac_cpp_err"; then
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4735 # Broken: fails on valid input.
4738 rm -f conftest.err conftest.$ac_ext
4740 # OK, works on sane cases. Now check whether non-existent headers
4741 # can be detected and how.
4742 cat >conftest.$ac_ext <<_ACEOF
4743 #line $LINENO "configure"
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4749 #include <ac_nonexistent.h>
4751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4754 grep -v '^ *+' conftest.er1 >conftest.err
4756 cat conftest.err >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } >/dev/null; then
4759 if test -s conftest.err; then
4760 ac_cpp_err=$ac_cxx_preproc_warn_flag
4767 if test -z "$ac_cpp_err"; then
4768 # Broken: success on invalid input.
4771 echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4774 # Passes both tests.
4778 rm -f conftest.err conftest.$ac_ext
4781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4782 rm -f conftest.err conftest.$ac_ext
4783 if $ac_preproc_ok; then
4786 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4787 See \`config.log' for more details." >&5
4788 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4789 See \`config.log' for more details." >&2;}
4790 { (exit 1); exit 1; }; }
4794 ac_cpp='$CXXCPP $CPPFLAGS'
4795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4801 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4802 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4804 if test -n "$ac_tool_prefix"; then
4805 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4809 echo "$as_me:$LINENO: checking for $ac_word" >&5
4810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4811 if test "${ac_cv_prog_F77+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 if test -n "$F77"; then
4815 ac_cv_prog_F77="$F77" # Let the user override the test.
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4824 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 if test -n "$F77"; then
4835 echo "$as_me:$LINENO: result: $F77" >&5
4836 echo "${ECHO_T}$F77" >&6
4838 echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6
4842 test -n "$F77" && break
4845 if test -z "$F77"; then
4847 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4849 # Extract the first word of "$ac_prog", so it can be a program name with args.
4850 set dummy $ac_prog; ac_word=$2
4851 echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 if test -n "$ac_ct_F77"; then
4857 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866 ac_cv_prog_ac_ct_F77="$ac_prog"
4867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4876 if test -n "$ac_ct_F77"; then
4877 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4878 echo "${ECHO_T}$ac_ct_F77" >&6
4880 echo "$as_me:$LINENO: result: no" >&5
4881 echo "${ECHO_T}no" >&6
4884 test -n "$ac_ct_F77" && break
4891 # Provide some information about the compiler.
4892 echo "$as_me:4892:" \
4893 "checking for Fortran 77 compiler version" >&5
4894 ac_compiler=`set X $ac_compile; echo $2`
4895 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4896 (eval $ac_compiler --version </dev/null >&5) 2>&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }
4900 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4901 (eval $ac_compiler -v </dev/null >&5) 2>&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }
4905 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4906 (eval $ac_compiler -V </dev/null >&5) 2>&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }
4911 # If we don't use `.F' as extension, the preprocessor is not run on the
4915 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4916 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4917 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 cat >conftest.$ac_ext <<_ACEOF
4928 rm -f conftest.$ac_objext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4930 (eval $ac_compile) 2>&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } &&
4934 { ac_try='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4947 rm -f conftest.$ac_objext conftest.$ac_ext
4948 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4951 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4952 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4954 G77=`test $ac_compiler_gnu = yes && echo yes`
4955 ac_test_FFLAGS=${FFLAGS+set}
4956 ac_save_FFLAGS=$FFLAGS
4958 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4959 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4960 if test "${ac_cv_prog_f77_g+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 cat >conftest.$ac_ext <<_ACEOF
4969 rm -f conftest.$ac_objext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4971 (eval $ac_compile) 2>&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } &&
4975 { ac_try='test -s conftest.$ac_objext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 ac_cv_prog_f77_g=yes
4983 echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4988 rm -f conftest.$ac_objext conftest.$ac_ext
4991 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4992 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4993 if test "$ac_test_FFLAGS" = set; then
4994 FFLAGS=$ac_save_FFLAGS
4995 elif test $ac_cv_prog_f77_g = yes; then
4996 if test "$G77" = yes; then
5002 if test "$G77" = yes; then
5009 ac_cpp='$CPP $CPPFLAGS'
5010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5016 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5018 # find the maximum length of command line arguments
5019 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5020 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5021 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 # On DJGPP, this test can blow up pretty badly due to problems in libc
5030 # (any single argument exceeding 2000 bytes causes a buffer overrun
5031 # during glob expansion). Even if it were fixed, the result of this
5032 # check would be larger than it should be.
5033 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5037 # Under GNU Hurd, this test is not required because there is
5038 # no limit to the length of command line arguments.
5039 # Libtool will interpret -1 as no limit whatsoever
5040 lt_cv_sys_max_cmd_len=-1;
5044 # On Win9x/ME, this test blows up -- it succeeds, but takes
5045 # about 5 minutes as the teststring grows exponentially.
5046 # Worse, since 9x/ME are not pre-emptively multitasking,
5047 # you end up with a "frozen" computer, even though with patience
5048 # the test eventually succeeds (with a max line length of 256k).
5049 # Instead, let's just punt: use the minimum linelength reported by
5050 # all of the supported platforms: 8192 (on NT/2K/XP).
5051 lt_cv_sys_max_cmd_len=8192;
5055 # If test is not a shell built-in, we'll probably end up computing a
5056 # maximum length that is only half of the actual maximum length, but
5058 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5059 = "XX$testring") >/dev/null 2>&1 &&
5060 new_result=`expr "X$testring" : ".*" 2>&1` &&
5061 lt_cv_sys_max_cmd_len=$new_result &&
5062 test $i != 17 # 1/2 MB should be enough
5065 testring=$testring$testring
5068 # Add a significant safety factor because C++ compilers can tack on massive
5069 # amounts of additional arguments before passing them to the linker.
5070 # It appears as though 1/2 is a usable value.
5071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5077 if test -n $lt_cv_sys_max_cmd_len ; then
5078 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5079 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5081 echo "$as_me:$LINENO: result: none" >&5
5082 echo "${ECHO_T}none" >&6
5088 # Check for command to grab the raw symbol name followed by C symbol from nm.
5089 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5090 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5091 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 # These are sane defaults that work on at least a few old systems.
5096 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5098 # Character class describing NM global symbol codes.
5099 symcode='[BCDEGRST]'
5101 # Regexp to match symbols that can be accessed directly from C.
5102 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5104 # Transform the above into a raw symbol and a C symbol.
5105 symxfrm='\1 \2\3 \3'
5107 # Transform an extracted symbol line into a proper C declaration
5108 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5110 # Transform an extracted symbol line into symbol name and symbol address
5111 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'"
5113 # Define system-specific variables.
5118 cygwin* | mingw* | pw32*)
5119 symcode='[ABCDGISTW]'
5121 hpux*) # Its linker distinguishes data from code symbols
5122 if test "$host_cpu" = ia64; then
5123 symcode='[ABCDEGRST]'
5125 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5126 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'"
5129 symcode='[BCDEGRST]'
5132 symcode='[BCDEGQRST]'
5142 # Handle CRLF in mingw tool chain
5146 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5150 # If we're using GNU nm, then use its standard symbol codes.
5151 case `$NM -V 2>&1` in
5152 *GNU* | *'with BFD'*)
5153 symcode='[ABCDGISTW]' ;;
5156 # Try without a prefix undercore, then with it.
5157 for ac_symprfx in "" "_"; do
5159 # Write the raw and C identifiers.
5160 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5162 # Check to see that the pipe works correctly.
5166 cat > conftest.$ac_ext <<EOF
5171 void nm_test_func(){}
5175 int main(){nm_test_var='a';nm_test_func();return(0);}
5178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5179 (eval $ac_compile) 2>&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); }; then
5183 # Now try to grab the symbols.
5185 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5186 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } && test -s "$nlist"; then
5190 # Try sorting and uniquifying the output.
5191 if sort "$nlist" | uniq > "$nlist"T; then
5192 mv -f "$nlist"T "$nlist"
5197 # Make sure that we snagged all the symbols we need.
5198 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5199 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5200 cat <<EOF > conftest.$ac_ext
5206 # Now generate the symbol file.
5207 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5209 cat <<EOF >> conftest.$ac_ext
5210 #if defined (__STDC__) && __STDC__
5211 # define lt_ptr_t void *
5213 # define lt_ptr_t char *
5217 /* The mapping between symbol names and symbols. */
5222 lt_preloaded_symbols[] =
5225 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5226 cat <<\EOF >> conftest.$ac_ext
5234 # Now try linking the two files.
5235 mv conftest.$ac_objext conftstm.$ac_objext
5236 lt_save_LIBS="$LIBS"
5237 lt_save_CFLAGS="$CFLAGS"
5238 LIBS="conftstm.$ac_objext"
5239 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5241 (eval $ac_link) 2>&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5247 LIBS="$lt_save_LIBS"
5248 CFLAGS="$lt_save_CFLAGS"
5250 echo "cannot find nm_test_func in $nlist" >&5
5253 echo "cannot find nm_test_var in $nlist" >&5
5256 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5259 echo "$progname: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5262 rm -f conftest* conftst*
5264 # Do not use the global_symbol_pipe unless it works.
5265 if test "$pipe_works" = yes; then
5268 lt_cv_sys_global_symbol_pipe=
5274 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5275 lt_cv_sys_global_symbol_to_cdecl=
5277 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5278 echo "$as_me:$LINENO: result: failed" >&5
5279 echo "${ECHO_T}failed" >&6
5281 echo "$as_me:$LINENO: result: ok" >&5
5282 echo "${ECHO_T}ok" >&6
5285 echo "$as_me:$LINENO: checking for objdir" >&5
5286 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5287 if test "${lt_cv_objdir+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 rm -f .libs 2>/dev/null
5291 mkdir .libs 2>/dev/null
5292 if test -d .libs; then
5295 # MS-DOS does not allow filenames that begin with a dot.
5298 rmdir .libs 2>/dev/null
5300 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5301 echo "${ECHO_T}$lt_cv_objdir" >&6
5302 objdir=$lt_cv_objdir
5310 # AIX sometimes has problems with the GCC collect2 program. For some
5311 # reason, if we set the COLLECT_NAMES environment variable, the problems
5312 # vanish in a puff of smoke.
5313 if test "X${COLLECT_NAMES+set}" != Xset; then
5315 export COLLECT_NAMES
5320 # Sed substitution that helps us do robust quoting. It backslashifies
5321 # metacharacters that are still active within double-quoted strings.
5322 Xsed='sed -e s/^X//'
5323 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5325 # Same as above, but do not quote variable references.
5326 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5328 # Sed substitution to delay expansion of an escaped shell variable in a
5329 # double_quote_subst'ed string.
5330 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5332 # Sed substitution to avoid accidental globbing in evaled expressions
5333 no_glob_subst='s/\*/\\\*/g'
5340 can_build_shared=yes
5342 # All known linkers require a `.a' archive for static linking (except M$VC,
5343 # which needs '.lib').
5345 ltmain="$ac_aux_dir/ltmain.sh"
5346 ofile="$default_ofile"
5347 with_gnu_ld="$lt_cv_prog_gnu_ld"
5349 if test -n "$ac_tool_prefix"; then
5350 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5351 set dummy ${ac_tool_prefix}ar; ac_word=$2
5352 echo "$as_me:$LINENO: checking for $ac_word" >&5
5353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5354 if test "${ac_cv_prog_AR+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 if test -n "$AR"; then
5358 ac_cv_prog_AR="$AR" # Let the user override the test.
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367 ac_cv_prog_AR="${ac_tool_prefix}ar"
5368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5377 if test -n "$AR"; then
5378 echo "$as_me:$LINENO: result: $AR" >&5
5379 echo "${ECHO_T}$AR" >&6
5381 echo "$as_me:$LINENO: result: no" >&5
5382 echo "${ECHO_T}no" >&6
5386 if test -z "$ac_cv_prog_AR"; then
5388 # Extract the first word of "ar", so it can be a program name with args.
5389 set dummy ar; ac_word=$2
5390 echo "$as_me:$LINENO: checking for $ac_word" >&5
5391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5392 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 if test -n "$ac_ct_AR"; then
5396 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405 ac_cv_prog_ac_ct_AR="ar"
5406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5415 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5416 if test -n "$ac_ct_AR"; then
5417 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5418 echo "${ECHO_T}$ac_ct_AR" >&6
5420 echo "$as_me:$LINENO: result: no" >&5
5421 echo "${ECHO_T}no" >&6
5429 if test -n "$ac_tool_prefix"; then
5430 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5431 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5432 echo "$as_me:$LINENO: checking for $ac_word" >&5
5433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5434 if test "${ac_cv_prog_RANLIB+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 if test -n "$RANLIB"; then
5438 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 RANLIB=$ac_cv_prog_RANLIB
5457 if test -n "$RANLIB"; then
5458 echo "$as_me:$LINENO: result: $RANLIB" >&5
5459 echo "${ECHO_T}$RANLIB" >&6
5461 echo "$as_me:$LINENO: result: no" >&5
5462 echo "${ECHO_T}no" >&6
5466 if test -z "$ac_cv_prog_RANLIB"; then
5467 ac_ct_RANLIB=$RANLIB
5468 # Extract the first word of "ranlib", so it can be a program name with args.
5469 set dummy ranlib; ac_word=$2
5470 echo "$as_me:$LINENO: checking for $ac_word" >&5
5471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5472 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 if test -n "$ac_ct_RANLIB"; then
5476 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_ac_ct_RANLIB="ranlib"
5486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5495 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5496 if test -n "$ac_ct_RANLIB"; then
5497 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5498 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5500 echo "$as_me:$LINENO: result: no" >&5
5501 echo "${ECHO_T}no" >&6
5504 RANLIB=$ac_ct_RANLIB
5506 RANLIB="$ac_cv_prog_RANLIB"
5509 if test -n "$ac_tool_prefix"; then
5510 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5511 set dummy ${ac_tool_prefix}strip; ac_word=$2
5512 echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 if test "${ac_cv_prog_STRIP+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 if test -n "$STRIP"; then
5518 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5527 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 STRIP=$ac_cv_prog_STRIP
5537 if test -n "$STRIP"; then
5538 echo "$as_me:$LINENO: result: $STRIP" >&5
5539 echo "${ECHO_T}$STRIP" >&6
5541 echo "$as_me:$LINENO: result: no" >&5
5542 echo "${ECHO_T}no" >&6
5546 if test -z "$ac_cv_prog_STRIP"; then
5548 # Extract the first word of "strip", so it can be a program name with args.
5549 set dummy strip; ac_word=$2
5550 echo "$as_me:$LINENO: checking for $ac_word" >&5
5551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5552 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 if test -n "$ac_ct_STRIP"; then
5556 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5565 ac_cv_prog_ac_ct_STRIP="strip"
5566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5575 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5576 if test -n "$ac_ct_STRIP"; then
5577 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5578 echo "${ECHO_T}$ac_ct_STRIP" >&6
5580 echo "$as_me:$LINENO: result: no" >&5
5581 echo "${ECHO_T}no" >&6
5586 STRIP="$ac_cv_prog_STRIP"
5591 old_CFLAGS="$CFLAGS"
5593 # Set sane defaults for various variables
5594 test -z "$AR" && AR=ar
5595 test -z "$AR_FLAGS" && AR_FLAGS=cru
5596 test -z "$AS" && AS=as
5597 test -z "$CC" && CC=cc
5598 test -z "$LTCC" && LTCC=$CC
5599 test -z "$DLLTOOL" && DLLTOOL=dlltool
5600 test -z "$LD" && LD=ld
5601 test -z "$LN_S" && LN_S="ln -s"
5602 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5603 test -z "$NM" && NM=nm
5604 test -z "$SED" && SED=sed
5605 test -z "$OBJDUMP" && OBJDUMP=objdump
5606 test -z "$RANLIB" && RANLIB=:
5607 test -z "$STRIP" && STRIP=:
5608 test -z "$ac_objext" && ac_objext=o
5610 # Determine commands to create old-style static archives.
5611 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5612 old_postinstall_cmds='chmod 644 $oldlib'
5613 old_postuninstall_cmds=
5615 if test -n "$RANLIB"; then
5618 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5621 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5624 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5627 # Only perform the check for file, if the check method requires it
5628 case $deplibs_check_method in
5630 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5631 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5632 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5633 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5641 lt_save_MAGIC_CMD="$MAGIC_CMD"
5642 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5643 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5644 for ac_dir in $ac_dummy; do
5646 test -z "$ac_dir" && ac_dir=.
5647 if test -f $ac_dir/${ac_tool_prefix}file; then
5648 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5649 if test -n "$file_magic_test_file"; then
5650 case $deplibs_check_method in
5652 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5653 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5654 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5655 $EGREP "$file_magic_regex" > /dev/null; then
5660 *** Warning: the command libtool uses to detect shared libraries,
5661 *** $file_magic_cmd, produces output that libtool cannot recognize.
5662 *** The result is that libtool may fail to recognize shared libraries
5663 *** as such. This will affect the creation of libtool libraries that
5664 *** depend on shared libraries, but programs linked with such libtool
5665 *** libraries will work regardless of this problem. Nevertheless, you
5666 *** may want to report the problem to your system manager and/or to
5667 *** bug-libtool@gnu.org
5677 MAGIC_CMD="$lt_save_MAGIC_CMD"
5682 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5683 if test -n "$MAGIC_CMD"; then
5684 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5685 echo "${ECHO_T}$MAGIC_CMD" >&6
5687 echo "$as_me:$LINENO: result: no" >&5
5688 echo "${ECHO_T}no" >&6
5691 if test -z "$lt_cv_path_MAGIC_CMD"; then
5692 if test -n "$ac_tool_prefix"; then
5693 echo "$as_me:$LINENO: checking for file" >&5
5694 echo $ECHO_N "checking for file... $ECHO_C" >&6
5695 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5703 lt_save_MAGIC_CMD="$MAGIC_CMD"
5704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5705 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5706 for ac_dir in $ac_dummy; do
5708 test -z "$ac_dir" && ac_dir=.
5709 if test -f $ac_dir/file; then
5710 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5711 if test -n "$file_magic_test_file"; then
5712 case $deplibs_check_method in
5714 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5715 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5716 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5717 $EGREP "$file_magic_regex" > /dev/null; then
5722 *** Warning: the command libtool uses to detect shared libraries,
5723 *** $file_magic_cmd, produces output that libtool cannot recognize.
5724 *** The result is that libtool may fail to recognize shared libraries
5725 *** as such. This will affect the creation of libtool libraries that
5726 *** depend on shared libraries, but programs linked with such libtool
5727 *** libraries will work regardless of this problem. Nevertheless, you
5728 *** may want to report the problem to your system manager and/or to
5729 *** bug-libtool@gnu.org
5739 MAGIC_CMD="$lt_save_MAGIC_CMD"
5744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5745 if test -n "$MAGIC_CMD"; then
5746 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5747 echo "${ECHO_T}$MAGIC_CMD" >&6
5749 echo "$as_me:$LINENO: result: no" >&5
5750 echo "${ECHO_T}no" >&6
5765 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5766 if test "${enable_libtool_lock+set}" = set; then
5767 enableval="$enable_libtool_lock"
5770 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5773 # Check whether --with-pic or --without-pic was given.
5774 if test "${with_pic+set}" = set; then
5780 test -z "$pic_mode" && pic_mode=default
5782 # Use C for the default configuration in the libtool script
5786 ac_cpp='$CPP $CPPFLAGS'
5787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5792 # Source file extension for C test sources.
5795 # Object file extension for compiled C test sources.
5799 # Code to be used in simple compile tests
5800 lt_simple_compile_test_code="int some_variable = 0;\n"
5802 # Code to be used in simple link tests
5803 lt_simple_link_test_code='int main(){return(0);}\n'
5806 # If no C compiler was specified, use CC.
5809 # Allow CC to be a program name with arguments.
5814 # Check for any special shared library compilation flags.
5817 if test "$GCC" = no; then
5820 lt_prog_cc_shlib='-belf'
5824 if test -n "$lt_prog_cc_shlib"; then
5825 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5826 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5827 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5829 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5830 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5831 lt_cv_prog_cc_can_build_shared=no
5837 # Check to make sure the static flag actually works.
5839 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5840 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5841 if test "${lt_prog_compiler_static_works+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 lt_prog_compiler_static_works=no
5845 save_LDFLAGS="$LDFLAGS"
5846 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5847 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5848 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5849 # The compiler can only warn and ignore the option if not recognized
5850 # So say no if there are warnings
5851 if test -s conftest.err; then
5852 # Append any errors to the config.log.
5853 cat conftest.err 1>&5
5855 lt_prog_compiler_static_works=yes
5859 LDFLAGS="$save_LDFLAGS"
5862 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5863 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5865 if test x"$lt_prog_compiler_static_works" = xyes; then
5868 lt_prog_compiler_static=
5874 lt_prog_compiler_no_builtin_flag=
5876 if test "$GCC" = yes; then
5877 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5879 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5880 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5881 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 lt_cv_prog_compiler_rtti_exceptions=no
5885 ac_outfile=conftest.$ac_objext
5886 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5887 lt_compiler_flag="-fno-rtti -fno-exceptions"
5888 # Insert the option either (1) after the last *FLAGS variable, or
5889 # (2) before a word containing "conftest.", or (3) at the end.
5890 # Note that $ac_compile itself does not contain backslashes and begins
5891 # with a dollar sign (not a hyphen), so the echo should work correctly.
5892 # The option is referenced via a variable to avoid confusing sed.
5893 lt_compile=`echo "$ac_compile" | $SED \
5894 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5896 -e 's:$: $lt_compiler_flag:'`
5897 (eval echo "\"\$as_me:5897: $lt_compile\"" >&5)
5898 (eval "$lt_compile" 2>conftest.err)
5900 cat conftest.err >&5
5901 echo "$as_me:5901: \$? = $ac_status" >&5
5902 if (exit $ac_status) && test -s "$ac_outfile"; then
5903 # The compiler can only warn and ignore the option if not recognized
5904 # So say no if there are warnings
5905 if test ! -s conftest.err; then
5906 lt_cv_prog_compiler_rtti_exceptions=yes
5912 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5913 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5915 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5916 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5923 lt_prog_compiler_wl=
5924 lt_prog_compiler_pic=
5925 lt_prog_compiler_static=
5927 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5928 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5930 if test "$GCC" = yes; then
5931 lt_prog_compiler_wl='-Wl,'
5932 lt_prog_compiler_static='-static'
5936 # All AIX code is PIC.
5937 if test "$host_cpu" = ia64; then
5938 # AIX 5 now supports IA64 processor
5939 lt_prog_compiler_static='-Bstatic'
5944 # FIXME: we need at least 68020 code to build shared libraries, but
5945 # adding the `-m68020' flag to GCC prevents building anything better,
5947 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5950 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5951 # PIC is the default for these OSes.
5954 mingw* | pw32* | os2*)
5955 # This hack is so that the source file can tell whether it is being
5956 # built for inclusion in a dll (and should export symbols for example).
5957 lt_prog_compiler_pic='-DDLL_EXPORT'
5960 darwin* | rhapsody*)
5961 # PIC is the default on this platform
5962 # Common symbols not allowed in MH_DYLIB files
5963 lt_prog_compiler_pic='-fno-common'
5967 # Just because we use GCC doesn't mean we suddenly get shared libraries
5968 # on systems that don't support them.
5969 lt_prog_compiler_can_build_shared=no
5974 if test -d /usr/nec; then
5975 lt_prog_compiler_pic=-Kconform_pic
5980 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5987 lt_prog_compiler_pic='-fPIC'
5993 lt_prog_compiler_pic='-fPIC'
5997 # PORTME Check for flag to pass linker flags through the system compiler.
6000 lt_prog_compiler_wl='-Wl,'
6001 if test "$host_cpu" = ia64; then
6002 # AIX 5 now supports IA64 processor
6003 lt_prog_compiler_static='-Bstatic'
6005 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6009 mingw* | pw32* | os2*)
6010 # This hack is so that the source file can tell whether it is being
6011 # built for inclusion in a dll (and should export symbols for example).
6012 lt_prog_compiler_pic='-DDLL_EXPORT'
6015 hpux9* | hpux10* | hpux11*)
6016 lt_prog_compiler_wl='-Wl,'
6017 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6024 lt_prog_compiler_pic='+Z'
6027 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6028 lt_prog_compiler_static='${wl}-a ${wl}archive'
6031 irix5* | irix6* | nonstopux*)
6032 lt_prog_compiler_wl='-Wl,'
6033 # PIC (with -KPIC) is the default.
6034 lt_prog_compiler_static='-non_shared'
6038 lt_prog_compiler_pic='-KPIC'
6039 lt_prog_compiler_static='-Bstatic'
6045 lt_prog_compiler_wl='-Wl,'
6046 lt_prog_compiler_pic='-KPIC'
6047 lt_prog_compiler_static='-static'
6050 lt_prog_compiler_wl='-Wl,'
6051 # All Alpha code is PIC.
6052 lt_prog_compiler_static='-non_shared'
6057 osf3* | osf4* | osf5*)
6058 lt_prog_compiler_wl='-Wl,'
6059 # All OSF/1 code is PIC.
6060 lt_prog_compiler_static='-non_shared'
6064 lt_prog_compiler_pic='-Kpic'
6065 lt_prog_compiler_static='-dn'
6069 lt_prog_compiler_wl='-Wl,'
6070 lt_prog_compiler_pic='-KPIC'
6071 lt_prog_compiler_static='-Bstatic'
6075 lt_prog_compiler_wl='-Qoption ld '
6076 lt_prog_compiler_pic='-PIC'
6077 lt_prog_compiler_static='-Bstatic'
6080 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6081 lt_prog_compiler_wl='-Wl,'
6082 lt_prog_compiler_pic='-KPIC'
6083 lt_prog_compiler_static='-Bstatic'
6087 if test -d /usr/nec ;then
6088 lt_prog_compiler_pic='-Kconform_pic'
6089 lt_prog_compiler_static='-Bstatic'
6094 lt_prog_compiler_pic='-pic'
6095 lt_prog_compiler_static='-Bstatic'
6099 lt_prog_compiler_can_build_shared=no
6104 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6105 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6108 # Check to make sure the PIC flag actually works.
6110 if test -n "$lt_prog_compiler_pic"; then
6111 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6112 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6113 if test "${lt_prog_compiler_pic_works+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 lt_prog_compiler_pic_works=no
6117 ac_outfile=conftest.$ac_objext
6118 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6119 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6120 # Insert the option either (1) after the last *FLAGS variable, or
6121 # (2) before a word containing "conftest.", or (3) at the end.
6122 # Note that $ac_compile itself does not contain backslashes and begins
6123 # with a dollar sign (not a hyphen), so the echo should work correctly.
6124 # The option is referenced via a variable to avoid confusing sed.
6125 lt_compile=`echo "$ac_compile" | $SED \
6126 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6128 -e 's:$: $lt_compiler_flag:'`
6129 (eval echo "\"\$as_me:6129: $lt_compile\"" >&5)
6130 (eval "$lt_compile" 2>conftest.err)
6132 cat conftest.err >&5
6133 echo "$as_me:6133: \$? = $ac_status" >&5
6134 if (exit $ac_status) && test -s "$ac_outfile"; then
6135 # The compiler can only warn and ignore the option if not recognized
6136 # So say no if there are warnings
6137 if test ! -s conftest.err; then
6138 lt_prog_compiler_pic_works=yes
6144 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6145 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6147 if test x"$lt_prog_compiler_pic_works" = xyes; then
6148 case $lt_prog_compiler_pic in
6150 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6153 lt_prog_compiler_pic=
6154 lt_prog_compiler_can_build_shared=no
6159 # For platforms which do not support PIC, -DPIC is meaningless:
6161 lt_prog_compiler_pic=
6164 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6168 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6169 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6170 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 lt_cv_prog_compiler_c_o=no
6174 $rm -r conftest 2>/dev/null
6178 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6180 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6181 # that will create temporary files in the current directory regardless of
6182 # the output directory. Thus, making CWD read-only will cause this test
6183 # to fail, enabling locking or at least warning the user not to do parallel
6187 lt_compiler_flag="-o out/conftest2.$ac_objext"
6188 # Insert the option either (1) after the last *FLAGS variable, or
6189 # (2) before a word containing "conftest.", or (3) at the end.
6190 # Note that $ac_compile itself does not contain backslashes and begins
6191 # with a dollar sign (not a hyphen), so the echo should work correctly.
6192 lt_compile=`echo "$ac_compile" | $SED \
6193 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6195 -e 's:$: $lt_compiler_flag:'`
6196 (eval echo "\"\$as_me:6196: $lt_compile\"" >&5)
6197 (eval "$lt_compile" 2>out/conftest.err)
6199 cat out/conftest.err >&5
6200 echo "$as_me:6200: \$? = $ac_status" >&5
6201 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6203 # The compiler can only warn and ignore the option if not recognized
6204 # So say no if there are warnings
6205 if test ! -s out/conftest.err; then
6206 lt_cv_prog_compiler_c_o=yes
6217 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6218 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6221 hard_links="nottested"
6222 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6223 # do not overwrite the value of need_locks provided by the user
6224 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6225 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6228 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6230 ln conftest.a conftest.b 2>&5 || hard_links=no
6231 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6232 echo "$as_me:$LINENO: result: $hard_links" >&5
6233 echo "${ECHO_T}$hard_links" >&6
6234 if test "$hard_links" = no; then
6235 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6236 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6243 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6244 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6247 allow_undefined_flag=
6248 enable_shared_with_static_runtimes=no
6250 archive_expsym_cmds=
6251 old_archive_From_new_cmds=
6252 old_archive_from_expsyms_cmds=
6253 export_dynamic_flag_spec=
6254 whole_archive_flag_spec=
6255 thread_safe_flag_spec=
6256 hardcode_libdir_flag_spec=
6257 hardcode_libdir_flag_spec_ld=
6258 hardcode_libdir_separator=
6261 hardcode_shlibpath_var=unsupported
6262 link_all_deplibs=unknown
6263 hardcode_automatic=no
6266 always_export_symbols=no
6267 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6268 # include_expsyms should be a list of space-separated symbols to be *always*
6269 # included in the symbol list
6271 # exclude_expsyms can be an extended regexp of symbols to exclude
6272 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6273 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6274 # as well as any symbol that contains `d'.
6275 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6276 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6277 # platforms (ab)use it in PIC code, but their linkers get confused if
6278 # the symbol is explicitly referenced. Since portable code cannot
6279 # rely on this symbol name, it's probably fine to never include it in
6280 # preloaded symbol tables.
6281 extract_expsyms_cmds=
6284 cygwin* | mingw* | pw32*)
6285 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6286 # When not using gcc, we currently assume that we are using
6287 # Microsoft Visual C++.
6288 if test "$GCC" != yes; then
6298 if test "$with_gnu_ld" = yes; then
6299 # If archive_cmds runs LD, not CC, wlarc should be empty
6302 # See if GNU ld supports shared libraries.
6304 aix3* | aix4* | aix5*)
6305 # On AIX/PPC, the GNU linker is very broken
6306 if test "$host_cpu" != ia64; then
6310 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6311 *** to be unable to reliably create shared libraries on AIX.
6312 *** Therefore, libtool is disabling shared libraries support. If you
6313 *** really care for shared libraries, you may want to modify your PATH
6314 *** so that a non-GNU linker is found, and then restart.
6321 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)'
6322 hardcode_libdir_flag_spec='-L$libdir'
6323 hardcode_minus_L=yes
6325 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6326 # that the semantics of dynamic libraries on AmigaOS, at least up
6327 # to version 4, is to share data among multiple programs linked
6328 # with the same dynamic library. Since this doesn't match the
6329 # behavior of shared libraries on other platforms, we can't use
6335 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6336 allow_undefined_flag=unsupported
6337 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6338 # support --undefined. This deserves some investigation. FIXME
6339 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6345 cygwin* | mingw* | pw32*)
6346 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6347 # as there is no search path for DLLs.
6348 hardcode_libdir_flag_spec='-L$libdir'
6349 allow_undefined_flag=unsupported
6350 always_export_symbols=no
6351 enable_shared_with_static_runtimes=yes
6352 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6354 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6356 # If the export-symbols file already is a .def file (1st line
6357 # is EXPORTS), use it as is; otherwise, prepend...
6358 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6359 cp $export_symbols $output_objdir/$soname.def;
6361 echo EXPORTS > $output_objdir/$soname.def;
6362 cat $export_symbols >> $output_objdir/$soname.def;
6364 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6371 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6372 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6376 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6381 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6385 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6386 *** create shared libraries on Solaris systems. Therefore, libtool
6387 *** is disabling shared libraries support. We urge you to upgrade GNU
6388 *** binutils to release 2.9.1 or newer. Another option is to modify
6389 *** your PATH or compiler configuration so that the native linker is
6390 *** used, and then restart.
6393 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6394 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6395 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6402 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6405 hardcode_shlibpath_var=no
6409 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6411 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6418 if test "$ld_shlibs" = yes; then
6419 runpath_var=LD_RUN_PATH
6420 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6421 export_dynamic_flag_spec='${wl}--export-dynamic'
6422 # ancient GNU ld didn't support --whole-archive et. al.
6423 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6424 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6426 whole_archive_flag_spec=
6430 # PORTME fill in a description of your system's linker (not GNU ld)
6433 allow_undefined_flag=unsupported
6434 always_export_symbols=yes
6435 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'
6436 # Note: this linker hardcodes the directories in LIBPATH if there
6437 # are no directories specified by -L.
6438 hardcode_minus_L=yes
6439 if test "$GCC" = yes && test -z "$link_static_flag"; then
6440 # Neither direct hardcoding nor static linking is supported with a
6442 hardcode_direct=unsupported
6447 if test "$host_cpu" = ia64; then
6448 # On IA64, the linker does run time linking by default, so we don't
6449 # have to do anything special.
6450 aix_use_runtimelinking=no
6451 exp_sym_flag='-Bexport'
6454 # If we're using GNU nm, then we don't want the "-C" option.
6455 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6456 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6457 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'
6459 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'
6461 aix_use_runtimelinking=no
6463 # Test if we are trying to use run time linking or normal
6464 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6465 # need to do runtime linking.
6466 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6467 for ld_flag in $LDFLAGS; do
6468 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6469 aix_use_runtimelinking=yes
6475 exp_sym_flag='-bexport'
6476 no_entry_flag='-bnoentry'
6479 # When large executables or shared objects are built, AIX ld can
6480 # have problems creating the table of contents. If linking a library
6481 # or program results in "error TOC overflow" add -mminimal-toc to
6482 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6483 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6487 hardcode_libdir_separator=':'
6488 link_all_deplibs=yes
6490 if test "$GCC" = yes; then
6491 case $host_os in aix4.012|aix4.012.*)
6492 # We only want to do this on AIX 4.2 and lower, the check
6493 # below for broken collect2 doesn't work under 4.3+
6494 collect2name=`${CC} -print-prog-name=collect2`
6495 if test -f "$collect2name" && \
6496 strings "$collect2name" | grep resolve_lib_name >/dev/null
6498 # We have reworked collect2
6501 # We have old collect2
6502 hardcode_direct=unsupported
6503 # It fails to find uninstalled libraries when the uninstalled
6504 # path is not listed in the libpath. Setting hardcode_minus_L
6505 # to unsupported forces relinking
6506 hardcode_minus_L=yes
6507 hardcode_libdir_flag_spec='-L$libdir'
6508 hardcode_libdir_separator=
6511 shared_flag='-shared'
6514 if test "$host_cpu" = ia64; then
6515 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6516 # chokes on -Wl,-G. The following line is correct:
6519 if test "$aix_use_runtimelinking" = yes; then
6520 shared_flag='${wl}-G'
6522 shared_flag='${wl}-bM:SRE'
6527 # It seems that -bexpall does not export symbols beginning with
6528 # underscore (_), so it is better to generate a list of symbols to export.
6529 always_export_symbols=yes
6530 if test "$aix_use_runtimelinking" = yes; then
6531 # Warning - without using the other runtime loading flags (-brtl),
6532 # -berok will link without error, but may produce a broken library.
6533 allow_undefined_flag='-berok'
6534 # Determine the default libpath from the value encoded in an empty executable.
6535 cat >conftest.$ac_ext <<_ACEOF
6536 #line $LINENO "configure"
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6551 rm -f conftest.$ac_objext conftest$ac_exeext
6552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6553 (eval $ac_link) 2>&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
6557 { ac_try='test -s conftest$ac_exeext'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; }; then
6564 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6566 # Check for a 64-bit object if we didn't find anything.
6567 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; }
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6575 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6577 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6578 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"
6580 if test "$host_cpu" = ia64; then
6581 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6582 allow_undefined_flag="-z nodefs"
6583 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"
6585 # Determine the default libpath from the value encoded in an empty executable.
6586 cat >conftest.$ac_ext <<_ACEOF
6587 #line $LINENO "configure"
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6602 rm -f conftest.$ac_objext conftest$ac_exeext
6603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6604 (eval $ac_link) 2>&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } &&
6608 { ac_try='test -s conftest$ac_exeext'
6609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; }; then
6615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6617 # Check for a 64-bit object if we didn't find anything.
6618 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; }
6621 echo "$as_me: failed program was:" >&5
6622 sed 's/^/| /' conftest.$ac_ext >&5
6625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6626 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6628 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6629 # Warning - without using the other run time loading flags,
6630 # -berok will link without error, but may produce a broken library.
6631 no_undefined_flag=' ${wl}-bernotok'
6632 allow_undefined_flag=' ${wl}-berok'
6633 # -bexpall does not export symbols beginning with underscore (_)
6634 always_export_symbols=yes
6635 # Exported symbols can be pulled into shared objects from archives
6636 whole_archive_flag_spec=' '
6637 archive_cmds_need_lc=yes
6638 # This is similar to how AIX traditionally builds it's shared libraries.
6639 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'
6645 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)'
6646 hardcode_libdir_flag_spec='-L$libdir'
6647 hardcode_minus_L=yes
6648 # see comment about different semantics on the GNU ld section
6653 export_dynamic_flag_spec=-rdynamic
6656 cygwin* | mingw* | pw32*)
6657 # When not using gcc, we currently assume that we are using
6658 # Microsoft Visual C++.
6659 # hardcode_libdir_flag_spec is actually meaningless, as there is
6660 # no search path for DLLs.
6661 hardcode_libdir_flag_spec=' '
6662 allow_undefined_flag=unsupported
6663 # Tell ltmain to make .lib files, not .a files.
6665 # Tell ltmain to make .dll files, not .so files.
6667 # FIXME: Setting linknames here is a bad hack.
6668 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6669 # The linker will automatically build a .lib file if we build a DLL.
6670 old_archive_From_new_cmds='true'
6671 # FIXME: Should let the user specify the lib program.
6672 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6673 fix_srcfile_path='`cygpath -w "$srcfile"`'
6674 enable_shared_with_static_runtimes=yes
6677 darwin* | rhapsody*)
6678 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6679 archive_cmds_need_lc=no
6681 rhapsody* | darwin1.[012])
6682 allow_undefined_flag='-undefined suppress'
6685 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6688 # FIXME: Relying on posixy $() will cause problems for
6689 # cross-compilation, but unfortunately the echo tests do not
6690 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6691 # `"' quotes if we put them in here... so don't!
6692 lt_int_apple_cc_single_mod=no
6693 output_verbose_link_cmd='echo'
6694 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6695 lt_int_apple_cc_single_mod=yes
6697 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6698 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6700 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'
6702 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6703 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6704 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6705 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}'
6707 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}'
6709 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}'
6711 hardcode_automatic=yes
6712 hardcode_shlibpath_var=unsupported
6713 whole_archive_flag_spec='-all_load $convenience'
6714 link_all_deplibs=yes
6719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6720 hardcode_libdir_flag_spec='-L$libdir'
6721 hardcode_shlibpath_var=no
6728 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6729 # support. Future versions do this automatically, but an explicit c++rt0.o
6730 # does not break anything, and helps significantly (at the cost of a little
6733 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6734 hardcode_libdir_flag_spec='-R$libdir'
6736 hardcode_shlibpath_var=no
6739 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6743 hardcode_minus_L=yes
6744 hardcode_shlibpath_var=no
6747 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6749 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6750 hardcode_libdir_flag_spec='-R$libdir'
6752 hardcode_shlibpath_var=no
6756 if test "$GCC" = yes; then
6757 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'
6759 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'
6761 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6762 hardcode_libdir_separator=:
6765 # hardcode_minus_L: Not really in the search PATH,
6766 # but as the default location of the library.
6767 hardcode_minus_L=yes
6768 export_dynamic_flag_spec='${wl}-E'
6772 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6775 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6778 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6784 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6787 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6791 if test "$with_gnu_ld" = no; then
6794 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6795 hardcode_libdir_flag_spec_ld='+b $libdir'
6796 hardcode_libdir_separator=:
6798 hardcode_shlibpath_var=no
6801 hardcode_libdir_flag_spec='-L$libdir'
6803 hardcode_shlibpath_var=no
6805 # hardcode_minus_L: Not really in the search PATH,
6806 # but as the default location of the library.
6807 hardcode_minus_L=yes
6810 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6811 hardcode_libdir_separator=:
6813 export_dynamic_flag_spec='${wl}-E'
6815 # hardcode_minus_L: Not really in the search PATH,
6816 # but as the default location of the library.
6817 hardcode_minus_L=yes
6823 irix5* | irix6* | nonstopux*)
6824 if test "$GCC" = yes; then
6825 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'
6827 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'
6828 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6830 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6831 hardcode_libdir_separator=:
6832 link_all_deplibs=yes
6836 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6839 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6841 hardcode_libdir_flag_spec='-R$libdir'
6843 hardcode_shlibpath_var=no
6847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6850 hardcode_libdir_separator=:
6851 hardcode_shlibpath_var=no
6856 hardcode_shlibpath_var=no
6857 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6858 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6859 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6860 export_dynamic_flag_spec='${wl}-E'
6863 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6864 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6865 hardcode_libdir_flag_spec='-R$libdir'
6868 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6869 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6876 hardcode_libdir_flag_spec='-L$libdir'
6877 hardcode_minus_L=yes
6878 allow_undefined_flag=unsupported
6879 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'
6880 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6884 if test "$GCC" = yes; then
6885 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6886 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'
6888 allow_undefined_flag=' -expect_unresolved \*'
6889 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'
6891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6892 hardcode_libdir_separator=:
6895 osf4* | osf5*) # as osf3* with the addition of -msym flag
6896 if test "$GCC" = yes; then
6897 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6898 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'
6899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6901 allow_undefined_flag=' -expect_unresolved \*'
6902 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'
6903 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6904 $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'
6906 # Both c and cxx compiler support -rpath directly
6907 hardcode_libdir_flag_spec='-rpath $libdir'
6909 hardcode_libdir_separator=:
6913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6914 hardcode_shlibpath_var=no
6915 export_dynamic_flag_spec='${wl}-Bexport'
6916 runpath_var=LD_RUN_PATH
6917 hardcode_runpath_var=yes
6921 no_undefined_flag=' -z text'
6922 if test "$GCC" = yes; then
6923 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6924 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6925 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6927 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6928 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6929 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6931 hardcode_libdir_flag_spec='-R$libdir'
6932 hardcode_shlibpath_var=no
6934 solaris2.[0-5] | solaris2.[0-5].*) ;;
6935 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6936 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6938 link_all_deplibs=yes
6942 if test "x$host_vendor" = xsequent; then
6943 # Use $CC to link under sequent, because it throws in some extra .o
6944 # files that make .init and .fini sections work.
6945 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6947 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6949 hardcode_libdir_flag_spec='-L$libdir'
6951 hardcode_minus_L=yes
6952 hardcode_shlibpath_var=no
6956 case $host_vendor in
6958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6959 hardcode_direct=yes # is this really true???
6962 ## LD is ld it makes a PLAMLIB
6963 ## CC just makes a GrossModule.
6964 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6965 reload_cmds='$CC -r -o $output$reload_objs'
6969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6970 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6973 runpath_var='LD_RUN_PATH'
6974 hardcode_shlibpath_var=no
6978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6979 hardcode_shlibpath_var=no
6980 export_dynamic_flag_spec='-Bexport'
6984 if test -d /usr/nec; then
6985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6986 hardcode_shlibpath_var=no
6987 runpath_var=LD_RUN_PATH
6988 hardcode_runpath_var=yes
6994 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6997 hardcode_shlibpath_var=no
6998 hardcode_runpath_var=yes
6999 runpath_var=LD_RUN_PATH
7002 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7003 no_undefined_flag='${wl}-z ${wl}text'
7004 if test "$GCC" = yes; then
7005 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7007 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7009 runpath_var='LD_RUN_PATH'
7010 hardcode_shlibpath_var=no
7014 no_undefined_flag=' -z text'
7015 # $CC -shared without GNU ld will not create a library from C++
7016 # object files and a static libstdc++, better avoid it by now
7017 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7018 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7019 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7020 hardcode_libdir_flag_spec=
7021 hardcode_shlibpath_var=no
7022 runpath_var='LD_RUN_PATH'
7026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7027 hardcode_libdir_flag_spec='-L$libdir'
7028 hardcode_shlibpath_var=no
7037 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7038 echo "${ECHO_T}$ld_shlibs" >&6
7039 test "$ld_shlibs" = no && can_build_shared=no
7041 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7042 if test "$GCC" = yes; then
7043 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7047 # Do we need to explicitly link libc?
7049 case "x$archive_cmds_need_lc" in
7051 # Assume -lc should be added
7052 archive_cmds_need_lc=yes
7054 if test "$enable_shared" = yes && test "$GCC" = yes; then
7055 case $archive_cmds in
7057 # FIXME: we may have to deal with multi-command sequences.
7060 # Test whether the compiler implicitly links with -lc since on some
7061 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7062 # to ld, don't add -lc before -lgcc.
7063 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7064 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7066 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069 (eval $ac_compile) 2>&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } 2>conftest.err; then
7075 libobjs=conftest.$ac_objext
7077 wl=$lt_prog_compiler_wl
7083 lt_save_allow_undefined_flag=$allow_undefined_flag
7084 allow_undefined_flag=
7085 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7086 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }
7091 archive_cmds_need_lc=no
7093 archive_cmds_need_lc=yes
7095 allow_undefined_flag=$lt_save_allow_undefined_flag
7097 cat conftest.err 1>&5
7100 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7101 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7108 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7109 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7111 if test -n "$hardcode_libdir_flag_spec" || \
7112 test -n "$runpath_var " || \
7113 test "X$hardcode_automatic"="Xyes" ; then
7115 # We can hardcode non-existant directories.
7116 if test "$hardcode_direct" != no &&
7117 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7118 # have to relink, otherwise we might link with an installed library
7119 # when we should be linking with a yet-to-be-installed one
7120 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7121 test "$hardcode_minus_L" != no; then
7122 # Linking always hardcodes the temporary library directory.
7123 hardcode_action=relink
7125 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7126 hardcode_action=immediate
7129 # We cannot hardcode anything, or else we can only hardcode existing
7131 hardcode_action=unsupported
7133 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7134 echo "${ECHO_T}$hardcode_action" >&6
7136 if test "$hardcode_action" = relink; then
7137 # Fast installation is not supported
7138 enable_fast_install=no
7139 elif test "$shlibpath_overrides_runpath" = yes ||
7140 test "$enable_shared" = no; then
7141 # Fast installation is not necessary
7142 enable_fast_install=needless
7147 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7148 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7149 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7150 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7151 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7152 echo "$as_me:$LINENO: result: yes" >&5
7153 echo "${ECHO_T}yes" >&6
7155 # FIXME - insert some real tests, host_os isn't really good enough
7158 if test -n "$STRIP" ; then
7159 striplib="$STRIP -x"
7160 echo "$as_me:$LINENO: result: yes" >&5
7161 echo "${ECHO_T}yes" >&6
7163 echo "$as_me:$LINENO: result: no" >&5
7164 echo "${ECHO_T}no" >&6
7168 echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6
7174 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7175 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7177 libname_spec='lib$name'
7185 shlibpath_overrides_runpath=unknown
7187 dynamic_linker="$host_os ld.so"
7188 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7189 if test "$GCC" = yes; then
7190 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7191 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7192 # if the path contains ";" then we assume it to be the separator
7193 # otherwise default to the standard path separator (i.e. ":") - it is
7194 # assumed that no part of a normal pathname contains ";" but that should
7195 # okay in the real world where ";" in dirpaths is itself problematic.
7196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7201 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7203 need_lib_prefix=unknown
7204 hardcode_into_libs=no
7206 # when you set need_version to no, make sure it does not cause -set_version
7207 # flags to be left without arguments
7208 need_version=unknown
7213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7214 shlibpath_var=LIBPATH
7216 # AIX 3 has no versioning support, so we append a major version to the name.
7217 soname_spec='${libname}${release}${shared_ext}$major'
7224 hardcode_into_libs=yes
7225 if test "$host_cpu" = ia64; then
7226 # AIX 5 supports IA64
7227 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7228 shlibpath_var=LD_LIBRARY_PATH
7230 # With GCC up to 2.95.x, collect2 would create an import file
7231 # for dependence libraries. The import file would start with
7232 # the line `#! .'. This would cause the generated library to
7233 # depend on `.', always an invalid library. This was fixed in
7234 # development snapshots of GCC prior to 3.0.
7236 aix4 | aix4.[01] | aix4.[01].*)
7237 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7239 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7246 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7247 # soname into executable. Probably we can add versioning support to
7248 # collect2, so additional links can be useful in future.
7249 if test "$aix_use_runtimelinking" = yes; then
7250 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7251 # instead of lib<name>.a to let people know that these are not
7252 # typical AIX shared libraries.
7253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7255 # We preserve .a as extension for shared libraries through AIX4.2
7256 # and later when we are not doing run time linking.
7257 library_names_spec='${libname}${release}.a $libname.a'
7258 soname_spec='${libname}${release}${shared_ext}$major'
7260 shlibpath_var=LIBPATH
7265 library_names_spec='$libname.ixlibrary $libname.a'
7266 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7267 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'
7271 library_names_spec='${libname}${shared_ext}'
7272 dynamic_linker="$host_os ld.so"
7273 shlibpath_var=LIBRARY_PATH
7279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7280 soname_spec='${libname}${release}${shared_ext}$major'
7281 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7282 shlibpath_var=LD_LIBRARY_PATH
7283 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7284 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7285 # the default ld.so.conf also contains /usr/contrib/lib and
7286 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7287 # libtool to hard-code these into programs
7290 cygwin* | mingw* | pw32*)
7291 version_type=windows
7296 case $GCC,$host_os in
7297 yes,cygwin* | yes,mingw* | yes,pw32*)
7298 library_names_spec='$libname.dll.a'
7299 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7300 postinstall_cmds='base_file=`basename \${file}`~
7301 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7302 dldir=$destdir/`dirname \$dlpath`~
7303 test -d \$dldir || mkdir -p \$dldir~
7304 $install_prog $dir/$dlname \$dldir/$dlname'
7305 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7306 dlpath=$dir/\$dldll~
7308 shlibpath_overrides_runpath=yes
7312 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7313 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7314 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7317 # MinGW DLLs use traditional 'lib' prefix
7318 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7319 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7320 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7321 # It is most probably a Windows format PATH printed by
7322 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7323 # path with ; separators, and with drive letters. We can handle the
7324 # drive letters (cygwin fileutils understands them), so leave them,
7325 # especially as we might pass files found there to a mingw objdump,
7326 # which wouldn't understand a cygwinified path. Ahh.
7327 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7333 # pw32 DLLs use 'pw' prefix rather than 'lib'
7334 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7340 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7343 dynamic_linker='Win32 ld.exe'
7344 # FIXME: first we should search . and the directory the executable is in
7348 darwin* | rhapsody*)
7349 dynamic_linker="$host_os dyld"
7353 # FIXME: Relying on posixy $() will cause problems for
7354 # cross-compilation, but unfortunately the echo tests do not
7355 # yet detect zsh echo's removal of \ escapes.
7356 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7357 soname_spec='${libname}${release}${major}$shared_ext'
7358 shlibpath_overrides_runpath=yes
7359 shlibpath_var=DYLD_LIBRARY_PATH
7360 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7361 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7362 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7363 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"`
7365 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7373 soname_spec='${libname}${release}${shared_ext}$major'
7374 shlibpath_var=LD_LIBRARY_PATH
7382 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7383 version_type=freebsd-$objformat
7384 case $version_type in
7386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7391 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7395 shlibpath_var=LD_LIBRARY_PATH
7398 shlibpath_overrides_runpath=yes
7400 freebsd3.01* | freebsdelf3.01*)
7401 shlibpath_overrides_runpath=yes
7402 hardcode_into_libs=yes
7405 shlibpath_overrides_runpath=no
7406 hardcode_into_libs=yes
7415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7416 soname_spec='${libname}${release}${shared_ext}$major'
7417 shlibpath_var=LD_LIBRARY_PATH
7418 hardcode_into_libs=yes
7421 hpux9* | hpux10* | hpux11*)
7422 # Give a soname corresponding to the major version so that dld.sl refuses to
7423 # link against other versions.
7430 hardcode_into_libs=yes
7431 dynamic_linker="$host_os dld.so"
7432 shlibpath_var=LD_LIBRARY_PATH
7433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7435 soname_spec='${libname}${release}${shared_ext}$major'
7436 if test "X$HPUX_IA64_MODE" = X32; then
7437 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7439 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7441 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7445 hardcode_into_libs=yes
7446 dynamic_linker="$host_os dld.sl"
7447 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7448 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7450 soname_spec='${libname}${release}${shared_ext}$major'
7451 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7452 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7456 dynamic_linker="$host_os dld.sl"
7457 shlibpath_var=SHLIB_PATH
7458 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7460 soname_spec='${libname}${release}${shared_ext}$major'
7463 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7464 postinstall_cmds='chmod 555 $lib'
7467 irix5* | irix6* | nonstopux*)
7469 nonstopux*) version_type=nonstopux ;;
7471 if test "$lt_cv_prog_gnu_ld" = yes; then
7479 soname_spec='${libname}${release}${shared_ext}$major'
7480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7482 irix5* | nonstopux*)
7486 case $LD in # libtool.m4 will add one of these switches to LD
7487 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7488 libsuff= shlibsuff= libmagic=32-bit;;
7489 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7490 libsuff=32 shlibsuff=N32 libmagic=N32;;
7491 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7492 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7493 *) libsuff= shlibsuff= libmagic=never-match;;
7497 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7498 shlibpath_overrides_runpath=no
7499 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7500 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7501 hardcode_into_libs=yes
7504 # No shared lib support for Linux oldld, aout, or coff.
7505 linux*oldld* | linux*aout* | linux*coff*)
7509 # This must be Linux ELF.
7514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7515 soname_spec='${libname}${release}${shared_ext}$major'
7516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7517 shlibpath_var=LD_LIBRARY_PATH
7518 shlibpath_overrides_runpath=no
7519 # This implies no fast_install, which is unacceptable.
7520 # Some rework will be needed to allow for fast_install
7521 # before this can be enabled.
7522 hardcode_into_libs=yes
7524 # We used to test for /lib/ld.so.1 and disable shared libraries on
7525 # powerpc, because MkLinux only supported shared libraries with the
7526 # GNU dynamic linker. Since this was broken with cross compilers,
7527 # most powerpc-linux boxes support dynamic linking these days and
7528 # people can always --disable-shared, the test was removed, and we
7529 # assume the GNU/Linux dynamic linker is in use.
7530 dynamic_linker='GNU/Linux ld.so'
7537 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7540 dynamic_linker='NetBSD (a.out) ld.so'
7542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7543 soname_spec='${libname}${release}${shared_ext}$major'
7544 dynamic_linker='NetBSD ld.elf_so'
7546 shlibpath_var=LD_LIBRARY_PATH
7547 shlibpath_overrides_runpath=yes
7548 hardcode_into_libs=yes
7553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7554 shlibpath_var=LD_LIBRARY_PATH
7555 shlibpath_overrides_runpath=yes
7562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7563 soname_spec='${libname}${release}${shared_ext}$major'
7564 shlibpath_var=LD_LIBRARY_PATH
7565 shlibpath_overrides_runpath=yes
7572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7574 shlibpath_var=LD_LIBRARY_PATH
7575 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7577 openbsd2.[89] | openbsd2.[89].*)
7578 shlibpath_overrides_runpath=no
7581 shlibpath_overrides_runpath=yes
7585 shlibpath_overrides_runpath=yes
7590 libname_spec='$name'
7593 library_names_spec='$libname${shared_ext} $libname.a'
7594 dynamic_linker='OS/2 ld.exe'
7595 shlibpath_var=LIBPATH
7598 osf3* | osf4* | osf5*)
7602 soname_spec='${libname}${release}${shared_ext}$major'
7603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7604 shlibpath_var=LD_LIBRARY_PATH
7605 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7606 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7611 soname_spec='${libname}${release}${shared_ext}$major'
7612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7613 shlibpath_var=LD_LIBRARY_PATH
7620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7621 soname_spec='${libname}${release}${shared_ext}$major'
7622 shlibpath_var=LD_LIBRARY_PATH
7623 shlibpath_overrides_runpath=yes
7624 hardcode_into_libs=yes
7625 # ldd complains unless libraries are executable
7626 postinstall_cmds='chmod +x $lib'
7631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7632 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7633 shlibpath_var=LD_LIBRARY_PATH
7634 shlibpath_overrides_runpath=yes
7635 if test "$with_gnu_ld" = yes; then
7641 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7644 soname_spec='${libname}${release}${shared_ext}$major'
7645 shlibpath_var=LD_LIBRARY_PATH
7646 case $host_vendor in
7648 shlibpath_overrides_runpath=no
7650 export_dynamic_flag_spec='${wl}-Blargedynsym'
7651 runpath_var=LD_RUN_PATH
7659 shlibpath_overrides_runpath=no
7660 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7666 if test -d /usr/nec ;then
7668 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7669 soname_spec='$libname${shared_ext}.$major'
7670 shlibpath_var=LD_LIBRARY_PATH
7676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7677 soname_spec='${libname}${release}${shared_ext}$major'
7678 shlibpath_var=LD_LIBRARY_PATH
7685 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7686 echo "${ECHO_T}$dynamic_linker" >&6
7687 test "$dynamic_linker" = no && can_build_shared=no
7689 if test "x$enable_dlopen" != xyes; then
7690 enable_dlopen=unknown
7691 enable_dlopen_self=unknown
7692 enable_dlopen_self_static=unknown
7699 lt_cv_dlopen="load_add_on"
7701 lt_cv_dlopen_self=yes
7705 lt_cv_dlopen="LoadLibrary"
7710 lt_cv_dlopen="dlopen"
7715 # if libdl is installed we need to link against it
7716 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7717 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7718 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 ac_check_lib_save_LIBS=$LIBS
7723 cat >conftest.$ac_ext <<_ACEOF
7724 #line $LINENO "configure"
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7731 /* Override any gcc2 internal prototype to avoid an error. */
7735 /* We use char because int might match the return type of a gcc2
7736 builtin and then its argument prototype would still apply. */
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748 (eval $ac_link) 2>&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } &&
7752 { ac_try='test -s conftest$ac_exeext'
7753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; }; then
7758 ac_cv_lib_dl_dlopen=yes
7760 echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7763 ac_cv_lib_dl_dlopen=no
7765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7766 LIBS=$ac_check_lib_save_LIBS
7768 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7769 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7770 if test $ac_cv_lib_dl_dlopen = yes; then
7771 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7776 lt_cv_dlopen_self=yes
7783 echo "$as_me:$LINENO: checking for shl_load" >&5
7784 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7785 if test "${ac_cv_func_shl_load+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7788 cat >conftest.$ac_ext <<_ACEOF
7789 #line $LINENO "configure"
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7795 /* System header to define __stub macros and hopefully few prototypes,
7796 which can conflict with char shl_load (); below.
7797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7798 <limits.h> exists even on freestanding compilers. */
7800 # include <limits.h>
7802 # include <assert.h>
7804 /* Override any gcc2 internal prototype to avoid an error. */
7809 /* We use char because int might match the return type of a gcc2
7810 builtin and then its argument prototype would still apply. */
7812 /* The GNU C library defines this for functions which it implements
7813 to always fail with ENOSYS. Some functions are actually named
7814 something starting with __ and the normal name is an alias. */
7815 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7818 char (*f) () = shl_load;
7827 return f != shl_load;
7832 rm -f conftest.$ac_objext conftest$ac_exeext
7833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7834 (eval $ac_link) 2>&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } &&
7838 { ac_try='test -s conftest$ac_exeext'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7844 ac_cv_func_shl_load=yes
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7849 ac_cv_func_shl_load=no
7851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7853 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7854 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7855 if test $ac_cv_func_shl_load = yes; then
7856 lt_cv_dlopen="shl_load"
7858 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7859 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7860 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
7863 ac_check_lib_save_LIBS=$LIBS
7865 cat >conftest.$ac_ext <<_ACEOF
7866 #line $LINENO "configure"
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7873 /* Override any gcc2 internal prototype to avoid an error. */
7877 /* We use char because int might match the return type of a gcc2
7878 builtin and then its argument prototype would still apply. */
7888 rm -f conftest.$ac_objext conftest$ac_exeext
7889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7890 (eval $ac_link) 2>&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } &&
7894 { ac_try='test -s conftest$ac_exeext'
7895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 ac_cv_lib_dld_shl_load=yes
7902 echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.$ac_ext >&5
7905 ac_cv_lib_dld_shl_load=no
7907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7908 LIBS=$ac_check_lib_save_LIBS
7910 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7911 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7912 if test $ac_cv_lib_dld_shl_load = yes; then
7913 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7915 echo "$as_me:$LINENO: checking for dlopen" >&5
7916 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7917 if test "${ac_cv_func_dlopen+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 cat >conftest.$ac_ext <<_ACEOF
7921 #line $LINENO "configure"
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 /* System header to define __stub macros and hopefully few prototypes,
7928 which can conflict with char dlopen (); below.
7929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7930 <limits.h> exists even on freestanding compilers. */
7932 # include <limits.h>
7934 # include <assert.h>
7936 /* Override any gcc2 internal prototype to avoid an error. */
7941 /* We use char because int might match the return type of a gcc2
7942 builtin and then its argument prototype would still apply. */
7944 /* The GNU C library defines this for functions which it implements
7945 to always fail with ENOSYS. Some functions are actually named
7946 something starting with __ and the normal name is an alias. */
7947 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7950 char (*f) () = dlopen;
7964 rm -f conftest.$ac_objext conftest$ac_exeext
7965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7966 (eval $ac_link) 2>&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } &&
7970 { ac_try='test -s conftest$ac_exeext'
7971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; }; then
7976 ac_cv_func_dlopen=yes
7978 echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7981 ac_cv_func_dlopen=no
7983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7985 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7986 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7987 if test $ac_cv_func_dlopen = yes; then
7988 lt_cv_dlopen="dlopen"
7990 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7991 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7992 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 ac_check_lib_save_LIBS=$LIBS
7997 cat >conftest.$ac_ext <<_ACEOF
7998 #line $LINENO "configure"
8001 cat confdefs.h >>conftest.$ac_ext
8002 cat >>conftest.$ac_ext <<_ACEOF
8003 /* end confdefs.h. */
8005 /* Override any gcc2 internal prototype to avoid an error. */
8009 /* We use char because int might match the return type of a gcc2
8010 builtin and then its argument prototype would still apply. */
8020 rm -f conftest.$ac_objext conftest$ac_exeext
8021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8022 (eval $ac_link) 2>&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } &&
8026 { ac_try='test -s conftest$ac_exeext'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; }; then
8032 ac_cv_lib_dl_dlopen=yes
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8037 ac_cv_lib_dl_dlopen=no
8039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8040 LIBS=$ac_check_lib_save_LIBS
8042 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8043 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8044 if test $ac_cv_lib_dl_dlopen = yes; then
8045 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8047 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8048 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8049 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8052 ac_check_lib_save_LIBS=$LIBS
8054 cat >conftest.$ac_ext <<_ACEOF
8055 #line $LINENO "configure"
8058 cat confdefs.h >>conftest.$ac_ext
8059 cat >>conftest.$ac_ext <<_ACEOF
8060 /* end confdefs.h. */
8062 /* Override any gcc2 internal prototype to avoid an error. */
8066 /* We use char because int might match the return type of a gcc2
8067 builtin and then its argument prototype would still apply. */
8077 rm -f conftest.$ac_objext conftest$ac_exeext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8079 (eval $ac_link) 2>&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try='test -s conftest$ac_exeext'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 ac_cv_lib_svld_dlopen=yes
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8094 ac_cv_lib_svld_dlopen=no
8096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8097 LIBS=$ac_check_lib_save_LIBS
8099 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8100 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8101 if test $ac_cv_lib_svld_dlopen = yes; then
8102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8104 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8105 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8106 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 ac_check_lib_save_LIBS=$LIBS
8111 cat >conftest.$ac_ext <<_ACEOF
8112 #line $LINENO "configure"
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8119 /* Override any gcc2 internal prototype to avoid an error. */
8123 /* We use char because int might match the return type of a gcc2
8124 builtin and then its argument prototype would still apply. */
8134 rm -f conftest.$ac_objext conftest$ac_exeext
8135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8136 (eval $ac_link) 2>&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); } &&
8140 { ac_try='test -s conftest$ac_exeext'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; }; then
8146 ac_cv_lib_dld_dld_link=yes
8148 echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8151 ac_cv_lib_dld_dld_link=no
8153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8154 LIBS=$ac_check_lib_save_LIBS
8156 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8157 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8158 if test $ac_cv_lib_dld_dld_link = yes; then
8159 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8180 if test "x$lt_cv_dlopen" != xno; then
8186 case $lt_cv_dlopen in
8188 save_CPPFLAGS="$CPPFLAGS"
8189 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8191 save_LDFLAGS="$LDFLAGS"
8192 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8195 LIBS="$lt_cv_dlopen_libs $LIBS"
8197 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8198 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8199 if test "${lt_cv_dlopen_self+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 if test "$cross_compiling" = yes; then :
8203 lt_cv_dlopen_self=cross
8205 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8206 lt_status=$lt_dlunknown
8207 cat > conftest.$ac_ext <<EOF
8208 #line 8208 "configure"
8209 #include "confdefs.h"
8218 # define LT_DLGLOBAL RTLD_GLOBAL
8221 # define LT_DLGLOBAL DL_GLOBAL
8223 # define LT_DLGLOBAL 0
8227 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8228 find out it does not work in some platform. */
8229 #ifndef LT_DLLAZY_OR_NOW
8231 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8234 # define LT_DLLAZY_OR_NOW DL_LAZY
8237 # define LT_DLLAZY_OR_NOW RTLD_NOW
8240 # define LT_DLLAZY_OR_NOW DL_NOW
8242 # define LT_DLLAZY_OR_NOW 0
8250 extern "C" void exit (int);
8253 void fnord() { int i=42;}
8256 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8257 int status = $lt_dlunknown;
8261 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8262 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8263 /* dlclose (self); */
8269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8270 (eval $ac_link) 2>&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8274 (./conftest; exit; ) 2>/dev/null
8277 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8278 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8279 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8282 # compilation failed
8283 lt_cv_dlopen_self=no
8290 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8291 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8293 if test "x$lt_cv_dlopen_self" = xyes; then
8294 LDFLAGS="$LDFLAGS $link_static_flag"
8295 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8296 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8297 if test "${lt_cv_dlopen_self_static+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 if test "$cross_compiling" = yes; then :
8301 lt_cv_dlopen_self_static=cross
8303 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8304 lt_status=$lt_dlunknown
8305 cat > conftest.$ac_ext <<EOF
8306 #line 8306 "configure"
8307 #include "confdefs.h"
8316 # define LT_DLGLOBAL RTLD_GLOBAL
8319 # define LT_DLGLOBAL DL_GLOBAL
8321 # define LT_DLGLOBAL 0
8325 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8326 find out it does not work in some platform. */
8327 #ifndef LT_DLLAZY_OR_NOW
8329 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8332 # define LT_DLLAZY_OR_NOW DL_LAZY
8335 # define LT_DLLAZY_OR_NOW RTLD_NOW
8338 # define LT_DLLAZY_OR_NOW DL_NOW
8340 # define LT_DLLAZY_OR_NOW 0
8348 extern "C" void exit (int);
8351 void fnord() { int i=42;}
8354 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8355 int status = $lt_dlunknown;
8359 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8360 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8361 /* dlclose (self); */
8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368 (eval $ac_link) 2>&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8372 (./conftest; exit; ) 2>/dev/null
8375 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8376 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8377 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8380 # compilation failed
8381 lt_cv_dlopen_self_static=no
8388 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8389 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8392 CPPFLAGS="$save_CPPFLAGS"
8393 LDFLAGS="$save_LDFLAGS"
8398 case $lt_cv_dlopen_self in
8399 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8400 *) enable_dlopen_self=unknown ;;
8403 case $lt_cv_dlopen_self_static in
8404 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8405 *) enable_dlopen_self_static=unknown ;;
8410 # Report which librarie types wil actually be built
8411 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8412 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8413 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8414 echo "${ECHO_T}$can_build_shared" >&6
8416 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8417 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8418 test "$can_build_shared" = "no" && enable_shared=no
8420 # On AIX, shared libraries and static libraries use the same namespace, and
8421 # are all built from PIC.
8424 test "$enable_shared" = yes && enable_static=no
8425 if test -n "$RANLIB"; then
8426 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8427 postinstall_cmds='$RANLIB $lib'
8432 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8433 test "$enable_shared" = yes && enable_static=no
8436 darwin* | rhapsody*)
8437 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8438 archive_cmds_need_lc=no
8440 rhapsody* | darwin1.[012])
8441 allow_undefined_flag='-undefined suppress'
8444 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8447 # FIXME: Relying on posixy $() will cause problems for
8448 # cross-compilation, but unfortunately the echo tests do not
8449 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8450 # `"' quotes if we put them in here... so don't!
8451 output_verbose_link_cmd='echo'
8452 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8453 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8454 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8455 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}'
8456 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}'
8458 hardcode_automatic=yes
8459 hardcode_shlibpath_var=unsupported
8460 whole_archive_flag_spec='-all_load $convenience'
8461 link_all_deplibs=yes
8465 echo "$as_me:$LINENO: result: $enable_shared" >&5
8466 echo "${ECHO_T}$enable_shared" >&6
8468 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8469 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8470 # Make sure either enable_shared or enable_static is yes.
8471 test "$enable_shared" = yes || enable_static=yes
8472 echo "$as_me:$LINENO: result: $enable_static" >&5
8473 echo "${ECHO_T}$enable_static" >&6
8475 # The else clause should only fire when bootstrapping the
8476 # libtool distribution, otherwise you forgot to ship ltmain.sh
8477 # with your package, and you will get complaints that there are
8478 # no rules to generate ltmain.sh.
8479 if test -f "$ltmain"; then
8480 # See if we are running on zsh, and set the options which allow our commands through
8481 # without removal of \ escapes.
8482 if test -n "${ZSH_VERSION+set}" ; then
8483 setopt NO_GLOB_SUBST
8485 # Now quote all the things that may contain metacharacters while being
8486 # careful not to overquote the AC_SUBSTed values. We take copies of the
8487 # variables and quote the copies for generation of the libtool script.
8488 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8489 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8490 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8491 deplibs_check_method reload_flag reload_cmds need_locks \
8492 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8493 lt_cv_sys_global_symbol_to_c_name_address \
8494 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8495 old_postinstall_cmds old_postuninstall_cmds \
8499 lt_prog_compiler_wl \
8500 lt_prog_compiler_pic \
8501 lt_prog_compiler_static \
8502 lt_prog_compiler_no_builtin_flag \
8503 export_dynamic_flag_spec \
8504 thread_safe_flag_spec \
8505 whole_archive_flag_spec \
8506 enable_shared_with_static_runtimes \
8508 old_archive_from_new_cmds \
8513 compiler_lib_search_path \
8515 archive_expsym_cmds \
8517 postuninstall_cmds \
8518 old_archive_from_expsyms_cmds \
8519 allow_undefined_flag \
8521 export_symbols_cmds \
8522 hardcode_libdir_flag_spec \
8523 hardcode_libdir_flag_spec_ld \
8524 hardcode_libdir_separator \
8525 hardcode_automatic \
8527 module_expsym_cmds \
8528 lt_cv_prog_compiler_c_o \
8533 old_archive_cmds | \
8534 old_archive_from_new_cmds | \
8536 archive_expsym_cmds | \
8538 module_expsym_cmds | \
8539 old_archive_from_expsyms_cmds | \
8540 export_symbols_cmds | \
8541 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8542 postinstall_cmds | postuninstall_cmds | \
8543 old_postinstall_cmds | old_postuninstall_cmds | \
8544 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8545 # Double-quote double-evaled strings.
8546 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8549 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8555 *'\$0 --fallback-echo"')
8556 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8561 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8563 { echo "$as_me:$LINENO: creating $ofile" >&5
8564 echo "$as_me: creating $ofile" >&6;}
8566 cat <<__EOF__ >> "$cfgfile"
8569 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8570 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8571 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8573 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8574 # Free Software Foundation, Inc.
8576 # This file is part of GNU Libtool:
8577 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8579 # This program is free software; you can redistribute it and/or modify
8580 # it under the terms of the GNU General Public License as published by
8581 # the Free Software Foundation; either version 2 of the License, or
8582 # (at your option) any later version.
8584 # This program is distributed in the hope that it will be useful, but
8585 # WITHOUT ANY WARRANTY; without even the implied warranty of
8586 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8587 # General Public License for more details.
8589 # You should have received a copy of the GNU General Public License
8590 # along with this program; if not, write to the Free Software
8591 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8593 # As a special exception to the GNU General Public License, if you
8594 # distribute this file as part of a program that contains a
8595 # configuration script generated by Autoconf, you may include it under
8596 # the same distribution terms that you use for the rest of that program.
8598 # A sed program that does not truncate output.
8601 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8602 Xsed="$SED -e s/^X//"
8604 # The HP-UX ksh and POSIX shell print the target directory to stdout
8606 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8608 # The names of the tagged configurations supported by this script.
8611 # ### BEGIN LIBTOOL CONFIG
8613 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8615 # Shell to use when invoking shell scripts.
8618 # Whether or not to build shared libraries.
8619 build_libtool_libs=$enable_shared
8621 # Whether or not to build static libraries.
8622 build_old_libs=$enable_static
8624 # Whether or not to add -lc for building shared libraries.
8625 build_libtool_need_lc=$archive_cmds_need_lc
8627 # Whether or not to disallow shared libs when runtime libs are static
8628 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8630 # Whether or not to optimize for fast installation.
8631 fast_install=$enable_fast_install
8634 host_alias=$host_alias
8637 # An echo program that does not interpret backslashes.
8642 AR_FLAGS=$lt_AR_FLAGS
8647 # A language-specific compiler.
8650 # Is the compiler the GNU C compiler?
8656 # The linker used to build libraries.
8659 # Whether we need hard or soft links.
8662 # A BSD-compatible nm program.
8665 # A symbol stripping program
8668 # Used to examine libraries when file_magic_cmd begins "file"
8669 MAGIC_CMD=$MAGIC_CMD
8671 # Used on cygwin: DLL creation program.
8674 # Used on cygwin: object dumper.
8677 # Used on cygwin: assembler.
8680 # The name of the directory that contains temporary libtool files.
8683 # How to create reloadable object files.
8684 reload_flag=$lt_reload_flag
8685 reload_cmds=$lt_reload_cmds
8687 # How to pass a linker flag through the compiler.
8688 wl=$lt_lt_prog_compiler_wl
8690 # Object file suffix (normally "o").
8693 # Old archive suffix (normally "a").
8696 # Shared library suffix (normally ".so").
8699 # Executable file suffix (normally "").
8702 # Additional compiler flags for building library objects.
8703 pic_flag=$lt_lt_prog_compiler_pic
8706 # What is the maximum length of a command?
8707 max_cmd_len=$lt_cv_sys_max_cmd_len
8709 # Does compiler simultaneously support -c and -o options?
8710 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8712 # Must we lock files when doing compilation ?
8713 need_locks=$lt_need_locks
8715 # Do we need the lib prefix for modules?
8716 need_lib_prefix=$need_lib_prefix
8718 # Do we need a version for libraries?
8719 need_version=$need_version
8721 # Whether dlopen is supported.
8722 dlopen_support=$enable_dlopen
8724 # Whether dlopen of programs is supported.
8725 dlopen_self=$enable_dlopen_self
8727 # Whether dlopen of statically linked programs is supported.
8728 dlopen_self_static=$enable_dlopen_self_static
8730 # Compiler flag to prevent dynamic linking.
8731 link_static_flag=$lt_lt_prog_compiler_static
8733 # Compiler flag to turn off builtin functions.
8734 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8736 # Compiler flag to allow reflexive dlopens.
8737 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8739 # Compiler flag to generate shared objects directly from archives.
8740 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8742 # Compiler flag to generate thread-safe objects.
8743 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8745 # Library versioning type.
8746 version_type=$version_type
8748 # Format of library name prefix.
8749 libname_spec=$lt_libname_spec
8751 # List of archive names. First name is the real one, the rest are links.
8752 # The last name is the one that the linker finds with -lNAME.
8753 library_names_spec=$lt_library_names_spec
8755 # The coded name of the library, if different from the real name.
8756 soname_spec=$lt_soname_spec
8758 # Commands used to build and install an old-style archive.
8760 old_archive_cmds=$lt_old_archive_cmds
8761 old_postinstall_cmds=$lt_old_postinstall_cmds
8762 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8764 # Create an old-style archive from a shared archive.
8765 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8767 # Create a temporary old-style archive to link instead of a shared archive.
8768 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8770 # Commands used to build and install a shared archive.
8771 archive_cmds=$lt_archive_cmds
8772 archive_expsym_cmds=$lt_archive_expsym_cmds
8773 postinstall_cmds=$lt_postinstall_cmds
8774 postuninstall_cmds=$lt_postuninstall_cmds
8776 # Commands used to build a loadable module (assumed same as above if empty)
8777 module_cmds=$lt_module_cmds
8778 module_expsym_cmds=$lt_module_expsym_cmds
8780 # Commands to strip libraries.
8781 old_striplib=$lt_old_striplib
8782 striplib=$lt_striplib
8784 # Dependencies to place before the objects being linked to create a
8786 predep_objects=$lt_predep_objects
8788 # Dependencies to place after the objects being linked to create a
8790 postdep_objects=$lt_postdep_objects
8792 # Dependencies to place before the objects being linked to create a
8796 # Dependencies to place after the objects being linked to create a
8798 postdeps=$lt_postdeps
8800 # The library search path used internally by the compiler when linking
8802 compiler_lib_search_path=$lt_compiler_lib_search_path
8804 # Method to check whether dependent libraries are shared objects.
8805 deplibs_check_method=$lt_deplibs_check_method
8807 # Command to use when deplibs_check_method == file_magic.
8808 file_magic_cmd=$lt_file_magic_cmd
8810 # Flag that allows shared libraries with undefined symbols to be built.
8811 allow_undefined_flag=$lt_allow_undefined_flag
8813 # Flag that forces no undefined symbols.
8814 no_undefined_flag=$lt_no_undefined_flag
8816 # Commands used to finish a libtool library installation in a directory.
8817 finish_cmds=$lt_finish_cmds
8819 # Same as above, but a single script fragment to be evaled but not shown.
8820 finish_eval=$lt_finish_eval
8822 # Take the output of nm and produce a listing of raw symbols and C names.
8823 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8825 # Transform the output of nm in a proper C declaration
8826 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8828 # Transform the output of nm in a C name address pair
8829 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8831 # This is the shared library runtime path variable.
8832 runpath_var=$runpath_var
8834 # This is the shared library path variable.
8835 shlibpath_var=$shlibpath_var
8837 # Is shlibpath searched before the hard-coded library search path?
8838 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8840 # How to hardcode a shared library path into an executable.
8841 hardcode_action=$hardcode_action
8843 # Whether we should hardcode library paths into libraries.
8844 hardcode_into_libs=$hardcode_into_libs
8846 # Flag to hardcode \$libdir into a binary during linking.
8847 # This must work even if \$libdir does not exist.
8848 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8850 # If ld is used when linking, flag to hardcode \$libdir into
8851 # a binary during linking. This must work even if \$libdir does
8853 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8855 # Whether we need a single -rpath flag with a separated argument.
8856 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8858 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8860 hardcode_direct=$hardcode_direct
8862 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8864 hardcode_minus_L=$hardcode_minus_L
8866 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8867 # the resulting binary.
8868 hardcode_shlibpath_var=$hardcode_shlibpath_var
8870 # Set to yes if building a shared library automatically hardcodes DIR into the library
8871 # and all subsequent libraries and executables linked against it.
8872 hardcode_automatic=$hardcode_automatic
8874 # Variables whose values should be saved in libtool wrapper scripts and
8875 # restored at relink time.
8876 variables_saved_for_relink="$variables_saved_for_relink"
8878 # Whether libtool must link a program against all its dependency libraries.
8879 link_all_deplibs=$link_all_deplibs
8881 # Compile-time system search path for libraries
8882 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8884 # Run-time system search path for libraries
8885 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8887 # Fix the shell variable \$srcfile for the compiler.
8888 fix_srcfile_path="$fix_srcfile_path"
8890 # Set to yes if exported symbols are required.
8891 always_export_symbols=$always_export_symbols
8893 # The commands to list exported symbols.
8894 export_symbols_cmds=$lt_export_symbols_cmds
8896 # The commands to extract the exported symbol list from a shared archive.
8897 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8899 # Symbols that should not be listed in the preloaded symbols.
8900 exclude_expsyms=$lt_exclude_expsyms
8902 # Symbols that must always be exported.
8903 include_expsyms=$lt_include_expsyms
8905 # ### END LIBTOOL CONFIG
8912 cat <<\EOF >> "$cfgfile"
8914 # AIX sometimes has problems with the GCC collect2 program. For some
8915 # reason, if we set the COLLECT_NAMES environment variable, the problems
8916 # vanish in a puff of smoke.
8917 if test "X${COLLECT_NAMES+set}" != Xset; then
8919 export COLLECT_NAMES
8925 # We use sed instead of cat because bash on DJGPP gets confused if
8926 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8927 # text mode, it properly converts lines to CR/LF. This bash problem
8928 # is reportedly fixed, but why not run on old versions too?
8929 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8931 mv -f "$cfgfile" "$ofile" || \
8932 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8936 # If there is no Makefile yet, we rely on a make rule to execute
8937 # `config.status --recheck' to rerun these tests and create the
8938 # libtool script then.
8939 test -f Makefile && make "$ltmain"
8944 ac_cpp='$CPP $CPPFLAGS'
8945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8952 # Check whether --with-tags or --without-tags was given.
8953 if test "${with_tags+set}" = set; then
8954 withval="$with_tags"
8958 if test -f "$ltmain" && test -n "$tagnames"; then
8959 if test ! -f "${ofile}"; then
8960 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8961 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8964 if test -z "$LTCC"; then
8965 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8966 if test -z "$LTCC"; then
8967 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8968 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8970 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8971 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8975 # Extract list of available tagged configurations in $ofile.
8976 # Note that this assumes the entire list is on one line.
8977 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8979 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8980 for tagname in $tagnames; do
8982 # Check whether tagname contains only valid characters
8983 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8985 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8986 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8987 { (exit 1); exit 1; }; }
8991 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8993 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8994 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8995 { (exit 1); exit 1; }; }
8998 # Update the list of available tags.
8999 if test -n "$tagname"; then
9000 echo appending configuration tag \"$tagname\" to $ofile
9004 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9006 ac_cpp='$CXXCPP $CPPFLAGS'
9007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9014 archive_cmds_need_lc_CXX=no
9015 allow_undefined_flag_CXX=
9016 always_export_symbols_CXX=no
9017 archive_expsym_cmds_CXX=
9018 export_dynamic_flag_spec_CXX=
9019 hardcode_direct_CXX=no
9020 hardcode_libdir_flag_spec_CXX=
9021 hardcode_libdir_flag_spec_ld_CXX=
9022 hardcode_libdir_separator_CXX=
9023 hardcode_minus_L_CXX=no
9024 hardcode_automatic_CXX=no
9026 module_expsym_cmds_CXX=
9027 link_all_deplibs_CXX=unknown
9028 old_archive_cmds_CXX=$old_archive_cmds
9029 no_undefined_flag_CXX=
9030 whole_archive_flag_spec_CXX=
9031 enable_shared_with_static_runtimes_CXX=no
9033 # Dependencies to place before and after the object being linked:
9035 postdep_objects_CXX=
9038 compiler_lib_search_path_CXX=
9040 # Source file extension for C++ test sources.
9043 # Object file extension for compiled C++ test sources.
9047 # Code to be used in simple compile tests
9048 lt_simple_compile_test_code="int some_variable = 0;\n"
9050 # Code to be used in simple link tests
9051 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9053 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9055 # If no C compiler was specified, use CC.
9058 # Allow CC to be a program name with arguments.
9062 # Allow CC to be a program name with arguments.
9067 lt_save_with_gnu_ld=$with_gnu_ld
9068 lt_save_path_LD=$lt_cv_path_LD
9069 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9070 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9072 unset lt_cv_prog_gnu_ld
9074 if test -n "${lt_cv_path_LDCXX+set}"; then
9075 lt_cv_path_LD=$lt_cv_path_LDCXX
9079 test -z "${LDCXX+set}" || LD=$LDCXX
9083 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9085 # We don't want -fno-exception wen compiling C++ code, so set the
9086 # no_builtin_flag separately
9087 if test "$GXX" = yes; then
9088 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9090 lt_prog_compiler_no_builtin_flag_CXX=
9093 if test "$GXX" = yes; then
9094 # Set up default GNU C++ configuration
9097 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9098 if test "${with_gnu_ld+set}" = set; then
9099 withval="$with_gnu_ld"
9100 test "$withval" = no || with_gnu_ld=yes
9105 if test "$GCC" = yes; then
9106 # Check if gcc -print-prog-name=ld gives a path.
9107 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9108 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9111 # gcc leaves a trailing carriage return which upsets mingw
9112 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9114 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9117 # Accept absolute paths.
9119 re_direlt='/[^/][^/]*/\.\./'
9120 # Canonicalize the path of ld
9121 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9122 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9123 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9125 test -z "$LD" && LD="$ac_prog"
9128 # If it fails, then pretend we aren't using GCC.
9132 # If it is relative, then search for the first ld in PATH.
9136 elif test "$with_gnu_ld" = yes; then
9137 echo "$as_me:$LINENO: checking for GNU ld" >&5
9138 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9140 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9141 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9143 if test "${lt_cv_path_LD+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 if test -z "$LD"; then
9147 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9148 for ac_dir in $PATH; do
9150 test -z "$ac_dir" && ac_dir=.
9151 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9152 lt_cv_path_LD="$ac_dir/$ac_prog"
9153 # Check to see if the program is GNU ld. I'd rather use --version,
9154 # but apparently some GNU ld's only accept -v.
9155 # Break only if it was the GNU/non-GNU ld that we prefer.
9156 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9157 *GNU* | *'with BFD'*)
9158 test "$with_gnu_ld" != no && break
9161 test "$with_gnu_ld" != yes && break
9168 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9173 if test -n "$LD"; then
9174 echo "$as_me:$LINENO: result: $LD" >&5
9175 echo "${ECHO_T}$LD" >&6
9177 echo "$as_me:$LINENO: result: no" >&5
9178 echo "${ECHO_T}no" >&6
9180 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9181 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9182 { (exit 1); exit 1; }; }
9183 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9184 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9185 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9188 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9189 case `"$LD" -v 2>&1 </dev/null` in
9190 *GNU* | *'with BFD'*)
9191 lt_cv_prog_gnu_ld=yes
9194 lt_cv_prog_gnu_ld=no
9198 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9199 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9200 with_gnu_ld=$lt_cv_prog_gnu_ld
9204 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9205 # archiving commands below assume that GNU ld is being used.
9206 if test "$with_gnu_ld" = yes; then
9207 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9208 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'
9210 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9211 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9213 # If archive_cmds runs LD, not CC, wlarc should be empty
9214 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9215 # investigate it a little bit more. (MM)
9218 # ancient GNU ld didn't support --whole-archive et. al.
9219 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9220 grep 'no-whole-archive' > /dev/null; then
9221 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9223 whole_archive_flag_spec_CXX=
9229 # A generic and very simple default shared library creation
9230 # command for GNU C++ for the case where it uses the native
9231 # linker, instead of GNU ld. If possible, this setting should
9232 # overridden to take advantage of the native linker features on
9233 # the platform it is being used on.
9234 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9237 # Commands to make compiler produce verbose output that lists
9238 # what "hidden" libraries, object files and flags are used when
9239 # linking a shared library.
9240 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9248 # PORTME: fill in a description of your system's C++ link characteristics
9249 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9250 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9254 # FIXME: insert proper C++ library support
9258 if test "$host_cpu" = ia64; then
9259 # On IA64, the linker does run time linking by default, so we don't
9260 # have to do anything special.
9261 aix_use_runtimelinking=no
9262 exp_sym_flag='-Bexport'
9265 aix_use_runtimelinking=no
9267 # Test if we are trying to use run time linking or normal
9268 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9269 # need to do runtime linking.
9270 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9271 for ld_flag in $LDFLAGS; do
9274 aix_use_runtimelinking=yes
9281 exp_sym_flag='-bexport'
9282 no_entry_flag='-bnoentry'
9285 # When large executables or shared objects are built, AIX ld can
9286 # have problems creating the table of contents. If linking a library
9287 # or program results in "error TOC overflow" add -mminimal-toc to
9288 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9289 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9292 hardcode_direct_CXX=yes
9293 hardcode_libdir_separator_CXX=':'
9294 link_all_deplibs_CXX=yes
9296 if test "$GXX" = yes; then
9297 case $host_os in aix4.012|aix4.012.*)
9298 # We only want to do this on AIX 4.2 and lower, the check
9299 # below for broken collect2 doesn't work under 4.3+
9300 collect2name=`${CC} -print-prog-name=collect2`
9301 if test -f "$collect2name" && \
9302 strings "$collect2name" | grep resolve_lib_name >/dev/null
9304 # We have reworked collect2
9305 hardcode_direct_CXX=yes
9307 # We have old collect2
9308 hardcode_direct_CXX=unsupported
9309 # It fails to find uninstalled libraries when the uninstalled
9310 # path is not listed in the libpath. Setting hardcode_minus_L
9311 # to unsupported forces relinking
9312 hardcode_minus_L_CXX=yes
9313 hardcode_libdir_flag_spec_CXX='-L$libdir'
9314 hardcode_libdir_separator_CXX=
9317 shared_flag='-shared'
9320 if test "$host_cpu" = ia64; then
9321 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9322 # chokes on -Wl,-G. The following line is correct:
9325 if test "$aix_use_runtimelinking" = yes; then
9326 shared_flag='${wl}-G'
9328 shared_flag='${wl}-bM:SRE'
9333 # It seems that -bexpall does not export symbols beginning with
9334 # underscore (_), so it is better to generate a list of symbols to export.
9335 always_export_symbols_CXX=yes
9336 if test "$aix_use_runtimelinking" = yes; then
9337 # Warning - without using the other runtime loading flags (-brtl),
9338 # -berok will link without error, but may produce a broken library.
9339 allow_undefined_flag_CXX='-berok'
9340 # Determine the default libpath from the value encoded in an empty executable.
9341 cat >conftest.$ac_ext <<_ACEOF
9342 #line $LINENO "configure"
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9357 rm -f conftest.$ac_objext conftest$ac_exeext
9358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359 (eval $ac_link) 2>&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } &&
9363 { ac_try='test -s conftest$ac_exeext'
9364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; }; then
9370 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9372 # Check for a 64-bit object if we didn't find anything.
9373 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; }
9376 echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9381 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9383 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9385 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"
9387 if test "$host_cpu" = ia64; then
9388 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9389 allow_undefined_flag_CXX="-z nodefs"
9390 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"
9392 # Determine the default libpath from the value encoded in an empty executable.
9393 cat >conftest.$ac_ext <<_ACEOF
9394 #line $LINENO "configure"
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9409 rm -f conftest.$ac_objext conftest$ac_exeext
9410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9411 (eval $ac_link) 2>&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } &&
9415 { ac_try='test -s conftest$ac_exeext'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; }; then
9422 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9424 # Check for a 64-bit object if we didn't find anything.
9425 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; }
9428 echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9435 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9436 # Warning - without using the other run time loading flags,
9437 # -berok will link without error, but may produce a broken library.
9438 no_undefined_flag_CXX=' ${wl}-bernotok'
9439 allow_undefined_flag_CXX=' ${wl}-berok'
9440 # -bexpall does not export symbols beginning with underscore (_)
9441 always_export_symbols_CXX=yes
9442 # Exported symbols can be pulled into shared objects from archives
9443 whole_archive_flag_spec_CXX=' '
9444 archive_cmds_need_lc_CXX=yes
9445 # This is similar to how AIX traditionally builds it's shared libraries.
9446 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'
9451 case $cc_basename in
9453 # FIXME: insert proper C++ library support
9459 cygwin* | mingw* | pw32*)
9460 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9461 # as there is no search path for DLLs.
9462 hardcode_libdir_flag_spec_CXX='-L$libdir'
9463 allow_undefined_flag_CXX=unsupported
9464 always_export_symbols_CXX=no
9465 enable_shared_with_static_runtimes_CXX=yes
9467 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9468 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'
9469 # If the export-symbols file already is a .def file (1st line
9470 # is EXPORTS), use it as is; otherwise, prepend...
9471 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9472 cp $export_symbols $output_objdir/$soname.def;
9474 echo EXPORTS > $output_objdir/$soname.def;
9475 cat $export_symbols >> $output_objdir/$soname.def;
9477 $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'
9483 darwin* | rhapsody*)
9484 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9485 archive_cmds_need_lc_CXX=no
9487 rhapsody* | darwin1.[012])
9488 allow_undefined_flag_CXX='-undefined suppress'
9491 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9494 lt_int_apple_cc_single_mod=no
9495 output_verbose_link_cmd='echo'
9496 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9497 lt_int_apple_cc_single_mod=yes
9499 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9500 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9502 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'
9504 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9506 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9507 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9508 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}'
9510 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}'
9512 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}'
9513 hardcode_direct_CXX=no
9514 hardcode_automatic_CXX=yes
9515 hardcode_shlibpath_var_CXX=unsupported
9516 whole_archive_flag_spec_CXX='-all_load $convenience'
9517 link_all_deplibs_CXX=yes
9522 case $cc_basename in
9524 # FIXME: insert proper C++ library support
9528 # Green Hills C++ Compiler
9529 # FIXME: insert proper C++ library support
9533 # FIXME: insert proper C++ library support
9539 # C++ shared libraries reported to be fairly broken before switch to ELF
9543 archive_cmds_need_lc_CXX=no
9546 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9553 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9554 hardcode_libdir_separator_CXX=:
9555 export_dynamic_flag_spec_CXX='${wl}-E'
9556 hardcode_direct_CXX=yes
9557 hardcode_minus_L_CXX=yes # Not in the search PATH,
9558 # but as the default
9559 # location of the library.
9561 case $cc_basename in
9563 # FIXME: insert proper C++ library support
9567 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'
9568 # Commands to make compiler produce verbose output that lists
9569 # what "hidden" libraries, object files and flags are used when
9570 # linking a shared library.
9572 # There doesn't appear to be a way to prevent this compiler from
9573 # explicitly linking system object files so we need to strip them
9574 # from the output so that they don't get included in the library
9576 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'
9579 if test "$GXX" = yes; then
9580 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'
9582 # FIXME: insert proper C++ library support
9589 if test $with_gnu_ld = no; then
9592 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9593 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9594 hardcode_libdir_separator_CXX=:
9597 hardcode_libdir_flag_spec_CXX='-L$libdir'
9600 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9601 hardcode_libdir_separator_CXX=:
9602 export_dynamic_flag_spec_CXX='${wl}-E'
9608 hardcode_direct_CXX=no
9609 hardcode_shlibpath_var_CXX=no
9612 hardcode_direct_CXX=no
9613 hardcode_shlibpath_var_CXX=no
9614 hardcode_minus_L_CXX=yes # Not in the search PATH,
9615 # but as the default
9616 # location of the library.
9619 hardcode_direct_CXX=yes
9620 hardcode_minus_L_CXX=yes # Not in the search PATH,
9621 # but as the default
9622 # location of the library.
9626 case $cc_basename in
9628 # FIXME: insert proper C++ library support
9634 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9637 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9640 # Commands to make compiler produce verbose output that lists
9641 # what "hidden" libraries, object files and flags are used when
9642 # linking a shared library.
9644 # There doesn't appear to be a way to prevent this compiler from
9645 # explicitly linking system object files so we need to strip them
9646 # from the output so that they don't get included in the library
9648 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'
9651 if test "$GXX" = yes; then
9652 if test $with_gnu_ld = no; then
9655 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9658 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'
9663 # FIXME: insert proper C++ library support
9670 case $cc_basename in
9673 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'
9675 # Archives containing C++ object files must be created using
9676 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9677 # necessary to make sure instantiated templates are included
9679 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9682 if test "$GXX" = yes; then
9683 if test "$with_gnu_ld" = no; then
9684 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'
9686 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'
9689 link_all_deplibs_CXX=yes
9692 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9693 hardcode_libdir_separator_CXX=:
9696 case $cc_basename in
9698 # Kuck and Associates, Inc. (KAI) C++ Compiler
9700 # KCC will only create a shared library if the output file
9701 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9702 # to its proper name (with version) after linking.
9703 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'
9704 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'
9705 # Commands to make compiler produce verbose output that lists
9706 # what "hidden" libraries, object files and flags are used when
9707 # linking a shared library.
9709 # There doesn't appear to be a way to prevent this compiler from
9710 # explicitly linking system object files so we need to strip them
9711 # from the output so that they don't get included in the library
9713 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'
9715 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9716 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9718 # Archives containing C++ object files must be created using
9719 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9720 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9725 archive_cmds_need_lc_CXX=no
9726 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9727 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'
9728 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9729 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9730 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9734 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9735 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'
9737 runpath_var=LD_RUN_PATH
9738 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9739 hardcode_libdir_separator_CXX=:
9741 # Commands to make compiler produce verbose output that lists
9742 # what "hidden" libraries, object files and flags are used when
9743 # linking a shared library.
9745 # There doesn't appear to be a way to prevent this compiler from
9746 # explicitly linking system object files so we need to strip them
9747 # from the output so that they don't get included in the library
9749 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'
9754 # FIXME: insert proper C++ library support
9758 # FIXME: insert proper C++ library support
9762 case $cc_basename in
9764 # FIXME: insert proper C++ library support
9768 # FIXME: insert proper C++ library support
9774 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9775 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9777 hardcode_libdir_flag_spec_CXX='-R$libdir'
9778 hardcode_direct_CXX=yes
9779 hardcode_shlibpath_var_CXX=no
9781 # Workaround some broken pre-1.5 toolchains
9782 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9785 case $cc_basename in
9787 # Kuck and Associates, Inc. (KAI) C++ Compiler
9789 # KCC will only create a shared library if the output file
9790 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9791 # to its proper name (with version) after linking.
9792 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'
9794 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9795 hardcode_libdir_separator_CXX=:
9797 # Archives containing C++ object files must be created using
9798 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9799 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9803 # Rational C++ 2.4.1
9804 # FIXME: insert proper C++ library support
9808 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9809 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'
9811 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9812 hardcode_libdir_separator_CXX=:
9814 # Commands to make compiler produce verbose output that lists
9815 # what "hidden" libraries, object files and flags are used when
9816 # linking a shared library.
9818 # There doesn't appear to be a way to prevent this compiler from
9819 # explicitly linking system object files so we need to strip them
9820 # from the output so that they don't get included in the library
9822 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'
9825 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9826 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9827 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'
9829 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9830 hardcode_libdir_separator_CXX=:
9832 # Commands to make compiler produce verbose output that lists
9833 # what "hidden" libraries, object files and flags are used when
9834 # linking a shared library.
9835 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9838 # FIXME: insert proper C++ library support
9845 case $cc_basename in
9847 # Kuck and Associates, Inc. (KAI) C++ Compiler
9849 # KCC will only create a shared library if the output file
9850 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9851 # to its proper name (with version) after linking.
9852 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'
9854 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9855 hardcode_libdir_separator_CXX=:
9857 # Archives containing C++ object files must be created using
9858 # the KAI C++ compiler.
9859 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9862 # Rational C++ 2.4.1
9863 # FIXME: insert proper C++ library support
9867 allow_undefined_flag_CXX=' -expect_unresolved \*'
9868 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'
9869 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9870 echo "-hidden">> $lib.exp~
9871 $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~
9874 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9875 hardcode_libdir_separator_CXX=:
9877 # Commands to make compiler produce verbose output that lists
9878 # what "hidden" libraries, object files and flags are used when
9879 # linking a shared library.
9881 # There doesn't appear to be a way to prevent this compiler from
9882 # explicitly linking system object files so we need to strip them
9883 # from the output so that they don't get included in the library
9885 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'
9888 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9889 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9890 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'
9892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9893 hardcode_libdir_separator_CXX=:
9895 # Commands to make compiler produce verbose output that lists
9896 # what "hidden" libraries, object files and flags are used when
9897 # linking a shared library.
9898 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9901 # FIXME: insert proper C++ library support
9908 # FIXME: insert proper C++ library support
9912 archive_cmds_need_lc_CXX=no
9913 case $cc_basename in
9915 # FIXME: insert proper C++ library support
9919 # FIXME: insert proper C++ library support
9925 case $cc_basename in
9928 # FIXME: insert proper C++ library support
9933 # FIXME: insert proper C++ library support
9937 # FIXME: insert proper C++ library support
9943 case $cc_basename in
9945 # Sun C++ 4.2, 5.x and Centerline C++
9946 no_undefined_flag_CXX=' -zdefs'
9947 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9948 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9949 $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'
9951 hardcode_libdir_flag_spec_CXX='-R$libdir'
9952 hardcode_shlibpath_var_CXX=no
9954 solaris2.0-5 | solaris2.0-5.*) ;;
9956 # The C++ compiler is used as linker so we must use $wl
9957 # flag to pass the commands to the underlying system
9959 # Supported since Solaris 2.6 (maybe 2.5.1?)
9960 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9963 link_all_deplibs_CXX=yes
9965 # Commands to make compiler produce verbose output that lists
9966 # what "hidden" libraries, object files and flags are used when
9967 # linking a shared library.
9969 # There doesn't appear to be a way to prevent this compiler from
9970 # explicitly linking system object files so we need to strip them
9971 # from the output so that they don't get included in the library
9973 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'
9975 # Archives containing C++ object files must be created using
9976 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9977 # necessary to make sure instantiated templates are included
9979 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9982 # Green Hills C++ Compiler
9983 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9985 # The C++ compiler must be used to create the archive.
9986 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9989 # GNU C++ compiler with Solaris linker
9990 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9991 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9992 if $CC --version | grep -v '^2\.7' > /dev/null; then
9993 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9994 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9995 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9997 # Commands to make compiler produce verbose output that lists
9998 # what "hidden" libraries, object files and flags are used when
9999 # linking a shared library.
10000 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10002 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10004 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10005 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10006 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10008 # Commands to make compiler produce verbose output that lists
10009 # what "hidden" libraries, object files and flags are used when
10010 # linking a shared library.
10011 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10014 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10019 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10020 archive_cmds_need_lc_CXX=no
10023 case $cc_basename in
10025 # NonStop-UX NCC 3.20
10026 # FIXME: insert proper C++ library support
10030 # FIXME: insert proper C++ library support
10036 # FIXME: insert proper C++ library support
10040 # FIXME: insert proper C++ library support
10044 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10045 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10046 test "$ld_shlibs_CXX" = no && can_build_shared=no
10052 cat > conftest.$ac_ext <<EOF
10056 Foo (void) { a = 0; }
10062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10063 (eval $ac_compile) 2>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; then
10067 # Parse the compiler output and extract the necessary
10068 # objects, libraries and library flags.
10070 # Sentinel used to keep track of whether or not we are before
10071 # the conftest object file.
10072 pre_test_object_deps_done=no
10074 # The `*' in the case matches for architectures that use `case' in
10075 # $output_verbose_cmd can trigger glob expansion during the loop
10076 # eval without this substitution.
10077 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10079 for p in `eval $output_verbose_link_cmd`; do
10083 # Some compilers place space between "-{L,R}" and the path.
10084 # Remove the space.
10085 if test $p = "-L" \
10086 || test $p = "-R"; then
10093 if test "$pre_test_object_deps_done" = no; then
10096 # Internal compiler library paths should come after those
10097 # provided the user. The postdeps already come after the
10098 # user supplied libs so there is no need to process them.
10099 if test -z "$compiler_lib_search_path_CXX"; then
10100 compiler_lib_search_path_CXX="${prev}${p}"
10102 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10105 # The "-l" case would never come before the object being
10106 # linked, so don't bother handling this case.
10109 if test -z "$postdeps_CXX"; then
10110 postdeps_CXX="${prev}${p}"
10112 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10118 # This assumes that the test object file only shows up
10119 # once in the compiler output.
10120 if test "$p" = "conftest.$objext"; then
10121 pre_test_object_deps_done=yes
10125 if test "$pre_test_object_deps_done" = no; then
10126 if test -z "$predep_objects_CXX"; then
10127 predep_objects_CXX="$p"
10129 predep_objects_CXX="$predep_objects_CXX $p"
10132 if test -z "$postdep_objects_CXX"; then
10133 postdep_objects_CXX="$p"
10135 postdep_objects_CXX="$postdep_objects_CXX $p"
10140 *) ;; # Ignore the rest.
10148 echo "libtool.m4: error: problem compiling CXX test program"
10151 $rm -f confest.$objext
10153 case " $postdeps_CXX " in
10154 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10157 lt_prog_compiler_wl_CXX=
10158 lt_prog_compiler_pic_CXX=
10159 lt_prog_compiler_static_CXX=
10161 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10162 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10164 # C++ specific cases for pic, static, wl, etc.
10165 if test "$GXX" = yes; then
10166 lt_prog_compiler_wl_CXX='-Wl,'
10167 lt_prog_compiler_static_CXX='-static'
10171 # All AIX code is PIC.
10172 if test "$host_cpu" = ia64; then
10173 # AIX 5 now supports IA64 processor
10174 lt_prog_compiler_static_CXX='-Bstatic'
10178 # FIXME: we need at least 68020 code to build shared libraries, but
10179 # adding the `-m68020' flag to GCC prevents building anything better,
10181 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10183 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10184 # PIC is the default for these OSes.
10186 mingw* | os2* | pw32*)
10187 # This hack is so that the source file can tell whether it is being
10188 # built for inclusion in a dll (and should export symbols for example).
10189 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10191 darwin* | rhapsody*)
10192 # PIC is the default on this platform
10193 # Common symbols not allowed in MH_DYLIB files
10194 lt_prog_compiler_pic_CXX='-fno-common'
10197 # DJGPP does not support shared libraries at all
10198 lt_prog_compiler_pic_CXX=
10201 if test -d /usr/nec; then
10202 lt_prog_compiler_pic_CXX=-Kconform_pic
10206 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10207 # not for PA HP-UX.
10208 case "$host_cpu" in
10212 lt_prog_compiler_pic_CXX='-fPIC'
10217 lt_prog_compiler_pic_CXX='-fPIC'
10223 # All AIX code is PIC.
10224 if test "$host_cpu" = ia64; then
10225 # AIX 5 now supports IA64 processor
10226 lt_prog_compiler_static_CXX='-Bstatic'
10228 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10232 case $cc_basename in
10234 # Green Hills C++ Compiler
10235 # _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"
10240 case $cc_basename in
10242 lt_prog_compiler_pic_CXX='-KPIC'
10245 # Green Hills C++ Compiler
10246 lt_prog_compiler_pic_CXX='-pic'
10253 # FreeBSD uses GNU C++
10255 hpux9* | hpux10* | hpux11*)
10256 case $cc_basename in
10258 lt_prog_compiler_wl_CXX='-Wl,'
10259 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10260 if test "$host_cpu" != ia64; then
10261 lt_prog_compiler_pic_CXX='+Z'
10265 lt_prog_compiler_wl_CXX='-Wl,'
10266 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10267 case "$host_cpu" in
10272 lt_prog_compiler_pic_CXX='+Z'
10280 irix5* | irix6* | nonstopux*)
10281 case $cc_basename in
10283 lt_prog_compiler_wl_CXX='-Wl,'
10284 lt_prog_compiler_static_CXX='-non_shared'
10285 # CC pic flag -KPIC is the default.
10292 case $cc_basename in
10295 lt_prog_compiler_wl_CXX='--backend -Wl,'
10296 lt_prog_compiler_pic_CXX='-fPIC'
10300 lt_prog_compiler_wl_CXX='-Wl,'
10301 lt_prog_compiler_pic_CXX='-KPIC'
10302 lt_prog_compiler_static_CXX='-static'
10306 # Make sure the PIC flag is empty. It appears that all Alpha
10307 # Linux and Compaq Tru64 Unix objects are PIC.
10308 lt_prog_compiler_pic_CXX=
10309 lt_prog_compiler_static_CXX='-non_shared'
10320 case $cc_basename in
10322 lt_prog_compiler_pic_CXX='-W c,exportall'
10330 osf3* | osf4* | osf5*)
10331 case $cc_basename in
10333 lt_prog_compiler_wl_CXX='--backend -Wl,'
10336 # Rational C++ 2.4.1
10337 lt_prog_compiler_pic_CXX='-pic'
10340 # Digital/Compaq C++
10341 lt_prog_compiler_wl_CXX='-Wl,'
10342 # Make sure the PIC flag is empty. It appears that all Alpha
10343 # Linux and Compaq Tru64 Unix objects are PIC.
10344 lt_prog_compiler_pic_CXX=
10345 lt_prog_compiler_static_CXX='-non_shared'
10354 case $cc_basename in
10356 lt_prog_compiler_pic_CXX='-fPIC'
10363 case $cc_basename in
10365 # Sun C++ 4.2, 5.x and Centerline C++
10366 lt_prog_compiler_pic_CXX='-KPIC'
10367 lt_prog_compiler_static_CXX='-Bstatic'
10368 lt_prog_compiler_wl_CXX='-Qoption ld '
10371 # Green Hills C++ Compiler
10372 lt_prog_compiler_pic_CXX='-PIC'
10379 case $cc_basename in
10382 lt_prog_compiler_pic_CXX='-pic'
10383 lt_prog_compiler_static_CXX='-Bstatic'
10387 lt_prog_compiler_pic_CXX='-pic'
10394 case $cc_basename in
10396 # NonStop-UX NCC 3.20
10397 lt_prog_compiler_pic_CXX='-KPIC'
10408 lt_prog_compiler_can_build_shared_CXX=no
10413 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10414 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10417 # Check to make sure the PIC flag actually works.
10419 if test -n "$lt_prog_compiler_pic_CXX"; then
10420 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10421 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10422 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10425 lt_prog_compiler_pic_works_CXX=no
10426 ac_outfile=conftest.$ac_objext
10427 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10428 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10429 # Insert the option either (1) after the last *FLAGS variable, or
10430 # (2) before a word containing "conftest.", or (3) at the end.
10431 # Note that $ac_compile itself does not contain backslashes and begins
10432 # with a dollar sign (not a hyphen), so the echo should work correctly.
10433 # The option is referenced via a variable to avoid confusing sed.
10434 lt_compile=`echo "$ac_compile" | $SED \
10435 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10437 -e 's:$: $lt_compiler_flag:'`
10438 (eval echo "\"\$as_me:10438: $lt_compile\"" >&5)
10439 (eval "$lt_compile" 2>conftest.err)
10441 cat conftest.err >&5
10442 echo "$as_me:10442: \$? = $ac_status" >&5
10443 if (exit $ac_status) && test -s "$ac_outfile"; then
10444 # The compiler can only warn and ignore the option if not recognized
10445 # So say no if there are warnings
10446 if test ! -s conftest.err; then
10447 lt_prog_compiler_pic_works_CXX=yes
10453 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10454 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10456 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10457 case $lt_prog_compiler_pic_CXX in
10459 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10462 lt_prog_compiler_pic_CXX=
10463 lt_prog_compiler_can_build_shared_CXX=no
10468 # For platforms which do not support PIC, -DPIC is meaningless:
10470 lt_prog_compiler_pic_CXX=
10473 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10477 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10478 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10479 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10482 lt_cv_prog_compiler_c_o_CXX=no
10483 $rm -r conftest 2>/dev/null
10487 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10489 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10490 # that will create temporary files in the current directory regardless of
10491 # the output directory. Thus, making CWD read-only will cause this test
10492 # to fail, enabling locking or at least warning the user not to do parallel
10496 lt_compiler_flag="-o out/conftest2.$ac_objext"
10497 # Insert the option either (1) after the last *FLAGS variable, or
10498 # (2) before a word containing "conftest.", or (3) at the end.
10499 # Note that $ac_compile itself does not contain backslashes and begins
10500 # with a dollar sign (not a hyphen), so the echo should work correctly.
10501 lt_compile=`echo "$ac_compile" | $SED \
10502 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10504 -e 's:$: $lt_compiler_flag:'`
10505 (eval echo "\"\$as_me:10505: $lt_compile\"" >&5)
10506 (eval "$lt_compile" 2>out/conftest.err)
10508 cat out/conftest.err >&5
10509 echo "$as_me:10509: \$? = $ac_status" >&5
10510 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10512 # The compiler can only warn and ignore the option if not recognized
10513 # So say no if there are warnings
10514 if test ! -s out/conftest.err; then
10515 lt_cv_prog_compiler_c_o_CXX=yes
10519 $rm conftest* out/*
10526 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10527 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10530 hard_links="nottested"
10531 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10532 # do not overwrite the value of need_locks provided by the user
10533 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10534 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10537 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10539 ln conftest.a conftest.b 2>&5 || hard_links=no
10540 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10541 echo "$as_me:$LINENO: result: $hard_links" >&5
10542 echo "${ECHO_T}$hard_links" >&6
10543 if test "$hard_links" = no; then
10544 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10545 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10552 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10553 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10555 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10558 # If we're using GNU nm, then we don't want the "-C" option.
10559 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10560 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10561 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'
10563 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'
10567 export_symbols_cmds_CXX="$ltdll_cmds"
10570 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10573 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10577 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10578 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10579 test "$ld_shlibs_CXX" = no && can_build_shared=no
10581 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10582 if test "$GCC" = yes; then
10583 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10587 # Do we need to explicitly link libc?
10589 case "x$archive_cmds_need_lc_CXX" in
10591 # Assume -lc should be added
10592 archive_cmds_need_lc_CXX=yes
10594 if test "$enable_shared" = yes && test "$GCC" = yes; then
10595 case $archive_cmds_CXX in
10597 # FIXME: we may have to deal with multi-command sequences.
10600 # Test whether the compiler implicitly links with -lc since on some
10601 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10602 # to ld, don't add -lc before -lgcc.
10603 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10604 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10606 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10609 (eval $ac_compile) 2>&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } 2>conftest.err; then
10615 libobjs=conftest.$ac_objext
10617 wl=$lt_prog_compiler_wl_CXX
10623 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10624 allow_undefined_flag_CXX=
10625 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10626 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }
10631 archive_cmds_need_lc_CXX=no
10633 archive_cmds_need_lc_CXX=yes
10635 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10637 cat conftest.err 1>&5
10640 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10641 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10648 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10649 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10650 hardcode_action_CXX=
10651 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10652 test -n "$runpath_var CXX" || \
10653 test "X$hardcode_automatic_CXX"="Xyes" ; then
10655 # We can hardcode non-existant directories.
10656 if test "$hardcode_direct_CXX" != no &&
10657 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10658 # have to relink, otherwise we might link with an installed library
10659 # when we should be linking with a yet-to-be-installed one
10660 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10661 test "$hardcode_minus_L_CXX" != no; then
10662 # Linking always hardcodes the temporary library directory.
10663 hardcode_action_CXX=relink
10665 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10666 hardcode_action_CXX=immediate
10669 # We cannot hardcode anything, or else we can only hardcode existing
10671 hardcode_action_CXX=unsupported
10673 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10674 echo "${ECHO_T}$hardcode_action_CXX" >&6
10676 if test "$hardcode_action_CXX" = relink; then
10677 # Fast installation is not supported
10678 enable_fast_install=no
10679 elif test "$shlibpath_overrides_runpath" = yes ||
10680 test "$enable_shared" = no; then
10681 # Fast installation is not necessary
10682 enable_fast_install=needless
10687 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10688 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10689 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10690 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10691 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10692 echo "$as_me:$LINENO: result: yes" >&5
10693 echo "${ECHO_T}yes" >&6
10695 # FIXME - insert some real tests, host_os isn't really good enough
10698 if test -n "$STRIP" ; then
10699 striplib="$STRIP -x"
10700 echo "$as_me:$LINENO: result: yes" >&5
10701 echo "${ECHO_T}yes" >&6
10703 echo "$as_me:$LINENO: result: no" >&5
10704 echo "${ECHO_T}no" >&6
10708 echo "$as_me:$LINENO: result: no" >&5
10709 echo "${ECHO_T}no" >&6
10714 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10715 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10716 library_names_spec=
10717 libname_spec='lib$name'
10721 postuninstall_cmds=
10725 shlibpath_overrides_runpath=unknown
10727 dynamic_linker="$host_os ld.so"
10728 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10729 if test "$GCC" = yes; then
10730 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10731 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10732 # if the path contains ";" then we assume it to be the separator
10733 # otherwise default to the standard path separator (i.e. ":") - it is
10734 # assumed that no part of a normal pathname contains ";" but that should
10735 # okay in the real world where ";" in dirpaths is itself problematic.
10736 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10741 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10743 need_lib_prefix=unknown
10744 hardcode_into_libs=no
10746 # when you set need_version to no, make sure it does not cause -set_version
10747 # flags to be left without arguments
10748 need_version=unknown
10753 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10754 shlibpath_var=LIBPATH
10756 # AIX 3 has no versioning support, so we append a major version to the name.
10757 soname_spec='${libname}${release}${shared_ext}$major'
10764 hardcode_into_libs=yes
10765 if test "$host_cpu" = ia64; then
10766 # AIX 5 supports IA64
10767 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10768 shlibpath_var=LD_LIBRARY_PATH
10770 # With GCC up to 2.95.x, collect2 would create an import file
10771 # for dependence libraries. The import file would start with
10772 # the line `#! .'. This would cause the generated library to
10773 # depend on `.', always an invalid library. This was fixed in
10774 # development snapshots of GCC prior to 3.0.
10776 aix4 | aix4.[01] | aix4.[01].*)
10777 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10779 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10782 can_build_shared=no
10786 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10787 # soname into executable. Probably we can add versioning support to
10788 # collect2, so additional links can be useful in future.
10789 if test "$aix_use_runtimelinking" = yes; then
10790 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10791 # instead of lib<name>.a to let people know that these are not
10792 # typical AIX shared libraries.
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10795 # We preserve .a as extension for shared libraries through AIX4.2
10796 # and later when we are not doing run time linking.
10797 library_names_spec='${libname}${release}.a $libname.a'
10798 soname_spec='${libname}${release}${shared_ext}$major'
10800 shlibpath_var=LIBPATH
10805 library_names_spec='$libname.ixlibrary $libname.a'
10806 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10807 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'
10811 library_names_spec='${libname}${shared_ext}'
10812 dynamic_linker="$host_os ld.so"
10813 shlibpath_var=LIBRARY_PATH
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820 soname_spec='${libname}${release}${shared_ext}$major'
10821 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10822 shlibpath_var=LD_LIBRARY_PATH
10823 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10824 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10825 # the default ld.so.conf also contains /usr/contrib/lib and
10826 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10827 # libtool to hard-code these into programs
10830 cygwin* | mingw* | pw32*)
10831 version_type=windows
10836 case $GCC,$host_os in
10837 yes,cygwin* | yes,mingw* | yes,pw32*)
10838 library_names_spec='$libname.dll.a'
10839 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10840 postinstall_cmds='base_file=`basename \${file}`~
10841 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10842 dldir=$destdir/`dirname \$dlpath`~
10843 test -d \$dldir || mkdir -p \$dldir~
10844 $install_prog $dir/$dlname \$dldir/$dlname'
10845 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10846 dlpath=$dir/\$dldll~
10848 shlibpath_overrides_runpath=yes
10852 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10853 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10854 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10857 # MinGW DLLs use traditional 'lib' prefix
10858 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10859 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10860 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10861 # It is most probably a Windows format PATH printed by
10862 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10863 # path with ; separators, and with drive letters. We can handle the
10864 # drive letters (cygwin fileutils understands them), so leave them,
10865 # especially as we might pass files found there to a mingw objdump,
10866 # which wouldn't understand a cygwinified path. Ahh.
10867 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10869 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10873 # pw32 DLLs use 'pw' prefix rather than 'lib'
10874 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10880 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10883 dynamic_linker='Win32 ld.exe'
10884 # FIXME: first we should search . and the directory the executable is in
10888 darwin* | rhapsody*)
10889 dynamic_linker="$host_os dyld"
10890 version_type=darwin
10893 # FIXME: Relying on posixy $() will cause problems for
10894 # cross-compilation, but unfortunately the echo tests do not
10895 # yet detect zsh echo's removal of \ escapes.
10896 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10897 soname_spec='${libname}${release}${major}$shared_ext'
10898 shlibpath_overrides_runpath=yes
10899 shlibpath_var=DYLD_LIBRARY_PATH
10900 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10901 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10902 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10903 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"`
10905 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10913 soname_spec='${libname}${release}${shared_ext}$major'
10914 shlibpath_var=LD_LIBRARY_PATH
10922 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10923 version_type=freebsd-$objformat
10924 case $version_type in
10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10935 shlibpath_var=LD_LIBRARY_PATH
10938 shlibpath_overrides_runpath=yes
10940 freebsd3.01* | freebsdelf3.01*)
10941 shlibpath_overrides_runpath=yes
10942 hardcode_into_libs=yes
10945 shlibpath_overrides_runpath=no
10946 hardcode_into_libs=yes
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10956 soname_spec='${libname}${release}${shared_ext}$major'
10957 shlibpath_var=LD_LIBRARY_PATH
10958 hardcode_into_libs=yes
10961 hpux9* | hpux10* | hpux11*)
10962 # Give a soname corresponding to the major version so that dld.sl refuses to
10963 # link against other versions.
10967 case "$host_cpu" in
10970 hardcode_into_libs=yes
10971 dynamic_linker="$host_os dld.so"
10972 shlibpath_var=LD_LIBRARY_PATH
10973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975 soname_spec='${libname}${release}${shared_ext}$major'
10976 if test "X$HPUX_IA64_MODE" = X32; then
10977 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10979 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10981 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10985 hardcode_into_libs=yes
10986 dynamic_linker="$host_os dld.sl"
10987 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10988 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990 soname_spec='${libname}${release}${shared_ext}$major'
10991 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10992 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10996 dynamic_linker="$host_os dld.sl"
10997 shlibpath_var=SHLIB_PATH
10998 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11000 soname_spec='${libname}${release}${shared_ext}$major'
11003 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11004 postinstall_cmds='chmod 555 $lib'
11007 irix5* | irix6* | nonstopux*)
11009 nonstopux*) version_type=nonstopux ;;
11011 if test "$lt_cv_prog_gnu_ld" = yes; then
11019 soname_spec='${libname}${release}${shared_ext}$major'
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11022 irix5* | nonstopux*)
11023 libsuff= shlibsuff=
11026 case $LD in # libtool.m4 will add one of these switches to LD
11027 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11028 libsuff= shlibsuff= libmagic=32-bit;;
11029 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11030 libsuff=32 shlibsuff=N32 libmagic=N32;;
11031 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11032 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11033 *) libsuff= shlibsuff= libmagic=never-match;;
11037 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11038 shlibpath_overrides_runpath=no
11039 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11040 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11041 hardcode_into_libs=yes
11044 # No shared lib support for Linux oldld, aout, or coff.
11045 linux*oldld* | linux*aout* | linux*coff*)
11049 # This must be Linux ELF.
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11055 soname_spec='${libname}${release}${shared_ext}$major'
11056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 shlibpath_overrides_runpath=no
11059 # This implies no fast_install, which is unacceptable.
11060 # Some rework will be needed to allow for fast_install
11061 # before this can be enabled.
11062 hardcode_into_libs=yes
11064 # We used to test for /lib/ld.so.1 and disable shared libraries on
11065 # powerpc, because MkLinux only supported shared libraries with the
11066 # GNU dynamic linker. Since this was broken with cross compilers,
11067 # most powerpc-linux boxes support dynamic linking these days and
11068 # people can always --disable-shared, the test was removed, and we
11069 # assume the GNU/Linux dynamic linker is in use.
11070 dynamic_linker='GNU/Linux ld.so'
11077 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11080 dynamic_linker='NetBSD (a.out) ld.so'
11082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11083 soname_spec='${libname}${release}${shared_ext}$major'
11084 dynamic_linker='NetBSD ld.elf_so'
11086 shlibpath_var=LD_LIBRARY_PATH
11087 shlibpath_overrides_runpath=yes
11088 hardcode_into_libs=yes
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094 shlibpath_var=LD_LIBRARY_PATH
11095 shlibpath_overrides_runpath=yes
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103 soname_spec='${libname}${release}${shared_ext}$major'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 shlibpath_overrides_runpath=yes
11112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11117 openbsd2.[89] | openbsd2.[89].*)
11118 shlibpath_overrides_runpath=no
11121 shlibpath_overrides_runpath=yes
11125 shlibpath_overrides_runpath=yes
11130 libname_spec='$name'
11133 library_names_spec='$libname${shared_ext} $libname.a'
11134 dynamic_linker='OS/2 ld.exe'
11135 shlibpath_var=LIBPATH
11138 osf3* | osf4* | osf5*)
11142 soname_spec='${libname}${release}${shared_ext}$major'
11143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11144 shlibpath_var=LD_LIBRARY_PATH
11145 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11146 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11151 soname_spec='${libname}${release}${shared_ext}$major'
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153 shlibpath_var=LD_LIBRARY_PATH
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161 soname_spec='${libname}${release}${shared_ext}$major'
11162 shlibpath_var=LD_LIBRARY_PATH
11163 shlibpath_overrides_runpath=yes
11164 hardcode_into_libs=yes
11165 # ldd complains unless libraries are executable
11166 postinstall_cmds='chmod +x $lib'
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11172 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 shlibpath_overrides_runpath=yes
11175 if test "$with_gnu_ld" = yes; then
11181 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11184 soname_spec='${libname}${release}${shared_ext}$major'
11185 shlibpath_var=LD_LIBRARY_PATH
11186 case $host_vendor in
11188 shlibpath_overrides_runpath=no
11190 export_dynamic_flag_spec='${wl}-Blargedynsym'
11191 runpath_var=LD_RUN_PATH
11199 shlibpath_overrides_runpath=no
11200 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11206 if test -d /usr/nec ;then
11208 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11209 soname_spec='$libname${shared_ext}.$major'
11210 shlibpath_var=LD_LIBRARY_PATH
11216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11217 soname_spec='${libname}${release}${shared_ext}$major'
11218 shlibpath_var=LD_LIBRARY_PATH
11225 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11226 echo "${ECHO_T}$dynamic_linker" >&6
11227 test "$dynamic_linker" = no && can_build_shared=no
11229 if test "x$enable_dlopen" != xyes; then
11230 enable_dlopen=unknown
11231 enable_dlopen_self=unknown
11232 enable_dlopen_self_static=unknown
11239 lt_cv_dlopen="load_add_on"
11241 lt_cv_dlopen_self=yes
11245 lt_cv_dlopen="LoadLibrary"
11250 lt_cv_dlopen="dlopen"
11255 # if libdl is installed we need to link against it
11256 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11257 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11258 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11261 ac_check_lib_save_LIBS=$LIBS
11263 cat >conftest.$ac_ext <<_ACEOF
11264 #line $LINENO "configure"
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h. */
11271 /* Override any gcc2 internal prototype to avoid an error. */
11275 /* We use char because int might match the return type of a gcc2
11276 builtin and then its argument prototype would still apply. */
11286 rm -f conftest.$ac_objext conftest$ac_exeext
11287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11288 (eval $ac_link) 2>&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } &&
11292 { ac_try='test -s conftest$ac_exeext'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; }; then
11298 ac_cv_lib_dl_dlopen=yes
11300 echo "$as_me: failed program was:" >&5
11301 sed 's/^/| /' conftest.$ac_ext >&5
11303 ac_cv_lib_dl_dlopen=no
11305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11306 LIBS=$ac_check_lib_save_LIBS
11308 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11309 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11310 if test $ac_cv_lib_dl_dlopen = yes; then
11311 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11314 lt_cv_dlopen="dyld"
11316 lt_cv_dlopen_self=yes
11323 echo "$as_me:$LINENO: checking for shl_load" >&5
11324 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11325 if test "${ac_cv_func_shl_load+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11328 cat >conftest.$ac_ext <<_ACEOF
11329 #line $LINENO "configure"
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 /* System header to define __stub macros and hopefully few prototypes,
11336 which can conflict with char shl_load (); below.
11337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11338 <limits.h> exists even on freestanding compilers. */
11340 # include <limits.h>
11342 # include <assert.h>
11344 /* Override any gcc2 internal prototype to avoid an error. */
11349 /* We use char because int might match the return type of a gcc2
11350 builtin and then its argument prototype would still apply. */
11352 /* The GNU C library defines this for functions which it implements
11353 to always fail with ENOSYS. Some functions are actually named
11354 something starting with __ and the normal name is an alias. */
11355 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11358 char (*f) () = shl_load;
11367 return f != shl_load;
11372 rm -f conftest.$ac_objext conftest$ac_exeext
11373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11374 (eval $ac_link) 2>&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } &&
11378 { ac_try='test -s conftest$ac_exeext'
11379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380 (eval $ac_try) 2>&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; }; then
11384 ac_cv_func_shl_load=yes
11386 echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11389 ac_cv_func_shl_load=no
11391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11393 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11394 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11395 if test $ac_cv_func_shl_load = yes; then
11396 lt_cv_dlopen="shl_load"
11398 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11399 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11400 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11403 ac_check_lib_save_LIBS=$LIBS
11405 cat >conftest.$ac_ext <<_ACEOF
11406 #line $LINENO "configure"
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11413 /* Override any gcc2 internal prototype to avoid an error. */
11417 /* We use char because int might match the return type of a gcc2
11418 builtin and then its argument prototype would still apply. */
11428 rm -f conftest.$ac_objext conftest$ac_exeext
11429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11430 (eval $ac_link) 2>&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } &&
11434 { ac_try='test -s conftest$ac_exeext'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; }; then
11440 ac_cv_lib_dld_shl_load=yes
11442 echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11445 ac_cv_lib_dld_shl_load=no
11447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11448 LIBS=$ac_check_lib_save_LIBS
11450 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11451 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11452 if test $ac_cv_lib_dld_shl_load = yes; then
11453 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11455 echo "$as_me:$LINENO: checking for dlopen" >&5
11456 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11457 if test "${ac_cv_func_dlopen+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 cat >conftest.$ac_ext <<_ACEOF
11461 #line $LINENO "configure"
11464 cat confdefs.h >>conftest.$ac_ext
11465 cat >>conftest.$ac_ext <<_ACEOF
11466 /* end confdefs.h. */
11467 /* System header to define __stub macros and hopefully few prototypes,
11468 which can conflict with char dlopen (); below.
11469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11470 <limits.h> exists even on freestanding compilers. */
11472 # include <limits.h>
11474 # include <assert.h>
11476 /* Override any gcc2 internal prototype to avoid an error. */
11481 /* We use char because int might match the return type of a gcc2
11482 builtin and then its argument prototype would still apply. */
11484 /* The GNU C library defines this for functions which it implements
11485 to always fail with ENOSYS. Some functions are actually named
11486 something starting with __ and the normal name is an alias. */
11487 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11490 char (*f) () = dlopen;
11499 return f != dlopen;
11504 rm -f conftest.$ac_objext conftest$ac_exeext
11505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11506 (eval $ac_link) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } &&
11510 { ac_try='test -s conftest$ac_exeext'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 ac_cv_func_dlopen=yes
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 ac_cv_func_dlopen=no
11523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11525 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11526 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11527 if test $ac_cv_func_dlopen = yes; then
11528 lt_cv_dlopen="dlopen"
11530 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11531 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11532 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11535 ac_check_lib_save_LIBS=$LIBS
11537 cat >conftest.$ac_ext <<_ACEOF
11538 #line $LINENO "configure"
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11545 /* Override any gcc2 internal prototype to avoid an error. */
11549 /* We use char because int might match the return type of a gcc2
11550 builtin and then its argument prototype would still apply. */
11560 rm -f conftest.$ac_objext conftest$ac_exeext
11561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11562 (eval $ac_link) 2>&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } &&
11566 { ac_try='test -s conftest$ac_exeext'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; }; then
11572 ac_cv_lib_dl_dlopen=yes
11574 echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11577 ac_cv_lib_dl_dlopen=no
11579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11580 LIBS=$ac_check_lib_save_LIBS
11582 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11583 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11584 if test $ac_cv_lib_dl_dlopen = yes; then
11585 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11587 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11588 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11589 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 ac_check_lib_save_LIBS=$LIBS
11593 LIBS="-lsvld $LIBS"
11594 cat >conftest.$ac_ext <<_ACEOF
11595 #line $LINENO "configure"
11598 cat confdefs.h >>conftest.$ac_ext
11599 cat >>conftest.$ac_ext <<_ACEOF
11600 /* end confdefs.h. */
11602 /* Override any gcc2 internal prototype to avoid an error. */
11606 /* We use char because int might match the return type of a gcc2
11607 builtin and then its argument prototype would still apply. */
11617 rm -f conftest.$ac_objext conftest$ac_exeext
11618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11619 (eval $ac_link) 2>&5
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); } &&
11623 { ac_try='test -s conftest$ac_exeext'
11624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625 (eval $ac_try) 2>&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; }; then
11629 ac_cv_lib_svld_dlopen=yes
11631 echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11634 ac_cv_lib_svld_dlopen=no
11636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11637 LIBS=$ac_check_lib_save_LIBS
11639 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11640 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11641 if test $ac_cv_lib_svld_dlopen = yes; then
11642 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11644 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11645 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11646 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11649 ac_check_lib_save_LIBS=$LIBS
11651 cat >conftest.$ac_ext <<_ACEOF
11652 #line $LINENO "configure"
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h. */
11659 /* Override any gcc2 internal prototype to avoid an error. */
11663 /* We use char because int might match the return type of a gcc2
11664 builtin and then its argument prototype would still apply. */
11674 rm -f conftest.$ac_objext conftest$ac_exeext
11675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11676 (eval $ac_link) 2>&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } &&
11680 { ac_try='test -s conftest$ac_exeext'
11681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682 (eval $ac_try) 2>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; }; then
11686 ac_cv_lib_dld_dld_link=yes
11688 echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11691 ac_cv_lib_dld_dld_link=no
11693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11694 LIBS=$ac_check_lib_save_LIBS
11696 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11697 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11698 if test $ac_cv_lib_dld_dld_link = yes; then
11699 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11720 if test "x$lt_cv_dlopen" != xno; then
11726 case $lt_cv_dlopen in
11728 save_CPPFLAGS="$CPPFLAGS"
11729 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11731 save_LDFLAGS="$LDFLAGS"
11732 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11735 LIBS="$lt_cv_dlopen_libs $LIBS"
11737 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11738 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11739 if test "${lt_cv_dlopen_self+set}" = set; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11742 if test "$cross_compiling" = yes; then :
11743 lt_cv_dlopen_self=cross
11745 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11746 lt_status=$lt_dlunknown
11747 cat > conftest.$ac_ext <<EOF
11748 #line 11748 "configure"
11749 #include "confdefs.h"
11758 # define LT_DLGLOBAL RTLD_GLOBAL
11761 # define LT_DLGLOBAL DL_GLOBAL
11763 # define LT_DLGLOBAL 0
11767 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11768 find out it does not work in some platform. */
11769 #ifndef LT_DLLAZY_OR_NOW
11771 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11774 # define LT_DLLAZY_OR_NOW DL_LAZY
11777 # define LT_DLLAZY_OR_NOW RTLD_NOW
11780 # define LT_DLLAZY_OR_NOW DL_NOW
11782 # define LT_DLLAZY_OR_NOW 0
11790 extern "C" void exit (int);
11793 void fnord() { int i=42;}
11796 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11797 int status = $lt_dlunknown;
11801 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11802 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11803 /* dlclose (self); */
11809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11810 (eval $ac_link) 2>&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11814 (./conftest; exit; ) 2>/dev/null
11816 case x$lt_status in
11817 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11818 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11819 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11822 # compilation failed
11823 lt_cv_dlopen_self=no
11830 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11831 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11833 if test "x$lt_cv_dlopen_self" = xyes; then
11834 LDFLAGS="$LDFLAGS $link_static_flag"
11835 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11836 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11837 if test "${lt_cv_dlopen_self_static+set}" = set; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
11840 if test "$cross_compiling" = yes; then :
11841 lt_cv_dlopen_self_static=cross
11843 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11844 lt_status=$lt_dlunknown
11845 cat > conftest.$ac_ext <<EOF
11846 #line 11846 "configure"
11847 #include "confdefs.h"
11856 # define LT_DLGLOBAL RTLD_GLOBAL
11859 # define LT_DLGLOBAL DL_GLOBAL
11861 # define LT_DLGLOBAL 0
11865 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11866 find out it does not work in some platform. */
11867 #ifndef LT_DLLAZY_OR_NOW
11869 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11872 # define LT_DLLAZY_OR_NOW DL_LAZY
11875 # define LT_DLLAZY_OR_NOW RTLD_NOW
11878 # define LT_DLLAZY_OR_NOW DL_NOW
11880 # define LT_DLLAZY_OR_NOW 0
11888 extern "C" void exit (int);
11891 void fnord() { int i=42;}
11894 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11895 int status = $lt_dlunknown;
11899 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11900 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11901 /* dlclose (self); */
11907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11908 (eval $ac_link) 2>&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11912 (./conftest; exit; ) 2>/dev/null
11914 case x$lt_status in
11915 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11916 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11917 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11920 # compilation failed
11921 lt_cv_dlopen_self_static=no
11928 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11929 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11932 CPPFLAGS="$save_CPPFLAGS"
11933 LDFLAGS="$save_LDFLAGS"
11938 case $lt_cv_dlopen_self in
11939 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11940 *) enable_dlopen_self=unknown ;;
11943 case $lt_cv_dlopen_self_static in
11944 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11945 *) enable_dlopen_self_static=unknown ;;
11950 # The else clause should only fire when bootstrapping the
11951 # libtool distribution, otherwise you forgot to ship ltmain.sh
11952 # with your package, and you will get complaints that there are
11953 # no rules to generate ltmain.sh.
11954 if test -f "$ltmain"; then
11955 # See if we are running on zsh, and set the options which allow our commands through
11956 # without removal of \ escapes.
11957 if test -n "${ZSH_VERSION+set}" ; then
11958 setopt NO_GLOB_SUBST
11960 # Now quote all the things that may contain metacharacters while being
11961 # careful not to overquote the AC_SUBSTed values. We take copies of the
11962 # variables and quote the copies for generation of the libtool script.
11963 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11964 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11965 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11966 deplibs_check_method reload_flag reload_cmds need_locks \
11967 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11968 lt_cv_sys_global_symbol_to_c_name_address \
11969 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11970 old_postinstall_cmds old_postuninstall_cmds \
11974 lt_prog_compiler_wl_CXX \
11975 lt_prog_compiler_pic_CXX \
11976 lt_prog_compiler_static_CXX \
11977 lt_prog_compiler_no_builtin_flag_CXX \
11978 export_dynamic_flag_spec_CXX \
11979 thread_safe_flag_spec_CXX \
11980 whole_archive_flag_spec_CXX \
11981 enable_shared_with_static_runtimes_CXX \
11982 old_archive_cmds_CXX \
11983 old_archive_from_new_cmds_CXX \
11984 predep_objects_CXX \
11985 postdep_objects_CXX \
11988 compiler_lib_search_path_CXX \
11990 archive_expsym_cmds_CXX \
11991 postinstall_cmds_CXX \
11992 postuninstall_cmds_CXX \
11993 old_archive_from_expsyms_cmds_CXX \
11994 allow_undefined_flag_CXX \
11995 no_undefined_flag_CXX \
11996 export_symbols_cmds_CXX \
11997 hardcode_libdir_flag_spec_CXX \
11998 hardcode_libdir_flag_spec_ld_CXX \
11999 hardcode_libdir_separator_CXX \
12000 hardcode_automatic_CXX \
12002 module_expsym_cmds_CXX \
12003 lt_cv_prog_compiler_c_o_CXX \
12004 exclude_expsyms_CXX \
12005 include_expsyms_CXX; do
12008 old_archive_cmds_CXX | \
12009 old_archive_from_new_cmds_CXX | \
12010 archive_cmds_CXX | \
12011 archive_expsym_cmds_CXX | \
12012 module_cmds_CXX | \
12013 module_expsym_cmds_CXX | \
12014 old_archive_from_expsyms_cmds_CXX | \
12015 export_symbols_cmds_CXX | \
12016 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12017 postinstall_cmds | postuninstall_cmds | \
12018 old_postinstall_cmds | old_postuninstall_cmds | \
12019 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12020 # Double-quote double-evaled strings.
12021 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12024 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12030 *'\$0 --fallback-echo"')
12031 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12037 cat <<__EOF__ >> "$cfgfile"
12038 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12040 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12042 # Shell to use when invoking shell scripts.
12045 # Whether or not to build shared libraries.
12046 build_libtool_libs=$enable_shared
12048 # Whether or not to build static libraries.
12049 build_old_libs=$enable_static
12051 # Whether or not to add -lc for building shared libraries.
12052 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12054 # Whether or not to disallow shared libs when runtime libs are static
12055 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12057 # Whether or not to optimize for fast installation.
12058 fast_install=$enable_fast_install
12061 host_alias=$host_alias
12064 # An echo program that does not interpret backslashes.
12069 AR_FLAGS=$lt_AR_FLAGS
12074 # A language-specific compiler.
12075 CC=$lt_compiler_CXX
12077 # Is the compiler the GNU C compiler?
12083 # The linker used to build libraries.
12086 # Whether we need hard or soft links.
12089 # A BSD-compatible nm program.
12092 # A symbol stripping program
12095 # Used to examine libraries when file_magic_cmd begins "file"
12096 MAGIC_CMD=$MAGIC_CMD
12098 # Used on cygwin: DLL creation program.
12101 # Used on cygwin: object dumper.
12104 # Used on cygwin: assembler.
12107 # The name of the directory that contains temporary libtool files.
12110 # How to create reloadable object files.
12111 reload_flag=$lt_reload_flag
12112 reload_cmds=$lt_reload_cmds
12114 # How to pass a linker flag through the compiler.
12115 wl=$lt_lt_prog_compiler_wl_CXX
12117 # Object file suffix (normally "o").
12118 objext="$ac_objext"
12120 # Old archive suffix (normally "a").
12123 # Shared library suffix (normally ".so").
12126 # Executable file suffix (normally "").
12129 # Additional compiler flags for building library objects.
12130 pic_flag=$lt_lt_prog_compiler_pic_CXX
12133 # What is the maximum length of a command?
12134 max_cmd_len=$lt_cv_sys_max_cmd_len
12136 # Does compiler simultaneously support -c and -o options?
12137 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12139 # Must we lock files when doing compilation ?
12140 need_locks=$lt_need_locks
12142 # Do we need the lib prefix for modules?
12143 need_lib_prefix=$need_lib_prefix
12145 # Do we need a version for libraries?
12146 need_version=$need_version
12148 # Whether dlopen is supported.
12149 dlopen_support=$enable_dlopen
12151 # Whether dlopen of programs is supported.
12152 dlopen_self=$enable_dlopen_self
12154 # Whether dlopen of statically linked programs is supported.
12155 dlopen_self_static=$enable_dlopen_self_static
12157 # Compiler flag to prevent dynamic linking.
12158 link_static_flag=$lt_lt_prog_compiler_static_CXX
12160 # Compiler flag to turn off builtin functions.
12161 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12163 # Compiler flag to allow reflexive dlopens.
12164 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12166 # Compiler flag to generate shared objects directly from archives.
12167 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12169 # Compiler flag to generate thread-safe objects.
12170 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12172 # Library versioning type.
12173 version_type=$version_type
12175 # Format of library name prefix.
12176 libname_spec=$lt_libname_spec
12178 # List of archive names. First name is the real one, the rest are links.
12179 # The last name is the one that the linker finds with -lNAME.
12180 library_names_spec=$lt_library_names_spec
12182 # The coded name of the library, if different from the real name.
12183 soname_spec=$lt_soname_spec
12185 # Commands used to build and install an old-style archive.
12187 old_archive_cmds=$lt_old_archive_cmds_CXX
12188 old_postinstall_cmds=$lt_old_postinstall_cmds
12189 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12191 # Create an old-style archive from a shared archive.
12192 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12194 # Create a temporary old-style archive to link instead of a shared archive.
12195 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12197 # Commands used to build and install a shared archive.
12198 archive_cmds=$lt_archive_cmds_CXX
12199 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12200 postinstall_cmds=$lt_postinstall_cmds
12201 postuninstall_cmds=$lt_postuninstall_cmds
12203 # Commands used to build a loadable module (assumed same as above if empty)
12204 module_cmds=$lt_module_cmds_CXX
12205 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12207 # Commands to strip libraries.
12208 old_striplib=$lt_old_striplib
12209 striplib=$lt_striplib
12211 # Dependencies to place before the objects being linked to create a
12213 predep_objects=$lt_predep_objects_CXX
12215 # Dependencies to place after the objects being linked to create a
12217 postdep_objects=$lt_postdep_objects_CXX
12219 # Dependencies to place before the objects being linked to create a
12221 predeps=$lt_predeps_CXX
12223 # Dependencies to place after the objects being linked to create a
12225 postdeps=$lt_postdeps_CXX
12227 # The library search path used internally by the compiler when linking
12228 # a shared library.
12229 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12231 # Method to check whether dependent libraries are shared objects.
12232 deplibs_check_method=$lt_deplibs_check_method
12234 # Command to use when deplibs_check_method == file_magic.
12235 file_magic_cmd=$lt_file_magic_cmd
12237 # Flag that allows shared libraries with undefined symbols to be built.
12238 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12240 # Flag that forces no undefined symbols.
12241 no_undefined_flag=$lt_no_undefined_flag_CXX
12243 # Commands used to finish a libtool library installation in a directory.
12244 finish_cmds=$lt_finish_cmds
12246 # Same as above, but a single script fragment to be evaled but not shown.
12247 finish_eval=$lt_finish_eval
12249 # Take the output of nm and produce a listing of raw symbols and C names.
12250 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12252 # Transform the output of nm in a proper C declaration
12253 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12255 # Transform the output of nm in a C name address pair
12256 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12258 # This is the shared library runtime path variable.
12259 runpath_var=$runpath_var
12261 # This is the shared library path variable.
12262 shlibpath_var=$shlibpath_var
12264 # Is shlibpath searched before the hard-coded library search path?
12265 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12267 # How to hardcode a shared library path into an executable.
12268 hardcode_action=$hardcode_action_CXX
12270 # Whether we should hardcode library paths into libraries.
12271 hardcode_into_libs=$hardcode_into_libs
12273 # Flag to hardcode \$libdir into a binary during linking.
12274 # This must work even if \$libdir does not exist.
12275 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12277 # If ld is used when linking, flag to hardcode \$libdir into
12278 # a binary during linking. This must work even if \$libdir does
12280 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12282 # Whether we need a single -rpath flag with a separated argument.
12283 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12285 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12286 # resulting binary.
12287 hardcode_direct=$hardcode_direct_CXX
12289 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12290 # resulting binary.
12291 hardcode_minus_L=$hardcode_minus_L_CXX
12293 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12294 # the resulting binary.
12295 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12297 # Set to yes if building a shared library automatically hardcodes DIR into the library
12298 # and all subsequent libraries and executables linked against it.
12299 hardcode_automatic=$hardcode_automatic_CXX
12301 # Variables whose values should be saved in libtool wrapper scripts and
12302 # restored at relink time.
12303 variables_saved_for_relink="$variables_saved_for_relink"
12305 # Whether libtool must link a program against all its dependency libraries.
12306 link_all_deplibs=$link_all_deplibs_CXX
12308 # Compile-time system search path for libraries
12309 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12311 # Run-time system search path for libraries
12312 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12314 # Fix the shell variable \$srcfile for the compiler.
12315 fix_srcfile_path="$fix_srcfile_path_CXX"
12317 # Set to yes if exported symbols are required.
12318 always_export_symbols=$always_export_symbols_CXX
12320 # The commands to list exported symbols.
12321 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12323 # The commands to extract the exported symbol list from a shared archive.
12324 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12326 # Symbols that should not be listed in the preloaded symbols.
12327 exclude_expsyms=$lt_exclude_expsyms_CXX
12329 # Symbols that must always be exported.
12330 include_expsyms=$lt_include_expsyms_CXX
12332 # ### END LIBTOOL TAG CONFIG: $tagname
12338 # If there is no Makefile yet, we rely on a make rule to execute
12339 # `config.status --recheck' to rerun these tests and create the
12340 # libtool script then.
12341 test -f Makefile && make "$ltmain"
12346 ac_cpp='$CPP $CPPFLAGS'
12347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12355 with_gnu_ldcxx=$with_gnu_ld
12356 with_gnu_ld=$lt_save_with_gnu_ld
12357 lt_cv_path_LDCXX=$lt_cv_path_LD
12358 lt_cv_path_LD=$lt_save_path_LD
12359 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12360 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12368 if test -n "$F77" && test "X$F77" != "Xno"; then
12371 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12372 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12373 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12376 archive_cmds_need_lc_F77=no
12377 allow_undefined_flag_F77=
12378 always_export_symbols_F77=no
12379 archive_expsym_cmds_F77=
12380 export_dynamic_flag_spec_F77=
12381 hardcode_direct_F77=no
12382 hardcode_libdir_flag_spec_F77=
12383 hardcode_libdir_flag_spec_ld_F77=
12384 hardcode_libdir_separator_F77=
12385 hardcode_minus_L_F77=no
12386 hardcode_automatic_F77=no
12388 module_expsym_cmds_F77=
12389 link_all_deplibs_F77=unknown
12390 old_archive_cmds_F77=$old_archive_cmds
12391 no_undefined_flag_F77=
12392 whole_archive_flag_spec_F77=
12393 enable_shared_with_static_runtimes_F77=no
12395 # Source file extension for f77 test sources.
12398 # Object file extension for compiled f77 test sources.
12402 # Code to be used in simple compile tests
12403 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12405 # Code to be used in simple link tests
12406 lt_simple_link_test_code=" program t\n end\n"
12408 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12410 # If no C compiler was specified, use CC.
12413 # Allow CC to be a program name with arguments.
12417 # Allow CC to be a program name with arguments.
12422 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12424 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12425 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12426 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12427 echo "${ECHO_T}$can_build_shared" >&6
12429 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12430 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12431 test "$can_build_shared" = "no" && enable_shared=no
12433 # On AIX, shared libraries and static libraries use the same namespace, and
12434 # are all built from PIC.
12437 test "$enable_shared" = yes && enable_static=no
12438 if test -n "$RANLIB"; then
12439 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12440 postinstall_cmds='$RANLIB $lib'
12444 test "$enable_shared" = yes && enable_static=no
12447 echo "$as_me:$LINENO: result: $enable_shared" >&5
12448 echo "${ECHO_T}$enable_shared" >&6
12450 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12451 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12452 # Make sure either enable_shared or enable_static is yes.
12453 test "$enable_shared" = yes || enable_static=yes
12454 echo "$as_me:$LINENO: result: $enable_static" >&5
12455 echo "${ECHO_T}$enable_static" >&6
12457 test "$ld_shlibs_F77" = no && can_build_shared=no
12462 lt_prog_compiler_wl_F77=
12463 lt_prog_compiler_pic_F77=
12464 lt_prog_compiler_static_F77=
12466 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12467 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12469 if test "$GCC" = yes; then
12470 lt_prog_compiler_wl_F77='-Wl,'
12471 lt_prog_compiler_static_F77='-static'
12475 # All AIX code is PIC.
12476 if test "$host_cpu" = ia64; then
12477 # AIX 5 now supports IA64 processor
12478 lt_prog_compiler_static_F77='-Bstatic'
12483 # FIXME: we need at least 68020 code to build shared libraries, but
12484 # adding the `-m68020' flag to GCC prevents building anything better,
12486 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12489 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12490 # PIC is the default for these OSes.
12493 mingw* | pw32* | os2*)
12494 # This hack is so that the source file can tell whether it is being
12495 # built for inclusion in a dll (and should export symbols for example).
12496 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12499 darwin* | rhapsody*)
12500 # PIC is the default on this platform
12501 # Common symbols not allowed in MH_DYLIB files
12502 lt_prog_compiler_pic_F77='-fno-common'
12506 # Just because we use GCC doesn't mean we suddenly get shared libraries
12507 # on systems that don't support them.
12508 lt_prog_compiler_can_build_shared_F77=no
12513 if test -d /usr/nec; then
12514 lt_prog_compiler_pic_F77=-Kconform_pic
12519 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12520 # not for PA HP-UX.
12521 case "$host_cpu" in
12526 lt_prog_compiler_pic_F77='-fPIC'
12532 lt_prog_compiler_pic_F77='-fPIC'
12536 # PORTME Check for flag to pass linker flags through the system compiler.
12539 lt_prog_compiler_wl_F77='-Wl,'
12540 if test "$host_cpu" = ia64; then
12541 # AIX 5 now supports IA64 processor
12542 lt_prog_compiler_static_F77='-Bstatic'
12544 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12548 mingw* | pw32* | os2*)
12549 # This hack is so that the source file can tell whether it is being
12550 # built for inclusion in a dll (and should export symbols for example).
12551 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12554 hpux9* | hpux10* | hpux11*)
12555 lt_prog_compiler_wl_F77='-Wl,'
12556 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12557 # not for PA HP-UX.
12558 case "$host_cpu" in
12563 lt_prog_compiler_pic_F77='+Z'
12566 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12567 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12570 irix5* | irix6* | nonstopux*)
12571 lt_prog_compiler_wl_F77='-Wl,'
12572 # PIC (with -KPIC) is the default.
12573 lt_prog_compiler_static_F77='-non_shared'
12577 lt_prog_compiler_pic_F77='-KPIC'
12578 lt_prog_compiler_static_F77='-Bstatic'
12584 lt_prog_compiler_wl_F77='-Wl,'
12585 lt_prog_compiler_pic_F77='-KPIC'
12586 lt_prog_compiler_static_F77='-static'
12589 lt_prog_compiler_wl_F77='-Wl,'
12590 # All Alpha code is PIC.
12591 lt_prog_compiler_static_F77='-non_shared'
12596 osf3* | osf4* | osf5*)
12597 lt_prog_compiler_wl_F77='-Wl,'
12598 # All OSF/1 code is PIC.
12599 lt_prog_compiler_static_F77='-non_shared'
12603 lt_prog_compiler_pic_F77='-Kpic'
12604 lt_prog_compiler_static_F77='-dn'
12608 lt_prog_compiler_wl_F77='-Wl,'
12609 lt_prog_compiler_pic_F77='-KPIC'
12610 lt_prog_compiler_static_F77='-Bstatic'
12614 lt_prog_compiler_wl_F77='-Qoption ld '
12615 lt_prog_compiler_pic_F77='-PIC'
12616 lt_prog_compiler_static_F77='-Bstatic'
12619 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12620 lt_prog_compiler_wl_F77='-Wl,'
12621 lt_prog_compiler_pic_F77='-KPIC'
12622 lt_prog_compiler_static_F77='-Bstatic'
12626 if test -d /usr/nec ;then
12627 lt_prog_compiler_pic_F77='-Kconform_pic'
12628 lt_prog_compiler_static_F77='-Bstatic'
12633 lt_prog_compiler_pic_F77='-pic'
12634 lt_prog_compiler_static_F77='-Bstatic'
12638 lt_prog_compiler_can_build_shared_F77=no
12643 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12644 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12647 # Check to make sure the PIC flag actually works.
12649 if test -n "$lt_prog_compiler_pic_F77"; then
12650 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12651 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12652 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12653 echo $ECHO_N "(cached) $ECHO_C" >&6
12655 lt_prog_compiler_pic_works_F77=no
12656 ac_outfile=conftest.$ac_objext
12657 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12658 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12659 # Insert the option either (1) after the last *FLAGS variable, or
12660 # (2) before a word containing "conftest.", or (3) at the end.
12661 # Note that $ac_compile itself does not contain backslashes and begins
12662 # with a dollar sign (not a hyphen), so the echo should work correctly.
12663 # The option is referenced via a variable to avoid confusing sed.
12664 lt_compile=`echo "$ac_compile" | $SED \
12665 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12667 -e 's:$: $lt_compiler_flag:'`
12668 (eval echo "\"\$as_me:12668: $lt_compile\"" >&5)
12669 (eval "$lt_compile" 2>conftest.err)
12671 cat conftest.err >&5
12672 echo "$as_me:12672: \$? = $ac_status" >&5
12673 if (exit $ac_status) && test -s "$ac_outfile"; then
12674 # The compiler can only warn and ignore the option if not recognized
12675 # So say no if there are warnings
12676 if test ! -s conftest.err; then
12677 lt_prog_compiler_pic_works_F77=yes
12683 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12684 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12686 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12687 case $lt_prog_compiler_pic_F77 in
12689 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12692 lt_prog_compiler_pic_F77=
12693 lt_prog_compiler_can_build_shared_F77=no
12698 # For platforms which do not support PIC, -DPIC is meaningless:
12700 lt_prog_compiler_pic_F77=
12703 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12707 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12708 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12709 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12712 lt_cv_prog_compiler_c_o_F77=no
12713 $rm -r conftest 2>/dev/null
12717 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12719 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12720 # that will create temporary files in the current directory regardless of
12721 # the output directory. Thus, making CWD read-only will cause this test
12722 # to fail, enabling locking or at least warning the user not to do parallel
12726 lt_compiler_flag="-o out/conftest2.$ac_objext"
12727 # Insert the option either (1) after the last *FLAGS variable, or
12728 # (2) before a word containing "conftest.", or (3) at the end.
12729 # Note that $ac_compile itself does not contain backslashes and begins
12730 # with a dollar sign (not a hyphen), so the echo should work correctly.
12731 lt_compile=`echo "$ac_compile" | $SED \
12732 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12734 -e 's:$: $lt_compiler_flag:'`
12735 (eval echo "\"\$as_me:12735: $lt_compile\"" >&5)
12736 (eval "$lt_compile" 2>out/conftest.err)
12738 cat out/conftest.err >&5
12739 echo "$as_me:12739: \$? = $ac_status" >&5
12740 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12742 # The compiler can only warn and ignore the option if not recognized
12743 # So say no if there are warnings
12744 if test ! -s out/conftest.err; then
12745 lt_cv_prog_compiler_c_o_F77=yes
12749 $rm conftest* out/*
12756 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12757 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12760 hard_links="nottested"
12761 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12762 # do not overwrite the value of need_locks provided by the user
12763 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12764 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12767 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12769 ln conftest.a conftest.b 2>&5 || hard_links=no
12770 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12771 echo "$as_me:$LINENO: result: $hard_links" >&5
12772 echo "${ECHO_T}$hard_links" >&6
12773 if test "$hard_links" = no; then
12774 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12775 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12782 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12783 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12786 allow_undefined_flag_F77=
12787 enable_shared_with_static_runtimes_F77=no
12789 archive_expsym_cmds_F77=
12790 old_archive_From_new_cmds_F77=
12791 old_archive_from_expsyms_cmds_F77=
12792 export_dynamic_flag_spec_F77=
12793 whole_archive_flag_spec_F77=
12794 thread_safe_flag_spec_F77=
12795 hardcode_libdir_flag_spec_F77=
12796 hardcode_libdir_flag_spec_ld_F77=
12797 hardcode_libdir_separator_F77=
12798 hardcode_direct_F77=no
12799 hardcode_minus_L_F77=no
12800 hardcode_shlibpath_var_F77=unsupported
12801 link_all_deplibs_F77=unknown
12802 hardcode_automatic_F77=no
12804 module_expsym_cmds_F77=
12805 always_export_symbols_F77=no
12806 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12807 # include_expsyms should be a list of space-separated symbols to be *always*
12808 # included in the symbol list
12809 include_expsyms_F77=
12810 # exclude_expsyms can be an extended regexp of symbols to exclude
12811 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12812 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12813 # as well as any symbol that contains `d'.
12814 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12815 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12816 # platforms (ab)use it in PIC code, but their linkers get confused if
12817 # the symbol is explicitly referenced. Since portable code cannot
12818 # rely on this symbol name, it's probably fine to never include it in
12819 # preloaded symbol tables.
12820 extract_expsyms_cmds=
12823 cygwin* | mingw* | pw32*)
12824 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12825 # When not using gcc, we currently assume that we are using
12826 # Microsoft Visual C++.
12827 if test "$GCC" != yes; then
12837 if test "$with_gnu_ld" = yes; then
12838 # If archive_cmds runs LD, not CC, wlarc should be empty
12841 # See if GNU ld supports shared libraries.
12843 aix3* | aix4* | aix5*)
12844 # On AIX/PPC, the GNU linker is very broken
12845 if test "$host_cpu" != ia64; then
12849 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12850 *** to be unable to reliably create shared libraries on AIX.
12851 *** Therefore, libtool is disabling shared libraries support. If you
12852 *** really care for shared libraries, you may want to modify your PATH
12853 *** so that a non-GNU linker is found, and then restart.
12860 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)'
12861 hardcode_libdir_flag_spec_F77='-L$libdir'
12862 hardcode_minus_L_F77=yes
12864 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12865 # that the semantics of dynamic libraries on AmigaOS, at least up
12866 # to version 4, is to share data among multiple programs linked
12867 # with the same dynamic library. Since this doesn't match the
12868 # behavior of shared libraries on other platforms, we can't use
12874 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12875 allow_undefined_flag_F77=unsupported
12876 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12877 # support --undefined. This deserves some investigation. FIXME
12878 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12884 cygwin* | mingw* | pw32*)
12885 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12886 # as there is no search path for DLLs.
12887 hardcode_libdir_flag_spec_F77='-L$libdir'
12888 allow_undefined_flag_F77=unsupported
12889 always_export_symbols_F77=no
12890 enable_shared_with_static_runtimes_F77=yes
12891 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12893 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12894 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12895 # If the export-symbols file already is a .def file (1st line
12896 # is EXPORTS), use it as is; otherwise, prepend...
12897 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12898 cp $export_symbols $output_objdir/$soname.def;
12900 echo EXPORTS > $output_objdir/$soname.def;
12901 cat $export_symbols >> $output_objdir/$soname.def;
12903 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12910 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12911 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12914 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12915 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12920 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12924 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12925 *** create shared libraries on Solaris systems. Therefore, libtool
12926 *** is disabling shared libraries support. We urge you to upgrade GNU
12927 *** binutils to release 2.9.1 or newer. Another option is to modify
12928 *** your PATH or compiler configuration so that the native linker is
12929 *** used, and then restart.
12932 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12933 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12934 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12941 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12943 hardcode_direct_F77=yes
12944 hardcode_shlibpath_var_F77=no
12948 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12949 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12950 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12957 if test "$ld_shlibs_F77" = yes; then
12958 runpath_var=LD_RUN_PATH
12959 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12960 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12961 # ancient GNU ld didn't support --whole-archive et. al.
12962 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12963 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12965 whole_archive_flag_spec_F77=
12969 # PORTME fill in a description of your system's linker (not GNU ld)
12972 allow_undefined_flag_F77=unsupported
12973 always_export_symbols_F77=yes
12974 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'
12975 # Note: this linker hardcodes the directories in LIBPATH if there
12976 # are no directories specified by -L.
12977 hardcode_minus_L_F77=yes
12978 if test "$GCC" = yes && test -z "$link_static_flag"; then
12979 # Neither direct hardcoding nor static linking is supported with a
12981 hardcode_direct_F77=unsupported
12986 if test "$host_cpu" = ia64; then
12987 # On IA64, the linker does run time linking by default, so we don't
12988 # have to do anything special.
12989 aix_use_runtimelinking=no
12990 exp_sym_flag='-Bexport'
12993 # If we're using GNU nm, then we don't want the "-C" option.
12994 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12995 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12996 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'
12998 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'
13000 aix_use_runtimelinking=no
13002 # Test if we are trying to use run time linking or normal
13003 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13004 # need to do runtime linking.
13005 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13006 for ld_flag in $LDFLAGS; do
13007 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13008 aix_use_runtimelinking=yes
13014 exp_sym_flag='-bexport'
13015 no_entry_flag='-bnoentry'
13018 # When large executables or shared objects are built, AIX ld can
13019 # have problems creating the table of contents. If linking a library
13020 # or program results in "error TOC overflow" add -mminimal-toc to
13021 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13022 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13024 archive_cmds_F77=''
13025 hardcode_direct_F77=yes
13026 hardcode_libdir_separator_F77=':'
13027 link_all_deplibs_F77=yes
13029 if test "$GCC" = yes; then
13030 case $host_os in aix4.012|aix4.012.*)
13031 # We only want to do this on AIX 4.2 and lower, the check
13032 # below for broken collect2 doesn't work under 4.3+
13033 collect2name=`${CC} -print-prog-name=collect2`
13034 if test -f "$collect2name" && \
13035 strings "$collect2name" | grep resolve_lib_name >/dev/null
13037 # We have reworked collect2
13038 hardcode_direct_F77=yes
13040 # We have old collect2
13041 hardcode_direct_F77=unsupported
13042 # It fails to find uninstalled libraries when the uninstalled
13043 # path is not listed in the libpath. Setting hardcode_minus_L
13044 # to unsupported forces relinking
13045 hardcode_minus_L_F77=yes
13046 hardcode_libdir_flag_spec_F77='-L$libdir'
13047 hardcode_libdir_separator_F77=
13050 shared_flag='-shared'
13053 if test "$host_cpu" = ia64; then
13054 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13055 # chokes on -Wl,-G. The following line is correct:
13058 if test "$aix_use_runtimelinking" = yes; then
13059 shared_flag='${wl}-G'
13061 shared_flag='${wl}-bM:SRE'
13066 # It seems that -bexpall does not export symbols beginning with
13067 # underscore (_), so it is better to generate a list of symbols to export.
13068 always_export_symbols_F77=yes
13069 if test "$aix_use_runtimelinking" = yes; then
13070 # Warning - without using the other runtime loading flags (-brtl),
13071 # -berok will link without error, but may produce a broken library.
13072 allow_undefined_flag_F77='-berok'
13073 # Determine the default libpath from the value encoded in an empty executable.
13074 cat >conftest.$ac_ext <<_ACEOF
13079 rm -f conftest.$ac_objext conftest$ac_exeext
13080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13081 (eval $ac_link) 2>&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } &&
13085 { ac_try='test -s conftest$ac_exeext'
13086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087 (eval $ac_try) 2>&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; }; then
13092 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13094 # Check for a 64-bit object if we didn't find anything.
13095 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; }
13098 echo "$as_me: failed program was:" >&5
13099 sed 's/^/| /' conftest.$ac_ext >&5
13102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13103 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13105 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13106 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"
13108 if test "$host_cpu" = ia64; then
13109 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13110 allow_undefined_flag_F77="-z nodefs"
13111 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"
13113 # Determine the default libpath from the value encoded in an empty executable.
13114 cat >conftest.$ac_ext <<_ACEOF
13119 rm -f conftest.$ac_objext conftest$ac_exeext
13120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13121 (eval $ac_link) 2>&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); } &&
13125 { ac_try='test -s conftest$ac_exeext'
13126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13127 (eval $ac_try) 2>&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); }; }; then
13132 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13134 # Check for a 64-bit object if we didn't find anything.
13135 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; }
13138 echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13143 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13145 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13146 # Warning - without using the other run time loading flags,
13147 # -berok will link without error, but may produce a broken library.
13148 no_undefined_flag_F77=' ${wl}-bernotok'
13149 allow_undefined_flag_F77=' ${wl}-berok'
13150 # -bexpall does not export symbols beginning with underscore (_)
13151 always_export_symbols_F77=yes
13152 # Exported symbols can be pulled into shared objects from archives
13153 whole_archive_flag_spec_F77=' '
13154 archive_cmds_need_lc_F77=yes
13155 # This is similar to how AIX traditionally builds it's shared libraries.
13156 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'
13162 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)'
13163 hardcode_libdir_flag_spec_F77='-L$libdir'
13164 hardcode_minus_L_F77=yes
13165 # see comment about different semantics on the GNU ld section
13170 export_dynamic_flag_spec_F77=-rdynamic
13173 cygwin* | mingw* | pw32*)
13174 # When not using gcc, we currently assume that we are using
13175 # Microsoft Visual C++.
13176 # hardcode_libdir_flag_spec is actually meaningless, as there is
13177 # no search path for DLLs.
13178 hardcode_libdir_flag_spec_F77=' '
13179 allow_undefined_flag_F77=unsupported
13180 # Tell ltmain to make .lib files, not .a files.
13182 # Tell ltmain to make .dll files, not .so files.
13184 # FIXME: Setting linknames here is a bad hack.
13185 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13186 # The linker will automatically build a .lib file if we build a DLL.
13187 old_archive_From_new_cmds_F77='true'
13188 # FIXME: Should let the user specify the lib program.
13189 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13190 fix_srcfile_path='`cygpath -w "$srcfile"`'
13191 enable_shared_with_static_runtimes_F77=yes
13194 darwin* | rhapsody*)
13195 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13196 archive_cmds_need_lc_F77=no
13198 rhapsody* | darwin1.[012])
13199 allow_undefined_flag_F77='-undefined suppress'
13202 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13205 # FIXME: Relying on posixy $() will cause problems for
13206 # cross-compilation, but unfortunately the echo tests do not
13207 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13208 # `"' quotes if we put them in here... so don't!
13209 lt_int_apple_cc_single_mod=no
13210 output_verbose_link_cmd='echo'
13211 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13212 lt_int_apple_cc_single_mod=yes
13214 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13215 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13217 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'
13219 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13220 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13221 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13222 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}'
13224 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}'
13226 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}'
13227 hardcode_direct_F77=no
13228 hardcode_automatic_F77=yes
13229 hardcode_shlibpath_var_F77=unsupported
13230 whole_archive_flag_spec_F77='-all_load $convenience'
13231 link_all_deplibs_F77=yes
13236 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13237 hardcode_libdir_flag_spec_F77='-L$libdir'
13238 hardcode_shlibpath_var_F77=no
13245 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13246 # support. Future versions do this automatically, but an explicit c++rt0.o
13247 # does not break anything, and helps significantly (at the cost of a little
13250 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13251 hardcode_libdir_flag_spec_F77='-R$libdir'
13252 hardcode_direct_F77=yes
13253 hardcode_shlibpath_var_F77=no
13256 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13258 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13259 hardcode_direct_F77=yes
13260 hardcode_minus_L_F77=yes
13261 hardcode_shlibpath_var_F77=no
13264 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13266 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13267 hardcode_libdir_flag_spec_F77='-R$libdir'
13268 hardcode_direct_F77=yes
13269 hardcode_shlibpath_var_F77=no
13273 if test "$GCC" = yes; then
13274 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'
13276 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'
13278 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13279 hardcode_libdir_separator_F77=:
13280 hardcode_direct_F77=yes
13282 # hardcode_minus_L: Not really in the search PATH,
13283 # but as the default location of the library.
13284 hardcode_minus_L_F77=yes
13285 export_dynamic_flag_spec_F77='${wl}-E'
13289 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13290 case "$host_cpu" in
13292 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13295 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13299 case "$host_cpu" in
13301 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13304 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13308 if test "$with_gnu_ld" = no; then
13309 case "$host_cpu" in
13311 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13312 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13313 hardcode_libdir_separator_F77=:
13314 hardcode_direct_F77=no
13315 hardcode_shlibpath_var_F77=no
13318 hardcode_libdir_flag_spec_F77='-L$libdir'
13319 hardcode_direct_F77=no
13320 hardcode_shlibpath_var_F77=no
13322 # hardcode_minus_L: Not really in the search PATH,
13323 # but as the default location of the library.
13324 hardcode_minus_L_F77=yes
13327 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13328 hardcode_libdir_separator_F77=:
13329 hardcode_direct_F77=yes
13330 export_dynamic_flag_spec_F77='${wl}-E'
13332 # hardcode_minus_L: Not really in the search PATH,
13333 # but as the default location of the library.
13334 hardcode_minus_L_F77=yes
13340 irix5* | irix6* | nonstopux*)
13341 if test "$GCC" = yes; then
13342 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'
13344 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'
13345 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13347 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13348 hardcode_libdir_separator_F77=:
13349 link_all_deplibs_F77=yes
13353 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13354 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13356 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13358 hardcode_libdir_flag_spec_F77='-R$libdir'
13359 hardcode_direct_F77=yes
13360 hardcode_shlibpath_var_F77=no
13364 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13365 hardcode_direct_F77=yes
13366 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13367 hardcode_libdir_separator_F77=:
13368 hardcode_shlibpath_var_F77=no
13372 hardcode_direct_F77=yes
13373 hardcode_shlibpath_var_F77=no
13374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13375 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13376 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13377 export_dynamic_flag_spec_F77='${wl}-E'
13380 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13381 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13382 hardcode_libdir_flag_spec_F77='-R$libdir'
13385 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13386 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13393 hardcode_libdir_flag_spec_F77='-L$libdir'
13394 hardcode_minus_L_F77=yes
13395 allow_undefined_flag_F77=unsupported
13396 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'
13397 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13401 if test "$GCC" = yes; then
13402 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13403 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'
13405 allow_undefined_flag_F77=' -expect_unresolved \*'
13406 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'
13408 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13409 hardcode_libdir_separator_F77=:
13412 osf4* | osf5*) # as osf3* with the addition of -msym flag
13413 if test "$GCC" = yes; then
13414 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13415 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'
13416 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13418 allow_undefined_flag_F77=' -expect_unresolved \*'
13419 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'
13420 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~
13421 $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'
13423 # Both c and cxx compiler support -rpath directly
13424 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13426 hardcode_libdir_separator_F77=:
13430 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13431 hardcode_shlibpath_var_F77=no
13432 export_dynamic_flag_spec_F77='${wl}-Bexport'
13433 runpath_var=LD_RUN_PATH
13434 hardcode_runpath_var=yes
13438 no_undefined_flag_F77=' -z text'
13439 if test "$GCC" = yes; then
13440 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13441 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13442 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13444 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13445 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13446 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13448 hardcode_libdir_flag_spec_F77='-R$libdir'
13449 hardcode_shlibpath_var_F77=no
13451 solaris2.[0-5] | solaris2.[0-5].*) ;;
13452 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13453 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13455 link_all_deplibs_F77=yes
13459 if test "x$host_vendor" = xsequent; then
13460 # Use $CC to link under sequent, because it throws in some extra .o
13461 # files that make .init and .fini sections work.
13462 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13464 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13466 hardcode_libdir_flag_spec_F77='-L$libdir'
13467 hardcode_direct_F77=yes
13468 hardcode_minus_L_F77=yes
13469 hardcode_shlibpath_var_F77=no
13473 case $host_vendor in
13475 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13476 hardcode_direct_F77=yes # is this really true???
13479 ## LD is ld it makes a PLAMLIB
13480 ## CC just makes a GrossModule.
13481 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13482 reload_cmds_F77='$CC -r -o $output$reload_objs'
13483 hardcode_direct_F77=no
13486 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13487 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13490 runpath_var='LD_RUN_PATH'
13491 hardcode_shlibpath_var_F77=no
13495 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13496 hardcode_shlibpath_var_F77=no
13497 export_dynamic_flag_spec_F77='-Bexport'
13501 if test -d /usr/nec; then
13502 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13503 hardcode_shlibpath_var_F77=no
13504 runpath_var=LD_RUN_PATH
13505 hardcode_runpath_var=yes
13511 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13512 hardcode_direct_F77=yes
13513 hardcode_minus_L_F77=no
13514 hardcode_shlibpath_var_F77=no
13515 hardcode_runpath_var=yes
13516 runpath_var=LD_RUN_PATH
13519 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13520 no_undefined_flag_F77='${wl}-z ${wl}text'
13521 if test "$GCC" = yes; then
13522 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13524 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13526 runpath_var='LD_RUN_PATH'
13527 hardcode_shlibpath_var_F77=no
13531 no_undefined_flag_F77=' -z text'
13532 # $CC -shared without GNU ld will not create a library from C++
13533 # object files and a static libstdc++, better avoid it by now
13534 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13535 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13536 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13537 hardcode_libdir_flag_spec_F77=
13538 hardcode_shlibpath_var_F77=no
13539 runpath_var='LD_RUN_PATH'
13543 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13544 hardcode_libdir_flag_spec_F77='-L$libdir'
13545 hardcode_shlibpath_var_F77=no
13554 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13555 echo "${ECHO_T}$ld_shlibs_F77" >&6
13556 test "$ld_shlibs_F77" = no && can_build_shared=no
13558 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13559 if test "$GCC" = yes; then
13560 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13564 # Do we need to explicitly link libc?
13566 case "x$archive_cmds_need_lc_F77" in
13568 # Assume -lc should be added
13569 archive_cmds_need_lc_F77=yes
13571 if test "$enable_shared" = yes && test "$GCC" = yes; then
13572 case $archive_cmds_F77 in
13574 # FIXME: we may have to deal with multi-command sequences.
13577 # Test whether the compiler implicitly links with -lc since on some
13578 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13579 # to ld, don't add -lc before -lgcc.
13580 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13581 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13583 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13586 (eval $ac_compile) 2>&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } 2>conftest.err; then
13592 libobjs=conftest.$ac_objext
13594 wl=$lt_prog_compiler_wl_F77
13600 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13601 allow_undefined_flag_F77=
13602 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13603 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }
13608 archive_cmds_need_lc_F77=no
13610 archive_cmds_need_lc_F77=yes
13612 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13614 cat conftest.err 1>&5
13617 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13618 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13625 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13626 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13627 hardcode_action_F77=
13628 if test -n "$hardcode_libdir_flag_spec_F77" || \
13629 test -n "$runpath_var F77" || \
13630 test "X$hardcode_automatic_F77"="Xyes" ; then
13632 # We can hardcode non-existant directories.
13633 if test "$hardcode_direct_F77" != no &&
13634 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13635 # have to relink, otherwise we might link with an installed library
13636 # when we should be linking with a yet-to-be-installed one
13637 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13638 test "$hardcode_minus_L_F77" != no; then
13639 # Linking always hardcodes the temporary library directory.
13640 hardcode_action_F77=relink
13642 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13643 hardcode_action_F77=immediate
13646 # We cannot hardcode anything, or else we can only hardcode existing
13648 hardcode_action_F77=unsupported
13650 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13651 echo "${ECHO_T}$hardcode_action_F77" >&6
13653 if test "$hardcode_action_F77" = relink; then
13654 # Fast installation is not supported
13655 enable_fast_install=no
13656 elif test "$shlibpath_overrides_runpath" = yes ||
13657 test "$enable_shared" = no; then
13658 # Fast installation is not necessary
13659 enable_fast_install=needless
13664 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13665 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13666 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13667 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13668 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13669 echo "$as_me:$LINENO: result: yes" >&5
13670 echo "${ECHO_T}yes" >&6
13672 # FIXME - insert some real tests, host_os isn't really good enough
13675 if test -n "$STRIP" ; then
13676 striplib="$STRIP -x"
13677 echo "$as_me:$LINENO: result: yes" >&5
13678 echo "${ECHO_T}yes" >&6
13680 echo "$as_me:$LINENO: result: no" >&5
13681 echo "${ECHO_T}no" >&6
13685 echo "$as_me:$LINENO: result: no" >&5
13686 echo "${ECHO_T}no" >&6
13691 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13692 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13693 library_names_spec=
13694 libname_spec='lib$name'
13698 postuninstall_cmds=
13702 shlibpath_overrides_runpath=unknown
13704 dynamic_linker="$host_os ld.so"
13705 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13706 if test "$GCC" = yes; then
13707 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13708 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13709 # if the path contains ";" then we assume it to be the separator
13710 # otherwise default to the standard path separator (i.e. ":") - it is
13711 # assumed that no part of a normal pathname contains ";" but that should
13712 # okay in the real world where ";" in dirpaths is itself problematic.
13713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13718 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13720 need_lib_prefix=unknown
13721 hardcode_into_libs=no
13723 # when you set need_version to no, make sure it does not cause -set_version
13724 # flags to be left without arguments
13725 need_version=unknown
13730 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13731 shlibpath_var=LIBPATH
13733 # AIX 3 has no versioning support, so we append a major version to the name.
13734 soname_spec='${libname}${release}${shared_ext}$major'
13741 hardcode_into_libs=yes
13742 if test "$host_cpu" = ia64; then
13743 # AIX 5 supports IA64
13744 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13745 shlibpath_var=LD_LIBRARY_PATH
13747 # With GCC up to 2.95.x, collect2 would create an import file
13748 # for dependence libraries. The import file would start with
13749 # the line `#! .'. This would cause the generated library to
13750 # depend on `.', always an invalid library. This was fixed in
13751 # development snapshots of GCC prior to 3.0.
13753 aix4 | aix4.[01] | aix4.[01].*)
13754 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13756 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13759 can_build_shared=no
13763 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13764 # soname into executable. Probably we can add versioning support to
13765 # collect2, so additional links can be useful in future.
13766 if test "$aix_use_runtimelinking" = yes; then
13767 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13768 # instead of lib<name>.a to let people know that these are not
13769 # typical AIX shared libraries.
13770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13772 # We preserve .a as extension for shared libraries through AIX4.2
13773 # and later when we are not doing run time linking.
13774 library_names_spec='${libname}${release}.a $libname.a'
13775 soname_spec='${libname}${release}${shared_ext}$major'
13777 shlibpath_var=LIBPATH
13782 library_names_spec='$libname.ixlibrary $libname.a'
13783 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13784 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'
13788 library_names_spec='${libname}${shared_ext}'
13789 dynamic_linker="$host_os ld.so"
13790 shlibpath_var=LIBRARY_PATH
13796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13797 soname_spec='${libname}${release}${shared_ext}$major'
13798 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13799 shlibpath_var=LD_LIBRARY_PATH
13800 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13801 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13802 # the default ld.so.conf also contains /usr/contrib/lib and
13803 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13804 # libtool to hard-code these into programs
13807 cygwin* | mingw* | pw32*)
13808 version_type=windows
13813 case $GCC,$host_os in
13814 yes,cygwin* | yes,mingw* | yes,pw32*)
13815 library_names_spec='$libname.dll.a'
13816 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13817 postinstall_cmds='base_file=`basename \${file}`~
13818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13819 dldir=$destdir/`dirname \$dlpath`~
13820 test -d \$dldir || mkdir -p \$dldir~
13821 $install_prog $dir/$dlname \$dldir/$dlname'
13822 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13823 dlpath=$dir/\$dldll~
13825 shlibpath_overrides_runpath=yes
13829 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13830 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13831 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13834 # MinGW DLLs use traditional 'lib' prefix
13835 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13836 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13837 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13838 # It is most probably a Windows format PATH printed by
13839 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13840 # path with ; separators, and with drive letters. We can handle the
13841 # drive letters (cygwin fileutils understands them), so leave them,
13842 # especially as we might pass files found there to a mingw objdump,
13843 # which wouldn't understand a cygwinified path. Ahh.
13844 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13850 # pw32 DLLs use 'pw' prefix rather than 'lib'
13851 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13857 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13860 dynamic_linker='Win32 ld.exe'
13861 # FIXME: first we should search . and the directory the executable is in
13865 darwin* | rhapsody*)
13866 dynamic_linker="$host_os dyld"
13867 version_type=darwin
13870 # FIXME: Relying on posixy $() will cause problems for
13871 # cross-compilation, but unfortunately the echo tests do not
13872 # yet detect zsh echo's removal of \ escapes.
13873 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13874 soname_spec='${libname}${release}${major}$shared_ext'
13875 shlibpath_overrides_runpath=yes
13876 shlibpath_var=DYLD_LIBRARY_PATH
13877 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13878 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13879 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13880 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"`
13882 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13890 soname_spec='${libname}${release}${shared_ext}$major'
13891 shlibpath_var=LD_LIBRARY_PATH
13899 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13900 version_type=freebsd-$objformat
13901 case $version_type in
13903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13908 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13912 shlibpath_var=LD_LIBRARY_PATH
13915 shlibpath_overrides_runpath=yes
13917 freebsd3.01* | freebsdelf3.01*)
13918 shlibpath_overrides_runpath=yes
13919 hardcode_into_libs=yes
13922 shlibpath_overrides_runpath=no
13923 hardcode_into_libs=yes
13932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13933 soname_spec='${libname}${release}${shared_ext}$major'
13934 shlibpath_var=LD_LIBRARY_PATH
13935 hardcode_into_libs=yes
13938 hpux9* | hpux10* | hpux11*)
13939 # Give a soname corresponding to the major version so that dld.sl refuses to
13940 # link against other versions.
13944 case "$host_cpu" in
13947 hardcode_into_libs=yes
13948 dynamic_linker="$host_os dld.so"
13949 shlibpath_var=LD_LIBRARY_PATH
13950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13952 soname_spec='${libname}${release}${shared_ext}$major'
13953 if test "X$HPUX_IA64_MODE" = X32; then
13954 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13956 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13962 hardcode_into_libs=yes
13963 dynamic_linker="$host_os dld.sl"
13964 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13967 soname_spec='${libname}${release}${shared_ext}$major'
13968 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13973 dynamic_linker="$host_os dld.sl"
13974 shlibpath_var=SHLIB_PATH
13975 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13977 soname_spec='${libname}${release}${shared_ext}$major'
13980 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13981 postinstall_cmds='chmod 555 $lib'
13984 irix5* | irix6* | nonstopux*)
13986 nonstopux*) version_type=nonstopux ;;
13988 if test "$lt_cv_prog_gnu_ld" = yes; then
13996 soname_spec='${libname}${release}${shared_ext}$major'
13997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13999 irix5* | nonstopux*)
14000 libsuff= shlibsuff=
14003 case $LD in # libtool.m4 will add one of these switches to LD
14004 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14005 libsuff= shlibsuff= libmagic=32-bit;;
14006 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14007 libsuff=32 shlibsuff=N32 libmagic=N32;;
14008 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14009 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14010 *) libsuff= shlibsuff= libmagic=never-match;;
14014 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14015 shlibpath_overrides_runpath=no
14016 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14017 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14018 hardcode_into_libs=yes
14021 # No shared lib support for Linux oldld, aout, or coff.
14022 linux*oldld* | linux*aout* | linux*coff*)
14026 # This must be Linux ELF.
14031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14032 soname_spec='${libname}${release}${shared_ext}$major'
14033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14034 shlibpath_var=LD_LIBRARY_PATH
14035 shlibpath_overrides_runpath=no
14036 # This implies no fast_install, which is unacceptable.
14037 # Some rework will be needed to allow for fast_install
14038 # before this can be enabled.
14039 hardcode_into_libs=yes
14041 # We used to test for /lib/ld.so.1 and disable shared libraries on
14042 # powerpc, because MkLinux only supported shared libraries with the
14043 # GNU dynamic linker. Since this was broken with cross compilers,
14044 # most powerpc-linux boxes support dynamic linking these days and
14045 # people can always --disable-shared, the test was removed, and we
14046 # assume the GNU/Linux dynamic linker is in use.
14047 dynamic_linker='GNU/Linux ld.so'
14054 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14057 dynamic_linker='NetBSD (a.out) ld.so'
14059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14060 soname_spec='${libname}${release}${shared_ext}$major'
14061 dynamic_linker='NetBSD ld.elf_so'
14063 shlibpath_var=LD_LIBRARY_PATH
14064 shlibpath_overrides_runpath=yes
14065 hardcode_into_libs=yes
14070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14071 shlibpath_var=LD_LIBRARY_PATH
14072 shlibpath_overrides_runpath=yes
14079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14080 soname_spec='${libname}${release}${shared_ext}$major'
14081 shlibpath_var=LD_LIBRARY_PATH
14082 shlibpath_overrides_runpath=yes
14089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14091 shlibpath_var=LD_LIBRARY_PATH
14092 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14094 openbsd2.[89] | openbsd2.[89].*)
14095 shlibpath_overrides_runpath=no
14098 shlibpath_overrides_runpath=yes
14102 shlibpath_overrides_runpath=yes
14107 libname_spec='$name'
14110 library_names_spec='$libname${shared_ext} $libname.a'
14111 dynamic_linker='OS/2 ld.exe'
14112 shlibpath_var=LIBPATH
14115 osf3* | osf4* | osf5*)
14119 soname_spec='${libname}${release}${shared_ext}$major'
14120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14121 shlibpath_var=LD_LIBRARY_PATH
14122 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14123 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14128 soname_spec='${libname}${release}${shared_ext}$major'
14129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14130 shlibpath_var=LD_LIBRARY_PATH
14137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14138 soname_spec='${libname}${release}${shared_ext}$major'
14139 shlibpath_var=LD_LIBRARY_PATH
14140 shlibpath_overrides_runpath=yes
14141 hardcode_into_libs=yes
14142 # ldd complains unless libraries are executable
14143 postinstall_cmds='chmod +x $lib'
14148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14149 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14150 shlibpath_var=LD_LIBRARY_PATH
14151 shlibpath_overrides_runpath=yes
14152 if test "$with_gnu_ld" = yes; then
14158 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14161 soname_spec='${libname}${release}${shared_ext}$major'
14162 shlibpath_var=LD_LIBRARY_PATH
14163 case $host_vendor in
14165 shlibpath_overrides_runpath=no
14167 export_dynamic_flag_spec='${wl}-Blargedynsym'
14168 runpath_var=LD_RUN_PATH
14176 shlibpath_overrides_runpath=no
14177 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14183 if test -d /usr/nec ;then
14185 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14186 soname_spec='$libname${shared_ext}.$major'
14187 shlibpath_var=LD_LIBRARY_PATH
14193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14194 soname_spec='${libname}${release}${shared_ext}$major'
14195 shlibpath_var=LD_LIBRARY_PATH
14202 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14203 echo "${ECHO_T}$dynamic_linker" >&6
14204 test "$dynamic_linker" = no && can_build_shared=no
14207 # The else clause should only fire when bootstrapping the
14208 # libtool distribution, otherwise you forgot to ship ltmain.sh
14209 # with your package, and you will get complaints that there are
14210 # no rules to generate ltmain.sh.
14211 if test -f "$ltmain"; then
14212 # See if we are running on zsh, and set the options which allow our commands through
14213 # without removal of \ escapes.
14214 if test -n "${ZSH_VERSION+set}" ; then
14215 setopt NO_GLOB_SUBST
14217 # Now quote all the things that may contain metacharacters while being
14218 # careful not to overquote the AC_SUBSTed values. We take copies of the
14219 # variables and quote the copies for generation of the libtool script.
14220 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14221 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14222 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14223 deplibs_check_method reload_flag reload_cmds need_locks \
14224 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14225 lt_cv_sys_global_symbol_to_c_name_address \
14226 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14227 old_postinstall_cmds old_postuninstall_cmds \
14231 lt_prog_compiler_wl_F77 \
14232 lt_prog_compiler_pic_F77 \
14233 lt_prog_compiler_static_F77 \
14234 lt_prog_compiler_no_builtin_flag_F77 \
14235 export_dynamic_flag_spec_F77 \
14236 thread_safe_flag_spec_F77 \
14237 whole_archive_flag_spec_F77 \
14238 enable_shared_with_static_runtimes_F77 \
14239 old_archive_cmds_F77 \
14240 old_archive_from_new_cmds_F77 \
14241 predep_objects_F77 \
14242 postdep_objects_F77 \
14245 compiler_lib_search_path_F77 \
14247 archive_expsym_cmds_F77 \
14248 postinstall_cmds_F77 \
14249 postuninstall_cmds_F77 \
14250 old_archive_from_expsyms_cmds_F77 \
14251 allow_undefined_flag_F77 \
14252 no_undefined_flag_F77 \
14253 export_symbols_cmds_F77 \
14254 hardcode_libdir_flag_spec_F77 \
14255 hardcode_libdir_flag_spec_ld_F77 \
14256 hardcode_libdir_separator_F77 \
14257 hardcode_automatic_F77 \
14259 module_expsym_cmds_F77 \
14260 lt_cv_prog_compiler_c_o_F77 \
14261 exclude_expsyms_F77 \
14262 include_expsyms_F77; do
14265 old_archive_cmds_F77 | \
14266 old_archive_from_new_cmds_F77 | \
14267 archive_cmds_F77 | \
14268 archive_expsym_cmds_F77 | \
14269 module_cmds_F77 | \
14270 module_expsym_cmds_F77 | \
14271 old_archive_from_expsyms_cmds_F77 | \
14272 export_symbols_cmds_F77 | \
14273 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14274 postinstall_cmds | postuninstall_cmds | \
14275 old_postinstall_cmds | old_postuninstall_cmds | \
14276 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14277 # Double-quote double-evaled strings.
14278 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14281 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14287 *'\$0 --fallback-echo"')
14288 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14294 cat <<__EOF__ >> "$cfgfile"
14295 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14297 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14299 # Shell to use when invoking shell scripts.
14302 # Whether or not to build shared libraries.
14303 build_libtool_libs=$enable_shared
14305 # Whether or not to build static libraries.
14306 build_old_libs=$enable_static
14308 # Whether or not to add -lc for building shared libraries.
14309 build_libtool_need_lc=$archive_cmds_need_lc_F77
14311 # Whether or not to disallow shared libs when runtime libs are static
14312 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14314 # Whether or not to optimize for fast installation.
14315 fast_install=$enable_fast_install
14318 host_alias=$host_alias
14321 # An echo program that does not interpret backslashes.
14326 AR_FLAGS=$lt_AR_FLAGS
14331 # A language-specific compiler.
14332 CC=$lt_compiler_F77
14334 # Is the compiler the GNU C compiler?
14340 # The linker used to build libraries.
14343 # Whether we need hard or soft links.
14346 # A BSD-compatible nm program.
14349 # A symbol stripping program
14352 # Used to examine libraries when file_magic_cmd begins "file"
14353 MAGIC_CMD=$MAGIC_CMD
14355 # Used on cygwin: DLL creation program.
14358 # Used on cygwin: object dumper.
14361 # Used on cygwin: assembler.
14364 # The name of the directory that contains temporary libtool files.
14367 # How to create reloadable object files.
14368 reload_flag=$lt_reload_flag
14369 reload_cmds=$lt_reload_cmds
14371 # How to pass a linker flag through the compiler.
14372 wl=$lt_lt_prog_compiler_wl_F77
14374 # Object file suffix (normally "o").
14375 objext="$ac_objext"
14377 # Old archive suffix (normally "a").
14380 # Shared library suffix (normally ".so").
14383 # Executable file suffix (normally "").
14386 # Additional compiler flags for building library objects.
14387 pic_flag=$lt_lt_prog_compiler_pic_F77
14390 # What is the maximum length of a command?
14391 max_cmd_len=$lt_cv_sys_max_cmd_len
14393 # Does compiler simultaneously support -c and -o options?
14394 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14396 # Must we lock files when doing compilation ?
14397 need_locks=$lt_need_locks
14399 # Do we need the lib prefix for modules?
14400 need_lib_prefix=$need_lib_prefix
14402 # Do we need a version for libraries?
14403 need_version=$need_version
14405 # Whether dlopen is supported.
14406 dlopen_support=$enable_dlopen
14408 # Whether dlopen of programs is supported.
14409 dlopen_self=$enable_dlopen_self
14411 # Whether dlopen of statically linked programs is supported.
14412 dlopen_self_static=$enable_dlopen_self_static
14414 # Compiler flag to prevent dynamic linking.
14415 link_static_flag=$lt_lt_prog_compiler_static_F77
14417 # Compiler flag to turn off builtin functions.
14418 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14420 # Compiler flag to allow reflexive dlopens.
14421 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14423 # Compiler flag to generate shared objects directly from archives.
14424 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14426 # Compiler flag to generate thread-safe objects.
14427 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14429 # Library versioning type.
14430 version_type=$version_type
14432 # Format of library name prefix.
14433 libname_spec=$lt_libname_spec
14435 # List of archive names. First name is the real one, the rest are links.
14436 # The last name is the one that the linker finds with -lNAME.
14437 library_names_spec=$lt_library_names_spec
14439 # The coded name of the library, if different from the real name.
14440 soname_spec=$lt_soname_spec
14442 # Commands used to build and install an old-style archive.
14444 old_archive_cmds=$lt_old_archive_cmds_F77
14445 old_postinstall_cmds=$lt_old_postinstall_cmds
14446 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14448 # Create an old-style archive from a shared archive.
14449 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14451 # Create a temporary old-style archive to link instead of a shared archive.
14452 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14454 # Commands used to build and install a shared archive.
14455 archive_cmds=$lt_archive_cmds_F77
14456 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14457 postinstall_cmds=$lt_postinstall_cmds
14458 postuninstall_cmds=$lt_postuninstall_cmds
14460 # Commands used to build a loadable module (assumed same as above if empty)
14461 module_cmds=$lt_module_cmds_F77
14462 module_expsym_cmds=$lt_module_expsym_cmds_F77
14464 # Commands to strip libraries.
14465 old_striplib=$lt_old_striplib
14466 striplib=$lt_striplib
14468 # Dependencies to place before the objects being linked to create a
14470 predep_objects=$lt_predep_objects_F77
14472 # Dependencies to place after the objects being linked to create a
14474 postdep_objects=$lt_postdep_objects_F77
14476 # Dependencies to place before the objects being linked to create a
14478 predeps=$lt_predeps_F77
14480 # Dependencies to place after the objects being linked to create a
14482 postdeps=$lt_postdeps_F77
14484 # The library search path used internally by the compiler when linking
14485 # a shared library.
14486 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14488 # Method to check whether dependent libraries are shared objects.
14489 deplibs_check_method=$lt_deplibs_check_method
14491 # Command to use when deplibs_check_method == file_magic.
14492 file_magic_cmd=$lt_file_magic_cmd
14494 # Flag that allows shared libraries with undefined symbols to be built.
14495 allow_undefined_flag=$lt_allow_undefined_flag_F77
14497 # Flag that forces no undefined symbols.
14498 no_undefined_flag=$lt_no_undefined_flag_F77
14500 # Commands used to finish a libtool library installation in a directory.
14501 finish_cmds=$lt_finish_cmds
14503 # Same as above, but a single script fragment to be evaled but not shown.
14504 finish_eval=$lt_finish_eval
14506 # Take the output of nm and produce a listing of raw symbols and C names.
14507 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14509 # Transform the output of nm in a proper C declaration
14510 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14512 # Transform the output of nm in a C name address pair
14513 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14515 # This is the shared library runtime path variable.
14516 runpath_var=$runpath_var
14518 # This is the shared library path variable.
14519 shlibpath_var=$shlibpath_var
14521 # Is shlibpath searched before the hard-coded library search path?
14522 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14524 # How to hardcode a shared library path into an executable.
14525 hardcode_action=$hardcode_action_F77
14527 # Whether we should hardcode library paths into libraries.
14528 hardcode_into_libs=$hardcode_into_libs
14530 # Flag to hardcode \$libdir into a binary during linking.
14531 # This must work even if \$libdir does not exist.
14532 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14534 # If ld is used when linking, flag to hardcode \$libdir into
14535 # a binary during linking. This must work even if \$libdir does
14537 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14539 # Whether we need a single -rpath flag with a separated argument.
14540 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14542 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14543 # resulting binary.
14544 hardcode_direct=$hardcode_direct_F77
14546 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14547 # resulting binary.
14548 hardcode_minus_L=$hardcode_minus_L_F77
14550 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14551 # the resulting binary.
14552 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14554 # Set to yes if building a shared library automatically hardcodes DIR into the library
14555 # and all subsequent libraries and executables linked against it.
14556 hardcode_automatic=$hardcode_automatic_F77
14558 # Variables whose values should be saved in libtool wrapper scripts and
14559 # restored at relink time.
14560 variables_saved_for_relink="$variables_saved_for_relink"
14562 # Whether libtool must link a program against all its dependency libraries.
14563 link_all_deplibs=$link_all_deplibs_F77
14565 # Compile-time system search path for libraries
14566 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14568 # Run-time system search path for libraries
14569 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14571 # Fix the shell variable \$srcfile for the compiler.
14572 fix_srcfile_path="$fix_srcfile_path_F77"
14574 # Set to yes if exported symbols are required.
14575 always_export_symbols=$always_export_symbols_F77
14577 # The commands to list exported symbols.
14578 export_symbols_cmds=$lt_export_symbols_cmds_F77
14580 # The commands to extract the exported symbol list from a shared archive.
14581 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14583 # Symbols that should not be listed in the preloaded symbols.
14584 exclude_expsyms=$lt_exclude_expsyms_F77
14586 # Symbols that must always be exported.
14587 include_expsyms=$lt_include_expsyms_F77
14589 # ### END LIBTOOL TAG CONFIG: $tagname
14595 # If there is no Makefile yet, we rely on a make rule to execute
14596 # `config.status --recheck' to rerun these tests and create the
14597 # libtool script then.
14598 test -f Makefile && make "$ltmain"
14603 ac_cpp='$CPP $CPPFLAGS'
14604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14616 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14620 # Source file extension for Java test sources.
14623 # Object file extension for compiled Java test sources.
14627 # Code to be used in simple compile tests
14628 lt_simple_compile_test_code="class foo {}\n"
14630 # Code to be used in simple link tests
14631 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14633 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14635 # If no C compiler was specified, use CC.
14638 # Allow CC to be a program name with arguments.
14642 # Allow CC to be a program name with arguments.
14648 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14649 archive_cmds_need_lc_GCJ=no
14652 lt_prog_compiler_no_builtin_flag_GCJ=
14654 if test "$GCC" = yes; then
14655 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14657 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14658 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14659 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14660 echo $ECHO_N "(cached) $ECHO_C" >&6
14662 lt_cv_prog_compiler_rtti_exceptions=no
14663 ac_outfile=conftest.$ac_objext
14664 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14665 lt_compiler_flag="-fno-rtti -fno-exceptions"
14666 # Insert the option either (1) after the last *FLAGS variable, or
14667 # (2) before a word containing "conftest.", or (3) at the end.
14668 # Note that $ac_compile itself does not contain backslashes and begins
14669 # with a dollar sign (not a hyphen), so the echo should work correctly.
14670 # The option is referenced via a variable to avoid confusing sed.
14671 lt_compile=`echo "$ac_compile" | $SED \
14672 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14673 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14674 -e 's:$: $lt_compiler_flag:'`
14675 (eval echo "\"\$as_me:14675: $lt_compile\"" >&5)
14676 (eval "$lt_compile" 2>conftest.err)
14678 cat conftest.err >&5
14679 echo "$as_me:14679: \$? = $ac_status" >&5
14680 if (exit $ac_status) && test -s "$ac_outfile"; then
14681 # The compiler can only warn and ignore the option if not recognized
14682 # So say no if there are warnings
14683 if test ! -s conftest.err; then
14684 lt_cv_prog_compiler_rtti_exceptions=yes
14690 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14691 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14693 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14694 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14701 lt_prog_compiler_wl_GCJ=
14702 lt_prog_compiler_pic_GCJ=
14703 lt_prog_compiler_static_GCJ=
14705 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14706 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14708 if test "$GCC" = yes; then
14709 lt_prog_compiler_wl_GCJ='-Wl,'
14710 lt_prog_compiler_static_GCJ='-static'
14714 # All AIX code is PIC.
14715 if test "$host_cpu" = ia64; then
14716 # AIX 5 now supports IA64 processor
14717 lt_prog_compiler_static_GCJ='-Bstatic'
14722 # FIXME: we need at least 68020 code to build shared libraries, but
14723 # adding the `-m68020' flag to GCC prevents building anything better,
14725 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14728 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14729 # PIC is the default for these OSes.
14732 mingw* | pw32* | os2*)
14733 # This hack is so that the source file can tell whether it is being
14734 # built for inclusion in a dll (and should export symbols for example).
14735 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14738 darwin* | rhapsody*)
14739 # PIC is the default on this platform
14740 # Common symbols not allowed in MH_DYLIB files
14741 lt_prog_compiler_pic_GCJ='-fno-common'
14745 # Just because we use GCC doesn't mean we suddenly get shared libraries
14746 # on systems that don't support them.
14747 lt_prog_compiler_can_build_shared_GCJ=no
14752 if test -d /usr/nec; then
14753 lt_prog_compiler_pic_GCJ=-Kconform_pic
14758 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14759 # not for PA HP-UX.
14760 case "$host_cpu" in
14765 lt_prog_compiler_pic_GCJ='-fPIC'
14771 lt_prog_compiler_pic_GCJ='-fPIC'
14775 # PORTME Check for flag to pass linker flags through the system compiler.
14778 lt_prog_compiler_wl_GCJ='-Wl,'
14779 if test "$host_cpu" = ia64; then
14780 # AIX 5 now supports IA64 processor
14781 lt_prog_compiler_static_GCJ='-Bstatic'
14783 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14787 mingw* | pw32* | os2*)
14788 # This hack is so that the source file can tell whether it is being
14789 # built for inclusion in a dll (and should export symbols for example).
14790 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14793 hpux9* | hpux10* | hpux11*)
14794 lt_prog_compiler_wl_GCJ='-Wl,'
14795 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14796 # not for PA HP-UX.
14797 case "$host_cpu" in
14802 lt_prog_compiler_pic_GCJ='+Z'
14805 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14806 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14809 irix5* | irix6* | nonstopux*)
14810 lt_prog_compiler_wl_GCJ='-Wl,'
14811 # PIC (with -KPIC) is the default.
14812 lt_prog_compiler_static_GCJ='-non_shared'
14816 lt_prog_compiler_pic_GCJ='-KPIC'
14817 lt_prog_compiler_static_GCJ='-Bstatic'
14823 lt_prog_compiler_wl_GCJ='-Wl,'
14824 lt_prog_compiler_pic_GCJ='-KPIC'
14825 lt_prog_compiler_static_GCJ='-static'
14828 lt_prog_compiler_wl_GCJ='-Wl,'
14829 # All Alpha code is PIC.
14830 lt_prog_compiler_static_GCJ='-non_shared'
14835 osf3* | osf4* | osf5*)
14836 lt_prog_compiler_wl_GCJ='-Wl,'
14837 # All OSF/1 code is PIC.
14838 lt_prog_compiler_static_GCJ='-non_shared'
14842 lt_prog_compiler_pic_GCJ='-Kpic'
14843 lt_prog_compiler_static_GCJ='-dn'
14847 lt_prog_compiler_wl_GCJ='-Wl,'
14848 lt_prog_compiler_pic_GCJ='-KPIC'
14849 lt_prog_compiler_static_GCJ='-Bstatic'
14853 lt_prog_compiler_wl_GCJ='-Qoption ld '
14854 lt_prog_compiler_pic_GCJ='-PIC'
14855 lt_prog_compiler_static_GCJ='-Bstatic'
14858 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14859 lt_prog_compiler_wl_GCJ='-Wl,'
14860 lt_prog_compiler_pic_GCJ='-KPIC'
14861 lt_prog_compiler_static_GCJ='-Bstatic'
14865 if test -d /usr/nec ;then
14866 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14867 lt_prog_compiler_static_GCJ='-Bstatic'
14872 lt_prog_compiler_pic_GCJ='-pic'
14873 lt_prog_compiler_static_GCJ='-Bstatic'
14877 lt_prog_compiler_can_build_shared_GCJ=no
14882 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14883 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14886 # Check to make sure the PIC flag actually works.
14888 if test -n "$lt_prog_compiler_pic_GCJ"; then
14889 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14890 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14891 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14892 echo $ECHO_N "(cached) $ECHO_C" >&6
14894 lt_prog_compiler_pic_works_GCJ=no
14895 ac_outfile=conftest.$ac_objext
14896 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14897 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14898 # Insert the option either (1) after the last *FLAGS variable, or
14899 # (2) before a word containing "conftest.", or (3) at the end.
14900 # Note that $ac_compile itself does not contain backslashes and begins
14901 # with a dollar sign (not a hyphen), so the echo should work correctly.
14902 # The option is referenced via a variable to avoid confusing sed.
14903 lt_compile=`echo "$ac_compile" | $SED \
14904 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14906 -e 's:$: $lt_compiler_flag:'`
14907 (eval echo "\"\$as_me:14907: $lt_compile\"" >&5)
14908 (eval "$lt_compile" 2>conftest.err)
14910 cat conftest.err >&5
14911 echo "$as_me:14911: \$? = $ac_status" >&5
14912 if (exit $ac_status) && test -s "$ac_outfile"; then
14913 # The compiler can only warn and ignore the option if not recognized
14914 # So say no if there are warnings
14915 if test ! -s conftest.err; then
14916 lt_prog_compiler_pic_works_GCJ=yes
14922 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14923 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14925 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14926 case $lt_prog_compiler_pic_GCJ in
14928 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14931 lt_prog_compiler_pic_GCJ=
14932 lt_prog_compiler_can_build_shared_GCJ=no
14937 # For platforms which do not support PIC, -DPIC is meaningless:
14939 lt_prog_compiler_pic_GCJ=
14942 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14946 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14947 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14948 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14949 echo $ECHO_N "(cached) $ECHO_C" >&6
14951 lt_cv_prog_compiler_c_o_GCJ=no
14952 $rm -r conftest 2>/dev/null
14956 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14958 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14959 # that will create temporary files in the current directory regardless of
14960 # the output directory. Thus, making CWD read-only will cause this test
14961 # to fail, enabling locking or at least warning the user not to do parallel
14965 lt_compiler_flag="-o out/conftest2.$ac_objext"
14966 # Insert the option either (1) after the last *FLAGS variable, or
14967 # (2) before a word containing "conftest.", or (3) at the end.
14968 # Note that $ac_compile itself does not contain backslashes and begins
14969 # with a dollar sign (not a hyphen), so the echo should work correctly.
14970 lt_compile=`echo "$ac_compile" | $SED \
14971 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14973 -e 's:$: $lt_compiler_flag:'`
14974 (eval echo "\"\$as_me:14974: $lt_compile\"" >&5)
14975 (eval "$lt_compile" 2>out/conftest.err)
14977 cat out/conftest.err >&5
14978 echo "$as_me:14978: \$? = $ac_status" >&5
14979 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14981 # The compiler can only warn and ignore the option if not recognized
14982 # So say no if there are warnings
14983 if test ! -s out/conftest.err; then
14984 lt_cv_prog_compiler_c_o_GCJ=yes
14988 $rm conftest* out/*
14995 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14996 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14999 hard_links="nottested"
15000 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15001 # do not overwrite the value of need_locks provided by the user
15002 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15003 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15008 ln conftest.a conftest.b 2>&5 || hard_links=no
15009 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15010 echo "$as_me:$LINENO: result: $hard_links" >&5
15011 echo "${ECHO_T}$hard_links" >&6
15012 if test "$hard_links" = no; then
15013 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15014 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15021 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15022 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15025 allow_undefined_flag_GCJ=
15026 enable_shared_with_static_runtimes_GCJ=no
15028 archive_expsym_cmds_GCJ=
15029 old_archive_From_new_cmds_GCJ=
15030 old_archive_from_expsyms_cmds_GCJ=
15031 export_dynamic_flag_spec_GCJ=
15032 whole_archive_flag_spec_GCJ=
15033 thread_safe_flag_spec_GCJ=
15034 hardcode_libdir_flag_spec_GCJ=
15035 hardcode_libdir_flag_spec_ld_GCJ=
15036 hardcode_libdir_separator_GCJ=
15037 hardcode_direct_GCJ=no
15038 hardcode_minus_L_GCJ=no
15039 hardcode_shlibpath_var_GCJ=unsupported
15040 link_all_deplibs_GCJ=unknown
15041 hardcode_automatic_GCJ=no
15043 module_expsym_cmds_GCJ=
15044 always_export_symbols_GCJ=no
15045 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15046 # include_expsyms should be a list of space-separated symbols to be *always*
15047 # included in the symbol list
15048 include_expsyms_GCJ=
15049 # exclude_expsyms can be an extended regexp of symbols to exclude
15050 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15051 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15052 # as well as any symbol that contains `d'.
15053 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15054 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15055 # platforms (ab)use it in PIC code, but their linkers get confused if
15056 # the symbol is explicitly referenced. Since portable code cannot
15057 # rely on this symbol name, it's probably fine to never include it in
15058 # preloaded symbol tables.
15059 extract_expsyms_cmds=
15062 cygwin* | mingw* | pw32*)
15063 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15064 # When not using gcc, we currently assume that we are using
15065 # Microsoft Visual C++.
15066 if test "$GCC" != yes; then
15076 if test "$with_gnu_ld" = yes; then
15077 # If archive_cmds runs LD, not CC, wlarc should be empty
15080 # See if GNU ld supports shared libraries.
15082 aix3* | aix4* | aix5*)
15083 # On AIX/PPC, the GNU linker is very broken
15084 if test "$host_cpu" != ia64; then
15088 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15089 *** to be unable to reliably create shared libraries on AIX.
15090 *** Therefore, libtool is disabling shared libraries support. If you
15091 *** really care for shared libraries, you may want to modify your PATH
15092 *** so that a non-GNU linker is found, and then restart.
15099 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)'
15100 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15101 hardcode_minus_L_GCJ=yes
15103 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15104 # that the semantics of dynamic libraries on AmigaOS, at least up
15105 # to version 4, is to share data among multiple programs linked
15106 # with the same dynamic library. Since this doesn't match the
15107 # behavior of shared libraries on other platforms, we can't use
15113 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15114 allow_undefined_flag_GCJ=unsupported
15115 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15116 # support --undefined. This deserves some investigation. FIXME
15117 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15123 cygwin* | mingw* | pw32*)
15124 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15125 # as there is no search path for DLLs.
15126 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15127 allow_undefined_flag_GCJ=unsupported
15128 always_export_symbols_GCJ=no
15129 enable_shared_with_static_runtimes_GCJ=yes
15130 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15132 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15133 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15134 # If the export-symbols file already is a .def file (1st line
15135 # is EXPORTS), use it as is; otherwise, prepend...
15136 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15137 cp $export_symbols $output_objdir/$soname.def;
15139 echo EXPORTS > $output_objdir/$soname.def;
15140 cat $export_symbols >> $output_objdir/$soname.def;
15142 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15149 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15150 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15153 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15154 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15159 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15163 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15164 *** create shared libraries on Solaris systems. Therefore, libtool
15165 *** is disabling shared libraries support. We urge you to upgrade GNU
15166 *** binutils to release 2.9.1 or newer. Another option is to modify
15167 *** your PATH or compiler configuration so that the native linker is
15168 *** used, and then restart.
15171 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15172 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15173 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15180 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15182 hardcode_direct_GCJ=yes
15183 hardcode_shlibpath_var_GCJ=no
15187 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15188 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15189 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15196 if test "$ld_shlibs_GCJ" = yes; then
15197 runpath_var=LD_RUN_PATH
15198 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15199 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15200 # ancient GNU ld didn't support --whole-archive et. al.
15201 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15202 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15204 whole_archive_flag_spec_GCJ=
15208 # PORTME fill in a description of your system's linker (not GNU ld)
15211 allow_undefined_flag_GCJ=unsupported
15212 always_export_symbols_GCJ=yes
15213 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'
15214 # Note: this linker hardcodes the directories in LIBPATH if there
15215 # are no directories specified by -L.
15216 hardcode_minus_L_GCJ=yes
15217 if test "$GCC" = yes && test -z "$link_static_flag"; then
15218 # Neither direct hardcoding nor static linking is supported with a
15220 hardcode_direct_GCJ=unsupported
15225 if test "$host_cpu" = ia64; then
15226 # On IA64, the linker does run time linking by default, so we don't
15227 # have to do anything special.
15228 aix_use_runtimelinking=no
15229 exp_sym_flag='-Bexport'
15232 # If we're using GNU nm, then we don't want the "-C" option.
15233 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15234 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15235 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'
15237 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'
15239 aix_use_runtimelinking=no
15241 # Test if we are trying to use run time linking or normal
15242 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15243 # need to do runtime linking.
15244 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15245 for ld_flag in $LDFLAGS; do
15246 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15247 aix_use_runtimelinking=yes
15253 exp_sym_flag='-bexport'
15254 no_entry_flag='-bnoentry'
15257 # When large executables or shared objects are built, AIX ld can
15258 # have problems creating the table of contents. If linking a library
15259 # or program results in "error TOC overflow" add -mminimal-toc to
15260 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15261 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15263 archive_cmds_GCJ=''
15264 hardcode_direct_GCJ=yes
15265 hardcode_libdir_separator_GCJ=':'
15266 link_all_deplibs_GCJ=yes
15268 if test "$GCC" = yes; then
15269 case $host_os in aix4.012|aix4.012.*)
15270 # We only want to do this on AIX 4.2 and lower, the check
15271 # below for broken collect2 doesn't work under 4.3+
15272 collect2name=`${CC} -print-prog-name=collect2`
15273 if test -f "$collect2name" && \
15274 strings "$collect2name" | grep resolve_lib_name >/dev/null
15276 # We have reworked collect2
15277 hardcode_direct_GCJ=yes
15279 # We have old collect2
15280 hardcode_direct_GCJ=unsupported
15281 # It fails to find uninstalled libraries when the uninstalled
15282 # path is not listed in the libpath. Setting hardcode_minus_L
15283 # to unsupported forces relinking
15284 hardcode_minus_L_GCJ=yes
15285 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15286 hardcode_libdir_separator_GCJ=
15289 shared_flag='-shared'
15292 if test "$host_cpu" = ia64; then
15293 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15294 # chokes on -Wl,-G. The following line is correct:
15297 if test "$aix_use_runtimelinking" = yes; then
15298 shared_flag='${wl}-G'
15300 shared_flag='${wl}-bM:SRE'
15305 # It seems that -bexpall does not export symbols beginning with
15306 # underscore (_), so it is better to generate a list of symbols to export.
15307 always_export_symbols_GCJ=yes
15308 if test "$aix_use_runtimelinking" = yes; then
15309 # Warning - without using the other runtime loading flags (-brtl),
15310 # -berok will link without error, but may produce a broken library.
15311 allow_undefined_flag_GCJ='-berok'
15312 # Determine the default libpath from the value encoded in an empty executable.
15313 cat >conftest.$ac_ext <<_ACEOF
15314 #line $LINENO "configure"
15317 cat confdefs.h >>conftest.$ac_ext
15318 cat >>conftest.$ac_ext <<_ACEOF
15319 /* end confdefs.h. */
15329 rm -f conftest.$ac_objext conftest$ac_exeext
15330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15331 (eval $ac_link) 2>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
15335 { ac_try='test -s conftest$ac_exeext'
15336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337 (eval $ac_try) 2>&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; }; then
15342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15344 # Check for a 64-bit object if we didn't find anything.
15345 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; }
15348 echo "$as_me: failed program was:" >&5
15349 sed 's/^/| /' conftest.$ac_ext >&5
15352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15353 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15355 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15356 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"
15358 if test "$host_cpu" = ia64; then
15359 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15360 allow_undefined_flag_GCJ="-z nodefs"
15361 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"
15363 # Determine the default libpath from the value encoded in an empty executable.
15364 cat >conftest.$ac_ext <<_ACEOF
15365 #line $LINENO "configure"
15368 cat confdefs.h >>conftest.$ac_ext
15369 cat >>conftest.$ac_ext <<_ACEOF
15370 /* end confdefs.h. */
15380 rm -f conftest.$ac_objext conftest$ac_exeext
15381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15382 (eval $ac_link) 2>&5
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); } &&
15386 { ac_try='test -s conftest$ac_exeext'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; }; then
15393 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15395 # Check for a 64-bit object if we didn't find anything.
15396 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; }
15399 echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.$ac_ext >&5
15403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15404 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15406 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15407 # Warning - without using the other run time loading flags,
15408 # -berok will link without error, but may produce a broken library.
15409 no_undefined_flag_GCJ=' ${wl}-bernotok'
15410 allow_undefined_flag_GCJ=' ${wl}-berok'
15411 # -bexpall does not export symbols beginning with underscore (_)
15412 always_export_symbols_GCJ=yes
15413 # Exported symbols can be pulled into shared objects from archives
15414 whole_archive_flag_spec_GCJ=' '
15415 archive_cmds_need_lc_GCJ=yes
15416 # This is similar to how AIX traditionally builds it's shared libraries.
15417 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'
15423 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)'
15424 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15425 hardcode_minus_L_GCJ=yes
15426 # see comment about different semantics on the GNU ld section
15431 export_dynamic_flag_spec_GCJ=-rdynamic
15434 cygwin* | mingw* | pw32*)
15435 # When not using gcc, we currently assume that we are using
15436 # Microsoft Visual C++.
15437 # hardcode_libdir_flag_spec is actually meaningless, as there is
15438 # no search path for DLLs.
15439 hardcode_libdir_flag_spec_GCJ=' '
15440 allow_undefined_flag_GCJ=unsupported
15441 # Tell ltmain to make .lib files, not .a files.
15443 # Tell ltmain to make .dll files, not .so files.
15445 # FIXME: Setting linknames here is a bad hack.
15446 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15447 # The linker will automatically build a .lib file if we build a DLL.
15448 old_archive_From_new_cmds_GCJ='true'
15449 # FIXME: Should let the user specify the lib program.
15450 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15451 fix_srcfile_path='`cygpath -w "$srcfile"`'
15452 enable_shared_with_static_runtimes_GCJ=yes
15455 darwin* | rhapsody*)
15456 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15457 archive_cmds_need_lc_GCJ=no
15459 rhapsody* | darwin1.[012])
15460 allow_undefined_flag_GCJ='-undefined suppress'
15463 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15466 # FIXME: Relying on posixy $() will cause problems for
15467 # cross-compilation, but unfortunately the echo tests do not
15468 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15469 # `"' quotes if we put them in here... so don't!
15470 lt_int_apple_cc_single_mod=no
15471 output_verbose_link_cmd='echo'
15472 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15473 lt_int_apple_cc_single_mod=yes
15475 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15476 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15478 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'
15480 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15481 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15482 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15483 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}'
15485 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}'
15487 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}'
15488 hardcode_direct_GCJ=no
15489 hardcode_automatic_GCJ=yes
15490 hardcode_shlibpath_var_GCJ=unsupported
15491 whole_archive_flag_spec_GCJ='-all_load $convenience'
15492 link_all_deplibs_GCJ=yes
15497 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15498 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15499 hardcode_shlibpath_var_GCJ=no
15506 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15507 # support. Future versions do this automatically, but an explicit c++rt0.o
15508 # does not break anything, and helps significantly (at the cost of a little
15511 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15512 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15513 hardcode_direct_GCJ=yes
15514 hardcode_shlibpath_var_GCJ=no
15517 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15519 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15520 hardcode_direct_GCJ=yes
15521 hardcode_minus_L_GCJ=yes
15522 hardcode_shlibpath_var_GCJ=no
15525 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15527 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15528 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15529 hardcode_direct_GCJ=yes
15530 hardcode_shlibpath_var_GCJ=no
15534 if test "$GCC" = yes; then
15535 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'
15537 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'
15539 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15540 hardcode_libdir_separator_GCJ=:
15541 hardcode_direct_GCJ=yes
15543 # hardcode_minus_L: Not really in the search PATH,
15544 # but as the default location of the library.
15545 hardcode_minus_L_GCJ=yes
15546 export_dynamic_flag_spec_GCJ='${wl}-E'
15550 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15551 case "$host_cpu" in
15553 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15556 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15560 case "$host_cpu" in
15562 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15565 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15569 if test "$with_gnu_ld" = no; then
15570 case "$host_cpu" in
15572 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15573 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15574 hardcode_libdir_separator_GCJ=:
15575 hardcode_direct_GCJ=no
15576 hardcode_shlibpath_var_GCJ=no
15579 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15580 hardcode_direct_GCJ=no
15581 hardcode_shlibpath_var_GCJ=no
15583 # hardcode_minus_L: Not really in the search PATH,
15584 # but as the default location of the library.
15585 hardcode_minus_L_GCJ=yes
15588 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15589 hardcode_libdir_separator_GCJ=:
15590 hardcode_direct_GCJ=yes
15591 export_dynamic_flag_spec_GCJ='${wl}-E'
15593 # hardcode_minus_L: Not really in the search PATH,
15594 # but as the default location of the library.
15595 hardcode_minus_L_GCJ=yes
15601 irix5* | irix6* | nonstopux*)
15602 if test "$GCC" = yes; then
15603 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'
15605 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'
15606 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15608 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15609 hardcode_libdir_separator_GCJ=:
15610 link_all_deplibs_GCJ=yes
15614 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15615 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15617 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15619 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15620 hardcode_direct_GCJ=yes
15621 hardcode_shlibpath_var_GCJ=no
15625 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15626 hardcode_direct_GCJ=yes
15627 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15628 hardcode_libdir_separator_GCJ=:
15629 hardcode_shlibpath_var_GCJ=no
15633 hardcode_direct_GCJ=yes
15634 hardcode_shlibpath_var_GCJ=no
15635 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15636 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15637 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15638 export_dynamic_flag_spec_GCJ='${wl}-E'
15641 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15642 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15643 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15646 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15647 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15654 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15655 hardcode_minus_L_GCJ=yes
15656 allow_undefined_flag_GCJ=unsupported
15657 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'
15658 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15662 if test "$GCC" = yes; then
15663 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15664 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'
15666 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15667 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'
15669 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15670 hardcode_libdir_separator_GCJ=:
15673 osf4* | osf5*) # as osf3* with the addition of -msym flag
15674 if test "$GCC" = yes; then
15675 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15676 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'
15677 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15679 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15680 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'
15681 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~
15682 $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'
15684 # Both c and cxx compiler support -rpath directly
15685 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15687 hardcode_libdir_separator_GCJ=:
15691 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15692 hardcode_shlibpath_var_GCJ=no
15693 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15694 runpath_var=LD_RUN_PATH
15695 hardcode_runpath_var=yes
15699 no_undefined_flag_GCJ=' -z text'
15700 if test "$GCC" = yes; then
15701 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15702 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15703 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15705 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15706 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15707 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15709 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15710 hardcode_shlibpath_var_GCJ=no
15712 solaris2.[0-5] | solaris2.[0-5].*) ;;
15713 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15714 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15716 link_all_deplibs_GCJ=yes
15720 if test "x$host_vendor" = xsequent; then
15721 # Use $CC to link under sequent, because it throws in some extra .o
15722 # files that make .init and .fini sections work.
15723 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15725 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15727 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15728 hardcode_direct_GCJ=yes
15729 hardcode_minus_L_GCJ=yes
15730 hardcode_shlibpath_var_GCJ=no
15734 case $host_vendor in
15736 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15737 hardcode_direct_GCJ=yes # is this really true???
15740 ## LD is ld it makes a PLAMLIB
15741 ## CC just makes a GrossModule.
15742 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15743 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15744 hardcode_direct_GCJ=no
15747 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15748 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15751 runpath_var='LD_RUN_PATH'
15752 hardcode_shlibpath_var_GCJ=no
15756 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15757 hardcode_shlibpath_var_GCJ=no
15758 export_dynamic_flag_spec_GCJ='-Bexport'
15762 if test -d /usr/nec; then
15763 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15764 hardcode_shlibpath_var_GCJ=no
15765 runpath_var=LD_RUN_PATH
15766 hardcode_runpath_var=yes
15772 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15773 hardcode_direct_GCJ=yes
15774 hardcode_minus_L_GCJ=no
15775 hardcode_shlibpath_var_GCJ=no
15776 hardcode_runpath_var=yes
15777 runpath_var=LD_RUN_PATH
15780 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15781 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15782 if test "$GCC" = yes; then
15783 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15785 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15787 runpath_var='LD_RUN_PATH'
15788 hardcode_shlibpath_var_GCJ=no
15792 no_undefined_flag_GCJ=' -z text'
15793 # $CC -shared without GNU ld will not create a library from C++
15794 # object files and a static libstdc++, better avoid it by now
15795 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15796 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15797 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15798 hardcode_libdir_flag_spec_GCJ=
15799 hardcode_shlibpath_var_GCJ=no
15800 runpath_var='LD_RUN_PATH'
15804 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15805 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15806 hardcode_shlibpath_var_GCJ=no
15815 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15816 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15817 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15819 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15820 if test "$GCC" = yes; then
15821 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15825 # Do we need to explicitly link libc?
15827 case "x$archive_cmds_need_lc_GCJ" in
15829 # Assume -lc should be added
15830 archive_cmds_need_lc_GCJ=yes
15832 if test "$enable_shared" = yes && test "$GCC" = yes; then
15833 case $archive_cmds_GCJ in
15835 # FIXME: we may have to deal with multi-command sequences.
15838 # Test whether the compiler implicitly links with -lc since on some
15839 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15840 # to ld, don't add -lc before -lgcc.
15841 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15842 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15844 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15847 (eval $ac_compile) 2>&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } 2>conftest.err; then
15853 libobjs=conftest.$ac_objext
15855 wl=$lt_prog_compiler_wl_GCJ
15861 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15862 allow_undefined_flag_GCJ=
15863 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15864 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }
15869 archive_cmds_need_lc_GCJ=no
15871 archive_cmds_need_lc_GCJ=yes
15873 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15875 cat conftest.err 1>&5
15878 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15879 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15886 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15887 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15888 hardcode_action_GCJ=
15889 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15890 test -n "$runpath_var GCJ" || \
15891 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15893 # We can hardcode non-existant directories.
15894 if test "$hardcode_direct_GCJ" != no &&
15895 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15896 # have to relink, otherwise we might link with an installed library
15897 # when we should be linking with a yet-to-be-installed one
15898 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15899 test "$hardcode_minus_L_GCJ" != no; then
15900 # Linking always hardcodes the temporary library directory.
15901 hardcode_action_GCJ=relink
15903 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15904 hardcode_action_GCJ=immediate
15907 # We cannot hardcode anything, or else we can only hardcode existing
15909 hardcode_action_GCJ=unsupported
15911 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15912 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15914 if test "$hardcode_action_GCJ" = relink; then
15915 # Fast installation is not supported
15916 enable_fast_install=no
15917 elif test "$shlibpath_overrides_runpath" = yes ||
15918 test "$enable_shared" = no; then
15919 # Fast installation is not necessary
15920 enable_fast_install=needless
15925 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15926 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15927 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15928 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15929 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15930 echo "$as_me:$LINENO: result: yes" >&5
15931 echo "${ECHO_T}yes" >&6
15933 # FIXME - insert some real tests, host_os isn't really good enough
15936 if test -n "$STRIP" ; then
15937 striplib="$STRIP -x"
15938 echo "$as_me:$LINENO: result: yes" >&5
15939 echo "${ECHO_T}yes" >&6
15941 echo "$as_me:$LINENO: result: no" >&5
15942 echo "${ECHO_T}no" >&6
15946 echo "$as_me:$LINENO: result: no" >&5
15947 echo "${ECHO_T}no" >&6
15952 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15953 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15954 library_names_spec=
15955 libname_spec='lib$name'
15959 postuninstall_cmds=
15963 shlibpath_overrides_runpath=unknown
15965 dynamic_linker="$host_os ld.so"
15966 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15967 if test "$GCC" = yes; then
15968 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15969 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15970 # if the path contains ";" then we assume it to be the separator
15971 # otherwise default to the standard path separator (i.e. ":") - it is
15972 # assumed that no part of a normal pathname contains ";" but that should
15973 # okay in the real world where ";" in dirpaths is itself problematic.
15974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15979 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15981 need_lib_prefix=unknown
15982 hardcode_into_libs=no
15984 # when you set need_version to no, make sure it does not cause -set_version
15985 # flags to be left without arguments
15986 need_version=unknown
15991 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15992 shlibpath_var=LIBPATH
15994 # AIX 3 has no versioning support, so we append a major version to the name.
15995 soname_spec='${libname}${release}${shared_ext}$major'
16002 hardcode_into_libs=yes
16003 if test "$host_cpu" = ia64; then
16004 # AIX 5 supports IA64
16005 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16006 shlibpath_var=LD_LIBRARY_PATH
16008 # With GCC up to 2.95.x, collect2 would create an import file
16009 # for dependence libraries. The import file would start with
16010 # the line `#! .'. This would cause the generated library to
16011 # depend on `.', always an invalid library. This was fixed in
16012 # development snapshots of GCC prior to 3.0.
16014 aix4 | aix4.[01] | aix4.[01].*)
16015 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16017 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16020 can_build_shared=no
16024 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16025 # soname into executable. Probably we can add versioning support to
16026 # collect2, so additional links can be useful in future.
16027 if test "$aix_use_runtimelinking" = yes; then
16028 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16029 # instead of lib<name>.a to let people know that these are not
16030 # typical AIX shared libraries.
16031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16033 # We preserve .a as extension for shared libraries through AIX4.2
16034 # and later when we are not doing run time linking.
16035 library_names_spec='${libname}${release}.a $libname.a'
16036 soname_spec='${libname}${release}${shared_ext}$major'
16038 shlibpath_var=LIBPATH
16043 library_names_spec='$libname.ixlibrary $libname.a'
16044 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16045 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'
16049 library_names_spec='${libname}${shared_ext}'
16050 dynamic_linker="$host_os ld.so"
16051 shlibpath_var=LIBRARY_PATH
16057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16058 soname_spec='${libname}${release}${shared_ext}$major'
16059 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16060 shlibpath_var=LD_LIBRARY_PATH
16061 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16062 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16063 # the default ld.so.conf also contains /usr/contrib/lib and
16064 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16065 # libtool to hard-code these into programs
16068 cygwin* | mingw* | pw32*)
16069 version_type=windows
16074 case $GCC,$host_os in
16075 yes,cygwin* | yes,mingw* | yes,pw32*)
16076 library_names_spec='$libname.dll.a'
16077 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16078 postinstall_cmds='base_file=`basename \${file}`~
16079 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16080 dldir=$destdir/`dirname \$dlpath`~
16081 test -d \$dldir || mkdir -p \$dldir~
16082 $install_prog $dir/$dlname \$dldir/$dlname'
16083 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16084 dlpath=$dir/\$dldll~
16086 shlibpath_overrides_runpath=yes
16090 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16091 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16092 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16095 # MinGW DLLs use traditional 'lib' prefix
16096 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16097 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16098 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16099 # It is most probably a Windows format PATH printed by
16100 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16101 # path with ; separators, and with drive letters. We can handle the
16102 # drive letters (cygwin fileutils understands them), so leave them,
16103 # especially as we might pass files found there to a mingw objdump,
16104 # which wouldn't understand a cygwinified path. Ahh.
16105 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16107 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16111 # pw32 DLLs use 'pw' prefix rather than 'lib'
16112 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16118 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16121 dynamic_linker='Win32 ld.exe'
16122 # FIXME: first we should search . and the directory the executable is in
16126 darwin* | rhapsody*)
16127 dynamic_linker="$host_os dyld"
16128 version_type=darwin
16131 # FIXME: Relying on posixy $() will cause problems for
16132 # cross-compilation, but unfortunately the echo tests do not
16133 # yet detect zsh echo's removal of \ escapes.
16134 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16135 soname_spec='${libname}${release}${major}$shared_ext'
16136 shlibpath_overrides_runpath=yes
16137 shlibpath_var=DYLD_LIBRARY_PATH
16138 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16139 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16140 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16141 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"`
16143 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16151 soname_spec='${libname}${release}${shared_ext}$major'
16152 shlibpath_var=LD_LIBRARY_PATH
16160 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16161 version_type=freebsd-$objformat
16162 case $version_type in
16164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16173 shlibpath_var=LD_LIBRARY_PATH
16176 shlibpath_overrides_runpath=yes
16178 freebsd3.01* | freebsdelf3.01*)
16179 shlibpath_overrides_runpath=yes
16180 hardcode_into_libs=yes
16183 shlibpath_overrides_runpath=no
16184 hardcode_into_libs=yes
16193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16194 soname_spec='${libname}${release}${shared_ext}$major'
16195 shlibpath_var=LD_LIBRARY_PATH
16196 hardcode_into_libs=yes
16199 hpux9* | hpux10* | hpux11*)
16200 # Give a soname corresponding to the major version so that dld.sl refuses to
16201 # link against other versions.
16205 case "$host_cpu" in
16208 hardcode_into_libs=yes
16209 dynamic_linker="$host_os dld.so"
16210 shlibpath_var=LD_LIBRARY_PATH
16211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16213 soname_spec='${libname}${release}${shared_ext}$major'
16214 if test "X$HPUX_IA64_MODE" = X32; then
16215 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16217 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16223 hardcode_into_libs=yes
16224 dynamic_linker="$host_os dld.sl"
16225 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16234 dynamic_linker="$host_os dld.sl"
16235 shlibpath_var=SHLIB_PATH
16236 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
16241 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16242 postinstall_cmds='chmod 555 $lib'
16245 irix5* | irix6* | nonstopux*)
16247 nonstopux*) version_type=nonstopux ;;
16249 if test "$lt_cv_prog_gnu_ld" = yes; then
16257 soname_spec='${libname}${release}${shared_ext}$major'
16258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16260 irix5* | nonstopux*)
16261 libsuff= shlibsuff=
16264 case $LD in # libtool.m4 will add one of these switches to LD
16265 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16266 libsuff= shlibsuff= libmagic=32-bit;;
16267 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16268 libsuff=32 shlibsuff=N32 libmagic=N32;;
16269 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16270 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16271 *) libsuff= shlibsuff= libmagic=never-match;;
16275 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16276 shlibpath_overrides_runpath=no
16277 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16278 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16279 hardcode_into_libs=yes
16282 # No shared lib support for Linux oldld, aout, or coff.
16283 linux*oldld* | linux*aout* | linux*coff*)
16287 # This must be Linux ELF.
16292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16293 soname_spec='${libname}${release}${shared_ext}$major'
16294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16295 shlibpath_var=LD_LIBRARY_PATH
16296 shlibpath_overrides_runpath=no
16297 # This implies no fast_install, which is unacceptable.
16298 # Some rework will be needed to allow for fast_install
16299 # before this can be enabled.
16300 hardcode_into_libs=yes
16302 # We used to test for /lib/ld.so.1 and disable shared libraries on
16303 # powerpc, because MkLinux only supported shared libraries with the
16304 # GNU dynamic linker. Since this was broken with cross compilers,
16305 # most powerpc-linux boxes support dynamic linking these days and
16306 # people can always --disable-shared, the test was removed, and we
16307 # assume the GNU/Linux dynamic linker is in use.
16308 dynamic_linker='GNU/Linux ld.so'
16315 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16318 dynamic_linker='NetBSD (a.out) ld.so'
16320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16321 soname_spec='${libname}${release}${shared_ext}$major'
16322 dynamic_linker='NetBSD ld.elf_so'
16324 shlibpath_var=LD_LIBRARY_PATH
16325 shlibpath_overrides_runpath=yes
16326 hardcode_into_libs=yes
16331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332 shlibpath_var=LD_LIBRARY_PATH
16333 shlibpath_overrides_runpath=yes
16340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16341 soname_spec='${libname}${release}${shared_ext}$major'
16342 shlibpath_var=LD_LIBRARY_PATH
16343 shlibpath_overrides_runpath=yes
16350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16352 shlibpath_var=LD_LIBRARY_PATH
16353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16355 openbsd2.[89] | openbsd2.[89].*)
16356 shlibpath_overrides_runpath=no
16359 shlibpath_overrides_runpath=yes
16363 shlibpath_overrides_runpath=yes
16368 libname_spec='$name'
16371 library_names_spec='$libname${shared_ext} $libname.a'
16372 dynamic_linker='OS/2 ld.exe'
16373 shlibpath_var=LIBPATH
16376 osf3* | osf4* | osf5*)
16380 soname_spec='${libname}${release}${shared_ext}$major'
16381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16382 shlibpath_var=LD_LIBRARY_PATH
16383 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16384 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16389 soname_spec='${libname}${release}${shared_ext}$major'
16390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16391 shlibpath_var=LD_LIBRARY_PATH
16398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16399 soname_spec='${libname}${release}${shared_ext}$major'
16400 shlibpath_var=LD_LIBRARY_PATH
16401 shlibpath_overrides_runpath=yes
16402 hardcode_into_libs=yes
16403 # ldd complains unless libraries are executable
16404 postinstall_cmds='chmod +x $lib'
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16410 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16411 shlibpath_var=LD_LIBRARY_PATH
16412 shlibpath_overrides_runpath=yes
16413 if test "$with_gnu_ld" = yes; then
16419 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16422 soname_spec='${libname}${release}${shared_ext}$major'
16423 shlibpath_var=LD_LIBRARY_PATH
16424 case $host_vendor in
16426 shlibpath_overrides_runpath=no
16428 export_dynamic_flag_spec='${wl}-Blargedynsym'
16429 runpath_var=LD_RUN_PATH
16437 shlibpath_overrides_runpath=no
16438 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16444 if test -d /usr/nec ;then
16446 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16447 soname_spec='$libname${shared_ext}.$major'
16448 shlibpath_var=LD_LIBRARY_PATH
16454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16455 soname_spec='${libname}${release}${shared_ext}$major'
16456 shlibpath_var=LD_LIBRARY_PATH
16463 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16464 echo "${ECHO_T}$dynamic_linker" >&6
16465 test "$dynamic_linker" = no && can_build_shared=no
16467 if test "x$enable_dlopen" != xyes; then
16468 enable_dlopen=unknown
16469 enable_dlopen_self=unknown
16470 enable_dlopen_self_static=unknown
16477 lt_cv_dlopen="load_add_on"
16479 lt_cv_dlopen_self=yes
16483 lt_cv_dlopen="LoadLibrary"
16488 lt_cv_dlopen="dlopen"
16493 # if libdl is installed we need to link against it
16494 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16495 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16496 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16497 echo $ECHO_N "(cached) $ECHO_C" >&6
16499 ac_check_lib_save_LIBS=$LIBS
16501 cat >conftest.$ac_ext <<_ACEOF
16502 #line $LINENO "configure"
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h. */
16509 /* Override any gcc2 internal prototype to avoid an error. */
16513 /* We use char because int might match the return type of a gcc2
16514 builtin and then its argument prototype would still apply. */
16524 rm -f conftest.$ac_objext conftest$ac_exeext
16525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16526 (eval $ac_link) 2>&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } &&
16530 { ac_try='test -s conftest$ac_exeext'
16531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532 (eval $ac_try) 2>&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; }; then
16536 ac_cv_lib_dl_dlopen=yes
16538 echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16541 ac_cv_lib_dl_dlopen=no
16543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16544 LIBS=$ac_check_lib_save_LIBS
16546 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16547 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16548 if test $ac_cv_lib_dl_dlopen = yes; then
16549 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16552 lt_cv_dlopen="dyld"
16554 lt_cv_dlopen_self=yes
16561 echo "$as_me:$LINENO: checking for shl_load" >&5
16562 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16563 if test "${ac_cv_func_shl_load+set}" = set; then
16564 echo $ECHO_N "(cached) $ECHO_C" >&6
16566 cat >conftest.$ac_ext <<_ACEOF
16567 #line $LINENO "configure"
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h. */
16573 /* System header to define __stub macros and hopefully few prototypes,
16574 which can conflict with char shl_load (); below.
16575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16576 <limits.h> exists even on freestanding compilers. */
16578 # include <limits.h>
16580 # include <assert.h>
16582 /* Override any gcc2 internal prototype to avoid an error. */
16587 /* We use char because int might match the return type of a gcc2
16588 builtin and then its argument prototype would still apply. */
16590 /* The GNU C library defines this for functions which it implements
16591 to always fail with ENOSYS. Some functions are actually named
16592 something starting with __ and the normal name is an alias. */
16593 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16596 char (*f) () = shl_load;
16605 return f != shl_load;
16610 rm -f conftest.$ac_objext conftest$ac_exeext
16611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16612 (eval $ac_link) 2>&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); } &&
16616 { ac_try='test -s conftest$ac_exeext'
16617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16618 (eval $ac_try) 2>&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); }; }; then
16622 ac_cv_func_shl_load=yes
16624 echo "$as_me: failed program was:" >&5
16625 sed 's/^/| /' conftest.$ac_ext >&5
16627 ac_cv_func_shl_load=no
16629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16631 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16632 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16633 if test $ac_cv_func_shl_load = yes; then
16634 lt_cv_dlopen="shl_load"
16636 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16637 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16638 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16641 ac_check_lib_save_LIBS=$LIBS
16643 cat >conftest.$ac_ext <<_ACEOF
16644 #line $LINENO "configure"
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h. */
16651 /* Override any gcc2 internal prototype to avoid an error. */
16655 /* We use char because int might match the return type of a gcc2
16656 builtin and then its argument prototype would still apply. */
16666 rm -f conftest.$ac_objext conftest$ac_exeext
16667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16668 (eval $ac_link) 2>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } &&
16672 { ac_try='test -s conftest$ac_exeext'
16673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; }; then
16678 ac_cv_lib_dld_shl_load=yes
16680 echo "$as_me: failed program was:" >&5
16681 sed 's/^/| /' conftest.$ac_ext >&5
16683 ac_cv_lib_dld_shl_load=no
16685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16686 LIBS=$ac_check_lib_save_LIBS
16688 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16689 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16690 if test $ac_cv_lib_dld_shl_load = yes; then
16691 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16693 echo "$as_me:$LINENO: checking for dlopen" >&5
16694 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16695 if test "${ac_cv_func_dlopen+set}" = set; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16698 cat >conftest.$ac_ext <<_ACEOF
16699 #line $LINENO "configure"
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16705 /* System header to define __stub macros and hopefully few prototypes,
16706 which can conflict with char dlopen (); below.
16707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16708 <limits.h> exists even on freestanding compilers. */
16710 # include <limits.h>
16712 # include <assert.h>
16714 /* Override any gcc2 internal prototype to avoid an error. */
16719 /* We use char because int might match the return type of a gcc2
16720 builtin and then its argument prototype would still apply. */
16722 /* The GNU C library defines this for functions which it implements
16723 to always fail with ENOSYS. Some functions are actually named
16724 something starting with __ and the normal name is an alias. */
16725 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16728 char (*f) () = dlopen;
16737 return f != dlopen;
16742 rm -f conftest.$ac_objext conftest$ac_exeext
16743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16744 (eval $ac_link) 2>&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); } &&
16748 { ac_try='test -s conftest$ac_exeext'
16749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750 (eval $ac_try) 2>&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; }; then
16754 ac_cv_func_dlopen=yes
16756 echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16759 ac_cv_func_dlopen=no
16761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16763 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16764 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16765 if test $ac_cv_func_dlopen = yes; then
16766 lt_cv_dlopen="dlopen"
16768 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16769 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16770 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16771 echo $ECHO_N "(cached) $ECHO_C" >&6
16773 ac_check_lib_save_LIBS=$LIBS
16775 cat >conftest.$ac_ext <<_ACEOF
16776 #line $LINENO "configure"
16779 cat confdefs.h >>conftest.$ac_ext
16780 cat >>conftest.$ac_ext <<_ACEOF
16781 /* end confdefs.h. */
16783 /* Override any gcc2 internal prototype to avoid an error. */
16787 /* We use char because int might match the return type of a gcc2
16788 builtin and then its argument prototype would still apply. */
16798 rm -f conftest.$ac_objext conftest$ac_exeext
16799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16800 (eval $ac_link) 2>&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); } &&
16804 { ac_try='test -s conftest$ac_exeext'
16805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16806 (eval $ac_try) 2>&5
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); }; }; then
16810 ac_cv_lib_dl_dlopen=yes
16812 echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16815 ac_cv_lib_dl_dlopen=no
16817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16818 LIBS=$ac_check_lib_save_LIBS
16820 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16821 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16822 if test $ac_cv_lib_dl_dlopen = yes; then
16823 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16825 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16826 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16827 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16828 echo $ECHO_N "(cached) $ECHO_C" >&6
16830 ac_check_lib_save_LIBS=$LIBS
16831 LIBS="-lsvld $LIBS"
16832 cat >conftest.$ac_ext <<_ACEOF
16833 #line $LINENO "configure"
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h. */
16840 /* Override any gcc2 internal prototype to avoid an error. */
16844 /* We use char because int might match the return type of a gcc2
16845 builtin and then its argument prototype would still apply. */
16855 rm -f conftest.$ac_objext conftest$ac_exeext
16856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16857 (eval $ac_link) 2>&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } &&
16861 { ac_try='test -s conftest$ac_exeext'
16862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863 (eval $ac_try) 2>&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; }; then
16867 ac_cv_lib_svld_dlopen=yes
16869 echo "$as_me: failed program was:" >&5
16870 sed 's/^/| /' conftest.$ac_ext >&5
16872 ac_cv_lib_svld_dlopen=no
16874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16875 LIBS=$ac_check_lib_save_LIBS
16877 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16878 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16879 if test $ac_cv_lib_svld_dlopen = yes; then
16880 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16882 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16883 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16884 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16887 ac_check_lib_save_LIBS=$LIBS
16889 cat >conftest.$ac_ext <<_ACEOF
16890 #line $LINENO "configure"
16893 cat confdefs.h >>conftest.$ac_ext
16894 cat >>conftest.$ac_ext <<_ACEOF
16895 /* end confdefs.h. */
16897 /* Override any gcc2 internal prototype to avoid an error. */
16901 /* We use char because int might match the return type of a gcc2
16902 builtin and then its argument prototype would still apply. */
16912 rm -f conftest.$ac_objext conftest$ac_exeext
16913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16914 (eval $ac_link) 2>&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
16918 { ac_try='test -s conftest$ac_exeext'
16919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
16924 ac_cv_lib_dld_dld_link=yes
16926 echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16929 ac_cv_lib_dld_dld_link=no
16931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16932 LIBS=$ac_check_lib_save_LIBS
16934 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16935 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16936 if test $ac_cv_lib_dld_dld_link = yes; then
16937 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16958 if test "x$lt_cv_dlopen" != xno; then
16964 case $lt_cv_dlopen in
16966 save_CPPFLAGS="$CPPFLAGS"
16967 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16969 save_LDFLAGS="$LDFLAGS"
16970 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16973 LIBS="$lt_cv_dlopen_libs $LIBS"
16975 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16976 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16977 if test "${lt_cv_dlopen_self+set}" = set; then
16978 echo $ECHO_N "(cached) $ECHO_C" >&6
16980 if test "$cross_compiling" = yes; then :
16981 lt_cv_dlopen_self=cross
16983 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16984 lt_status=$lt_dlunknown
16985 cat > conftest.$ac_ext <<EOF
16986 #line 16986 "configure"
16987 #include "confdefs.h"
16996 # define LT_DLGLOBAL RTLD_GLOBAL
16999 # define LT_DLGLOBAL DL_GLOBAL
17001 # define LT_DLGLOBAL 0
17005 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17006 find out it does not work in some platform. */
17007 #ifndef LT_DLLAZY_OR_NOW
17009 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17012 # define LT_DLLAZY_OR_NOW DL_LAZY
17015 # define LT_DLLAZY_OR_NOW RTLD_NOW
17018 # define LT_DLLAZY_OR_NOW DL_NOW
17020 # define LT_DLLAZY_OR_NOW 0
17028 extern "C" void exit (int);
17031 void fnord() { int i=42;}
17034 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17035 int status = $lt_dlunknown;
17039 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17040 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17041 /* dlclose (self); */
17047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17048 (eval $ac_link) 2>&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17052 (./conftest; exit; ) 2>/dev/null
17054 case x$lt_status in
17055 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17056 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17057 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17060 # compilation failed
17061 lt_cv_dlopen_self=no
17068 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17069 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17071 if test "x$lt_cv_dlopen_self" = xyes; then
17072 LDFLAGS="$LDFLAGS $link_static_flag"
17073 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17074 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17075 if test "${lt_cv_dlopen_self_static+set}" = set; then
17076 echo $ECHO_N "(cached) $ECHO_C" >&6
17078 if test "$cross_compiling" = yes; then :
17079 lt_cv_dlopen_self_static=cross
17081 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17082 lt_status=$lt_dlunknown
17083 cat > conftest.$ac_ext <<EOF
17084 #line 17084 "configure"
17085 #include "confdefs.h"
17094 # define LT_DLGLOBAL RTLD_GLOBAL
17097 # define LT_DLGLOBAL DL_GLOBAL
17099 # define LT_DLGLOBAL 0
17103 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17104 find out it does not work in some platform. */
17105 #ifndef LT_DLLAZY_OR_NOW
17107 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17110 # define LT_DLLAZY_OR_NOW DL_LAZY
17113 # define LT_DLLAZY_OR_NOW RTLD_NOW
17116 # define LT_DLLAZY_OR_NOW DL_NOW
17118 # define LT_DLLAZY_OR_NOW 0
17126 extern "C" void exit (int);
17129 void fnord() { int i=42;}
17132 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17133 int status = $lt_dlunknown;
17137 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17138 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17139 /* dlclose (self); */
17145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17146 (eval $ac_link) 2>&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17150 (./conftest; exit; ) 2>/dev/null
17152 case x$lt_status in
17153 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17154 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17155 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17158 # compilation failed
17159 lt_cv_dlopen_self_static=no
17166 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17167 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17170 CPPFLAGS="$save_CPPFLAGS"
17171 LDFLAGS="$save_LDFLAGS"
17176 case $lt_cv_dlopen_self in
17177 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17178 *) enable_dlopen_self=unknown ;;
17181 case $lt_cv_dlopen_self_static in
17182 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17183 *) enable_dlopen_self_static=unknown ;;
17188 # The else clause should only fire when bootstrapping the
17189 # libtool distribution, otherwise you forgot to ship ltmain.sh
17190 # with your package, and you will get complaints that there are
17191 # no rules to generate ltmain.sh.
17192 if test -f "$ltmain"; then
17193 # See if we are running on zsh, and set the options which allow our commands through
17194 # without removal of \ escapes.
17195 if test -n "${ZSH_VERSION+set}" ; then
17196 setopt NO_GLOB_SUBST
17198 # Now quote all the things that may contain metacharacters while being
17199 # careful not to overquote the AC_SUBSTed values. We take copies of the
17200 # variables and quote the copies for generation of the libtool script.
17201 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17202 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17203 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17204 deplibs_check_method reload_flag reload_cmds need_locks \
17205 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17206 lt_cv_sys_global_symbol_to_c_name_address \
17207 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17208 old_postinstall_cmds old_postuninstall_cmds \
17212 lt_prog_compiler_wl_GCJ \
17213 lt_prog_compiler_pic_GCJ \
17214 lt_prog_compiler_static_GCJ \
17215 lt_prog_compiler_no_builtin_flag_GCJ \
17216 export_dynamic_flag_spec_GCJ \
17217 thread_safe_flag_spec_GCJ \
17218 whole_archive_flag_spec_GCJ \
17219 enable_shared_with_static_runtimes_GCJ \
17220 old_archive_cmds_GCJ \
17221 old_archive_from_new_cmds_GCJ \
17222 predep_objects_GCJ \
17223 postdep_objects_GCJ \
17226 compiler_lib_search_path_GCJ \
17228 archive_expsym_cmds_GCJ \
17229 postinstall_cmds_GCJ \
17230 postuninstall_cmds_GCJ \
17231 old_archive_from_expsyms_cmds_GCJ \
17232 allow_undefined_flag_GCJ \
17233 no_undefined_flag_GCJ \
17234 export_symbols_cmds_GCJ \
17235 hardcode_libdir_flag_spec_GCJ \
17236 hardcode_libdir_flag_spec_ld_GCJ \
17237 hardcode_libdir_separator_GCJ \
17238 hardcode_automatic_GCJ \
17240 module_expsym_cmds_GCJ \
17241 lt_cv_prog_compiler_c_o_GCJ \
17242 exclude_expsyms_GCJ \
17243 include_expsyms_GCJ; do
17246 old_archive_cmds_GCJ | \
17247 old_archive_from_new_cmds_GCJ | \
17248 archive_cmds_GCJ | \
17249 archive_expsym_cmds_GCJ | \
17250 module_cmds_GCJ | \
17251 module_expsym_cmds_GCJ | \
17252 old_archive_from_expsyms_cmds_GCJ | \
17253 export_symbols_cmds_GCJ | \
17254 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17255 postinstall_cmds | postuninstall_cmds | \
17256 old_postinstall_cmds | old_postuninstall_cmds | \
17257 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17258 # Double-quote double-evaled strings.
17259 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17262 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17268 *'\$0 --fallback-echo"')
17269 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17275 cat <<__EOF__ >> "$cfgfile"
17276 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17278 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17280 # Shell to use when invoking shell scripts.
17283 # Whether or not to build shared libraries.
17284 build_libtool_libs=$enable_shared
17286 # Whether or not to build static libraries.
17287 build_old_libs=$enable_static
17289 # Whether or not to add -lc for building shared libraries.
17290 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17292 # Whether or not to disallow shared libs when runtime libs are static
17293 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17295 # Whether or not to optimize for fast installation.
17296 fast_install=$enable_fast_install
17299 host_alias=$host_alias
17302 # An echo program that does not interpret backslashes.
17307 AR_FLAGS=$lt_AR_FLAGS
17312 # A language-specific compiler.
17313 CC=$lt_compiler_GCJ
17315 # Is the compiler the GNU C compiler?
17321 # The linker used to build libraries.
17324 # Whether we need hard or soft links.
17327 # A BSD-compatible nm program.
17330 # A symbol stripping program
17333 # Used to examine libraries when file_magic_cmd begins "file"
17334 MAGIC_CMD=$MAGIC_CMD
17336 # Used on cygwin: DLL creation program.
17339 # Used on cygwin: object dumper.
17342 # Used on cygwin: assembler.
17345 # The name of the directory that contains temporary libtool files.
17348 # How to create reloadable object files.
17349 reload_flag=$lt_reload_flag
17350 reload_cmds=$lt_reload_cmds
17352 # How to pass a linker flag through the compiler.
17353 wl=$lt_lt_prog_compiler_wl_GCJ
17355 # Object file suffix (normally "o").
17356 objext="$ac_objext"
17358 # Old archive suffix (normally "a").
17361 # Shared library suffix (normally ".so").
17364 # Executable file suffix (normally "").
17367 # Additional compiler flags for building library objects.
17368 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17371 # What is the maximum length of a command?
17372 max_cmd_len=$lt_cv_sys_max_cmd_len
17374 # Does compiler simultaneously support -c and -o options?
17375 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17377 # Must we lock files when doing compilation ?
17378 need_locks=$lt_need_locks
17380 # Do we need the lib prefix for modules?
17381 need_lib_prefix=$need_lib_prefix
17383 # Do we need a version for libraries?
17384 need_version=$need_version
17386 # Whether dlopen is supported.
17387 dlopen_support=$enable_dlopen
17389 # Whether dlopen of programs is supported.
17390 dlopen_self=$enable_dlopen_self
17392 # Whether dlopen of statically linked programs is supported.
17393 dlopen_self_static=$enable_dlopen_self_static
17395 # Compiler flag to prevent dynamic linking.
17396 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17398 # Compiler flag to turn off builtin functions.
17399 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17401 # Compiler flag to allow reflexive dlopens.
17402 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17404 # Compiler flag to generate shared objects directly from archives.
17405 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17407 # Compiler flag to generate thread-safe objects.
17408 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17410 # Library versioning type.
17411 version_type=$version_type
17413 # Format of library name prefix.
17414 libname_spec=$lt_libname_spec
17416 # List of archive names. First name is the real one, the rest are links.
17417 # The last name is the one that the linker finds with -lNAME.
17418 library_names_spec=$lt_library_names_spec
17420 # The coded name of the library, if different from the real name.
17421 soname_spec=$lt_soname_spec
17423 # Commands used to build and install an old-style archive.
17425 old_archive_cmds=$lt_old_archive_cmds_GCJ
17426 old_postinstall_cmds=$lt_old_postinstall_cmds
17427 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17429 # Create an old-style archive from a shared archive.
17430 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17432 # Create a temporary old-style archive to link instead of a shared archive.
17433 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17435 # Commands used to build and install a shared archive.
17436 archive_cmds=$lt_archive_cmds_GCJ
17437 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17438 postinstall_cmds=$lt_postinstall_cmds
17439 postuninstall_cmds=$lt_postuninstall_cmds
17441 # Commands used to build a loadable module (assumed same as above if empty)
17442 module_cmds=$lt_module_cmds_GCJ
17443 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17445 # Commands to strip libraries.
17446 old_striplib=$lt_old_striplib
17447 striplib=$lt_striplib
17449 # Dependencies to place before the objects being linked to create a
17451 predep_objects=$lt_predep_objects_GCJ
17453 # Dependencies to place after the objects being linked to create a
17455 postdep_objects=$lt_postdep_objects_GCJ
17457 # Dependencies to place before the objects being linked to create a
17459 predeps=$lt_predeps_GCJ
17461 # Dependencies to place after the objects being linked to create a
17463 postdeps=$lt_postdeps_GCJ
17465 # The library search path used internally by the compiler when linking
17466 # a shared library.
17467 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17469 # Method to check whether dependent libraries are shared objects.
17470 deplibs_check_method=$lt_deplibs_check_method
17472 # Command to use when deplibs_check_method == file_magic.
17473 file_magic_cmd=$lt_file_magic_cmd
17475 # Flag that allows shared libraries with undefined symbols to be built.
17476 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17478 # Flag that forces no undefined symbols.
17479 no_undefined_flag=$lt_no_undefined_flag_GCJ
17481 # Commands used to finish a libtool library installation in a directory.
17482 finish_cmds=$lt_finish_cmds
17484 # Same as above, but a single script fragment to be evaled but not shown.
17485 finish_eval=$lt_finish_eval
17487 # Take the output of nm and produce a listing of raw symbols and C names.
17488 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17490 # Transform the output of nm in a proper C declaration
17491 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17493 # Transform the output of nm in a C name address pair
17494 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17496 # This is the shared library runtime path variable.
17497 runpath_var=$runpath_var
17499 # This is the shared library path variable.
17500 shlibpath_var=$shlibpath_var
17502 # Is shlibpath searched before the hard-coded library search path?
17503 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17505 # How to hardcode a shared library path into an executable.
17506 hardcode_action=$hardcode_action_GCJ
17508 # Whether we should hardcode library paths into libraries.
17509 hardcode_into_libs=$hardcode_into_libs
17511 # Flag to hardcode \$libdir into a binary during linking.
17512 # This must work even if \$libdir does not exist.
17513 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17515 # If ld is used when linking, flag to hardcode \$libdir into
17516 # a binary during linking. This must work even if \$libdir does
17518 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17520 # Whether we need a single -rpath flag with a separated argument.
17521 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17523 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17524 # resulting binary.
17525 hardcode_direct=$hardcode_direct_GCJ
17527 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17528 # resulting binary.
17529 hardcode_minus_L=$hardcode_minus_L_GCJ
17531 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17532 # the resulting binary.
17533 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17535 # Set to yes if building a shared library automatically hardcodes DIR into the library
17536 # and all subsequent libraries and executables linked against it.
17537 hardcode_automatic=$hardcode_automatic_GCJ
17539 # Variables whose values should be saved in libtool wrapper scripts and
17540 # restored at relink time.
17541 variables_saved_for_relink="$variables_saved_for_relink"
17543 # Whether libtool must link a program against all its dependency libraries.
17544 link_all_deplibs=$link_all_deplibs_GCJ
17546 # Compile-time system search path for libraries
17547 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17549 # Run-time system search path for libraries
17550 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17552 # Fix the shell variable \$srcfile for the compiler.
17553 fix_srcfile_path="$fix_srcfile_path_GCJ"
17555 # Set to yes if exported symbols are required.
17556 always_export_symbols=$always_export_symbols_GCJ
17558 # The commands to list exported symbols.
17559 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17561 # The commands to extract the exported symbol list from a shared archive.
17562 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17564 # Symbols that should not be listed in the preloaded symbols.
17565 exclude_expsyms=$lt_exclude_expsyms_GCJ
17567 # Symbols that must always be exported.
17568 include_expsyms=$lt_include_expsyms_GCJ
17570 # ### END LIBTOOL TAG CONFIG: $tagname
17576 # If there is no Makefile yet, we rely on a make rule to execute
17577 # `config.status --recheck' to rerun these tests and create the
17578 # libtool script then.
17579 test -f Makefile && make "$ltmain"
17584 ac_cpp='$CPP $CPPFLAGS'
17585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17600 # Source file extension for RC test sources.
17603 # Object file extension for compiled RC test sources.
17607 # Code to be used in simple compile tests
17608 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17610 # Code to be used in simple link tests
17611 lt_simple_link_test_code="$lt_simple_compile_test_code"
17613 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17615 # If no C compiler was specified, use CC.
17618 # Allow CC to be a program name with arguments.
17622 # Allow CC to be a program name with arguments.
17627 lt_cv_prog_compiler_c_o_RC=yes
17629 # The else clause should only fire when bootstrapping the
17630 # libtool distribution, otherwise you forgot to ship ltmain.sh
17631 # with your package, and you will get complaints that there are
17632 # no rules to generate ltmain.sh.
17633 if test -f "$ltmain"; then
17634 # See if we are running on zsh, and set the options which allow our commands through
17635 # without removal of \ escapes.
17636 if test -n "${ZSH_VERSION+set}" ; then
17637 setopt NO_GLOB_SUBST
17639 # Now quote all the things that may contain metacharacters while being
17640 # careful not to overquote the AC_SUBSTed values. We take copies of the
17641 # variables and quote the copies for generation of the libtool script.
17642 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17643 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17644 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17645 deplibs_check_method reload_flag reload_cmds need_locks \
17646 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17647 lt_cv_sys_global_symbol_to_c_name_address \
17648 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17649 old_postinstall_cmds old_postuninstall_cmds \
17653 lt_prog_compiler_wl_RC \
17654 lt_prog_compiler_pic_RC \
17655 lt_prog_compiler_static_RC \
17656 lt_prog_compiler_no_builtin_flag_RC \
17657 export_dynamic_flag_spec_RC \
17658 thread_safe_flag_spec_RC \
17659 whole_archive_flag_spec_RC \
17660 enable_shared_with_static_runtimes_RC \
17661 old_archive_cmds_RC \
17662 old_archive_from_new_cmds_RC \
17663 predep_objects_RC \
17664 postdep_objects_RC \
17667 compiler_lib_search_path_RC \
17669 archive_expsym_cmds_RC \
17670 postinstall_cmds_RC \
17671 postuninstall_cmds_RC \
17672 old_archive_from_expsyms_cmds_RC \
17673 allow_undefined_flag_RC \
17674 no_undefined_flag_RC \
17675 export_symbols_cmds_RC \
17676 hardcode_libdir_flag_spec_RC \
17677 hardcode_libdir_flag_spec_ld_RC \
17678 hardcode_libdir_separator_RC \
17679 hardcode_automatic_RC \
17681 module_expsym_cmds_RC \
17682 lt_cv_prog_compiler_c_o_RC \
17683 exclude_expsyms_RC \
17684 include_expsyms_RC; do
17687 old_archive_cmds_RC | \
17688 old_archive_from_new_cmds_RC | \
17689 archive_cmds_RC | \
17690 archive_expsym_cmds_RC | \
17692 module_expsym_cmds_RC | \
17693 old_archive_from_expsyms_cmds_RC | \
17694 export_symbols_cmds_RC | \
17695 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17696 postinstall_cmds | postuninstall_cmds | \
17697 old_postinstall_cmds | old_postuninstall_cmds | \
17698 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17699 # Double-quote double-evaled strings.
17700 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17703 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17709 *'\$0 --fallback-echo"')
17710 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17716 cat <<__EOF__ >> "$cfgfile"
17717 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17719 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17721 # Shell to use when invoking shell scripts.
17724 # Whether or not to build shared libraries.
17725 build_libtool_libs=$enable_shared
17727 # Whether or not to build static libraries.
17728 build_old_libs=$enable_static
17730 # Whether or not to add -lc for building shared libraries.
17731 build_libtool_need_lc=$archive_cmds_need_lc_RC
17733 # Whether or not to disallow shared libs when runtime libs are static
17734 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17736 # Whether or not to optimize for fast installation.
17737 fast_install=$enable_fast_install
17740 host_alias=$host_alias
17743 # An echo program that does not interpret backslashes.
17748 AR_FLAGS=$lt_AR_FLAGS
17753 # A language-specific compiler.
17756 # Is the compiler the GNU C compiler?
17762 # The linker used to build libraries.
17765 # Whether we need hard or soft links.
17768 # A BSD-compatible nm program.
17771 # A symbol stripping program
17774 # Used to examine libraries when file_magic_cmd begins "file"
17775 MAGIC_CMD=$MAGIC_CMD
17777 # Used on cygwin: DLL creation program.
17780 # Used on cygwin: object dumper.
17783 # Used on cygwin: assembler.
17786 # The name of the directory that contains temporary libtool files.
17789 # How to create reloadable object files.
17790 reload_flag=$lt_reload_flag
17791 reload_cmds=$lt_reload_cmds
17793 # How to pass a linker flag through the compiler.
17794 wl=$lt_lt_prog_compiler_wl_RC
17796 # Object file suffix (normally "o").
17797 objext="$ac_objext"
17799 # Old archive suffix (normally "a").
17802 # Shared library suffix (normally ".so").
17805 # Executable file suffix (normally "").
17808 # Additional compiler flags for building library objects.
17809 pic_flag=$lt_lt_prog_compiler_pic_RC
17812 # What is the maximum length of a command?
17813 max_cmd_len=$lt_cv_sys_max_cmd_len
17815 # Does compiler simultaneously support -c and -o options?
17816 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17818 # Must we lock files when doing compilation ?
17819 need_locks=$lt_need_locks
17821 # Do we need the lib prefix for modules?
17822 need_lib_prefix=$need_lib_prefix
17824 # Do we need a version for libraries?
17825 need_version=$need_version
17827 # Whether dlopen is supported.
17828 dlopen_support=$enable_dlopen
17830 # Whether dlopen of programs is supported.
17831 dlopen_self=$enable_dlopen_self
17833 # Whether dlopen of statically linked programs is supported.
17834 dlopen_self_static=$enable_dlopen_self_static
17836 # Compiler flag to prevent dynamic linking.
17837 link_static_flag=$lt_lt_prog_compiler_static_RC
17839 # Compiler flag to turn off builtin functions.
17840 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17842 # Compiler flag to allow reflexive dlopens.
17843 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17845 # Compiler flag to generate shared objects directly from archives.
17846 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17848 # Compiler flag to generate thread-safe objects.
17849 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17851 # Library versioning type.
17852 version_type=$version_type
17854 # Format of library name prefix.
17855 libname_spec=$lt_libname_spec
17857 # List of archive names. First name is the real one, the rest are links.
17858 # The last name is the one that the linker finds with -lNAME.
17859 library_names_spec=$lt_library_names_spec
17861 # The coded name of the library, if different from the real name.
17862 soname_spec=$lt_soname_spec
17864 # Commands used to build and install an old-style archive.
17866 old_archive_cmds=$lt_old_archive_cmds_RC
17867 old_postinstall_cmds=$lt_old_postinstall_cmds
17868 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17870 # Create an old-style archive from a shared archive.
17871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17873 # Create a temporary old-style archive to link instead of a shared archive.
17874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17876 # Commands used to build and install a shared archive.
17877 archive_cmds=$lt_archive_cmds_RC
17878 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17879 postinstall_cmds=$lt_postinstall_cmds
17880 postuninstall_cmds=$lt_postuninstall_cmds
17882 # Commands used to build a loadable module (assumed same as above if empty)
17883 module_cmds=$lt_module_cmds_RC
17884 module_expsym_cmds=$lt_module_expsym_cmds_RC
17886 # Commands to strip libraries.
17887 old_striplib=$lt_old_striplib
17888 striplib=$lt_striplib
17890 # Dependencies to place before the objects being linked to create a
17892 predep_objects=$lt_predep_objects_RC
17894 # Dependencies to place after the objects being linked to create a
17896 postdep_objects=$lt_postdep_objects_RC
17898 # Dependencies to place before the objects being linked to create a
17900 predeps=$lt_predeps_RC
17902 # Dependencies to place after the objects being linked to create a
17904 postdeps=$lt_postdeps_RC
17906 # The library search path used internally by the compiler when linking
17907 # a shared library.
17908 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17910 # Method to check whether dependent libraries are shared objects.
17911 deplibs_check_method=$lt_deplibs_check_method
17913 # Command to use when deplibs_check_method == file_magic.
17914 file_magic_cmd=$lt_file_magic_cmd
17916 # Flag that allows shared libraries with undefined symbols to be built.
17917 allow_undefined_flag=$lt_allow_undefined_flag_RC
17919 # Flag that forces no undefined symbols.
17920 no_undefined_flag=$lt_no_undefined_flag_RC
17922 # Commands used to finish a libtool library installation in a directory.
17923 finish_cmds=$lt_finish_cmds
17925 # Same as above, but a single script fragment to be evaled but not shown.
17926 finish_eval=$lt_finish_eval
17928 # Take the output of nm and produce a listing of raw symbols and C names.
17929 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17931 # Transform the output of nm in a proper C declaration
17932 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17934 # Transform the output of nm in a C name address pair
17935 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17937 # This is the shared library runtime path variable.
17938 runpath_var=$runpath_var
17940 # This is the shared library path variable.
17941 shlibpath_var=$shlibpath_var
17943 # Is shlibpath searched before the hard-coded library search path?
17944 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17946 # How to hardcode a shared library path into an executable.
17947 hardcode_action=$hardcode_action_RC
17949 # Whether we should hardcode library paths into libraries.
17950 hardcode_into_libs=$hardcode_into_libs
17952 # Flag to hardcode \$libdir into a binary during linking.
17953 # This must work even if \$libdir does not exist.
17954 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17956 # If ld is used when linking, flag to hardcode \$libdir into
17957 # a binary during linking. This must work even if \$libdir does
17959 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17961 # Whether we need a single -rpath flag with a separated argument.
17962 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17964 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17965 # resulting binary.
17966 hardcode_direct=$hardcode_direct_RC
17968 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17969 # resulting binary.
17970 hardcode_minus_L=$hardcode_minus_L_RC
17972 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17973 # the resulting binary.
17974 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17976 # Set to yes if building a shared library automatically hardcodes DIR into the library
17977 # and all subsequent libraries and executables linked against it.
17978 hardcode_automatic=$hardcode_automatic_RC
17980 # Variables whose values should be saved in libtool wrapper scripts and
17981 # restored at relink time.
17982 variables_saved_for_relink="$variables_saved_for_relink"
17984 # Whether libtool must link a program against all its dependency libraries.
17985 link_all_deplibs=$link_all_deplibs_RC
17987 # Compile-time system search path for libraries
17988 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17990 # Run-time system search path for libraries
17991 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17993 # Fix the shell variable \$srcfile for the compiler.
17994 fix_srcfile_path="$fix_srcfile_path_RC"
17996 # Set to yes if exported symbols are required.
17997 always_export_symbols=$always_export_symbols_RC
17999 # The commands to list exported symbols.
18000 export_symbols_cmds=$lt_export_symbols_cmds_RC
18002 # The commands to extract the exported symbol list from a shared archive.
18003 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18005 # Symbols that should not be listed in the preloaded symbols.
18006 exclude_expsyms=$lt_exclude_expsyms_RC
18008 # Symbols that must always be exported.
18009 include_expsyms=$lt_include_expsyms_RC
18011 # ### END LIBTOOL TAG CONFIG: $tagname
18017 # If there is no Makefile yet, we rely on a make rule to execute
18018 # `config.status --recheck' to rerun these tests and create the
18019 # libtool script then.
18020 test -f Makefile && make "$ltmain"
18025 ac_cpp='$CPP $CPPFLAGS'
18026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18035 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18036 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18037 { (exit 1); exit 1; }; }
18041 # Append the new tag name to the list of available tags.
18042 if test -n "$tagname" ; then
18043 available_tags="$available_tags $tagname"
18049 # Now substitute the updated list of available tags.
18050 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18051 mv "${ofile}T" "$ofile"
18055 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18056 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18057 { (exit 1); exit 1; }; }
18063 # This can be used to rebuild libtool when needed
18064 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18066 # Always use our own libtool.
18067 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18069 # Prevent multiple expansion
18091 # Extract the first word of "dot", so it can be a program name with args.
18092 set dummy dot; ac_word=$2
18093 echo "$as_me:$LINENO: checking for $ac_word" >&5
18094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18095 if test "${ac_cv_path_DOT+set}" = set; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18100 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18104 for as_dir in $PATH
18107 test -z "$as_dir" && as_dir=.
18108 for ac_exec_ext in '' $ac_executable_extensions; do
18109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18110 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18117 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18121 DOT=$ac_cv_path_DOT
18123 if test -n "$DOT"; then
18124 echo "$as_me:$LINENO: result: $DOT" >&5
18125 echo "${ECHO_T}$DOT" >&6
18127 echo "$as_me:$LINENO: result: no" >&5
18128 echo "${ECHO_T}no" >&6
18131 # Extract the first word of "etags", so it can be a program name with args.
18132 set dummy etags; ac_word=$2
18133 echo "$as_me:$LINENO: checking for $ac_word" >&5
18134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18135 if test "${ac_cv_path_ETAGS+set}" = set; then
18136 echo $ECHO_N "(cached) $ECHO_C" >&6
18140 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18144 for as_dir in $PATH
18147 test -z "$as_dir" && as_dir=.
18148 for ac_exec_ext in '' $ac_executable_extensions; do
18149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18150 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18157 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18161 ETAGS=$ac_cv_path_ETAGS
18163 if test -n "$ETAGS"; then
18164 echo "$as_me:$LINENO: result: $ETAGS" >&5
18165 echo "${ECHO_T}$ETAGS" >&6
18167 echo "$as_me:$LINENO: result: no" >&5
18168 echo "${ECHO_T}no" >&6
18171 etags_version=`$ETAGS --version 2>&1`
18172 case "$etags_version" in
18173 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18174 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18175 *) ETAGSFLAGS="" ;;
18177 ETAGSFLAGS=$ETAGSFLAGS
18179 # Extract the first word of "python", so it can be a program name with args.
18180 set dummy python; ac_word=$2
18181 echo "$as_me:$LINENO: checking for $ac_word" >&5
18182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18183 if test "${ac_cv_path_PYTHON+set}" = set; then
18184 echo $ECHO_N "(cached) $ECHO_C" >&6
18188 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18192 for as_dir in $PATH
18195 test -z "$as_dir" && as_dir=.
18196 for ac_exec_ext in '' $ac_executable_extensions; do
18197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18198 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18205 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18209 PYTHON=$ac_cv_path_PYTHON
18211 if test -n "$PYTHON"; then
18212 echo "$as_me:$LINENO: result: $PYTHON" >&5
18213 echo "${ECHO_T}$PYTHON" >&6
18215 echo "$as_me:$LINENO: result: no" >&5
18216 echo "${ECHO_T}no" >&6
18219 if test "$PYTHON" = "false"
18221 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18222 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18224 # Extract the first word of "qmtest", so it can be a program name with args.
18225 set dummy qmtest; ac_word=$2
18226 echo "$as_me:$LINENO: checking for $ac_word" >&5
18227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18228 if test "${ac_cv_path_QMTEST+set}" = set; then
18229 echo $ECHO_N "(cached) $ECHO_C" >&6
18233 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18237 for as_dir in $PATH
18240 test -z "$as_dir" && as_dir=.
18241 for ac_exec_ext in '' $ac_executable_extensions; do
18242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18243 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18250 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18254 QMTEST=$ac_cv_path_QMTEST
18256 if test -n "$QMTEST"; then
18257 echo "$as_me:$LINENO: result: $QMTEST" >&5
18258 echo "${ECHO_T}$QMTEST" >&6
18260 echo "$as_me:$LINENO: result: no" >&5
18261 echo "${ECHO_T}no" >&6
18264 if test "$QMTEST" = "false"
18266 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18267 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18270 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18271 pymajor=`echo $pyversion | cut -d. -f1`
18272 pyminor=`echo $pyversion | cut -d. -f2`
18274 if test "$pymajor" -ge "2"
18276 if test "$pymajor" -eq "2"
18278 if test "$pyminor" -lt "2"
18280 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18281 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18285 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18286 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18292 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18293 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18294 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18295 echo $ECHO_N "(cached) $ECHO_C" >&6
18297 ac_check_lib_save_LIBS=$LIBS
18299 cat >conftest.$ac_ext <<_ACEOF
18300 #line $LINENO "configure"
18303 cat confdefs.h >>conftest.$ac_ext
18304 cat >>conftest.$ac_ext <<_ACEOF
18305 /* end confdefs.h. */
18307 /* Override any gcc2 internal prototype to avoid an error. */
18311 /* We use char because int might match the return type of a gcc2
18312 builtin and then its argument prototype would still apply. */
18322 rm -f conftest.$ac_objext conftest$ac_exeext
18323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18324 (eval $ac_link) 2>&5
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } &&
18328 { ac_try='test -s conftest$ac_exeext'
18329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330 (eval $ac_try) 2>&5
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; }; then
18334 ac_cv_lib_elf_elf_begin=yes
18336 echo "$as_me: failed program was:" >&5
18337 sed 's/^/| /' conftest.$ac_ext >&5
18339 ac_cv_lib_elf_elf_begin=no
18341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18342 LIBS=$ac_check_lib_save_LIBS
18344 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18345 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18346 if test $ac_cv_lib_elf_elf_begin = yes; then
18347 cat >>confdefs.h <<_ACEOF
18348 #define HAVE_LIBELF 1
18356 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18357 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18358 if test "${ac_cv_search_dlopen+set}" = set; then
18359 echo $ECHO_N "(cached) $ECHO_C" >&6
18361 ac_func_search_save_LIBS=$LIBS
18362 ac_cv_search_dlopen=no
18363 cat >conftest.$ac_ext <<_ACEOF
18364 #line $LINENO "configure"
18367 cat confdefs.h >>conftest.$ac_ext
18368 cat >>conftest.$ac_ext <<_ACEOF
18369 /* end confdefs.h. */
18371 /* Override any gcc2 internal prototype to avoid an error. */
18375 /* We use char because int might match the return type of a gcc2
18376 builtin and then its argument prototype would still apply. */
18386 rm -f conftest.$ac_objext conftest$ac_exeext
18387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18388 (eval $ac_link) 2>&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } &&
18392 { ac_try='test -s conftest$ac_exeext'
18393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394 (eval $ac_try) 2>&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; }; then
18398 ac_cv_search_dlopen="none required"
18400 echo "$as_me: failed program was:" >&5
18401 sed 's/^/| /' conftest.$ac_ext >&5
18404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18405 if test "$ac_cv_search_dlopen" = no; then
18406 for ac_lib in dl; do
18407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18408 cat >conftest.$ac_ext <<_ACEOF
18409 #line $LINENO "configure"
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h. */
18416 /* Override any gcc2 internal prototype to avoid an error. */
18420 /* We use char because int might match the return type of a gcc2
18421 builtin and then its argument prototype would still apply. */
18431 rm -f conftest.$ac_objext conftest$ac_exeext
18432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18433 (eval $ac_link) 2>&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } &&
18437 { ac_try='test -s conftest$ac_exeext'
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; }; then
18443 ac_cv_search_dlopen="-l$ac_lib"
18446 echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18453 LIBS=$ac_func_search_save_LIBS
18455 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18456 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18457 if test "$ac_cv_search_dlopen" != no; then
18458 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18460 cat >>confdefs.h <<\_ACEOF
18461 #define HAVE_DLOPEN 1
18465 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18466 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18470 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18471 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18472 if test "${ac_cv_search_mallinfo+set}" = set; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18475 ac_func_search_save_LIBS=$LIBS
18476 ac_cv_search_mallinfo=no
18477 cat >conftest.$ac_ext <<_ACEOF
18478 #line $LINENO "configure"
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h. */
18485 /* Override any gcc2 internal prototype to avoid an error. */
18489 /* We use char because int might match the return type of a gcc2
18490 builtin and then its argument prototype would still apply. */
18500 rm -f conftest.$ac_objext conftest$ac_exeext
18501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18502 (eval $ac_link) 2>&5
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); } &&
18506 { ac_try='test -s conftest$ac_exeext'
18507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18508 (eval $ac_try) 2>&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; }; then
18512 ac_cv_search_mallinfo="none required"
18514 echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.$ac_ext >&5
18518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18519 if test "$ac_cv_search_mallinfo" = no; then
18520 for ac_lib in malloc; do
18521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18522 cat >conftest.$ac_ext <<_ACEOF
18523 #line $LINENO "configure"
18526 cat confdefs.h >>conftest.$ac_ext
18527 cat >>conftest.$ac_ext <<_ACEOF
18528 /* end confdefs.h. */
18530 /* Override any gcc2 internal prototype to avoid an error. */
18534 /* We use char because int might match the return type of a gcc2
18535 builtin and then its argument prototype would still apply. */
18545 rm -f conftest.$ac_objext conftest$ac_exeext
18546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18547 (eval $ac_link) 2>&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } &&
18551 { ac_try='test -s conftest$ac_exeext'
18552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18553 (eval $ac_try) 2>&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; }; then
18557 ac_cv_search_mallinfo="-l$ac_lib"
18560 echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18567 LIBS=$ac_func_search_save_LIBS
18569 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18570 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18571 if test "$ac_cv_search_mallinfo" != no; then
18572 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18574 cat >>confdefs.h <<\_ACEOF
18575 #define HAVE_MALLINFO 1
18581 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18582 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18583 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18584 echo $ECHO_N "(cached) $ECHO_C" >&6
18586 ac_func_search_save_LIBS=$LIBS
18587 ac_cv_search_pthread_mutex_lock=no
18588 cat >conftest.$ac_ext <<_ACEOF
18589 #line $LINENO "configure"
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h. */
18596 /* Override any gcc2 internal prototype to avoid an error. */
18600 /* We use char because int might match the return type of a gcc2
18601 builtin and then its argument prototype would still apply. */
18602 char pthread_mutex_lock ();
18606 pthread_mutex_lock ();
18611 rm -f conftest.$ac_objext conftest$ac_exeext
18612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18613 (eval $ac_link) 2>&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } &&
18617 { ac_try='test -s conftest$ac_exeext'
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; }; then
18623 ac_cv_search_pthread_mutex_lock="none required"
18625 echo "$as_me: failed program was:" >&5
18626 sed 's/^/| /' conftest.$ac_ext >&5
18629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18630 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18631 for ac_lib in pthread; do
18632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18633 cat >conftest.$ac_ext <<_ACEOF
18634 #line $LINENO "configure"
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h. */
18641 /* Override any gcc2 internal prototype to avoid an error. */
18645 /* We use char because int might match the return type of a gcc2
18646 builtin and then its argument prototype would still apply. */
18647 char pthread_mutex_lock ();
18651 pthread_mutex_lock ();
18656 rm -f conftest.$ac_objext conftest$ac_exeext
18657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18658 (eval $ac_link) 2>&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } &&
18662 { ac_try='test -s conftest$ac_exeext'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
18668 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18671 echo "$as_me: failed program was:" >&5
18672 sed 's/^/| /' conftest.$ac_ext >&5
18675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18678 LIBS=$ac_func_search_save_LIBS
18680 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18681 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18682 if test "$ac_cv_search_pthread_mutex_lock" != no; then
18683 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18684 HAVE_PTHREAD_MUTEX_LOCK=1
18686 HAVE_PTHREAD_MUTEX_LOCK=0
18691 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18692 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18693 if test "${ac_cv_header_stdc+set}" = set; then
18694 echo $ECHO_N "(cached) $ECHO_C" >&6
18696 cat >conftest.$ac_ext <<_ACEOF
18697 #line $LINENO "configure"
18700 cat confdefs.h >>conftest.$ac_ext
18701 cat >>conftest.$ac_ext <<_ACEOF
18702 /* end confdefs.h. */
18703 #include <stdlib.h>
18704 #include <stdarg.h>
18705 #include <string.h>
18716 rm -f conftest.$ac_objext
18717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18718 (eval $ac_compile) 2>&5
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); } &&
18722 { ac_try='test -s conftest.$ac_objext'
18723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18724 (eval $ac_try) 2>&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; }; then
18728 ac_cv_header_stdc=yes
18730 echo "$as_me: failed program was:" >&5
18731 sed 's/^/| /' conftest.$ac_ext >&5
18733 ac_cv_header_stdc=no
18735 rm -f conftest.$ac_objext conftest.$ac_ext
18737 if test $ac_cv_header_stdc = yes; then
18738 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18739 cat >conftest.$ac_ext <<_ACEOF
18740 #line $LINENO "configure"
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h. */
18746 #include <string.h>
18749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18750 $EGREP "memchr" >/dev/null 2>&1; then
18753 ac_cv_header_stdc=no
18759 if test $ac_cv_header_stdc = yes; then
18760 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18761 cat >conftest.$ac_ext <<_ACEOF
18762 #line $LINENO "configure"
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h. */
18768 #include <stdlib.h>
18771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18772 $EGREP "free" >/dev/null 2>&1; then
18775 ac_cv_header_stdc=no
18781 if test $ac_cv_header_stdc = yes; then
18782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18783 if test "$cross_compiling" = yes; then
18786 cat >conftest.$ac_ext <<_ACEOF
18787 #line $LINENO "configure"
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h. */
18794 #if ((' ' & 0x0FF) == 0x020)
18795 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18796 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18798 # define ISLOWER(c) \
18799 (('a' <= (c) && (c) <= 'i') \
18800 || ('j' <= (c) && (c) <= 'r') \
18801 || ('s' <= (c) && (c) <= 'z'))
18802 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18805 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18810 for (i = 0; i < 256; i++)
18811 if (XOR (islower (i), ISLOWER (i))
18812 || toupper (i) != TOUPPER (i))
18817 rm -f conftest$ac_exeext
18818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18819 (eval $ac_link) 2>&5
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18824 (eval $ac_try) 2>&5
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); }; }; then
18830 echo "$as_me: program exited with status $ac_status" >&5
18831 echo "$as_me: failed program was:" >&5
18832 sed 's/^/| /' conftest.$ac_ext >&5
18834 ( exit $ac_status )
18835 ac_cv_header_stdc=no
18837 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18841 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18842 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18843 if test $ac_cv_header_stdc = yes; then
18845 cat >>confdefs.h <<\_ACEOF
18846 #define STDC_HEADERS 1
18851 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18852 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18853 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18854 echo $ECHO_N "(cached) $ECHO_C" >&6
18856 cat >conftest.$ac_ext <<_ACEOF
18857 #line $LINENO "configure"
18860 cat confdefs.h >>conftest.$ac_ext
18861 cat >>conftest.$ac_ext <<_ACEOF
18862 /* end confdefs.h. */
18863 #include <sys/types.h>
18864 #include <sys/wait.h>
18865 #ifndef WEXITSTATUS
18866 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18869 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18877 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18882 rm -f conftest.$ac_objext
18883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18884 (eval $ac_compile) 2>&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); } &&
18888 { ac_try='test -s conftest.$ac_objext'
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; }; then
18894 ac_cv_header_sys_wait_h=yes
18896 echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18899 ac_cv_header_sys_wait_h=no
18901 rm -f conftest.$ac_objext conftest.$ac_ext
18903 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18904 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18905 if test $ac_cv_header_sys_wait_h = yes; then
18907 cat >>confdefs.h <<\_ACEOF
18908 #define HAVE_SYS_WAIT_H 1
18925 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
18927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18929 echo "$as_me:$LINENO: checking for $ac_header" >&5
18930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
18934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18937 # Is the header compilable?
18938 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18940 cat >conftest.$ac_ext <<_ACEOF
18941 #line $LINENO "configure"
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18947 $ac_includes_default
18948 #include <$ac_header>
18950 rm -f conftest.$ac_objext
18951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18952 (eval $ac_compile) 2>&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } &&
18956 { ac_try='test -s conftest.$ac_objext'
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; }; then
18962 ac_header_compiler=yes
18964 echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.$ac_ext >&5
18967 ac_header_compiler=no
18969 rm -f conftest.$ac_objext conftest.$ac_ext
18970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18971 echo "${ECHO_T}$ac_header_compiler" >&6
18973 # Is the header present?
18974 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18976 cat >conftest.$ac_ext <<_ACEOF
18977 #line $LINENO "configure"
18980 cat confdefs.h >>conftest.$ac_ext
18981 cat >>conftest.$ac_ext <<_ACEOF
18982 /* end confdefs.h. */
18983 #include <$ac_header>
18985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18988 grep -v '^ *+' conftest.er1 >conftest.err
18990 cat conftest.err >&5
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); } >/dev/null; then
18993 if test -s conftest.err; then
18994 ac_cpp_err=$ac_c_preproc_warn_flag
19001 if test -z "$ac_cpp_err"; then
19002 ac_header_preproc=yes
19004 echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19007 ac_header_preproc=no
19009 rm -f conftest.err conftest.$ac_ext
19010 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19011 echo "${ECHO_T}$ac_header_preproc" >&6
19013 # So? What about this header?
19014 case $ac_header_compiler:$ac_header_preproc in
19016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19022 ## ------------------------------------ ##
19023 ## Report this to bug-autoconf@gnu.org. ##
19024 ## ------------------------------------ ##
19027 sed "s/^/$as_me: WARNING: /" >&2
19030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19038 ## ------------------------------------ ##
19039 ## Report this to bug-autoconf@gnu.org. ##
19040 ## ------------------------------------ ##
19043 sed "s/^/$as_me: WARNING: /" >&2
19046 echo "$as_me:$LINENO: checking for $ac_header" >&5
19047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19049 echo $ECHO_N "(cached) $ECHO_C" >&6
19051 eval "$as_ac_Header=$ac_header_preproc"
19053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19058 cat >>confdefs.h <<_ACEOF
19059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19067 if test "${ac_cv_header_sys_types_h+set}" = set; then
19068 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19069 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19070 if test "${ac_cv_header_sys_types_h+set}" = set; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19073 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19074 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19076 # Is the header compilable?
19077 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19078 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19079 cat >conftest.$ac_ext <<_ACEOF
19080 #line $LINENO "configure"
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19086 $ac_includes_default
19087 #include <sys/types.h>
19089 rm -f conftest.$ac_objext
19090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19091 (eval $ac_compile) 2>&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); } &&
19095 { ac_try='test -s conftest.$ac_objext'
19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097 (eval $ac_try) 2>&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; }; then
19101 ac_header_compiler=yes
19103 echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19106 ac_header_compiler=no
19108 rm -f conftest.$ac_objext conftest.$ac_ext
19109 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19110 echo "${ECHO_T}$ac_header_compiler" >&6
19112 # Is the header present?
19113 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19114 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19115 cat >conftest.$ac_ext <<_ACEOF
19116 #line $LINENO "configure"
19119 cat confdefs.h >>conftest.$ac_ext
19120 cat >>conftest.$ac_ext <<_ACEOF
19121 /* end confdefs.h. */
19122 #include <sys/types.h>
19124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19127 grep -v '^ *+' conftest.er1 >conftest.err
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } >/dev/null; then
19132 if test -s conftest.err; then
19133 ac_cpp_err=$ac_c_preproc_warn_flag
19140 if test -z "$ac_cpp_err"; then
19141 ac_header_preproc=yes
19143 echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19146 ac_header_preproc=no
19148 rm -f conftest.err conftest.$ac_ext
19149 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19150 echo "${ECHO_T}$ac_header_preproc" >&6
19152 # So? What about this header?
19153 case $ac_header_compiler:$ac_header_preproc in
19155 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19156 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19157 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19158 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19161 ## ------------------------------------ ##
19162 ## Report this to bug-autoconf@gnu.org. ##
19163 ## ------------------------------------ ##
19166 sed "s/^/$as_me: WARNING: /" >&2
19169 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19170 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19171 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19172 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19173 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19174 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19177 ## ------------------------------------ ##
19178 ## Report this to bug-autoconf@gnu.org. ##
19179 ## ------------------------------------ ##
19182 sed "s/^/$as_me: WARNING: /" >&2
19185 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19186 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19187 if test "${ac_cv_header_sys_types_h+set}" = set; then
19188 echo $ECHO_N "(cached) $ECHO_C" >&6
19190 ac_cv_header_sys_types_h=$ac_header_preproc
19192 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19193 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19196 if test $ac_cv_header_sys_types_h = yes; then
19197 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19199 INCLUDE_SYS_TYPES_H=''
19204 if test "${ac_cv_header_inttypes_h+set}" = set; then
19205 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19206 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19207 if test "${ac_cv_header_inttypes_h+set}" = set; then
19208 echo $ECHO_N "(cached) $ECHO_C" >&6
19210 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19211 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19213 # Is the header compilable?
19214 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19215 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19216 cat >conftest.$ac_ext <<_ACEOF
19217 #line $LINENO "configure"
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h. */
19223 $ac_includes_default
19224 #include <inttypes.h>
19226 rm -f conftest.$ac_objext
19227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19228 (eval $ac_compile) 2>&5
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); } &&
19232 { ac_try='test -s conftest.$ac_objext'
19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19238 ac_header_compiler=yes
19240 echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19243 ac_header_compiler=no
19245 rm -f conftest.$ac_objext conftest.$ac_ext
19246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19247 echo "${ECHO_T}$ac_header_compiler" >&6
19249 # Is the header present?
19250 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19251 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19252 cat >conftest.$ac_ext <<_ACEOF
19253 #line $LINENO "configure"
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h. */
19259 #include <inttypes.h>
19261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19264 grep -v '^ *+' conftest.er1 >conftest.err
19266 cat conftest.err >&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } >/dev/null; then
19269 if test -s conftest.err; then
19270 ac_cpp_err=$ac_c_preproc_warn_flag
19277 if test -z "$ac_cpp_err"; then
19278 ac_header_preproc=yes
19280 echo "$as_me: failed program was:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19283 ac_header_preproc=no
19285 rm -f conftest.err conftest.$ac_ext
19286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19287 echo "${ECHO_T}$ac_header_preproc" >&6
19289 # So? What about this header?
19290 case $ac_header_compiler:$ac_header_preproc in
19292 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19293 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19294 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19295 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19298 ## ------------------------------------ ##
19299 ## Report this to bug-autoconf@gnu.org. ##
19300 ## ------------------------------------ ##
19303 sed "s/^/$as_me: WARNING: /" >&2
19306 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19307 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19308 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19309 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19310 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19311 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19314 ## ------------------------------------ ##
19315 ## Report this to bug-autoconf@gnu.org. ##
19316 ## ------------------------------------ ##
19319 sed "s/^/$as_me: WARNING: /" >&2
19322 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19323 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19324 if test "${ac_cv_header_inttypes_h+set}" = set; then
19325 echo $ECHO_N "(cached) $ECHO_C" >&6
19327 ac_cv_header_inttypes_h=$ac_header_preproc
19329 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19330 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19333 if test $ac_cv_header_inttypes_h = yes; then
19334 INCLUDE_INTTYPES_H='#include <inttypes.h>'
19336 INCLUDE_INTTYPES_H=''
19342 echo "$as_me:$LINENO: checking for pid_t" >&5
19343 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19344 if test "${ac_cv_type_pid_t+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19347 cat >conftest.$ac_ext <<_ACEOF
19348 #line $LINENO "configure"
19351 cat confdefs.h >>conftest.$ac_ext
19352 cat >>conftest.$ac_ext <<_ACEOF
19353 /* end confdefs.h. */
19354 $ac_includes_default
19360 if (sizeof (pid_t))
19366 rm -f conftest.$ac_objext
19367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19368 (eval $ac_compile) 2>&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } &&
19372 { ac_try='test -s conftest.$ac_objext'
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; }; then
19378 ac_cv_type_pid_t=yes
19380 echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19383 ac_cv_type_pid_t=no
19385 rm -f conftest.$ac_objext conftest.$ac_ext
19387 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19388 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19389 if test $ac_cv_type_pid_t = yes; then
19393 cat >>confdefs.h <<_ACEOF
19399 echo "$as_me:$LINENO: checking for size_t" >&5
19400 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19401 if test "${ac_cv_type_size_t+set}" = set; then
19402 echo $ECHO_N "(cached) $ECHO_C" >&6
19404 cat >conftest.$ac_ext <<_ACEOF
19405 #line $LINENO "configure"
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h. */
19411 $ac_includes_default
19417 if (sizeof (size_t))
19423 rm -f conftest.$ac_objext
19424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19425 (eval $ac_compile) 2>&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); } &&
19429 { ac_try='test -s conftest.$ac_objext'
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; }; then
19435 ac_cv_type_size_t=yes
19437 echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19440 ac_cv_type_size_t=no
19442 rm -f conftest.$ac_objext conftest.$ac_ext
19444 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19445 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19446 if test $ac_cv_type_size_t = yes; then
19450 cat >>confdefs.h <<_ACEOF
19451 #define size_t unsigned
19456 echo "$as_me:$LINENO: checking for int64_t" >&5
19457 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19458 if test "${ac_cv_type_int64_t+set}" = set; then
19459 echo $ECHO_N "(cached) $ECHO_C" >&6
19461 cat >conftest.$ac_ext <<_ACEOF
19462 #line $LINENO "configure"
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h. */
19468 $ac_includes_default
19474 if (sizeof (int64_t))
19480 rm -f conftest.$ac_objext
19481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19482 (eval $ac_compile) 2>&5
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); } &&
19486 { ac_try='test -s conftest.$ac_objext'
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; }; then
19492 ac_cv_type_int64_t=yes
19494 echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19497 ac_cv_type_int64_t=no
19499 rm -f conftest.$ac_objext conftest.$ac_ext
19501 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19502 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19503 if test $ac_cv_type_int64_t = yes; then
19505 cat >>confdefs.h <<_ACEOF
19506 #define HAVE_INT64_T 1
19511 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19512 echo "$as_me: error: Type int64_t required but not found" >&2;}
19513 { (exit 1); exit 1; }; }
19516 echo "$as_me:$LINENO: checking for uint64_t" >&5
19517 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19518 if test "${ac_cv_type_uint64_t+set}" = set; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
19521 cat >conftest.$ac_ext <<_ACEOF
19522 #line $LINENO "configure"
19525 cat confdefs.h >>conftest.$ac_ext
19526 cat >>conftest.$ac_ext <<_ACEOF
19527 /* end confdefs.h. */
19528 $ac_includes_default
19532 if ((uint64_t *) 0)
19534 if (sizeof (uint64_t))
19540 rm -f conftest.$ac_objext
19541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19542 (eval $ac_compile) 2>&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } &&
19546 { ac_try='test -s conftest.$ac_objext'
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; }; then
19552 ac_cv_type_uint64_t=yes
19554 echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19557 ac_cv_type_uint64_t=no
19559 rm -f conftest.$ac_objext conftest.$ac_ext
19561 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19562 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19563 if test $ac_cv_type_uint64_t = yes; then
19565 cat >>confdefs.h <<_ACEOF
19566 #define HAVE_UINT64_T 1
19571 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19572 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19573 { (exit 1); exit 1; }; }
19576 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19577 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19578 if test "${ac_cv_header_time+set}" = set; then
19579 echo $ECHO_N "(cached) $ECHO_C" >&6
19581 cat >conftest.$ac_ext <<_ACEOF
19582 #line $LINENO "configure"
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19588 #include <sys/types.h>
19589 #include <sys/time.h>
19595 if ((struct tm *) 0)
19601 rm -f conftest.$ac_objext
19602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19603 (eval $ac_compile) 2>&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); } &&
19607 { ac_try='test -s conftest.$ac_objext'
19608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609 (eval $ac_try) 2>&5
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; }; then
19613 ac_cv_header_time=yes
19615 echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19618 ac_cv_header_time=no
19620 rm -f conftest.$ac_objext conftest.$ac_ext
19622 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19623 echo "${ECHO_T}$ac_cv_header_time" >&6
19624 if test $ac_cv_header_time = yes; then
19626 cat >>confdefs.h <<\_ACEOF
19627 #define TIME_WITH_SYS_TIME 1
19632 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19633 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19634 if test "${ac_cv_struct_tm+set}" = set; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
19637 cat >conftest.$ac_ext <<_ACEOF
19638 #line $LINENO "configure"
19641 cat confdefs.h >>conftest.$ac_ext
19642 cat >>conftest.$ac_ext <<_ACEOF
19643 /* end confdefs.h. */
19644 #include <sys/types.h>
19650 struct tm *tp; tp->tm_sec;
19655 rm -f conftest.$ac_objext
19656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19657 (eval $ac_compile) 2>&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } &&
19661 { ac_try='test -s conftest.$ac_objext'
19662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663 (eval $ac_try) 2>&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; }; then
19667 ac_cv_struct_tm=time.h
19669 echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19672 ac_cv_struct_tm=sys/time.h
19674 rm -f conftest.$ac_objext conftest.$ac_ext
19676 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19677 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19678 if test $ac_cv_struct_tm = sys/time.h; then
19680 cat >>confdefs.h <<\_ACEOF
19681 #define TM_IN_SYS_TIME 1
19691 ac_cpp='$CPP $CPPFLAGS'
19692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19696 if test "$cross_compiling" = yes; then
19697 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19698 See \`config.log' for more details." >&5
19699 echo "$as_me: error: cannot run test program while cross compiling
19700 See \`config.log' for more details." >&2;}
19701 { (exit 1); exit 1; }; }
19703 cat >conftest.$ac_ext <<_ACEOF
19704 #line $LINENO "configure"
19707 cat confdefs.h >>conftest.$ac_ext
19708 cat >>conftest.$ac_ext <<_ACEOF
19709 /* end confdefs.h. */
19711 #include <stdlib.h>
19716 volatile double A, B;
19720 sprintf(Buffer, "%a", A);
19724 if (A != 0x1.999999999999ap-4)
19731 rm -f conftest$ac_exeext
19732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19733 (eval $ac_link) 2>&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19744 echo "$as_me: program exited with status $ac_status" >&5
19745 echo "$as_me: failed program was:" >&5
19746 sed 's/^/| /' conftest.$ac_ext >&5
19748 ( exit $ac_status )
19751 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19754 ac_cpp='$CPP $CPPFLAGS'
19755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19759 if test "$ac_c_printf_a" = "yes"; then
19761 cat >>confdefs.h <<\_ACEOF
19762 #define HAVE_PRINTF_A 1
19768 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19769 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19770 if test "${ac_cv_c_bigendian+set}" = set; then
19771 echo $ECHO_N "(cached) $ECHO_C" >&6
19773 # See if sys/param.h defines the BYTE_ORDER macro.
19774 cat >conftest.$ac_ext <<_ACEOF
19775 #line $LINENO "configure"
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h. */
19781 #include <sys/types.h>
19782 #include <sys/param.h>
19787 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19788 bogus endian macros
19795 rm -f conftest.$ac_objext
19796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19797 (eval $ac_compile) 2>&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } &&
19801 { ac_try='test -s conftest.$ac_objext'
19802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803 (eval $ac_try) 2>&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; }; then
19807 # It does; now see whether it defined to BIG_ENDIAN or not.
19808 cat >conftest.$ac_ext <<_ACEOF
19809 #line $LINENO "configure"
19812 cat confdefs.h >>conftest.$ac_ext
19813 cat >>conftest.$ac_ext <<_ACEOF
19814 /* end confdefs.h. */
19815 #include <sys/types.h>
19816 #include <sys/param.h>
19821 #if BYTE_ORDER != BIG_ENDIAN
19829 rm -f conftest.$ac_objext
19830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19831 (eval $ac_compile) 2>&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } &&
19835 { ac_try='test -s conftest.$ac_objext'
19836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837 (eval $ac_try) 2>&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); }; }; then
19841 ac_cv_c_bigendian=yes
19843 echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.$ac_ext >&5
19846 ac_cv_c_bigendian=no
19848 rm -f conftest.$ac_objext conftest.$ac_ext
19850 echo "$as_me: failed program was:" >&5
19851 sed 's/^/| /' conftest.$ac_ext >&5
19853 # It does not; compile a test program.
19854 if test "$cross_compiling" = yes; then
19855 # try to guess the endianness by grepping values into an object file
19856 ac_cv_c_bigendian=unknown
19857 cat >conftest.$ac_ext <<_ACEOF
19858 #line $LINENO "configure"
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19864 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19865 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19866 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19867 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19868 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19869 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19873 _ascii (); _ebcdic ();
19878 rm -f conftest.$ac_objext
19879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19880 (eval $ac_compile) 2>&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } &&
19884 { ac_try='test -s conftest.$ac_objext'
19885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886 (eval $ac_try) 2>&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; }; then
19890 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19891 ac_cv_c_bigendian=yes
19893 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19894 if test "$ac_cv_c_bigendian" = unknown; then
19895 ac_cv_c_bigendian=no
19897 # finding both strings is unlikely to happen, but who knows?
19898 ac_cv_c_bigendian=unknown
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19906 rm -f conftest.$ac_objext conftest.$ac_ext
19908 cat >conftest.$ac_ext <<_ACEOF
19909 #line $LINENO "configure"
19912 cat confdefs.h >>conftest.$ac_ext
19913 cat >>conftest.$ac_ext <<_ACEOF
19914 /* end confdefs.h. */
19918 /* Are we little or big endian? From Harbison&Steele. */
19922 char c[sizeof (long)];
19925 exit (u.c[sizeof (long) - 1] == 1);
19928 rm -f conftest$ac_exeext
19929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19930 (eval $ac_link) 2>&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19935 (eval $ac_try) 2>&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); }; }; then
19939 ac_cv_c_bigendian=no
19941 echo "$as_me: program exited with status $ac_status" >&5
19942 echo "$as_me: failed program was:" >&5
19943 sed 's/^/| /' conftest.$ac_ext >&5
19945 ( exit $ac_status )
19946 ac_cv_c_bigendian=yes
19948 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19951 rm -f conftest.$ac_objext conftest.$ac_ext
19953 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19954 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19955 case $ac_cv_c_bigendian in
19963 { { echo "$as_me:$LINENO: error: unknown endianness
19964 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19965 echo "$as_me: error: unknown endianness
19966 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19967 { (exit 1); exit 1; }; } ;;
19971 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19972 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19973 if test "${ac_cv_cxx_namespaces+set}" = set; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
19979 ac_cpp='$CXXCPP $CPPFLAGS'
19980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19984 cat >conftest.$ac_ext <<_ACEOF
19985 #line $LINENO "configure"
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h. */
19991 namespace Outer { namespace Inner { int i = 0; }}
19995 using namespace Outer::Inner; return i;
20000 rm -f conftest.$ac_objext
20001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20002 (eval $ac_compile) 2>&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } &&
20006 { ac_try='test -s conftest.$ac_objext'
20007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008 (eval $ac_try) 2>&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); }; }; then
20012 ac_cv_cxx_namespaces=yes
20014 echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20017 ac_cv_cxx_namespaces=no
20019 rm -f conftest.$ac_objext conftest.$ac_ext
20021 ac_cpp='$CPP $CPPFLAGS'
20022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20028 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20029 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20030 if test "$ac_cv_cxx_namespaces" = yes; then
20032 cat >>confdefs.h <<\_ACEOF
20033 #define HAVE_NAMESPACES
20038 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20039 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20040 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20047 ac_cpp='$CXXCPP $CPPFLAGS'
20048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20052 cat >conftest.$ac_ext <<_ACEOF
20053 #line $LINENO "configure"
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h. */
20059 #include <ext/hash_map>
20060 #ifdef HAVE_NAMESPACES
20061 using namespace std;
20066 hash_map<int, int> t;
20071 rm -f conftest.$ac_objext
20072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20073 (eval $ac_compile) 2>&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } &&
20077 { ac_try='test -s conftest.$ac_objext'
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; }; then
20083 ac_cv_cxx_have_std_ext_hash_map=yes
20085 echo "$as_me: failed program was:" >&5
20086 sed 's/^/| /' conftest.$ac_ext >&5
20088 ac_cv_cxx_have_std_ext_hash_map=no
20090 rm -f conftest.$ac_objext conftest.$ac_ext
20092 ac_cpp='$CPP $CPPFLAGS'
20093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20098 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20099 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20100 HAVE_STD_EXT_HASH_MAP=0
20101 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20103 HAVE_STD_EXT_HASH_MAP=1
20106 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20107 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20108 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20109 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 ac_cpp='$CXXCPP $CPPFLAGS'
20116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20120 cat >conftest.$ac_ext <<_ACEOF
20121 #line $LINENO "configure"
20124 cat confdefs.h >>conftest.$ac_ext
20125 cat >>conftest.$ac_ext <<_ACEOF
20126 /* end confdefs.h. */
20127 #include <ext/hash_map>
20128 #ifdef HAVE_NAMESPACES
20129 using namespace __gnu_cxx;
20134 hash_map<int,int> t;
20139 rm -f conftest.$ac_objext
20140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20141 (eval $ac_compile) 2>&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
20145 { ac_try='test -s conftest.$ac_objext'
20146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147 (eval $ac_try) 2>&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; }; then
20151 ac_cv_cxx_have_gnu_ext_hash_map=yes
20153 echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20156 ac_cv_cxx_have_gnu_ext_hash_map=no
20158 rm -f conftest.$ac_objext conftest.$ac_ext
20160 ac_cpp='$CPP $CPPFLAGS'
20161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20166 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20167 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20168 HAVE_GNU_EXT_HASH_MAP=0
20169 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20171 HAVE_GNU_EXT_HASH_MAP=1
20174 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20175 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20176 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20177 echo $ECHO_N "(cached) $ECHO_C" >&6
20183 ac_cpp='$CXXCPP $CPPFLAGS'
20184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20188 cat >conftest.$ac_ext <<_ACEOF
20189 #line $LINENO "configure"
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20195 #include <hash_map>
20199 hash_map<int,int> t;
20204 rm -f conftest.$ac_objext
20205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20206 (eval $ac_compile) 2>&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); } &&
20210 { ac_try='test -s conftest.$ac_objext'
20211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; }; then
20216 ac_cv_cxx_have_global_hash_map=yes
20218 echo "$as_me: failed program was:" >&5
20219 sed 's/^/| /' conftest.$ac_ext >&5
20221 ac_cv_cxx_have_global_hash_map=no
20223 rm -f conftest.$ac_objext conftest.$ac_ext
20225 ac_cpp='$CPP $CPPFLAGS'
20226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20231 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20232 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20233 HAVE_GLOBAL_HASH_MAP=0
20234 if test "$ac_cv_cxx_have_global_hash_map" = yes
20236 HAVE_GLOBAL_HASH_MAP=1
20239 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20240 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20241 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
20248 ac_cpp='$CXXCPP $CPPFLAGS'
20249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20253 cat >conftest.$ac_ext <<_ACEOF
20254 #line $LINENO "configure"
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20260 #include <ext/hash_set>
20261 #ifdef HAVE_NAMESPACES
20262 using namespace std;
20272 rm -f conftest.$ac_objext
20273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20274 (eval $ac_compile) 2>&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); } &&
20278 { ac_try='test -s conftest.$ac_objext'
20279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280 (eval $ac_try) 2>&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); }; }; then
20284 ac_cv_cxx_have_std_ext_hash_set=yes
20286 echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20289 ac_cv_cxx_have_std_ext_hash_set=no
20291 rm -f conftest.$ac_objext conftest.$ac_ext
20293 ac_cpp='$CPP $CPPFLAGS'
20294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20299 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20300 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20301 HAVE_STD_EXT_HASH_SET=0
20302 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20304 HAVE_STD_EXT_HASH_SET=1
20307 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20308 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20309 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20310 echo $ECHO_N "(cached) $ECHO_C" >&6
20316 ac_cpp='$CXXCPP $CPPFLAGS'
20317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20321 cat >conftest.$ac_ext <<_ACEOF
20322 #line $LINENO "configure"
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h. */
20328 #include <ext/hash_set>
20329 #ifdef HAVE_NAMESPACES
20330 using namespace __gnu_cxx;
20340 rm -f conftest.$ac_objext
20341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20342 (eval $ac_compile) 2>&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); } &&
20346 { ac_try='test -s conftest.$ac_objext'
20347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20348 (eval $ac_try) 2>&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); }; }; then
20352 ac_cv_cxx_have_gnu_ext_hash_set=yes
20354 echo "$as_me: failed program was:" >&5
20355 sed 's/^/| /' conftest.$ac_ext >&5
20357 ac_cv_cxx_have_gnu_ext_hash_set=no
20359 rm -f conftest.$ac_objext conftest.$ac_ext
20361 ac_cpp='$CPP $CPPFLAGS'
20362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20367 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20368 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20369 HAVE_GNU_EXT_HASH_SET=0
20370 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20372 HAVE_GNU_EXT_HASH_SET=1
20375 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20376 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20377 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20384 ac_cpp='$CXXCPP $CPPFLAGS'
20385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20389 cat >conftest.$ac_ext <<_ACEOF
20390 #line $LINENO "configure"
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20396 #include <hash_set>
20400 hash_set<int> t; return 0;
20405 rm -f conftest.$ac_objext
20406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20407 (eval $ac_compile) 2>&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } &&
20411 { ac_try='test -s conftest.$ac_objext'
20412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413 (eval $ac_try) 2>&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; }; then
20417 ac_cv_cxx_have_global_hash_set=yes
20419 echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20422 ac_cv_cxx_have_global_hash_set=no
20424 rm -f conftest.$ac_objext conftest.$ac_ext
20426 ac_cpp='$CPP $CPPFLAGS'
20427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20432 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20433 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20434 HAVE_GLOBAL_HASH_SET=0
20435 if test "$ac_cv_cxx_have_global_hash_set" = yes
20437 HAVE_GLOBAL_HASH_SET=1
20440 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20441 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20442 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20449 ac_cpp='$CXXCPP $CPPFLAGS'
20450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20454 cat >conftest.$ac_ext <<_ACEOF
20455 #line $LINENO "configure"
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20461 #include <iterator>
20462 #ifdef HAVE_NAMESPACES
20463 using namespace std;
20468 iterator<int,int,int> t; return 0;
20473 rm -f conftest.$ac_objext
20474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20475 (eval $ac_compile) 2>&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); } &&
20479 { ac_try='test -s conftest.$ac_objext'
20480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481 (eval $ac_try) 2>&5
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; }; then
20485 ac_cv_cxx_have_std_iterator=yes
20487 echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20490 ac_cv_cxx_have_std_iterator=no
20492 rm -f conftest.$ac_objext conftest.$ac_ext
20494 ac_cpp='$CPP $CPPFLAGS'
20495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20501 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20502 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20503 HAVE_STD_ITERATOR=0
20504 if test "$ac_cv_cxx_have_std_iterator" = yes
20506 HAVE_STD_ITERATOR=1
20509 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20510 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20511 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20518 ac_cpp='$CXXCPP $CPPFLAGS'
20519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20523 cat >conftest.$ac_ext <<_ACEOF
20524 #line $LINENO "configure"
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h. */
20530 #include <iterator>
20531 #ifdef HAVE_NAMESPACES
20532 using namespace std;
20537 bidirectional_iterator<int,int> t; return 0;
20542 rm -f conftest.$ac_objext
20543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20544 (eval $ac_compile) 2>&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } &&
20548 { ac_try='test -s conftest.$ac_objext'
20549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
20554 ac_cv_cxx_have_bi_iterator=yes
20556 echo "$as_me: failed program was:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20559 ac_cv_cxx_have_bi_iterator=no
20561 rm -f conftest.$ac_objext conftest.$ac_ext
20563 ac_cpp='$CPP $CPPFLAGS'
20564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20570 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20571 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20573 if test "$ac_cv_cxx_have_bi_iterator" = yes
20578 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20579 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20580 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20581 echo $ECHO_N "(cached) $ECHO_C" >&6
20587 ac_cpp='$CXXCPP $CPPFLAGS'
20588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20592 cat >conftest.$ac_ext <<_ACEOF
20593 #line $LINENO "configure"
20596 cat confdefs.h >>conftest.$ac_ext
20597 cat >>conftest.$ac_ext <<_ACEOF
20598 /* end confdefs.h. */
20599 #include <iterator>
20600 #ifdef HAVE_NAMESPACES
20601 using namespace std;
20606 forward_iterator<int,int> t; return 0;
20611 rm -f conftest.$ac_objext
20612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20613 (eval $ac_compile) 2>&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } &&
20617 { ac_try='test -s conftest.$ac_objext'
20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619 (eval $ac_try) 2>&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; }; then
20623 ac_cv_cxx_have_fwd_iterator=yes
20625 echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20628 ac_cv_cxx_have_fwd_iterator=no
20630 rm -f conftest.$ac_objext conftest.$ac_ext
20632 ac_cpp='$CPP $CPPFLAGS'
20633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20639 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20640 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20641 HAVE_FWD_ITERATOR=0
20642 if test "$ac_cv_cxx_have_fwd_iterator" = yes
20644 HAVE_FWD_ITERATOR=1
20648 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20649 # for constant arguments. Useless!
20650 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20651 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20652 if test "${ac_cv_working_alloca_h+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20655 cat >conftest.$ac_ext <<_ACEOF
20656 #line $LINENO "configure"
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20662 #include <alloca.h>
20666 char *p = (char *) alloca (2 * sizeof (int));
20671 rm -f conftest.$ac_objext conftest$ac_exeext
20672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20673 (eval $ac_link) 2>&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } &&
20677 { ac_try='test -s conftest$ac_exeext'
20678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679 (eval $ac_try) 2>&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; }; then
20683 ac_cv_working_alloca_h=yes
20685 echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20688 ac_cv_working_alloca_h=no
20690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20692 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20693 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20694 if test $ac_cv_working_alloca_h = yes; then
20696 cat >>confdefs.h <<\_ACEOF
20697 #define HAVE_ALLOCA_H 1
20702 echo "$as_me:$LINENO: checking for alloca" >&5
20703 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20704 if test "${ac_cv_func_alloca_works+set}" = set; then
20705 echo $ECHO_N "(cached) $ECHO_C" >&6
20707 cat >conftest.$ac_ext <<_ACEOF
20708 #line $LINENO "configure"
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h. */
20715 # define alloca __builtin_alloca
20718 # include <malloc.h>
20719 # define alloca _alloca
20722 # include <alloca.h>
20727 # ifndef alloca /* predefined by HP cc +Olibcalls */
20738 char *p = (char *) alloca (1);
20743 rm -f conftest.$ac_objext conftest$ac_exeext
20744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20745 (eval $ac_link) 2>&5
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } &&
20749 { ac_try='test -s conftest$ac_exeext'
20750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751 (eval $ac_try) 2>&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }; }; then
20755 ac_cv_func_alloca_works=yes
20757 echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20760 ac_cv_func_alloca_works=no
20762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20764 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20765 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20767 if test $ac_cv_func_alloca_works = yes; then
20769 cat >>confdefs.h <<\_ACEOF
20770 #define HAVE_ALLOCA 1
20774 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20775 # that cause trouble. Some versions do not even contain alloca or
20776 # contain a buggy version. If you still want to use their alloca,
20777 # use ar to extract alloca.o from them instead of compiling alloca.c.
20779 ALLOCA=alloca.$ac_objext
20781 cat >>confdefs.h <<\_ACEOF
20786 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20787 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20788 if test "${ac_cv_os_cray+set}" = set; then
20789 echo $ECHO_N "(cached) $ECHO_C" >&6
20791 cat >conftest.$ac_ext <<_ACEOF
20792 #line $LINENO "configure"
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20798 #if defined(CRAY) && ! defined(CRAY2)
20805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20806 $EGREP "webecray" >/dev/null 2>&1; then
20814 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20815 echo "${ECHO_T}$ac_cv_os_cray" >&6
20816 if test $ac_cv_os_cray = yes; then
20817 for ac_func in _getb67 GETB67 getb67; do
20818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20819 echo "$as_me:$LINENO: checking for $ac_func" >&5
20820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20821 if eval "test \"\${$as_ac_var+set}\" = set"; then
20822 echo $ECHO_N "(cached) $ECHO_C" >&6
20824 cat >conftest.$ac_ext <<_ACEOF
20825 #line $LINENO "configure"
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h. */
20831 /* System header to define __stub macros and hopefully few prototypes,
20832 which can conflict with char $ac_func (); below.
20833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20834 <limits.h> exists even on freestanding compilers. */
20836 # include <limits.h>
20838 # include <assert.h>
20840 /* Override any gcc2 internal prototype to avoid an error. */
20845 /* We use char because int might match the return type of a gcc2
20846 builtin and then its argument prototype would still apply. */
20848 /* The GNU C library defines this for functions which it implements
20849 to always fail with ENOSYS. Some functions are actually named
20850 something starting with __ and the normal name is an alias. */
20851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20854 char (*f) () = $ac_func;
20863 return f != $ac_func;
20868 rm -f conftest.$ac_objext conftest$ac_exeext
20869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20870 (eval $ac_link) 2>&5
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); } &&
20874 { ac_try='test -s conftest$ac_exeext'
20875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876 (eval $ac_try) 2>&5
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); }; }; then
20880 eval "$as_ac_var=yes"
20882 echo "$as_me: failed program was:" >&5
20883 sed 's/^/| /' conftest.$ac_ext >&5
20885 eval "$as_ac_var=no"
20887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20891 if test `eval echo '${'$as_ac_var'}'` = yes; then
20893 cat >>confdefs.h <<_ACEOF
20894 #define CRAY_STACKSEG_END $ac_func
20903 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20904 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20905 if test "${ac_cv_c_stack_direction+set}" = set; then
20906 echo $ECHO_N "(cached) $ECHO_C" >&6
20908 if test "$cross_compiling" = yes; then
20909 ac_cv_c_stack_direction=0
20911 cat >conftest.$ac_ext <<_ACEOF
20912 #line $LINENO "configure"
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h. */
20919 find_stack_direction ()
20921 static char *addr = 0;
20926 return find_stack_direction ();
20929 return (&dummy > addr) ? 1 : -1;
20935 exit (find_stack_direction () < 0);
20938 rm -f conftest$ac_exeext
20939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20940 (eval $ac_link) 2>&5
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945 (eval $ac_try) 2>&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; }; then
20949 ac_cv_c_stack_direction=1
20951 echo "$as_me: program exited with status $ac_status" >&5
20952 echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20955 ( exit $ac_status )
20956 ac_cv_c_stack_direction=-1
20958 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20961 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20962 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20964 cat >>confdefs.h <<_ACEOF
20965 #define STACK_DIRECTION $ac_cv_c_stack_direction
20973 for ac_header in stdlib.h unistd.h
20975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20977 echo "$as_me:$LINENO: checking for $ac_header" >&5
20978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20985 # Is the header compilable?
20986 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20988 cat >conftest.$ac_ext <<_ACEOF
20989 #line $LINENO "configure"
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h. */
20995 $ac_includes_default
20996 #include <$ac_header>
20998 rm -f conftest.$ac_objext
20999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21000 (eval $ac_compile) 2>&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } &&
21004 { ac_try='test -s conftest.$ac_objext'
21005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21006 (eval $ac_try) 2>&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); }; }; then
21010 ac_header_compiler=yes
21012 echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21015 ac_header_compiler=no
21017 rm -f conftest.$ac_objext conftest.$ac_ext
21018 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21019 echo "${ECHO_T}$ac_header_compiler" >&6
21021 # Is the header present?
21022 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21024 cat >conftest.$ac_ext <<_ACEOF
21025 #line $LINENO "configure"
21028 cat confdefs.h >>conftest.$ac_ext
21029 cat >>conftest.$ac_ext <<_ACEOF
21030 /* end confdefs.h. */
21031 #include <$ac_header>
21033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21036 grep -v '^ *+' conftest.er1 >conftest.err
21038 cat conftest.err >&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); } >/dev/null; then
21041 if test -s conftest.err; then
21042 ac_cpp_err=$ac_c_preproc_warn_flag
21049 if test -z "$ac_cpp_err"; then
21050 ac_header_preproc=yes
21052 echo "$as_me: failed program was:" >&5
21053 sed 's/^/| /' conftest.$ac_ext >&5
21055 ac_header_preproc=no
21057 rm -f conftest.err conftest.$ac_ext
21058 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21059 echo "${ECHO_T}$ac_header_preproc" >&6
21061 # So? What about this header?
21062 case $ac_header_compiler:$ac_header_preproc in
21064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21070 ## ------------------------------------ ##
21071 ## Report this to bug-autoconf@gnu.org. ##
21072 ## ------------------------------------ ##
21075 sed "s/^/$as_me: WARNING: /" >&2
21078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21081 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21086 ## ------------------------------------ ##
21087 ## Report this to bug-autoconf@gnu.org. ##
21088 ## ------------------------------------ ##
21091 sed "s/^/$as_me: WARNING: /" >&2
21094 echo "$as_me:$LINENO: checking for $ac_header" >&5
21095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21097 echo $ECHO_N "(cached) $ECHO_C" >&6
21099 eval "$as_ac_Header=$ac_header_preproc"
21101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21106 cat >>confdefs.h <<_ACEOF
21107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21115 for ac_func in getpagesize
21117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21118 echo "$as_me:$LINENO: checking for $ac_func" >&5
21119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21120 if eval "test \"\${$as_ac_var+set}\" = set"; then
21121 echo $ECHO_N "(cached) $ECHO_C" >&6
21123 cat >conftest.$ac_ext <<_ACEOF
21124 #line $LINENO "configure"
21127 cat confdefs.h >>conftest.$ac_ext
21128 cat >>conftest.$ac_ext <<_ACEOF
21129 /* end confdefs.h. */
21130 /* System header to define __stub macros and hopefully few prototypes,
21131 which can conflict with char $ac_func (); below.
21132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21133 <limits.h> exists even on freestanding compilers. */
21135 # include <limits.h>
21137 # include <assert.h>
21139 /* Override any gcc2 internal prototype to avoid an error. */
21144 /* We use char because int might match the return type of a gcc2
21145 builtin and then its argument prototype would still apply. */
21147 /* The GNU C library defines this for functions which it implements
21148 to always fail with ENOSYS. Some functions are actually named
21149 something starting with __ and the normal name is an alias. */
21150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21153 char (*f) () = $ac_func;
21162 return f != $ac_func;
21167 rm -f conftest.$ac_objext conftest$ac_exeext
21168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21169 (eval $ac_link) 2>&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } &&
21173 { ac_try='test -s conftest$ac_exeext'
21174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175 (eval $ac_try) 2>&5
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; }; then
21179 eval "$as_ac_var=yes"
21181 echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.$ac_ext >&5
21184 eval "$as_ac_var=no"
21186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21190 if test `eval echo '${'$as_ac_var'}'` = yes; then
21191 cat >>confdefs.h <<_ACEOF
21192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21198 echo "$as_me:$LINENO: checking for working mmap" >&5
21199 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21200 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21201 echo $ECHO_N "(cached) $ECHO_C" >&6
21203 if test "$cross_compiling" = yes; then
21204 ac_cv_func_mmap_fixed_mapped=no
21206 cat >conftest.$ac_ext <<_ACEOF
21207 #line $LINENO "configure"
21210 cat confdefs.h >>conftest.$ac_ext
21211 cat >>conftest.$ac_ext <<_ACEOF
21212 /* end confdefs.h. */
21213 $ac_includes_default
21214 /* malloc might have been renamed as rpl_malloc. */
21217 /* Thanks to Mike Haertel and Jim Avera for this test.
21218 Here is a matrix of mmap possibilities:
21219 mmap private not fixed
21220 mmap private fixed at somewhere currently unmapped
21221 mmap private fixed at somewhere already mapped
21222 mmap shared not fixed
21223 mmap shared fixed at somewhere currently unmapped
21224 mmap shared fixed at somewhere already mapped
21225 For private mappings, we should verify that changes cannot be read()
21226 back from the file, nor mmap's back from the file at a different
21227 address. (There have been systems where private was not correctly
21228 implemented like the infamous i386 svr4.0, and systems where the
21229 VM page cache was not coherent with the file system buffer cache
21230 like early versions of FreeBSD and possibly contemporary NetBSD.)
21231 For shared mappings, we should conversely verify that changes get
21232 propagated back to all the places they're supposed to be.
21234 Grep wants private fixed already mapped.
21235 The main things grep needs to know about mmap are:
21236 * does it exist and is it safe to write into the mmap'd area
21237 * how to use it (BSD variants) */
21240 #include <sys/mman.h>
21242 #if !STDC_HEADERS && !HAVE_STDLIB_H
21246 /* This mess was copied from the GNU getpagesize.h. */
21247 #if !HAVE_GETPAGESIZE
21248 /* Assume that all systems that can run configure have sys/param.h. */
21249 # if !HAVE_SYS_PARAM_H
21250 # define HAVE_SYS_PARAM_H 1
21253 # ifdef _SC_PAGESIZE
21254 # define getpagesize() sysconf(_SC_PAGESIZE)
21255 # else /* no _SC_PAGESIZE */
21256 # if HAVE_SYS_PARAM_H
21257 # include <sys/param.h>
21258 # ifdef EXEC_PAGESIZE
21259 # define getpagesize() EXEC_PAGESIZE
21260 # else /* no EXEC_PAGESIZE */
21262 # define getpagesize() NBPG * CLSIZE
21265 # endif /* no CLSIZE */
21266 # else /* no NBPG */
21268 # define getpagesize() NBPC
21269 # else /* no NBPC */
21271 # define getpagesize() PAGESIZE
21272 # endif /* PAGESIZE */
21273 # endif /* no NBPC */
21274 # endif /* no NBPG */
21275 # endif /* no EXEC_PAGESIZE */
21276 # else /* no HAVE_SYS_PARAM_H */
21277 # define getpagesize() 8192 /* punt totally */
21278 # endif /* no HAVE_SYS_PARAM_H */
21279 # endif /* no _SC_PAGESIZE */
21281 #endif /* no HAVE_GETPAGESIZE */
21286 char *data, *data2, *data3;
21290 pagesize = getpagesize ();
21292 /* First, make a file with some known garbage in it. */
21293 data = (char *) malloc (pagesize);
21296 for (i = 0; i < pagesize; ++i)
21297 *(data + i) = rand ();
21299 fd = creat ("conftest.mmap", 0600);
21302 if (write (fd, data, pagesize) != pagesize)
21306 /* Next, try to mmap the file at a fixed address which already has
21307 something else allocated at it. If we can, also make sure that
21308 we see the same garbage. */
21309 fd = open ("conftest.mmap", O_RDWR);
21312 data2 = (char *) malloc (2 * pagesize);
21315 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21316 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21317 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21319 for (i = 0; i < pagesize; ++i)
21320 if (*(data + i) != *(data2 + i))
21323 /* Finally, make sure that changes to the mapped area do not
21324 percolate back to the file as seen by read(). (This is a bug on
21325 some variants of i386 svr4.0.) */
21326 for (i = 0; i < pagesize; ++i)
21327 *(data2 + i) = *(data2 + i) + 1;
21328 data3 = (char *) malloc (pagesize);
21331 if (read (fd, data3, pagesize) != pagesize)
21333 for (i = 0; i < pagesize; ++i)
21334 if (*(data + i) != *(data3 + i))
21340 rm -f conftest$ac_exeext
21341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21342 (eval $ac_link) 2>&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21347 (eval $ac_try) 2>&5
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); }; }; then
21351 ac_cv_func_mmap_fixed_mapped=yes
21353 echo "$as_me: program exited with status $ac_status" >&5
21354 echo "$as_me: failed program was:" >&5
21355 sed 's/^/| /' conftest.$ac_ext >&5
21357 ( exit $ac_status )
21358 ac_cv_func_mmap_fixed_mapped=no
21360 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21363 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21364 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21365 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21367 cat >>confdefs.h <<\_ACEOF
21368 #define HAVE_MMAP 1
21372 rm -f conftest.mmap
21374 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21376 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
21377 echo "$as_me: WARNING: mmap() required but not found" >&2;}
21379 echo "$as_me:$LINENO: checking for mmap of files" >&5
21380 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21381 if test "${ac_cv_func_mmap_file+set}" = set; then
21382 echo $ECHO_N "(cached) $ECHO_C" >&6
21387 ac_cpp='$CPP $CPPFLAGS'
21388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21392 if test "$cross_compiling" = yes; then
21393 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21394 See \`config.log' for more details." >&5
21395 echo "$as_me: error: cannot run test program while cross compiling
21396 See \`config.log' for more details." >&2;}
21397 { (exit 1); exit 1; }; }
21399 cat >conftest.$ac_ext <<_ACEOF
21400 #line $LINENO "configure"
21403 cat confdefs.h >>conftest.$ac_ext
21404 cat >>conftest.$ac_ext <<_ACEOF
21405 /* end confdefs.h. */
21407 #ifdef HAVE_SYS_TYPES_H
21408 #include <sys/types.h>
21411 #ifdef HAVE_SYS_MMAN_H
21412 #include <sys/mman.h>
21415 #ifdef HAVE_FCNTL_H
21421 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
21423 rm -f conftest$ac_exeext
21424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21425 (eval $ac_link) 2>&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21430 (eval $ac_try) 2>&5
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); }; }; then
21434 ac_cv_func_mmap_file=yes
21436 echo "$as_me: program exited with status $ac_status" >&5
21437 echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21440 ( exit $ac_status )
21441 ac_cv_func_mmap_file=no
21443 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21446 ac_cpp='$CPP $CPPFLAGS'
21447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21453 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21454 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21455 if test "$ac_cv_func_mmap_file" = yes; then
21457 cat >>confdefs.h <<\_ACEOF
21458 #define HAVE_MMAP_FILE
21465 if test "$ac_cv_func_mmap_file" = "no"
21467 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21468 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21470 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21471 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21472 if test "${ac_cv_header_mmap_anon+set}" = set; then
21473 echo $ECHO_N "(cached) $ECHO_C" >&6
21478 ac_cpp='$CPP $CPPFLAGS'
21479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21483 cat >conftest.$ac_ext <<_ACEOF
21484 #line $LINENO "configure"
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h. */
21490 #include <sys/mman.h>
21491 #include <unistd.h>
21496 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21501 rm -f conftest.$ac_objext
21502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21503 (eval $ac_compile) 2>&5
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); } &&
21507 { ac_try='test -s conftest.$ac_objext'
21508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21509 (eval $ac_try) 2>&5
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); }; }; then
21513 ac_cv_header_mmap_anon=yes
21515 echo "$as_me: failed program was:" >&5
21516 sed 's/^/| /' conftest.$ac_ext >&5
21518 ac_cv_header_mmap_anon=no
21520 rm -f conftest.$ac_objext conftest.$ac_ext
21522 ac_cpp='$CPP $CPPFLAGS'
21523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21529 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21530 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21531 if test "$ac_cv_header_mmap_anon" = yes; then
21533 cat >>confdefs.h <<\_ACEOF
21534 #define HAVE_MMAP_ANONYMOUS
21539 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21540 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21541 if test "${ac_cv_type_signal+set}" = set; then
21542 echo $ECHO_N "(cached) $ECHO_C" >&6
21544 cat >conftest.$ac_ext <<_ACEOF
21545 #line $LINENO "configure"
21548 cat confdefs.h >>conftest.$ac_ext
21549 cat >>conftest.$ac_ext <<_ACEOF
21550 /* end confdefs.h. */
21551 #include <sys/types.h>
21552 #include <signal.h>
21557 extern "C" void (*signal (int, void (*)(int)))(int);
21559 void (*signal ()) ();
21570 rm -f conftest.$ac_objext
21571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21572 (eval $ac_compile) 2>&5
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); } &&
21576 { ac_try='test -s conftest.$ac_objext'
21577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578 (eval $ac_try) 2>&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); }; }; then
21582 ac_cv_type_signal=void
21584 echo "$as_me: failed program was:" >&5
21585 sed 's/^/| /' conftest.$ac_ext >&5
21587 ac_cv_type_signal=int
21589 rm -f conftest.$ac_objext conftest.$ac_ext
21591 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21592 echo "${ECHO_T}$ac_cv_type_signal" >&6
21594 cat >>confdefs.h <<_ACEOF
21595 #define RETSIGTYPE $ac_cv_type_signal
21608 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
21610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21611 echo "$as_me:$LINENO: checking for $ac_func" >&5
21612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21613 if eval "test \"\${$as_ac_var+set}\" = set"; then
21614 echo $ECHO_N "(cached) $ECHO_C" >&6
21616 cat >conftest.$ac_ext <<_ACEOF
21617 #line $LINENO "configure"
21620 cat confdefs.h >>conftest.$ac_ext
21621 cat >>conftest.$ac_ext <<_ACEOF
21622 /* end confdefs.h. */
21623 /* System header to define __stub macros and hopefully few prototypes,
21624 which can conflict with char $ac_func (); below.
21625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21626 <limits.h> exists even on freestanding compilers. */
21628 # include <limits.h>
21630 # include <assert.h>
21632 /* Override any gcc2 internal prototype to avoid an error. */
21637 /* We use char because int might match the return type of a gcc2
21638 builtin and then its argument prototype would still apply. */
21640 /* The GNU C library defines this for functions which it implements
21641 to always fail with ENOSYS. Some functions are actually named
21642 something starting with __ and the normal name is an alias. */
21643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21646 char (*f) () = $ac_func;
21655 return f != $ac_func;
21660 rm -f conftest.$ac_objext conftest$ac_exeext
21661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21662 (eval $ac_link) 2>&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } &&
21666 { ac_try='test -s conftest$ac_exeext'
21667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21668 (eval $ac_try) 2>&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); }; }; then
21672 eval "$as_ac_var=yes"
21674 echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21677 eval "$as_ac_var=no"
21679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21683 if test `eval echo '${'$as_ac_var'}'` = yes; then
21684 cat >>confdefs.h <<_ACEOF
21685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21691 echo "$as_me:$LINENO: checking for mprotect" >&5
21692 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21693 if test "${ac_cv_func_mprotect+set}" = set; then
21694 echo $ECHO_N "(cached) $ECHO_C" >&6
21696 cat >conftest.$ac_ext <<_ACEOF
21697 #line $LINENO "configure"
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h. */
21703 /* System header to define __stub macros and hopefully few prototypes,
21704 which can conflict with char mprotect (); below.
21705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21706 <limits.h> exists even on freestanding compilers. */
21708 # include <limits.h>
21710 # include <assert.h>
21712 /* Override any gcc2 internal prototype to avoid an error. */
21717 /* We use char because int might match the return type of a gcc2
21718 builtin and then its argument prototype would still apply. */
21720 /* The GNU C library defines this for functions which it implements
21721 to always fail with ENOSYS. Some functions are actually named
21722 something starting with __ and the normal name is an alias. */
21723 #if defined (__stub_mprotect) || defined (__stub___mprotect)
21726 char (*f) () = mprotect;
21735 return f != mprotect;
21740 rm -f conftest.$ac_objext conftest$ac_exeext
21741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21742 (eval $ac_link) 2>&5
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); } &&
21746 { ac_try='test -s conftest$ac_exeext'
21747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748 (eval $ac_try) 2>&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); }; }; then
21752 ac_cv_func_mprotect=yes
21754 echo "$as_me: failed program was:" >&5
21755 sed 's/^/| /' conftest.$ac_ext >&5
21757 ac_cv_func_mprotect=no
21759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21761 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21762 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21763 if test $ac_cv_func_mprotect = yes; then
21766 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21767 echo "$as_me: error: Function mprotect() required but not found" >&2;}
21768 { (exit 1); exit 1; }; }
21776 ac_cpp='$CPP $CPPFLAGS'
21777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21781 oldcflags="$CFLAGS"
21782 CFLAGS="$CFLAGS -Wl,-R."
21783 cat >conftest.$ac_ext <<_ACEOF
21784 int main() { return 0; }
21786 rm -f conftest.$ac_objext conftest$ac_exeext
21787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21788 (eval $ac_link) 2>&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } &&
21792 { ac_try='test -s conftest$ac_exeext'
21793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; }; then
21798 ac_cv_link_use_r=yes
21800 echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21803 ac_cv_link_use_r=no
21805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21806 CFLAGS="$oldcflags"
21808 ac_cpp='$CPP $CPPFLAGS'
21809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21813 if test "$ac_cv_link_use_r" = yes
21816 cat >>confdefs.h <<\_ACEOF
21817 #define HAVE_LINK_R 1
21823 # Check whether --enable-optimized or --disable-optimized was given.
21824 if test "${enable_optimized+set}" = set; then
21825 enableval="$enable_optimized"
21830 if test ${enableval} = "no"
21835 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21842 # Check whether --enable-spec95 or --disable-spec95 was given.
21843 if test "${enable_spec95+set}" = set; then
21844 enableval="$enable_spec95"
21845 checkresult=$enableval
21849 echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
21850 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
21851 case "$checkresult" in
21853 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
21854 if test -d "$defaultdir"
21856 SPEC95_ROOT=$defaultdir
21858 USE_SPEC95=USE_SPEC95=1
21860 checkresult="yes, found in $defaultdir"
21870 *) if test -d "$checkresult"
21872 SPEC95_ROOT="$checkresult"
21874 USE_SPEC95=USE_SPEC95=1
21876 checkresult="yes, in $checkresult"
21880 checkresult="no, not found in $checkresult"
21884 echo "$as_me:$LINENO: result: $checkresult" >&5
21885 echo "${ECHO_T}$checkresult" >&6
21889 # Check whether --enable-spec2000 or --disable-spec2000 was given.
21890 if test "${enable_spec2000+set}" = set; then
21891 enableval="$enable_spec2000"
21892 checkresult=$enableval
21896 echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
21897 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
21898 case "$checkresult" in
21900 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21901 if test -d "$defaultdir"
21903 SPEC2000_ROOT=$defaultdir
21905 USE_SPEC2000=USE_SPEC2000=1
21907 checkresult="yes, found in $defaultdir"
21917 *) if test -d "$checkresult"
21919 SPEC2000_ROOT="$checkresult"
21921 USE_SPEC2000=USE_SPEC2000=1
21923 checkresult="yes, in $checkresult"
21927 checkresult="no, not found in $checkresult"
21931 echo "$as_me:$LINENO: result: $checkresult" >&5
21932 echo "${ECHO_T}$checkresult" >&6
21936 # Check whether --enable-povray or --disable-povray was given.
21937 if test "${enable_povray+set}" = set; then
21938 enableval="$enable_povray"
21939 checkresult=$enableval
21943 echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
21944 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
21945 case "$checkresult" in
21947 defaultdir=/home/vadve/shared/benchmarks/povray31
21948 if test -d "$defaultdir"
21950 POVRAY_ROOT=$defaultdir
21952 USE_POVRAY=USE_POVRAY=1
21954 checkresult="yes, found in $defaultdir"
21964 *) if test -d "$checkresult"
21966 POVRAY_ROOT="$checkresult"
21968 USE_POVRAY=USE_POVRAY=1
21970 checkresult="yes, in $checkresult"
21974 checkresult="no, not found in $checkresult"
21978 echo "$as_me:$LINENO: result: $checkresult" >&5
21979 echo "${ECHO_T}$checkresult" >&6
21983 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21984 if test "${enable_precompiled_bytecode+set}" = set; then
21985 enableval="$enable_precompiled_bytecode"
21990 if test ${enableval} = "no"
21995 UPB=USE_PRECOMPILED_BYTECODE=1
21999 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22000 if test "${enable_llc_diffs+set}" = set; then
22001 enableval="$enable_llc_diffs"
22006 if test ${enableval} = "no"
22008 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22015 # Check whether --enable-jit or --disable-jit was given.
22016 if test "${enable_jit+set}" = set; then
22017 enableval="$enable_jit"
22022 if test ${enableval} = "no"
22029 JIT=TARGET_HAS_JIT=1
22033 JIT=TARGET_HAS_JIT=1
22044 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22045 if test "${with_llvmgccdir+set}" = set; then
22046 withval="$with_llvmgccdir"
22047 LLVMGCCDIR=$withval
22050 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22051 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22053 if test -d "$LLVMGCCDIR"
22055 if test -x "$LLVMGCCDIR/bin/gcc"
22057 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22061 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22062 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22063 if test "$LLVM_GCC_CHECK" = "no"
22067 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22068 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22070 if test -x "$LLVM_GCC_CHECK"
22072 cp /dev/null conftest.c
22073 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22079 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
22080 LLVMCC1=$llvmcc1path
22082 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
22083 LLVMCC1PLUS=$llvmcc1pluspath
22086 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22087 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22088 if test "$LLVM_GCC_SANE" = "no"
22094 # Check whether --with-bcrepos or --without-bcrepos was given.
22095 if test "${with_bcrepos+set}" = set; then
22096 withval="$with_bcrepos"
22100 BCR=/home/vadve/lattner/LLVMPrograms
22105 # Check whether --with-papi or --without-papi was given.
22106 if test "${with_papi+set}" = set; then
22107 withval="$with_papi"
22111 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22115 echo "$as_me:$LINENO: checking for shared library suffix" >&5
22116 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22117 eval "SHLIBEXT=$shrext"
22118 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22119 echo "${ECHO_T}$SHLIBEXT" >&6
22123 cat >>confdefs.h <<_ACEOF
22124 #define SHLIBEXT "$SHLIBEXT"
22128 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"
22129 cat >confcache <<\_ACEOF
22130 # This file is a shell script that caches the results of configure
22131 # tests run on this system so they can be shared between configure
22132 # scripts and configure runs, see configure's option --config-cache.
22133 # It is not useful on other systems. If it contains results you don't
22134 # want to keep, you may remove or edit it.
22136 # config.status only pays attention to the cache file if you give it
22137 # the --recheck option to rerun configure.
22139 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22140 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22141 # following values.
22145 # The following way of writing the cache mishandles newlines in values,
22146 # but we know of no workaround that is simple, portable, and efficient.
22147 # So, don't put newlines in cache variables' values.
22148 # Ultrix sh set writes to stderr and can't be redirected directly,
22149 # and sets the high bit in the cache file unless we assign to the vars.
22152 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22154 # `set' does not quote correctly, so add quotes (double-quote
22155 # substitution turns \\\\ into \\, and sed turns \\ into \).
22158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22161 # `set' quotes correctly as required by POSIX, so do not add quotes.
22163 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22170 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22172 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22174 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22175 if test -w $cache_file; then
22176 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22177 cat confcache >$cache_file
22179 echo "not updating unwritable cache $cache_file"
22184 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22185 # Let make expand exec_prefix.
22186 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22188 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22189 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22190 # trailing colons and then remove the whole line if VPATH becomes empty
22191 # (actually we leave an empty line to preserve line numbers).
22192 if test "x$srcdir" = x.; then
22193 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22194 s/:*\$(srcdir):*/:/;
22195 s/:*\${srcdir}:*/:/;
22197 s/^\([^=]*=[ ]*\):*/\1/;
22203 DEFS=-DHAVE_CONFIG_H
22207 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22208 # 1. Remove the extension, and $U if already installed.
22209 ac_i=`echo "$ac_i" |
22210 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22212 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22213 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22215 LIBOBJS=$ac_libobjs
22217 LTLIBOBJS=$ac_ltlibobjs
22221 : ${CONFIG_STATUS=./config.status}
22222 ac_clean_files_save=$ac_clean_files
22223 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22224 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22225 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22226 cat >$CONFIG_STATUS <<_ACEOF
22228 # Generated by $as_me.
22229 # Run this file to recreate the current configuration.
22230 # Compiler output produced by configure, useful for debugging
22231 # configure, is in config.log if it exists.
22234 ac_cs_recheck=false
22236 SHELL=\${CONFIG_SHELL-$SHELL}
22239 cat >>$CONFIG_STATUS <<\_ACEOF
22240 ## --------------------- ##
22241 ## M4sh Initialization. ##
22242 ## --------------------- ##
22244 # Be Bourne compatible
22245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22248 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22249 # is contrary to our usage. Disable this feature.
22250 alias -g '${1+"$@"}'='"$@"'
22251 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22255 # Support unset when possible.
22256 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22263 # Work around bugs in pre-3.0 UWIN ksh.
22264 $as_unset ENV MAIL MAILPATH
22271 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22272 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22273 LC_TELEPHONE LC_TIME
22275 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22276 eval $as_var=C; export $as_var
22282 # Required to use basename.
22283 if expr a : '\(a\)' >/dev/null 2>&1; then
22289 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22290 as_basename=basename
22296 # Name of the executable.
22297 as_me=`$as_basename "$0" ||
22298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22299 X"$0" : 'X\(//\)$' \| \
22300 X"$0" : 'X\(/\)$' \| \
22301 . : '\(.\)' 2>/dev/null ||
22303 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22304 /^X\/\(\/\/\)$/{ s//\1/; q; }
22305 /^X\/\(\/\).*/{ s//\1/; q; }
22309 # PATH needs CR, and LINENO needs CR and PATH.
22310 # Avoid depending upon Character Ranges.
22311 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22312 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22313 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22314 as_cr_digits='0123456789'
22315 as_cr_alnum=$as_cr_Letters$as_cr_digits
22317 # The user is always right.
22318 if test "${PATH_SEPARATOR+set}" != set; then
22319 echo "#! /bin/sh" >conf$$.sh
22320 echo "exit 0" >>conf$$.sh
22322 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22331 as_lineno_1=$LINENO
22332 as_lineno_2=$LINENO
22333 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22334 test "x$as_lineno_1" != "x$as_lineno_2" &&
22335 test "x$as_lineno_3" = "x$as_lineno_2" || {
22336 # Find who we are. Look in the path if we contain no path at all
22339 *[\\/]* ) as_myself=$0 ;;
22340 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22341 for as_dir in $PATH
22344 test -z "$as_dir" && as_dir=.
22345 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22350 # We did not find ourselves, most probably we were run as `sh COMMAND'
22351 # in which case we are not to be found in the path.
22352 if test "x$as_myself" = x; then
22355 if test ! -f "$as_myself"; then
22356 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22357 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22358 { (exit 1); exit 1; }; }
22360 case $CONFIG_SHELL in
22362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22363 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22366 test -z "$as_dir" && as_dir=.
22367 for as_base in sh bash ksh sh5; do
22370 if ("$as_dir/$as_base" -c '
22371 as_lineno_1=$LINENO
22372 as_lineno_2=$LINENO
22373 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22374 test "x$as_lineno_1" != "x$as_lineno_2" &&
22375 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22376 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22377 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22378 CONFIG_SHELL=$as_dir/$as_base
22379 export CONFIG_SHELL
22380 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22388 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22389 # uniformly replaced by the line number. The first 'sed' inserts a
22390 # line-number line before each line; the second 'sed' does the real
22391 # work. The second script uses 'N' to pair each line-number line
22392 # with the numbered line, and appends trailing '-' during
22393 # substitution so that $LINENO is not a special case at line end.
22394 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22395 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22396 sed '=' <$as_myself |
22401 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22404 s,^['$as_cr_digits']*\n,,
22405 ' >$as_me.lineno &&
22406 chmod +x $as_me.lineno ||
22407 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22408 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22409 { (exit 1); exit 1; }; }
22411 # Don't try to exec as it changes $[0], causing all sort of problems
22412 # (the dirname of $[0] is not the place where we might find the
22413 # original and so on. Autoconf is especially sensible to this).
22415 # Exit status is that of the last command.
22420 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22421 *c*,-n*) ECHO_N= ECHO_C='
22423 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22424 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22427 if expr a : '\(a\)' >/dev/null 2>&1; then
22433 rm -f conf$$ conf$$.exe conf$$.file
22435 if ln -s conf$$.file conf$$ 2>/dev/null; then
22436 # We could just check for DJGPP; but this test a) works b) is more generic
22437 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22438 if test -f conf$$.exe; then
22439 # Don't use ln at all; we don't have any links
22444 elif ln conf$$.file conf$$ 2>/dev/null; then
22449 rm -f conf$$ conf$$.exe conf$$.file
22451 if mkdir -p . 2>/dev/null; then
22457 as_executable_p="test -f"
22459 # Sed expression to map a string onto a valid CPP name.
22460 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22462 # Sed expression to map a string onto a valid variable name.
22463 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22467 # We need space, tab and new line, in precisely that order.
22477 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22478 # report actual input values of CONFIG_FILES etc. instead of their
22479 # values after options handling. Logging --version etc. is OK.
22483 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22484 ## Running $as_me. ##
22489 This file was extended by [LLVM] $as_me [1.3], which was
22490 generated by GNU Autoconf 2.57. Invocation command line was
22492 CONFIG_FILES = $CONFIG_FILES
22493 CONFIG_HEADERS = $CONFIG_HEADERS
22494 CONFIG_LINKS = $CONFIG_LINKS
22495 CONFIG_COMMANDS = $CONFIG_COMMANDS
22499 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22503 # Files that config.status was made for.
22504 if test -n "$ac_config_files"; then
22505 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22508 if test -n "$ac_config_headers"; then
22509 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22512 if test -n "$ac_config_links"; then
22513 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22516 if test -n "$ac_config_commands"; then
22517 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22520 cat >>$CONFIG_STATUS <<\_ACEOF
22523 \`$as_me' instantiates files from templates according to the
22524 current configuration.
22526 Usage: $0 [OPTIONS] [FILE]...
22528 -h, --help print this help, then exit
22529 -V, --version print version number, then exit
22530 -q, --quiet do not print progress messages
22531 -d, --debug don't remove temporary files
22532 --recheck update $as_me by reconfiguring in the same conditions
22533 --file=FILE[:TEMPLATE]
22534 instantiate the configuration file FILE
22535 --header=FILE[:TEMPLATE]
22536 instantiate the configuration header FILE
22538 Configuration files:
22541 Configuration headers:
22544 Configuration commands:
22547 Report bugs to <bug-autoconf@gnu.org>."
22550 cat >>$CONFIG_STATUS <<_ACEOF
22552 [LLVM] config.status [1.3]
22553 configured by $0, generated by GNU Autoconf 2.57,
22554 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22556 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22557 Free Software Foundation, Inc.
22558 This config.status script is free software; the Free Software Foundation
22559 gives unlimited permission to copy, distribute and modify it."
22564 cat >>$CONFIG_STATUS <<\_ACEOF
22565 # If no file are specified by the user, then we need to provide default
22566 # value. By we need to know if files were specified by the user.
22572 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22573 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22581 *) # This is not an option, so the user has probably given explicit
22584 ac_need_defaults=false;;
22588 # Handling of the options.
22590 cat >>$CONFIG_STATUS <<\_ACEOF
22591 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22593 --version | --vers* | -V )
22594 echo "$ac_cs_version"; exit 0 ;;
22596 # Conflict between --help and --header
22597 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22598 Try \`$0 --help' for more information." >&5
22599 echo "$as_me: error: ambiguous option: $1
22600 Try \`$0 --help' for more information." >&2;}
22601 { (exit 1); exit 1; }; };;
22602 --help | --hel | -h )
22603 echo "$ac_cs_usage"; exit 0 ;;
22604 --debug | --d* | -d )
22606 --file | --fil | --fi | --f )
22608 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22609 ac_need_defaults=false;;
22610 --header | --heade | --head | --hea )
22612 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22613 ac_need_defaults=false;;
22614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22615 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22618 # This is an error.
22619 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22620 Try \`$0 --help' for more information." >&5
22621 echo "$as_me: error: unrecognized option: $1
22622 Try \`$0 --help' for more information." >&2;}
22623 { (exit 1); exit 1; }; } ;;
22625 *) ac_config_targets="$ac_config_targets $1" ;;
22631 ac_configure_extra_args=
22633 if $ac_cs_silent; then
22635 ac_configure_extra_args="$ac_configure_extra_args --silent"
22639 cat >>$CONFIG_STATUS <<_ACEOF
22640 if \$ac_cs_recheck; then
22641 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22642 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22647 cat >>$CONFIG_STATUS <<_ACEOF
22649 # INIT-COMMANDS section.
22652 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22653 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
22654 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22655 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22656 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22657 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22658 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
22659 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
22660 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22661 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
22662 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22663 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
22664 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22665 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22666 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22667 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22668 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22669 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22670 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22671 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22672 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22673 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
22674 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
22675 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22676 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
22677 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
22678 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
22679 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
22680 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22681 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
22682 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
22683 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
22684 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
22685 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
22686 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
22687 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
22688 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
22689 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
22690 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
22691 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
22692 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
22693 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
22694 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
22695 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22696 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
22697 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
22698 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22699 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
22700 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
22706 cat >>$CONFIG_STATUS <<\_ACEOF
22707 for ac_config_target in $ac_config_targets
22709 case "$ac_config_target" in
22710 # Handling of arguments.
22711 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22712 "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
22713 "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
22714 "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
22715 "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
22716 "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
22717 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22718 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22719 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22720 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22721 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22722 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22723 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
22724 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
22725 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22726 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
22727 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22728 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
22729 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22730 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22731 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22732 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22733 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22734 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22735 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22736 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22737 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22738 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
22739 "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
22740 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
22741 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
22742 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
22743 "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
22744 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
22745 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
22746 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
22747 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
22748 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
22749 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
22750 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
22751 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
22752 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
22753 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
22754 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
22755 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
22756 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
22757 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
22758 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
22759 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
22760 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
22761 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
22762 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
22763 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22764 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22765 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22766 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22767 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22768 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22769 { (exit 1); exit 1; }; };;
22773 # If the user did not use the arguments to specify the items to instantiate,
22774 # then the envvar interface is used. Set only those that are not.
22775 # We use the long form for the default assignment because of an extremely
22776 # bizarre bug on SunOS 4.1.3.
22777 if $ac_need_defaults; then
22778 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22779 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22780 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22783 # Have a temporary directory for convenience. Make it in the build tree
22784 # simply because there is no reason to put it here, and in addition,
22785 # creating and moving files from /tmp can sometimes cause problems.
22786 # Create a temporary directory, and hook for its removal unless debugging.
22789 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22790 trap '{ (exit 1); exit 1; }' 1 2 13 15
22793 # Create a (secure) tmp directory for tmp files.
22796 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22797 test -n "$tmp" && test -d "$tmp"
22800 tmp=./confstat$$-$RANDOM
22801 (umask 077 && mkdir $tmp)
22804 echo "$me: cannot create a temporary directory in ." >&2
22805 { (exit 1); exit 1; }
22810 cat >>$CONFIG_STATUS <<_ACEOF
22813 # CONFIG_FILES section.
22816 # No need to generate the scripts if there are no CONFIG_FILES.
22817 # This happens for instance when ./config.status config.h
22818 if test -n "\$CONFIG_FILES"; then
22819 # Protect against being on the right side of a sed subst in config.status.
22820 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22821 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22822 s,@SHELL@,$SHELL,;t t
22823 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22824 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22825 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22826 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22827 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22828 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22829 s,@exec_prefix@,$exec_prefix,;t t
22830 s,@prefix@,$prefix,;t t
22831 s,@program_transform_name@,$program_transform_name,;t t
22832 s,@bindir@,$bindir,;t t
22833 s,@sbindir@,$sbindir,;t t
22834 s,@libexecdir@,$libexecdir,;t t
22835 s,@datadir@,$datadir,;t t
22836 s,@sysconfdir@,$sysconfdir,;t t
22837 s,@sharedstatedir@,$sharedstatedir,;t t
22838 s,@localstatedir@,$localstatedir,;t t
22839 s,@libdir@,$libdir,;t t
22840 s,@includedir@,$includedir,;t t
22841 s,@oldincludedir@,$oldincludedir,;t t
22842 s,@infodir@,$infodir,;t t
22843 s,@mandir@,$mandir,;t t
22844 s,@build_alias@,$build_alias,;t t
22845 s,@host_alias@,$host_alias,;t t
22846 s,@target_alias@,$target_alias,;t t
22847 s,@DEFS@,$DEFS,;t t
22848 s,@ECHO_C@,$ECHO_C,;t t
22849 s,@ECHO_N@,$ECHO_N,;t t
22850 s,@ECHO_T@,$ECHO_T,;t t
22851 s,@LIBS@,$LIBS,;t t
22852 s,@subdirs@,$subdirs,;t t
22853 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22854 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22855 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22856 s,@build@,$build,;t t
22857 s,@build_cpu@,$build_cpu,;t t
22858 s,@build_vendor@,$build_vendor,;t t
22859 s,@build_os@,$build_os,;t t
22860 s,@host@,$host,;t t
22861 s,@host_cpu@,$host_cpu,;t t
22862 s,@host_vendor@,$host_vendor,;t t
22863 s,@host_os@,$host_os,;t t
22864 s,@target@,$target,;t t
22865 s,@target_cpu@,$target_cpu,;t t
22866 s,@target_vendor@,$target_vendor,;t t
22867 s,@target_os@,$target_os,;t t
22869 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
22870 s,@ARCH@,$ARCH,;t t
22872 s,@CXXFLAGS@,$CXXFLAGS,;t t
22873 s,@LDFLAGS@,$LDFLAGS,;t t
22874 s,@CPPFLAGS@,$CPPFLAGS,;t t
22875 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22876 s,@EXEEXT@,$EXEEXT,;t t
22877 s,@OBJEXT@,$OBJEXT,;t t
22879 s,@CFLAGS@,$CFLAGS,;t t
22880 s,@ac_ct_CC@,$ac_ct_CC,;t t
22882 s,@ifGNUmake@,$ifGNUmake,;t t
22884 s,@LEXLIB@,$LEXLIB,;t t
22885 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22886 s,@YACC@,$YACC,;t t
22887 s,@BISON@,$BISON,;t t
22888 s,@EGREP@,$EGREP,;t t
22889 s,@LN_S@,$LN_S,;t t
22890 s,@ECHO@,$ECHO,;t t
22892 s,@ac_ct_AR@,$ac_ct_AR,;t t
22893 s,@RANLIB@,$RANLIB,;t t
22894 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22895 s,@STRIP@,$STRIP,;t t
22896 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22897 s,@CXXCPP@,$CXXCPP,;t t
22899 s,@FFLAGS@,$FFLAGS,;t t
22900 s,@ac_ct_F77@,$ac_ct_F77,;t t
22901 s,@LIBTOOL@,$LIBTOOL,;t t
22903 s,@ETAGS@,$ETAGS,;t t
22904 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
22905 s,@PYTHON@,$PYTHON,;t t
22906 s,@QMTEST@,$QMTEST,;t t
22907 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
22908 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
22909 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
22910 s,@ENDIAN@,$ENDIAN,;t t
22911 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
22912 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
22913 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
22914 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
22915 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
22916 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
22917 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
22918 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
22919 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
22920 s,@ALLOCA@,$ALLOCA,;t t
22921 s,@MMAP_FILE@,$MMAP_FILE,;t t
22922 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22923 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
22924 s,@USE_SPEC95@,$USE_SPEC95,;t t
22925 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
22926 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
22927 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
22928 s,@USE_POVRAY@,$USE_POVRAY,;t t
22930 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
22932 s,@LLVMCC1@,$LLVMCC1,;t t
22933 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
22935 s,@PAPIDIR@,$PAPIDIR,;t t
22936 s,@SHLIBEXT@,$SHLIBEXT,;t t
22937 s,@LIBOBJS@,$LIBOBJS,;t t
22938 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22943 cat >>$CONFIG_STATUS <<\_ACEOF
22944 # Split the substitutions into bite-sized pieces for seds with
22945 # small command number limits, like on Digital OSF/1 and HP-UX.
22946 ac_max_sed_lines=48
22947 ac_sed_frag=1 # Number of current file.
22948 ac_beg=1 # First line for current file.
22949 ac_end=$ac_max_sed_lines # Line after last line for current file.
22952 while $ac_more_lines; do
22953 if test $ac_beg -gt 1; then
22954 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22956 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22958 if test ! -s $tmp/subs.frag; then
22959 ac_more_lines=false
22961 # The purpose of the label and of the branching condition is to
22962 # speed up the sed processing (if there are no `@' at all, there
22963 # is no need to browse any of the substitutions).
22964 # These are the two extra sed commands mentioned above.
22966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22967 if test -z "$ac_sed_cmds"; then
22968 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22970 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22972 ac_sed_frag=`expr $ac_sed_frag + 1`
22974 ac_end=`expr $ac_end + $ac_max_sed_lines`
22977 if test -z "$ac_sed_cmds"; then
22980 fi # test -n "$CONFIG_FILES"
22983 cat >>$CONFIG_STATUS <<\_ACEOF
22984 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22985 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22987 - | *:- | *:-:* ) # input from stdin
22989 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22990 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22991 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22992 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22993 * ) ac_file_in=$ac_file.in ;;
22996 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22997 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22998 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22999 X"$ac_file" : 'X\(//\)[^/]' \| \
23000 X"$ac_file" : 'X\(//\)$' \| \
23001 X"$ac_file" : 'X\(/\)' \| \
23002 . : '\(.\)' 2>/dev/null ||
23004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23005 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23006 /^X\(\/\/\)$/{ s//\1/; q; }
23007 /^X\(\/\).*/{ s//\1/; q; }
23009 { if $as_mkdir_p; then
23014 while test ! -d "$as_dir"; do
23015 as_dirs="$as_dir $as_dirs"
23016 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23018 X"$as_dir" : 'X\(//\)[^/]' \| \
23019 X"$as_dir" : 'X\(//\)$' \| \
23020 X"$as_dir" : 'X\(/\)' \| \
23021 . : '\(.\)' 2>/dev/null ||
23023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23025 /^X\(\/\/\)$/{ s//\1/; q; }
23026 /^X\(\/\).*/{ s//\1/; q; }
23029 test ! -n "$as_dirs" || mkdir $as_dirs
23030 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23031 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23032 { (exit 1); exit 1; }; }; }
23036 if test "$ac_dir" != .; then
23037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23038 # A "../" for each directory in $ac_dir_suffix.
23039 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23041 ac_dir_suffix= ac_top_builddir=
23045 .) # No --srcdir option. We are building in place.
23047 if test -z "$ac_top_builddir"; then
23050 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23052 [\\/]* | ?:[\\/]* ) # Absolute path.
23053 ac_srcdir=$srcdir$ac_dir_suffix;
23054 ac_top_srcdir=$srcdir ;;
23055 *) # Relative path.
23056 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23057 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23059 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23061 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23062 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23063 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23064 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23068 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23069 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23072 if test x"$ac_file" != x-; then
23073 { echo "$as_me:$LINENO: creating $ac_file" >&5
23074 echo "$as_me: creating $ac_file" >&6;}
23077 # Let's still pretend it is `configure' which instantiates (i.e., don't
23078 # use $as_me), people would be surprised to read:
23079 # /* config.h. Generated by config.status. */
23080 if test x"$ac_file" = x-; then
23083 configure_input="$ac_file. "
23085 configure_input=$configure_input"Generated from `echo $ac_file_in |
23086 sed 's,.*/,,'` by configure."
23088 # First look for the input files in the build tree, otherwise in the
23090 ac_file_inputs=`IFS=:
23091 for f in $ac_file_in; do
23093 -) echo $tmp/stdin ;;
23095 # Absolute (can't be DOS-style, as IFS=:)
23096 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23097 echo "$as_me: error: cannot find input file: $f" >&2;}
23098 { (exit 1); exit 1; }; }
23101 if test -f "$f"; then
23104 elif test -f "$srcdir/$f"; then
23109 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23110 echo "$as_me: error: cannot find input file: $f" >&2;}
23111 { (exit 1); exit 1; }; }
23114 done` || { (exit 1); exit 1; }
23116 cat >>$CONFIG_STATUS <<_ACEOF
23120 cat >>$CONFIG_STATUS <<\_ACEOF
23122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23123 s,@configure_input@,$configure_input,;t t
23124 s,@srcdir@,$ac_srcdir,;t t
23125 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23126 s,@top_srcdir@,$ac_top_srcdir,;t t
23127 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23128 s,@builddir@,$ac_builddir,;t t
23129 s,@abs_builddir@,$ac_abs_builddir,;t t
23130 s,@top_builddir@,$ac_top_builddir,;t t
23131 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23132 s,@INSTALL@,$ac_INSTALL,;t t
23133 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23135 if test x"$ac_file" != x-; then
23136 mv $tmp/out $ac_file
23144 cat >>$CONFIG_STATUS <<\_ACEOF
23147 # CONFIG_HEADER section.
23150 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23151 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23153 # ac_d sets the value in "#define NAME VALUE" lines.
23154 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23155 ac_dB='[ ].*$,\1#\2'
23158 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23159 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23160 ac_uB='$,\1#\2define\3'
23164 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23165 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23167 - | *:- | *:-:* ) # input from stdin
23169 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23170 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23171 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23172 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23173 * ) ac_file_in=$ac_file.in ;;
23176 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23177 echo "$as_me: creating $ac_file" >&6;}
23179 # First look for the input files in the build tree, otherwise in the
23181 ac_file_inputs=`IFS=:
23182 for f in $ac_file_in; do
23184 -) echo $tmp/stdin ;;
23186 # Absolute (can't be DOS-style, as IFS=:)
23187 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23188 echo "$as_me: error: cannot find input file: $f" >&2;}
23189 { (exit 1); exit 1; }; }
23192 if test -f "$f"; then
23195 elif test -f "$srcdir/$f"; then
23200 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23201 echo "$as_me: error: cannot find input file: $f" >&2;}
23202 { (exit 1); exit 1; }; }
23205 done` || { (exit 1); exit 1; }
23206 # Remove the trailing spaces.
23207 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23211 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23212 # `conftest.undefs', that substitutes the proper values into
23213 # config.h.in to produce config.h. The first handles `#define'
23214 # templates, and the second `#undef' templates.
23215 # And first: Protect against being on the right side of a sed subst in
23216 # config.status. Protect against being in an unquoted here document
23217 # in config.status.
23218 rm -f conftest.defines conftest.undefs
23219 # Using a here document instead of a string reduces the quoting nightmare.
23220 # Putting comments in sed scripts is not portable.
23222 # `end' is used to avoid that the second main sed command (meant for
23223 # 0-ary CPP macros) applies to n-ary macro definitions.
23224 # See the Autoconf documentation for `clear'.
23225 cat >confdef2sed.sed <<\_ACEOF
23230 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23232 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23235 # If some macros were called several times there might be several times
23236 # the same #defines, which is useless. Nevertheless, we may not want to
23237 # sort them, since we want the *last* AC-DEFINE to be honored.
23238 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23239 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23240 rm -f confdef2sed.sed
23242 # This sed command replaces #undef with comments. This is necessary, for
23243 # example, in the case of _POSIX_SOURCE, which is predefined and required
23244 # on some systems where configure will not decide to define it.
23245 cat >>conftest.undefs <<\_ACEOF
23246 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23249 # Break up conftest.defines because some shells have a limit on the size
23250 # of here documents, and old seds have small limits too (100 cmds).
23251 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23252 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23253 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23254 echo ' :' >>$CONFIG_STATUS
23255 rm -f conftest.tail
23256 while grep . conftest.defines >/dev/null
23258 # Write a limited-size here document to $tmp/defines.sed.
23259 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23260 # Speed up: don't consider the non `#define' lines.
23261 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23262 # Work around the forget-to-reset-the-flag bug.
23263 echo 't clr' >>$CONFIG_STATUS
23264 echo ': clr' >>$CONFIG_STATUS
23265 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23267 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23269 mv $tmp/out $tmp/in
23271 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23272 rm -f conftest.defines
23273 mv conftest.tail conftest.defines
23275 rm -f conftest.defines
23276 echo ' fi # grep' >>$CONFIG_STATUS
23277 echo >>$CONFIG_STATUS
23279 # Break up conftest.undefs because some shells have a limit on the size
23280 # of here documents, and old seds have small limits too (100 cmds).
23281 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23282 rm -f conftest.tail
23283 while grep . conftest.undefs >/dev/null
23285 # Write a limited-size here document to $tmp/undefs.sed.
23286 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23287 # Speed up: don't consider the non `#undef'
23288 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23289 # Work around the forget-to-reset-the-flag bug.
23290 echo 't clr' >>$CONFIG_STATUS
23291 echo ': clr' >>$CONFIG_STATUS
23292 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23294 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23296 mv $tmp/out $tmp/in
23298 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23299 rm -f conftest.undefs
23300 mv conftest.tail conftest.undefs
23302 rm -f conftest.undefs
23304 cat >>$CONFIG_STATUS <<\_ACEOF
23305 # Let's still pretend it is `configure' which instantiates (i.e., don't
23306 # use $as_me), people would be surprised to read:
23307 # /* config.h. Generated by config.status. */
23308 if test x"$ac_file" = x-; then
23309 echo "/* Generated by configure. */" >$tmp/config.h
23311 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23313 cat $tmp/in >>$tmp/config.h
23315 if test x"$ac_file" != x-; then
23316 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23317 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23318 echo "$as_me: $ac_file is unchanged" >&6;}
23320 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23321 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23322 X"$ac_file" : 'X\(//\)[^/]' \| \
23323 X"$ac_file" : 'X\(//\)$' \| \
23324 X"$ac_file" : 'X\(/\)' \| \
23325 . : '\(.\)' 2>/dev/null ||
23327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23328 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23329 /^X\(\/\/\)$/{ s//\1/; q; }
23330 /^X\(\/\).*/{ s//\1/; q; }
23332 { if $as_mkdir_p; then
23337 while test ! -d "$as_dir"; do
23338 as_dirs="$as_dir $as_dirs"
23339 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23341 X"$as_dir" : 'X\(//\)[^/]' \| \
23342 X"$as_dir" : 'X\(//\)$' \| \
23343 X"$as_dir" : 'X\(/\)' \| \
23344 . : '\(.\)' 2>/dev/null ||
23346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23348 /^X\(\/\/\)$/{ s//\1/; q; }
23349 /^X\(\/\).*/{ s//\1/; q; }
23352 test ! -n "$as_dirs" || mkdir $as_dirs
23353 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23354 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23355 { (exit 1); exit 1; }; }; }
23358 mv $tmp/config.h $ac_file
23362 rm -f $tmp/config.h
23366 cat >>$CONFIG_STATUS <<\_ACEOF
23369 # CONFIG_COMMANDS section.
23371 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23372 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23373 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23374 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23375 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23376 X"$ac_dest" : 'X\(//\)[^/]' \| \
23377 X"$ac_dest" : 'X\(//\)$' \| \
23378 X"$ac_dest" : 'X\(/\)' \| \
23379 . : '\(.\)' 2>/dev/null ||
23381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23382 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23383 /^X\(\/\/\)$/{ s//\1/; q; }
23384 /^X\(\/\).*/{ s//\1/; q; }
23388 if test "$ac_dir" != .; then
23389 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23390 # A "../" for each directory in $ac_dir_suffix.
23391 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23393 ac_dir_suffix= ac_top_builddir=
23397 .) # No --srcdir option. We are building in place.
23399 if test -z "$ac_top_builddir"; then
23402 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23404 [\\/]* | ?:[\\/]* ) # Absolute path.
23405 ac_srcdir=$srcdir$ac_dir_suffix;
23406 ac_top_srcdir=$srcdir ;;
23407 *) # Relative path.
23408 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23409 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23411 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23413 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23414 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23415 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23416 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23419 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23420 echo "$as_me: executing $ac_dest commands" >&6;}
23422 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23423 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
23424 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
23425 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23426 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23427 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23428 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23429 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
23430 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23431 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23432 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23433 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
23434 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
23435 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
23436 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
23437 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
23438 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
23439 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
23440 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
23441 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
23442 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
23443 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
23444 test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
23445 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
23446 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
23447 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 ;;
23448 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 ;;
23449 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 ;;
23450 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
23451 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
23452 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 ;;
23453 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 ;;
23454 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 ;;
23455 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 ;;
23456 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 ;;
23457 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 ;;
23458 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 ;;
23459 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 ;;
23460 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 ;;
23461 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 ;;
23462 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 ;;
23463 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 ;;
23464 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 ;;
23465 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
23466 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
23467 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 ;;
23468 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
23469 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
23470 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
23475 cat >>$CONFIG_STATUS <<\_ACEOF
23477 { (exit 0); exit 0; }
23479 chmod +x $CONFIG_STATUS
23480 ac_clean_files=$ac_clean_files_save
23483 # configure is writing to config.log, and then calls config.status.
23484 # config.status does its own redirection, appending to config.log.
23485 # Unfortunately, on DOS this fails, as config.log is still kept open
23486 # by configure, so config.status won't be able to write to it; its
23487 # output is simply discarded. So we exec the FD to /dev/null,
23488 # effectively closing config.log, so it can be properly (re)opened and
23489 # appended to by config.status. When coming back to configure, we
23490 # need to make the FD available again.
23491 if test "$no_create" != yes; then
23493 ac_config_status_args=
23494 test "$silent" = yes &&
23495 ac_config_status_args="$ac_config_status_args --quiet"
23497 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23499 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23500 # would make configure fail if this is the last instruction.
23501 $ac_cs_success || { (exit 1); exit 1; }
23505 # CONFIG_SUBDIRS section.
23507 if test "$no_recursion" != yes; then
23509 # Remove --cache-file and --srcdir arguments so they do not pile up.
23510 ac_sub_configure_args=
23512 for ac_arg in $ac_configure_args; do
23513 if test -n "$ac_prev"; then
23518 -cache-file | --cache-file | --cache-fil | --cache-fi \
23519 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23520 ac_prev=cache_file ;;
23521 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23522 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23525 --config-cache | -C)
23527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23531 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23533 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23535 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23539 # Always prepend --prefix to ensure using the same prefix
23540 # in subdir configurations.
23541 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23544 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23546 # Do not complain, so a configure script can configure whichever
23547 # parts of a large source tree are present.
23548 test -d $srcdir/$ac_dir || continue
23550 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23551 echo "$as_me: configuring in $ac_dir" >&6;}
23552 { if $as_mkdir_p; then
23557 while test ! -d "$as_dir"; do
23558 as_dirs="$as_dir $as_dirs"
23559 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23560 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23561 X"$as_dir" : 'X\(//\)[^/]' \| \
23562 X"$as_dir" : 'X\(//\)$' \| \
23563 X"$as_dir" : 'X\(/\)' \| \
23564 . : '\(.\)' 2>/dev/null ||
23566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23567 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23568 /^X\(\/\/\)$/{ s//\1/; q; }
23569 /^X\(\/\).*/{ s//\1/; q; }
23572 test ! -n "$as_dirs" || mkdir $as_dirs
23573 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23574 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23575 { (exit 1); exit 1; }; }; }
23579 if test "$ac_dir" != .; then
23580 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23581 # A "../" for each directory in $ac_dir_suffix.
23582 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23584 ac_dir_suffix= ac_top_builddir=
23588 .) # No --srcdir option. We are building in place.
23590 if test -z "$ac_top_builddir"; then
23593 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23595 [\\/]* | ?:[\\/]* ) # Absolute path.
23596 ac_srcdir=$srcdir$ac_dir_suffix;
23597 ac_top_srcdir=$srcdir ;;
23598 *) # Relative path.
23599 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23600 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23602 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23604 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23605 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23606 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23607 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23612 # Check for guested configure; otherwise get Cygnus style configure.
23613 if test -f $ac_srcdir/configure.gnu; then
23614 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23615 elif test -f $ac_srcdir/configure; then
23616 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23617 elif test -f $ac_srcdir/configure.in; then
23618 ac_sub_configure=$ac_configure
23620 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23621 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23625 # The recursion is here.
23626 if test -n "$ac_sub_configure"; then
23627 # Make the cache file name correct relative to the subdirectory.
23628 case $cache_file in
23629 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23630 *) # Relative path.
23631 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23634 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23635 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23636 # The eval makes quoting arguments work.
23637 eval $ac_sub_configure $ac_sub_configure_args \
23638 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23639 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23640 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23641 { (exit 1); exit 1; }; }
23649 if test $llvmgccwarn = yes
23651 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
23652 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
23653 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
23654 echo "$as_me: WARNING: ***** appear to be working." >&2;}
23655 { echo "$as_me:$LINENO: WARNING: ***** " >&5
23656 echo "$as_me: WARNING: ***** " >&2;}
23657 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
23658 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
23659 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
23660 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
23661 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
23662 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}