Add dbg count support for ccp
[official-gcc.git] / boehm-gc / configure
blob6d2cf83e4cfb835d5ed4b264f7e7133daf3c28fb
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
293 done
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
317 done
318 IFS="$lt_save_ifs"
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
366 prev="$cmd"
367 done
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398 exec 6>&1
401 # Initializations.
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
423 ac_unique_file="gcj_mlc.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
461 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 multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical mkinstalldirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CFLAGS CXXFLAGS CCAS CCASFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GC_CFLAGS LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CPPFLAGS LDFLAGS CXXCPP THREADLIBS POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE extra_ldflags_libgc EXTRA_TEST_LIBS target_all CPLUSPLUS_TRUE CPLUSPLUS_FALSE AM_CPPFLAGS addobjs addincludes addlibs addtests MY_CFLAGS toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
503 ac_prev=
504 for ac_option
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
517 case $ac_option in
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
536 --config-cache | -C)
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 esac
800 done
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
875 else
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CPP_set=${CPP+set}
904 ac_env_CPP_value=$CPP
905 ac_cv_env_CPP_set=${CPP+set}
906 ac_cv_env_CPP_value=$CPP
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911 ac_env_CXX_set=${CXX+set}
912 ac_env_CXX_value=$CXX
913 ac_cv_env_CXX_set=${CXX+set}
914 ac_cv_env_CXX_value=$CXX
915 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_env_CXXFLAGS_value=$CXXFLAGS
917 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CXXCPP_set=${CXXCPP+set}
924 ac_env_CXXCPP_value=$CXXCPP
925 ac_cv_env_CXXCPP_set=${CXXCPP+set}
926 ac_cv_env_CXXCPP_value=$CXXCPP
929 # Report the --help message.
931 if test "$ac_init_help" = "long"; then
932 # Omit some internal or obsolete options to make the list less imposing.
933 # This message is too long to be a string in the A/UX 3.1 sh.
934 cat <<_ACEOF
935 \`configure' configures this package to adapt to many kinds of systems.
937 Usage: $0 [OPTION]... [VAR=VALUE]...
939 To assign environment variables (e.g., CC, CFLAGS...), specify them as
940 VAR=VALUE. See below for descriptions of some of the useful variables.
942 Defaults for the options are specified in brackets.
944 Configuration:
945 -h, --help display this help and exit
946 --help=short display options specific to this package
947 --help=recursive display the short help of all the included packages
948 -V, --version display version information and exit
949 -q, --quiet, --silent do not print \`checking...' messages
950 --cache-file=FILE cache test results in FILE [disabled]
951 -C, --config-cache alias for \`--cache-file=config.cache'
952 -n, --no-create do not create output files
953 --srcdir=DIR find the sources in DIR [configure dir or \`..']
955 _ACEOF
957 cat <<_ACEOF
958 Installation directories:
959 --prefix=PREFIX install architecture-independent files in PREFIX
960 [$ac_default_prefix]
961 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
962 [PREFIX]
964 By default, \`make install' will install all the files in
965 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
966 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
967 for instance \`--prefix=\$HOME'.
969 For better control, use the options below.
971 Fine tuning of the installation directories:
972 --bindir=DIR user executables [EPREFIX/bin]
973 --sbindir=DIR system admin executables [EPREFIX/sbin]
974 --libexecdir=DIR program executables [EPREFIX/libexec]
975 --datadir=DIR read-only architecture-independent data [PREFIX/share]
976 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
977 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
978 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
979 --libdir=DIR object code libraries [EPREFIX/lib]
980 --includedir=DIR C header files [PREFIX/include]
981 --oldincludedir=DIR C header files for non-gcc [/usr/include]
982 --infodir=DIR info documentation [PREFIX/info]
983 --mandir=DIR man documentation [PREFIX/man]
984 _ACEOF
986 cat <<\_ACEOF
988 Program names:
989 --program-prefix=PREFIX prepend PREFIX to installed program names
990 --program-suffix=SUFFIX append SUFFIX to installed program names
991 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
993 System types:
994 --build=BUILD configure for building on BUILD [guessed]
995 --host=HOST cross-compile to build programs to run on HOST [BUILD]
996 --target=TARGET configure for building compilers for TARGET [HOST]
997 _ACEOF
1000 if test -n "$ac_init_help"; then
1002 cat <<\_ACEOF
1004 Optional Features:
1005 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1006 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1007 --enable-multilib build many library versions (default)
1008 --disable-dependency-tracking speeds up one-time build
1009 --enable-dependency-tracking do not reject slow dependency extractors
1010 --enable-maintainer-mode enable make rules and dependencies not useful
1011 (and sometimes confusing) to the casual installer
1012 --enable-shared[=PKGS]
1013 build shared libraries [default=yes]
1014 --enable-static[=PKGS]
1015 build static libraries [default=yes]
1016 --enable-fast-install[=PKGS]
1017 optimize for fast installation [default=yes]
1018 --disable-libtool-lock avoid locking (might break parallel builds)
1019 --enable-parallel-mark parallelize marking and free list construction
1020 --enable-gc-debug include full support for pointer backtracing etc.
1022 Optional Packages:
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1025 --with-pic try to use only PIC/non-PIC objects [default=use
1026 both]
1027 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1028 --with-target-subdir=SUBDIR
1029 configuring with a cross compiler
1030 --with-cross-host=HOST configuring with a cross compiler
1031 --with-ecos enable runtime eCos target support
1033 Some influential environment variables:
1034 CC C compiler command
1035 CFLAGS C compiler flags
1036 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1037 nonstandard directory <lib dir>
1038 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1039 headers in a nonstandard directory <include dir>
1040 CXX C++ compiler command
1041 CXXFLAGS C++ compiler flags
1042 CPP C preprocessor
1043 CXXCPP C++ preprocessor
1045 Use these variables to override the choices made by `configure' or to help
1046 it to find libraries and programs with nonstandard names/locations.
1048 _ACEOF
1051 if test "$ac_init_help" = "recursive"; then
1052 # If there are subdirs, report their specific --help.
1053 ac_popdir=`pwd`
1054 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1055 test -d $ac_dir || continue
1056 ac_builddir=.
1058 if test "$ac_dir" != .; then
1059 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1060 # A "../" for each directory in $ac_dir_suffix.
1061 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1062 else
1063 ac_dir_suffix= ac_top_builddir=
1066 case $srcdir in
1067 .) # No --srcdir option. We are building in place.
1068 ac_srcdir=.
1069 if test -z "$ac_top_builddir"; then
1070 ac_top_srcdir=.
1071 else
1072 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1073 fi ;;
1074 [\\/]* | ?:[\\/]* ) # Absolute path.
1075 ac_srcdir=$srcdir$ac_dir_suffix;
1076 ac_top_srcdir=$srcdir ;;
1077 *) # Relative path.
1078 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1079 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1080 esac
1082 # Do not use `cd foo && pwd` to compute absolute paths, because
1083 # the directories may not exist.
1084 case `pwd` in
1085 .) ac_abs_builddir="$ac_dir";;
1087 case "$ac_dir" in
1088 .) ac_abs_builddir=`pwd`;;
1089 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1090 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1091 esac;;
1092 esac
1093 case $ac_abs_builddir in
1094 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1096 case ${ac_top_builddir}. in
1097 .) ac_abs_top_builddir=$ac_abs_builddir;;
1098 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1099 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1100 esac;;
1101 esac
1102 case $ac_abs_builddir in
1103 .) ac_abs_srcdir=$ac_srcdir;;
1105 case $ac_srcdir in
1106 .) ac_abs_srcdir=$ac_abs_builddir;;
1107 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1108 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1109 esac;;
1110 esac
1111 case $ac_abs_builddir in
1112 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1114 case $ac_top_srcdir in
1115 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1116 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1117 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1118 esac;;
1119 esac
1121 cd $ac_dir
1122 # Check for guested configure; otherwise get Cygnus style configure.
1123 if test -f $ac_srcdir/configure.gnu; then
1124 echo
1125 $SHELL $ac_srcdir/configure.gnu --help=recursive
1126 elif test -f $ac_srcdir/configure; then
1127 echo
1128 $SHELL $ac_srcdir/configure --help=recursive
1129 elif test -f $ac_srcdir/configure.ac ||
1130 test -f $ac_srcdir/configure.in; then
1131 echo
1132 $ac_configure --help
1133 else
1134 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1136 cd $ac_popdir
1137 done
1140 test -n "$ac_init_help" && exit 0
1141 if $ac_init_version; then
1142 cat <<\_ACEOF
1144 Copyright (C) 2003 Free Software Foundation, Inc.
1145 This configure script is free software; the Free Software Foundation
1146 gives unlimited permission to copy, distribute and modify it.
1147 _ACEOF
1148 exit 0
1150 exec 5>config.log
1151 cat >&5 <<_ACEOF
1152 This file contains any messages produced by compilers while
1153 running configure, to aid debugging if configure makes a mistake.
1155 It was created by $as_me, which was
1156 generated by GNU Autoconf 2.59. Invocation command line was
1158 $ $0 $@
1160 _ACEOF
1162 cat <<_ASUNAME
1163 ## --------- ##
1164 ## Platform. ##
1165 ## --------- ##
1167 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1168 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1169 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1170 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1171 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1173 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1174 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1176 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1177 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1178 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1179 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1180 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1181 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1182 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1184 _ASUNAME
1186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1187 for as_dir in $PATH
1189 IFS=$as_save_IFS
1190 test -z "$as_dir" && as_dir=.
1191 echo "PATH: $as_dir"
1192 done
1194 } >&5
1196 cat >&5 <<_ACEOF
1199 ## ----------- ##
1200 ## Core tests. ##
1201 ## ----------- ##
1203 _ACEOF
1206 # Keep a trace of the command line.
1207 # Strip out --no-create and --no-recursion so they do not pile up.
1208 # Strip out --silent because we don't want to record it for future runs.
1209 # Also quote any args containing shell meta-characters.
1210 # Make two passes to allow for proper duplicate-argument suppression.
1211 ac_configure_args=
1212 ac_configure_args0=
1213 ac_configure_args1=
1214 ac_sep=
1215 ac_must_keep_next=false
1216 for ac_pass in 1 2
1218 for ac_arg
1220 case $ac_arg in
1221 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1224 continue ;;
1225 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1226 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1227 esac
1228 case $ac_pass in
1229 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1231 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1232 if test $ac_must_keep_next = true; then
1233 ac_must_keep_next=false # Got value, back to normal.
1234 else
1235 case $ac_arg in
1236 *=* | --config-cache | -C | -disable-* | --disable-* \
1237 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1238 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1239 | -with-* | --with-* | -without-* | --without-* | --x)
1240 case "$ac_configure_args0 " in
1241 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1242 esac
1244 -* ) ac_must_keep_next=true ;;
1245 esac
1247 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1248 # Get rid of the leading space.
1249 ac_sep=" "
1251 esac
1252 done
1253 done
1254 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1255 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1257 # When interrupted or exit'd, cleanup temporary files, and complete
1258 # config.log. We remove comments because anyway the quotes in there
1259 # would cause problems or look ugly.
1260 # WARNING: Be sure not to use single quotes in there, as some shells,
1261 # such as our DU 5.0 friend, will then `close' the trap.
1262 trap 'exit_status=$?
1263 # Save into config.log some information that might help in debugging.
1265 echo
1267 cat <<\_ASBOX
1268 ## ---------------- ##
1269 ## Cache variables. ##
1270 ## ---------------- ##
1271 _ASBOX
1272 echo
1273 # The following way of writing the cache mishandles newlines in values,
1275 (set) 2>&1 |
1276 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1277 *ac_space=\ *)
1278 sed -n \
1279 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1283 sed -n \
1284 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1286 esac;
1288 echo
1290 cat <<\_ASBOX
1291 ## ----------------- ##
1292 ## Output variables. ##
1293 ## ----------------- ##
1294 _ASBOX
1295 echo
1296 for ac_var in $ac_subst_vars
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1300 done | sort
1301 echo
1303 if test -n "$ac_subst_files"; then
1304 cat <<\_ASBOX
1305 ## ------------- ##
1306 ## Output files. ##
1307 ## ------------- ##
1308 _ASBOX
1309 echo
1310 for ac_var in $ac_subst_files
1312 eval ac_val=$`echo $ac_var`
1313 echo "$ac_var='"'"'$ac_val'"'"'"
1314 done | sort
1315 echo
1318 if test -s confdefs.h; then
1319 cat <<\_ASBOX
1320 ## ----------- ##
1321 ## confdefs.h. ##
1322 ## ----------- ##
1323 _ASBOX
1324 echo
1325 sed "/^$/d" confdefs.h | sort
1326 echo
1328 test "$ac_signal" != 0 &&
1329 echo "$as_me: caught signal $ac_signal"
1330 echo "$as_me: exit $exit_status"
1331 } >&5
1332 rm -f core *.core &&
1333 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1334 exit $exit_status
1336 for ac_signal in 1 2 13 15; do
1337 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1338 done
1339 ac_signal=0
1341 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1342 rm -rf conftest* confdefs.h
1343 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1344 echo >confdefs.h
1346 # Predefined preprocessor variables.
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_NAME "$PACKAGE_NAME"
1350 _ACEOF
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1355 _ACEOF
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1360 _ACEOF
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_STRING "$PACKAGE_STRING"
1365 _ACEOF
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1370 _ACEOF
1373 # Let the site file select an alternate cache file if it wants to.
1374 # Prefer explicitly selected file to automatically selected ones.
1375 if test -z "$CONFIG_SITE"; then
1376 if test "x$prefix" != xNONE; then
1377 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1378 else
1379 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1382 for ac_site_file in $CONFIG_SITE; do
1383 if test -r "$ac_site_file"; then
1384 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1385 echo "$as_me: loading site script $ac_site_file" >&6;}
1386 sed 's/^/| /' "$ac_site_file" >&5
1387 . "$ac_site_file"
1389 done
1391 if test -r "$cache_file"; then
1392 # Some versions of bash will fail to source /dev/null (special
1393 # files actually), so we avoid doing that.
1394 if test -f "$cache_file"; then
1395 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1396 echo "$as_me: loading cache $cache_file" >&6;}
1397 case $cache_file in
1398 [\\/]* | ?:[\\/]* ) . $cache_file;;
1399 *) . ./$cache_file;;
1400 esac
1402 else
1403 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1404 echo "$as_me: creating cache $cache_file" >&6;}
1405 >$cache_file
1408 # Check that the precious variables saved in the cache have kept the same
1409 # value.
1410 ac_cache_corrupted=false
1411 for ac_var in `(set) 2>&1 |
1412 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1413 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1414 eval ac_new_set=\$ac_env_${ac_var}_set
1415 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1416 eval ac_new_val="\$ac_env_${ac_var}_value"
1417 case $ac_old_set,$ac_new_set in
1418 set,)
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1422 ,set)
1423 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1424 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1425 ac_cache_corrupted=: ;;
1426 ,);;
1428 if test "x$ac_old_val" != "x$ac_new_val"; then
1429 # differences in whitespace do not lead to failure.
1430 ac_old_val_w=`echo x $ac_old_val`
1431 ac_new_val_w=`echo x $ac_new_val`
1432 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1433 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1434 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1435 ac_cache_corrupted=:
1436 else
1437 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1438 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1439 eval $ac_var=\$ac_old_val
1441 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1442 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1443 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1444 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1445 fi;;
1446 esac
1447 # Pass precious variables to config.status.
1448 if test "$ac_new_set" = set; then
1449 case $ac_new_val in
1450 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1451 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1452 *) ac_arg=$ac_var=$ac_new_val ;;
1453 esac
1454 case " $ac_configure_args " in
1455 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1456 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1457 esac
1459 done
1460 if $ac_cache_corrupted; then
1461 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1462 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1463 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1464 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1465 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1466 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1467 { (exit 1); exit 1; }; }
1470 ac_ext=c
1471 ac_cpp='$CPP $CPPFLAGS'
1472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498 # This works around the fact that libtool configuration may change LD
1499 # for this particular configuration, but some shells, instead of
1500 # keeping the changes in LD private, export them just because LD is
1501 # exported.
1502 ORIGINAL_LD_FOR_MULTILIBS=$LD
1504 # Default to --enable-multilib
1505 # Check whether --enable-multilib or --disable-multilib was given.
1506 if test "${enable_multilib+set}" = set; then
1507 enableval="$enable_multilib"
1508 case "$enableval" in
1509 yes) multilib=yes ;;
1510 no) multilib=no ;;
1511 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1512 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1513 { (exit 1); exit 1; }; } ;;
1514 esac
1515 else
1516 multilib=yes
1519 # We may get other options which we leave undocumented:
1520 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1521 # See config-ml.in if you want the gory details.
1523 if test "$srcdir" = "."; then
1524 if test "$with_target_subdir" != "."; then
1525 multi_basedir="$srcdir/$with_multisrctop../.."
1526 else
1527 multi_basedir="$srcdir/$with_multisrctop.."
1529 else
1530 multi_basedir="$srcdir/.."
1534 # Even if the default multilib is not a cross compilation,
1535 # it may be that some of the other multilibs are.
1536 if test $cross_compiling = no && test $multilib = yes \
1537 && test "x${with_multisubdir}" != x ; then
1538 cross_compiling=maybe
1541 ac_config_commands="$ac_config_commands default-1"
1544 ac_aux_dir=
1545 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1546 if test -f $ac_dir/install-sh; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/install-sh -c"
1549 break
1550 elif test -f $ac_dir/install.sh; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/install.sh -c"
1553 break
1554 elif test -f $ac_dir/shtool; then
1555 ac_aux_dir=$ac_dir
1556 ac_install_sh="$ac_aux_dir/shtool install -c"
1557 break
1559 done
1560 if test -z "$ac_aux_dir"; then
1561 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1563 { (exit 1); exit 1; }; }
1565 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1569 # Make sure we can run config.sub.
1570 $ac_config_sub sun4 >/dev/null 2>&1 ||
1571 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1573 { (exit 1); exit 1; }; }
1575 echo "$as_me:$LINENO: checking build system type" >&5
1576 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1577 if test "${ac_cv_build+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 else
1580 ac_cv_build_alias=$build_alias
1581 test -z "$ac_cv_build_alias" &&
1582 ac_cv_build_alias=`$ac_config_guess`
1583 test -z "$ac_cv_build_alias" &&
1584 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586 { (exit 1); exit 1; }; }
1587 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1590 { (exit 1); exit 1; }; }
1593 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594 echo "${ECHO_T}$ac_cv_build" >&6
1595 build=$ac_cv_build
1596 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601 echo "$as_me:$LINENO: checking host system type" >&5
1602 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1603 if test "${ac_cv_host+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606 ac_cv_host_alias=$host_alias
1607 test -z "$ac_cv_host_alias" &&
1608 ac_cv_host_alias=$ac_cv_build_alias
1609 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1615 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1616 echo "${ECHO_T}$ac_cv_host" >&6
1617 host=$ac_cv_host
1618 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1623 echo "$as_me:$LINENO: checking target system type" >&5
1624 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1625 if test "${ac_cv_target+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628 ac_cv_target_alias=$target_alias
1629 test "x$ac_cv_target_alias" = "x" &&
1630 ac_cv_target_alias=$ac_cv_host_alias
1631 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1632 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1633 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1634 { (exit 1); exit 1; }; }
1637 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1638 echo "${ECHO_T}$ac_cv_target" >&6
1639 target=$ac_cv_target
1640 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645 # The aliases save the names the user supplied, while $host etc.
1646 # will get canonicalized.
1647 test -n "$target_alias" &&
1648 test "$program_prefix$program_suffix$program_transform_name" = \
1649 NONENONEs,x,x, &&
1650 program_prefix=${target_alias}-
1652 # Get the 'noncanonical' system names.
1653 case ${build_alias} in
1654 "") build_noncanonical=${build} ;;
1655 *) build_noncanonical=${build_alias} ;;
1656 esac
1658 case ${host_alias} in
1659 "") host_noncanonical=${build_noncanonical} ;;
1660 *) host_noncanonical=${host_alias} ;;
1661 esac
1663 case ${target_alias} in
1664 "") target_noncanonical=${host_noncanonical} ;;
1665 *) target_noncanonical=${target_alias} ;;
1666 esac
1671 # This works around an automake problem.
1672 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1675 am__api_version="1.9"
1676 # Find a good install program. We prefer a C program (faster),
1677 # so one script is as good as another. But avoid the broken or
1678 # incompatible versions:
1679 # SysV /etc/install, /usr/sbin/install
1680 # SunOS /usr/etc/install
1681 # IRIX /sbin/install
1682 # AIX /bin/install
1683 # AmigaOS /C/install, which installs bootblocks on floppy discs
1684 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1685 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1686 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1687 # OS/2's system install, which has a completely different semantic
1688 # ./install, which can be erroneously created by make from ./install.sh.
1689 # Reject install programs that cannot install multiple files.
1690 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1691 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1692 if test -z "$INSTALL"; then
1693 if test "${ac_cv_path_install+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 # Account for people who put trailing slashes in PATH elements.
1702 case $as_dir/ in
1703 ./ | .// | /cC/* | \
1704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1705 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1706 /usr/ucb/* ) ;;
1708 # OSF1 and SCO ODT 3.0 have their own names for install.
1709 # Don't use installbsd from OSF since it installs stuff as root
1710 # by default.
1711 for ac_prog in ginstall scoinst install; do
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1714 if test $ac_prog = install &&
1715 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1716 # AIX install. It has an incompatible calling convention.
1718 elif test $ac_prog = install &&
1719 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1720 # program-specific install script used by HP pwplus--don't use.
1722 else
1723 rm -rf conftest.one conftest.two conftest.dir
1724 echo one > conftest.one
1725 echo two > conftest.two
1726 mkdir conftest.dir
1727 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1728 test -s conftest.one && test -s conftest.two &&
1729 test -s conftest.dir/conftest.one &&
1730 test -s conftest.dir/conftest.two
1731 then
1732 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1733 break 3
1737 done
1738 done
1740 esac
1741 done
1743 rm -rf conftest.one conftest.two conftest.dir
1746 if test "${ac_cv_path_install+set}" = set; then
1747 INSTALL=$ac_cv_path_install
1748 else
1749 # As a last resort, use the slow shell script. Don't cache a
1750 # value for INSTALL within a source directory, because that will
1751 # break other packages using the cache if that directory is
1752 # removed, or if the value is a relative name.
1753 INSTALL=$ac_install_sh
1756 echo "$as_me:$LINENO: result: $INSTALL" >&5
1757 echo "${ECHO_T}$INSTALL" >&6
1759 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1760 # It thinks the first close brace ends the variable substitution.
1761 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1763 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1765 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1767 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1768 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1769 # Just in case
1770 sleep 1
1771 echo timestamp > conftest.file
1772 # Do `set' in a subshell so we don't clobber the current shell's
1773 # arguments. Must try -L first in case configure is actually a
1774 # symlink; some systems play weird games with the mod time of symlinks
1775 # (eg FreeBSD returns the mod time of the symlink's containing
1776 # directory).
1777 if (
1778 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1779 if test "$*" = "X"; then
1780 # -L didn't work.
1781 set X `ls -t $srcdir/configure conftest.file`
1783 rm -f conftest.file
1784 if test "$*" != "X $srcdir/configure conftest.file" \
1785 && test "$*" != "X conftest.file $srcdir/configure"; then
1787 # If neither matched, then we have a broken ls. This can happen
1788 # if, for instance, CONFIG_SHELL is bash and it inherits a
1789 # broken ls alias from the environment. This has actually
1790 # happened. Such a system could not be considered "sane".
1791 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1792 alias in your environment" >&5
1793 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1794 alias in your environment" >&2;}
1795 { (exit 1); exit 1; }; }
1798 test "$2" = conftest.file
1800 then
1801 # Ok.
1803 else
1804 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1805 Check your system clock" >&5
1806 echo "$as_me: error: newly created file is older than distributed files!
1807 Check your system clock" >&2;}
1808 { (exit 1); exit 1; }; }
1810 echo "$as_me:$LINENO: result: yes" >&5
1811 echo "${ECHO_T}yes" >&6
1812 test "$program_prefix" != NONE &&
1813 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1814 # Use a double $ so make ignores it.
1815 test "$program_suffix" != NONE &&
1816 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1817 # Double any \ or $. echo might interpret backslashes.
1818 # By default was `s,x,x', remove it if useless.
1819 cat <<\_ACEOF >conftest.sed
1820 s/[\\$]/&&/g;s/;s,x,x,$//
1821 _ACEOF
1822 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1823 rm conftest.sed
1825 # expand $ac_aux_dir to an absolute path
1826 am_aux_dir=`cd $ac_aux_dir && pwd`
1828 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1829 # Use eval to expand $SHELL
1830 if eval "$MISSING --run true"; then
1831 am_missing_run="$MISSING --run "
1832 else
1833 am_missing_run=
1834 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1835 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1838 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1839 # We used to keeping the `.' as first argument, in order to
1840 # allow $(mkdir_p) to be used without argument. As in
1841 # $(mkdir_p) $(somedir)
1842 # where $(somedir) is conditionally defined. However this is wrong
1843 # for two reasons:
1844 # 1. if the package is installed by a user who cannot write `.'
1845 # make install will fail,
1846 # 2. the above comment should most certainly read
1847 # $(mkdir_p) $(DESTDIR)$(somedir)
1848 # so it does not work when $(somedir) is undefined and
1849 # $(DESTDIR) is not.
1850 # To support the latter case, we have to write
1851 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1852 # so the `.' trick is pointless.
1853 mkdir_p='mkdir -p --'
1854 else
1855 # On NextStep and OpenStep, the `mkdir' command does not
1856 # recognize any option. It will interpret all options as
1857 # directories to create, and then abort because `.' already
1858 # exists.
1859 for d in ./-p ./--version;
1861 test -d $d && rmdir $d
1862 done
1863 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1864 if test -f "$ac_aux_dir/mkinstalldirs"; then
1865 mkdir_p='$(mkinstalldirs)'
1866 else
1867 mkdir_p='$(install_sh) -d'
1871 for ac_prog in gawk mawk nawk awk
1873 # Extract the first word of "$ac_prog", so it can be a program name with args.
1874 set dummy $ac_prog; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_AWK+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880 if test -n "$AWK"; then
1881 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1882 else
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1886 IFS=$as_save_IFS
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890 ac_cv_prog_AWK="$ac_prog"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 break 2
1894 done
1895 done
1899 AWK=$ac_cv_prog_AWK
1900 if test -n "$AWK"; then
1901 echo "$as_me:$LINENO: result: $AWK" >&5
1902 echo "${ECHO_T}$AWK" >&6
1903 else
1904 echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1908 test -n "$AWK" && break
1909 done
1911 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1912 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1913 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1914 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917 cat >conftest.make <<\_ACEOF
1918 all:
1919 @echo 'ac_maketemp="$(MAKE)"'
1920 _ACEOF
1921 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1922 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1923 if test -n "$ac_maketemp"; then
1924 eval ac_cv_prog_make_${ac_make}_set=yes
1925 else
1926 eval ac_cv_prog_make_${ac_make}_set=no
1928 rm -f conftest.make
1930 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1931 echo "$as_me:$LINENO: result: yes" >&5
1932 echo "${ECHO_T}yes" >&6
1933 SET_MAKE=
1934 else
1935 echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6
1937 SET_MAKE="MAKE=${MAKE-make}"
1940 rm -rf .tst 2>/dev/null
1941 mkdir .tst 2>/dev/null
1942 if test -d .tst; then
1943 am__leading_dot=.
1944 else
1945 am__leading_dot=_
1947 rmdir .tst 2>/dev/null
1949 # test to see if srcdir already configured
1950 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1951 test -f $srcdir/config.status; then
1952 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1953 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1954 { (exit 1); exit 1; }; }
1957 # test whether we have cygpath
1958 if test -z "$CYGPATH_W"; then
1959 if (cygpath --version) >/dev/null 2>/dev/null; then
1960 CYGPATH_W='cygpath -w'
1961 else
1962 CYGPATH_W=echo
1967 # Define the identity of the package.
1968 PACKAGE=gc
1969 VERSION=6.6
1972 # Some tools Automake needs.
1974 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1977 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1980 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1983 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1986 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1988 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1990 # Installed binaries are usually stripped using `strip' when the user
1991 # run `make install-strip'. However `strip' might not be the right
1992 # tool to use in cross-compilation environments, therefore Automake
1993 # will honor the `STRIP' environment variable to overrule this program.
1994 if test "$cross_compiling" != no; then
1995 if test -n "$ac_tool_prefix"; then
1996 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1997 set dummy ${ac_tool_prefix}strip; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_STRIP+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003 if test -n "$STRIP"; then
2004 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2005 else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 break 2
2017 done
2018 done
2022 STRIP=$ac_cv_prog_STRIP
2023 if test -n "$STRIP"; then
2024 echo "$as_me:$LINENO: result: $STRIP" >&5
2025 echo "${ECHO_T}$STRIP" >&6
2026 else
2027 echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2032 if test -z "$ac_cv_prog_STRIP"; then
2033 ac_ct_STRIP=$STRIP
2034 # Extract the first word of "strip", so it can be a program name with args.
2035 set dummy strip; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041 if test -n "$ac_ct_STRIP"; then
2042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2043 else
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2047 IFS=$as_save_IFS
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051 ac_cv_prog_ac_ct_STRIP="strip"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 break 2
2055 done
2056 done
2058 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2062 if test -n "$ac_ct_STRIP"; then
2063 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2064 echo "${ECHO_T}$ac_ct_STRIP" >&6
2065 else
2066 echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6
2070 STRIP=$ac_ct_STRIP
2071 else
2072 STRIP="$ac_cv_prog_STRIP"
2076 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2078 # We need awk for the "check" target. The system "awk" is bad on
2079 # some platforms.
2080 # Always define AMTAR for backward compatibility.
2082 AMTAR=${AMTAR-"${am_missing_run}tar"}
2084 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2091 # The autoconf 2.5x version of the no-executables hack.
2094 # Yak. We must force CC and CXX to /not/ be precious variables; otherwise
2095 # the wrong, non-multilib-adjusted value will be used in multilibs.
2096 # As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
2100 ac_ext=c
2101 ac_cpp='$CPP $CPPFLAGS'
2102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105 if test -n "$ac_tool_prefix"; then
2106 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2107 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2108 echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110 if test "${ac_cv_prog_CC+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113 if test -n "$CC"; then
2114 ac_cv_prog_CC="$CC" # Let the user override the test.
2115 else
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2119 IFS=$as_save_IFS
2120 test -z "$as_dir" && as_dir=.
2121 for ac_exec_ext in '' $ac_executable_extensions; do
2122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 break 2
2127 done
2128 done
2132 CC=$ac_cv_prog_CC
2133 if test -n "$CC"; then
2134 echo "$as_me:$LINENO: result: $CC" >&5
2135 echo "${ECHO_T}$CC" >&6
2136 else
2137 echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6
2142 if test -z "$ac_cv_prog_CC"; then
2143 ac_ct_CC=$CC
2144 # Extract the first word of "gcc", so it can be a program name with args.
2145 set dummy gcc; ac_word=$2
2146 echo "$as_me:$LINENO: checking for $ac_word" >&5
2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2148 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151 if test -n "$ac_ct_CC"; then
2152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2153 else
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 for as_dir in $PATH
2157 IFS=$as_save_IFS
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2161 ac_cv_prog_ac_ct_CC="gcc"
2162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163 break 2
2165 done
2166 done
2170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2171 if test -n "$ac_ct_CC"; then
2172 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2173 echo "${ECHO_T}$ac_ct_CC" >&6
2174 else
2175 echo "$as_me:$LINENO: result: no" >&5
2176 echo "${ECHO_T}no" >&6
2179 CC=$ac_ct_CC
2180 else
2181 CC="$ac_cv_prog_CC"
2184 if test -z "$CC"; then
2185 if test -n "$ac_tool_prefix"; then
2186 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2187 set dummy ${ac_tool_prefix}cc; ac_word=$2
2188 echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2190 if test "${ac_cv_prog_CC+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193 if test -n "$CC"; then
2194 ac_cv_prog_CC="$CC" # Let the user override the test.
2195 else
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2199 IFS=$as_save_IFS
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2203 ac_cv_prog_CC="${ac_tool_prefix}cc"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 break 2
2207 done
2208 done
2212 CC=$ac_cv_prog_CC
2213 if test -n "$CC"; then
2214 echo "$as_me:$LINENO: result: $CC" >&5
2215 echo "${ECHO_T}$CC" >&6
2216 else
2217 echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6
2222 if test -z "$ac_cv_prog_CC"; then
2223 ac_ct_CC=$CC
2224 # Extract the first word of "cc", so it can be a program name with args.
2225 set dummy cc; ac_word=$2
2226 echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231 if test -n "$ac_ct_CC"; then
2232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2233 else
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 for as_dir in $PATH
2237 IFS=$as_save_IFS
2238 test -z "$as_dir" && as_dir=.
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2241 ac_cv_prog_ac_ct_CC="cc"
2242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243 break 2
2245 done
2246 done
2250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2251 if test -n "$ac_ct_CC"; then
2252 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2253 echo "${ECHO_T}$ac_ct_CC" >&6
2254 else
2255 echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6
2259 CC=$ac_ct_CC
2260 else
2261 CC="$ac_cv_prog_CC"
2265 if test -z "$CC"; then
2266 # Extract the first word of "cc", so it can be a program name with args.
2267 set dummy cc; ac_word=$2
2268 echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273 if test -n "$CC"; then
2274 ac_cv_prog_CC="$CC" # Let the user override the test.
2275 else
2276 ac_prog_rejected=no
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2285 ac_prog_rejected=yes
2286 continue
2288 ac_cv_prog_CC="cc"
2289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290 break 2
2292 done
2293 done
2295 if test $ac_prog_rejected = yes; then
2296 # We found a bogon in the path, so make sure we never use it.
2297 set dummy $ac_cv_prog_CC
2298 shift
2299 if test $# != 0; then
2300 # We chose a different compiler from the bogus one.
2301 # However, it has the same basename, so the bogon will be chosen
2302 # first if we set CC to just the basename; use the full file name.
2303 shift
2304 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2309 CC=$ac_cv_prog_CC
2310 if test -n "$CC"; then
2311 echo "$as_me:$LINENO: result: $CC" >&5
2312 echo "${ECHO_T}$CC" >&6
2313 else
2314 echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6
2319 if test -z "$CC"; then
2320 if test -n "$ac_tool_prefix"; then
2321 for ac_prog in cl
2323 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2325 echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2327 if test "${ac_cv_prog_CC+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330 if test -n "$CC"; then
2331 ac_cv_prog_CC="$CC" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 break 2
2344 done
2345 done
2349 CC=$ac_cv_prog_CC
2350 if test -n "$CC"; then
2351 echo "$as_me:$LINENO: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6
2353 else
2354 echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2358 test -n "$CC" && break
2359 done
2361 if test -z "$CC"; then
2362 ac_ct_CC=$CC
2363 for ac_prog in cl
2365 # Extract the first word of "$ac_prog", so it can be a program name with args.
2366 set dummy $ac_prog; ac_word=$2
2367 echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2369 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372 if test -n "$ac_ct_CC"; then
2373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2374 else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2378 IFS=$as_save_IFS
2379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382 ac_cv_prog_ac_ct_CC="$ac_prog"
2383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384 break 2
2386 done
2387 done
2391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2392 if test -n "$ac_ct_CC"; then
2393 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2394 echo "${ECHO_T}$ac_ct_CC" >&6
2395 else
2396 echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2400 test -n "$ac_ct_CC" && break
2401 done
2403 CC=$ac_ct_CC
2409 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2410 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2411 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2412 See \`config.log' for more details." >&5
2413 echo "$as_me: error: no acceptable C compiler found in \$PATH
2414 See \`config.log' for more details." >&2;}
2415 { (exit 1); exit 1; }; }; }
2417 # Provide some information about the compiler.
2418 echo "$as_me:$LINENO:" \
2419 "checking for C compiler version" >&5
2420 ac_compiler=`set X $ac_compile; echo $2`
2421 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2422 (eval $ac_compiler --version </dev/null >&5) 2>&5
2423 ac_status=$?
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }
2426 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2427 (eval $ac_compiler -v </dev/null >&5) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }
2431 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2432 (eval $ac_compiler -V </dev/null >&5) 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }
2437 cat >conftest.$ac_ext <<_ACEOF
2438 /* confdefs.h. */
2439 _ACEOF
2440 cat confdefs.h >>conftest.$ac_ext
2441 cat >>conftest.$ac_ext <<_ACEOF
2442 /* end confdefs.h. */
2445 main ()
2449 return 0;
2451 _ACEOF
2452 # FIXME: Cleanup?
2453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2454 (eval $ac_link) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; then
2458 gcc_no_link=no
2459 else
2460 gcc_no_link=yes
2463 if test x$gcc_no_link = xyes; then
2464 # Setting cross_compile will disable run tests; it will
2465 # also disable AC_CHECK_FILE but that's generally
2466 # correct if we can't link.
2467 cross_compiling=yes
2468 EXEEXT=
2469 else
2470 cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h. */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2478 main ()
2482 return 0;
2484 _ACEOF
2485 ac_clean_files_save=$ac_clean_files
2486 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2487 # Try to create an executable without -o first, disregard a.out.
2488 # It will help us diagnose broken compilers, and finding out an intuition
2489 # of exeext.
2490 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2491 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2492 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2493 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2494 (eval $ac_link_default) 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; then
2498 # Find the output, starting from the most likely. This scheme is
2499 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2500 # resort.
2502 # Be careful to initialize this variable, since it used to be cached.
2503 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2504 ac_cv_exeext=
2505 # b.out is created by i960 compilers.
2506 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2508 test -f "$ac_file" || continue
2509 case $ac_file in
2510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2512 conftest.$ac_ext )
2513 # This is the source file.
2515 [ab].out )
2516 # We found the default executable, but exeext='' is most
2517 # certainly right.
2518 break;;
2519 *.* )
2520 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2521 # FIXME: I believe we export ac_cv_exeext for Libtool,
2522 # but it would be cool to find out if it's true. Does anybody
2523 # maintain Libtool? --akim.
2524 export ac_cv_exeext
2525 break;;
2527 break;;
2528 esac
2529 done
2530 else
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2534 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2535 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2536 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2537 See \`config.log' for more details." >&5
2538 echo "$as_me: error: C compiler cannot create executables
2539 See \`config.log' for more details." >&2;}
2540 { (exit 77); exit 77; }; }; }
2543 ac_exeext=$ac_cv_exeext
2544 echo "$as_me:$LINENO: result: $ac_file" >&5
2545 echo "${ECHO_T}$ac_file" >&6
2547 # Check the compiler produces executables we can run. If not, either
2548 # the compiler is broken, or we cross compile.
2549 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2550 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2551 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2552 # If not cross compiling, check that we can run a simple program.
2553 if test "$cross_compiling" != yes; then
2554 if { ac_try='./$ac_file'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2560 cross_compiling=no
2561 else
2562 if test "$cross_compiling" = maybe; then
2563 cross_compiling=yes
2564 else
2565 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2566 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2568 If you meant to cross compile, use \`--host'.
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: cannot run C compiled programs.
2571 If you meant to cross compile, use \`--host'.
2572 See \`config.log' for more details." >&2;}
2573 { (exit 1); exit 1; }; }; }
2577 echo "$as_me:$LINENO: result: yes" >&5
2578 echo "${ECHO_T}yes" >&6
2580 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2581 ac_clean_files=$ac_clean_files_save
2582 # Check the compiler produces executables we can run. If not, either
2583 # the compiler is broken, or we cross compile.
2584 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2585 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2586 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2587 echo "${ECHO_T}$cross_compiling" >&6
2589 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2590 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2592 (eval $ac_link) 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; then
2596 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2597 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2598 # work properly (i.e., refer to `conftest.exe'), while it won't with
2599 # `rm'.
2600 for ac_file in conftest.exe conftest conftest.*; do
2601 test -f "$ac_file" || continue
2602 case $ac_file in
2603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2604 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2605 export ac_cv_exeext
2606 break;;
2607 * ) break;;
2608 esac
2609 done
2610 else
2611 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2612 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2614 See \`config.log' for more details." >&5
2615 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2616 See \`config.log' for more details." >&2;}
2617 { (exit 1); exit 1; }; }; }
2620 rm -f conftest$ac_cv_exeext
2621 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2622 echo "${ECHO_T}$ac_cv_exeext" >&6
2624 rm -f conftest.$ac_ext
2625 EXEEXT=$ac_cv_exeext
2626 ac_exeext=$EXEEXT
2628 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2629 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2630 if test "${ac_cv_objext+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633 cat >conftest.$ac_ext <<_ACEOF
2634 /* confdefs.h. */
2635 _ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2641 main ()
2645 return 0;
2647 _ACEOF
2648 rm -f conftest.o conftest.obj
2649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650 (eval $ac_compile) 2>&5
2651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; then
2654 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2655 case $ac_file in
2656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2657 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2658 break;;
2659 esac
2660 done
2661 else
2662 echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.$ac_ext >&5
2665 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2666 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2667 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2668 See \`config.log' for more details." >&5
2669 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2670 See \`config.log' for more details." >&2;}
2671 { (exit 1); exit 1; }; }; }
2674 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2676 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2677 echo "${ECHO_T}$ac_cv_objext" >&6
2678 OBJEXT=$ac_cv_objext
2679 ac_objext=$OBJEXT
2680 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2681 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2682 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685 cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h. */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2693 main ()
2695 #ifndef __GNUC__
2696 choke me
2697 #endif
2700 return 0;
2702 _ACEOF
2703 rm -f conftest.$ac_objext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705 (eval $ac_compile) 2>conftest.er1
2706 ac_status=$?
2707 grep -v '^ *+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -z "$ac_c_werror_flag"
2713 || test ! -s conftest.err'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; } &&
2719 { ac_try='test -s conftest.$ac_objext'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 (eval $ac_try) 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; }; then
2725 ac_compiler_gnu=yes
2726 else
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2730 ac_compiler_gnu=no
2732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2736 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2737 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2738 GCC=`test $ac_compiler_gnu = yes && echo yes`
2739 ac_test_CFLAGS=${CFLAGS+set}
2740 ac_save_CFLAGS=$CFLAGS
2741 CFLAGS="-g"
2742 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2743 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2744 if test "${ac_cv_prog_cc_g+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747 cat >conftest.$ac_ext <<_ACEOF
2748 /* confdefs.h. */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2755 main ()
2759 return 0;
2761 _ACEOF
2762 rm -f conftest.$ac_objext
2763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764 (eval $ac_compile) 2>conftest.er1
2765 ac_status=$?
2766 grep -v '^ *+' conftest.er1 >conftest.err
2767 rm -f conftest.er1
2768 cat conftest.err >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } &&
2771 { ac_try='test -z "$ac_c_werror_flag"
2772 || test ! -s conftest.err'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; } &&
2778 { ac_try='test -s conftest.$ac_objext'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2784 ac_cv_prog_cc_g=yes
2785 else
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2789 ac_cv_prog_cc_g=no
2791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2794 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2795 if test "$ac_test_CFLAGS" = set; then
2796 CFLAGS=$ac_save_CFLAGS
2797 elif test $ac_cv_prog_cc_g = yes; then
2798 if test "$GCC" = yes; then
2799 CFLAGS="-g -O2"
2800 else
2801 CFLAGS="-g"
2803 else
2804 if test "$GCC" = yes; then
2805 CFLAGS="-O2"
2806 else
2807 CFLAGS=
2810 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2811 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2812 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2814 else
2815 ac_cv_prog_cc_stdc=no
2816 ac_save_CC=$CC
2817 cat >conftest.$ac_ext <<_ACEOF
2818 /* confdefs.h. */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2823 #include <stdarg.h>
2824 #include <stdio.h>
2825 #include <sys/types.h>
2826 #include <sys/stat.h>
2827 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2828 struct buf { int x; };
2829 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2830 static char *e (p, i)
2831 char **p;
2832 int i;
2834 return p[i];
2836 static char *f (char * (*g) (char **, int), char **p, ...)
2838 char *s;
2839 va_list v;
2840 va_start (v,p);
2841 s = g (p, va_arg (v,int));
2842 va_end (v);
2843 return s;
2846 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2847 function prototypes and stuff, but not '\xHH' hex character constants.
2848 These don't provoke an error unfortunately, instead are silently treated
2849 as 'x'. The following induces an error, until -std1 is added to get
2850 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2851 array size at least. It's necessary to write '\x00'==0 to get something
2852 that's true only with -std1. */
2853 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2855 int test (int i, double x);
2856 struct s1 {int (*f) (int a);};
2857 struct s2 {int (*f) (double a);};
2858 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2859 int argc;
2860 char **argv;
2862 main ()
2864 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2866 return 0;
2868 _ACEOF
2869 # Don't try gcc -ansi; that turns off useful extensions and
2870 # breaks some systems' header files.
2871 # AIX -qlanglvl=ansi
2872 # Ultrix and OSF/1 -std1
2873 # HP-UX 10.20 and later -Ae
2874 # HP-UX older versions -Aa -D_HPUX_SOURCE
2875 # SVR4 -Xc -D__EXTENSIONS__
2876 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2878 CC="$ac_save_CC $ac_arg"
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881 (eval $ac_compile) 2>conftest.er1
2882 ac_status=$?
2883 grep -v '^ *+' conftest.er1 >conftest.err
2884 rm -f conftest.er1
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } &&
2888 { ac_try='test -z "$ac_c_werror_flag"
2889 || test ! -s conftest.err'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 (eval $ac_try) 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; } &&
2895 { ac_try='test -s conftest.$ac_objext'
2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897 (eval $ac_try) 2>&5
2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; }; then
2901 ac_cv_prog_cc_stdc=$ac_arg
2902 break
2903 else
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2908 rm -f conftest.err conftest.$ac_objext
2909 done
2910 rm -f conftest.$ac_ext conftest.$ac_objext
2911 CC=$ac_save_CC
2915 case "x$ac_cv_prog_cc_stdc" in
2916 x|xno)
2917 echo "$as_me:$LINENO: result: none needed" >&5
2918 echo "${ECHO_T}none needed" >&6 ;;
2920 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2921 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2922 CC="$CC $ac_cv_prog_cc_stdc" ;;
2923 esac
2925 # Some people use a C++ compiler to compile C. Since we use `exit',
2926 # in C++ we need to declare it. In case someone uses the same compiler
2927 # for both compiling C and C++ we need to have the C++ compiler decide
2928 # the declaration of exit, since it's the most demanding environment.
2929 cat >conftest.$ac_ext <<_ACEOF
2930 #ifndef __cplusplus
2931 choke me
2932 #endif
2933 _ACEOF
2934 rm -f conftest.$ac_objext
2935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2936 (eval $ac_compile) 2>conftest.er1
2937 ac_status=$?
2938 grep -v '^ *+' conftest.er1 >conftest.err
2939 rm -f conftest.er1
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } &&
2943 { ac_try='test -z "$ac_c_werror_flag"
2944 || test ! -s conftest.err'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 (eval $ac_try) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; } &&
2950 { ac_try='test -s conftest.$ac_objext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2956 for ac_declaration in \
2957 '' \
2958 'extern "C" void std::exit (int) throw (); using std::exit;' \
2959 'extern "C" void std::exit (int); using std::exit;' \
2960 'extern "C" void exit (int) throw ();' \
2961 'extern "C" void exit (int);' \
2962 'void exit (int);'
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2970 $ac_declaration
2971 #include <stdlib.h>
2973 main ()
2975 exit (42);
2977 return 0;
2979 _ACEOF
2980 rm -f conftest.$ac_objext
2981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2982 (eval $ac_compile) 2>conftest.er1
2983 ac_status=$?
2984 grep -v '^ *+' conftest.er1 >conftest.err
2985 rm -f conftest.er1
2986 cat conftest.err >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } &&
2989 { ac_try='test -z "$ac_c_werror_flag"
2990 || test ! -s conftest.err'
2991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 (eval $ac_try) 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; } &&
2996 { ac_try='test -s conftest.$ac_objext'
2997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998 (eval $ac_try) 2>&5
2999 ac_status=$?
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; }; then
3003 else
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3007 continue
3009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3010 cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h. */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3016 $ac_declaration
3018 main ()
3020 exit (42);
3022 return 0;
3024 _ACEOF
3025 rm -f conftest.$ac_objext
3026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3027 (eval $ac_compile) 2>conftest.er1
3028 ac_status=$?
3029 grep -v '^ *+' conftest.er1 >conftest.err
3030 rm -f conftest.er1
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } &&
3034 { ac_try='test -z "$ac_c_werror_flag"
3035 || test ! -s conftest.err'
3036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037 (eval $ac_try) 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; } &&
3041 { ac_try='test -s conftest.$ac_objext'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043 (eval $ac_try) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3047 break
3048 else
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3054 done
3055 rm -f conftest*
3056 if test -n "$ac_declaration"; then
3057 echo '#ifdef __cplusplus' >>confdefs.h
3058 echo $ac_declaration >>confdefs.h
3059 echo '#endif' >>confdefs.h
3062 else
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3068 ac_ext=c
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073 DEPDIR="${am__leading_dot}deps"
3075 ac_config_commands="$ac_config_commands depfiles"
3078 am_make=${MAKE-make}
3079 cat > confinc << 'END'
3080 am__doit:
3081 @echo done
3082 .PHONY: am__doit
3084 # If we don't find an include directive, just comment out the code.
3085 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3086 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3087 am__include="#"
3088 am__quote=
3089 _am_result=none
3090 # First try GNU make style include.
3091 echo "include confinc" > confmf
3092 # We grep out `Entering directory' and `Leaving directory'
3093 # messages which can occur if `w' ends up in MAKEFLAGS.
3094 # In particular we don't look at `^make:' because GNU make might
3095 # be invoked under some other name (usually "gmake"), in which
3096 # case it prints its new name instead of `make'.
3097 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3098 am__include=include
3099 am__quote=
3100 _am_result=GNU
3102 # Now try BSD make style include.
3103 if test "$am__include" = "#"; then
3104 echo '.include "confinc"' > confmf
3105 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3106 am__include=.include
3107 am__quote="\""
3108 _am_result=BSD
3113 echo "$as_me:$LINENO: result: $_am_result" >&5
3114 echo "${ECHO_T}$_am_result" >&6
3115 rm -f confinc confmf
3117 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3118 if test "${enable_dependency_tracking+set}" = set; then
3119 enableval="$enable_dependency_tracking"
3122 if test "x$enable_dependency_tracking" != xno; then
3123 am_depcomp="$ac_aux_dir/depcomp"
3124 AMDEPBACKSLASH='\'
3128 if test "x$enable_dependency_tracking" != xno; then
3129 AMDEP_TRUE=
3130 AMDEP_FALSE='#'
3131 else
3132 AMDEP_TRUE='#'
3133 AMDEP_FALSE=
3139 depcc="$CC" am_compiler_list=
3141 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3142 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3143 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3147 # We make a subdir and do the tests there. Otherwise we can end up
3148 # making bogus files that we don't know about and never remove. For
3149 # instance it was reported that on HP-UX the gcc test will end up
3150 # making a dummy file named `D' -- because `-MD' means `put the output
3151 # in D'.
3152 mkdir conftest.dir
3153 # Copy depcomp to subdir because otherwise we won't find it if we're
3154 # using a relative directory.
3155 cp "$am_depcomp" conftest.dir
3156 cd conftest.dir
3157 # We will build objects and dependencies in a subdirectory because
3158 # it helps to detect inapplicable dependency modes. For instance
3159 # both Tru64's cc and ICC support -MD to output dependencies as a
3160 # side effect of compilation, but ICC will put the dependencies in
3161 # the current directory while Tru64 will put them in the object
3162 # directory.
3163 mkdir sub
3165 am_cv_CC_dependencies_compiler_type=none
3166 if test "$am_compiler_list" = ""; then
3167 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3169 for depmode in $am_compiler_list; do
3170 # Setup a source with many dependencies, because some compilers
3171 # like to wrap large dependency lists on column 80 (with \), and
3172 # we should not choose a depcomp mode which is confused by this.
3174 # We need to recreate these files for each test, as the compiler may
3175 # overwrite some of them when testing with obscure command lines.
3176 # This happens at least with the AIX C compiler.
3177 : > sub/conftest.c
3178 for i in 1 2 3 4 5 6; do
3179 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3180 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3181 # Solaris 8's {/usr,}/bin/sh.
3182 touch sub/conftst$i.h
3183 done
3184 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3186 case $depmode in
3187 nosideeffect)
3188 # after this tag, mechanisms are not by side-effect, so they'll
3189 # only be used when explicitly requested
3190 if test "x$enable_dependency_tracking" = xyes; then
3191 continue
3192 else
3193 break
3196 none) break ;;
3197 esac
3198 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3199 # mode. It turns out that the SunPro C++ compiler does not properly
3200 # handle `-M -o', and we need to detect this.
3201 if depmode=$depmode \
3202 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3203 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3204 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3205 >/dev/null 2>conftest.err &&
3206 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3207 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3208 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3209 # icc doesn't choke on unknown options, it will just issue warnings
3210 # or remarks (even with -Werror). So we grep stderr for any message
3211 # that says an option was ignored or not supported.
3212 # When given -MP, icc 7.0 and 7.1 complain thusly:
3213 # icc: Command line warning: ignoring option '-M'; no argument required
3214 # The diagnosis changed in icc 8.0:
3215 # icc: Command line remark: option '-MP' not supported
3216 if (grep 'ignoring option' conftest.err ||
3217 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3218 am_cv_CC_dependencies_compiler_type=$depmode
3219 break
3222 done
3224 cd ..
3225 rm -rf conftest.dir
3226 else
3227 am_cv_CC_dependencies_compiler_type=none
3231 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3232 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3233 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3238 test "x$enable_dependency_tracking" != xno \
3239 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3240 am__fastdepCC_TRUE=
3241 am__fastdepCC_FALSE='#'
3242 else
3243 am__fastdepCC_TRUE='#'
3244 am__fastdepCC_FALSE=
3248 ac_ext=cc
3249 ac_cpp='$CXXCPP $CPPFLAGS'
3250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3253 if test -n "$ac_tool_prefix"; then
3254 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3257 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3258 echo "$as_me:$LINENO: checking for $ac_word" >&5
3259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3260 if test "${ac_cv_prog_CXX+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263 if test -n "$CXX"; then
3264 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3269 IFS=$as_save_IFS
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 break 2
3277 done
3278 done
3282 CXX=$ac_cv_prog_CXX
3283 if test -n "$CXX"; then
3284 echo "$as_me:$LINENO: result: $CXX" >&5
3285 echo "${ECHO_T}$CXX" >&6
3286 else
3287 echo "$as_me:$LINENO: result: no" >&5
3288 echo "${ECHO_T}no" >&6
3291 test -n "$CXX" && break
3292 done
3294 if test -z "$CXX"; then
3295 ac_ct_CXX=$CXX
3296 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3298 # Extract the first word of "$ac_prog", so it can be a program name with args.
3299 set dummy $ac_prog; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305 if test -n "$ac_ct_CXX"; then
3306 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315 ac_cv_prog_ac_ct_CXX="$ac_prog"
3316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 break 2
3319 done
3320 done
3324 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3325 if test -n "$ac_ct_CXX"; then
3326 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3327 echo "${ECHO_T}$ac_ct_CXX" >&6
3328 else
3329 echo "$as_me:$LINENO: result: no" >&5
3330 echo "${ECHO_T}no" >&6
3333 test -n "$ac_ct_CXX" && break
3334 done
3335 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3337 CXX=$ac_ct_CXX
3341 # Provide some information about the compiler.
3342 echo "$as_me:$LINENO:" \
3343 "checking for C++ compiler version" >&5
3344 ac_compiler=`set X $ac_compile; echo $2`
3345 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3346 (eval $ac_compiler --version </dev/null >&5) 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }
3350 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3351 (eval $ac_compiler -v </dev/null >&5) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }
3355 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3356 (eval $ac_compiler -V </dev/null >&5) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }
3361 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3362 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3363 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 else
3366 cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h. */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3374 main ()
3376 #ifndef __GNUC__
3377 choke me
3378 #endif
3381 return 0;
3383 _ACEOF
3384 rm -f conftest.$ac_objext
3385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3386 (eval $ac_compile) 2>conftest.er1
3387 ac_status=$?
3388 grep -v '^ *+' conftest.er1 >conftest.err
3389 rm -f conftest.er1
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } &&
3393 { ac_try='test -z "$ac_cxx_werror_flag"
3394 || test ! -s conftest.err'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 (eval $ac_try) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; } &&
3400 { ac_try='test -s conftest.$ac_objext'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 (eval $ac_try) 2>&5
3403 ac_status=$?
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3406 ac_compiler_gnu=yes
3407 else
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3411 ac_compiler_gnu=no
3413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3414 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3417 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3418 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3419 GXX=`test $ac_compiler_gnu = yes && echo yes`
3420 ac_test_CXXFLAGS=${CXXFLAGS+set}
3421 ac_save_CXXFLAGS=$CXXFLAGS
3422 CXXFLAGS="-g"
3423 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3424 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3425 if test "${ac_cv_prog_cxx_g+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428 cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h. */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3436 main ()
3440 return 0;
3442 _ACEOF
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>conftest.er1
3446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -z "$ac_cxx_werror_flag"
3453 || test ! -s conftest.err'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 (eval $ac_try) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; } &&
3459 { ac_try='test -s conftest.$ac_objext'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 (eval $ac_try) 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; }; then
3465 ac_cv_prog_cxx_g=yes
3466 else
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 ac_cv_prog_cxx_g=no
3472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3474 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3475 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3476 if test "$ac_test_CXXFLAGS" = set; then
3477 CXXFLAGS=$ac_save_CXXFLAGS
3478 elif test $ac_cv_prog_cxx_g = yes; then
3479 if test "$GXX" = yes; then
3480 CXXFLAGS="-g -O2"
3481 else
3482 CXXFLAGS="-g"
3484 else
3485 if test "$GXX" = yes; then
3486 CXXFLAGS="-O2"
3487 else
3488 CXXFLAGS=
3491 for ac_declaration in \
3492 '' \
3493 'extern "C" void std::exit (int) throw (); using std::exit;' \
3494 'extern "C" void std::exit (int); using std::exit;' \
3495 'extern "C" void exit (int) throw ();' \
3496 'extern "C" void exit (int);' \
3497 'void exit (int);'
3499 cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h. */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3505 $ac_declaration
3506 #include <stdlib.h>
3508 main ()
3510 exit (42);
3512 return 0;
3514 _ACEOF
3515 rm -f conftest.$ac_objext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3517 (eval $ac_compile) 2>conftest.er1
3518 ac_status=$?
3519 grep -v '^ *+' conftest.er1 >conftest.err
3520 rm -f conftest.er1
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -z "$ac_cxx_werror_flag"
3525 || test ! -s conftest.err'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 (eval $ac_try) 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; } &&
3531 { ac_try='test -s conftest.$ac_objext'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 (eval $ac_try) 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3538 else
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3542 continue
3544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3545 cat >conftest.$ac_ext <<_ACEOF
3546 /* confdefs.h. */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3551 $ac_declaration
3553 main ()
3555 exit (42);
3557 return 0;
3559 _ACEOF
3560 rm -f conftest.$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562 (eval $ac_compile) 2>conftest.er1
3563 ac_status=$?
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } &&
3569 { ac_try='test -z "$ac_cxx_werror_flag"
3570 || test ! -s conftest.err'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; } &&
3576 { ac_try='test -s conftest.$ac_objext'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3582 break
3583 else
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3589 done
3590 rm -f conftest*
3591 if test -n "$ac_declaration"; then
3592 echo '#ifdef __cplusplus' >>confdefs.h
3593 echo $ac_declaration >>confdefs.h
3594 echo '#endif' >>confdefs.h
3597 ac_ext=c
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3603 depcc="$CXX" am_compiler_list=
3605 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3606 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3607 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3611 # We make a subdir and do the tests there. Otherwise we can end up
3612 # making bogus files that we don't know about and never remove. For
3613 # instance it was reported that on HP-UX the gcc test will end up
3614 # making a dummy file named `D' -- because `-MD' means `put the output
3615 # in D'.
3616 mkdir conftest.dir
3617 # Copy depcomp to subdir because otherwise we won't find it if we're
3618 # using a relative directory.
3619 cp "$am_depcomp" conftest.dir
3620 cd conftest.dir
3621 # We will build objects and dependencies in a subdirectory because
3622 # it helps to detect inapplicable dependency modes. For instance
3623 # both Tru64's cc and ICC support -MD to output dependencies as a
3624 # side effect of compilation, but ICC will put the dependencies in
3625 # the current directory while Tru64 will put them in the object
3626 # directory.
3627 mkdir sub
3629 am_cv_CXX_dependencies_compiler_type=none
3630 if test "$am_compiler_list" = ""; then
3631 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3633 for depmode in $am_compiler_list; do
3634 # Setup a source with many dependencies, because some compilers
3635 # like to wrap large dependency lists on column 80 (with \), and
3636 # we should not choose a depcomp mode which is confused by this.
3638 # We need to recreate these files for each test, as the compiler may
3639 # overwrite some of them when testing with obscure command lines.
3640 # This happens at least with the AIX C compiler.
3641 : > sub/conftest.c
3642 for i in 1 2 3 4 5 6; do
3643 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3644 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3645 # Solaris 8's {/usr,}/bin/sh.
3646 touch sub/conftst$i.h
3647 done
3648 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3650 case $depmode in
3651 nosideeffect)
3652 # after this tag, mechanisms are not by side-effect, so they'll
3653 # only be used when explicitly requested
3654 if test "x$enable_dependency_tracking" = xyes; then
3655 continue
3656 else
3657 break
3660 none) break ;;
3661 esac
3662 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3663 # mode. It turns out that the SunPro C++ compiler does not properly
3664 # handle `-M -o', and we need to detect this.
3665 if depmode=$depmode \
3666 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3667 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3668 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3669 >/dev/null 2>conftest.err &&
3670 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3671 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3672 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3673 # icc doesn't choke on unknown options, it will just issue warnings
3674 # or remarks (even with -Werror). So we grep stderr for any message
3675 # that says an option was ignored or not supported.
3676 # When given -MP, icc 7.0 and 7.1 complain thusly:
3677 # icc: Command line warning: ignoring option '-M'; no argument required
3678 # The diagnosis changed in icc 8.0:
3679 # icc: Command line remark: option '-MP' not supported
3680 if (grep 'ignoring option' conftest.err ||
3681 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3682 am_cv_CXX_dependencies_compiler_type=$depmode
3683 break
3686 done
3688 cd ..
3689 rm -rf conftest.dir
3690 else
3691 am_cv_CXX_dependencies_compiler_type=none
3695 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3696 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3697 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3702 test "x$enable_dependency_tracking" != xno \
3703 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3704 am__fastdepCXX_TRUE=
3705 am__fastdepCXX_FALSE='#'
3706 else
3707 am__fastdepCXX_TRUE='#'
3708 am__fastdepCXX_FALSE=
3714 if test "x$CC" != xcc; then
3715 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3716 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3717 else
3718 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3719 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3721 set dummy $CC; ac_cc=`echo $2 |
3722 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3723 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726 cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h. */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3734 main ()
3738 return 0;
3740 _ACEOF
3741 # Make sure it works both with $CC and with simple cc.
3742 # We do the test twice because some compilers refuse to overwrite an
3743 # existing .o file with -o, though they will create one.
3744 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3745 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746 (eval $ac_try) 2>&5
3747 ac_status=$?
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } &&
3750 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751 (eval $ac_try) 2>&5
3752 ac_status=$?
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); };
3755 then
3756 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3757 if test "x$CC" != xcc; then
3758 # Test first that cc exists at all.
3759 if { ac_try='cc -c conftest.$ac_ext >&5'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3766 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 (eval $ac_try) 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772 (eval $ac_try) 2>&5
3773 ac_status=$?
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); };
3776 then
3777 # cc works too.
3779 else
3780 # cc exists but doesn't like -o.
3781 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3785 else
3786 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3788 rm -f conftest*
3791 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3792 echo "$as_me:$LINENO: result: yes" >&5
3793 echo "${ECHO_T}yes" >&6
3794 else
3795 echo "$as_me:$LINENO: result: no" >&5
3796 echo "${ECHO_T}no" >&6
3798 cat >>confdefs.h <<\_ACEOF
3799 #define NO_MINUS_C_MINUS_O 1
3800 _ACEOF
3804 # FIXME: we rely on the cache variable name because
3805 # there is no other way.
3806 set dummy $CC
3807 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3808 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3809 # Losing compiler, so override with the script.
3810 # FIXME: It is wrong to rewrite CC.
3811 # But if we don't then we get into trouble of one sort or another.
3812 # A longer-term fix would be to have automake use am__CC in this case,
3813 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3814 CC="$am_aux_dir/compile $CC"
3821 # Newer automakes demand CCAS and CCASFLAGS.
3822 : ${CCAS='$(CC)'}
3823 : ${CCASFLAGS='$(CFLAGS)'}
3827 if test -n "$ac_tool_prefix"; then
3828 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3829 set dummy ${ac_tool_prefix}as; ac_word=$2
3830 echo "$as_me:$LINENO: checking for $ac_word" >&5
3831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3832 if test "${ac_cv_prog_AS+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835 if test -n "$AS"; then
3836 ac_cv_prog_AS="$AS" # Let the user override the test.
3837 else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3845 ac_cv_prog_AS="${ac_tool_prefix}as"
3846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 break 2
3849 done
3850 done
3854 AS=$ac_cv_prog_AS
3855 if test -n "$AS"; then
3856 echo "$as_me:$LINENO: result: $AS" >&5
3857 echo "${ECHO_T}$AS" >&6
3858 else
3859 echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3864 if test -z "$ac_cv_prog_AS"; then
3865 ac_ct_AS=$AS
3866 # Extract the first word of "as", so it can be a program name with args.
3867 set dummy as; ac_word=$2
3868 echo "$as_me:$LINENO: checking for $ac_word" >&5
3869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3870 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873 if test -n "$ac_ct_AS"; then
3874 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3875 else
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3883 ac_cv_prog_ac_ct_AS="as"
3884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3885 break 2
3887 done
3888 done
3892 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3893 if test -n "$ac_ct_AS"; then
3894 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3895 echo "${ECHO_T}$ac_ct_AS" >&6
3896 else
3897 echo "$as_me:$LINENO: result: no" >&5
3898 echo "${ECHO_T}no" >&6
3901 AS=$ac_ct_AS
3902 else
3903 AS="$ac_cv_prog_AS"
3906 if test -n "$ac_tool_prefix"; then
3907 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3908 set dummy ${ac_tool_prefix}ar; ac_word=$2
3909 echo "$as_me:$LINENO: checking for $ac_word" >&5
3910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3911 if test "${ac_cv_prog_AR+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914 if test -n "$AR"; then
3915 ac_cv_prog_AR="$AR" # Let the user override the test.
3916 else
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924 ac_cv_prog_AR="${ac_tool_prefix}ar"
3925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926 break 2
3928 done
3929 done
3933 AR=$ac_cv_prog_AR
3934 if test -n "$AR"; then
3935 echo "$as_me:$LINENO: result: $AR" >&5
3936 echo "${ECHO_T}$AR" >&6
3937 else
3938 echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6
3943 if test -z "$ac_cv_prog_AR"; then
3944 ac_ct_AR=$AR
3945 # Extract the first word of "ar", so it can be a program name with args.
3946 set dummy ar; ac_word=$2
3947 echo "$as_me:$LINENO: checking for $ac_word" >&5
3948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952 if test -n "$ac_ct_AR"; then
3953 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962 ac_cv_prog_ac_ct_AR="ar"
3963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 break 2
3966 done
3967 done
3971 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3972 if test -n "$ac_ct_AR"; then
3973 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3974 echo "${ECHO_T}$ac_ct_AR" >&6
3975 else
3976 echo "$as_me:$LINENO: result: no" >&5
3977 echo "${ECHO_T}no" >&6
3980 AR=$ac_ct_AR
3981 else
3982 AR="$ac_cv_prog_AR"
3985 if test -n "$ac_tool_prefix"; then
3986 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3987 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3988 echo "$as_me:$LINENO: checking for $ac_word" >&5
3989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3990 if test "${ac_cv_prog_RANLIB+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993 if test -n "$RANLIB"; then
3994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3995 else
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4003 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 break 2
4007 done
4008 done
4012 RANLIB=$ac_cv_prog_RANLIB
4013 if test -n "$RANLIB"; then
4014 echo "$as_me:$LINENO: result: $RANLIB" >&5
4015 echo "${ECHO_T}$RANLIB" >&6
4016 else
4017 echo "$as_me:$LINENO: result: no" >&5
4018 echo "${ECHO_T}no" >&6
4022 if test -z "$ac_cv_prog_RANLIB"; then
4023 ac_ct_RANLIB=$RANLIB
4024 # Extract the first word of "ranlib", so it can be a program name with args.
4025 set dummy ranlib; ac_word=$2
4026 echo "$as_me:$LINENO: checking for $ac_word" >&5
4027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4028 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031 if test -n "$ac_ct_RANLIB"; then
4032 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4033 else
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4041 ac_cv_prog_ac_ct_RANLIB="ranlib"
4042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 break 2
4045 done
4046 done
4048 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4051 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4052 if test -n "$ac_ct_RANLIB"; then
4053 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4054 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4055 else
4056 echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6
4060 RANLIB=$ac_ct_RANLIB
4061 else
4062 RANLIB="$ac_cv_prog_RANLIB"
4066 # Find a good install program. We prefer a C program (faster),
4067 # so one script is as good as another. But avoid the broken or
4068 # incompatible versions:
4069 # SysV /etc/install, /usr/sbin/install
4070 # SunOS /usr/etc/install
4071 # IRIX /sbin/install
4072 # AIX /bin/install
4073 # AmigaOS /C/install, which installs bootblocks on floppy discs
4074 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4075 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4076 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4077 # OS/2's system install, which has a completely different semantic
4078 # ./install, which can be erroneously created by make from ./install.sh.
4079 # Reject install programs that cannot install multiple files.
4080 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4081 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4082 if test -z "$INSTALL"; then
4083 if test "${ac_cv_path_install+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 # Account for people who put trailing slashes in PATH elements.
4092 case $as_dir/ in
4093 ./ | .// | /cC/* | \
4094 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4095 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4096 /usr/ucb/* ) ;;
4098 # OSF1 and SCO ODT 3.0 have their own names for install.
4099 # Don't use installbsd from OSF since it installs stuff as root
4100 # by default.
4101 for ac_prog in ginstall scoinst install; do
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4104 if test $ac_prog = install &&
4105 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4106 # AIX install. It has an incompatible calling convention.
4108 elif test $ac_prog = install &&
4109 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4110 # program-specific install script used by HP pwplus--don't use.
4112 else
4113 rm -rf conftest.one conftest.two conftest.dir
4114 echo one > conftest.one
4115 echo two > conftest.two
4116 mkdir conftest.dir
4117 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4118 test -s conftest.one && test -s conftest.two &&
4119 test -s conftest.dir/conftest.one &&
4120 test -s conftest.dir/conftest.two
4121 then
4122 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4123 break 3
4127 done
4128 done
4130 esac
4131 done
4133 rm -rf conftest.one conftest.two conftest.dir
4136 if test "${ac_cv_path_install+set}" = set; then
4137 INSTALL=$ac_cv_path_install
4138 else
4139 # As a last resort, use the slow shell script. Don't cache a
4140 # value for INSTALL within a source directory, because that will
4141 # break other packages using the cache if that directory is
4142 # removed, or if the value is a relative name.
4143 INSTALL=$ac_install_sh
4146 echo "$as_me:$LINENO: result: $INSTALL" >&5
4147 echo "${ECHO_T}$INSTALL" >&6
4149 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4150 # It thinks the first close brace ends the variable substitution.
4151 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4153 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4155 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4158 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4159 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4160 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4161 if test "${enable_maintainer_mode+set}" = set; then
4162 enableval="$enable_maintainer_mode"
4163 USE_MAINTAINER_MODE=$enableval
4164 else
4165 USE_MAINTAINER_MODE=no
4167 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4168 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4171 if test $USE_MAINTAINER_MODE = yes; then
4172 MAINTAINER_MODE_TRUE=
4173 MAINTAINER_MODE_FALSE='#'
4174 else
4175 MAINTAINER_MODE_TRUE='#'
4176 MAINTAINER_MODE_FALSE=
4179 MAINT=$MAINTAINER_MODE_TRUE
4183 . ${srcdir}/configure.host
4185 case ${gc_basedir} in
4186 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
4187 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
4188 esac
4190 gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
4191 case "${host}" in
4192 *-*-cygwin32*)
4193 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
4195 esac
4198 GC_CFLAGS=${gc_cflags}
4201 case `pwd` in
4202 *\ * | *\ *)
4203 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4204 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4205 esac
4209 macro_version='2.2.6'
4210 macro_revision='1.3012'
4224 ltmain="$ac_aux_dir/ltmain.sh"
4226 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4227 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4228 if test "${lt_cv_path_SED+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231 # Loop through the user's path and test for sed and gsed.
4232 # Then use that list of sed's as ones to test for truncation.
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for lt_ac_prog in sed gsed; do
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4241 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4243 done
4244 done
4245 done
4246 IFS=$as_save_IFS
4247 lt_ac_max=0
4248 lt_ac_count=0
4249 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4250 # along with /bin/sed that truncates output.
4251 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4252 test ! -f $lt_ac_sed && continue
4253 cat /dev/null > conftest.in
4254 lt_ac_count=0
4255 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4256 # Check for GNU sed and select it if it is found.
4257 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4258 lt_cv_path_SED=$lt_ac_sed
4259 break
4261 while true; do
4262 cat conftest.in conftest.in >conftest.tmp
4263 mv conftest.tmp conftest.in
4264 cp conftest.in conftest.nl
4265 echo >>conftest.nl
4266 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4267 cmp -s conftest.out conftest.nl || break
4268 # 10000 chars as input seems more than enough
4269 test $lt_ac_count -gt 10 && break
4270 lt_ac_count=`expr $lt_ac_count + 1`
4271 if test $lt_ac_count -gt $lt_ac_max; then
4272 lt_ac_max=$lt_ac_count
4273 lt_cv_path_SED=$lt_ac_sed
4275 done
4276 done
4280 SED=$lt_cv_path_SED
4282 echo "$as_me:$LINENO: result: $SED" >&5
4283 echo "${ECHO_T}$SED" >&6
4285 test -z "$SED" && SED=sed
4286 Xsed="$SED -e 1s/^X//"
4298 echo "$as_me:$LINENO: checking for egrep" >&5
4299 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4300 if test "${ac_cv_prog_egrep+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4304 then ac_cv_prog_egrep='grep -E'
4305 else ac_cv_prog_egrep='egrep'
4308 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4309 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4310 EGREP=$ac_cv_prog_egrep
4313 echo "$as_me:$LINENO: checking for fgrep" >&5
4314 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4315 if test "${ac_cv_prog_fgrep+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4319 then ac_cv_prog_fgrep='grep -F'
4320 else ac_cv_prog_fgrep='fgrep'
4323 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4324 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4325 FGREP=$ac_cv_prog_fgrep
4328 test -z "$GREP" && GREP=grep
4348 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4349 if test "${with_gnu_ld+set}" = set; then
4350 withval="$with_gnu_ld"
4351 test "$withval" = no || with_gnu_ld=yes
4352 else
4353 with_gnu_ld=no
4355 ac_prog=ld
4356 if test "$GCC" = yes; then
4357 # Check if gcc -print-prog-name=ld gives a path.
4358 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4359 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4360 case $host in
4361 *-*-mingw*)
4362 # gcc leaves a trailing carriage return which upsets mingw
4363 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4365 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4366 esac
4367 case $ac_prog in
4368 # Accept absolute paths.
4369 [\\/]* | ?:[\\/]*)
4370 re_direlt='/[^/][^/]*/\.\./'
4371 # Canonicalize the pathname of ld
4372 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4373 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4374 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4375 done
4376 test -z "$LD" && LD="$ac_prog"
4379 # If it fails, then pretend we aren't using GCC.
4380 ac_prog=ld
4383 # If it is relative, then search for the first ld in PATH.
4384 with_gnu_ld=unknown
4386 esac
4387 elif test "$with_gnu_ld" = yes; then
4388 echo "$as_me:$LINENO: checking for GNU ld" >&5
4389 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4390 else
4391 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4392 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4394 if test "${lt_cv_path_LD+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397 if test -z "$LD"; then
4398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4399 for ac_dir in $PATH; do
4400 IFS="$lt_save_ifs"
4401 test -z "$ac_dir" && ac_dir=.
4402 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4403 lt_cv_path_LD="$ac_dir/$ac_prog"
4404 # Check to see if the program is GNU ld. I'd rather use --version,
4405 # but apparently some variants of GNU ld only accept -v.
4406 # Break only if it was the GNU/non-GNU ld that we prefer.
4407 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4408 *GNU* | *'with BFD'*)
4409 test "$with_gnu_ld" != no && break
4412 test "$with_gnu_ld" != yes && break
4414 esac
4416 done
4417 IFS="$lt_save_ifs"
4418 else
4419 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4423 LD="$lt_cv_path_LD"
4424 if test -n "$LD"; then
4425 echo "$as_me:$LINENO: result: $LD" >&5
4426 echo "${ECHO_T}$LD" >&6
4427 else
4428 echo "$as_me:$LINENO: result: no" >&5
4429 echo "${ECHO_T}no" >&6
4431 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4432 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4433 { (exit 1); exit 1; }; }
4434 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4435 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4436 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4440 case `$LD -v 2>&1 </dev/null` in
4441 *GNU* | *'with BFD'*)
4442 lt_cv_prog_gnu_ld=yes
4445 lt_cv_prog_gnu_ld=no
4447 esac
4449 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4450 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4451 with_gnu_ld=$lt_cv_prog_gnu_ld
4461 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4462 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4463 if test "${lt_cv_path_NM+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466 if test -n "$NM"; then
4467 # Let the user override the test.
4468 lt_cv_path_NM="$NM"
4469 else
4470 lt_nm_to_check="${ac_tool_prefix}nm"
4471 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4472 lt_nm_to_check="$lt_nm_to_check nm"
4474 for lt_tmp_nm in $lt_nm_to_check; do
4475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4476 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4477 IFS="$lt_save_ifs"
4478 test -z "$ac_dir" && ac_dir=.
4479 tmp_nm="$ac_dir/$lt_tmp_nm"
4480 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4481 # Check to see if the nm accepts a BSD-compat flag.
4482 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4483 # nm: unknown option "B" ignored
4484 # Tru64's nm complains that /dev/null is an invalid object file
4485 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4486 */dev/null* | *'Invalid file or object type'*)
4487 lt_cv_path_NM="$tmp_nm -B"
4488 break
4491 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4492 */dev/null*)
4493 lt_cv_path_NM="$tmp_nm -p"
4494 break
4497 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4498 continue # so that we can try to find one that supports BSD flags
4500 esac
4502 esac
4504 done
4505 IFS="$lt_save_ifs"
4506 done
4507 : ${lt_cv_path_NM=no}
4510 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4511 echo "${ECHO_T}$lt_cv_path_NM" >&6
4512 if test "$lt_cv_path_NM" != "no"; then
4513 NM="$lt_cv_path_NM"
4514 else
4515 # Didn't find any BSD compatible name lister, look for dumpbin.
4516 if test -n "$ac_tool_prefix"; then
4517 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4521 echo "$as_me:$LINENO: checking for $ac_word" >&5
4522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4523 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526 if test -n "$DUMPBIN"; then
4527 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4528 else
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4536 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 break 2
4540 done
4541 done
4545 DUMPBIN=$ac_cv_prog_DUMPBIN
4546 if test -n "$DUMPBIN"; then
4547 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4548 echo "${ECHO_T}$DUMPBIN" >&6
4549 else
4550 echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6
4554 test -n "$DUMPBIN" && break
4555 done
4557 if test -z "$DUMPBIN"; then
4558 ac_ct_DUMPBIN=$DUMPBIN
4559 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4561 # Extract the first word of "$ac_prog", so it can be a program name with args.
4562 set dummy $ac_prog; ac_word=$2
4563 echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568 if test -n "$ac_ct_DUMPBIN"; then
4569 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 break 2
4582 done
4583 done
4587 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4588 if test -n "$ac_ct_DUMPBIN"; then
4589 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4590 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4591 else
4592 echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4596 test -n "$ac_ct_DUMPBIN" && break
4597 done
4598 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4600 DUMPBIN=$ac_ct_DUMPBIN
4604 if test "$DUMPBIN" != ":"; then
4605 NM="$DUMPBIN"
4608 test -z "$NM" && NM=nm
4615 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4616 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4617 if test "${lt_cv_nm_interface+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 else
4620 lt_cv_nm_interface="BSD nm"
4621 echo "int some_variable = 0;" > conftest.$ac_ext
4622 (eval echo "\"\$as_me:4622: $ac_compile\"" >&5)
4623 (eval "$ac_compile" 2>conftest.err)
4624 cat conftest.err >&5
4625 (eval echo "\"\$as_me:4625: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4626 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4627 cat conftest.err >&5
4628 (eval echo "\"\$as_me:4628: output\"" >&5)
4629 cat conftest.out >&5
4630 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4631 lt_cv_nm_interface="MS dumpbin"
4633 rm -f conftest*
4635 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4636 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4638 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4639 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4640 LN_S=$as_ln_s
4641 if test "$LN_S" = "ln -s"; then
4642 echo "$as_me:$LINENO: result: yes" >&5
4643 echo "${ECHO_T}yes" >&6
4644 else
4645 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4646 echo "${ECHO_T}no, using $LN_S" >&6
4649 # find the maximum length of command line arguments
4650 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4651 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4652 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4656 teststring="ABCD"
4658 case $build_os in
4659 msdosdjgpp*)
4660 # On DJGPP, this test can blow up pretty badly due to problems in libc
4661 # (any single argument exceeding 2000 bytes causes a buffer overrun
4662 # during glob expansion). Even if it were fixed, the result of this
4663 # check would be larger than it should be.
4664 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4667 gnu*)
4668 # Under GNU Hurd, this test is not required because there is
4669 # no limit to the length of command line arguments.
4670 # Libtool will interpret -1 as no limit whatsoever
4671 lt_cv_sys_max_cmd_len=-1;
4674 cygwin* | mingw* | cegcc*)
4675 # On Win9x/ME, this test blows up -- it succeeds, but takes
4676 # about 5 minutes as the teststring grows exponentially.
4677 # Worse, since 9x/ME are not pre-emptively multitasking,
4678 # you end up with a "frozen" computer, even though with patience
4679 # the test eventually succeeds (with a max line length of 256k).
4680 # Instead, let's just punt: use the minimum linelength reported by
4681 # all of the supported platforms: 8192 (on NT/2K/XP).
4682 lt_cv_sys_max_cmd_len=8192;
4685 amigaos*)
4686 # On AmigaOS with pdksh, this test takes hours, literally.
4687 # So we just punt and use a minimum line length of 8192.
4688 lt_cv_sys_max_cmd_len=8192;
4691 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4692 # This has been around since 386BSD, at least. Likely further.
4693 if test -x /sbin/sysctl; then
4694 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4695 elif test -x /usr/sbin/sysctl; then
4696 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4697 else
4698 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4700 # And add a safety zone
4701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4705 interix*)
4706 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4707 lt_cv_sys_max_cmd_len=196608
4710 osf*)
4711 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4712 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4713 # nice to cause kernel panics so lets avoid the loop below.
4714 # First set a reasonable default.
4715 lt_cv_sys_max_cmd_len=16384
4717 if test -x /sbin/sysconfig; then
4718 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4719 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4720 esac
4723 sco3.2v5*)
4724 lt_cv_sys_max_cmd_len=102400
4726 sysv5* | sco5v6* | sysv4.2uw2*)
4727 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4728 if test -n "$kargmax"; then
4729 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4730 else
4731 lt_cv_sys_max_cmd_len=32768
4735 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4736 if test -n "$lt_cv_sys_max_cmd_len"; then
4737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4739 else
4740 # Make teststring a little bigger before we do anything with it.
4741 # a 1K string should be a reasonable start.
4742 for i in 1 2 3 4 5 6 7 8 ; do
4743 teststring=$teststring$teststring
4744 done
4745 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4746 # If test is not a shell built-in, we'll probably end up computing a
4747 # maximum length that is only half of the actual maximum length, but
4748 # we can't tell.
4749 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4750 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4751 test $i != 17 # 1/2 MB should be enough
4753 i=`expr $i + 1`
4754 teststring=$teststring$teststring
4755 done
4756 # Only check the string length outside the loop.
4757 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4758 teststring=
4759 # Add a significant safety factor because C++ compilers can tack on
4760 # massive amounts of additional arguments before passing them to the
4761 # linker. It appears as though 1/2 is a usable value.
4762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4765 esac
4769 if test -n $lt_cv_sys_max_cmd_len ; then
4770 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4771 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4772 else
4773 echo "$as_me:$LINENO: result: none" >&5
4774 echo "${ECHO_T}none" >&6
4776 max_cmd_len=$lt_cv_sys_max_cmd_len
4783 : ${CP="cp -f"}
4784 : ${MV="mv -f"}
4785 : ${RM="rm -f"}
4787 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4788 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4789 # Try some XSI features
4790 xsi_shell=no
4791 ( _lt_dummy="a/b/c"
4792 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4793 = c,a/b,, \
4794 && eval 'test $(( 1 + 1 )) -eq 2 \
4795 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4796 && xsi_shell=yes
4797 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4798 echo "${ECHO_T}$xsi_shell" >&6
4801 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4802 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4803 lt_shell_append=no
4804 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4805 >/dev/null 2>&1 \
4806 && lt_shell_append=yes
4807 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4808 echo "${ECHO_T}$lt_shell_append" >&6
4811 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4812 lt_unset=unset
4813 else
4814 lt_unset=false
4821 # test EBCDIC or ASCII
4822 case `echo X|tr X '\101'` in
4823 A) # ASCII based system
4824 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4825 lt_SP2NL='tr \040 \012'
4826 lt_NL2SP='tr \015\012 \040\040'
4828 *) # EBCDIC based system
4829 lt_SP2NL='tr \100 \n'
4830 lt_NL2SP='tr \r\n \100\100'
4832 esac
4842 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4843 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4844 if test "${lt_cv_ld_reload_flag+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847 lt_cv_ld_reload_flag='-r'
4849 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4850 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4851 reload_flag=$lt_cv_ld_reload_flag
4852 case $reload_flag in
4853 "" | " "*) ;;
4854 *) reload_flag=" $reload_flag" ;;
4855 esac
4856 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4857 case $host_os in
4858 darwin*)
4859 if test "$GCC" = yes; then
4860 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4861 else
4862 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4865 esac
4875 if test -n "$ac_tool_prefix"; then
4876 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4877 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4878 echo "$as_me:$LINENO: checking for $ac_word" >&5
4879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4880 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883 if test -n "$OBJDUMP"; then
4884 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4885 else
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 break 2
4897 done
4898 done
4902 OBJDUMP=$ac_cv_prog_OBJDUMP
4903 if test -n "$OBJDUMP"; then
4904 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4905 echo "${ECHO_T}$OBJDUMP" >&6
4906 else
4907 echo "$as_me:$LINENO: result: no" >&5
4908 echo "${ECHO_T}no" >&6
4912 if test -z "$ac_cv_prog_OBJDUMP"; then
4913 ac_ct_OBJDUMP=$OBJDUMP
4914 # Extract the first word of "objdump", so it can be a program name with args.
4915 set dummy objdump; ac_word=$2
4916 echo "$as_me:$LINENO: checking for $ac_word" >&5
4917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4918 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 else
4921 if test -n "$ac_ct_OBJDUMP"; then
4922 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4923 else
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4931 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 break 2
4935 done
4936 done
4938 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4941 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4942 if test -n "$ac_ct_OBJDUMP"; then
4943 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4944 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4945 else
4946 echo "$as_me:$LINENO: result: no" >&5
4947 echo "${ECHO_T}no" >&6
4950 OBJDUMP=$ac_ct_OBJDUMP
4951 else
4952 OBJDUMP="$ac_cv_prog_OBJDUMP"
4955 test -z "$OBJDUMP" && OBJDUMP=objdump
4965 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4966 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4967 if test "${lt_cv_deplibs_check_method+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 else
4970 lt_cv_file_magic_cmd='$MAGIC_CMD'
4971 lt_cv_file_magic_test_file=
4972 lt_cv_deplibs_check_method='unknown'
4973 # Need to set the preceding variable on all platforms that support
4974 # interlibrary dependencies.
4975 # 'none' -- dependencies not supported.
4976 # `unknown' -- same as none, but documents that we really don't know.
4977 # 'pass_all' -- all dependencies passed with no checks.
4978 # 'test_compile' -- check by making test program.
4979 # 'file_magic [[regex]]' -- check by looking for files in library path
4980 # which responds to the $file_magic_cmd with a given extended regex.
4981 # If you have `file' or equivalent on your system and you're not sure
4982 # whether `pass_all' will *always* work, you probably want this one.
4984 case $host_os in
4985 aix[4-9]*)
4986 lt_cv_deplibs_check_method=pass_all
4989 beos*)
4990 lt_cv_deplibs_check_method=pass_all
4993 bsdi[45]*)
4994 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4995 lt_cv_file_magic_cmd='/usr/bin/file -L'
4996 lt_cv_file_magic_test_file=/shlib/libc.so
4999 cygwin*)
5000 # func_win32_libid is a shell function defined in ltmain.sh
5001 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5002 lt_cv_file_magic_cmd='func_win32_libid'
5005 mingw* | pw32*)
5006 # Base MSYS/MinGW do not provide the 'file' command needed by
5007 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5008 # unless we find 'file', for example because we are cross-compiling.
5009 if ( file / ) >/dev/null 2>&1; then
5010 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5011 lt_cv_file_magic_cmd='func_win32_libid'
5012 else
5013 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5014 lt_cv_file_magic_cmd='$OBJDUMP -f'
5018 cegcc)
5019 # use the weaker test based on 'objdump'. See mingw*.
5020 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5021 lt_cv_file_magic_cmd='$OBJDUMP -f'
5024 darwin* | rhapsody*)
5025 lt_cv_deplibs_check_method=pass_all
5028 freebsd* | dragonfly*)
5029 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5030 case $host_cpu in
5031 i*86 )
5032 # Not sure whether the presence of OpenBSD here was a mistake.
5033 # Let's accept both of them until this is cleared up.
5034 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5035 lt_cv_file_magic_cmd=/usr/bin/file
5036 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5038 esac
5039 else
5040 lt_cv_deplibs_check_method=pass_all
5044 gnu*)
5045 lt_cv_deplibs_check_method=pass_all
5048 hpux10.20* | hpux11*)
5049 lt_cv_file_magic_cmd=/usr/bin/file
5050 case $host_cpu in
5051 ia64*)
5052 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5053 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5055 hppa*64*)
5056 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]'
5057 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5060 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5061 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5063 esac
5066 interix[3-9]*)
5067 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5068 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5071 irix5* | irix6* | nonstopux*)
5072 case $LD in
5073 *-32|*"-32 ") libmagic=32-bit;;
5074 *-n32|*"-n32 ") libmagic=N32;;
5075 *-64|*"-64 ") libmagic=64-bit;;
5076 *) libmagic=never-match;;
5077 esac
5078 lt_cv_deplibs_check_method=pass_all
5081 # This must be Linux ELF.
5082 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5083 lt_cv_deplibs_check_method=pass_all
5086 netbsd*)
5087 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5089 else
5090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5094 newos6*)
5095 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5096 lt_cv_file_magic_cmd=/usr/bin/file
5097 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5100 *nto* | *qnx*)
5101 lt_cv_deplibs_check_method=pass_all
5104 openbsd*)
5105 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5107 else
5108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5112 osf3* | osf4* | osf5*)
5113 lt_cv_deplibs_check_method=pass_all
5116 rdos*)
5117 lt_cv_deplibs_check_method=pass_all
5120 solaris*)
5121 lt_cv_deplibs_check_method=pass_all
5124 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5125 lt_cv_deplibs_check_method=pass_all
5128 sysv4 | sysv4.3*)
5129 case $host_vendor in
5130 motorola)
5131 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]'
5132 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5134 ncr)
5135 lt_cv_deplibs_check_method=pass_all
5137 sequent)
5138 lt_cv_file_magic_cmd='/bin/file'
5139 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5141 sni)
5142 lt_cv_file_magic_cmd='/bin/file'
5143 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5144 lt_cv_file_magic_test_file=/lib/libc.so
5146 siemens)
5147 lt_cv_deplibs_check_method=pass_all
5150 lt_cv_deplibs_check_method=pass_all
5152 esac
5155 tpf*)
5156 lt_cv_deplibs_check_method=pass_all
5158 esac
5161 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5162 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5163 file_magic_cmd=$lt_cv_file_magic_cmd
5164 deplibs_check_method=$lt_cv_deplibs_check_method
5165 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5178 if test -n "$ac_tool_prefix"; then
5179 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5180 set dummy ${ac_tool_prefix}ar; ac_word=$2
5181 echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183 if test "${ac_cv_prog_AR+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186 if test -n "$AR"; then
5187 ac_cv_prog_AR="$AR" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_AR="${ac_tool_prefix}ar"
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5200 done
5201 done
5205 AR=$ac_cv_prog_AR
5206 if test -n "$AR"; then
5207 echo "$as_me:$LINENO: result: $AR" >&5
5208 echo "${ECHO_T}$AR" >&6
5209 else
5210 echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6
5215 if test -z "$ac_cv_prog_AR"; then
5216 ac_ct_AR=$AR
5217 # Extract the first word of "ar", so it can be a program name with args.
5218 set dummy ar; ac_word=$2
5219 echo "$as_me:$LINENO: checking for $ac_word" >&5
5220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5221 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224 if test -n "$ac_ct_AR"; then
5225 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_prog_ac_ct_AR="ar"
5235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5238 done
5239 done
5241 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5244 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5245 if test -n "$ac_ct_AR"; then
5246 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5247 echo "${ECHO_T}$ac_ct_AR" >&6
5248 else
5249 echo "$as_me:$LINENO: result: no" >&5
5250 echo "${ECHO_T}no" >&6
5253 AR=$ac_ct_AR
5254 else
5255 AR="$ac_cv_prog_AR"
5258 test -z "$AR" && AR=ar
5259 test -z "$AR_FLAGS" && AR_FLAGS=cru
5271 if test -n "$ac_tool_prefix"; then
5272 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5273 set dummy ${ac_tool_prefix}strip; ac_word=$2
5274 echo "$as_me:$LINENO: checking for $ac_word" >&5
5275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5276 if test "${ac_cv_prog_STRIP+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279 if test -n "$STRIP"; then
5280 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5281 else
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5289 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 break 2
5293 done
5294 done
5298 STRIP=$ac_cv_prog_STRIP
5299 if test -n "$STRIP"; then
5300 echo "$as_me:$LINENO: result: $STRIP" >&5
5301 echo "${ECHO_T}$STRIP" >&6
5302 else
5303 echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6
5308 if test -z "$ac_cv_prog_STRIP"; then
5309 ac_ct_STRIP=$STRIP
5310 # Extract the first word of "strip", so it can be a program name with args.
5311 set dummy strip; ac_word=$2
5312 echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5314 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317 if test -n "$ac_ct_STRIP"; then
5318 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327 ac_cv_prog_ac_ct_STRIP="strip"
5328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5331 done
5332 done
5334 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5337 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5338 if test -n "$ac_ct_STRIP"; then
5339 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5340 echo "${ECHO_T}$ac_ct_STRIP" >&6
5341 else
5342 echo "$as_me:$LINENO: result: no" >&5
5343 echo "${ECHO_T}no" >&6
5346 STRIP=$ac_ct_STRIP
5347 else
5348 STRIP="$ac_cv_prog_STRIP"
5351 test -z "$STRIP" && STRIP=:
5358 if test -n "$ac_tool_prefix"; then
5359 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5360 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5361 echo "$as_me:$LINENO: checking for $ac_word" >&5
5362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5363 if test "${ac_cv_prog_RANLIB+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366 if test -n "$RANLIB"; then
5367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5368 else
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH
5372 IFS=$as_save_IFS
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 break 2
5380 done
5381 done
5385 RANLIB=$ac_cv_prog_RANLIB
5386 if test -n "$RANLIB"; then
5387 echo "$as_me:$LINENO: result: $RANLIB" >&5
5388 echo "${ECHO_T}$RANLIB" >&6
5389 else
5390 echo "$as_me:$LINENO: result: no" >&5
5391 echo "${ECHO_T}no" >&6
5395 if test -z "$ac_cv_prog_RANLIB"; then
5396 ac_ct_RANLIB=$RANLIB
5397 # Extract the first word of "ranlib", so it can be a program name with args.
5398 set dummy ranlib; ac_word=$2
5399 echo "$as_me:$LINENO: checking for $ac_word" >&5
5400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5401 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404 if test -n "$ac_ct_RANLIB"; then
5405 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5414 ac_cv_prog_ac_ct_RANLIB="ranlib"
5415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5418 done
5419 done
5421 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5424 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5425 if test -n "$ac_ct_RANLIB"; then
5426 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5427 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5428 else
5429 echo "$as_me:$LINENO: result: no" >&5
5430 echo "${ECHO_T}no" >&6
5433 RANLIB=$ac_ct_RANLIB
5434 else
5435 RANLIB="$ac_cv_prog_RANLIB"
5438 test -z "$RANLIB" && RANLIB=:
5445 # Determine commands to create old-style static archives.
5446 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5447 old_postinstall_cmds='chmod 644 $oldlib'
5448 old_postuninstall_cmds=
5450 if test -n "$RANLIB"; then
5451 case $host_os in
5452 openbsd*)
5453 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5456 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5458 esac
5459 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5495 # If no C compiler was specified, use CC.
5496 LTCC=${LTCC-"$CC"}
5498 # If no C compiler flags were specified, use CFLAGS.
5499 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5501 # Allow CC to be a program name with arguments.
5502 compiler=$CC
5505 # Check for command to grab the raw symbol name followed by C symbol from nm.
5506 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5507 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5508 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5512 # These are sane defaults that work on at least a few old systems.
5513 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5515 # Character class describing NM global symbol codes.
5516 symcode='[BCDEGRST]'
5518 # Regexp to match symbols that can be accessed directly from C.
5519 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5521 # Define system-specific variables.
5522 case $host_os in
5523 aix*)
5524 symcode='[BCDT]'
5526 cygwin* | mingw* | pw32* | cegcc*)
5527 symcode='[ABCDGISTW]'
5529 hpux*)
5530 if test "$host_cpu" = ia64; then
5531 symcode='[ABCDEGRST]'
5534 irix* | nonstopux*)
5535 symcode='[BCDEGRST]'
5537 osf*)
5538 symcode='[BCDEGQRST]'
5540 solaris*)
5541 symcode='[BDRT]'
5543 sco3.2v5*)
5544 symcode='[DT]'
5546 sysv4.2uw2*)
5547 symcode='[DT]'
5549 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5550 symcode='[ABDT]'
5552 sysv4)
5553 symcode='[DFNSTU]'
5555 esac
5557 # If we're using GNU nm, then use its standard symbol codes.
5558 case `$NM -V 2>&1` in
5559 *GNU* | *'with BFD'*)
5560 symcode='[ABCDGIRSTW]' ;;
5561 esac
5563 # Transform an extracted symbol line into a proper C declaration.
5564 # Some systems (esp. on ia64) link data and code symbols differently,
5565 # so use this general approach.
5566 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5568 # Transform an extracted symbol line into symbol name and symbol address
5569 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5570 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5572 # Handle CRLF in mingw tool chain
5573 opt_cr=
5574 case $build_os in
5575 mingw*)
5576 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5578 esac
5580 # Try without a prefix underscore, then with it.
5581 for ac_symprfx in "" "_"; do
5583 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5584 symxfrm="\\1 $ac_symprfx\\2 \\2"
5586 # Write the raw and C identifiers.
5587 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5588 # Fake it for dumpbin and say T for any non-static function
5589 # and D for any global variable.
5590 # Also find C++ and __fastcall symbols from MSVC++,
5591 # which start with @ or ?.
5592 lt_cv_sys_global_symbol_pipe="$AWK '"\
5593 " {last_section=section; section=\$ 3};"\
5594 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5595 " \$ 0!~/External *\|/{next};"\
5596 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5597 " {if(hide[section]) next};"\
5598 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5599 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5600 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5601 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5602 " ' prfx=^$ac_symprfx"
5603 else
5604 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5607 # Check to see that the pipe works correctly.
5608 pipe_works=no
5610 rm -f conftest*
5611 cat > conftest.$ac_ext <<_LT_EOF
5612 #ifdef __cplusplus
5613 extern "C" {
5614 #endif
5615 char nm_test_var;
5616 void nm_test_func(void);
5617 void nm_test_func(void){}
5618 #ifdef __cplusplus
5620 #endif
5621 int main(){nm_test_var='a';nm_test_func();return(0);}
5622 _LT_EOF
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625 (eval $ac_compile) 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; then
5629 # Now try to grab the symbols.
5630 nlist=conftest.nm
5631 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5632 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5633 ac_status=$?
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } && test -s "$nlist"; then
5636 # Try sorting and uniquifying the output.
5637 if sort "$nlist" | uniq > "$nlist"T; then
5638 mv -f "$nlist"T "$nlist"
5639 else
5640 rm -f "$nlist"T
5643 # Make sure that we snagged all the symbols we need.
5644 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5645 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5646 cat <<_LT_EOF > conftest.$ac_ext
5647 #ifdef __cplusplus
5648 extern "C" {
5649 #endif
5651 _LT_EOF
5652 # Now generate the symbol file.
5653 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5655 cat <<_LT_EOF >> conftest.$ac_ext
5657 /* The mapping between symbol names and symbols. */
5658 const struct {
5659 const char *name;
5660 void *address;
5662 lt__PROGRAM__LTX_preloaded_symbols[] =
5664 { "@PROGRAM@", (void *) 0 },
5665 _LT_EOF
5666 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5667 cat <<\_LT_EOF >> conftest.$ac_ext
5668 {0, (void *) 0}
5671 /* This works around a problem in FreeBSD linker */
5672 #ifdef FREEBSD_WORKAROUND
5673 static const void *lt_preloaded_setup() {
5674 return lt__PROGRAM__LTX_preloaded_symbols;
5676 #endif
5678 #ifdef __cplusplus
5680 #endif
5681 _LT_EOF
5682 # Now try linking the two files.
5683 mv conftest.$ac_objext conftstm.$ac_objext
5684 lt_save_LIBS="$LIBS"
5685 lt_save_CFLAGS="$CFLAGS"
5686 LIBS="conftstm.$ac_objext"
5687 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5689 (eval $ac_link) 2>&5
5690 ac_status=$?
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5693 pipe_works=yes
5695 LIBS="$lt_save_LIBS"
5696 CFLAGS="$lt_save_CFLAGS"
5697 else
5698 echo "cannot find nm_test_func in $nlist" >&5
5700 else
5701 echo "cannot find nm_test_var in $nlist" >&5
5703 else
5704 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5706 else
5707 echo "$progname: failed program was:" >&5
5708 cat conftest.$ac_ext >&5
5710 rm -rf conftest* conftst*
5712 # Do not use the global_symbol_pipe unless it works.
5713 if test "$pipe_works" = yes; then
5714 break
5715 else
5716 lt_cv_sys_global_symbol_pipe=
5718 done
5722 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5723 lt_cv_sys_global_symbol_to_cdecl=
5725 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5726 echo "$as_me:$LINENO: result: failed" >&5
5727 echo "${ECHO_T}failed" >&6
5728 else
5729 echo "$as_me:$LINENO: result: ok" >&5
5730 echo "${ECHO_T}ok" >&6
5755 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5756 if test "${enable_libtool_lock+set}" = set; then
5757 enableval="$enable_libtool_lock"
5760 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5762 # Some flags need to be propagated to the compiler or linker for good
5763 # libtool support.
5764 case $host in
5765 ia64-*-hpux*)
5766 # Find out which ABI we are using.
5767 echo 'int i;' > conftest.$ac_ext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; then
5773 case `/usr/bin/file conftest.$ac_objext` in
5774 *ELF-32*)
5775 HPUX_IA64_MODE="32"
5777 *ELF-64*)
5778 HPUX_IA64_MODE="64"
5780 esac
5782 rm -rf conftest*
5784 *-*-irix6*)
5785 # Find out which ABI we are using.
5786 echo '#line 5786 "configure"' > conftest.$ac_ext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5788 (eval $ac_compile) 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; then
5792 if test "$lt_cv_prog_gnu_ld" = yes; then
5793 case `/usr/bin/file conftest.$ac_objext` in
5794 *32-bit*)
5795 LD="${LD-ld} -melf32bsmip"
5797 *N32*)
5798 LD="${LD-ld} -melf32bmipn32"
5800 *64-bit*)
5801 LD="${LD-ld} -melf64bmip"
5803 esac
5804 else
5805 case `/usr/bin/file conftest.$ac_objext` in
5806 *32-bit*)
5807 LD="${LD-ld} -32"
5809 *N32*)
5810 LD="${LD-ld} -n32"
5812 *64-bit*)
5813 LD="${LD-ld} -64"
5815 esac
5818 rm -rf conftest*
5821 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5822 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5823 # Find out which ABI we are using.
5824 echo 'int i;' > conftest.$ac_ext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5826 (eval $ac_compile) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; then
5830 case `/usr/bin/file conftest.o` in
5831 *32-bit*)
5832 case $host in
5833 x86_64-*kfreebsd*-gnu)
5834 LD="${LD-ld} -m elf_i386_fbsd"
5836 x86_64-*linux*)
5837 LD="${LD-ld} -m elf_i386"
5839 ppc64-*linux*|powerpc64-*linux*)
5840 LD="${LD-ld} -m elf32ppclinux"
5842 s390x-*linux*)
5843 LD="${LD-ld} -m elf_s390"
5845 sparc64-*linux*)
5846 LD="${LD-ld} -m elf32_sparc"
5848 esac
5850 *64-bit*)
5851 case $host in
5852 x86_64-*kfreebsd*-gnu)
5853 LD="${LD-ld} -m elf_x86_64_fbsd"
5855 x86_64-*linux*)
5856 LD="${LD-ld} -m elf_x86_64"
5858 ppc*-*linux*|powerpc*-*linux*)
5859 LD="${LD-ld} -m elf64ppc"
5861 s390*-*linux*|s390*-*tpf*)
5862 LD="${LD-ld} -m elf64_s390"
5864 sparc*-*linux*)
5865 LD="${LD-ld} -m elf64_sparc"
5867 esac
5869 esac
5871 rm -rf conftest*
5874 *-*-sco3.2v5*)
5875 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5876 SAVE_CFLAGS="$CFLAGS"
5877 CFLAGS="$CFLAGS -belf"
5878 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5879 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5880 if test "${lt_cv_cc_needs_belf+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 else
5883 ac_ext=c
5884 ac_cpp='$CPP $CPPFLAGS'
5885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5889 if test x$gcc_no_link = xyes; then
5890 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5891 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5892 { (exit 1); exit 1; }; }
5894 cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h. */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5902 main ()
5906 return 0;
5908 _ACEOF
5909 rm -f conftest.$ac_objext conftest$ac_exeext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5911 (eval $ac_link) 2>conftest.er1
5912 ac_status=$?
5913 grep -v '^ *+' conftest.er1 >conftest.err
5914 rm -f conftest.er1
5915 cat conftest.err >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } &&
5918 { ac_try='test -z "$ac_c_werror_flag"
5919 || test ! -s conftest.err'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921 (eval $ac_try) 2>&5
5922 ac_status=$?
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; } &&
5925 { ac_try='test -s conftest$ac_exeext'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 (eval $ac_try) 2>&5
5928 ac_status=$?
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; }; then
5931 lt_cv_cc_needs_belf=yes
5932 else
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5936 lt_cv_cc_needs_belf=no
5938 rm -f conftest.err conftest.$ac_objext \
5939 conftest$ac_exeext conftest.$ac_ext
5940 ac_ext=c
5941 ac_cpp='$CPP $CPPFLAGS'
5942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5947 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5948 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5949 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5950 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5951 CFLAGS="$SAVE_CFLAGS"
5954 sparc*-*solaris*)
5955 # Find out which ABI we are using.
5956 echo 'int i;' > conftest.$ac_ext
5957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5958 (eval $ac_compile) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; then
5962 case `/usr/bin/file conftest.o` in
5963 *64-bit*)
5964 case $lt_cv_prog_gnu_ld in
5965 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5967 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5968 LD="${LD-ld} -64"
5971 esac
5973 esac
5975 rm -rf conftest*
5977 esac
5979 need_locks="$enable_libtool_lock"
5982 case $host_os in
5983 rhapsody* | darwin*)
5984 if test -n "$ac_tool_prefix"; then
5985 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5986 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5987 echo "$as_me:$LINENO: checking for $ac_word" >&5
5988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5989 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992 if test -n "$DSYMUTIL"; then
5993 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5994 else
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 for as_dir in $PATH
5998 IFS=$as_save_IFS
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6002 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 break 2
6006 done
6007 done
6011 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6012 if test -n "$DSYMUTIL"; then
6013 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6014 echo "${ECHO_T}$DSYMUTIL" >&6
6015 else
6016 echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6
6021 if test -z "$ac_cv_prog_DSYMUTIL"; then
6022 ac_ct_DSYMUTIL=$DSYMUTIL
6023 # Extract the first word of "dsymutil", so it can be a program name with args.
6024 set dummy dsymutil; ac_word=$2
6025 echo "$as_me:$LINENO: checking for $ac_word" >&5
6026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6027 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030 if test -n "$ac_ct_DSYMUTIL"; then
6031 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6032 else
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6036 IFS=$as_save_IFS
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6042 break 2
6044 done
6045 done
6047 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6050 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6051 if test -n "$ac_ct_DSYMUTIL"; then
6052 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6053 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6054 else
6055 echo "$as_me:$LINENO: result: no" >&5
6056 echo "${ECHO_T}no" >&6
6059 DSYMUTIL=$ac_ct_DSYMUTIL
6060 else
6061 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6064 if test -n "$ac_tool_prefix"; then
6065 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6066 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6067 echo "$as_me:$LINENO: checking for $ac_word" >&5
6068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6069 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072 if test -n "$NMEDIT"; then
6073 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6082 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6086 done
6087 done
6091 NMEDIT=$ac_cv_prog_NMEDIT
6092 if test -n "$NMEDIT"; then
6093 echo "$as_me:$LINENO: result: $NMEDIT" >&5
6094 echo "${ECHO_T}$NMEDIT" >&6
6095 else
6096 echo "$as_me:$LINENO: result: no" >&5
6097 echo "${ECHO_T}no" >&6
6101 if test -z "$ac_cv_prog_NMEDIT"; then
6102 ac_ct_NMEDIT=$NMEDIT
6103 # Extract the first word of "nmedit", so it can be a program name with args.
6104 set dummy nmedit; ac_word=$2
6105 echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6107 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110 if test -n "$ac_ct_NMEDIT"; then
6111 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6120 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6124 done
6125 done
6127 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6130 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6131 if test -n "$ac_ct_NMEDIT"; then
6132 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6133 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6134 else
6135 echo "$as_me:$LINENO: result: no" >&5
6136 echo "${ECHO_T}no" >&6
6139 NMEDIT=$ac_ct_NMEDIT
6140 else
6141 NMEDIT="$ac_cv_prog_NMEDIT"
6144 if test -n "$ac_tool_prefix"; then
6145 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6146 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6147 echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6149 if test "${ac_cv_prog_LIPO+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152 if test -n "$LIPO"; then
6153 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6154 else
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6158 IFS=$as_save_IFS
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6162 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 break 2
6166 done
6167 done
6171 LIPO=$ac_cv_prog_LIPO
6172 if test -n "$LIPO"; then
6173 echo "$as_me:$LINENO: result: $LIPO" >&5
6174 echo "${ECHO_T}$LIPO" >&6
6175 else
6176 echo "$as_me:$LINENO: result: no" >&5
6177 echo "${ECHO_T}no" >&6
6181 if test -z "$ac_cv_prog_LIPO"; then
6182 ac_ct_LIPO=$LIPO
6183 # Extract the first word of "lipo", so it can be a program name with args.
6184 set dummy lipo; ac_word=$2
6185 echo "$as_me:$LINENO: checking for $ac_word" >&5
6186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6187 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190 if test -n "$ac_ct_LIPO"; then
6191 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6192 else
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6200 ac_cv_prog_ac_ct_LIPO="lipo"
6201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6204 done
6205 done
6207 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6210 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6211 if test -n "$ac_ct_LIPO"; then
6212 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6213 echo "${ECHO_T}$ac_ct_LIPO" >&6
6214 else
6215 echo "$as_me:$LINENO: result: no" >&5
6216 echo "${ECHO_T}no" >&6
6219 LIPO=$ac_ct_LIPO
6220 else
6221 LIPO="$ac_cv_prog_LIPO"
6224 if test -n "$ac_tool_prefix"; then
6225 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6226 set dummy ${ac_tool_prefix}otool; ac_word=$2
6227 echo "$as_me:$LINENO: checking for $ac_word" >&5
6228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6229 if test "${ac_cv_prog_OTOOL+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 else
6232 if test -n "$OTOOL"; then
6233 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6234 else
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH
6238 IFS=$as_save_IFS
6239 test -z "$as_dir" && as_dir=.
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6242 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 break 2
6246 done
6247 done
6251 OTOOL=$ac_cv_prog_OTOOL
6252 if test -n "$OTOOL"; then
6253 echo "$as_me:$LINENO: result: $OTOOL" >&5
6254 echo "${ECHO_T}$OTOOL" >&6
6255 else
6256 echo "$as_me:$LINENO: result: no" >&5
6257 echo "${ECHO_T}no" >&6
6261 if test -z "$ac_cv_prog_OTOOL"; then
6262 ac_ct_OTOOL=$OTOOL
6263 # Extract the first word of "otool", so it can be a program name with args.
6264 set dummy otool; ac_word=$2
6265 echo "$as_me:$LINENO: checking for $ac_word" >&5
6266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6267 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 else
6270 if test -n "$ac_ct_OTOOL"; then
6271 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6276 IFS=$as_save_IFS
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6280 ac_cv_prog_ac_ct_OTOOL="otool"
6281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 break 2
6284 done
6285 done
6287 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6290 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6291 if test -n "$ac_ct_OTOOL"; then
6292 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6293 echo "${ECHO_T}$ac_ct_OTOOL" >&6
6294 else
6295 echo "$as_me:$LINENO: result: no" >&5
6296 echo "${ECHO_T}no" >&6
6299 OTOOL=$ac_ct_OTOOL
6300 else
6301 OTOOL="$ac_cv_prog_OTOOL"
6304 if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6306 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6307 echo "$as_me:$LINENO: checking for $ac_word" >&5
6308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6309 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312 if test -n "$OTOOL64"; then
6313 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 break 2
6326 done
6327 done
6331 OTOOL64=$ac_cv_prog_OTOOL64
6332 if test -n "$OTOOL64"; then
6333 echo "$as_me:$LINENO: result: $OTOOL64" >&5
6334 echo "${ECHO_T}$OTOOL64" >&6
6335 else
6336 echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6
6341 if test -z "$ac_cv_prog_OTOOL64"; then
6342 ac_ct_OTOOL64=$OTOOL64
6343 # Extract the first word of "otool64", so it can be a program name with args.
6344 set dummy otool64; ac_word=$2
6345 echo "$as_me:$LINENO: checking for $ac_word" >&5
6346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6347 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350 if test -n "$ac_ct_OTOOL64"; then
6351 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6352 else
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 for as_dir in $PATH
6356 IFS=$as_save_IFS
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360 ac_cv_prog_ac_ct_OTOOL64="otool64"
6361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6362 break 2
6364 done
6365 done
6367 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6370 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6371 if test -n "$ac_ct_OTOOL64"; then
6372 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6373 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6374 else
6375 echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6
6379 OTOOL64=$ac_ct_OTOOL64
6380 else
6381 OTOOL64="$ac_cv_prog_OTOOL64"
6410 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6411 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6412 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 else
6415 lt_cv_apple_cc_single_mod=no
6416 if test -z "${LT_MULTI_MODULE}"; then
6417 # By default we will add the -single_module flag. You can override
6418 # by either setting the environment variable LT_MULTI_MODULE
6419 # non-empty at configure time, or by adding -multi_module to the
6420 # link flags.
6421 rm -rf libconftest.dylib*
6422 echo "int foo(void){return 1;}" > conftest.c
6423 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6424 -dynamiclib -Wl,-single_module conftest.c" >&5
6425 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6426 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6427 _lt_result=$?
6428 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6429 lt_cv_apple_cc_single_mod=yes
6430 else
6431 cat conftest.err >&5
6433 rm -rf libconftest.dylib*
6434 rm -f conftest.*
6437 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6438 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6439 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6440 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6441 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 else
6444 lt_cv_ld_exported_symbols_list=no
6445 save_LDFLAGS=$LDFLAGS
6446 echo "_main" > conftest.sym
6447 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6448 if test x$gcc_no_link = xyes; then
6449 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6450 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6451 { (exit 1); exit 1; }; }
6453 cat >conftest.$ac_ext <<_ACEOF
6454 /* confdefs.h. */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6461 main ()
6465 return 0;
6467 _ACEOF
6468 rm -f conftest.$ac_objext conftest$ac_exeext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6470 (eval $ac_link) 2>conftest.er1
6471 ac_status=$?
6472 grep -v '^ *+' conftest.er1 >conftest.err
6473 rm -f conftest.er1
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try='test -z "$ac_c_werror_flag"
6478 || test ! -s conftest.err'
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 (eval $ac_try) 2>&5
6481 ac_status=$?
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; } &&
6484 { ac_try='test -s conftest$ac_exeext'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 (eval $ac_try) 2>&5
6487 ac_status=$?
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; }; then
6490 lt_cv_ld_exported_symbols_list=yes
6491 else
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6495 lt_cv_ld_exported_symbols_list=no
6497 rm -f conftest.err conftest.$ac_objext \
6498 conftest$ac_exeext conftest.$ac_ext
6499 LDFLAGS="$save_LDFLAGS"
6502 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6503 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6504 case $host_os in
6505 rhapsody* | darwin1.[012])
6506 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6507 darwin1.*)
6508 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6509 darwin*) # darwin 5.x on
6510 # if running on 10.5 or later, the deployment target defaults
6511 # to the OS version, if on x86, and 10.4, the deployment
6512 # target defaults to 10.4. Don't you love it?
6513 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6514 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6515 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6516 10.[012]*)
6517 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6518 10.*)
6519 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6520 esac
6522 esac
6523 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6524 _lt_dar_single_mod='$single_module'
6526 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6527 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6528 else
6529 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6531 if test "$DSYMUTIL" != ":"; then
6532 _lt_dsymutil='~$DSYMUTIL $lib || :'
6533 else
6534 _lt_dsymutil=
6537 esac
6539 ac_ext=c
6540 ac_cpp='$CPP $CPPFLAGS'
6541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6544 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6545 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6546 # On Suns, sometimes $CPP names a directory.
6547 if test -n "$CPP" && test -d "$CPP"; then
6548 CPP=
6550 if test -z "$CPP"; then
6551 if test "${ac_cv_prog_CPP+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554 # Double quotes because CPP needs to be expanded
6555 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6557 ac_preproc_ok=false
6558 for ac_c_preproc_warn_flag in '' yes
6560 # Use a header file that comes with gcc, so configuring glibc
6561 # with a fresh cross-compiler works.
6562 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6563 # <limits.h> exists even on freestanding compilers.
6564 # On the NeXT, cc -E runs the code through the compiler's parser,
6565 # not just through cpp. "Syntax error" is here to catch this case.
6566 cat >conftest.$ac_ext <<_ACEOF
6567 /* confdefs.h. */
6568 _ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572 #ifdef __STDC__
6573 # include <limits.h>
6574 #else
6575 # include <assert.h>
6576 #endif
6577 Syntax error
6578 _ACEOF
6579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } >/dev/null; then
6587 if test -s conftest.err; then
6588 ac_cpp_err=$ac_c_preproc_warn_flag
6589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6590 else
6591 ac_cpp_err=
6593 else
6594 ac_cpp_err=yes
6596 if test -z "$ac_cpp_err"; then
6598 else
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6602 # Broken: fails on valid input.
6603 continue
6605 rm -f conftest.err conftest.$ac_ext
6607 # OK, works on sane cases. Now check whether non-existent headers
6608 # can be detected and how.
6609 cat >conftest.$ac_ext <<_ACEOF
6610 /* confdefs.h. */
6611 _ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6615 #include <ac_nonexistent.h>
6616 _ACEOF
6617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6619 ac_status=$?
6620 grep -v '^ *+' conftest.er1 >conftest.err
6621 rm -f conftest.er1
6622 cat conftest.err >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } >/dev/null; then
6625 if test -s conftest.err; then
6626 ac_cpp_err=$ac_c_preproc_warn_flag
6627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6628 else
6629 ac_cpp_err=
6631 else
6632 ac_cpp_err=yes
6634 if test -z "$ac_cpp_err"; then
6635 # Broken: success on invalid input.
6636 continue
6637 else
6638 echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6641 # Passes both tests.
6642 ac_preproc_ok=:
6643 break
6645 rm -f conftest.err conftest.$ac_ext
6647 done
6648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6649 rm -f conftest.err conftest.$ac_ext
6650 if $ac_preproc_ok; then
6651 break
6654 done
6655 ac_cv_prog_CPP=$CPP
6658 CPP=$ac_cv_prog_CPP
6659 else
6660 ac_cv_prog_CPP=$CPP
6662 echo "$as_me:$LINENO: result: $CPP" >&5
6663 echo "${ECHO_T}$CPP" >&6
6664 ac_preproc_ok=false
6665 for ac_c_preproc_warn_flag in '' yes
6667 # Use a header file that comes with gcc, so configuring glibc
6668 # with a fresh cross-compiler works.
6669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6670 # <limits.h> exists even on freestanding compilers.
6671 # On the NeXT, cc -E runs the code through the compiler's parser,
6672 # not just through cpp. "Syntax error" is here to catch this case.
6673 cat >conftest.$ac_ext <<_ACEOF
6674 /* confdefs.h. */
6675 _ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6679 #ifdef __STDC__
6680 # include <limits.h>
6681 #else
6682 # include <assert.h>
6683 #endif
6684 Syntax error
6685 _ACEOF
6686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6688 ac_status=$?
6689 grep -v '^ *+' conftest.er1 >conftest.err
6690 rm -f conftest.er1
6691 cat conftest.err >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } >/dev/null; then
6694 if test -s conftest.err; then
6695 ac_cpp_err=$ac_c_preproc_warn_flag
6696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6697 else
6698 ac_cpp_err=
6700 else
6701 ac_cpp_err=yes
6703 if test -z "$ac_cpp_err"; then
6705 else
6706 echo "$as_me: failed program was:" >&5
6707 sed 's/^/| /' conftest.$ac_ext >&5
6709 # Broken: fails on valid input.
6710 continue
6712 rm -f conftest.err conftest.$ac_ext
6714 # OK, works on sane cases. Now check whether non-existent headers
6715 # can be detected and how.
6716 cat >conftest.$ac_ext <<_ACEOF
6717 /* confdefs.h. */
6718 _ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h. */
6722 #include <ac_nonexistent.h>
6723 _ACEOF
6724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6726 ac_status=$?
6727 grep -v '^ *+' conftest.er1 >conftest.err
6728 rm -f conftest.er1
6729 cat conftest.err >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } >/dev/null; then
6732 if test -s conftest.err; then
6733 ac_cpp_err=$ac_c_preproc_warn_flag
6734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6735 else
6736 ac_cpp_err=
6738 else
6739 ac_cpp_err=yes
6741 if test -z "$ac_cpp_err"; then
6742 # Broken: success on invalid input.
6743 continue
6744 else
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 # Passes both tests.
6749 ac_preproc_ok=:
6750 break
6752 rm -f conftest.err conftest.$ac_ext
6754 done
6755 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6756 rm -f conftest.err conftest.$ac_ext
6757 if $ac_preproc_ok; then
6759 else
6760 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6761 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6762 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6763 See \`config.log' for more details." >&5
6764 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6765 See \`config.log' for more details." >&2;}
6766 { (exit 1); exit 1; }; }; }
6769 ac_ext=c
6770 ac_cpp='$CPP $CPPFLAGS'
6771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6776 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6777 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6778 if test "${ac_cv_header_stdc+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781 cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h. */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6787 #include <stdlib.h>
6788 #include <stdarg.h>
6789 #include <string.h>
6790 #include <float.h>
6793 main ()
6797 return 0;
6799 _ACEOF
6800 rm -f conftest.$ac_objext
6801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6802 (eval $ac_compile) 2>conftest.er1
6803 ac_status=$?
6804 grep -v '^ *+' conftest.er1 >conftest.err
6805 rm -f conftest.er1
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } &&
6809 { ac_try='test -z "$ac_c_werror_flag"
6810 || test ! -s conftest.err'
6811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 (eval $ac_try) 2>&5
6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; } &&
6816 { ac_try='test -s conftest.$ac_objext'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 (eval $ac_try) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; }; then
6822 ac_cv_header_stdc=yes
6823 else
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6827 ac_cv_header_stdc=no
6829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6831 if test $ac_cv_header_stdc = yes; then
6832 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6833 cat >conftest.$ac_ext <<_ACEOF
6834 /* confdefs.h. */
6835 _ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6839 #include <string.h>
6841 _ACEOF
6842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6843 $EGREP "memchr" >/dev/null 2>&1; then
6845 else
6846 ac_cv_header_stdc=no
6848 rm -f conftest*
6852 if test $ac_cv_header_stdc = yes; then
6853 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 #include <stdlib.h>
6862 _ACEOF
6863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6864 $EGREP "free" >/dev/null 2>&1; then
6866 else
6867 ac_cv_header_stdc=no
6869 rm -f conftest*
6873 if test $ac_cv_header_stdc = yes; then
6874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6875 if test "$cross_compiling" = yes; then
6877 else
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 #include <ctype.h>
6885 #if ((' ' & 0x0FF) == 0x020)
6886 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6887 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6888 #else
6889 # define ISLOWER(c) \
6890 (('a' <= (c) && (c) <= 'i') \
6891 || ('j' <= (c) && (c) <= 'r') \
6892 || ('s' <= (c) && (c) <= 'z'))
6893 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6894 #endif
6896 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6898 main ()
6900 int i;
6901 for (i = 0; i < 256; i++)
6902 if (XOR (islower (i), ISLOWER (i))
6903 || toupper (i) != TOUPPER (i))
6904 exit(2);
6905 exit (0);
6907 _ACEOF
6908 rm -f conftest$ac_exeext
6909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6910 (eval $ac_link) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 (eval $ac_try) 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6920 else
6921 echo "$as_me: program exited with status $ac_status" >&5
6922 echo "$as_me: failed program was:" >&5
6923 sed 's/^/| /' conftest.$ac_ext >&5
6925 ( exit $ac_status )
6926 ac_cv_header_stdc=no
6928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6932 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6933 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6934 if test $ac_cv_header_stdc = yes; then
6936 cat >>confdefs.h <<\_ACEOF
6937 #define STDC_HEADERS 1
6938 _ACEOF
6942 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6952 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6953 inttypes.h stdint.h unistd.h
6955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6956 echo "$as_me:$LINENO: checking for $ac_header" >&5
6957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 else
6961 cat >conftest.$ac_ext <<_ACEOF
6962 /* confdefs.h. */
6963 _ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h. */
6967 $ac_includes_default
6969 #include <$ac_header>
6970 _ACEOF
6971 rm -f conftest.$ac_objext
6972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6973 (eval $ac_compile) 2>conftest.er1
6974 ac_status=$?
6975 grep -v '^ *+' conftest.er1 >conftest.err
6976 rm -f conftest.er1
6977 cat conftest.err >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); } &&
6980 { ac_try='test -z "$ac_c_werror_flag"
6981 || test ! -s conftest.err'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 (eval $ac_try) 2>&5
6984 ac_status=$?
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; } &&
6987 { ac_try='test -s conftest.$ac_objext'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 (eval $ac_try) 2>&5
6990 ac_status=$?
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; }; then
6993 eval "$as_ac_Header=yes"
6994 else
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6998 eval "$as_ac_Header=no"
7000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7005 cat >>confdefs.h <<_ACEOF
7006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7007 _ACEOF
7011 done
7015 for ac_header in dlfcn.h
7017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7018 echo "$as_me:$LINENO: checking for $ac_header" >&5
7019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 else
7023 cat >conftest.$ac_ext <<_ACEOF
7024 /* confdefs.h. */
7025 _ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7029 $ac_includes_default
7031 #include <$ac_header>
7032 _ACEOF
7033 rm -f conftest.$ac_objext
7034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7035 (eval $ac_compile) 2>conftest.er1
7036 ac_status=$?
7037 grep -v '^ *+' conftest.er1 >conftest.err
7038 rm -f conftest.er1
7039 cat conftest.err >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } &&
7042 { ac_try='test -z "$ac_c_werror_flag"
7043 || test ! -s conftest.err'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 (eval $ac_try) 2>&5
7046 ac_status=$?
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; } &&
7049 { ac_try='test -s conftest.$ac_objext'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 (eval $ac_try) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; }; then
7055 eval "$as_ac_Header=yes"
7056 else
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7060 eval "$as_ac_Header=no"
7062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7067 cat >>confdefs.h <<_ACEOF
7068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7069 _ACEOF
7073 done
7077 ac_ext=cc
7078 ac_cpp='$CXXCPP $CPPFLAGS'
7079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7082 if test -n "$ac_tool_prefix"; then
7083 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7085 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7087 echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7089 if test "${ac_cv_prog_CXX+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092 if test -n "$CXX"; then
7093 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7094 else
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7102 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7106 done
7107 done
7111 CXX=$ac_cv_prog_CXX
7112 if test -n "$CXX"; then
7113 echo "$as_me:$LINENO: result: $CXX" >&5
7114 echo "${ECHO_T}$CXX" >&6
7115 else
7116 echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6
7120 test -n "$CXX" && break
7121 done
7123 if test -z "$CXX"; then
7124 ac_ct_CXX=$CXX
7125 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7127 # Extract the first word of "$ac_prog", so it can be a program name with args.
7128 set dummy $ac_prog; ac_word=$2
7129 echo "$as_me:$LINENO: checking for $ac_word" >&5
7130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7131 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 else
7134 if test -n "$ac_ct_CXX"; then
7135 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7136 else
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144 ac_cv_prog_ac_ct_CXX="$ac_prog"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7148 done
7149 done
7153 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7154 if test -n "$ac_ct_CXX"; then
7155 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7156 echo "${ECHO_T}$ac_ct_CXX" >&6
7157 else
7158 echo "$as_me:$LINENO: result: no" >&5
7159 echo "${ECHO_T}no" >&6
7162 test -n "$ac_ct_CXX" && break
7163 done
7164 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7166 CXX=$ac_ct_CXX
7170 # Provide some information about the compiler.
7171 echo "$as_me:$LINENO:" \
7172 "checking for C++ compiler version" >&5
7173 ac_compiler=`set X $ac_compile; echo $2`
7174 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7175 (eval $ac_compiler --version </dev/null >&5) 2>&5
7176 ac_status=$?
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }
7179 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7180 (eval $ac_compiler -v </dev/null >&5) 2>&5
7181 ac_status=$?
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }
7184 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7185 (eval $ac_compiler -V </dev/null >&5) 2>&5
7186 ac_status=$?
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); }
7190 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7191 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7192 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 else
7195 cat >conftest.$ac_ext <<_ACEOF
7196 /* confdefs.h. */
7197 _ACEOF
7198 cat confdefs.h >>conftest.$ac_ext
7199 cat >>conftest.$ac_ext <<_ACEOF
7200 /* end confdefs.h. */
7203 main ()
7205 #ifndef __GNUC__
7206 choke me
7207 #endif
7210 return 0;
7212 _ACEOF
7213 rm -f conftest.$ac_objext
7214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215 (eval $ac_compile) 2>conftest.er1
7216 ac_status=$?
7217 grep -v '^ *+' conftest.er1 >conftest.err
7218 rm -f conftest.er1
7219 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } &&
7222 { ac_try='test -z "$ac_cxx_werror_flag"
7223 || test ! -s conftest.err'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 (eval $ac_try) 2>&5
7226 ac_status=$?
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; } &&
7229 { ac_try='test -s conftest.$ac_objext'
7230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 (eval $ac_try) 2>&5
7232 ac_status=$?
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; }; then
7235 ac_compiler_gnu=yes
7236 else
7237 echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7240 ac_compiler_gnu=no
7242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7243 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7246 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7247 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7248 GXX=`test $ac_compiler_gnu = yes && echo yes`
7249 ac_test_CXXFLAGS=${CXXFLAGS+set}
7250 ac_save_CXXFLAGS=$CXXFLAGS
7251 CXXFLAGS="-g"
7252 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7253 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7254 if test "${ac_cv_prog_cxx_g+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 else
7257 cat >conftest.$ac_ext <<_ACEOF
7258 /* confdefs.h. */
7259 _ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7265 main ()
7269 return 0;
7271 _ACEOF
7272 rm -f conftest.$ac_objext
7273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7274 (eval $ac_compile) 2>conftest.er1
7275 ac_status=$?
7276 grep -v '^ *+' conftest.er1 >conftest.err
7277 rm -f conftest.er1
7278 cat conftest.err >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } &&
7281 { ac_try='test -z "$ac_cxx_werror_flag"
7282 || test ! -s conftest.err'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 (eval $ac_try) 2>&5
7285 ac_status=$?
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; } &&
7288 { ac_try='test -s conftest.$ac_objext'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290 (eval $ac_try) 2>&5
7291 ac_status=$?
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; }; then
7294 ac_cv_prog_cxx_g=yes
7295 else
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7299 ac_cv_prog_cxx_g=no
7301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7303 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7304 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7305 if test "$ac_test_CXXFLAGS" = set; then
7306 CXXFLAGS=$ac_save_CXXFLAGS
7307 elif test $ac_cv_prog_cxx_g = yes; then
7308 if test "$GXX" = yes; then
7309 CXXFLAGS="-g -O2"
7310 else
7311 CXXFLAGS="-g"
7313 else
7314 if test "$GXX" = yes; then
7315 CXXFLAGS="-O2"
7316 else
7317 CXXFLAGS=
7320 for ac_declaration in \
7321 '' \
7322 'extern "C" void std::exit (int) throw (); using std::exit;' \
7323 'extern "C" void std::exit (int); using std::exit;' \
7324 'extern "C" void exit (int) throw ();' \
7325 'extern "C" void exit (int);' \
7326 'void exit (int);'
7328 cat >conftest.$ac_ext <<_ACEOF
7329 /* confdefs.h. */
7330 _ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h. */
7334 $ac_declaration
7335 #include <stdlib.h>
7337 main ()
7339 exit (42);
7341 return 0;
7343 _ACEOF
7344 rm -f conftest.$ac_objext
7345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7346 (eval $ac_compile) 2>conftest.er1
7347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } &&
7353 { ac_try='test -z "$ac_cxx_werror_flag"
7354 || test ! -s conftest.err'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 (eval $ac_try) 2>&5
7357 ac_status=$?
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; } &&
7360 { ac_try='test -s conftest.$ac_objext'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362 (eval $ac_try) 2>&5
7363 ac_status=$?
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; }; then
7367 else
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7371 continue
7373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7374 cat >conftest.$ac_ext <<_ACEOF
7375 /* confdefs.h. */
7376 _ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7380 $ac_declaration
7382 main ()
7384 exit (42);
7386 return 0;
7388 _ACEOF
7389 rm -f conftest.$ac_objext
7390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7391 (eval $ac_compile) 2>conftest.er1
7392 ac_status=$?
7393 grep -v '^ *+' conftest.er1 >conftest.err
7394 rm -f conftest.er1
7395 cat conftest.err >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } &&
7398 { ac_try='test -z "$ac_cxx_werror_flag"
7399 || test ! -s conftest.err'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401 (eval $ac_try) 2>&5
7402 ac_status=$?
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; } &&
7405 { ac_try='test -s conftest.$ac_objext'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 (eval $ac_try) 2>&5
7408 ac_status=$?
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 break
7412 else
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7418 done
7419 rm -f conftest*
7420 if test -n "$ac_declaration"; then
7421 echo '#ifdef __cplusplus' >>confdefs.h
7422 echo $ac_declaration >>confdefs.h
7423 echo '#endif' >>confdefs.h
7426 ac_ext=c
7427 ac_cpp='$CPP $CPPFLAGS'
7428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7432 depcc="$CXX" am_compiler_list=
7434 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7435 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7436 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7440 # We make a subdir and do the tests there. Otherwise we can end up
7441 # making bogus files that we don't know about and never remove. For
7442 # instance it was reported that on HP-UX the gcc test will end up
7443 # making a dummy file named `D' -- because `-MD' means `put the output
7444 # in D'.
7445 mkdir conftest.dir
7446 # Copy depcomp to subdir because otherwise we won't find it if we're
7447 # using a relative directory.
7448 cp "$am_depcomp" conftest.dir
7449 cd conftest.dir
7450 # We will build objects and dependencies in a subdirectory because
7451 # it helps to detect inapplicable dependency modes. For instance
7452 # both Tru64's cc and ICC support -MD to output dependencies as a
7453 # side effect of compilation, but ICC will put the dependencies in
7454 # the current directory while Tru64 will put them in the object
7455 # directory.
7456 mkdir sub
7458 am_cv_CXX_dependencies_compiler_type=none
7459 if test "$am_compiler_list" = ""; then
7460 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7462 for depmode in $am_compiler_list; do
7463 # Setup a source with many dependencies, because some compilers
7464 # like to wrap large dependency lists on column 80 (with \), and
7465 # we should not choose a depcomp mode which is confused by this.
7467 # We need to recreate these files for each test, as the compiler may
7468 # overwrite some of them when testing with obscure command lines.
7469 # This happens at least with the AIX C compiler.
7470 : > sub/conftest.c
7471 for i in 1 2 3 4 5 6; do
7472 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7473 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7474 # Solaris 8's {/usr,}/bin/sh.
7475 touch sub/conftst$i.h
7476 done
7477 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7479 case $depmode in
7480 nosideeffect)
7481 # after this tag, mechanisms are not by side-effect, so they'll
7482 # only be used when explicitly requested
7483 if test "x$enable_dependency_tracking" = xyes; then
7484 continue
7485 else
7486 break
7489 none) break ;;
7490 esac
7491 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7492 # mode. It turns out that the SunPro C++ compiler does not properly
7493 # handle `-M -o', and we need to detect this.
7494 if depmode=$depmode \
7495 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7496 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7497 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7498 >/dev/null 2>conftest.err &&
7499 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7500 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7501 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7502 # icc doesn't choke on unknown options, it will just issue warnings
7503 # or remarks (even with -Werror). So we grep stderr for any message
7504 # that says an option was ignored or not supported.
7505 # When given -MP, icc 7.0 and 7.1 complain thusly:
7506 # icc: Command line warning: ignoring option '-M'; no argument required
7507 # The diagnosis changed in icc 8.0:
7508 # icc: Command line remark: option '-MP' not supported
7509 if (grep 'ignoring option' conftest.err ||
7510 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7511 am_cv_CXX_dependencies_compiler_type=$depmode
7512 break
7515 done
7517 cd ..
7518 rm -rf conftest.dir
7519 else
7520 am_cv_CXX_dependencies_compiler_type=none
7524 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7525 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7526 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7531 test "x$enable_dependency_tracking" != xno \
7532 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7533 am__fastdepCXX_TRUE=
7534 am__fastdepCXX_FALSE='#'
7535 else
7536 am__fastdepCXX_TRUE='#'
7537 am__fastdepCXX_FALSE=
7541 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7542 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7543 (test "X$CXX" != "Xg++"))) ; then
7544 ac_ext=cc
7545 ac_cpp='$CXXCPP $CPPFLAGS'
7546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7549 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7550 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7551 if test -z "$CXXCPP"; then
7552 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555 # Double quotes because CXXCPP needs to be expanded
7556 for CXXCPP in "$CXX -E" "/lib/cpp"
7558 ac_preproc_ok=false
7559 for ac_cxx_preproc_warn_flag in '' yes
7561 # Use a header file that comes with gcc, so configuring glibc
7562 # with a fresh cross-compiler works.
7563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7564 # <limits.h> exists even on freestanding compilers.
7565 # On the NeXT, cc -E runs the code through the compiler's parser,
7566 # not just through cpp. "Syntax error" is here to catch this case.
7567 cat >conftest.$ac_ext <<_ACEOF
7568 /* confdefs.h. */
7569 _ACEOF
7570 cat confdefs.h >>conftest.$ac_ext
7571 cat >>conftest.$ac_ext <<_ACEOF
7572 /* end confdefs.h. */
7573 #ifdef __STDC__
7574 # include <limits.h>
7575 #else
7576 # include <assert.h>
7577 #endif
7578 Syntax error
7579 _ACEOF
7580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7582 ac_status=$?
7583 grep -v '^ *+' conftest.er1 >conftest.err
7584 rm -f conftest.er1
7585 cat conftest.err >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } >/dev/null; then
7588 if test -s conftest.err; then
7589 ac_cpp_err=$ac_cxx_preproc_warn_flag
7590 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7591 else
7592 ac_cpp_err=
7594 else
7595 ac_cpp_err=yes
7597 if test -z "$ac_cpp_err"; then
7599 else
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.$ac_ext >&5
7603 # Broken: fails on valid input.
7604 continue
7606 rm -f conftest.err conftest.$ac_ext
7608 # OK, works on sane cases. Now check whether non-existent headers
7609 # can be detected and how.
7610 cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h. */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7616 #include <ac_nonexistent.h>
7617 _ACEOF
7618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7620 ac_status=$?
7621 grep -v '^ *+' conftest.er1 >conftest.err
7622 rm -f conftest.er1
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } >/dev/null; then
7626 if test -s conftest.err; then
7627 ac_cpp_err=$ac_cxx_preproc_warn_flag
7628 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7629 else
7630 ac_cpp_err=
7632 else
7633 ac_cpp_err=yes
7635 if test -z "$ac_cpp_err"; then
7636 # Broken: success on invalid input.
7637 continue
7638 else
7639 echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7642 # Passes both tests.
7643 ac_preproc_ok=:
7644 break
7646 rm -f conftest.err conftest.$ac_ext
7648 done
7649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7650 rm -f conftest.err conftest.$ac_ext
7651 if $ac_preproc_ok; then
7652 break
7655 done
7656 ac_cv_prog_CXXCPP=$CXXCPP
7659 CXXCPP=$ac_cv_prog_CXXCPP
7660 else
7661 ac_cv_prog_CXXCPP=$CXXCPP
7663 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7664 echo "${ECHO_T}$CXXCPP" >&6
7665 ac_preproc_ok=false
7666 for ac_cxx_preproc_warn_flag in '' yes
7668 # Use a header file that comes with gcc, so configuring glibc
7669 # with a fresh cross-compiler works.
7670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7671 # <limits.h> exists even on freestanding compilers.
7672 # On the NeXT, cc -E runs the code through the compiler's parser,
7673 # not just through cpp. "Syntax error" is here to catch this case.
7674 cat >conftest.$ac_ext <<_ACEOF
7675 /* confdefs.h. */
7676 _ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h. */
7680 #ifdef __STDC__
7681 # include <limits.h>
7682 #else
7683 # include <assert.h>
7684 #endif
7685 Syntax error
7686 _ACEOF
7687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7689 ac_status=$?
7690 grep -v '^ *+' conftest.er1 >conftest.err
7691 rm -f conftest.er1
7692 cat conftest.err >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); } >/dev/null; then
7695 if test -s conftest.err; then
7696 ac_cpp_err=$ac_cxx_preproc_warn_flag
7697 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7698 else
7699 ac_cpp_err=
7701 else
7702 ac_cpp_err=yes
7704 if test -z "$ac_cpp_err"; then
7706 else
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7710 # Broken: fails on valid input.
7711 continue
7713 rm -f conftest.err conftest.$ac_ext
7715 # OK, works on sane cases. Now check whether non-existent headers
7716 # can be detected and how.
7717 cat >conftest.$ac_ext <<_ACEOF
7718 /* confdefs.h. */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7723 #include <ac_nonexistent.h>
7724 _ACEOF
7725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7727 ac_status=$?
7728 grep -v '^ *+' conftest.er1 >conftest.err
7729 rm -f conftest.er1
7730 cat conftest.err >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } >/dev/null; then
7733 if test -s conftest.err; then
7734 ac_cpp_err=$ac_cxx_preproc_warn_flag
7735 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7736 else
7737 ac_cpp_err=
7739 else
7740 ac_cpp_err=yes
7742 if test -z "$ac_cpp_err"; then
7743 # Broken: success on invalid input.
7744 continue
7745 else
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.$ac_ext >&5
7749 # Passes both tests.
7750 ac_preproc_ok=:
7751 break
7753 rm -f conftest.err conftest.$ac_ext
7755 done
7756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7757 rm -f conftest.err conftest.$ac_ext
7758 if $ac_preproc_ok; then
7760 else
7761 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7762 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7763 _lt_caught_CXX_error=yes; }
7766 ac_ext=c
7767 ac_cpp='$CPP $CPPFLAGS'
7768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7772 else
7773 _lt_caught_CXX_error=yes
7780 # Set options
7784 enable_dlopen=no
7787 enable_win32_dll=no
7790 # Check whether --enable-shared or --disable-shared was given.
7791 if test "${enable_shared+set}" = set; then
7792 enableval="$enable_shared"
7793 p=${PACKAGE-default}
7794 case $enableval in
7795 yes) enable_shared=yes ;;
7796 no) enable_shared=no ;;
7798 enable_shared=no
7799 # Look at the argument we got. We use all the common list separators.
7800 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7801 for pkg in $enableval; do
7802 IFS="$lt_save_ifs"
7803 if test "X$pkg" = "X$p"; then
7804 enable_shared=yes
7806 done
7807 IFS="$lt_save_ifs"
7809 esac
7810 else
7811 enable_shared=yes
7821 # Check whether --enable-static or --disable-static was given.
7822 if test "${enable_static+set}" = set; then
7823 enableval="$enable_static"
7824 p=${PACKAGE-default}
7825 case $enableval in
7826 yes) enable_static=yes ;;
7827 no) enable_static=no ;;
7829 enable_static=no
7830 # Look at the argument we got. We use all the common list separators.
7831 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7832 for pkg in $enableval; do
7833 IFS="$lt_save_ifs"
7834 if test "X$pkg" = "X$p"; then
7835 enable_static=yes
7837 done
7838 IFS="$lt_save_ifs"
7840 esac
7841 else
7842 enable_static=yes
7853 # Check whether --with-pic or --without-pic was given.
7854 if test "${with_pic+set}" = set; then
7855 withval="$with_pic"
7856 pic_mode="$withval"
7857 else
7858 pic_mode=default
7861 test -z "$pic_mode" && pic_mode=default
7869 # Check whether --enable-fast-install or --disable-fast-install was given.
7870 if test "${enable_fast_install+set}" = set; then
7871 enableval="$enable_fast_install"
7872 p=${PACKAGE-default}
7873 case $enableval in
7874 yes) enable_fast_install=yes ;;
7875 no) enable_fast_install=no ;;
7877 enable_fast_install=no
7878 # Look at the argument we got. We use all the common list separators.
7879 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7880 for pkg in $enableval; do
7881 IFS="$lt_save_ifs"
7882 if test "X$pkg" = "X$p"; then
7883 enable_fast_install=yes
7885 done
7886 IFS="$lt_save_ifs"
7888 esac
7889 else
7890 enable_fast_install=yes
7902 # This can be used to rebuild libtool when needed
7903 LIBTOOL_DEPS="$ltmain"
7905 # Always use our own libtool.
7906 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7932 test -z "$LN_S" && LN_S="ln -s"
7947 if test -n "${ZSH_VERSION+set}" ; then
7948 setopt NO_GLOB_SUBST
7951 echo "$as_me:$LINENO: checking for objdir" >&5
7952 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7953 if test "${lt_cv_objdir+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956 rm -f .libs 2>/dev/null
7957 mkdir .libs 2>/dev/null
7958 if test -d .libs; then
7959 lt_cv_objdir=.libs
7960 else
7961 # MS-DOS does not allow filenames that begin with a dot.
7962 lt_cv_objdir=_libs
7964 rmdir .libs 2>/dev/null
7966 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7967 echo "${ECHO_T}$lt_cv_objdir" >&6
7968 objdir=$lt_cv_objdir
7974 cat >>confdefs.h <<_ACEOF
7975 #define LT_OBJDIR "$lt_cv_objdir/"
7976 _ACEOF
7994 case $host_os in
7995 aix3*)
7996 # AIX sometimes has problems with the GCC collect2 program. For some
7997 # reason, if we set the COLLECT_NAMES environment variable, the problems
7998 # vanish in a puff of smoke.
7999 if test "X${COLLECT_NAMES+set}" != Xset; then
8000 COLLECT_NAMES=
8001 export COLLECT_NAMES
8004 esac
8006 # Sed substitution that helps us do robust quoting. It backslashifies
8007 # metacharacters that are still active within double-quoted strings.
8008 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8010 # Same as above, but do not quote variable references.
8011 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8013 # Sed substitution to delay expansion of an escaped shell variable in a
8014 # double_quote_subst'ed string.
8015 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8017 # Sed substitution to delay expansion of an escaped single quote.
8018 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8020 # Sed substitution to avoid accidental globbing in evaled expressions
8021 no_glob_subst='s/\*/\\\*/g'
8023 # Global variables:
8024 ofile=libtool
8025 can_build_shared=yes
8027 # All known linkers require a `.a' archive for static linking (except MSVC,
8028 # which needs '.lib').
8029 libext=a
8031 with_gnu_ld="$lt_cv_prog_gnu_ld"
8033 old_CC="$CC"
8034 old_CFLAGS="$CFLAGS"
8036 # Set sane defaults for various variables
8037 test -z "$CC" && CC=cc
8038 test -z "$LTCC" && LTCC=$CC
8039 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8040 test -z "$LD" && LD=ld
8041 test -z "$ac_objext" && ac_objext=o
8043 for cc_temp in $compiler""; do
8044 case $cc_temp in
8045 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8046 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8047 \-*) ;;
8048 *) break;;
8049 esac
8050 done
8051 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8054 # Only perform the check for file, if the check method requires it
8055 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8056 case $deplibs_check_method in
8057 file_magic*)
8058 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8059 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8060 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8061 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064 case $MAGIC_CMD in
8065 [\\/*] | ?:[\\/]*)
8066 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8069 lt_save_MAGIC_CMD="$MAGIC_CMD"
8070 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8071 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8072 for ac_dir in $ac_dummy; do
8073 IFS="$lt_save_ifs"
8074 test -z "$ac_dir" && ac_dir=.
8075 if test -f $ac_dir/${ac_tool_prefix}file; then
8076 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8077 if test -n "$file_magic_test_file"; then
8078 case $deplibs_check_method in
8079 "file_magic "*)
8080 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8081 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8082 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8083 $EGREP "$file_magic_regex" > /dev/null; then
8085 else
8086 cat <<_LT_EOF 1>&2
8088 *** Warning: the command libtool uses to detect shared libraries,
8089 *** $file_magic_cmd, produces output that libtool cannot recognize.
8090 *** The result is that libtool may fail to recognize shared libraries
8091 *** as such. This will affect the creation of libtool libraries that
8092 *** depend on shared libraries, but programs linked with such libtool
8093 *** libraries will work regardless of this problem. Nevertheless, you
8094 *** may want to report the problem to your system manager and/or to
8095 *** bug-libtool@gnu.org
8097 _LT_EOF
8098 fi ;;
8099 esac
8101 break
8103 done
8104 IFS="$lt_save_ifs"
8105 MAGIC_CMD="$lt_save_MAGIC_CMD"
8107 esac
8110 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8111 if test -n "$MAGIC_CMD"; then
8112 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8113 echo "${ECHO_T}$MAGIC_CMD" >&6
8114 else
8115 echo "$as_me:$LINENO: result: no" >&5
8116 echo "${ECHO_T}no" >&6
8123 if test -z "$lt_cv_path_MAGIC_CMD"; then
8124 if test -n "$ac_tool_prefix"; then
8125 echo "$as_me:$LINENO: checking for file" >&5
8126 echo $ECHO_N "checking for file... $ECHO_C" >&6
8127 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130 case $MAGIC_CMD in
8131 [\\/*] | ?:[\\/]*)
8132 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8135 lt_save_MAGIC_CMD="$MAGIC_CMD"
8136 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8137 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8138 for ac_dir in $ac_dummy; do
8139 IFS="$lt_save_ifs"
8140 test -z "$ac_dir" && ac_dir=.
8141 if test -f $ac_dir/file; then
8142 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8143 if test -n "$file_magic_test_file"; then
8144 case $deplibs_check_method in
8145 "file_magic "*)
8146 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8147 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8148 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8149 $EGREP "$file_magic_regex" > /dev/null; then
8151 else
8152 cat <<_LT_EOF 1>&2
8154 *** Warning: the command libtool uses to detect shared libraries,
8155 *** $file_magic_cmd, produces output that libtool cannot recognize.
8156 *** The result is that libtool may fail to recognize shared libraries
8157 *** as such. This will affect the creation of libtool libraries that
8158 *** depend on shared libraries, but programs linked with such libtool
8159 *** libraries will work regardless of this problem. Nevertheless, you
8160 *** may want to report the problem to your system manager and/or to
8161 *** bug-libtool@gnu.org
8163 _LT_EOF
8164 fi ;;
8165 esac
8167 break
8169 done
8170 IFS="$lt_save_ifs"
8171 MAGIC_CMD="$lt_save_MAGIC_CMD"
8173 esac
8176 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8177 if test -n "$MAGIC_CMD"; then
8178 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8179 echo "${ECHO_T}$MAGIC_CMD" >&6
8180 else
8181 echo "$as_me:$LINENO: result: no" >&5
8182 echo "${ECHO_T}no" >&6
8186 else
8187 MAGIC_CMD=:
8193 esac
8195 # Use C for the default configuration in the libtool script
8197 lt_save_CC="$CC"
8198 ac_ext=c
8199 ac_cpp='$CPP $CPPFLAGS'
8200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8205 # Source file extension for C test sources.
8206 ac_ext=c
8208 # Object file extension for compiled C test sources.
8209 objext=o
8210 objext=$objext
8212 # Code to be used in simple compile tests
8213 lt_simple_compile_test_code="int some_variable = 0;"
8215 # Code to be used in simple link tests
8216 lt_simple_link_test_code='int main(){return(0);}'
8224 # If no C compiler was specified, use CC.
8225 LTCC=${LTCC-"$CC"}
8227 # If no C compiler flags were specified, use CFLAGS.
8228 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8230 # Allow CC to be a program name with arguments.
8231 compiler=$CC
8233 # Save the default compiler, since it gets overwritten when the other
8234 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8235 compiler_DEFAULT=$CC
8237 # save warnings/boilerplate of simple test code
8238 ac_outfile=conftest.$ac_objext
8239 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8240 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8241 _lt_compiler_boilerplate=`cat conftest.err`
8242 $RM conftest*
8244 ac_outfile=conftest.$ac_objext
8245 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8246 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8247 _lt_linker_boilerplate=`cat conftest.err`
8248 $RM -r conftest*
8251 ## CAVEAT EMPTOR:
8252 ## There is no encapsulation within the following macros, do not change
8253 ## the running order or otherwise move them around unless you know exactly
8254 ## what you are doing...
8255 if test -n "$compiler"; then
8257 lt_prog_compiler_no_builtin_flag=
8259 if test "$GCC" = yes; then
8260 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8262 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8263 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8264 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 else
8267 lt_cv_prog_compiler_rtti_exceptions=no
8268 ac_outfile=conftest.$ac_objext
8269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8270 lt_compiler_flag="-fno-rtti -fno-exceptions"
8271 # Insert the option either (1) after the last *FLAGS variable, or
8272 # (2) before a word containing "conftest.", or (3) at the end.
8273 # Note that $ac_compile itself does not contain backslashes and begins
8274 # with a dollar sign (not a hyphen), so the echo should work correctly.
8275 # The option is referenced via a variable to avoid confusing sed.
8276 lt_compile=`echo "$ac_compile" | $SED \
8277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8279 -e 's:$: $lt_compiler_flag:'`
8280 (eval echo "\"\$as_me:8280: $lt_compile\"" >&5)
8281 (eval "$lt_compile" 2>conftest.err)
8282 ac_status=$?
8283 cat conftest.err >&5
8284 echo "$as_me:8284: \$? = $ac_status" >&5
8285 if (exit $ac_status) && test -s "$ac_outfile"; then
8286 # The compiler can only warn and ignore the option if not recognized
8287 # So say no if there are warnings other than the usual output.
8288 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8290 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8291 lt_cv_prog_compiler_rtti_exceptions=yes
8294 $RM conftest*
8297 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8298 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8300 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8301 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8302 else
8313 lt_prog_compiler_wl=
8314 lt_prog_compiler_pic=
8315 lt_prog_compiler_static=
8317 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8318 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8320 if test "$GCC" = yes; then
8321 lt_prog_compiler_wl='-Wl,'
8322 lt_prog_compiler_static='-static'
8324 case $host_os in
8325 aix*)
8326 # All AIX code is PIC.
8327 if test "$host_cpu" = ia64; then
8328 # AIX 5 now supports IA64 processor
8329 lt_prog_compiler_static='-Bstatic'
8333 amigaos*)
8334 case $host_cpu in
8335 powerpc)
8336 # see comment about AmigaOS4 .so support
8337 lt_prog_compiler_pic='-fPIC'
8339 m68k)
8340 # FIXME: we need at least 68020 code to build shared libraries, but
8341 # adding the `-m68020' flag to GCC prevents building anything better,
8342 # like `-m68040'.
8343 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8345 esac
8348 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8349 # PIC is the default for these OSes.
8352 mingw* | cygwin* | pw32* | os2* | cegcc*)
8353 # This hack is so that the source file can tell whether it is being
8354 # built for inclusion in a dll (and should export symbols for example).
8355 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8356 # (--disable-auto-import) libraries
8357 lt_prog_compiler_pic='-DDLL_EXPORT'
8360 darwin* | rhapsody*)
8361 # PIC is the default on this platform
8362 # Common symbols not allowed in MH_DYLIB files
8363 lt_prog_compiler_pic='-fno-common'
8366 hpux*)
8367 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8368 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8369 # sets the default TLS model and affects inlining.
8370 case $host_cpu in
8371 hppa*64*)
8372 # +Z the default
8375 lt_prog_compiler_pic='-fPIC'
8377 esac
8380 interix[3-9]*)
8381 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8382 # Instead, we relocate shared libraries at runtime.
8385 msdosdjgpp*)
8386 # Just because we use GCC doesn't mean we suddenly get shared libraries
8387 # on systems that don't support them.
8388 lt_prog_compiler_can_build_shared=no
8389 enable_shared=no
8392 *nto* | *qnx*)
8393 # QNX uses GNU C++, but need to define -shared option too, otherwise
8394 # it will coredump.
8395 lt_prog_compiler_pic='-fPIC -shared'
8398 sysv4*MP*)
8399 if test -d /usr/nec; then
8400 lt_prog_compiler_pic=-Kconform_pic
8405 lt_prog_compiler_pic='-fPIC'
8407 esac
8408 else
8409 # PORTME Check for flag to pass linker flags through the system compiler.
8410 case $host_os in
8411 aix*)
8412 lt_prog_compiler_wl='-Wl,'
8413 if test "$host_cpu" = ia64; then
8414 # AIX 5 now supports IA64 processor
8415 lt_prog_compiler_static='-Bstatic'
8416 else
8417 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8421 mingw* | cygwin* | pw32* | os2* | cegcc*)
8422 # This hack is so that the source file can tell whether it is being
8423 # built for inclusion in a dll (and should export symbols for example).
8424 lt_prog_compiler_pic='-DDLL_EXPORT'
8427 hpux9* | hpux10* | hpux11*)
8428 lt_prog_compiler_wl='-Wl,'
8429 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8430 # not for PA HP-UX.
8431 case $host_cpu in
8432 hppa*64*|ia64*)
8433 # +Z the default
8436 lt_prog_compiler_pic='+Z'
8438 esac
8439 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8440 lt_prog_compiler_static='${wl}-a ${wl}archive'
8443 irix5* | irix6* | nonstopux*)
8444 lt_prog_compiler_wl='-Wl,'
8445 # PIC (with -KPIC) is the default.
8446 lt_prog_compiler_static='-non_shared'
8449 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8450 case $cc_basename in
8451 # old Intel for x86_64 which still supported -KPIC.
8452 ecc*)
8453 lt_prog_compiler_wl='-Wl,'
8454 lt_prog_compiler_pic='-KPIC'
8455 lt_prog_compiler_static='-static'
8457 # icc used to be incompatible with GCC.
8458 # ICC 10 doesn't accept -KPIC any more.
8459 icc* | ifort*)
8460 lt_prog_compiler_wl='-Wl,'
8461 lt_prog_compiler_pic='-fPIC'
8462 lt_prog_compiler_static='-static'
8464 # Lahey Fortran 8.1.
8465 lf95*)
8466 lt_prog_compiler_wl='-Wl,'
8467 lt_prog_compiler_pic='--shared'
8468 lt_prog_compiler_static='--static'
8470 pgcc* | pgf77* | pgf90* | pgf95*)
8471 # Portland Group compilers (*not* the Pentium gcc compiler,
8472 # which looks to be a dead project)
8473 lt_prog_compiler_wl='-Wl,'
8474 lt_prog_compiler_pic='-fpic'
8475 lt_prog_compiler_static='-Bstatic'
8477 ccc*)
8478 lt_prog_compiler_wl='-Wl,'
8479 # All Alpha code is PIC.
8480 lt_prog_compiler_static='-non_shared'
8482 xl*)
8483 # IBM XL C 8.0/Fortran 10.1 on PPC
8484 lt_prog_compiler_wl='-Wl,'
8485 lt_prog_compiler_pic='-qpic'
8486 lt_prog_compiler_static='-qstaticlink'
8489 case `$CC -V 2>&1 | sed 5q` in
8490 *Sun\ C*)
8491 # Sun C 5.9
8492 lt_prog_compiler_pic='-KPIC'
8493 lt_prog_compiler_static='-Bstatic'
8494 lt_prog_compiler_wl='-Wl,'
8496 *Sun\ F*)
8497 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8498 lt_prog_compiler_pic='-KPIC'
8499 lt_prog_compiler_static='-Bstatic'
8500 lt_prog_compiler_wl=''
8502 esac
8504 esac
8507 newsos6)
8508 lt_prog_compiler_pic='-KPIC'
8509 lt_prog_compiler_static='-Bstatic'
8512 *nto* | *qnx*)
8513 # QNX uses GNU C++, but need to define -shared option too, otherwise
8514 # it will coredump.
8515 lt_prog_compiler_pic='-fPIC -shared'
8518 osf3* | osf4* | osf5*)
8519 lt_prog_compiler_wl='-Wl,'
8520 # All OSF/1 code is PIC.
8521 lt_prog_compiler_static='-non_shared'
8524 rdos*)
8525 lt_prog_compiler_static='-non_shared'
8528 solaris*)
8529 lt_prog_compiler_pic='-KPIC'
8530 lt_prog_compiler_static='-Bstatic'
8531 case $cc_basename in
8532 f77* | f90* | f95*)
8533 lt_prog_compiler_wl='-Qoption ld ';;
8535 lt_prog_compiler_wl='-Wl,';;
8536 esac
8539 sunos4*)
8540 lt_prog_compiler_wl='-Qoption ld '
8541 lt_prog_compiler_pic='-PIC'
8542 lt_prog_compiler_static='-Bstatic'
8545 sysv4 | sysv4.2uw2* | sysv4.3*)
8546 lt_prog_compiler_wl='-Wl,'
8547 lt_prog_compiler_pic='-KPIC'
8548 lt_prog_compiler_static='-Bstatic'
8551 sysv4*MP*)
8552 if test -d /usr/nec ;then
8553 lt_prog_compiler_pic='-Kconform_pic'
8554 lt_prog_compiler_static='-Bstatic'
8558 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8559 lt_prog_compiler_wl='-Wl,'
8560 lt_prog_compiler_pic='-KPIC'
8561 lt_prog_compiler_static='-Bstatic'
8564 unicos*)
8565 lt_prog_compiler_wl='-Wl,'
8566 lt_prog_compiler_can_build_shared=no
8569 uts4*)
8570 lt_prog_compiler_pic='-pic'
8571 lt_prog_compiler_static='-Bstatic'
8575 lt_prog_compiler_can_build_shared=no
8577 esac
8580 case $host_os in
8581 # For platforms which do not support PIC, -DPIC is meaningless:
8582 *djgpp*)
8583 lt_prog_compiler_pic=
8586 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8588 esac
8589 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8590 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8598 # Check to make sure the PIC flag actually works.
8600 if test -n "$lt_prog_compiler_pic"; then
8601 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8602 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8603 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606 lt_cv_prog_compiler_pic_works=no
8607 ac_outfile=conftest.$ac_objext
8608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8609 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8610 # Insert the option either (1) after the last *FLAGS variable, or
8611 # (2) before a word containing "conftest.", or (3) at the end.
8612 # Note that $ac_compile itself does not contain backslashes and begins
8613 # with a dollar sign (not a hyphen), so the echo should work correctly.
8614 # The option is referenced via a variable to avoid confusing sed.
8615 lt_compile=`echo "$ac_compile" | $SED \
8616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8618 -e 's:$: $lt_compiler_flag:'`
8619 (eval echo "\"\$as_me:8619: $lt_compile\"" >&5)
8620 (eval "$lt_compile" 2>conftest.err)
8621 ac_status=$?
8622 cat conftest.err >&5
8623 echo "$as_me:8623: \$? = $ac_status" >&5
8624 if (exit $ac_status) && test -s "$ac_outfile"; then
8625 # The compiler can only warn and ignore the option if not recognized
8626 # So say no if there are warnings other than the usual output.
8627 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8628 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8629 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8630 lt_cv_prog_compiler_pic_works=yes
8633 $RM conftest*
8636 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8637 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8639 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8640 case $lt_prog_compiler_pic in
8641 "" | " "*) ;;
8642 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8643 esac
8644 else
8645 lt_prog_compiler_pic=
8646 lt_prog_compiler_can_build_shared=no
8657 # Check to make sure the static flag actually works.
8659 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8660 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8661 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8662 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665 lt_cv_prog_compiler_static_works=no
8666 save_LDFLAGS="$LDFLAGS"
8667 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8668 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8669 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8670 # The linker can only warn and ignore the option if not recognized
8671 # So say no if there are warnings
8672 if test -s conftest.err; then
8673 # Append any errors to the config.log.
8674 cat conftest.err 1>&5
8675 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8677 if diff conftest.exp conftest.er2 >/dev/null; then
8678 lt_cv_prog_compiler_static_works=yes
8680 else
8681 lt_cv_prog_compiler_static_works=yes
8684 $RM -r conftest*
8685 LDFLAGS="$save_LDFLAGS"
8688 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8689 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8691 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8693 else
8694 lt_prog_compiler_static=
8703 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8704 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8705 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8707 else
8708 lt_cv_prog_compiler_c_o=no
8709 $RM -r conftest 2>/dev/null
8710 mkdir conftest
8711 cd conftest
8712 mkdir out
8713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8715 lt_compiler_flag="-o out/conftest2.$ac_objext"
8716 # Insert the option either (1) after the last *FLAGS variable, or
8717 # (2) before a word containing "conftest.", or (3) at the end.
8718 # Note that $ac_compile itself does not contain backslashes and begins
8719 # with a dollar sign (not a hyphen), so the echo should work correctly.
8720 lt_compile=`echo "$ac_compile" | $SED \
8721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8723 -e 's:$: $lt_compiler_flag:'`
8724 (eval echo "\"\$as_me:8724: $lt_compile\"" >&5)
8725 (eval "$lt_compile" 2>out/conftest.err)
8726 ac_status=$?
8727 cat out/conftest.err >&5
8728 echo "$as_me:8728: \$? = $ac_status" >&5
8729 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8730 then
8731 # The compiler can only warn and ignore the option if not recognized
8732 # So say no if there are warnings
8733 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8734 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8735 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8736 lt_cv_prog_compiler_c_o=yes
8739 chmod u+w . 2>&5
8740 $RM conftest*
8741 # SGI C++ compiler will create directory out/ii_files/ for
8742 # template instantiation
8743 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8744 $RM out/* && rmdir out
8745 cd ..
8746 $RM -r conftest
8747 $RM conftest*
8750 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8751 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8758 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8759 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8760 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 else
8763 lt_cv_prog_compiler_c_o=no
8764 $RM -r conftest 2>/dev/null
8765 mkdir conftest
8766 cd conftest
8767 mkdir out
8768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8770 lt_compiler_flag="-o out/conftest2.$ac_objext"
8771 # Insert the option either (1) after the last *FLAGS variable, or
8772 # (2) before a word containing "conftest.", or (3) at the end.
8773 # Note that $ac_compile itself does not contain backslashes and begins
8774 # with a dollar sign (not a hyphen), so the echo should work correctly.
8775 lt_compile=`echo "$ac_compile" | $SED \
8776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8778 -e 's:$: $lt_compiler_flag:'`
8779 (eval echo "\"\$as_me:8779: $lt_compile\"" >&5)
8780 (eval "$lt_compile" 2>out/conftest.err)
8781 ac_status=$?
8782 cat out/conftest.err >&5
8783 echo "$as_me:8783: \$? = $ac_status" >&5
8784 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8785 then
8786 # The compiler can only warn and ignore the option if not recognized
8787 # So say no if there are warnings
8788 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8789 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8790 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8791 lt_cv_prog_compiler_c_o=yes
8794 chmod u+w . 2>&5
8795 $RM conftest*
8796 # SGI C++ compiler will create directory out/ii_files/ for
8797 # template instantiation
8798 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8799 $RM out/* && rmdir out
8800 cd ..
8801 $RM -r conftest
8802 $RM conftest*
8805 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8806 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8811 hard_links="nottested"
8812 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8813 # do not overwrite the value of need_locks provided by the user
8814 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8815 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8816 hard_links=yes
8817 $RM conftest*
8818 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8819 touch conftest.a
8820 ln conftest.a conftest.b 2>&5 || hard_links=no
8821 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8822 echo "$as_me:$LINENO: result: $hard_links" >&5
8823 echo "${ECHO_T}$hard_links" >&6
8824 if test "$hard_links" = no; then
8825 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8826 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8827 need_locks=warn
8829 else
8830 need_locks=no
8838 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8839 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8841 runpath_var=
8842 allow_undefined_flag=
8843 always_export_symbols=no
8844 archive_cmds=
8845 archive_expsym_cmds=
8846 compiler_needs_object=no
8847 enable_shared_with_static_runtimes=no
8848 export_dynamic_flag_spec=
8849 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8850 hardcode_automatic=no
8851 hardcode_direct=no
8852 hardcode_direct_absolute=no
8853 hardcode_libdir_flag_spec=
8854 hardcode_libdir_flag_spec_ld=
8855 hardcode_libdir_separator=
8856 hardcode_minus_L=no
8857 hardcode_shlibpath_var=unsupported
8858 inherit_rpath=no
8859 link_all_deplibs=unknown
8860 module_cmds=
8861 module_expsym_cmds=
8862 old_archive_from_new_cmds=
8863 old_archive_from_expsyms_cmds=
8864 thread_safe_flag_spec=
8865 whole_archive_flag_spec=
8866 # include_expsyms should be a list of space-separated symbols to be *always*
8867 # included in the symbol list
8868 include_expsyms=
8869 # exclude_expsyms can be an extended regexp of symbols to exclude
8870 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8871 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8872 # as well as any symbol that contains `d'.
8873 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8874 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8875 # platforms (ab)use it in PIC code, but their linkers get confused if
8876 # the symbol is explicitly referenced. Since portable code cannot
8877 # rely on this symbol name, it's probably fine to never include it in
8878 # preloaded symbol tables.
8879 # Exclude shared library initialization/finalization symbols.
8880 extract_expsyms_cmds=
8882 case $host_os in
8883 cygwin* | mingw* | pw32* | cegcc*)
8884 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8885 # When not using gcc, we currently assume that we are using
8886 # Microsoft Visual C++.
8887 if test "$GCC" != yes; then
8888 with_gnu_ld=no
8891 interix*)
8892 # we just hope/assume this is gcc and not c89 (= MSVC++)
8893 with_gnu_ld=yes
8895 openbsd*)
8896 with_gnu_ld=no
8898 esac
8900 ld_shlibs=yes
8901 if test "$with_gnu_ld" = yes; then
8902 # If archive_cmds runs LD, not CC, wlarc should be empty
8903 wlarc='${wl}'
8905 # Set some defaults for GNU ld with shared library support. These
8906 # are reset later if shared libraries are not supported. Putting them
8907 # here allows them to be overridden if necessary.
8908 runpath_var=LD_RUN_PATH
8909 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8910 export_dynamic_flag_spec='${wl}--export-dynamic'
8911 # ancient GNU ld didn't support --whole-archive et. al.
8912 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8913 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8914 else
8915 whole_archive_flag_spec=
8917 supports_anon_versioning=no
8918 case `$LD -v 2>&1` in
8919 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8920 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8921 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8922 *\ 2.11.*) ;; # other 2.11 versions
8923 *) supports_anon_versioning=yes ;;
8924 esac
8926 # See if GNU ld supports shared libraries.
8927 case $host_os in
8928 aix[3-9]*)
8929 # On AIX/PPC, the GNU linker is very broken
8930 if test "$host_cpu" != ia64; then
8931 ld_shlibs=no
8932 cat <<_LT_EOF 1>&2
8934 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8935 *** to be unable to reliably create shared libraries on AIX.
8936 *** Therefore, libtool is disabling shared libraries support. If you
8937 *** really care for shared libraries, you may want to modify your PATH
8938 *** so that a non-GNU linker is found, and then restart.
8940 _LT_EOF
8944 amigaos*)
8945 case $host_cpu in
8946 powerpc)
8947 # see comment about AmigaOS4 .so support
8948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8949 archive_expsym_cmds=''
8951 m68k)
8952 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)'
8953 hardcode_libdir_flag_spec='-L$libdir'
8954 hardcode_minus_L=yes
8956 esac
8959 beos*)
8960 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8961 allow_undefined_flag=unsupported
8962 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8963 # support --undefined. This deserves some investigation. FIXME
8964 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8965 else
8966 ld_shlibs=no
8970 cygwin* | mingw* | pw32* | cegcc*)
8971 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8972 # as there is no search path for DLLs.
8973 hardcode_libdir_flag_spec='-L$libdir'
8974 allow_undefined_flag=unsupported
8975 always_export_symbols=no
8976 enable_shared_with_static_runtimes=yes
8977 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8979 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8981 # If the export-symbols file already is a .def file (1st line
8982 # is EXPORTS), use it as is; otherwise, prepend...
8983 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8984 cp $export_symbols $output_objdir/$soname.def;
8985 else
8986 echo EXPORTS > $output_objdir/$soname.def;
8987 cat $export_symbols >> $output_objdir/$soname.def;
8989 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8990 else
8991 ld_shlibs=no
8995 interix[3-9]*)
8996 hardcode_direct=no
8997 hardcode_shlibpath_var=no
8998 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8999 export_dynamic_flag_spec='${wl}-E'
9000 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9001 # Instead, shared libraries are loaded at an image base (0x10000000 by
9002 # default) and relocated if they conflict, which is a slow very memory
9003 # consuming and fragmenting process. To avoid this, we pick a random,
9004 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9005 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9006 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9007 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9010 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9011 tmp_diet=no
9012 if test "$host_os" = linux-dietlibc; then
9013 case $cc_basename in
9014 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9015 esac
9017 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9018 && test "$tmp_diet" = no
9019 then
9020 tmp_addflag=
9021 tmp_sharedflag='-shared'
9022 case $cc_basename,$host_cpu in
9023 pgcc*) # Portland Group C compiler
9024 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9025 tmp_addflag=' $pic_flag'
9027 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9028 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9029 tmp_addflag=' $pic_flag -Mnomain' ;;
9030 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9031 tmp_addflag=' -i_dynamic' ;;
9032 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9033 tmp_addflag=' -i_dynamic -nofor_main' ;;
9034 ifc* | ifort*) # Intel Fortran compiler
9035 tmp_addflag=' -nofor_main' ;;
9036 lf95*) # Lahey Fortran 8.1
9037 whole_archive_flag_spec=
9038 tmp_sharedflag='--shared' ;;
9039 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9040 tmp_sharedflag='-qmkshrobj'
9041 tmp_addflag= ;;
9042 esac
9043 case `$CC -V 2>&1 | sed 5q` in
9044 *Sun\ C*) # Sun C 5.9
9045 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9046 compiler_needs_object=yes
9047 tmp_sharedflag='-G' ;;
9048 *Sun\ F*) # Sun Fortran 8.3
9049 tmp_sharedflag='-G' ;;
9050 esac
9051 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9053 if test "x$supports_anon_versioning" = xyes; then
9054 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9055 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9056 echo "local: *; };" >> $output_objdir/$libname.ver~
9057 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9060 case $cc_basename in
9061 xlf*)
9062 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9063 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9064 hardcode_libdir_flag_spec=
9065 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9066 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9067 if test "x$supports_anon_versioning" = xyes; then
9068 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9069 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9070 echo "local: *; };" >> $output_objdir/$libname.ver~
9071 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9074 esac
9075 else
9076 ld_shlibs=no
9080 netbsd*)
9081 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9082 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9083 wlarc=
9084 else
9085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9086 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9090 solaris*)
9091 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9092 ld_shlibs=no
9093 cat <<_LT_EOF 1>&2
9095 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9096 *** create shared libraries on Solaris systems. Therefore, libtool
9097 *** is disabling shared libraries support. We urge you to upgrade GNU
9098 *** binutils to release 2.9.1 or newer. Another option is to modify
9099 *** your PATH or compiler configuration so that the native linker is
9100 *** used, and then restart.
9102 _LT_EOF
9103 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9105 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9106 else
9107 ld_shlibs=no
9111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9112 case `$LD -v 2>&1` in
9113 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9114 ld_shlibs=no
9115 cat <<_LT_EOF 1>&2
9117 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9118 *** reliably create shared libraries on SCO systems. Therefore, libtool
9119 *** is disabling shared libraries support. We urge you to upgrade GNU
9120 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9121 *** your PATH or compiler configuration so that the native linker is
9122 *** used, and then restart.
9124 _LT_EOF
9127 # For security reasons, it is highly recommended that you always
9128 # use absolute paths for naming shared libraries, and exclude the
9129 # DT_RUNPATH tag from executables and libraries. But doing so
9130 # requires that you compile everything twice, which is a pain.
9131 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9132 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9134 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9135 else
9136 ld_shlibs=no
9139 esac
9142 sunos4*)
9143 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9144 wlarc=
9145 hardcode_direct=yes
9146 hardcode_shlibpath_var=no
9150 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9152 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9153 else
9154 ld_shlibs=no
9157 esac
9159 if test "$ld_shlibs" = no; then
9160 runpath_var=
9161 hardcode_libdir_flag_spec=
9162 export_dynamic_flag_spec=
9163 whole_archive_flag_spec=
9165 else
9166 # PORTME fill in a description of your system's linker (not GNU ld)
9167 case $host_os in
9168 aix3*)
9169 allow_undefined_flag=unsupported
9170 always_export_symbols=yes
9171 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'
9172 # Note: this linker hardcodes the directories in LIBPATH if there
9173 # are no directories specified by -L.
9174 hardcode_minus_L=yes
9175 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9176 # Neither direct hardcoding nor static linking is supported with a
9177 # broken collect2.
9178 hardcode_direct=unsupported
9182 aix[4-9]*)
9183 if test "$host_cpu" = ia64; then
9184 # On IA64, the linker does run time linking by default, so we don't
9185 # have to do anything special.
9186 aix_use_runtimelinking=no
9187 exp_sym_flag='-Bexport'
9188 no_entry_flag=""
9189 else
9190 # If we're using GNU nm, then we don't want the "-C" option.
9191 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9192 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9193 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'
9194 else
9195 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'
9197 aix_use_runtimelinking=no
9199 # Test if we are trying to use run time linking or normal
9200 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9201 # need to do runtime linking.
9202 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9203 for ld_flag in $LDFLAGS; do
9204 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9205 aix_use_runtimelinking=yes
9206 break
9208 done
9210 esac
9212 exp_sym_flag='-bexport'
9213 no_entry_flag='-bnoentry'
9216 # When large executables or shared objects are built, AIX ld can
9217 # have problems creating the table of contents. If linking a library
9218 # or program results in "error TOC overflow" add -mminimal-toc to
9219 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9220 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9222 archive_cmds=''
9223 hardcode_direct=yes
9224 hardcode_direct_absolute=yes
9225 hardcode_libdir_separator=':'
9226 link_all_deplibs=yes
9227 file_list_spec='${wl}-f,'
9229 if test "$GCC" = yes; then
9230 case $host_os in aix4.[012]|aix4.[012].*)
9231 # We only want to do this on AIX 4.2 and lower, the check
9232 # below for broken collect2 doesn't work under 4.3+
9233 collect2name=`${CC} -print-prog-name=collect2`
9234 if test -f "$collect2name" &&
9235 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9236 then
9237 # We have reworked collect2
9239 else
9240 # We have old collect2
9241 hardcode_direct=unsupported
9242 # It fails to find uninstalled libraries when the uninstalled
9243 # path is not listed in the libpath. Setting hardcode_minus_L
9244 # to unsupported forces relinking
9245 hardcode_minus_L=yes
9246 hardcode_libdir_flag_spec='-L$libdir'
9247 hardcode_libdir_separator=
9250 esac
9251 shared_flag='-shared'
9252 if test "$aix_use_runtimelinking" = yes; then
9253 shared_flag="$shared_flag "'${wl}-G'
9255 else
9256 # not using gcc
9257 if test "$host_cpu" = ia64; then
9258 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9259 # chokes on -Wl,-G. The following line is correct:
9260 shared_flag='-G'
9261 else
9262 if test "$aix_use_runtimelinking" = yes; then
9263 shared_flag='${wl}-G'
9264 else
9265 shared_flag='${wl}-bM:SRE'
9270 export_dynamic_flag_spec='${wl}-bexpall'
9271 # It seems that -bexpall does not export symbols beginning with
9272 # underscore (_), so it is better to generate a list of symbols to export.
9273 always_export_symbols=yes
9274 if test "$aix_use_runtimelinking" = yes; then
9275 # Warning - without using the other runtime loading flags (-brtl),
9276 # -berok will link without error, but may produce a broken library.
9277 allow_undefined_flag='-berok'
9278 # Determine the default libpath from the value encoded in an
9279 # empty executable.
9280 if test x$gcc_no_link = xyes; then
9281 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9282 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9283 { (exit 1); exit 1; }; }
9285 cat >conftest.$ac_ext <<_ACEOF
9286 /* confdefs.h. */
9287 _ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9293 main ()
9297 return 0;
9299 _ACEOF
9300 rm -f conftest.$ac_objext conftest$ac_exeext
9301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9302 (eval $ac_link) 2>conftest.er1
9303 ac_status=$?
9304 grep -v '^ *+' conftest.er1 >conftest.err
9305 rm -f conftest.er1
9306 cat conftest.err >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } &&
9309 { ac_try='test -z "$ac_c_werror_flag"
9310 || test ! -s conftest.err'
9311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312 (eval $ac_try) 2>&5
9313 ac_status=$?
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); }; } &&
9316 { ac_try='test -s conftest$ac_exeext'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 (eval $ac_try) 2>&5
9319 ac_status=$?
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9323 lt_aix_libpath_sed='
9324 /Import File Strings/,/^$/ {
9325 /^0/ {
9326 s/^0 *\(.*\)$/\1/
9330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9331 # Check for a 64-bit object if we didn't find anything.
9332 if test -z "$aix_libpath"; then
9333 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9335 else
9336 echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9340 rm -f conftest.err conftest.$ac_objext \
9341 conftest$ac_exeext conftest.$ac_ext
9342 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9344 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9345 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9346 else
9347 if test "$host_cpu" = ia64; then
9348 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9349 allow_undefined_flag="-z nodefs"
9350 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9351 else
9352 # Determine the default libpath from the value encoded in an
9353 # empty executable.
9354 if test x$gcc_no_link = xyes; then
9355 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9356 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9357 { (exit 1); exit 1; }; }
9359 cat >conftest.$ac_ext <<_ACEOF
9360 /* confdefs.h. */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9367 main ()
9371 return 0;
9373 _ACEOF
9374 rm -f conftest.$ac_objext conftest$ac_exeext
9375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9376 (eval $ac_link) 2>conftest.er1
9377 ac_status=$?
9378 grep -v '^ *+' conftest.er1 >conftest.err
9379 rm -f conftest.er1
9380 cat conftest.err >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } &&
9383 { ac_try='test -z "$ac_c_werror_flag"
9384 || test ! -s conftest.err'
9385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 (eval $ac_try) 2>&5
9387 ac_status=$?
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); }; } &&
9390 { ac_try='test -s conftest$ac_exeext'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 (eval $ac_try) 2>&5
9393 ac_status=$?
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; }; then
9397 lt_aix_libpath_sed='
9398 /Import File Strings/,/^$/ {
9399 /^0/ {
9400 s/^0 *\(.*\)$/\1/
9404 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9405 # Check for a 64-bit object if we didn't find anything.
9406 if test -z "$aix_libpath"; then
9407 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9409 else
9410 echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9414 rm -f conftest.err conftest.$ac_objext \
9415 conftest$ac_exeext conftest.$ac_ext
9416 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9418 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9419 # Warning - without using the other run time loading flags,
9420 # -berok will link without error, but may produce a broken library.
9421 no_undefined_flag=' ${wl}-bernotok'
9422 allow_undefined_flag=' ${wl}-berok'
9423 # Exported symbols can be pulled into shared objects from archives
9424 whole_archive_flag_spec='$convenience'
9425 archive_cmds_need_lc=yes
9426 # This is similar to how AIX traditionally builds its shared libraries.
9427 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9432 amigaos*)
9433 case $host_cpu in
9434 powerpc)
9435 # see comment about AmigaOS4 .so support
9436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9437 archive_expsym_cmds=''
9439 m68k)
9440 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)'
9441 hardcode_libdir_flag_spec='-L$libdir'
9442 hardcode_minus_L=yes
9444 esac
9447 bsdi[45]*)
9448 export_dynamic_flag_spec=-rdynamic
9451 cygwin* | mingw* | pw32* | cegcc*)
9452 # When not using gcc, we currently assume that we are using
9453 # Microsoft Visual C++.
9454 # hardcode_libdir_flag_spec is actually meaningless, as there is
9455 # no search path for DLLs.
9456 hardcode_libdir_flag_spec=' '
9457 allow_undefined_flag=unsupported
9458 # Tell ltmain to make .lib files, not .a files.
9459 libext=lib
9460 # Tell ltmain to make .dll files, not .so files.
9461 shrext_cmds=".dll"
9462 # FIXME: Setting linknames here is a bad hack.
9463 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9464 # The linker will automatically build a .lib file if we build a DLL.
9465 old_archive_from_new_cmds='true'
9466 # FIXME: Should let the user specify the lib program.
9467 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9468 fix_srcfile_path='`cygpath -w "$srcfile"`'
9469 enable_shared_with_static_runtimes=yes
9472 darwin* | rhapsody*)
9475 archive_cmds_need_lc=no
9476 hardcode_direct=no
9477 hardcode_automatic=yes
9478 hardcode_shlibpath_var=unsupported
9479 whole_archive_flag_spec=''
9480 link_all_deplibs=yes
9481 allow_undefined_flag="$_lt_dar_allow_undefined"
9482 case $cc_basename in
9483 ifort*) _lt_dar_can_shared=yes ;;
9484 *) _lt_dar_can_shared=$GCC ;;
9485 esac
9486 if test "$_lt_dar_can_shared" = "yes"; then
9487 output_verbose_link_cmd=echo
9488 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9489 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9490 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9491 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9493 else
9494 ld_shlibs=no
9499 dgux*)
9500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9501 hardcode_libdir_flag_spec='-L$libdir'
9502 hardcode_shlibpath_var=no
9505 freebsd1*)
9506 ld_shlibs=no
9509 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9510 # support. Future versions do this automatically, but an explicit c++rt0.o
9511 # does not break anything, and helps significantly (at the cost of a little
9512 # extra space).
9513 freebsd2.2*)
9514 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9515 hardcode_libdir_flag_spec='-R$libdir'
9516 hardcode_direct=yes
9517 hardcode_shlibpath_var=no
9520 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9521 freebsd2*)
9522 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9523 hardcode_direct=yes
9524 hardcode_minus_L=yes
9525 hardcode_shlibpath_var=no
9528 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9529 freebsd* | dragonfly*)
9530 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9531 hardcode_libdir_flag_spec='-R$libdir'
9532 hardcode_direct=yes
9533 hardcode_shlibpath_var=no
9536 hpux9*)
9537 if test "$GCC" = yes; then
9538 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'
9539 else
9540 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'
9542 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9543 hardcode_libdir_separator=:
9544 hardcode_direct=yes
9546 # hardcode_minus_L: Not really in the search PATH,
9547 # but as the default location of the library.
9548 hardcode_minus_L=yes
9549 export_dynamic_flag_spec='${wl}-E'
9552 hpux10*)
9553 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9554 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9555 else
9556 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9558 if test "$with_gnu_ld" = no; then
9559 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9560 hardcode_libdir_flag_spec_ld='+b $libdir'
9561 hardcode_libdir_separator=:
9562 hardcode_direct=yes
9563 hardcode_direct_absolute=yes
9564 export_dynamic_flag_spec='${wl}-E'
9565 # hardcode_minus_L: Not really in the search PATH,
9566 # but as the default location of the library.
9567 hardcode_minus_L=yes
9571 hpux11*)
9572 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9573 case $host_cpu in
9574 hppa*64*)
9575 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9577 ia64*)
9578 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9581 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9583 esac
9584 else
9585 case $host_cpu in
9586 hppa*64*)
9587 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9589 ia64*)
9590 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9593 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9595 esac
9597 if test "$with_gnu_ld" = no; then
9598 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9599 hardcode_libdir_separator=:
9601 case $host_cpu in
9602 hppa*64*|ia64*)
9603 hardcode_direct=no
9604 hardcode_shlibpath_var=no
9607 hardcode_direct=yes
9608 hardcode_direct_absolute=yes
9609 export_dynamic_flag_spec='${wl}-E'
9611 # hardcode_minus_L: Not really in the search PATH,
9612 # but as the default location of the library.
9613 hardcode_minus_L=yes
9615 esac
9619 irix5* | irix6* | nonstopux*)
9620 if test "$GCC" = yes; then
9621 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9622 # Try to use the -exported_symbol ld option, if it does not
9623 # work, assume that -exports_file does not work either and
9624 # implicitly export all symbols.
9625 save_LDFLAGS="$LDFLAGS"
9626 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9627 if test x$gcc_no_link = xyes; then
9628 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9629 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9630 { (exit 1); exit 1; }; }
9632 cat >conftest.$ac_ext <<_ACEOF
9633 int foo(void) {}
9634 _ACEOF
9635 rm -f conftest.$ac_objext conftest$ac_exeext
9636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9637 (eval $ac_link) 2>conftest.er1
9638 ac_status=$?
9639 grep -v '^ *+' conftest.er1 >conftest.err
9640 rm -f conftest.er1
9641 cat conftest.err >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } &&
9644 { ac_try='test -z "$ac_c_werror_flag"
9645 || test ! -s conftest.err'
9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 (eval $ac_try) 2>&5
9648 ac_status=$?
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; } &&
9651 { ac_try='test -s conftest$ac_exeext'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653 (eval $ac_try) 2>&5
9654 ac_status=$?
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; }; then
9657 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9659 else
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9664 rm -f conftest.err conftest.$ac_objext \
9665 conftest$ac_exeext conftest.$ac_ext
9666 LDFLAGS="$save_LDFLAGS"
9667 else
9668 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9669 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9671 archive_cmds_need_lc='no'
9672 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9673 hardcode_libdir_separator=:
9674 inherit_rpath=yes
9675 link_all_deplibs=yes
9678 netbsd*)
9679 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9680 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9681 else
9682 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9684 hardcode_libdir_flag_spec='-R$libdir'
9685 hardcode_direct=yes
9686 hardcode_shlibpath_var=no
9689 newsos6)
9690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691 hardcode_direct=yes
9692 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9693 hardcode_libdir_separator=:
9694 hardcode_shlibpath_var=no
9697 *nto* | *qnx*)
9700 openbsd*)
9701 if test -f /usr/libexec/ld.so; then
9702 hardcode_direct=yes
9703 hardcode_shlibpath_var=no
9704 hardcode_direct_absolute=yes
9705 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9706 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9707 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9708 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9709 export_dynamic_flag_spec='${wl}-E'
9710 else
9711 case $host_os in
9712 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9713 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9714 hardcode_libdir_flag_spec='-R$libdir'
9717 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9718 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9720 esac
9722 else
9723 ld_shlibs=no
9727 os2*)
9728 hardcode_libdir_flag_spec='-L$libdir'
9729 hardcode_minus_L=yes
9730 allow_undefined_flag=unsupported
9731 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'
9732 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9735 osf3*)
9736 if test "$GCC" = yes; then
9737 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9738 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9739 else
9740 allow_undefined_flag=' -expect_unresolved \*'
9741 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9743 archive_cmds_need_lc='no'
9744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9745 hardcode_libdir_separator=:
9748 osf4* | osf5*) # as osf3* with the addition of -msym flag
9749 if test "$GCC" = yes; then
9750 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9751 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9752 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9753 else
9754 allow_undefined_flag=' -expect_unresolved \*'
9755 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9756 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9757 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9759 # Both c and cxx compiler support -rpath directly
9760 hardcode_libdir_flag_spec='-rpath $libdir'
9762 archive_cmds_need_lc='no'
9763 hardcode_libdir_separator=:
9766 solaris*)
9767 no_undefined_flag=' -z defs'
9768 if test "$GCC" = yes; then
9769 wlarc='${wl}'
9770 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9771 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9772 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9773 else
9774 case `$CC -V 2>&1` in
9775 *"Compilers 5.0"*)
9776 wlarc=''
9777 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9778 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9779 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9782 wlarc='${wl}'
9783 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9784 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9785 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9787 esac
9789 hardcode_libdir_flag_spec='-R$libdir'
9790 hardcode_shlibpath_var=no
9791 case $host_os in
9792 solaris2.[0-5] | solaris2.[0-5].*) ;;
9794 # The compiler driver will combine and reorder linker options,
9795 # but understands `-z linker_flag'. GCC discards it without `$wl',
9796 # but is careful enough not to reorder.
9797 # Supported since Solaris 2.6 (maybe 2.5.1?)
9798 if test "$GCC" = yes; then
9799 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9800 else
9801 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9804 esac
9805 link_all_deplibs=yes
9808 sunos4*)
9809 if test "x$host_vendor" = xsequent; then
9810 # Use $CC to link under sequent, because it throws in some extra .o
9811 # files that make .init and .fini sections work.
9812 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9813 else
9814 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9816 hardcode_libdir_flag_spec='-L$libdir'
9817 hardcode_direct=yes
9818 hardcode_minus_L=yes
9819 hardcode_shlibpath_var=no
9822 sysv4)
9823 case $host_vendor in
9824 sni)
9825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9826 hardcode_direct=yes # is this really true???
9828 siemens)
9829 ## LD is ld it makes a PLAMLIB
9830 ## CC just makes a GrossModule.
9831 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9832 reload_cmds='$CC -r -o $output$reload_objs'
9833 hardcode_direct=no
9835 motorola)
9836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9837 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9839 esac
9840 runpath_var='LD_RUN_PATH'
9841 hardcode_shlibpath_var=no
9844 sysv4.3*)
9845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9846 hardcode_shlibpath_var=no
9847 export_dynamic_flag_spec='-Bexport'
9850 sysv4*MP*)
9851 if test -d /usr/nec; then
9852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9853 hardcode_shlibpath_var=no
9854 runpath_var=LD_RUN_PATH
9855 hardcode_runpath_var=yes
9856 ld_shlibs=yes
9860 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9861 no_undefined_flag='${wl}-z,text'
9862 archive_cmds_need_lc=no
9863 hardcode_shlibpath_var=no
9864 runpath_var='LD_RUN_PATH'
9866 if test "$GCC" = yes; then
9867 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9868 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9869 else
9870 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9871 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9875 sysv5* | sco3.2v5* | sco5v6*)
9876 # Note: We can NOT use -z defs as we might desire, because we do not
9877 # link with -lc, and that would cause any symbols used from libc to
9878 # always be unresolved, which means just about no library would
9879 # ever link correctly. If we're not using GNU ld we use -z text
9880 # though, which does catch some bad symbols but isn't as heavy-handed
9881 # as -z defs.
9882 no_undefined_flag='${wl}-z,text'
9883 allow_undefined_flag='${wl}-z,nodefs'
9884 archive_cmds_need_lc=no
9885 hardcode_shlibpath_var=no
9886 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9887 hardcode_libdir_separator=':'
9888 link_all_deplibs=yes
9889 export_dynamic_flag_spec='${wl}-Bexport'
9890 runpath_var='LD_RUN_PATH'
9892 if test "$GCC" = yes; then
9893 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9894 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9895 else
9896 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9897 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9901 uts4*)
9902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903 hardcode_libdir_flag_spec='-L$libdir'
9904 hardcode_shlibpath_var=no
9908 ld_shlibs=no
9910 esac
9912 if test x$host_vendor = xsni; then
9913 case $host in
9914 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9915 export_dynamic_flag_spec='${wl}-Blargedynsym'
9917 esac
9921 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9922 echo "${ECHO_T}$ld_shlibs" >&6
9923 test "$ld_shlibs" = no && can_build_shared=no
9925 with_gnu_ld=$with_gnu_ld
9942 # Do we need to explicitly link libc?
9944 case "x$archive_cmds_need_lc" in
9945 x|xyes)
9946 # Assume -lc should be added
9947 archive_cmds_need_lc=yes
9949 if test "$enable_shared" = yes && test "$GCC" = yes; then
9950 case $archive_cmds in
9951 *'~'*)
9952 # FIXME: we may have to deal with multi-command sequences.
9954 '$CC '*)
9955 # Test whether the compiler implicitly links with -lc since on some
9956 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9957 # to ld, don't add -lc before -lgcc.
9958 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9959 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9960 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963 $RM conftest*
9964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9967 (eval $ac_compile) 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } 2>conftest.err; then
9971 soname=conftest
9972 lib=conftest
9973 libobjs=conftest.$ac_objext
9974 deplibs=
9975 wl=$lt_prog_compiler_wl
9976 pic_flag=$lt_prog_compiler_pic
9977 compiler_flags=-v
9978 linker_flags=-v
9979 verstring=
9980 output_objdir=.
9981 libname=conftest
9982 lt_save_allow_undefined_flag=$allow_undefined_flag
9983 allow_undefined_flag=
9984 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9985 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }
9989 then
9990 lt_cv_archive_cmds_need_lc=no
9991 else
9992 lt_cv_archive_cmds_need_lc=yes
9994 allow_undefined_flag=$lt_save_allow_undefined_flag
9995 else
9996 cat conftest.err 1>&5
9998 $RM conftest*
10001 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10002 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
10003 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10005 esac
10008 esac
10166 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10167 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10169 if test "$GCC" = yes; then
10170 case $host_os in
10171 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10172 *) lt_awk_arg="/^libraries:/" ;;
10173 esac
10174 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10175 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10176 # if the path contains ";" then we assume it to be the separator
10177 # otherwise default to the standard path separator (i.e. ":") - it is
10178 # assumed that no part of a normal pathname contains ";" but that should
10179 # okay in the real world where ";" in dirpaths is itself problematic.
10180 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10181 else
10182 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10184 # Ok, now we have the path, separated by spaces, we can step through it
10185 # and add multilib dir if necessary.
10186 lt_tmp_lt_search_path_spec=
10187 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10188 for lt_sys_path in $lt_search_path_spec; do
10189 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10190 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10191 else
10192 test -d "$lt_sys_path" && \
10193 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10195 done
10196 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10197 BEGIN {RS=" "; FS="/|\n";} {
10198 lt_foo="";
10199 lt_count=0;
10200 for (lt_i = NF; lt_i > 0; lt_i--) {
10201 if ($lt_i != "" && $lt_i != ".") {
10202 if ($lt_i == "..") {
10203 lt_count++;
10204 } else {
10205 if (lt_count == 0) {
10206 lt_foo="/" $lt_i lt_foo;
10207 } else {
10208 lt_count--;
10213 if (lt_foo != "") { lt_freq[lt_foo]++; }
10214 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10216 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10217 else
10218 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10220 library_names_spec=
10221 libname_spec='lib$name'
10222 soname_spec=
10223 shrext_cmds=".so"
10224 postinstall_cmds=
10225 postuninstall_cmds=
10226 finish_cmds=
10227 finish_eval=
10228 shlibpath_var=
10229 shlibpath_overrides_runpath=unknown
10230 version_type=none
10231 dynamic_linker="$host_os ld.so"
10232 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10233 need_lib_prefix=unknown
10234 hardcode_into_libs=no
10236 # when you set need_version to no, make sure it does not cause -set_version
10237 # flags to be left without arguments
10238 need_version=unknown
10240 case $host_os in
10241 aix3*)
10242 version_type=linux
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10244 shlibpath_var=LIBPATH
10246 # AIX 3 has no versioning support, so we append a major version to the name.
10247 soname_spec='${libname}${release}${shared_ext}$major'
10250 aix[4-9]*)
10251 version_type=linux
10252 need_lib_prefix=no
10253 need_version=no
10254 hardcode_into_libs=yes
10255 if test "$host_cpu" = ia64; then
10256 # AIX 5 supports IA64
10257 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 else
10260 # With GCC up to 2.95.x, collect2 would create an import file
10261 # for dependence libraries. The import file would start with
10262 # the line `#! .'. This would cause the generated library to
10263 # depend on `.', always an invalid library. This was fixed in
10264 # development snapshots of GCC prior to 3.0.
10265 case $host_os in
10266 aix4 | aix4.[01] | aix4.[01].*)
10267 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10268 echo ' yes '
10269 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10271 else
10272 can_build_shared=no
10275 esac
10276 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10277 # soname into executable. Probably we can add versioning support to
10278 # collect2, so additional links can be useful in future.
10279 if test "$aix_use_runtimelinking" = yes; then
10280 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10281 # instead of lib<name>.a to let people know that these are not
10282 # typical AIX shared libraries.
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10284 else
10285 # We preserve .a as extension for shared libraries through AIX4.2
10286 # and later when we are not doing run time linking.
10287 library_names_spec='${libname}${release}.a $libname.a'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10290 shlibpath_var=LIBPATH
10294 amigaos*)
10295 case $host_cpu in
10296 powerpc)
10297 # Since July 2007 AmigaOS4 officially supports .so libraries.
10298 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10301 m68k)
10302 library_names_spec='$libname.ixlibrary $libname.a'
10303 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10304 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'
10306 esac
10309 beos*)
10310 library_names_spec='${libname}${shared_ext}'
10311 dynamic_linker="$host_os ld.so"
10312 shlibpath_var=LIBRARY_PATH
10315 bsdi[45]*)
10316 version_type=linux
10317 need_version=no
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10319 soname_spec='${libname}${release}${shared_ext}$major'
10320 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10321 shlibpath_var=LD_LIBRARY_PATH
10322 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10323 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10324 # the default ld.so.conf also contains /usr/contrib/lib and
10325 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10326 # libtool to hard-code these into programs
10329 cygwin* | mingw* | pw32* | cegcc*)
10330 version_type=windows
10331 shrext_cmds=".dll"
10332 need_version=no
10333 need_lib_prefix=no
10335 case $GCC,$host_os in
10336 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10337 library_names_spec='$libname.dll.a'
10338 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10339 postinstall_cmds='base_file=`basename \${file}`~
10340 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10341 dldir=$destdir/`dirname \$dlpath`~
10342 test -d \$dldir || mkdir -p \$dldir~
10343 $install_prog $dir/$dlname \$dldir/$dlname~
10344 chmod a+x \$dldir/$dlname~
10345 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10346 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10348 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10349 dlpath=$dir/\$dldll~
10350 $RM \$dlpath'
10351 shlibpath_overrides_runpath=yes
10353 case $host_os in
10354 cygwin*)
10355 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10356 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10357 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10359 mingw* | cegcc*)
10360 # MinGW DLLs use traditional 'lib' prefix
10361 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10362 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10363 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10364 # It is most probably a Windows format PATH printed by
10365 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10366 # path with ; separators, and with drive letters. We can handle the
10367 # drive letters (cygwin fileutils understands them), so leave them,
10368 # especially as we might pass files found there to a mingw objdump,
10369 # which wouldn't understand a cygwinified path. Ahh.
10370 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10371 else
10372 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10375 pw32*)
10376 # pw32 DLLs use 'pw' prefix rather than 'lib'
10377 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10379 esac
10383 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10385 esac
10386 dynamic_linker='Win32 ld.exe'
10387 # FIXME: first we should search . and the directory the executable is in
10388 shlibpath_var=PATH
10391 darwin* | rhapsody*)
10392 dynamic_linker="$host_os dyld"
10393 version_type=darwin
10394 need_lib_prefix=no
10395 need_version=no
10396 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10397 soname_spec='${libname}${release}${major}$shared_ext'
10398 shlibpath_overrides_runpath=yes
10399 shlibpath_var=DYLD_LIBRARY_PATH
10400 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10402 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10403 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10406 dgux*)
10407 version_type=linux
10408 need_lib_prefix=no
10409 need_version=no
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10411 soname_spec='${libname}${release}${shared_ext}$major'
10412 shlibpath_var=LD_LIBRARY_PATH
10415 freebsd1*)
10416 dynamic_linker=no
10419 freebsd* | dragonfly*)
10420 # DragonFly does not have aout. When/if they implement a new
10421 # versioning mechanism, adjust this.
10422 if test -x /usr/bin/objformat; then
10423 objformat=`/usr/bin/objformat`
10424 else
10425 case $host_os in
10426 freebsd[123]*) objformat=aout ;;
10427 *) objformat=elf ;;
10428 esac
10430 version_type=freebsd-$objformat
10431 case $version_type in
10432 freebsd-elf*)
10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10434 need_version=no
10435 need_lib_prefix=no
10437 freebsd-*)
10438 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10439 need_version=yes
10441 esac
10442 shlibpath_var=LD_LIBRARY_PATH
10443 case $host_os in
10444 freebsd2*)
10445 shlibpath_overrides_runpath=yes
10447 freebsd3.[01]* | freebsdelf3.[01]*)
10448 shlibpath_overrides_runpath=yes
10449 hardcode_into_libs=yes
10451 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10452 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10453 shlibpath_overrides_runpath=no
10454 hardcode_into_libs=yes
10456 *) # from 4.6 on, and DragonFly
10457 shlibpath_overrides_runpath=yes
10458 hardcode_into_libs=yes
10460 esac
10463 gnu*)
10464 version_type=linux
10465 need_lib_prefix=no
10466 need_version=no
10467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10468 soname_spec='${libname}${release}${shared_ext}$major'
10469 shlibpath_var=LD_LIBRARY_PATH
10470 hardcode_into_libs=yes
10473 hpux9* | hpux10* | hpux11*)
10474 # Give a soname corresponding to the major version so that dld.sl refuses to
10475 # link against other versions.
10476 version_type=sunos
10477 need_lib_prefix=no
10478 need_version=no
10479 case $host_cpu in
10480 ia64*)
10481 shrext_cmds='.so'
10482 hardcode_into_libs=yes
10483 dynamic_linker="$host_os dld.so"
10484 shlibpath_var=LD_LIBRARY_PATH
10485 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10487 soname_spec='${libname}${release}${shared_ext}$major'
10488 if test "X$HPUX_IA64_MODE" = X32; then
10489 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10490 else
10491 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10493 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10495 hppa*64*)
10496 shrext_cmds='.sl'
10497 hardcode_into_libs=yes
10498 dynamic_linker="$host_os dld.sl"
10499 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10500 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10502 soname_spec='${libname}${release}${shared_ext}$major'
10503 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10504 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10507 shrext_cmds='.sl'
10508 dynamic_linker="$host_os dld.sl"
10509 shlibpath_var=SHLIB_PATH
10510 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10512 soname_spec='${libname}${release}${shared_ext}$major'
10514 esac
10515 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10516 postinstall_cmds='chmod 555 $lib'
10519 interix[3-9]*)
10520 version_type=linux
10521 need_lib_prefix=no
10522 need_version=no
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10524 soname_spec='${libname}${release}${shared_ext}$major'
10525 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10526 shlibpath_var=LD_LIBRARY_PATH
10527 shlibpath_overrides_runpath=no
10528 hardcode_into_libs=yes
10531 irix5* | irix6* | nonstopux*)
10532 case $host_os in
10533 nonstopux*) version_type=nonstopux ;;
10535 if test "$lt_cv_prog_gnu_ld" = yes; then
10536 version_type=linux
10537 else
10538 version_type=irix
10539 fi ;;
10540 esac
10541 need_lib_prefix=no
10542 need_version=no
10543 soname_spec='${libname}${release}${shared_ext}$major'
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10545 case $host_os in
10546 irix5* | nonstopux*)
10547 libsuff= shlibsuff=
10550 case $LD in # libtool.m4 will add one of these switches to LD
10551 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10552 libsuff= shlibsuff= libmagic=32-bit;;
10553 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10554 libsuff=32 shlibsuff=N32 libmagic=N32;;
10555 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10556 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10557 *) libsuff= shlibsuff= libmagic=never-match;;
10558 esac
10560 esac
10561 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10562 shlibpath_overrides_runpath=no
10563 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10564 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10565 hardcode_into_libs=yes
10568 # No shared lib support for Linux oldld, aout, or coff.
10569 linux*oldld* | linux*aout* | linux*coff*)
10570 dynamic_linker=no
10573 # This must be Linux ELF.
10574 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10575 version_type=linux
10576 need_lib_prefix=no
10577 need_version=no
10578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10579 soname_spec='${libname}${release}${shared_ext}$major'
10580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10581 shlibpath_var=LD_LIBRARY_PATH
10582 shlibpath_overrides_runpath=no
10584 # Some binutils ld are patched to set DT_RUNPATH
10585 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10587 else
10588 lt_cv_shlibpath_overrides_runpath=no
10589 save_LDFLAGS=$LDFLAGS
10590 save_libdir=$libdir
10591 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10592 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10593 if test x$gcc_no_link = xyes; then
10594 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10595 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10596 { (exit 1); exit 1; }; }
10598 cat >conftest.$ac_ext <<_ACEOF
10599 /* confdefs.h. */
10600 _ACEOF
10601 cat confdefs.h >>conftest.$ac_ext
10602 cat >>conftest.$ac_ext <<_ACEOF
10603 /* end confdefs.h. */
10606 main ()
10610 return 0;
10612 _ACEOF
10613 rm -f conftest.$ac_objext conftest$ac_exeext
10614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10615 (eval $ac_link) 2>conftest.er1
10616 ac_status=$?
10617 grep -v '^ *+' conftest.er1 >conftest.err
10618 rm -f conftest.er1
10619 cat conftest.err >&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } &&
10622 { ac_try='test -z "$ac_c_werror_flag"
10623 || test ! -s conftest.err'
10624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10625 (eval $ac_try) 2>&5
10626 ac_status=$?
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); }; } &&
10629 { ac_try='test -s conftest$ac_exeext'
10630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10631 (eval $ac_try) 2>&5
10632 ac_status=$?
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; }; then
10635 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10636 lt_cv_shlibpath_overrides_runpath=yes
10639 else
10640 echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10644 rm -f conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
10646 LDFLAGS=$save_LDFLAGS
10647 libdir=$save_libdir
10651 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10653 # This implies no fast_install, which is unacceptable.
10654 # Some rework will be needed to allow for fast_install
10655 # before this can be enabled.
10656 hardcode_into_libs=yes
10658 # Append ld.so.conf contents to the search path
10659 if test -f /etc/ld.so.conf; then
10660 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10661 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10664 # We used to test for /lib/ld.so.1 and disable shared libraries on
10665 # powerpc, because MkLinux only supported shared libraries with the
10666 # GNU dynamic linker. Since this was broken with cross compilers,
10667 # most powerpc-linux boxes support dynamic linking these days and
10668 # people can always --disable-shared, the test was removed, and we
10669 # assume the GNU/Linux dynamic linker is in use.
10670 dynamic_linker='GNU/Linux ld.so'
10673 netbsd*)
10674 version_type=sunos
10675 need_lib_prefix=no
10676 need_version=no
10677 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10680 dynamic_linker='NetBSD (a.out) ld.so'
10681 else
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10683 soname_spec='${libname}${release}${shared_ext}$major'
10684 dynamic_linker='NetBSD ld.elf_so'
10686 shlibpath_var=LD_LIBRARY_PATH
10687 shlibpath_overrides_runpath=yes
10688 hardcode_into_libs=yes
10691 newsos6)
10692 version_type=linux
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 shlibpath_overrides_runpath=yes
10698 *nto* | *qnx*)
10699 version_type=qnx
10700 need_lib_prefix=no
10701 need_version=no
10702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703 soname_spec='${libname}${release}${shared_ext}$major'
10704 shlibpath_var=LD_LIBRARY_PATH
10705 shlibpath_overrides_runpath=no
10706 hardcode_into_libs=yes
10707 dynamic_linker='ldqnx.so'
10710 openbsd*)
10711 version_type=sunos
10712 sys_lib_dlsearch_path_spec="/usr/lib"
10713 need_lib_prefix=no
10714 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10715 case $host_os in
10716 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10717 *) need_version=no ;;
10718 esac
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10720 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10721 shlibpath_var=LD_LIBRARY_PATH
10722 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10723 case $host_os in
10724 openbsd2.[89] | openbsd2.[89].*)
10725 shlibpath_overrides_runpath=no
10728 shlibpath_overrides_runpath=yes
10730 esac
10731 else
10732 shlibpath_overrides_runpath=yes
10736 os2*)
10737 libname_spec='$name'
10738 shrext_cmds=".dll"
10739 need_lib_prefix=no
10740 library_names_spec='$libname${shared_ext} $libname.a'
10741 dynamic_linker='OS/2 ld.exe'
10742 shlibpath_var=LIBPATH
10745 osf3* | osf4* | osf5*)
10746 version_type=osf
10747 need_lib_prefix=no
10748 need_version=no
10749 soname_spec='${libname}${release}${shared_ext}$major'
10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10751 shlibpath_var=LD_LIBRARY_PATH
10752 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10753 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10756 rdos*)
10757 dynamic_linker=no
10760 solaris*)
10761 version_type=linux
10762 need_lib_prefix=no
10763 need_version=no
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10765 soname_spec='${libname}${release}${shared_ext}$major'
10766 shlibpath_var=LD_LIBRARY_PATH
10767 shlibpath_overrides_runpath=yes
10768 hardcode_into_libs=yes
10769 # ldd complains unless libraries are executable
10770 postinstall_cmds='chmod +x $lib'
10773 sunos4*)
10774 version_type=sunos
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10776 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 shlibpath_overrides_runpath=yes
10779 if test "$with_gnu_ld" = yes; then
10780 need_lib_prefix=no
10782 need_version=yes
10785 sysv4 | sysv4.3*)
10786 version_type=linux
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10788 soname_spec='${libname}${release}${shared_ext}$major'
10789 shlibpath_var=LD_LIBRARY_PATH
10790 case $host_vendor in
10791 sni)
10792 shlibpath_overrides_runpath=no
10793 need_lib_prefix=no
10794 runpath_var=LD_RUN_PATH
10796 siemens)
10797 need_lib_prefix=no
10799 motorola)
10800 need_lib_prefix=no
10801 need_version=no
10802 shlibpath_overrides_runpath=no
10803 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10805 esac
10808 sysv4*MP*)
10809 if test -d /usr/nec ;then
10810 version_type=linux
10811 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10812 soname_spec='$libname${shared_ext}.$major'
10813 shlibpath_var=LD_LIBRARY_PATH
10817 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10818 version_type=freebsd-elf
10819 need_lib_prefix=no
10820 need_version=no
10821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10822 soname_spec='${libname}${release}${shared_ext}$major'
10823 shlibpath_var=LD_LIBRARY_PATH
10824 shlibpath_overrides_runpath=yes
10825 hardcode_into_libs=yes
10826 if test "$with_gnu_ld" = yes; then
10827 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10828 else
10829 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10830 case $host_os in
10831 sco3.2v5*)
10832 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10834 esac
10836 sys_lib_dlsearch_path_spec='/usr/lib'
10839 tpf*)
10840 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10841 version_type=linux
10842 need_lib_prefix=no
10843 need_version=no
10844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845 shlibpath_var=LD_LIBRARY_PATH
10846 shlibpath_overrides_runpath=no
10847 hardcode_into_libs=yes
10850 uts4*)
10851 version_type=linux
10852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10853 soname_spec='${libname}${release}${shared_ext}$major'
10854 shlibpath_var=LD_LIBRARY_PATH
10858 dynamic_linker=no
10860 esac
10861 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10862 echo "${ECHO_T}$dynamic_linker" >&6
10863 test "$dynamic_linker" = no && can_build_shared=no
10865 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10866 if test "$GCC" = yes; then
10867 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10870 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10871 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10873 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10874 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10963 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10964 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10965 hardcode_action=
10966 if test -n "$hardcode_libdir_flag_spec" ||
10967 test -n "$runpath_var" ||
10968 test "X$hardcode_automatic" = "Xyes" ; then
10970 # We can hardcode non-existent directories.
10971 if test "$hardcode_direct" != no &&
10972 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10973 # have to relink, otherwise we might link with an installed library
10974 # when we should be linking with a yet-to-be-installed one
10975 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10976 test "$hardcode_minus_L" != no; then
10977 # Linking always hardcodes the temporary library directory.
10978 hardcode_action=relink
10979 else
10980 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10981 hardcode_action=immediate
10983 else
10984 # We cannot hardcode anything, or else we can only hardcode existing
10985 # directories.
10986 hardcode_action=unsupported
10988 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10989 echo "${ECHO_T}$hardcode_action" >&6
10991 if test "$hardcode_action" = relink ||
10992 test "$inherit_rpath" = yes; then
10993 # Fast installation is not supported
10994 enable_fast_install=no
10995 elif test "$shlibpath_overrides_runpath" = yes ||
10996 test "$enable_shared" = no; then
10997 # Fast installation is not necessary
10998 enable_fast_install=needless
11006 if test "x$enable_dlopen" != xyes; then
11007 enable_dlopen=unknown
11008 enable_dlopen_self=unknown
11009 enable_dlopen_self_static=unknown
11010 else
11011 lt_cv_dlopen=no
11012 lt_cv_dlopen_libs=
11014 case $host_os in
11015 beos*)
11016 lt_cv_dlopen="load_add_on"
11017 lt_cv_dlopen_libs=
11018 lt_cv_dlopen_self=yes
11021 mingw* | pw32* | cegcc*)
11022 lt_cv_dlopen="LoadLibrary"
11023 lt_cv_dlopen_libs=
11026 cygwin*)
11027 lt_cv_dlopen="dlopen"
11028 lt_cv_dlopen_libs=
11031 darwin*)
11032 # if libdl is installed we need to link against it
11033 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11034 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11035 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 else
11038 ac_check_lib_save_LIBS=$LIBS
11039 LIBS="-ldl $LIBS"
11040 if test x$gcc_no_link = xyes; then
11041 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11042 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11043 { (exit 1); exit 1; }; }
11045 cat >conftest.$ac_ext <<_ACEOF
11046 /* confdefs.h. */
11047 _ACEOF
11048 cat confdefs.h >>conftest.$ac_ext
11049 cat >>conftest.$ac_ext <<_ACEOF
11050 /* end confdefs.h. */
11052 /* Override any gcc2 internal prototype to avoid an error. */
11053 #ifdef __cplusplus
11054 extern "C"
11055 #endif
11056 /* We use char because int might match the return type of a gcc2
11057 builtin and then its argument prototype would still apply. */
11058 char dlopen ();
11060 main ()
11062 dlopen ();
11064 return 0;
11066 _ACEOF
11067 rm -f conftest.$ac_objext conftest$ac_exeext
11068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11069 (eval $ac_link) 2>conftest.er1
11070 ac_status=$?
11071 grep -v '^ *+' conftest.er1 >conftest.err
11072 rm -f conftest.er1
11073 cat conftest.err >&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); } &&
11076 { ac_try='test -z "$ac_c_werror_flag"
11077 || test ! -s conftest.err'
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11080 ac_status=$?
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; } &&
11083 { ac_try='test -s conftest$ac_exeext'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
11089 ac_cv_lib_dl_dlopen=yes
11090 else
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11094 ac_cv_lib_dl_dlopen=no
11096 rm -f conftest.err conftest.$ac_objext \
11097 conftest$ac_exeext conftest.$ac_ext
11098 LIBS=$ac_check_lib_save_LIBS
11100 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11101 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11102 if test $ac_cv_lib_dl_dlopen = yes; then
11103 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11104 else
11106 lt_cv_dlopen="dyld"
11107 lt_cv_dlopen_libs=
11108 lt_cv_dlopen_self=yes
11115 echo "$as_me:$LINENO: checking for shl_load" >&5
11116 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11117 if test "${ac_cv_func_shl_load+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 else
11120 if test x$gcc_no_link = xyes; then
11121 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11122 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11123 { (exit 1); exit 1; }; }
11125 cat >conftest.$ac_ext <<_ACEOF
11126 /* confdefs.h. */
11127 _ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h. */
11131 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11133 #define shl_load innocuous_shl_load
11135 /* System header to define __stub macros and hopefully few prototypes,
11136 which can conflict with char shl_load (); below.
11137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11138 <limits.h> exists even on freestanding compilers. */
11140 #ifdef __STDC__
11141 # include <limits.h>
11142 #else
11143 # include <assert.h>
11144 #endif
11146 #undef shl_load
11148 /* Override any gcc2 internal prototype to avoid an error. */
11149 #ifdef __cplusplus
11150 extern "C"
11152 #endif
11153 /* We use char because int might match the return type of a gcc2
11154 builtin and then its argument prototype would still apply. */
11155 char shl_load ();
11156 /* The GNU C library defines this for functions which it implements
11157 to always fail with ENOSYS. Some functions are actually named
11158 something starting with __ and the normal name is an alias. */
11159 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11160 choke me
11161 #else
11162 char (*f) () = shl_load;
11163 #endif
11164 #ifdef __cplusplus
11166 #endif
11169 main ()
11171 return f != shl_load;
11173 return 0;
11175 _ACEOF
11176 rm -f conftest.$ac_objext conftest$ac_exeext
11177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11178 (eval $ac_link) 2>conftest.er1
11179 ac_status=$?
11180 grep -v '^ *+' conftest.er1 >conftest.err
11181 rm -f conftest.er1
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } &&
11185 { ac_try='test -z "$ac_c_werror_flag"
11186 || test ! -s conftest.err'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11189 ac_status=$?
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; } &&
11192 { ac_try='test -s conftest$ac_exeext'
11193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194 (eval $ac_try) 2>&5
11195 ac_status=$?
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }; }; then
11198 ac_cv_func_shl_load=yes
11199 else
11200 echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11203 ac_cv_func_shl_load=no
11205 rm -f conftest.err conftest.$ac_objext \
11206 conftest$ac_exeext conftest.$ac_ext
11208 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11209 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11210 if test $ac_cv_func_shl_load = yes; then
11211 lt_cv_dlopen="shl_load"
11212 else
11213 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11214 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11215 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 else
11218 ac_check_lib_save_LIBS=$LIBS
11219 LIBS="-ldld $LIBS"
11220 if test x$gcc_no_link = xyes; then
11221 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11222 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11223 { (exit 1); exit 1; }; }
11225 cat >conftest.$ac_ext <<_ACEOF
11226 /* confdefs.h. */
11227 _ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h. */
11232 /* Override any gcc2 internal prototype to avoid an error. */
11233 #ifdef __cplusplus
11234 extern "C"
11235 #endif
11236 /* We use char because int might match the return type of a gcc2
11237 builtin and then its argument prototype would still apply. */
11238 char shl_load ();
11240 main ()
11242 shl_load ();
11244 return 0;
11246 _ACEOF
11247 rm -f conftest.$ac_objext conftest$ac_exeext
11248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11249 (eval $ac_link) 2>conftest.er1
11250 ac_status=$?
11251 grep -v '^ *+' conftest.er1 >conftest.err
11252 rm -f conftest.er1
11253 cat conftest.err >&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } &&
11256 { ac_try='test -z "$ac_c_werror_flag"
11257 || test ! -s conftest.err'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11260 ac_status=$?
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; } &&
11263 { ac_try='test -s conftest$ac_exeext'
11264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265 (eval $ac_try) 2>&5
11266 ac_status=$?
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); }; }; then
11269 ac_cv_lib_dld_shl_load=yes
11270 else
11271 echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.$ac_ext >&5
11274 ac_cv_lib_dld_shl_load=no
11276 rm -f conftest.err conftest.$ac_objext \
11277 conftest$ac_exeext conftest.$ac_ext
11278 LIBS=$ac_check_lib_save_LIBS
11280 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11281 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11282 if test $ac_cv_lib_dld_shl_load = yes; then
11283 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11284 else
11285 echo "$as_me:$LINENO: checking for dlopen" >&5
11286 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11287 if test "${ac_cv_func_dlopen+set}" = set; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11289 else
11290 if test x$gcc_no_link = xyes; then
11291 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11293 { (exit 1); exit 1; }; }
11295 cat >conftest.$ac_ext <<_ACEOF
11296 /* confdefs.h. */
11297 _ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11301 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11303 #define dlopen innocuous_dlopen
11305 /* System header to define __stub macros and hopefully few prototypes,
11306 which can conflict with char dlopen (); below.
11307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11308 <limits.h> exists even on freestanding compilers. */
11310 #ifdef __STDC__
11311 # include <limits.h>
11312 #else
11313 # include <assert.h>
11314 #endif
11316 #undef dlopen
11318 /* Override any gcc2 internal prototype to avoid an error. */
11319 #ifdef __cplusplus
11320 extern "C"
11322 #endif
11323 /* We use char because int might match the return type of a gcc2
11324 builtin and then its argument prototype would still apply. */
11325 char dlopen ();
11326 /* The GNU C library defines this for functions which it implements
11327 to always fail with ENOSYS. Some functions are actually named
11328 something starting with __ and the normal name is an alias. */
11329 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11330 choke me
11331 #else
11332 char (*f) () = dlopen;
11333 #endif
11334 #ifdef __cplusplus
11336 #endif
11339 main ()
11341 return f != dlopen;
11343 return 0;
11345 _ACEOF
11346 rm -f conftest.$ac_objext conftest$ac_exeext
11347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11348 (eval $ac_link) 2>conftest.er1
11349 ac_status=$?
11350 grep -v '^ *+' conftest.er1 >conftest.err
11351 rm -f conftest.er1
11352 cat conftest.err >&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } &&
11355 { ac_try='test -z "$ac_c_werror_flag"
11356 || test ! -s conftest.err'
11357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358 (eval $ac_try) 2>&5
11359 ac_status=$?
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); }; } &&
11362 { ac_try='test -s conftest$ac_exeext'
11363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364 (eval $ac_try) 2>&5
11365 ac_status=$?
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); }; }; then
11368 ac_cv_func_dlopen=yes
11369 else
11370 echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11373 ac_cv_func_dlopen=no
11375 rm -f conftest.err conftest.$ac_objext \
11376 conftest$ac_exeext conftest.$ac_ext
11378 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11379 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11380 if test $ac_cv_func_dlopen = yes; then
11381 lt_cv_dlopen="dlopen"
11382 else
11383 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11384 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11385 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388 ac_check_lib_save_LIBS=$LIBS
11389 LIBS="-ldl $LIBS"
11390 if test x$gcc_no_link = xyes; then
11391 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11392 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11393 { (exit 1); exit 1; }; }
11395 cat >conftest.$ac_ext <<_ACEOF
11396 /* confdefs.h. */
11397 _ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h. */
11402 /* Override any gcc2 internal prototype to avoid an error. */
11403 #ifdef __cplusplus
11404 extern "C"
11405 #endif
11406 /* We use char because int might match the return type of a gcc2
11407 builtin and then its argument prototype would still apply. */
11408 char dlopen ();
11410 main ()
11412 dlopen ();
11414 return 0;
11416 _ACEOF
11417 rm -f conftest.$ac_objext conftest$ac_exeext
11418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11419 (eval $ac_link) 2>conftest.er1
11420 ac_status=$?
11421 grep -v '^ *+' conftest.er1 >conftest.err
11422 rm -f conftest.er1
11423 cat conftest.err >&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } &&
11426 { ac_try='test -z "$ac_c_werror_flag"
11427 || test ! -s conftest.err'
11428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11429 (eval $ac_try) 2>&5
11430 ac_status=$?
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); }; } &&
11433 { ac_try='test -s conftest$ac_exeext'
11434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435 (eval $ac_try) 2>&5
11436 ac_status=$?
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; }; then
11439 ac_cv_lib_dl_dlopen=yes
11440 else
11441 echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.$ac_ext >&5
11444 ac_cv_lib_dl_dlopen=no
11446 rm -f conftest.err conftest.$ac_objext \
11447 conftest$ac_exeext conftest.$ac_ext
11448 LIBS=$ac_check_lib_save_LIBS
11450 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11451 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11452 if test $ac_cv_lib_dl_dlopen = yes; then
11453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11454 else
11455 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11456 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11457 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 else
11460 ac_check_lib_save_LIBS=$LIBS
11461 LIBS="-lsvld $LIBS"
11462 if test x$gcc_no_link = xyes; then
11463 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11464 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11465 { (exit 1); exit 1; }; }
11467 cat >conftest.$ac_ext <<_ACEOF
11468 /* confdefs.h. */
11469 _ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11474 /* Override any gcc2 internal prototype to avoid an error. */
11475 #ifdef __cplusplus
11476 extern "C"
11477 #endif
11478 /* We use char because int might match the return type of a gcc2
11479 builtin and then its argument prototype would still apply. */
11480 char dlopen ();
11482 main ()
11484 dlopen ();
11486 return 0;
11488 _ACEOF
11489 rm -f conftest.$ac_objext conftest$ac_exeext
11490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11491 (eval $ac_link) 2>conftest.er1
11492 ac_status=$?
11493 grep -v '^ *+' conftest.er1 >conftest.err
11494 rm -f conftest.er1
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try='test -z "$ac_c_werror_flag"
11499 || test ! -s conftest.err'
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; } &&
11505 { ac_try='test -s conftest$ac_exeext'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 ac_cv_lib_svld_dlopen=yes
11512 else
11513 echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11516 ac_cv_lib_svld_dlopen=no
11518 rm -f conftest.err conftest.$ac_objext \
11519 conftest$ac_exeext conftest.$ac_ext
11520 LIBS=$ac_check_lib_save_LIBS
11522 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11523 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11524 if test $ac_cv_lib_svld_dlopen = yes; then
11525 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11526 else
11527 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11528 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11529 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11530 echo $ECHO_N "(cached) $ECHO_C" >&6
11531 else
11532 ac_check_lib_save_LIBS=$LIBS
11533 LIBS="-ldld $LIBS"
11534 if test x$gcc_no_link = xyes; then
11535 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11536 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11537 { (exit 1); exit 1; }; }
11539 cat >conftest.$ac_ext <<_ACEOF
11540 /* confdefs.h. */
11541 _ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11546 /* Override any gcc2 internal prototype to avoid an error. */
11547 #ifdef __cplusplus
11548 extern "C"
11549 #endif
11550 /* We use char because int might match the return type of a gcc2
11551 builtin and then its argument prototype would still apply. */
11552 char dld_link ();
11554 main ()
11556 dld_link ();
11558 return 0;
11560 _ACEOF
11561 rm -f conftest.$ac_objext conftest$ac_exeext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11563 (eval $ac_link) 2>conftest.er1
11564 ac_status=$?
11565 grep -v '^ *+' conftest.er1 >conftest.err
11566 rm -f conftest.er1
11567 cat conftest.err >&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try='test -z "$ac_c_werror_flag"
11571 || test ! -s conftest.err'
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try='test -s conftest$ac_exeext'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11580 ac_status=$?
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 ac_cv_lib_dld_dld_link=yes
11584 else
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11588 ac_cv_lib_dld_dld_link=no
11590 rm -f conftest.err conftest.$ac_objext \
11591 conftest$ac_exeext conftest.$ac_ext
11592 LIBS=$ac_check_lib_save_LIBS
11594 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11595 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11596 if test $ac_cv_lib_dld_dld_link = yes; then
11597 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11616 esac
11618 if test "x$lt_cv_dlopen" != xno; then
11619 enable_dlopen=yes
11620 else
11621 enable_dlopen=no
11624 case $lt_cv_dlopen in
11625 dlopen)
11626 save_CPPFLAGS="$CPPFLAGS"
11627 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11629 save_LDFLAGS="$LDFLAGS"
11630 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11632 save_LIBS="$LIBS"
11633 LIBS="$lt_cv_dlopen_libs $LIBS"
11635 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11636 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11637 if test "${lt_cv_dlopen_self+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640 if test "$cross_compiling" = yes; then :
11641 lt_cv_dlopen_self=cross
11642 else
11643 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11644 lt_status=$lt_dlunknown
11645 cat > conftest.$ac_ext <<_LT_EOF
11646 #line 11646 "configure"
11647 #include "confdefs.h"
11649 #if HAVE_DLFCN_H
11650 #include <dlfcn.h>
11651 #endif
11653 #include <stdio.h>
11655 #ifdef RTLD_GLOBAL
11656 # define LT_DLGLOBAL RTLD_GLOBAL
11657 #else
11658 # ifdef DL_GLOBAL
11659 # define LT_DLGLOBAL DL_GLOBAL
11660 # else
11661 # define LT_DLGLOBAL 0
11662 # endif
11663 #endif
11665 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11666 find out it does not work in some platform. */
11667 #ifndef LT_DLLAZY_OR_NOW
11668 # ifdef RTLD_LAZY
11669 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11670 # else
11671 # ifdef DL_LAZY
11672 # define LT_DLLAZY_OR_NOW DL_LAZY
11673 # else
11674 # ifdef RTLD_NOW
11675 # define LT_DLLAZY_OR_NOW RTLD_NOW
11676 # else
11677 # ifdef DL_NOW
11678 # define LT_DLLAZY_OR_NOW DL_NOW
11679 # else
11680 # define LT_DLLAZY_OR_NOW 0
11681 # endif
11682 # endif
11683 # endif
11684 # endif
11685 #endif
11687 void fnord() { int i=42;}
11688 int main ()
11690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11691 int status = $lt_dlunknown;
11693 if (self)
11695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11696 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11697 /* dlclose (self); */
11699 else
11700 puts (dlerror ());
11702 return status;
11704 _LT_EOF
11705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11706 (eval $ac_link) 2>&5
11707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11710 (./conftest; exit; ) >&5 2>/dev/null
11711 lt_status=$?
11712 case x$lt_status in
11713 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11714 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11715 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11716 esac
11717 else :
11718 # compilation failed
11719 lt_cv_dlopen_self=no
11722 rm -fr conftest*
11726 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11727 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11729 if test "x$lt_cv_dlopen_self" = xyes; then
11730 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11731 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11732 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11733 if test "${lt_cv_dlopen_self_static+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 else
11736 if test "$cross_compiling" = yes; then :
11737 lt_cv_dlopen_self_static=cross
11738 else
11739 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11740 lt_status=$lt_dlunknown
11741 cat > conftest.$ac_ext <<_LT_EOF
11742 #line 11742 "configure"
11743 #include "confdefs.h"
11745 #if HAVE_DLFCN_H
11746 #include <dlfcn.h>
11747 #endif
11749 #include <stdio.h>
11751 #ifdef RTLD_GLOBAL
11752 # define LT_DLGLOBAL RTLD_GLOBAL
11753 #else
11754 # ifdef DL_GLOBAL
11755 # define LT_DLGLOBAL DL_GLOBAL
11756 # else
11757 # define LT_DLGLOBAL 0
11758 # endif
11759 #endif
11761 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11762 find out it does not work in some platform. */
11763 #ifndef LT_DLLAZY_OR_NOW
11764 # ifdef RTLD_LAZY
11765 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11766 # else
11767 # ifdef DL_LAZY
11768 # define LT_DLLAZY_OR_NOW DL_LAZY
11769 # else
11770 # ifdef RTLD_NOW
11771 # define LT_DLLAZY_OR_NOW RTLD_NOW
11772 # else
11773 # ifdef DL_NOW
11774 # define LT_DLLAZY_OR_NOW DL_NOW
11775 # else
11776 # define LT_DLLAZY_OR_NOW 0
11777 # endif
11778 # endif
11779 # endif
11780 # endif
11781 #endif
11783 void fnord() { int i=42;}
11784 int main ()
11786 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11787 int status = $lt_dlunknown;
11789 if (self)
11791 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11792 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11793 /* dlclose (self); */
11795 else
11796 puts (dlerror ());
11798 return status;
11800 _LT_EOF
11801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11802 (eval $ac_link) 2>&5
11803 ac_status=$?
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11806 (./conftest; exit; ) >&5 2>/dev/null
11807 lt_status=$?
11808 case x$lt_status in
11809 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11810 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11811 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11812 esac
11813 else :
11814 # compilation failed
11815 lt_cv_dlopen_self_static=no
11818 rm -fr conftest*
11822 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11823 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11826 CPPFLAGS="$save_CPPFLAGS"
11827 LDFLAGS="$save_LDFLAGS"
11828 LIBS="$save_LIBS"
11830 esac
11832 case $lt_cv_dlopen_self in
11833 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11834 *) enable_dlopen_self=unknown ;;
11835 esac
11837 case $lt_cv_dlopen_self_static in
11838 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11839 *) enable_dlopen_self_static=unknown ;;
11840 esac
11859 striplib=
11860 old_striplib=
11861 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11862 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11863 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11864 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11865 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11866 echo "$as_me:$LINENO: result: yes" >&5
11867 echo "${ECHO_T}yes" >&6
11868 else
11869 # FIXME - insert some real tests, host_os isn't really good enough
11870 case $host_os in
11871 darwin*)
11872 if test -n "$STRIP" ; then
11873 striplib="$STRIP -x"
11874 old_striplib="$STRIP -S"
11875 echo "$as_me:$LINENO: result: yes" >&5
11876 echo "${ECHO_T}yes" >&6
11877 else
11878 echo "$as_me:$LINENO: result: no" >&5
11879 echo "${ECHO_T}no" >&6
11883 echo "$as_me:$LINENO: result: no" >&5
11884 echo "${ECHO_T}no" >&6
11886 esac
11900 # Report which library types will actually be built
11901 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11902 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11903 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11904 echo "${ECHO_T}$can_build_shared" >&6
11906 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11907 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11908 test "$can_build_shared" = "no" && enable_shared=no
11910 # On AIX, shared libraries and static libraries use the same namespace, and
11911 # are all built from PIC.
11912 case $host_os in
11913 aix3*)
11914 test "$enable_shared" = yes && enable_static=no
11915 if test -n "$RANLIB"; then
11916 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11917 postinstall_cmds='$RANLIB $lib'
11921 aix[4-9]*)
11922 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11923 test "$enable_shared" = yes && enable_static=no
11926 esac
11927 echo "$as_me:$LINENO: result: $enable_shared" >&5
11928 echo "${ECHO_T}$enable_shared" >&6
11930 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11931 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11932 # Make sure either enable_shared or enable_static is yes.
11933 test "$enable_shared" = yes || enable_static=yes
11934 echo "$as_me:$LINENO: result: $enable_static" >&5
11935 echo "${ECHO_T}$enable_static" >&6
11941 ac_ext=c
11942 ac_cpp='$CPP $CPPFLAGS'
11943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11947 CC="$lt_save_CC"
11950 ac_ext=cc
11951 ac_cpp='$CXXCPP $CPPFLAGS'
11952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11956 archive_cmds_need_lc_CXX=no
11957 allow_undefined_flag_CXX=
11958 always_export_symbols_CXX=no
11959 archive_expsym_cmds_CXX=
11960 compiler_needs_object_CXX=no
11961 export_dynamic_flag_spec_CXX=
11962 hardcode_direct_CXX=no
11963 hardcode_direct_absolute_CXX=no
11964 hardcode_libdir_flag_spec_CXX=
11965 hardcode_libdir_flag_spec_ld_CXX=
11966 hardcode_libdir_separator_CXX=
11967 hardcode_minus_L_CXX=no
11968 hardcode_shlibpath_var_CXX=unsupported
11969 hardcode_automatic_CXX=no
11970 inherit_rpath_CXX=no
11971 module_cmds_CXX=
11972 module_expsym_cmds_CXX=
11973 link_all_deplibs_CXX=unknown
11974 old_archive_cmds_CXX=$old_archive_cmds
11975 no_undefined_flag_CXX=
11976 whole_archive_flag_spec_CXX=
11977 enable_shared_with_static_runtimes_CXX=no
11979 # Source file extension for C++ test sources.
11980 ac_ext=cpp
11982 # Object file extension for compiled C++ test sources.
11983 objext=o
11984 objext_CXX=$objext
11986 # No sense in running all these tests if we already determined that
11987 # the CXX compiler isn't working. Some variables (like enable_shared)
11988 # are currently assumed to apply to all compilers on this platform,
11989 # and will be corrupted by setting them based on a non-working compiler.
11990 if test "$_lt_caught_CXX_error" != yes; then
11991 # Code to be used in simple compile tests
11992 lt_simple_compile_test_code="int some_variable = 0;"
11994 # Code to be used in simple link tests
11995 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11997 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12004 # If no C compiler was specified, use CC.
12005 LTCC=${LTCC-"$CC"}
12007 # If no C compiler flags were specified, use CFLAGS.
12008 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12010 # Allow CC to be a program name with arguments.
12011 compiler=$CC
12014 # save warnings/boilerplate of simple test code
12015 ac_outfile=conftest.$ac_objext
12016 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12017 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12018 _lt_compiler_boilerplate=`cat conftest.err`
12019 $RM conftest*
12021 ac_outfile=conftest.$ac_objext
12022 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12023 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12024 _lt_linker_boilerplate=`cat conftest.err`
12025 $RM -r conftest*
12028 # Allow CC to be a program name with arguments.
12029 lt_save_CC=$CC
12030 lt_save_LD=$LD
12031 lt_save_GCC=$GCC
12032 GCC=$GXX
12033 lt_save_with_gnu_ld=$with_gnu_ld
12034 lt_save_path_LD=$lt_cv_path_LD
12035 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12036 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12037 else
12038 $as_unset lt_cv_prog_gnu_ld
12040 if test -n "${lt_cv_path_LDCXX+set}"; then
12041 lt_cv_path_LD=$lt_cv_path_LDCXX
12042 else
12043 $as_unset lt_cv_path_LD
12045 test -z "${LDCXX+set}" || LD=$LDCXX
12046 CC=${CXX-"c++"}
12047 compiler=$CC
12048 compiler_CXX=$CC
12049 for cc_temp in $compiler""; do
12050 case $cc_temp in
12051 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12052 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12053 \-*) ;;
12054 *) break;;
12055 esac
12056 done
12057 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12060 if test -n "$compiler"; then
12061 # We don't want -fno-exception when compiling C++ code, so set the
12062 # no_builtin_flag separately
12063 if test "$GXX" = yes; then
12064 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12065 else
12066 lt_prog_compiler_no_builtin_flag_CXX=
12069 if test "$GXX" = yes; then
12070 # Set up default GNU C++ configuration
12074 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12075 if test "${with_gnu_ld+set}" = set; then
12076 withval="$with_gnu_ld"
12077 test "$withval" = no || with_gnu_ld=yes
12078 else
12079 with_gnu_ld=no
12081 ac_prog=ld
12082 if test "$GCC" = yes; then
12083 # Check if gcc -print-prog-name=ld gives a path.
12084 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12085 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12086 case $host in
12087 *-*-mingw*)
12088 # gcc leaves a trailing carriage return which upsets mingw
12089 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12091 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12092 esac
12093 case $ac_prog in
12094 # Accept absolute paths.
12095 [\\/]* | ?:[\\/]*)
12096 re_direlt='/[^/][^/]*/\.\./'
12097 # Canonicalize the pathname of ld
12098 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12099 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12100 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12101 done
12102 test -z "$LD" && LD="$ac_prog"
12105 # If it fails, then pretend we aren't using GCC.
12106 ac_prog=ld
12109 # If it is relative, then search for the first ld in PATH.
12110 with_gnu_ld=unknown
12112 esac
12113 elif test "$with_gnu_ld" = yes; then
12114 echo "$as_me:$LINENO: checking for GNU ld" >&5
12115 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12116 else
12117 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12118 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12120 if test "${lt_cv_path_LD+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12122 else
12123 if test -z "$LD"; then
12124 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12125 for ac_dir in $PATH; do
12126 IFS="$lt_save_ifs"
12127 test -z "$ac_dir" && ac_dir=.
12128 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12129 lt_cv_path_LD="$ac_dir/$ac_prog"
12130 # Check to see if the program is GNU ld. I'd rather use --version,
12131 # but apparently some variants of GNU ld only accept -v.
12132 # Break only if it was the GNU/non-GNU ld that we prefer.
12133 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12134 *GNU* | *'with BFD'*)
12135 test "$with_gnu_ld" != no && break
12138 test "$with_gnu_ld" != yes && break
12140 esac
12142 done
12143 IFS="$lt_save_ifs"
12144 else
12145 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12149 LD="$lt_cv_path_LD"
12150 if test -n "$LD"; then
12151 echo "$as_me:$LINENO: result: $LD" >&5
12152 echo "${ECHO_T}$LD" >&6
12153 else
12154 echo "$as_me:$LINENO: result: no" >&5
12155 echo "${ECHO_T}no" >&6
12157 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12158 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12159 { (exit 1); exit 1; }; }
12160 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12161 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12162 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12164 else
12165 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12166 case `$LD -v 2>&1 </dev/null` in
12167 *GNU* | *'with BFD'*)
12168 lt_cv_prog_gnu_ld=yes
12171 lt_cv_prog_gnu_ld=no
12173 esac
12175 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12176 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12177 with_gnu_ld=$lt_cv_prog_gnu_ld
12185 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12186 # archiving commands below assume that GNU ld is being used.
12187 if test "$with_gnu_ld" = yes; then
12188 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12189 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'
12191 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12192 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12194 # If archive_cmds runs LD, not CC, wlarc should be empty
12195 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12196 # investigate it a little bit more. (MM)
12197 wlarc='${wl}'
12199 # ancient GNU ld didn't support --whole-archive et. al.
12200 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12201 $GREP 'no-whole-archive' > /dev/null; then
12202 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12203 else
12204 whole_archive_flag_spec_CXX=
12206 else
12207 with_gnu_ld=no
12208 wlarc=
12210 # A generic and very simple default shared library creation
12211 # command for GNU C++ for the case where it uses the native
12212 # linker, instead of GNU ld. If possible, this setting should
12213 # overridden to take advantage of the native linker features on
12214 # the platform it is being used on.
12215 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12218 # Commands to make compiler produce verbose output that lists
12219 # what "hidden" libraries, object files and flags are used when
12220 # linking a shared library.
12221 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12223 else
12224 GXX=no
12225 with_gnu_ld=no
12226 wlarc=
12229 # PORTME: fill in a description of your system's C++ link characteristics
12230 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12231 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12232 ld_shlibs_CXX=yes
12233 case $host_os in
12234 aix3*)
12235 # FIXME: insert proper C++ library support
12236 ld_shlibs_CXX=no
12238 aix[4-9]*)
12239 if test "$host_cpu" = ia64; then
12240 # On IA64, the linker does run time linking by default, so we don't
12241 # have to do anything special.
12242 aix_use_runtimelinking=no
12243 exp_sym_flag='-Bexport'
12244 no_entry_flag=""
12245 else
12246 aix_use_runtimelinking=no
12248 # Test if we are trying to use run time linking or normal
12249 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12250 # need to do runtime linking.
12251 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12252 for ld_flag in $LDFLAGS; do
12253 case $ld_flag in
12254 *-brtl*)
12255 aix_use_runtimelinking=yes
12256 break
12258 esac
12259 done
12261 esac
12263 exp_sym_flag='-bexport'
12264 no_entry_flag='-bnoentry'
12267 # When large executables or shared objects are built, AIX ld can
12268 # have problems creating the table of contents. If linking a library
12269 # or program results in "error TOC overflow" add -mminimal-toc to
12270 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12271 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12273 archive_cmds_CXX=''
12274 hardcode_direct_CXX=yes
12275 hardcode_direct_absolute_CXX=yes
12276 hardcode_libdir_separator_CXX=':'
12277 link_all_deplibs_CXX=yes
12278 file_list_spec_CXX='${wl}-f,'
12280 if test "$GXX" = yes; then
12281 case $host_os in aix4.[012]|aix4.[012].*)
12282 # We only want to do this on AIX 4.2 and lower, the check
12283 # below for broken collect2 doesn't work under 4.3+
12284 collect2name=`${CC} -print-prog-name=collect2`
12285 if test -f "$collect2name" &&
12286 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12287 then
12288 # We have reworked collect2
12290 else
12291 # We have old collect2
12292 hardcode_direct_CXX=unsupported
12293 # It fails to find uninstalled libraries when the uninstalled
12294 # path is not listed in the libpath. Setting hardcode_minus_L
12295 # to unsupported forces relinking
12296 hardcode_minus_L_CXX=yes
12297 hardcode_libdir_flag_spec_CXX='-L$libdir'
12298 hardcode_libdir_separator_CXX=
12300 esac
12301 shared_flag='-shared'
12302 if test "$aix_use_runtimelinking" = yes; then
12303 shared_flag="$shared_flag "'${wl}-G'
12305 else
12306 # not using gcc
12307 if test "$host_cpu" = ia64; then
12308 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12309 # chokes on -Wl,-G. The following line is correct:
12310 shared_flag='-G'
12311 else
12312 if test "$aix_use_runtimelinking" = yes; then
12313 shared_flag='${wl}-G'
12314 else
12315 shared_flag='${wl}-bM:SRE'
12320 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12321 # It seems that -bexpall does not export symbols beginning with
12322 # underscore (_), so it is better to generate a list of symbols to
12323 # export.
12324 always_export_symbols_CXX=yes
12325 if test "$aix_use_runtimelinking" = yes; then
12326 # Warning - without using the other runtime loading flags (-brtl),
12327 # -berok will link without error, but may produce a broken library.
12328 allow_undefined_flag_CXX='-berok'
12329 # Determine the default libpath from the value encoded in an empty
12330 # executable.
12331 if test x$gcc_no_link = xyes; then
12332 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12333 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12334 { (exit 1); exit 1; }; }
12336 cat >conftest.$ac_ext <<_ACEOF
12337 /* confdefs.h. */
12338 _ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12344 main ()
12348 return 0;
12350 _ACEOF
12351 rm -f conftest.$ac_objext conftest$ac_exeext
12352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12353 (eval $ac_link) 2>conftest.er1
12354 ac_status=$?
12355 grep -v '^ *+' conftest.er1 >conftest.err
12356 rm -f conftest.er1
12357 cat conftest.err >&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } &&
12360 { ac_try='test -z "$ac_cxx_werror_flag"
12361 || test ! -s conftest.err'
12362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363 (eval $ac_try) 2>&5
12364 ac_status=$?
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; } &&
12367 { ac_try='test -s conftest$ac_exeext'
12368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369 (eval $ac_try) 2>&5
12370 ac_status=$?
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; }; then
12374 lt_aix_libpath_sed='
12375 /Import File Strings/,/^$/ {
12376 /^0/ {
12377 s/^0 *\(.*\)$/\1/
12381 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12382 # Check for a 64-bit object if we didn't find anything.
12383 if test -z "$aix_libpath"; then
12384 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12386 else
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12391 rm -f conftest.err conftest.$ac_objext \
12392 conftest$ac_exeext conftest.$ac_ext
12393 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12395 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12397 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12398 else
12399 if test "$host_cpu" = ia64; then
12400 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12401 allow_undefined_flag_CXX="-z nodefs"
12402 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12403 else
12404 # Determine the default libpath from the value encoded in an
12405 # empty executable.
12406 if test x$gcc_no_link = xyes; then
12407 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12408 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12409 { (exit 1); exit 1; }; }
12411 cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h. */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12419 main ()
12423 return 0;
12425 _ACEOF
12426 rm -f conftest.$ac_objext conftest$ac_exeext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12428 (eval $ac_link) 2>conftest.er1
12429 ac_status=$?
12430 grep -v '^ *+' conftest.er1 >conftest.err
12431 rm -f conftest.er1
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } &&
12435 { ac_try='test -z "$ac_cxx_werror_flag"
12436 || test ! -s conftest.err'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12439 ac_status=$?
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; } &&
12442 { ac_try='test -s conftest$ac_exeext'
12443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444 (eval $ac_try) 2>&5
12445 ac_status=$?
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; }; then
12449 lt_aix_libpath_sed='
12450 /Import File Strings/,/^$/ {
12451 /^0/ {
12452 s/^0 *\(.*\)$/\1/
12456 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12457 # Check for a 64-bit object if we didn't find anything.
12458 if test -z "$aix_libpath"; then
12459 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12461 else
12462 echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12466 rm -f conftest.err conftest.$ac_objext \
12467 conftest$ac_exeext conftest.$ac_ext
12468 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12470 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12471 # Warning - without using the other run time loading flags,
12472 # -berok will link without error, but may produce a broken library.
12473 no_undefined_flag_CXX=' ${wl}-bernotok'
12474 allow_undefined_flag_CXX=' ${wl}-berok'
12475 # Exported symbols can be pulled into shared objects from archives
12476 whole_archive_flag_spec_CXX='$convenience'
12477 archive_cmds_need_lc_CXX=yes
12478 # This is similar to how AIX traditionally builds its shared
12479 # libraries.
12480 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12485 beos*)
12486 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12487 allow_undefined_flag_CXX=unsupported
12488 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12489 # support --undefined. This deserves some investigation. FIXME
12490 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12491 else
12492 ld_shlibs_CXX=no
12496 chorus*)
12497 case $cc_basename in
12499 # FIXME: insert proper C++ library support
12500 ld_shlibs_CXX=no
12502 esac
12505 cygwin* | mingw* | pw32* | cegcc*)
12506 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12507 # as there is no search path for DLLs.
12508 hardcode_libdir_flag_spec_CXX='-L$libdir'
12509 allow_undefined_flag_CXX=unsupported
12510 always_export_symbols_CXX=no
12511 enable_shared_with_static_runtimes_CXX=yes
12513 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12514 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12515 # If the export-symbols file already is a .def file (1st line
12516 # is EXPORTS), use it as is; otherwise, prepend...
12517 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12518 cp $export_symbols $output_objdir/$soname.def;
12519 else
12520 echo EXPORTS > $output_objdir/$soname.def;
12521 cat $export_symbols >> $output_objdir/$soname.def;
12523 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12524 else
12525 ld_shlibs_CXX=no
12528 darwin* | rhapsody*)
12531 archive_cmds_need_lc_CXX=no
12532 hardcode_direct_CXX=no
12533 hardcode_automatic_CXX=yes
12534 hardcode_shlibpath_var_CXX=unsupported
12535 whole_archive_flag_spec_CXX=''
12536 link_all_deplibs_CXX=yes
12537 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12538 case $cc_basename in
12539 ifort*) _lt_dar_can_shared=yes ;;
12540 *) _lt_dar_can_shared=$GCC ;;
12541 esac
12542 if test "$_lt_dar_can_shared" = "yes"; then
12543 output_verbose_link_cmd=echo
12544 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12545 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12546 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12547 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12548 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12549 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12550 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12553 else
12554 ld_shlibs_CXX=no
12559 dgux*)
12560 case $cc_basename in
12561 ec++*)
12562 # FIXME: insert proper C++ library support
12563 ld_shlibs_CXX=no
12565 ghcx*)
12566 # Green Hills C++ Compiler
12567 # FIXME: insert proper C++ library support
12568 ld_shlibs_CXX=no
12571 # FIXME: insert proper C++ library support
12572 ld_shlibs_CXX=no
12574 esac
12577 freebsd[12]*)
12578 # C++ shared libraries reported to be fairly broken before
12579 # switch to ELF
12580 ld_shlibs_CXX=no
12583 freebsd-elf*)
12584 archive_cmds_need_lc_CXX=no
12587 freebsd* | dragonfly*)
12588 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12589 # conventions
12590 ld_shlibs_CXX=yes
12593 gnu*)
12596 hpux9*)
12597 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12598 hardcode_libdir_separator_CXX=:
12599 export_dynamic_flag_spec_CXX='${wl}-E'
12600 hardcode_direct_CXX=yes
12601 hardcode_minus_L_CXX=yes # Not in the search PATH,
12602 # but as the default
12603 # location of the library.
12605 case $cc_basename in
12606 CC*)
12607 # FIXME: insert proper C++ library support
12608 ld_shlibs_CXX=no
12610 aCC*)
12611 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'
12612 # Commands to make compiler produce verbose output that lists
12613 # what "hidden" libraries, object files and flags are used when
12614 # linking a shared library.
12616 # There doesn't appear to be a way to prevent this compiler from
12617 # explicitly linking system object files so we need to strip them
12618 # from the output so that they don't get included in the library
12619 # dependencies.
12620 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 "X$list" | $Xsed'
12623 if test "$GXX" = yes; then
12624 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'
12625 else
12626 # FIXME: insert proper C++ library support
12627 ld_shlibs_CXX=no
12630 esac
12633 hpux10*|hpux11*)
12634 if test $with_gnu_ld = no; then
12635 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12636 hardcode_libdir_separator_CXX=:
12638 case $host_cpu in
12639 hppa*64*|ia64*)
12642 export_dynamic_flag_spec_CXX='${wl}-E'
12644 esac
12646 case $host_cpu in
12647 hppa*64*|ia64*)
12648 hardcode_direct_CXX=no
12649 hardcode_shlibpath_var_CXX=no
12652 hardcode_direct_CXX=yes
12653 hardcode_direct_absolute_CXX=yes
12654 hardcode_minus_L_CXX=yes # Not in the search PATH,
12655 # but as the default
12656 # location of the library.
12658 esac
12660 case $cc_basename in
12661 CC*)
12662 # FIXME: insert proper C++ library support
12663 ld_shlibs_CXX=no
12665 aCC*)
12666 case $host_cpu in
12667 hppa*64*)
12668 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12670 ia64*)
12671 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12674 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12676 esac
12677 # Commands to make compiler produce verbose output that lists
12678 # what "hidden" libraries, object files and flags are used when
12679 # linking a shared library.
12681 # There doesn't appear to be a way to prevent this compiler from
12682 # explicitly linking system object files so we need to strip them
12683 # from the output so that they don't get included in the library
12684 # dependencies.
12685 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 "X$list" | $Xsed'
12688 if test "$GXX" = yes; then
12689 if test $with_gnu_ld = no; then
12690 case $host_cpu in
12691 hppa*64*)
12692 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12694 ia64*)
12695 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12698 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'
12700 esac
12702 else
12703 # FIXME: insert proper C++ library support
12704 ld_shlibs_CXX=no
12707 esac
12710 interix[3-9]*)
12711 hardcode_direct_CXX=no
12712 hardcode_shlibpath_var_CXX=no
12713 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12714 export_dynamic_flag_spec_CXX='${wl}-E'
12715 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12716 # Instead, shared libraries are loaded at an image base (0x10000000 by
12717 # default) and relocated if they conflict, which is a slow very memory
12718 # consuming and fragmenting process. To avoid this, we pick a random,
12719 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12720 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12721 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12722 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12724 irix5* | irix6*)
12725 case $cc_basename in
12726 CC*)
12727 # SGI C++
12728 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12730 # Archives containing C++ object files must be created using
12731 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12732 # necessary to make sure instantiated templates are included
12733 # in the archive.
12734 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12737 if test "$GXX" = yes; then
12738 if test "$with_gnu_ld" = no; then
12739 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12740 else
12741 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12744 link_all_deplibs_CXX=yes
12746 esac
12747 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12748 hardcode_libdir_separator_CXX=:
12749 inherit_rpath_CXX=yes
12752 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12753 case $cc_basename in
12754 KCC*)
12755 # Kuck and Associates, Inc. (KAI) C++ Compiler
12757 # KCC will only create a shared library if the output file
12758 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12759 # to its proper name (with version) after linking.
12760 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'
12761 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'
12762 # Commands to make compiler produce verbose output that lists
12763 # what "hidden" libraries, object files and flags are used when
12764 # linking a shared library.
12766 # There doesn't appear to be a way to prevent this compiler from
12767 # explicitly linking system object files so we need to strip them
12768 # from the output so that they don't get included in the library
12769 # dependencies.
12770 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 "X$list" | $Xsed'
12772 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12773 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12775 # Archives containing C++ object files must be created using
12776 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12777 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12779 icpc* | ecpc* )
12780 # Intel C++
12781 with_gnu_ld=yes
12782 # version 8.0 and above of icpc choke on multiply defined symbols
12783 # if we add $predep_objects and $postdep_objects, however 7.1 and
12784 # earlier do not add the objects themselves.
12785 case `$CC -V 2>&1` in
12786 *"Version 7."*)
12787 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12788 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'
12790 *) # Version 8.0 or newer
12791 tmp_idyn=
12792 case $host_cpu in
12793 ia64*) tmp_idyn=' -i_dynamic';;
12794 esac
12795 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12796 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12798 esac
12799 archive_cmds_need_lc_CXX=no
12800 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12801 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12802 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12804 pgCC* | pgcpp*)
12805 # Portland Group C++ compiler
12806 case `$CC -V` in
12807 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12808 prelink_cmds_CXX='tpldir=Template.dir~
12809 rm -rf $tpldir~
12810 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12811 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12812 old_archive_cmds_CXX='tpldir=Template.dir~
12813 rm -rf $tpldir~
12814 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12815 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12816 $RANLIB $oldlib'
12817 archive_cmds_CXX='tpldir=Template.dir~
12818 rm -rf $tpldir~
12819 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12820 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12821 archive_expsym_cmds_CXX='tpldir=Template.dir~
12822 rm -rf $tpldir~
12823 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12824 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12826 *) # Version 6 will use weak symbols
12827 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12828 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12830 esac
12832 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12833 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12834 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12836 cxx*)
12837 # Compaq C++
12838 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12839 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'
12841 runpath_var=LD_RUN_PATH
12842 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12843 hardcode_libdir_separator_CXX=:
12845 # Commands to make compiler produce verbose output that lists
12846 # what "hidden" libraries, object files and flags are used when
12847 # linking a shared library.
12849 # There doesn't appear to be a way to prevent this compiler from
12850 # explicitly linking system object files so we need to strip them
12851 # from the output so that they don't get included in the library
12852 # dependencies.
12853 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
12855 xl*)
12856 # IBM XL 8.0 on PPC, with GNU ld
12857 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12858 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12859 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12860 if test "x$supports_anon_versioning" = xyes; then
12861 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12862 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12863 echo "local: *; };" >> $output_objdir/$libname.ver~
12864 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12868 case `$CC -V 2>&1 | sed 5q` in
12869 *Sun\ C*)
12870 # Sun C++ 5.9
12871 no_undefined_flag_CXX=' -zdefs'
12872 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12873 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12874 hardcode_libdir_flag_spec_CXX='-R$libdir'
12875 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12876 compiler_needs_object_CXX=yes
12878 # Not sure whether something based on
12879 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12880 # would be better.
12881 output_verbose_link_cmd='echo'
12883 # Archives containing C++ object files must be created using
12884 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12885 # necessary to make sure instantiated templates are included
12886 # in the archive.
12887 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12889 esac
12891 esac
12894 lynxos*)
12895 # FIXME: insert proper C++ library support
12896 ld_shlibs_CXX=no
12899 m88k*)
12900 # FIXME: insert proper C++ library support
12901 ld_shlibs_CXX=no
12904 mvs*)
12905 case $cc_basename in
12906 cxx*)
12907 # FIXME: insert proper C++ library support
12908 ld_shlibs_CXX=no
12911 # FIXME: insert proper C++ library support
12912 ld_shlibs_CXX=no
12914 esac
12917 netbsd*)
12918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12919 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12920 wlarc=
12921 hardcode_libdir_flag_spec_CXX='-R$libdir'
12922 hardcode_direct_CXX=yes
12923 hardcode_shlibpath_var_CXX=no
12925 # Workaround some broken pre-1.5 toolchains
12926 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12929 *nto* | *qnx*)
12930 ld_shlibs_CXX=yes
12933 openbsd2*)
12934 # C++ shared libraries are fairly broken
12935 ld_shlibs_CXX=no
12938 openbsd*)
12939 if test -f /usr/libexec/ld.so; then
12940 hardcode_direct_CXX=yes
12941 hardcode_shlibpath_var_CXX=no
12942 hardcode_direct_absolute_CXX=yes
12943 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12944 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12945 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12946 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12947 export_dynamic_flag_spec_CXX='${wl}-E'
12948 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12950 output_verbose_link_cmd=echo
12951 else
12952 ld_shlibs_CXX=no
12956 osf3* | osf4* | osf5*)
12957 case $cc_basename in
12958 KCC*)
12959 # Kuck and Associates, Inc. (KAI) C++ Compiler
12961 # KCC will only create a shared library if the output file
12962 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12963 # to its proper name (with version) after linking.
12964 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'
12966 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12967 hardcode_libdir_separator_CXX=:
12969 # Archives containing C++ object files must be created using
12970 # the KAI C++ compiler.
12971 case $host in
12972 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12973 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12974 esac
12976 RCC*)
12977 # Rational C++ 2.4.1
12978 # FIXME: insert proper C++ library support
12979 ld_shlibs_CXX=no
12981 cxx*)
12982 case $host in
12983 osf3*)
12984 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12985 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12986 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12989 allow_undefined_flag_CXX=' -expect_unresolved \*'
12990 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12991 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12992 echo "-hidden">> $lib.exp~
12993 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12994 $RM $lib.exp'
12995 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12997 esac
12999 hardcode_libdir_separator_CXX=:
13001 # Commands to make compiler produce verbose output that lists
13002 # what "hidden" libraries, object files and flags are used when
13003 # linking a shared library.
13005 # There doesn't appear to be a way to prevent this compiler from
13006 # explicitly linking system object files so we need to strip them
13007 # from the output so that they don't get included in the library
13008 # dependencies.
13009 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13012 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13013 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13014 case $host in
13015 osf3*)
13016 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13019 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13021 esac
13023 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13024 hardcode_libdir_separator_CXX=:
13026 # Commands to make compiler produce verbose output that lists
13027 # what "hidden" libraries, object files and flags are used when
13028 # linking a shared library.
13029 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13031 else
13032 # FIXME: insert proper C++ library support
13033 ld_shlibs_CXX=no
13036 esac
13039 psos*)
13040 # FIXME: insert proper C++ library support
13041 ld_shlibs_CXX=no
13044 sunos4*)
13045 case $cc_basename in
13046 CC*)
13047 # Sun C++ 4.x
13048 # FIXME: insert proper C++ library support
13049 ld_shlibs_CXX=no
13051 lcc*)
13052 # Lucid
13053 # FIXME: insert proper C++ library support
13054 ld_shlibs_CXX=no
13057 # FIXME: insert proper C++ library support
13058 ld_shlibs_CXX=no
13060 esac
13063 solaris*)
13064 case $cc_basename in
13065 CC*)
13066 # Sun C++ 4.2, 5.x and Centerline C++
13067 archive_cmds_need_lc_CXX=yes
13068 no_undefined_flag_CXX=' -zdefs'
13069 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13070 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13071 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13073 hardcode_libdir_flag_spec_CXX='-R$libdir'
13074 hardcode_shlibpath_var_CXX=no
13075 case $host_os in
13076 solaris2.[0-5] | solaris2.[0-5].*) ;;
13078 # The compiler driver will combine and reorder linker options,
13079 # but understands `-z linker_flag'.
13080 # Supported since Solaris 2.6 (maybe 2.5.1?)
13081 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13083 esac
13084 link_all_deplibs_CXX=yes
13086 output_verbose_link_cmd='echo'
13088 # Archives containing C++ object files must be created using
13089 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13090 # necessary to make sure instantiated templates are included
13091 # in the archive.
13092 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13094 gcx*)
13095 # Green Hills C++ Compiler
13096 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13098 # The C++ compiler must be used to create the archive.
13099 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13102 # GNU C++ compiler with Solaris linker
13103 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13104 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13105 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13106 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13107 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13108 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13110 # Commands to make compiler produce verbose output that lists
13111 # what "hidden" libraries, object files and flags are used when
13112 # linking a shared library.
13113 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13114 else
13115 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13116 # platform.
13117 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13118 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13119 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13121 # Commands to make compiler produce verbose output that lists
13122 # what "hidden" libraries, object files and flags are used when
13123 # linking a shared library.
13124 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13127 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13128 case $host_os in
13129 solaris2.[0-5] | solaris2.[0-5].*) ;;
13131 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13133 esac
13136 esac
13139 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13140 no_undefined_flag_CXX='${wl}-z,text'
13141 archive_cmds_need_lc_CXX=no
13142 hardcode_shlibpath_var_CXX=no
13143 runpath_var='LD_RUN_PATH'
13145 case $cc_basename in
13146 CC*)
13147 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13148 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13151 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13152 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13154 esac
13157 sysv5* | sco3.2v5* | sco5v6*)
13158 # Note: We can NOT use -z defs as we might desire, because we do not
13159 # link with -lc, and that would cause any symbols used from libc to
13160 # always be unresolved, which means just about no library would
13161 # ever link correctly. If we're not using GNU ld we use -z text
13162 # though, which does catch some bad symbols but isn't as heavy-handed
13163 # as -z defs.
13164 no_undefined_flag_CXX='${wl}-z,text'
13165 allow_undefined_flag_CXX='${wl}-z,nodefs'
13166 archive_cmds_need_lc_CXX=no
13167 hardcode_shlibpath_var_CXX=no
13168 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13169 hardcode_libdir_separator_CXX=':'
13170 link_all_deplibs_CXX=yes
13171 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13172 runpath_var='LD_RUN_PATH'
13174 case $cc_basename in
13175 CC*)
13176 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13177 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13180 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13181 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13183 esac
13186 tandem*)
13187 case $cc_basename in
13188 NCC*)
13189 # NonStop-UX NCC 3.20
13190 # FIXME: insert proper C++ library support
13191 ld_shlibs_CXX=no
13194 # FIXME: insert proper C++ library support
13195 ld_shlibs_CXX=no
13197 esac
13200 vxworks*)
13201 # FIXME: insert proper C++ library support
13202 ld_shlibs_CXX=no
13206 # FIXME: insert proper C++ library support
13207 ld_shlibs_CXX=no
13209 esac
13211 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13212 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13213 test "$ld_shlibs_CXX" = no && can_build_shared=no
13215 GCC_CXX="$GXX"
13216 LD_CXX="$LD"
13218 ## CAVEAT EMPTOR:
13219 ## There is no encapsulation within the following macros, do not change
13220 ## the running order or otherwise move them around unless you know exactly
13221 ## what you are doing...
13222 # Dependencies to place before and after the object being linked:
13223 predep_objects_CXX=
13224 postdep_objects_CXX=
13225 predeps_CXX=
13226 postdeps_CXX=
13227 compiler_lib_search_path_CXX=
13229 cat > conftest.$ac_ext <<_LT_EOF
13230 class Foo
13232 public:
13233 Foo (void) { a = 0; }
13234 private:
13235 int a;
13237 _LT_EOF
13239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13240 (eval $ac_compile) 2>&5
13241 ac_status=$?
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }; then
13244 # Parse the compiler output and extract the necessary
13245 # objects, libraries and library flags.
13247 # Sentinel used to keep track of whether or not we are before
13248 # the conftest object file.
13249 pre_test_object_deps_done=no
13251 for p in `eval "$output_verbose_link_cmd"`; do
13252 case $p in
13254 -L* | -R* | -l*)
13255 # Some compilers place space between "-{L,R}" and the path.
13256 # Remove the space.
13257 if test $p = "-L" ||
13258 test $p = "-R"; then
13259 prev=$p
13260 continue
13261 else
13262 prev=
13265 if test "$pre_test_object_deps_done" = no; then
13266 case $p in
13267 -L* | -R*)
13268 # Internal compiler library paths should come after those
13269 # provided the user. The postdeps already come after the
13270 # user supplied libs so there is no need to process them.
13271 if test -z "$compiler_lib_search_path_CXX"; then
13272 compiler_lib_search_path_CXX="${prev}${p}"
13273 else
13274 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13277 # The "-l" case would never come before the object being
13278 # linked, so don't bother handling this case.
13279 esac
13280 else
13281 if test -z "$postdeps_CXX"; then
13282 postdeps_CXX="${prev}${p}"
13283 else
13284 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13289 *.$objext)
13290 # This assumes that the test object file only shows up
13291 # once in the compiler output.
13292 if test "$p" = "conftest.$objext"; then
13293 pre_test_object_deps_done=yes
13294 continue
13297 if test "$pre_test_object_deps_done" = no; then
13298 if test -z "$predep_objects_CXX"; then
13299 predep_objects_CXX="$p"
13300 else
13301 predep_objects_CXX="$predep_objects_CXX $p"
13303 else
13304 if test -z "$postdep_objects_CXX"; then
13305 postdep_objects_CXX="$p"
13306 else
13307 postdep_objects_CXX="$postdep_objects_CXX $p"
13312 *) ;; # Ignore the rest.
13314 esac
13315 done
13317 # Clean up.
13318 rm -f a.out a.exe
13319 else
13320 echo "libtool.m4: error: problem compiling CXX test program"
13323 $RM -f confest.$objext
13325 # PORTME: override above test on systems where it is broken
13326 case $host_os in
13327 interix[3-9]*)
13328 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13329 # hack all around it, let's just trust "g++" to DTRT.
13330 predep_objects_CXX=
13331 postdep_objects_CXX=
13332 postdeps_CXX=
13335 linux*)
13336 case `$CC -V 2>&1 | sed 5q` in
13337 *Sun\ C*)
13338 # Sun C++ 5.9
13340 # The more standards-conforming stlport4 library is
13341 # incompatible with the Cstd library. Avoid specifying
13342 # it if it's in CXXFLAGS. Ignore libCrun as
13343 # -library=stlport4 depends on it.
13344 case " $CXX $CXXFLAGS " in
13345 *" -library=stlport4 "*)
13346 solaris_use_stlport4=yes
13348 esac
13350 if test "$solaris_use_stlport4" != yes; then
13351 postdeps_CXX='-library=Cstd -library=Crun'
13354 esac
13357 solaris*)
13358 case $cc_basename in
13359 CC*)
13360 # The more standards-conforming stlport4 library is
13361 # incompatible with the Cstd library. Avoid specifying
13362 # it if it's in CXXFLAGS. Ignore libCrun as
13363 # -library=stlport4 depends on it.
13364 case " $CXX $CXXFLAGS " in
13365 *" -library=stlport4 "*)
13366 solaris_use_stlport4=yes
13368 esac
13370 # Adding this requires a known-good setup of shared libraries for
13371 # Sun compiler versions before 5.6, else PIC objects from an old
13372 # archive will be linked into the output, leading to subtle bugs.
13373 if test "$solaris_use_stlport4" != yes; then
13374 postdeps_CXX='-library=Cstd -library=Crun'
13377 esac
13379 esac
13382 case " $postdeps_CXX " in
13383 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13384 esac
13385 compiler_lib_search_dirs_CXX=
13386 if test -n "${compiler_lib_search_path_CXX}"; then
13387 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13420 lt_prog_compiler_wl_CXX=
13421 lt_prog_compiler_pic_CXX=
13422 lt_prog_compiler_static_CXX=
13424 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13425 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13427 # C++ specific cases for pic, static, wl, etc.
13428 if test "$GXX" = yes; then
13429 lt_prog_compiler_wl_CXX='-Wl,'
13430 lt_prog_compiler_static_CXX='-static'
13432 case $host_os in
13433 aix*)
13434 # All AIX code is PIC.
13435 if test "$host_cpu" = ia64; then
13436 # AIX 5 now supports IA64 processor
13437 lt_prog_compiler_static_CXX='-Bstatic'
13441 amigaos*)
13442 case $host_cpu in
13443 powerpc)
13444 # see comment about AmigaOS4 .so support
13445 lt_prog_compiler_pic_CXX='-fPIC'
13447 m68k)
13448 # FIXME: we need at least 68020 code to build shared libraries, but
13449 # adding the `-m68020' flag to GCC prevents building anything better,
13450 # like `-m68040'.
13451 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13453 esac
13456 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13457 # PIC is the default for these OSes.
13459 mingw* | cygwin* | os2* | pw32* | cegcc*)
13460 # This hack is so that the source file can tell whether it is being
13461 # built for inclusion in a dll (and should export symbols for example).
13462 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13463 # (--disable-auto-import) libraries
13464 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13466 darwin* | rhapsody*)
13467 # PIC is the default on this platform
13468 # Common symbols not allowed in MH_DYLIB files
13469 lt_prog_compiler_pic_CXX='-fno-common'
13471 *djgpp*)
13472 # DJGPP does not support shared libraries at all
13473 lt_prog_compiler_pic_CXX=
13475 interix[3-9]*)
13476 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13477 # Instead, we relocate shared libraries at runtime.
13479 sysv4*MP*)
13480 if test -d /usr/nec; then
13481 lt_prog_compiler_pic_CXX=-Kconform_pic
13484 hpux*)
13485 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13486 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13487 # sets the default TLS model and affects inlining.
13488 case $host_cpu in
13489 hppa*64*)
13492 lt_prog_compiler_pic_CXX='-fPIC'
13494 esac
13496 *qnx* | *nto*)
13497 # QNX uses GNU C++, but need to define -shared option too, otherwise
13498 # it will coredump.
13499 lt_prog_compiler_pic_CXX='-fPIC -shared'
13502 lt_prog_compiler_pic_CXX='-fPIC'
13504 esac
13505 else
13506 case $host_os in
13507 aix[4-9]*)
13508 # All AIX code is PIC.
13509 if test "$host_cpu" = ia64; then
13510 # AIX 5 now supports IA64 processor
13511 lt_prog_compiler_static_CXX='-Bstatic'
13512 else
13513 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13516 chorus*)
13517 case $cc_basename in
13518 cxch68*)
13519 # Green Hills C++ Compiler
13520 # _LT_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"
13522 esac
13524 dgux*)
13525 case $cc_basename in
13526 ec++*)
13527 lt_prog_compiler_pic_CXX='-KPIC'
13529 ghcx*)
13530 # Green Hills C++ Compiler
13531 lt_prog_compiler_pic_CXX='-pic'
13535 esac
13537 freebsd* | dragonfly*)
13538 # FreeBSD uses GNU C++
13540 hpux9* | hpux10* | hpux11*)
13541 case $cc_basename in
13542 CC*)
13543 lt_prog_compiler_wl_CXX='-Wl,'
13544 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13545 if test "$host_cpu" != ia64; then
13546 lt_prog_compiler_pic_CXX='+Z'
13549 aCC*)
13550 lt_prog_compiler_wl_CXX='-Wl,'
13551 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13552 case $host_cpu in
13553 hppa*64*|ia64*)
13554 # +Z the default
13557 lt_prog_compiler_pic_CXX='+Z'
13559 esac
13563 esac
13565 interix*)
13566 # This is c89, which is MS Visual C++ (no shared libs)
13567 # Anyone wants to do a port?
13569 irix5* | irix6* | nonstopux*)
13570 case $cc_basename in
13571 CC*)
13572 lt_prog_compiler_wl_CXX='-Wl,'
13573 lt_prog_compiler_static_CXX='-non_shared'
13574 # CC pic flag -KPIC is the default.
13578 esac
13580 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13581 case $cc_basename in
13582 KCC*)
13583 # KAI C++ Compiler
13584 lt_prog_compiler_wl_CXX='--backend -Wl,'
13585 lt_prog_compiler_pic_CXX='-fPIC'
13587 ecpc* )
13588 # old Intel C++ for x86_64 which still supported -KPIC.
13589 lt_prog_compiler_wl_CXX='-Wl,'
13590 lt_prog_compiler_pic_CXX='-KPIC'
13591 lt_prog_compiler_static_CXX='-static'
13593 icpc* )
13594 # Intel C++, used to be incompatible with GCC.
13595 # ICC 10 doesn't accept -KPIC any more.
13596 lt_prog_compiler_wl_CXX='-Wl,'
13597 lt_prog_compiler_pic_CXX='-fPIC'
13598 lt_prog_compiler_static_CXX='-static'
13600 pgCC* | pgcpp*)
13601 # Portland Group C++ compiler
13602 lt_prog_compiler_wl_CXX='-Wl,'
13603 lt_prog_compiler_pic_CXX='-fpic'
13604 lt_prog_compiler_static_CXX='-Bstatic'
13606 cxx*)
13607 # Compaq C++
13608 # Make sure the PIC flag is empty. It appears that all Alpha
13609 # Linux and Compaq Tru64 Unix objects are PIC.
13610 lt_prog_compiler_pic_CXX=
13611 lt_prog_compiler_static_CXX='-non_shared'
13613 xlc* | xlC*)
13614 # IBM XL 8.0 on PPC
13615 lt_prog_compiler_wl_CXX='-Wl,'
13616 lt_prog_compiler_pic_CXX='-qpic'
13617 lt_prog_compiler_static_CXX='-qstaticlink'
13620 case `$CC -V 2>&1 | sed 5q` in
13621 *Sun\ C*)
13622 # Sun C++ 5.9
13623 lt_prog_compiler_pic_CXX='-KPIC'
13624 lt_prog_compiler_static_CXX='-Bstatic'
13625 lt_prog_compiler_wl_CXX='-Qoption ld '
13627 esac
13629 esac
13631 lynxos*)
13633 m88k*)
13635 mvs*)
13636 case $cc_basename in
13637 cxx*)
13638 lt_prog_compiler_pic_CXX='-W c,exportall'
13642 esac
13644 netbsd*)
13646 *qnx* | *nto*)
13647 # QNX uses GNU C++, but need to define -shared option too, otherwise
13648 # it will coredump.
13649 lt_prog_compiler_pic_CXX='-fPIC -shared'
13651 osf3* | osf4* | osf5*)
13652 case $cc_basename in
13653 KCC*)
13654 lt_prog_compiler_wl_CXX='--backend -Wl,'
13656 RCC*)
13657 # Rational C++ 2.4.1
13658 lt_prog_compiler_pic_CXX='-pic'
13660 cxx*)
13661 # Digital/Compaq C++
13662 lt_prog_compiler_wl_CXX='-Wl,'
13663 # Make sure the PIC flag is empty. It appears that all Alpha
13664 # Linux and Compaq Tru64 Unix objects are PIC.
13665 lt_prog_compiler_pic_CXX=
13666 lt_prog_compiler_static_CXX='-non_shared'
13670 esac
13672 psos*)
13674 solaris*)
13675 case $cc_basename in
13676 CC*)
13677 # Sun C++ 4.2, 5.x and Centerline C++
13678 lt_prog_compiler_pic_CXX='-KPIC'
13679 lt_prog_compiler_static_CXX='-Bstatic'
13680 lt_prog_compiler_wl_CXX='-Qoption ld '
13682 gcx*)
13683 # Green Hills C++ Compiler
13684 lt_prog_compiler_pic_CXX='-PIC'
13688 esac
13690 sunos4*)
13691 case $cc_basename in
13692 CC*)
13693 # Sun C++ 4.x
13694 lt_prog_compiler_pic_CXX='-pic'
13695 lt_prog_compiler_static_CXX='-Bstatic'
13697 lcc*)
13698 # Lucid
13699 lt_prog_compiler_pic_CXX='-pic'
13703 esac
13705 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13706 case $cc_basename in
13707 CC*)
13708 lt_prog_compiler_wl_CXX='-Wl,'
13709 lt_prog_compiler_pic_CXX='-KPIC'
13710 lt_prog_compiler_static_CXX='-Bstatic'
13712 esac
13714 tandem*)
13715 case $cc_basename in
13716 NCC*)
13717 # NonStop-UX NCC 3.20
13718 lt_prog_compiler_pic_CXX='-KPIC'
13722 esac
13724 vxworks*)
13727 lt_prog_compiler_can_build_shared_CXX=no
13729 esac
13732 case $host_os in
13733 # For platforms which do not support PIC, -DPIC is meaningless:
13734 *djgpp*)
13735 lt_prog_compiler_pic_CXX=
13738 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13740 esac
13741 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13742 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13747 # Check to make sure the PIC flag actually works.
13749 if test -n "$lt_prog_compiler_pic_CXX"; then
13750 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13751 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13752 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13754 else
13755 lt_cv_prog_compiler_pic_works_CXX=no
13756 ac_outfile=conftest.$ac_objext
13757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13758 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13759 # Insert the option either (1) after the last *FLAGS variable, or
13760 # (2) before a word containing "conftest.", or (3) at the end.
13761 # Note that $ac_compile itself does not contain backslashes and begins
13762 # with a dollar sign (not a hyphen), so the echo should work correctly.
13763 # The option is referenced via a variable to avoid confusing sed.
13764 lt_compile=`echo "$ac_compile" | $SED \
13765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13767 -e 's:$: $lt_compiler_flag:'`
13768 (eval echo "\"\$as_me:13768: $lt_compile\"" >&5)
13769 (eval "$lt_compile" 2>conftest.err)
13770 ac_status=$?
13771 cat conftest.err >&5
13772 echo "$as_me:13772: \$? = $ac_status" >&5
13773 if (exit $ac_status) && test -s "$ac_outfile"; then
13774 # The compiler can only warn and ignore the option if not recognized
13775 # So say no if there are warnings other than the usual output.
13776 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13777 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13778 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13779 lt_cv_prog_compiler_pic_works_CXX=yes
13782 $RM conftest*
13785 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13786 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
13788 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13789 case $lt_prog_compiler_pic_CXX in
13790 "" | " "*) ;;
13791 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13792 esac
13793 else
13794 lt_prog_compiler_pic_CXX=
13795 lt_prog_compiler_can_build_shared_CXX=no
13803 # Check to make sure the static flag actually works.
13805 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13806 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13807 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13808 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 else
13811 lt_cv_prog_compiler_static_works_CXX=no
13812 save_LDFLAGS="$LDFLAGS"
13813 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13814 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13815 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13816 # The linker can only warn and ignore the option if not recognized
13817 # So say no if there are warnings
13818 if test -s conftest.err; then
13819 # Append any errors to the config.log.
13820 cat conftest.err 1>&5
13821 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13823 if diff conftest.exp conftest.er2 >/dev/null; then
13824 lt_cv_prog_compiler_static_works_CXX=yes
13826 else
13827 lt_cv_prog_compiler_static_works_CXX=yes
13830 $RM -r conftest*
13831 LDFLAGS="$save_LDFLAGS"
13834 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13835 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
13837 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13839 else
13840 lt_prog_compiler_static_CXX=
13846 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13847 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13848 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13849 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 else
13851 lt_cv_prog_compiler_c_o_CXX=no
13852 $RM -r conftest 2>/dev/null
13853 mkdir conftest
13854 cd conftest
13855 mkdir out
13856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13858 lt_compiler_flag="-o out/conftest2.$ac_objext"
13859 # Insert the option either (1) after the last *FLAGS variable, or
13860 # (2) before a word containing "conftest.", or (3) at the end.
13861 # Note that $ac_compile itself does not contain backslashes and begins
13862 # with a dollar sign (not a hyphen), so the echo should work correctly.
13863 lt_compile=`echo "$ac_compile" | $SED \
13864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13866 -e 's:$: $lt_compiler_flag:'`
13867 (eval echo "\"\$as_me:13867: $lt_compile\"" >&5)
13868 (eval "$lt_compile" 2>out/conftest.err)
13869 ac_status=$?
13870 cat out/conftest.err >&5
13871 echo "$as_me:13871: \$? = $ac_status" >&5
13872 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13873 then
13874 # The compiler can only warn and ignore the option if not recognized
13875 # So say no if there are warnings
13876 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13877 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13878 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13879 lt_cv_prog_compiler_c_o_CXX=yes
13882 chmod u+w . 2>&5
13883 $RM conftest*
13884 # SGI C++ compiler will create directory out/ii_files/ for
13885 # template instantiation
13886 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13887 $RM out/* && rmdir out
13888 cd ..
13889 $RM -r conftest
13890 $RM conftest*
13893 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13894 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13898 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13899 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13900 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 else
13903 lt_cv_prog_compiler_c_o_CXX=no
13904 $RM -r conftest 2>/dev/null
13905 mkdir conftest
13906 cd conftest
13907 mkdir out
13908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13910 lt_compiler_flag="-o out/conftest2.$ac_objext"
13911 # Insert the option either (1) after the last *FLAGS variable, or
13912 # (2) before a word containing "conftest.", or (3) at the end.
13913 # Note that $ac_compile itself does not contain backslashes and begins
13914 # with a dollar sign (not a hyphen), so the echo should work correctly.
13915 lt_compile=`echo "$ac_compile" | $SED \
13916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13918 -e 's:$: $lt_compiler_flag:'`
13919 (eval echo "\"\$as_me:13919: $lt_compile\"" >&5)
13920 (eval "$lt_compile" 2>out/conftest.err)
13921 ac_status=$?
13922 cat out/conftest.err >&5
13923 echo "$as_me:13923: \$? = $ac_status" >&5
13924 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13925 then
13926 # The compiler can only warn and ignore the option if not recognized
13927 # So say no if there are warnings
13928 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13929 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13930 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13931 lt_cv_prog_compiler_c_o_CXX=yes
13934 chmod u+w . 2>&5
13935 $RM conftest*
13936 # SGI C++ compiler will create directory out/ii_files/ for
13937 # template instantiation
13938 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13939 $RM out/* && rmdir out
13940 cd ..
13941 $RM -r conftest
13942 $RM conftest*
13945 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13946 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13951 hard_links="nottested"
13952 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13953 # do not overwrite the value of need_locks provided by the user
13954 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13955 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13956 hard_links=yes
13957 $RM conftest*
13958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13959 touch conftest.a
13960 ln conftest.a conftest.b 2>&5 || hard_links=no
13961 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13962 echo "$as_me:$LINENO: result: $hard_links" >&5
13963 echo "${ECHO_T}$hard_links" >&6
13964 if test "$hard_links" = no; then
13965 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13966 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13967 need_locks=warn
13969 else
13970 need_locks=no
13975 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13976 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13978 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13979 case $host_os in
13980 aix[4-9]*)
13981 # If we're using GNU nm, then we don't want the "-C" option.
13982 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13983 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13984 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'
13985 else
13986 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'
13989 pw32*)
13990 export_symbols_cmds_CXX="$ltdll_cmds"
13992 cygwin* | mingw* | cegcc*)
13993 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13996 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13998 esac
13999 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14001 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14002 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14003 test "$ld_shlibs_CXX" = no && can_build_shared=no
14005 with_gnu_ld_CXX=$with_gnu_ld
14013 # Do we need to explicitly link libc?
14015 case "x$archive_cmds_need_lc_CXX" in
14016 x|xyes)
14017 # Assume -lc should be added
14018 archive_cmds_need_lc_CXX=yes
14020 if test "$enable_shared" = yes && test "$GCC" = yes; then
14021 case $archive_cmds_CXX in
14022 *'~'*)
14023 # FIXME: we may have to deal with multi-command sequences.
14025 '$CC '*)
14026 # Test whether the compiler implicitly links with -lc since on some
14027 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14028 # to ld, don't add -lc before -lgcc.
14029 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14030 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14031 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14033 else
14034 $RM conftest*
14035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14038 (eval $ac_compile) 2>&5
14039 ac_status=$?
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } 2>conftest.err; then
14042 soname=conftest
14043 lib=conftest
14044 libobjs=conftest.$ac_objext
14045 deplibs=
14046 wl=$lt_prog_compiler_wl_CXX
14047 pic_flag=$lt_prog_compiler_pic_CXX
14048 compiler_flags=-v
14049 linker_flags=-v
14050 verstring=
14051 output_objdir=.
14052 libname=conftest
14053 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14054 allow_undefined_flag_CXX=
14055 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14056 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14057 ac_status=$?
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }
14060 then
14061 lt_cv_archive_cmds_need_lc_CXX=no
14062 else
14063 lt_cv_archive_cmds_need_lc_CXX=yes
14065 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14066 else
14067 cat conftest.err 1>&5
14069 $RM conftest*
14072 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14073 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
14074 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14076 esac
14079 esac
14144 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14145 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14147 library_names_spec=
14148 libname_spec='lib$name'
14149 soname_spec=
14150 shrext_cmds=".so"
14151 postinstall_cmds=
14152 postuninstall_cmds=
14153 finish_cmds=
14154 finish_eval=
14155 shlibpath_var=
14156 shlibpath_overrides_runpath=unknown
14157 version_type=none
14158 dynamic_linker="$host_os ld.so"
14159 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14160 need_lib_prefix=unknown
14161 hardcode_into_libs=no
14163 # when you set need_version to no, make sure it does not cause -set_version
14164 # flags to be left without arguments
14165 need_version=unknown
14167 case $host_os in
14168 aix3*)
14169 version_type=linux
14170 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14171 shlibpath_var=LIBPATH
14173 # AIX 3 has no versioning support, so we append a major version to the name.
14174 soname_spec='${libname}${release}${shared_ext}$major'
14177 aix[4-9]*)
14178 version_type=linux
14179 need_lib_prefix=no
14180 need_version=no
14181 hardcode_into_libs=yes
14182 if test "$host_cpu" = ia64; then
14183 # AIX 5 supports IA64
14184 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14185 shlibpath_var=LD_LIBRARY_PATH
14186 else
14187 # With GCC up to 2.95.x, collect2 would create an import file
14188 # for dependence libraries. The import file would start with
14189 # the line `#! .'. This would cause the generated library to
14190 # depend on `.', always an invalid library. This was fixed in
14191 # development snapshots of GCC prior to 3.0.
14192 case $host_os in
14193 aix4 | aix4.[01] | aix4.[01].*)
14194 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14195 echo ' yes '
14196 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14198 else
14199 can_build_shared=no
14202 esac
14203 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14204 # soname into executable. Probably we can add versioning support to
14205 # collect2, so additional links can be useful in future.
14206 if test "$aix_use_runtimelinking" = yes; then
14207 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14208 # instead of lib<name>.a to let people know that these are not
14209 # typical AIX shared libraries.
14210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14211 else
14212 # We preserve .a as extension for shared libraries through AIX4.2
14213 # and later when we are not doing run time linking.
14214 library_names_spec='${libname}${release}.a $libname.a'
14215 soname_spec='${libname}${release}${shared_ext}$major'
14217 shlibpath_var=LIBPATH
14221 amigaos*)
14222 case $host_cpu in
14223 powerpc)
14224 # Since July 2007 AmigaOS4 officially supports .so libraries.
14225 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14228 m68k)
14229 library_names_spec='$libname.ixlibrary $libname.a'
14230 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14231 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'
14233 esac
14236 beos*)
14237 library_names_spec='${libname}${shared_ext}'
14238 dynamic_linker="$host_os ld.so"
14239 shlibpath_var=LIBRARY_PATH
14242 bsdi[45]*)
14243 version_type=linux
14244 need_version=no
14245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14246 soname_spec='${libname}${release}${shared_ext}$major'
14247 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14248 shlibpath_var=LD_LIBRARY_PATH
14249 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14250 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14251 # the default ld.so.conf also contains /usr/contrib/lib and
14252 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14253 # libtool to hard-code these into programs
14256 cygwin* | mingw* | pw32* | cegcc*)
14257 version_type=windows
14258 shrext_cmds=".dll"
14259 need_version=no
14260 need_lib_prefix=no
14262 case $GCC,$host_os in
14263 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14264 library_names_spec='$libname.dll.a'
14265 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14266 postinstall_cmds='base_file=`basename \${file}`~
14267 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14268 dldir=$destdir/`dirname \$dlpath`~
14269 test -d \$dldir || mkdir -p \$dldir~
14270 $install_prog $dir/$dlname \$dldir/$dlname~
14271 chmod a+x \$dldir/$dlname~
14272 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14273 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14275 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14276 dlpath=$dir/\$dldll~
14277 $RM \$dlpath'
14278 shlibpath_overrides_runpath=yes
14280 case $host_os in
14281 cygwin*)
14282 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14283 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14284 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14286 mingw* | cegcc*)
14287 # MinGW DLLs use traditional 'lib' prefix
14288 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14289 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14290 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14291 # It is most probably a Windows format PATH printed by
14292 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14293 # path with ; separators, and with drive letters. We can handle the
14294 # drive letters (cygwin fileutils understands them), so leave them,
14295 # especially as we might pass files found there to a mingw objdump,
14296 # which wouldn't understand a cygwinified path. Ahh.
14297 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14298 else
14299 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14302 pw32*)
14303 # pw32 DLLs use 'pw' prefix rather than 'lib'
14304 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14306 esac
14310 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14312 esac
14313 dynamic_linker='Win32 ld.exe'
14314 # FIXME: first we should search . and the directory the executable is in
14315 shlibpath_var=PATH
14318 darwin* | rhapsody*)
14319 dynamic_linker="$host_os dyld"
14320 version_type=darwin
14321 need_lib_prefix=no
14322 need_version=no
14323 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14324 soname_spec='${libname}${release}${major}$shared_ext'
14325 shlibpath_overrides_runpath=yes
14326 shlibpath_var=DYLD_LIBRARY_PATH
14327 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14329 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14332 dgux*)
14333 version_type=linux
14334 need_lib_prefix=no
14335 need_version=no
14336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14337 soname_spec='${libname}${release}${shared_ext}$major'
14338 shlibpath_var=LD_LIBRARY_PATH
14341 freebsd1*)
14342 dynamic_linker=no
14345 freebsd* | dragonfly*)
14346 # DragonFly does not have aout. When/if they implement a new
14347 # versioning mechanism, adjust this.
14348 if test -x /usr/bin/objformat; then
14349 objformat=`/usr/bin/objformat`
14350 else
14351 case $host_os in
14352 freebsd[123]*) objformat=aout ;;
14353 *) objformat=elf ;;
14354 esac
14356 version_type=freebsd-$objformat
14357 case $version_type in
14358 freebsd-elf*)
14359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14360 need_version=no
14361 need_lib_prefix=no
14363 freebsd-*)
14364 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14365 need_version=yes
14367 esac
14368 shlibpath_var=LD_LIBRARY_PATH
14369 case $host_os in
14370 freebsd2*)
14371 shlibpath_overrides_runpath=yes
14373 freebsd3.[01]* | freebsdelf3.[01]*)
14374 shlibpath_overrides_runpath=yes
14375 hardcode_into_libs=yes
14377 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14378 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14379 shlibpath_overrides_runpath=no
14380 hardcode_into_libs=yes
14382 *) # from 4.6 on, and DragonFly
14383 shlibpath_overrides_runpath=yes
14384 hardcode_into_libs=yes
14386 esac
14389 gnu*)
14390 version_type=linux
14391 need_lib_prefix=no
14392 need_version=no
14393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14394 soname_spec='${libname}${release}${shared_ext}$major'
14395 shlibpath_var=LD_LIBRARY_PATH
14396 hardcode_into_libs=yes
14399 hpux9* | hpux10* | hpux11*)
14400 # Give a soname corresponding to the major version so that dld.sl refuses to
14401 # link against other versions.
14402 version_type=sunos
14403 need_lib_prefix=no
14404 need_version=no
14405 case $host_cpu in
14406 ia64*)
14407 shrext_cmds='.so'
14408 hardcode_into_libs=yes
14409 dynamic_linker="$host_os dld.so"
14410 shlibpath_var=LD_LIBRARY_PATH
14411 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14413 soname_spec='${libname}${release}${shared_ext}$major'
14414 if test "X$HPUX_IA64_MODE" = X32; then
14415 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14416 else
14417 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14419 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14421 hppa*64*)
14422 shrext_cmds='.sl'
14423 hardcode_into_libs=yes
14424 dynamic_linker="$host_os dld.sl"
14425 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14426 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14428 soname_spec='${libname}${release}${shared_ext}$major'
14429 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14430 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14433 shrext_cmds='.sl'
14434 dynamic_linker="$host_os dld.sl"
14435 shlibpath_var=SHLIB_PATH
14436 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14438 soname_spec='${libname}${release}${shared_ext}$major'
14440 esac
14441 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14442 postinstall_cmds='chmod 555 $lib'
14445 interix[3-9]*)
14446 version_type=linux
14447 need_lib_prefix=no
14448 need_version=no
14449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14450 soname_spec='${libname}${release}${shared_ext}$major'
14451 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14452 shlibpath_var=LD_LIBRARY_PATH
14453 shlibpath_overrides_runpath=no
14454 hardcode_into_libs=yes
14457 irix5* | irix6* | nonstopux*)
14458 case $host_os in
14459 nonstopux*) version_type=nonstopux ;;
14461 if test "$lt_cv_prog_gnu_ld" = yes; then
14462 version_type=linux
14463 else
14464 version_type=irix
14465 fi ;;
14466 esac
14467 need_lib_prefix=no
14468 need_version=no
14469 soname_spec='${libname}${release}${shared_ext}$major'
14470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14471 case $host_os in
14472 irix5* | nonstopux*)
14473 libsuff= shlibsuff=
14476 case $LD in # libtool.m4 will add one of these switches to LD
14477 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14478 libsuff= shlibsuff= libmagic=32-bit;;
14479 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14480 libsuff=32 shlibsuff=N32 libmagic=N32;;
14481 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14482 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14483 *) libsuff= shlibsuff= libmagic=never-match;;
14484 esac
14486 esac
14487 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14488 shlibpath_overrides_runpath=no
14489 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14490 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14491 hardcode_into_libs=yes
14494 # No shared lib support for Linux oldld, aout, or coff.
14495 linux*oldld* | linux*aout* | linux*coff*)
14496 dynamic_linker=no
14499 # This must be Linux ELF.
14500 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14501 version_type=linux
14502 need_lib_prefix=no
14503 need_version=no
14504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14505 soname_spec='${libname}${release}${shared_ext}$major'
14506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14507 shlibpath_var=LD_LIBRARY_PATH
14508 shlibpath_overrides_runpath=no
14510 # Some binutils ld are patched to set DT_RUNPATH
14511 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14513 else
14514 lt_cv_shlibpath_overrides_runpath=no
14515 save_LDFLAGS=$LDFLAGS
14516 save_libdir=$libdir
14517 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14518 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14519 if test x$gcc_no_link = xyes; then
14520 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14521 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14522 { (exit 1); exit 1; }; }
14524 cat >conftest.$ac_ext <<_ACEOF
14525 /* confdefs.h. */
14526 _ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14532 main ()
14536 return 0;
14538 _ACEOF
14539 rm -f conftest.$ac_objext conftest$ac_exeext
14540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14541 (eval $ac_link) 2>conftest.er1
14542 ac_status=$?
14543 grep -v '^ *+' conftest.er1 >conftest.err
14544 rm -f conftest.er1
14545 cat conftest.err >&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); } &&
14548 { ac_try='test -z "$ac_cxx_werror_flag"
14549 || test ! -s conftest.err'
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; } &&
14555 { ac_try='test -s conftest$ac_exeext'
14556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14558 ac_status=$?
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; }; then
14561 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14562 lt_cv_shlibpath_overrides_runpath=yes
14565 else
14566 echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14570 rm -f conftest.err conftest.$ac_objext \
14571 conftest$ac_exeext conftest.$ac_ext
14572 LDFLAGS=$save_LDFLAGS
14573 libdir=$save_libdir
14577 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14579 # This implies no fast_install, which is unacceptable.
14580 # Some rework will be needed to allow for fast_install
14581 # before this can be enabled.
14582 hardcode_into_libs=yes
14584 # Append ld.so.conf contents to the search path
14585 if test -f /etc/ld.so.conf; then
14586 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14587 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14590 # We used to test for /lib/ld.so.1 and disable shared libraries on
14591 # powerpc, because MkLinux only supported shared libraries with the
14592 # GNU dynamic linker. Since this was broken with cross compilers,
14593 # most powerpc-linux boxes support dynamic linking these days and
14594 # people can always --disable-shared, the test was removed, and we
14595 # assume the GNU/Linux dynamic linker is in use.
14596 dynamic_linker='GNU/Linux ld.so'
14599 netbsd*)
14600 version_type=sunos
14601 need_lib_prefix=no
14602 need_version=no
14603 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14606 dynamic_linker='NetBSD (a.out) ld.so'
14607 else
14608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14609 soname_spec='${libname}${release}${shared_ext}$major'
14610 dynamic_linker='NetBSD ld.elf_so'
14612 shlibpath_var=LD_LIBRARY_PATH
14613 shlibpath_overrides_runpath=yes
14614 hardcode_into_libs=yes
14617 newsos6)
14618 version_type=linux
14619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14620 shlibpath_var=LD_LIBRARY_PATH
14621 shlibpath_overrides_runpath=yes
14624 *nto* | *qnx*)
14625 version_type=qnx
14626 need_lib_prefix=no
14627 need_version=no
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14629 soname_spec='${libname}${release}${shared_ext}$major'
14630 shlibpath_var=LD_LIBRARY_PATH
14631 shlibpath_overrides_runpath=no
14632 hardcode_into_libs=yes
14633 dynamic_linker='ldqnx.so'
14636 openbsd*)
14637 version_type=sunos
14638 sys_lib_dlsearch_path_spec="/usr/lib"
14639 need_lib_prefix=no
14640 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14641 case $host_os in
14642 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14643 *) need_version=no ;;
14644 esac
14645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14647 shlibpath_var=LD_LIBRARY_PATH
14648 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14649 case $host_os in
14650 openbsd2.[89] | openbsd2.[89].*)
14651 shlibpath_overrides_runpath=no
14654 shlibpath_overrides_runpath=yes
14656 esac
14657 else
14658 shlibpath_overrides_runpath=yes
14662 os2*)
14663 libname_spec='$name'
14664 shrext_cmds=".dll"
14665 need_lib_prefix=no
14666 library_names_spec='$libname${shared_ext} $libname.a'
14667 dynamic_linker='OS/2 ld.exe'
14668 shlibpath_var=LIBPATH
14671 osf3* | osf4* | osf5*)
14672 version_type=osf
14673 need_lib_prefix=no
14674 need_version=no
14675 soname_spec='${libname}${release}${shared_ext}$major'
14676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14677 shlibpath_var=LD_LIBRARY_PATH
14678 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14679 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14682 rdos*)
14683 dynamic_linker=no
14686 solaris*)
14687 version_type=linux
14688 need_lib_prefix=no
14689 need_version=no
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691 soname_spec='${libname}${release}${shared_ext}$major'
14692 shlibpath_var=LD_LIBRARY_PATH
14693 shlibpath_overrides_runpath=yes
14694 hardcode_into_libs=yes
14695 # ldd complains unless libraries are executable
14696 postinstall_cmds='chmod +x $lib'
14699 sunos4*)
14700 version_type=sunos
14701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14702 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14703 shlibpath_var=LD_LIBRARY_PATH
14704 shlibpath_overrides_runpath=yes
14705 if test "$with_gnu_ld" = yes; then
14706 need_lib_prefix=no
14708 need_version=yes
14711 sysv4 | sysv4.3*)
14712 version_type=linux
14713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14714 soname_spec='${libname}${release}${shared_ext}$major'
14715 shlibpath_var=LD_LIBRARY_PATH
14716 case $host_vendor in
14717 sni)
14718 shlibpath_overrides_runpath=no
14719 need_lib_prefix=no
14720 runpath_var=LD_RUN_PATH
14722 siemens)
14723 need_lib_prefix=no
14725 motorola)
14726 need_lib_prefix=no
14727 need_version=no
14728 shlibpath_overrides_runpath=no
14729 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14731 esac
14734 sysv4*MP*)
14735 if test -d /usr/nec ;then
14736 version_type=linux
14737 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14738 soname_spec='$libname${shared_ext}.$major'
14739 shlibpath_var=LD_LIBRARY_PATH
14743 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14744 version_type=freebsd-elf
14745 need_lib_prefix=no
14746 need_version=no
14747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14748 soname_spec='${libname}${release}${shared_ext}$major'
14749 shlibpath_var=LD_LIBRARY_PATH
14750 shlibpath_overrides_runpath=yes
14751 hardcode_into_libs=yes
14752 if test "$with_gnu_ld" = yes; then
14753 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14754 else
14755 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14756 case $host_os in
14757 sco3.2v5*)
14758 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14760 esac
14762 sys_lib_dlsearch_path_spec='/usr/lib'
14765 tpf*)
14766 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14767 version_type=linux
14768 need_lib_prefix=no
14769 need_version=no
14770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14771 shlibpath_var=LD_LIBRARY_PATH
14772 shlibpath_overrides_runpath=no
14773 hardcode_into_libs=yes
14776 uts4*)
14777 version_type=linux
14778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14779 soname_spec='${libname}${release}${shared_ext}$major'
14780 shlibpath_var=LD_LIBRARY_PATH
14784 dynamic_linker=no
14786 esac
14787 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14788 echo "${ECHO_T}$dynamic_linker" >&6
14789 test "$dynamic_linker" = no && can_build_shared=no
14791 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14792 if test "$GCC" = yes; then
14793 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14796 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14797 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14799 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14800 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14838 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14839 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14840 hardcode_action_CXX=
14841 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14842 test -n "$runpath_var_CXX" ||
14843 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14845 # We can hardcode non-existent directories.
14846 if test "$hardcode_direct_CXX" != no &&
14847 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14848 # have to relink, otherwise we might link with an installed library
14849 # when we should be linking with a yet-to-be-installed one
14850 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14851 test "$hardcode_minus_L_CXX" != no; then
14852 # Linking always hardcodes the temporary library directory.
14853 hardcode_action_CXX=relink
14854 else
14855 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14856 hardcode_action_CXX=immediate
14858 else
14859 # We cannot hardcode anything, or else we can only hardcode existing
14860 # directories.
14861 hardcode_action_CXX=unsupported
14863 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14864 echo "${ECHO_T}$hardcode_action_CXX" >&6
14866 if test "$hardcode_action_CXX" = relink ||
14867 test "$inherit_rpath_CXX" = yes; then
14868 # Fast installation is not supported
14869 enable_fast_install=no
14870 elif test "$shlibpath_overrides_runpath" = yes ||
14871 test "$enable_shared" = no; then
14872 # Fast installation is not necessary
14873 enable_fast_install=needless
14882 fi # test -n "$compiler"
14884 CC=$lt_save_CC
14885 LDCXX=$LD
14886 LD=$lt_save_LD
14887 GCC=$lt_save_GCC
14888 with_gnu_ld=$lt_save_with_gnu_ld
14889 lt_cv_path_LDCXX=$lt_cv_path_LD
14890 lt_cv_path_LD=$lt_save_path_LD
14891 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14892 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14893 fi # test "$_lt_caught_CXX_error" != yes
14895 ac_ext=c
14896 ac_cpp='$CPP $CPPFLAGS'
14897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14913 ac_config_commands="$ac_config_commands libtool"
14918 # Only expand once:
14923 # Check whether --with-target-subdir or --without-target-subdir was given.
14924 if test "${with_target_subdir+set}" = set; then
14925 withval="$with_target_subdir"
14929 # Check whether --with-cross-host or --without-cross-host was given.
14930 if test "${with_cross_host+set}" = set; then
14931 withval="$with_cross_host"
14935 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
14936 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
14937 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
14938 if test -z "$THREADS"; then
14939 THREADS=no
14941 echo "$as_me:$LINENO: result: $THREADS" >&5
14942 echo "${ECHO_T}$THREADS" >&6
14944 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
14945 if test "${enable_parallel_mark+set}" = set; then
14946 enableval="$enable_parallel_mark"
14947 case "$THREADS" in
14948 no | none | single)
14949 { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
14950 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
14951 { (exit 1); exit 1; }; }
14953 esac
14957 AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
14958 THREADLIBS=
14959 case "$THREADS" in
14960 no | none | single)
14961 THREADS=none
14963 posix | posix95 | pthreads)
14964 THREADS=posix
14965 THREADLIBS=-lpthread
14966 case "$host" in
14967 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
14969 cat >>confdefs.h <<\_ACEOF
14970 #define GC_LINUX_THREADS 1
14971 _ACEOF
14974 cat >>confdefs.h <<\_ACEOF
14975 #define _REENTRANT 1
14976 _ACEOF
14978 if test "${enable_parallel_mark}" = yes; then
14980 cat >>confdefs.h <<\_ACEOF
14981 #define PARALLEL_MARK 1
14982 _ACEOF
14986 cat >>confdefs.h <<\_ACEOF
14987 #define THREAD_LOCAL_ALLOC 1
14988 _ACEOF
14991 *-*-linux*)
14992 cat >>confdefs.h <<\_ACEOF
14993 #define GC_LINUX_THREADS 1
14994 _ACEOF
14996 cat >>confdefs.h <<\_ACEOF
14997 #define _REENTRANT 1
14998 _ACEOF
15001 *-*-aix*)
15003 cat >>confdefs.h <<\_ACEOF
15004 #define GC_AIX_THREADS 1
15005 _ACEOF
15007 cat >>confdefs.h <<\_ACEOF
15008 #define _REENTRANT 1
15009 _ACEOF
15012 *-*-hpux11*)
15013 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
15014 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
15016 cat >>confdefs.h <<\_ACEOF
15017 #define GC_HPUX_THREADS 1
15018 _ACEOF
15021 cat >>confdefs.h <<\_ACEOF
15022 #define _POSIX_C_SOURCE 199506L
15023 _ACEOF
15025 if test "${enable_parallel_mark}" = yes; then
15026 cat >>confdefs.h <<\_ACEOF
15027 #define PARALLEL_MARK 1
15028 _ACEOF
15031 cat >>confdefs.h <<\_ACEOF
15032 #define THREAD_LOCAL_ALLOC 1
15033 _ACEOF
15035 THREADLIBS="-lpthread -lrt"
15036 # HPUX needs REENTRANT for the _r calls.
15038 cat >>confdefs.h <<\_ACEOF
15039 #define _REENTRANT 1
15040 _ACEOF
15043 *-*-hpux10*)
15044 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
15045 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
15047 *-*-kfreebsd*-gnu)
15048 cat >>confdefs.h <<\_ACEOF
15049 #define GC_FREEBSD_THREADS 1
15050 _ACEOF
15052 INCLUDES="$INCLUDES -pthread"
15053 THREADDLLIBS=-pthread
15054 cat >>confdefs.h <<\_ACEOF
15055 #define _REENTRANT 1
15056 _ACEOF
15058 if test "${enable_parallel_mark}" = yes; then
15059 cat >>confdefs.h <<\_ACEOF
15060 #define PARALLEL_MARK 1
15061 _ACEOF
15064 cat >>confdefs.h <<\_ACEOF
15065 #define THREAD_LOCAL_ALLOC 1
15066 _ACEOF
15069 cat >>confdefs.h <<\_ACEOF
15070 #define USE_COMPILER_TLS 1
15071 _ACEOF
15074 *-*-freebsd*)
15075 { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
15076 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
15078 cat >>confdefs.h <<\_ACEOF
15079 #define GC_FREEBSD_THREADS 1
15080 _ACEOF
15082 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
15083 THREADLIBS=-pthread
15085 *-*-solaris*)
15087 cat >>confdefs.h <<\_ACEOF
15088 #define GC_SOLARIS_PTHREADS 1
15089 _ACEOF
15091 # Need to use alternate thread library, otherwise gctest hangs
15092 # on Solaris 8.
15093 multi_os_directory=`$CC -print-multi-os-directory`
15094 THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \
15095 -R/usr/lib/lwp/$multi_os_directory -lpthread -lthread -lrt"
15097 *-*-irix*)
15099 cat >>confdefs.h <<\_ACEOF
15100 #define GC_IRIX_THREADS 1
15101 _ACEOF
15104 *-*-cygwin*)
15106 cat >>confdefs.h <<\_ACEOF
15107 #define GC_WIN32_THREADS 1
15108 _ACEOF
15111 *-*-darwin*)
15113 cat >>confdefs.h <<\_ACEOF
15114 #define GC_DARWIN_THREADS 1
15115 _ACEOF
15117 cat >>confdefs.h <<\_ACEOF
15118 #define THREAD_LOCAL_ALLOC 1
15119 _ACEOF
15121 if test "${enable_parallel_mark}" = yes; then
15122 cat >>confdefs.h <<\_ACEOF
15123 #define PARALLEL_MARK 1
15124 _ACEOF
15128 *-*-osf*)
15130 cat >>confdefs.h <<\_ACEOF
15131 #define GC_OSF1_THREADS 1
15132 _ACEOF
15134 if test "${enable_parallel_mark}" = yes; then
15135 cat >>confdefs.h <<\_ACEOF
15136 #define PARALLEL_MARK 1
15137 _ACEOF
15139 cat >>confdefs.h <<\_ACEOF
15140 #define THREAD_LOCAL_ALLOC 1
15141 _ACEOF
15143 # May want to enable it in other cases, too.
15144 # Measurements havent yet been done.
15146 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
15147 THREADLIBS="-lpthread -lrt"
15149 esac
15151 win32)
15152 cat >>confdefs.h <<\_ACEOF
15153 #define GC_WIN32_THREADS 1
15154 _ACEOF
15157 dgux386)
15158 THREADS=dgux386
15159 echo "$as_me:$LINENO: result: $THREADLIBS" >&5
15160 echo "${ECHO_T}$THREADLIBS" >&6
15161 # Use pthread GCC switch
15162 THREADLIBS=-pthread
15163 if test "${enable_parallel_mark}" = yes; then
15164 cat >>confdefs.h <<\_ACEOF
15165 #define PARALLEL_MARK 1
15166 _ACEOF
15169 cat >>confdefs.h <<\_ACEOF
15170 #define THREAD_LOCAL_ALLOC 1
15171 _ACEOF
15174 cat >>confdefs.h <<\_ACEOF
15175 #define GC_DGUX386_THREADS 1
15176 _ACEOF
15179 cat >>confdefs.h <<\_ACEOF
15180 #define DGUX_THREADS 1
15181 _ACEOF
15183 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
15184 AM_CPPFLAGS="-pthread $AM_CPPFLAGS"
15186 aix)
15187 THREADS=posix
15188 THREADLIBS=-lpthread
15189 cat >>confdefs.h <<\_ACEOF
15190 #define GC_AIX_THREADS 1
15191 _ACEOF
15193 cat >>confdefs.h <<\_ACEOF
15194 #define _REENTRANT 1
15195 _ACEOF
15198 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
15199 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
15200 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
15201 { (exit 1); exit 1; }; }
15204 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
15205 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
15206 { (exit 1); exit 1; }; }
15208 esac
15211 case "$host" in
15212 powerpc-*-darwin*)
15213 powerpc_darwin=true
15215 esac
15218 if test x$powerpc_darwin = xtrue; then
15219 POWERPC_DARWIN_TRUE=
15220 POWERPC_DARWIN_FALSE='#'
15221 else
15222 POWERPC_DARWIN_TRUE='#'
15223 POWERPC_DARWIN_FALSE=
15227 # Darwin needs a few extra special tests to deal with variation in the
15228 # system headers.
15229 case "$host" in
15230 powerpc*-*-darwin*)
15231 echo "$as_me:$LINENO: checking for ppc_thread_state_t.r0" >&5
15232 echo $ECHO_N "checking for ppc_thread_state_t.r0... $ECHO_C" >&6
15233 if test "${ac_cv_member_ppc_thread_state_t_r0+set}" = set; then
15234 echo $ECHO_N "(cached) $ECHO_C" >&6
15235 else
15236 cat >conftest.$ac_ext <<_ACEOF
15237 /* confdefs.h. */
15238 _ACEOF
15239 cat confdefs.h >>conftest.$ac_ext
15240 cat >>conftest.$ac_ext <<_ACEOF
15241 /* end confdefs.h. */
15242 #include <mach/thread_status.h>
15245 main ()
15247 static ppc_thread_state_t ac_aggr;
15248 if (ac_aggr.r0)
15249 return 0;
15251 return 0;
15253 _ACEOF
15254 rm -f conftest.$ac_objext
15255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15256 (eval $ac_compile) 2>conftest.er1
15257 ac_status=$?
15258 grep -v '^ *+' conftest.er1 >conftest.err
15259 rm -f conftest.er1
15260 cat conftest.err >&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } &&
15263 { ac_try='test -z "$ac_c_werror_flag"
15264 || test ! -s conftest.err'
15265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266 (eval $ac_try) 2>&5
15267 ac_status=$?
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; } &&
15270 { ac_try='test -s conftest.$ac_objext'
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15273 ac_status=$?
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; }; then
15276 ac_cv_member_ppc_thread_state_t_r0=yes
15277 else
15278 echo "$as_me: failed program was:" >&5
15279 sed 's/^/| /' conftest.$ac_ext >&5
15281 cat >conftest.$ac_ext <<_ACEOF
15282 /* confdefs.h. */
15283 _ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15287 #include <mach/thread_status.h>
15290 main ()
15292 static ppc_thread_state_t ac_aggr;
15293 if (sizeof ac_aggr.r0)
15294 return 0;
15296 return 0;
15298 _ACEOF
15299 rm -f conftest.$ac_objext
15300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15301 (eval $ac_compile) 2>conftest.er1
15302 ac_status=$?
15303 grep -v '^ *+' conftest.er1 >conftest.err
15304 rm -f conftest.er1
15305 cat conftest.err >&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); } &&
15308 { ac_try='test -z "$ac_c_werror_flag"
15309 || test ! -s conftest.err'
15310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311 (eval $ac_try) 2>&5
15312 ac_status=$?
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }; } &&
15315 { ac_try='test -s conftest.$ac_objext'
15316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317 (eval $ac_try) 2>&5
15318 ac_status=$?
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; }; then
15321 ac_cv_member_ppc_thread_state_t_r0=yes
15322 else
15323 echo "$as_me: failed program was:" >&5
15324 sed 's/^/| /' conftest.$ac_ext >&5
15326 ac_cv_member_ppc_thread_state_t_r0=no
15328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15332 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_r0" >&5
15333 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t_r0" >&6
15334 if test $ac_cv_member_ppc_thread_state_t_r0 = yes; then
15336 cat >>confdefs.h <<\_ACEOF
15337 #define HAS_PPC_THREAD_STATE_R0 1
15338 _ACEOF
15342 echo "$as_me:$LINENO: checking for ppc_thread_state_t.__r0" >&5
15343 echo $ECHO_N "checking for ppc_thread_state_t.__r0... $ECHO_C" >&6
15344 if test "${ac_cv_member_ppc_thread_state_t___r0+set}" = set; then
15345 echo $ECHO_N "(cached) $ECHO_C" >&6
15346 else
15347 cat >conftest.$ac_ext <<_ACEOF
15348 /* confdefs.h. */
15349 _ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15353 #include <mach/thread_status.h>
15356 main ()
15358 static ppc_thread_state_t ac_aggr;
15359 if (ac_aggr.__r0)
15360 return 0;
15362 return 0;
15364 _ACEOF
15365 rm -f conftest.$ac_objext
15366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15367 (eval $ac_compile) 2>conftest.er1
15368 ac_status=$?
15369 grep -v '^ *+' conftest.er1 >conftest.err
15370 rm -f conftest.er1
15371 cat conftest.err >&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } &&
15374 { ac_try='test -z "$ac_c_werror_flag"
15375 || test ! -s conftest.err'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15378 ac_status=$?
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; } &&
15381 { ac_try='test -s conftest.$ac_objext'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15384 ac_status=$?
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; }; then
15387 ac_cv_member_ppc_thread_state_t___r0=yes
15388 else
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 cat >conftest.$ac_ext <<_ACEOF
15393 /* confdefs.h. */
15394 _ACEOF
15395 cat confdefs.h >>conftest.$ac_ext
15396 cat >>conftest.$ac_ext <<_ACEOF
15397 /* end confdefs.h. */
15398 #include <mach/thread_status.h>
15401 main ()
15403 static ppc_thread_state_t ac_aggr;
15404 if (sizeof ac_aggr.__r0)
15405 return 0;
15407 return 0;
15409 _ACEOF
15410 rm -f conftest.$ac_objext
15411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15412 (eval $ac_compile) 2>conftest.er1
15413 ac_status=$?
15414 grep -v '^ *+' conftest.er1 >conftest.err
15415 rm -f conftest.er1
15416 cat conftest.err >&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } &&
15419 { ac_try='test -z "$ac_c_werror_flag"
15420 || test ! -s conftest.err'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; } &&
15426 { ac_try='test -s conftest.$ac_objext'
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15429 ac_status=$?
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; }; then
15432 ac_cv_member_ppc_thread_state_t___r0=yes
15433 else
15434 echo "$as_me: failed program was:" >&5
15435 sed 's/^/| /' conftest.$ac_ext >&5
15437 ac_cv_member_ppc_thread_state_t___r0=no
15439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15443 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t___r0" >&5
15444 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t___r0" >&6
15445 if test $ac_cv_member_ppc_thread_state_t___r0 = yes; then
15447 cat >>confdefs.h <<\_ACEOF
15448 #define HAS_PPC_THREAD_STATE___R0 1
15449 _ACEOF
15453 echo "$as_me:$LINENO: checking for ppc_thread_state64_t.r0" >&5
15454 echo $ECHO_N "checking for ppc_thread_state64_t.r0... $ECHO_C" >&6
15455 if test "${ac_cv_member_ppc_thread_state64_t_r0+set}" = set; then
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15457 else
15458 cat >conftest.$ac_ext <<_ACEOF
15459 /* confdefs.h. */
15460 _ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15464 #include <mach/thread_status.h>
15467 main ()
15469 static ppc_thread_state64_t ac_aggr;
15470 if (ac_aggr.r0)
15471 return 0;
15473 return 0;
15475 _ACEOF
15476 rm -f conftest.$ac_objext
15477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15478 (eval $ac_compile) 2>conftest.er1
15479 ac_status=$?
15480 grep -v '^ *+' conftest.er1 >conftest.err
15481 rm -f conftest.er1
15482 cat conftest.err >&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); } &&
15485 { ac_try='test -z "$ac_c_werror_flag"
15486 || test ! -s conftest.err'
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; } &&
15492 { ac_try='test -s conftest.$ac_objext'
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15495 ac_status=$?
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; }; then
15498 ac_cv_member_ppc_thread_state64_t_r0=yes
15499 else
15500 echo "$as_me: failed program was:" >&5
15501 sed 's/^/| /' conftest.$ac_ext >&5
15503 cat >conftest.$ac_ext <<_ACEOF
15504 /* confdefs.h. */
15505 _ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15509 #include <mach/thread_status.h>
15512 main ()
15514 static ppc_thread_state64_t ac_aggr;
15515 if (sizeof ac_aggr.r0)
15516 return 0;
15518 return 0;
15520 _ACEOF
15521 rm -f conftest.$ac_objext
15522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15523 (eval $ac_compile) 2>conftest.er1
15524 ac_status=$?
15525 grep -v '^ *+' conftest.er1 >conftest.err
15526 rm -f conftest.er1
15527 cat conftest.err >&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } &&
15530 { ac_try='test -z "$ac_c_werror_flag"
15531 || test ! -s conftest.err'
15532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533 (eval $ac_try) 2>&5
15534 ac_status=$?
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; } &&
15537 { ac_try='test -s conftest.$ac_objext'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15540 ac_status=$?
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; }; then
15543 ac_cv_member_ppc_thread_state64_t_r0=yes
15544 else
15545 echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15548 ac_cv_member_ppc_thread_state64_t_r0=no
15550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15554 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t_r0" >&5
15555 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t_r0" >&6
15556 if test $ac_cv_member_ppc_thread_state64_t_r0 = yes; then
15558 cat >>confdefs.h <<\_ACEOF
15559 #define HAS_PPC_THREAD_STATE64_R0 1
15560 _ACEOF
15564 echo "$as_me:$LINENO: checking for ppc_thread_state64_t.__r0" >&5
15565 echo $ECHO_N "checking for ppc_thread_state64_t.__r0... $ECHO_C" >&6
15566 if test "${ac_cv_member_ppc_thread_state64_t___r0+set}" = set; then
15567 echo $ECHO_N "(cached) $ECHO_C" >&6
15568 else
15569 cat >conftest.$ac_ext <<_ACEOF
15570 /* confdefs.h. */
15571 _ACEOF
15572 cat confdefs.h >>conftest.$ac_ext
15573 cat >>conftest.$ac_ext <<_ACEOF
15574 /* end confdefs.h. */
15575 #include <mach/thread_status.h>
15578 main ()
15580 static ppc_thread_state64_t ac_aggr;
15581 if (ac_aggr.__r0)
15582 return 0;
15584 return 0;
15586 _ACEOF
15587 rm -f conftest.$ac_objext
15588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15589 (eval $ac_compile) 2>conftest.er1
15590 ac_status=$?
15591 grep -v '^ *+' conftest.er1 >conftest.err
15592 rm -f conftest.er1
15593 cat conftest.err >&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } &&
15596 { ac_try='test -z "$ac_c_werror_flag"
15597 || test ! -s conftest.err'
15598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15599 (eval $ac_try) 2>&5
15600 ac_status=$?
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); }; } &&
15603 { ac_try='test -s conftest.$ac_objext'
15604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605 (eval $ac_try) 2>&5
15606 ac_status=$?
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; }; then
15609 ac_cv_member_ppc_thread_state64_t___r0=yes
15610 else
15611 echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.$ac_ext >&5
15614 cat >conftest.$ac_ext <<_ACEOF
15615 /* confdefs.h. */
15616 _ACEOF
15617 cat confdefs.h >>conftest.$ac_ext
15618 cat >>conftest.$ac_ext <<_ACEOF
15619 /* end confdefs.h. */
15620 #include <mach/thread_status.h>
15623 main ()
15625 static ppc_thread_state64_t ac_aggr;
15626 if (sizeof ac_aggr.__r0)
15627 return 0;
15629 return 0;
15631 _ACEOF
15632 rm -f conftest.$ac_objext
15633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15634 (eval $ac_compile) 2>conftest.er1
15635 ac_status=$?
15636 grep -v '^ *+' conftest.er1 >conftest.err
15637 rm -f conftest.er1
15638 cat conftest.err >&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); } &&
15641 { ac_try='test -z "$ac_c_werror_flag"
15642 || test ! -s conftest.err'
15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644 (eval $ac_try) 2>&5
15645 ac_status=$?
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; } &&
15648 { ac_try='test -s conftest.$ac_objext'
15649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15651 ac_status=$?
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15654 ac_cv_member_ppc_thread_state64_t___r0=yes
15655 else
15656 echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.$ac_ext >&5
15659 ac_cv_member_ppc_thread_state64_t___r0=no
15661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15665 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t___r0" >&5
15666 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t___r0" >&6
15667 if test $ac_cv_member_ppc_thread_state64_t___r0 = yes; then
15669 cat >>confdefs.h <<\_ACEOF
15670 #define HAS_PPC_THREAD_STATE64___R0 1
15671 _ACEOF
15676 i?86*-*-darwin*)
15677 echo "$as_me:$LINENO: checking for x86_thread_state32_t.eax" >&5
15678 echo $ECHO_N "checking for x86_thread_state32_t.eax... $ECHO_C" >&6
15679 if test "${ac_cv_member_x86_thread_state32_t_eax+set}" = set; then
15680 echo $ECHO_N "(cached) $ECHO_C" >&6
15681 else
15682 cat >conftest.$ac_ext <<_ACEOF
15683 /* confdefs.h. */
15684 _ACEOF
15685 cat confdefs.h >>conftest.$ac_ext
15686 cat >>conftest.$ac_ext <<_ACEOF
15687 /* end confdefs.h. */
15688 #include <sys/cdefs.h>
15689 #include <mach/thread_status.h>
15692 main ()
15694 static x86_thread_state32_t ac_aggr;
15695 if (ac_aggr.eax)
15696 return 0;
15698 return 0;
15700 _ACEOF
15701 rm -f conftest.$ac_objext
15702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15703 (eval $ac_compile) 2>conftest.er1
15704 ac_status=$?
15705 grep -v '^ *+' conftest.er1 >conftest.err
15706 rm -f conftest.er1
15707 cat conftest.err >&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } &&
15710 { ac_try='test -z "$ac_c_werror_flag"
15711 || test ! -s conftest.err'
15712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713 (eval $ac_try) 2>&5
15714 ac_status=$?
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); }; } &&
15717 { ac_try='test -s conftest.$ac_objext'
15718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719 (eval $ac_try) 2>&5
15720 ac_status=$?
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; }; then
15723 ac_cv_member_x86_thread_state32_t_eax=yes
15724 else
15725 echo "$as_me: failed program was:" >&5
15726 sed 's/^/| /' conftest.$ac_ext >&5
15728 cat >conftest.$ac_ext <<_ACEOF
15729 /* confdefs.h. */
15730 _ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h. */
15734 #include <sys/cdefs.h>
15735 #include <mach/thread_status.h>
15738 main ()
15740 static x86_thread_state32_t ac_aggr;
15741 if (sizeof ac_aggr.eax)
15742 return 0;
15744 return 0;
15746 _ACEOF
15747 rm -f conftest.$ac_objext
15748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15749 (eval $ac_compile) 2>conftest.er1
15750 ac_status=$?
15751 grep -v '^ *+' conftest.er1 >conftest.err
15752 rm -f conftest.er1
15753 cat conftest.err >&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } &&
15756 { ac_try='test -z "$ac_c_werror_flag"
15757 || test ! -s conftest.err'
15758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759 (eval $ac_try) 2>&5
15760 ac_status=$?
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; } &&
15763 { ac_try='test -s conftest.$ac_objext'
15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15766 ac_status=$?
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; }; then
15769 ac_cv_member_x86_thread_state32_t_eax=yes
15770 else
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15774 ac_cv_member_x86_thread_state32_t_eax=no
15776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15780 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t_eax" >&5
15781 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t_eax" >&6
15782 if test $ac_cv_member_x86_thread_state32_t_eax = yes; then
15784 cat >>confdefs.h <<\_ACEOF
15785 #define HAS_X86_THREAD_STATE32_EAX 1
15786 _ACEOF
15790 echo "$as_me:$LINENO: checking for x86_thread_state32_t.__eax" >&5
15791 echo $ECHO_N "checking for x86_thread_state32_t.__eax... $ECHO_C" >&6
15792 if test "${ac_cv_member_x86_thread_state32_t___eax+set}" = set; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15794 else
15795 cat >conftest.$ac_ext <<_ACEOF
15796 /* confdefs.h. */
15797 _ACEOF
15798 cat confdefs.h >>conftest.$ac_ext
15799 cat >>conftest.$ac_ext <<_ACEOF
15800 /* end confdefs.h. */
15801 #include <sys/cdefs.h>
15802 #include <mach/thread_status.h>
15805 main ()
15807 static x86_thread_state32_t ac_aggr;
15808 if (ac_aggr.__eax)
15809 return 0;
15811 return 0;
15813 _ACEOF
15814 rm -f conftest.$ac_objext
15815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15816 (eval $ac_compile) 2>conftest.er1
15817 ac_status=$?
15818 grep -v '^ *+' conftest.er1 >conftest.err
15819 rm -f conftest.er1
15820 cat conftest.err >&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } &&
15823 { ac_try='test -z "$ac_c_werror_flag"
15824 || test ! -s conftest.err'
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15827 ac_status=$?
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; } &&
15830 { ac_try='test -s conftest.$ac_objext'
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15833 ac_status=$?
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; }; then
15836 ac_cv_member_x86_thread_state32_t___eax=yes
15837 else
15838 echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15841 cat >conftest.$ac_ext <<_ACEOF
15842 /* confdefs.h. */
15843 _ACEOF
15844 cat confdefs.h >>conftest.$ac_ext
15845 cat >>conftest.$ac_ext <<_ACEOF
15846 /* end confdefs.h. */
15847 #include <sys/cdefs.h>
15848 #include <mach/thread_status.h>
15851 main ()
15853 static x86_thread_state32_t ac_aggr;
15854 if (sizeof ac_aggr.__eax)
15855 return 0;
15857 return 0;
15859 _ACEOF
15860 rm -f conftest.$ac_objext
15861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15862 (eval $ac_compile) 2>conftest.er1
15863 ac_status=$?
15864 grep -v '^ *+' conftest.er1 >conftest.err
15865 rm -f conftest.er1
15866 cat conftest.err >&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); } &&
15869 { ac_try='test -z "$ac_c_werror_flag"
15870 || test ! -s conftest.err'
15871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872 (eval $ac_try) 2>&5
15873 ac_status=$?
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }; } &&
15876 { ac_try='test -s conftest.$ac_objext'
15877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15878 (eval $ac_try) 2>&5
15879 ac_status=$?
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); }; }; then
15882 ac_cv_member_x86_thread_state32_t___eax=yes
15883 else
15884 echo "$as_me: failed program was:" >&5
15885 sed 's/^/| /' conftest.$ac_ext >&5
15887 ac_cv_member_x86_thread_state32_t___eax=no
15889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15893 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t___eax" >&5
15894 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t___eax" >&6
15895 if test $ac_cv_member_x86_thread_state32_t___eax = yes; then
15897 cat >>confdefs.h <<\_ACEOF
15898 #define HAS_X86_THREAD_STATE32___EAX 1
15899 _ACEOF
15904 x86_64-*-darwin*)
15905 echo "$as_me:$LINENO: checking for x86_thread_state64_t.rax" >&5
15906 echo $ECHO_N "checking for x86_thread_state64_t.rax... $ECHO_C" >&6
15907 if test "${ac_cv_member_x86_thread_state64_t_rax+set}" = set; then
15908 echo $ECHO_N "(cached) $ECHO_C" >&6
15909 else
15910 cat >conftest.$ac_ext <<_ACEOF
15911 /* confdefs.h. */
15912 _ACEOF
15913 cat confdefs.h >>conftest.$ac_ext
15914 cat >>conftest.$ac_ext <<_ACEOF
15915 /* end confdefs.h. */
15916 #include <sys/cdefs.h>
15917 #include <mach/thread_status.h>
15920 main ()
15922 static x86_thread_state64_t ac_aggr;
15923 if (ac_aggr.rax)
15924 return 0;
15926 return 0;
15928 _ACEOF
15929 rm -f conftest.$ac_objext
15930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15931 (eval $ac_compile) 2>conftest.er1
15932 ac_status=$?
15933 grep -v '^ *+' conftest.er1 >conftest.err
15934 rm -f conftest.er1
15935 cat conftest.err >&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } &&
15938 { ac_try='test -z "$ac_c_werror_flag"
15939 || test ! -s conftest.err'
15940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941 (eval $ac_try) 2>&5
15942 ac_status=$?
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); }; } &&
15945 { ac_try='test -s conftest.$ac_objext'
15946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947 (eval $ac_try) 2>&5
15948 ac_status=$?
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); }; }; then
15951 ac_cv_member_x86_thread_state64_t_rax=yes
15952 else
15953 echo "$as_me: failed program was:" >&5
15954 sed 's/^/| /' conftest.$ac_ext >&5
15956 cat >conftest.$ac_ext <<_ACEOF
15957 /* confdefs.h. */
15958 _ACEOF
15959 cat confdefs.h >>conftest.$ac_ext
15960 cat >>conftest.$ac_ext <<_ACEOF
15961 /* end confdefs.h. */
15962 #include <sys/cdefs.h>
15963 #include <mach/thread_status.h>
15966 main ()
15968 static x86_thread_state64_t ac_aggr;
15969 if (sizeof ac_aggr.rax)
15970 return 0;
15972 return 0;
15974 _ACEOF
15975 rm -f conftest.$ac_objext
15976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15977 (eval $ac_compile) 2>conftest.er1
15978 ac_status=$?
15979 grep -v '^ *+' conftest.er1 >conftest.err
15980 rm -f conftest.er1
15981 cat conftest.err >&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
15984 { ac_try='test -z "$ac_c_werror_flag"
15985 || test ! -s conftest.err'
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15988 ac_status=$?
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; } &&
15991 { ac_try='test -s conftest.$ac_objext'
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15994 ac_status=$?
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; }; then
15997 ac_cv_member_x86_thread_state64_t_rax=yes
15998 else
15999 echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16002 ac_cv_member_x86_thread_state64_t_rax=no
16004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16008 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t_rax" >&5
16009 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t_rax" >&6
16010 if test $ac_cv_member_x86_thread_state64_t_rax = yes; then
16012 cat >>confdefs.h <<\_ACEOF
16013 #define HAS_X86_THREAD_STATE64_RAX 1
16014 _ACEOF
16018 echo "$as_me:$LINENO: checking for x86_thread_state64_t.__rax" >&5
16019 echo $ECHO_N "checking for x86_thread_state64_t.__rax... $ECHO_C" >&6
16020 if test "${ac_cv_member_x86_thread_state64_t___rax+set}" = set; then
16021 echo $ECHO_N "(cached) $ECHO_C" >&6
16022 else
16023 cat >conftest.$ac_ext <<_ACEOF
16024 /* confdefs.h. */
16025 _ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h. */
16029 #include <sys/cdefs.h>
16030 #include <mach/thread_status.h>
16033 main ()
16035 static x86_thread_state64_t ac_aggr;
16036 if (ac_aggr.__rax)
16037 return 0;
16039 return 0;
16041 _ACEOF
16042 rm -f conftest.$ac_objext
16043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16044 (eval $ac_compile) 2>conftest.er1
16045 ac_status=$?
16046 grep -v '^ *+' conftest.er1 >conftest.err
16047 rm -f conftest.er1
16048 cat conftest.err >&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); } &&
16051 { ac_try='test -z "$ac_c_werror_flag"
16052 || test ! -s conftest.err'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16055 ac_status=$?
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; } &&
16058 { ac_try='test -s conftest.$ac_objext'
16059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16060 (eval $ac_try) 2>&5
16061 ac_status=$?
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); }; }; then
16064 ac_cv_member_x86_thread_state64_t___rax=yes
16065 else
16066 echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16069 cat >conftest.$ac_ext <<_ACEOF
16070 /* confdefs.h. */
16071 _ACEOF
16072 cat confdefs.h >>conftest.$ac_ext
16073 cat >>conftest.$ac_ext <<_ACEOF
16074 /* end confdefs.h. */
16075 #include <sys/cdefs.h>
16076 #include <mach/thread_status.h>
16079 main ()
16081 static x86_thread_state64_t ac_aggr;
16082 if (sizeof ac_aggr.__rax)
16083 return 0;
16085 return 0;
16087 _ACEOF
16088 rm -f conftest.$ac_objext
16089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16090 (eval $ac_compile) 2>conftest.er1
16091 ac_status=$?
16092 grep -v '^ *+' conftest.er1 >conftest.err
16093 rm -f conftest.er1
16094 cat conftest.err >&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } &&
16097 { ac_try='test -z "$ac_c_werror_flag"
16098 || test ! -s conftest.err'
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16101 ac_status=$?
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; } &&
16104 { ac_try='test -s conftest.$ac_objext'
16105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106 (eval $ac_try) 2>&5
16107 ac_status=$?
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; }; then
16110 ac_cv_member_x86_thread_state64_t___rax=yes
16111 else
16112 echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16115 ac_cv_member_x86_thread_state64_t___rax=no
16117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16121 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t___rax" >&5
16122 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t___rax" >&6
16123 if test $ac_cv_member_x86_thread_state64_t___rax = yes; then
16125 cat >>confdefs.h <<\_ACEOF
16126 #define HAS_X86_THREAD_STATE64___RAX 1
16127 _ACEOF
16132 *) ;;
16133 esac
16135 # We never want libdl on darwin. It is a fake libdl that just ends up making
16136 # dyld calls anyway
16137 case "$host" in
16138 *-*-darwin*) ;;
16140 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16141 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16142 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16143 echo $ECHO_N "(cached) $ECHO_C" >&6
16144 else
16145 ac_check_lib_save_LIBS=$LIBS
16146 LIBS="-ldl $LIBS"
16147 if test x$gcc_no_link = xyes; then
16148 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16149 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16150 { (exit 1); exit 1; }; }
16152 cat >conftest.$ac_ext <<_ACEOF
16153 /* confdefs.h. */
16154 _ACEOF
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h. */
16159 /* Override any gcc2 internal prototype to avoid an error. */
16160 #ifdef __cplusplus
16161 extern "C"
16162 #endif
16163 /* We use char because int might match the return type of a gcc2
16164 builtin and then its argument prototype would still apply. */
16165 char dlopen ();
16167 main ()
16169 dlopen ();
16171 return 0;
16173 _ACEOF
16174 rm -f conftest.$ac_objext conftest$ac_exeext
16175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16176 (eval $ac_link) 2>conftest.er1
16177 ac_status=$?
16178 grep -v '^ *+' conftest.er1 >conftest.err
16179 rm -f conftest.er1
16180 cat conftest.err >&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } &&
16183 { ac_try='test -z "$ac_c_werror_flag"
16184 || test ! -s conftest.err'
16185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186 (eval $ac_try) 2>&5
16187 ac_status=$?
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; } &&
16190 { ac_try='test -s conftest$ac_exeext'
16191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16192 (eval $ac_try) 2>&5
16193 ac_status=$?
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; }; then
16196 ac_cv_lib_dl_dlopen=yes
16197 else
16198 echo "$as_me: failed program was:" >&5
16199 sed 's/^/| /' conftest.$ac_ext >&5
16201 ac_cv_lib_dl_dlopen=no
16203 rm -f conftest.err conftest.$ac_objext \
16204 conftest$ac_exeext conftest.$ac_ext
16205 LIBS=$ac_check_lib_save_LIBS
16207 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16208 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16209 if test $ac_cv_lib_dl_dlopen = yes; then
16210 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
16214 esac
16216 # extra LD Flags which are required for targets
16217 case "${host}" in
16218 *-*-darwin*)
16219 extra_ldflags_libgc=-Wl,-single_module
16221 esac
16226 target_all=libgcjgc.la
16229 TARGET_ECOS="no"
16231 # Check whether --with-ecos or --without-ecos was given.
16232 if test "${with_ecos+set}" = set; then
16233 withval="$with_ecos"
16234 TARGET_ECOS="$with_ecos"
16238 addobjs=
16239 addlibs=
16240 addincludes=
16241 addtests=
16242 case "$TARGET_ECOS" in
16247 cat >>confdefs.h <<\_ACEOF
16248 #define ECOS 1
16249 _ACEOF
16251 AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
16252 addobjs="$addobjs ecos.lo"
16254 esac
16256 if test "${enable_cplusplus}" = yes; then
16257 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
16258 addtests="$addtests test_cpp"
16263 if test "${enable_cplusplus}" = yes; then
16264 CPLUSPLUS_TRUE=
16265 CPLUSPLUS_FALSE='#'
16266 else
16267 CPLUSPLUS_TRUE='#'
16268 CPLUSPLUS_FALSE=
16276 # Configuration of shared libraries
16278 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16279 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16280 # Check whether --enable-shared or --disable-shared was given.
16281 if test "${enable_shared+set}" = set; then
16282 enableval="$enable_shared"
16283 p=${PACKAGE-default}
16284 case $enableval in
16285 yes) enable_shared=yes ;;
16286 no) enable_shared=no ;;
16288 enable_shared=no
16289 # Look at the argument we got. We use all the common list separators.
16290 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16291 for pkg in $enableval; do
16292 IFS="$lt_save_ifs"
16293 if test "X$pkg" = "X$p"; then
16294 enable_shared=yes
16296 done
16297 IFS="$lt_save_ifs"
16299 esac
16300 else
16301 enable_shared=yes
16309 case "$host" in
16310 alpha-*-openbsd*)
16311 enable_shared=no
16312 echo "$as_me:$LINENO: result: no" >&5
16313 echo "${ECHO_T}no" >&6
16316 echo "$as_me:$LINENO: result: yes" >&5
16317 echo "${ECHO_T}yes" >&6
16319 esac
16321 # Checks for pthreads functions
16323 oldLIBS="$LIBS"
16324 LIBS="$LIBS $THREADLIBS"
16326 for ac_func in pthread_getattr_np
16328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16329 echo "$as_me:$LINENO: checking for $ac_func" >&5
16330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16331 if eval "test \"\${$as_ac_var+set}\" = set"; then
16332 echo $ECHO_N "(cached) $ECHO_C" >&6
16333 else
16334 if test x$gcc_no_link = xyes; then
16335 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16336 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16337 { (exit 1); exit 1; }; }
16339 cat >conftest.$ac_ext <<_ACEOF
16340 /* confdefs.h. */
16341 _ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16347 #define $ac_func innocuous_$ac_func
16349 /* System header to define __stub macros and hopefully few prototypes,
16350 which can conflict with char $ac_func (); below.
16351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16352 <limits.h> exists even on freestanding compilers. */
16354 #ifdef __STDC__
16355 # include <limits.h>
16356 #else
16357 # include <assert.h>
16358 #endif
16360 #undef $ac_func
16362 /* Override any gcc2 internal prototype to avoid an error. */
16363 #ifdef __cplusplus
16364 extern "C"
16366 #endif
16367 /* We use char because int might match the return type of a gcc2
16368 builtin and then its argument prototype would still apply. */
16369 char $ac_func ();
16370 /* The GNU C library defines this for functions which it implements
16371 to always fail with ENOSYS. Some functions are actually named
16372 something starting with __ and the normal name is an alias. */
16373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16374 choke me
16375 #else
16376 char (*f) () = $ac_func;
16377 #endif
16378 #ifdef __cplusplus
16380 #endif
16383 main ()
16385 return f != $ac_func;
16387 return 0;
16389 _ACEOF
16390 rm -f conftest.$ac_objext conftest$ac_exeext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16392 (eval $ac_link) 2>conftest.er1
16393 ac_status=$?
16394 grep -v '^ *+' conftest.er1 >conftest.err
16395 rm -f conftest.er1
16396 cat conftest.err >&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
16399 { ac_try='test -z "$ac_c_werror_flag"
16400 || test ! -s conftest.err'
16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402 (eval $ac_try) 2>&5
16403 ac_status=$?
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; } &&
16406 { ac_try='test -s conftest$ac_exeext'
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16409 ac_status=$?
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16412 eval "$as_ac_var=yes"
16413 else
16414 echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16417 eval "$as_ac_var=no"
16419 rm -f conftest.err conftest.$ac_objext \
16420 conftest$ac_exeext conftest.$ac_ext
16422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16424 if test `eval echo '${'$as_ac_var'}'` = yes; then
16425 cat >>confdefs.h <<_ACEOF
16426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16427 _ACEOF
16430 done
16432 LIBS="$oldLIBS"
16434 # Configuration of machine-dependent code
16436 # Set NO_EXECUTE_PERMISSION by default because gcj already uses
16437 # ffi_closure_{alloc,free} which takes care of allocating trampolines
16438 # in executable memory.
16440 echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
16441 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
16442 machdep=
16443 case "$host" in
16444 alpha*-*-openbsd*)
16445 machdep="alpha_mach_dep.lo"
16446 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
16447 { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
16448 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
16451 alpha*-*-linux*)
16452 machdep="alpha_mach_dep.lo"
16454 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
16456 cat >>confdefs.h <<\_ACEOF
16457 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
16458 _ACEOF
16461 mipstx39-*-elf*)
16462 machdep="mips_ultrix_mach_dep.lo"
16464 cat >>confdefs.h <<\_ACEOF
16465 #define STACKBASE __stackbase
16466 _ACEOF
16469 cat >>confdefs.h <<\_ACEOF
16470 #define DATASTART_IS_ETEXT 1
16471 _ACEOF
16474 mips-dec-ultrix*)
16475 machdep="mips_ultrix_mach-dep.lo"
16477 mips-nec-sysv*|mips-unknown-sysv*)
16479 mips*-*-linux*)
16481 mips-*-*)
16482 machdep="mips_sgi_mach_dep.lo"
16484 sparc-*-netbsd*)
16485 machdep="sparc_netbsd_mach_dep.lo"
16487 sparc-sun-solaris2.3)
16488 machdep="sparc_mach_dep.lo"
16490 cat >>confdefs.h <<\_ACEOF
16491 #define SUNOS53_SHARED_LIB 1
16492 _ACEOF
16495 sparc*-sun-solaris2.*)
16496 machdep="sparc_mach_dep.lo"
16498 ia64-*-*)
16499 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
16501 esac
16503 cat >>confdefs.h <<\_ACEOF
16504 #define NO_EXECUTE_PERMISSION 1
16505 _ACEOF
16507 if test x"$machdep" = x; then
16508 echo "$as_me:$LINENO: result: $machdep" >&5
16509 echo "${ECHO_T}$machdep" >&6
16510 machdep="mach_dep.lo"
16512 addobjs="$addobjs $machdep"
16519 # Check for AViiON Machines running DGUX
16521 echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
16522 echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
16523 ac_is_dgux=no
16524 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16525 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16526 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16527 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16528 echo $ECHO_N "(cached) $ECHO_C" >&6
16530 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16531 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16532 else
16533 # Is the header compilable?
16534 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16535 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
16536 cat >conftest.$ac_ext <<_ACEOF
16537 /* confdefs.h. */
16538 _ACEOF
16539 cat confdefs.h >>conftest.$ac_ext
16540 cat >>conftest.$ac_ext <<_ACEOF
16541 /* end confdefs.h. */
16542 $ac_includes_default
16543 #include <sys/dg_sys_info.h>
16544 _ACEOF
16545 rm -f conftest.$ac_objext
16546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16547 (eval $ac_compile) 2>conftest.er1
16548 ac_status=$?
16549 grep -v '^ *+' conftest.er1 >conftest.err
16550 rm -f conftest.er1
16551 cat conftest.err >&5
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); } &&
16554 { ac_try='test -z "$ac_c_werror_flag"
16555 || test ! -s conftest.err'
16556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16557 (eval $ac_try) 2>&5
16558 ac_status=$?
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; } &&
16561 { ac_try='test -s conftest.$ac_objext'
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16564 ac_status=$?
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; }; then
16567 ac_header_compiler=yes
16568 else
16569 echo "$as_me: failed program was:" >&5
16570 sed 's/^/| /' conftest.$ac_ext >&5
16572 ac_header_compiler=no
16574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16575 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16576 echo "${ECHO_T}$ac_header_compiler" >&6
16578 # Is the header present?
16579 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16580 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
16581 cat >conftest.$ac_ext <<_ACEOF
16582 /* confdefs.h. */
16583 _ACEOF
16584 cat confdefs.h >>conftest.$ac_ext
16585 cat >>conftest.$ac_ext <<_ACEOF
16586 /* end confdefs.h. */
16587 #include <sys/dg_sys_info.h>
16588 _ACEOF
16589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16591 ac_status=$?
16592 grep -v '^ *+' conftest.er1 >conftest.err
16593 rm -f conftest.er1
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } >/dev/null; then
16597 if test -s conftest.err; then
16598 ac_cpp_err=$ac_c_preproc_warn_flag
16599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16600 else
16601 ac_cpp_err=
16603 else
16604 ac_cpp_err=yes
16606 if test -z "$ac_cpp_err"; then
16607 ac_header_preproc=yes
16608 else
16609 echo "$as_me: failed program was:" >&5
16610 sed 's/^/| /' conftest.$ac_ext >&5
16612 ac_header_preproc=no
16614 rm -f conftest.err conftest.$ac_ext
16615 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16616 echo "${ECHO_T}$ac_header_preproc" >&6
16618 # So? What about this header?
16619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16620 yes:no: )
16621 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16622 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16623 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16624 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16625 ac_header_preproc=yes
16627 no:yes:* )
16628 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16629 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16630 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16631 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16632 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16633 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16634 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16635 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16637 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16638 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16639 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16641 cat <<\_ASBOX
16642 ## ------------------------------------------ ##
16643 ## Report this to the AC_PACKAGE_NAME lists. ##
16644 ## ------------------------------------------ ##
16645 _ASBOX
16647 sed "s/^/$as_me: WARNING: /" >&2
16649 esac
16650 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16651 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16652 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16653 echo $ECHO_N "(cached) $ECHO_C" >&6
16654 else
16655 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16657 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16658 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16661 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16662 ac_is_dgux=yes;
16667 echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
16668 echo "${ECHO_T}$ac_is_dgux" >&6
16669 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
16670 if test $ac_is_dgux = yes; then
16671 if test "$enable_full_debug" = "yes"; then
16672 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
16673 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
16674 else
16675 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
16676 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
16682 echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
16683 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
16684 case "$host" in
16685 *aix*)
16686 if test "$GCC" = yes; then
16687 echo "$as_me:$LINENO: result: yes" >&5
16688 echo "${ECHO_T}yes" >&6
16689 new_CFLAGS=
16690 for i in $CFLAGS; do
16691 case "$i" in
16692 -O*)
16695 new_CFLAGS="$new_CFLAGS $i"
16697 esac
16698 done
16699 CFLAGS="$new_CFLAGS"
16700 else
16701 echo "$as_me:$LINENO: result: no" >&5
16702 echo "${ECHO_T}no" >&6
16705 *) echo "$as_me:$LINENO: result: no" >&5
16706 echo "${ECHO_T}no" >&6 ;;
16707 esac
16709 MY_CFLAGS="$CFLAGS"
16713 cat >>confdefs.h <<\_ACEOF
16714 #define SILENT 1
16715 _ACEOF
16718 cat >>confdefs.h <<\_ACEOF
16719 #define NO_SIGNALS 1
16720 _ACEOF
16723 cat >>confdefs.h <<\_ACEOF
16724 #define ALL_INTERIOR_POINTERS 1
16725 _ACEOF
16729 cat >>confdefs.h <<\_ACEOF
16730 #define JAVA_FINALIZATION 1
16731 _ACEOF
16734 cat >>confdefs.h <<\_ACEOF
16735 #define GC_GCJ_SUPPORT 1
16736 _ACEOF
16739 cat >>confdefs.h <<\_ACEOF
16740 #define ATOMIC_UNCOLLECTABLE 1
16741 _ACEOF
16744 # Check whether --enable-gc-debug or --disable-gc-debug was given.
16745 if test "${enable_gc_debug+set}" = set; then
16746 enableval="$enable_gc_debug"
16747 if test "$enable_gc_debug" = "yes"; then
16748 { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
16749 echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
16751 cat >>confdefs.h <<\_ACEOF
16752 #define KEEP_BACK_PTRS 1
16753 _ACEOF
16756 cat >>confdefs.h <<\_ACEOF
16757 #define DBG_HDRS_ALL 1
16758 _ACEOF
16760 case $host in
16761 ia64-*-linux* )
16763 cat >>confdefs.h <<\_ACEOF
16764 #define MAKE_BACK_GRAPH 1
16765 _ACEOF
16768 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
16769 cat >>confdefs.h <<\_ACEOF
16770 #define MAKE_BACK_GRAPH 1
16771 _ACEOF
16773 { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
16774 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
16776 cat >>confdefs.h <<\_ACEOF
16777 #define SAVE_CALL_COUNT 8
16778 _ACEOF
16781 i345686-*-dgux*)
16782 cat >>confdefs.h <<\_ACEOF
16783 #define MAKE_BACK_GRAPH 1
16784 _ACEOF
16787 esac
16791 if test "${gc_use_mmap}" = "yes"; then
16793 cat >>confdefs.h <<\_ACEOF
16794 #define USE_MMAP 1
16795 _ACEOF
16799 if test -n "$with_cross_host" &&
16800 test x"$with_cross_host" != x"no"; then
16801 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
16802 toolexeclibdir='$(toolexecdir)/lib'
16803 else
16804 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
16805 toolexeclibdir='$(libdir)'
16807 multi_os_directory=`$CC -print-multi-os-directory`
16808 case $multi_os_directory in
16809 .) ;; # Avoid trailing /.
16810 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16811 esac
16815 if test "${multilib}" = "yes"; then
16816 multilib_arg="--enable-multilib"
16817 else
16818 multilib_arg=
16821 ac_config_headers="$ac_config_headers include/gc_config.h include/gc_ext_config.h"
16824 ac_config_files="$ac_config_files Makefile include/Makefile threads.mk"
16826 cat >confcache <<\_ACEOF
16827 # This file is a shell script that caches the results of configure
16828 # tests run on this system so they can be shared between configure
16829 # scripts and configure runs, see configure's option --config-cache.
16830 # It is not useful on other systems. If it contains results you don't
16831 # want to keep, you may remove or edit it.
16833 # config.status only pays attention to the cache file if you give it
16834 # the --recheck option to rerun configure.
16836 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16837 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16838 # following values.
16840 _ACEOF
16842 # The following way of writing the cache mishandles newlines in values,
16843 # but we know of no workaround that is simple, portable, and efficient.
16844 # So, don't put newlines in cache variables' values.
16845 # Ultrix sh set writes to stderr and can't be redirected directly,
16846 # and sets the high bit in the cache file unless we assign to the vars.
16848 (set) 2>&1 |
16849 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16850 *ac_space=\ *)
16851 # `set' does not quote correctly, so add quotes (double-quote
16852 # substitution turns \\\\ into \\, and sed turns \\ into \).
16853 sed -n \
16854 "s/'/'\\\\''/g;
16855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16858 # `set' quotes correctly as required by POSIX, so do not add quotes.
16859 sed -n \
16860 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16862 esac;
16864 sed '
16865 t clear
16866 : clear
16867 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16868 t end
16869 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16870 : end' >>confcache
16871 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16872 if test -w $cache_file; then
16873 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16874 cat confcache >$cache_file
16875 else
16876 echo "not updating unwritable cache $cache_file"
16879 rm -f confcache
16881 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16882 # Let make expand exec_prefix.
16883 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16885 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16886 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16887 # trailing colons and then remove the whole line if VPATH becomes empty
16888 # (actually we leave an empty line to preserve line numbers).
16889 if test "x$srcdir" = x.; then
16890 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16891 s/:*\$(srcdir):*/:/;
16892 s/:*\${srcdir}:*/:/;
16893 s/:*@srcdir@:*/:/;
16894 s/^\([^=]*=[ ]*\):*/\1/;
16895 s/:*$//;
16896 s/^[^=]*=[ ]*$//;
16900 DEFS=-DHAVE_CONFIG_H
16902 ac_libobjs=
16903 ac_ltlibobjs=
16904 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16905 # 1. Remove the extension, and $U if already installed.
16906 ac_i=`echo "$ac_i" |
16907 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16908 # 2. Add them.
16909 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16910 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16911 done
16912 LIBOBJS=$ac_libobjs
16914 LTLIBOBJS=$ac_ltlibobjs
16917 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16918 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16919 Usually this means the macro was only invoked conditionally." >&5
16920 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16921 Usually this means the macro was only invoked conditionally." >&2;}
16922 { (exit 1); exit 1; }; }
16924 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16925 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16926 Usually this means the macro was only invoked conditionally." >&5
16927 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16928 Usually this means the macro was only invoked conditionally." >&2;}
16929 { (exit 1); exit 1; }; }
16931 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16932 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16933 Usually this means the macro was only invoked conditionally." >&5
16934 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16935 Usually this means the macro was only invoked conditionally." >&2;}
16936 { (exit 1); exit 1; }; }
16938 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16939 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16940 Usually this means the macro was only invoked conditionally." >&5
16941 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16942 Usually this means the macro was only invoked conditionally." >&2;}
16943 { (exit 1); exit 1; }; }
16945 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16946 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16947 Usually this means the macro was only invoked conditionally." >&5
16948 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16949 Usually this means the macro was only invoked conditionally." >&2;}
16950 { (exit 1); exit 1; }; }
16952 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
16953 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
16954 Usually this means the macro was only invoked conditionally." >&5
16955 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
16956 Usually this means the macro was only invoked conditionally." >&2;}
16957 { (exit 1); exit 1; }; }
16959 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
16960 { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined.
16961 Usually this means the macro was only invoked conditionally." >&5
16962 echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined.
16963 Usually this means the macro was only invoked conditionally." >&2;}
16964 { (exit 1); exit 1; }; }
16967 : ${CONFIG_STATUS=./config.status}
16968 ac_clean_files_save=$ac_clean_files
16969 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16970 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16971 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16972 cat >$CONFIG_STATUS <<_ACEOF
16973 #! $SHELL
16974 # Generated by $as_me.
16975 # Run this file to recreate the current configuration.
16976 # Compiler output produced by configure, useful for debugging
16977 # configure, is in config.log if it exists.
16979 debug=false
16980 ac_cs_recheck=false
16981 ac_cs_silent=false
16982 SHELL=\${CONFIG_SHELL-$SHELL}
16983 _ACEOF
16985 cat >>$CONFIG_STATUS <<\_ACEOF
16986 ## --------------------- ##
16987 ## M4sh Initialization. ##
16988 ## --------------------- ##
16990 # Be Bourne compatible
16991 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16992 emulate sh
16993 NULLCMD=:
16994 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16995 # is contrary to our usage. Disable this feature.
16996 alias -g '${1+"$@"}'='"$@"'
16997 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16998 set -o posix
17000 DUALCASE=1; export DUALCASE # for MKS sh
17002 # Support unset when possible.
17003 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17004 as_unset=unset
17005 else
17006 as_unset=false
17010 # Work around bugs in pre-3.0 UWIN ksh.
17011 $as_unset ENV MAIL MAILPATH
17012 PS1='$ '
17013 PS2='> '
17014 PS4='+ '
17016 # NLS nuisances.
17017 for as_var in \
17018 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17019 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17020 LC_TELEPHONE LC_TIME
17022 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17023 eval $as_var=C; export $as_var
17024 else
17025 $as_unset $as_var
17027 done
17029 # Required to use basename.
17030 if expr a : '\(a\)' >/dev/null 2>&1; then
17031 as_expr=expr
17032 else
17033 as_expr=false
17036 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17037 as_basename=basename
17038 else
17039 as_basename=false
17043 # Name of the executable.
17044 as_me=`$as_basename "$0" ||
17045 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17046 X"$0" : 'X\(//\)$' \| \
17047 X"$0" : 'X\(/\)$' \| \
17048 . : '\(.\)' 2>/dev/null ||
17049 echo X/"$0" |
17050 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17051 /^X\/\(\/\/\)$/{ s//\1/; q; }
17052 /^X\/\(\/\).*/{ s//\1/; q; }
17053 s/.*/./; q'`
17056 # PATH needs CR, and LINENO needs CR and PATH.
17057 # Avoid depending upon Character Ranges.
17058 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17059 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17060 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17061 as_cr_digits='0123456789'
17062 as_cr_alnum=$as_cr_Letters$as_cr_digits
17064 # The user is always right.
17065 if test "${PATH_SEPARATOR+set}" != set; then
17066 echo "#! /bin/sh" >conf$$.sh
17067 echo "exit 0" >>conf$$.sh
17068 chmod +x conf$$.sh
17069 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17070 PATH_SEPARATOR=';'
17071 else
17072 PATH_SEPARATOR=:
17074 rm -f conf$$.sh
17078 as_lineno_1=$LINENO
17079 as_lineno_2=$LINENO
17080 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17081 test "x$as_lineno_1" != "x$as_lineno_2" &&
17082 test "x$as_lineno_3" = "x$as_lineno_2" || {
17083 # Find who we are. Look in the path if we contain no path at all
17084 # relative or not.
17085 case $0 in
17086 *[\\/]* ) as_myself=$0 ;;
17087 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17088 for as_dir in $PATH
17090 IFS=$as_save_IFS
17091 test -z "$as_dir" && as_dir=.
17092 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17093 done
17096 esac
17097 # We did not find ourselves, most probably we were run as `sh COMMAND'
17098 # in which case we are not to be found in the path.
17099 if test "x$as_myself" = x; then
17100 as_myself=$0
17102 if test ! -f "$as_myself"; then
17103 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17104 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17105 { (exit 1); exit 1; }; }
17107 case $CONFIG_SHELL in
17109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17110 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17112 IFS=$as_save_IFS
17113 test -z "$as_dir" && as_dir=.
17114 for as_base in sh bash ksh sh5; do
17115 case $as_dir in
17117 if ("$as_dir/$as_base" -c '
17118 as_lineno_1=$LINENO
17119 as_lineno_2=$LINENO
17120 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17121 test "x$as_lineno_1" != "x$as_lineno_2" &&
17122 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17123 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17124 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17125 CONFIG_SHELL=$as_dir/$as_base
17126 export CONFIG_SHELL
17127 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17128 fi;;
17129 esac
17130 done
17131 done
17133 esac
17135 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17136 # uniformly replaced by the line number. The first 'sed' inserts a
17137 # line-number line before each line; the second 'sed' does the real
17138 # work. The second script uses 'N' to pair each line-number line
17139 # with the numbered line, and appends trailing '-' during
17140 # substitution so that $LINENO is not a special case at line end.
17141 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17142 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17143 sed '=' <$as_myself |
17144 sed '
17146 s,$,-,
17147 : loop
17148 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17149 t loop
17150 s,-$,,
17151 s,^['$as_cr_digits']*\n,,
17152 ' >$as_me.lineno &&
17153 chmod +x $as_me.lineno ||
17154 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17155 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17156 { (exit 1); exit 1; }; }
17158 # Don't try to exec as it changes $[0], causing all sort of problems
17159 # (the dirname of $[0] is not the place where we might find the
17160 # original and so on. Autoconf is especially sensible to this).
17161 . ./$as_me.lineno
17162 # Exit status is that of the last command.
17163 exit
17167 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17168 *c*,-n*) ECHO_N= ECHO_C='
17169 ' ECHO_T=' ' ;;
17170 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17171 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17172 esac
17174 if expr a : '\(a\)' >/dev/null 2>&1; then
17175 as_expr=expr
17176 else
17177 as_expr=false
17180 rm -f conf$$ conf$$.exe conf$$.file
17181 echo >conf$$.file
17182 if ln -s conf$$.file conf$$ 2>/dev/null; then
17183 # We could just check for DJGPP; but this test a) works b) is more generic
17184 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17185 if test -f conf$$.exe; then
17186 # Don't use ln at all; we don't have any links
17187 as_ln_s='cp -p'
17188 else
17189 as_ln_s='ln -s'
17191 elif ln conf$$.file conf$$ 2>/dev/null; then
17192 as_ln_s=ln
17193 else
17194 as_ln_s='cp -p'
17196 rm -f conf$$ conf$$.exe conf$$.file
17198 if mkdir -p . 2>/dev/null; then
17199 as_mkdir_p=:
17200 else
17201 test -d ./-p && rmdir ./-p
17202 as_mkdir_p=false
17205 as_executable_p="test -f"
17207 # Sed expression to map a string onto a valid CPP name.
17208 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17210 # Sed expression to map a string onto a valid variable name.
17211 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17214 # IFS
17215 # We need space, tab and new line, in precisely that order.
17216 as_nl='
17218 IFS=" $as_nl"
17220 # CDPATH.
17221 $as_unset CDPATH
17223 exec 6>&1
17225 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17226 # report actual input values of CONFIG_FILES etc. instead of their
17227 # values after options handling. Logging --version etc. is OK.
17228 exec 5>>config.log
17230 echo
17231 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17232 ## Running $as_me. ##
17233 _ASBOX
17234 } >&5
17235 cat >&5 <<_CSEOF
17237 This file was extended by $as_me, which was
17238 generated by GNU Autoconf 2.59. Invocation command line was
17240 CONFIG_FILES = $CONFIG_FILES
17241 CONFIG_HEADERS = $CONFIG_HEADERS
17242 CONFIG_LINKS = $CONFIG_LINKS
17243 CONFIG_COMMANDS = $CONFIG_COMMANDS
17244 $ $0 $@
17246 _CSEOF
17247 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17248 echo >&5
17249 _ACEOF
17251 # Files that config.status was made for.
17252 if test -n "$ac_config_files"; then
17253 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17256 if test -n "$ac_config_headers"; then
17257 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17260 if test -n "$ac_config_links"; then
17261 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17264 if test -n "$ac_config_commands"; then
17265 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17268 cat >>$CONFIG_STATUS <<\_ACEOF
17270 ac_cs_usage="\
17271 \`$as_me' instantiates files from templates according to the
17272 current configuration.
17274 Usage: $0 [OPTIONS] [FILE]...
17276 -h, --help print this help, then exit
17277 -V, --version print version number, then exit
17278 -q, --quiet do not print progress messages
17279 -d, --debug don't remove temporary files
17280 --recheck update $as_me by reconfiguring in the same conditions
17281 --file=FILE[:TEMPLATE]
17282 instantiate the configuration file FILE
17283 --header=FILE[:TEMPLATE]
17284 instantiate the configuration header FILE
17286 Configuration files:
17287 $config_files
17289 Configuration headers:
17290 $config_headers
17292 Configuration commands:
17293 $config_commands
17295 Report bugs to <bug-autoconf@gnu.org>."
17296 _ACEOF
17298 cat >>$CONFIG_STATUS <<_ACEOF
17299 ac_cs_version="\\
17300 config.status
17301 configured by $0, generated by GNU Autoconf 2.59,
17302 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17304 Copyright (C) 2003 Free Software Foundation, Inc.
17305 This config.status script is free software; the Free Software Foundation
17306 gives unlimited permission to copy, distribute and modify it."
17307 srcdir=$srcdir
17308 INSTALL="$INSTALL"
17309 _ACEOF
17311 cat >>$CONFIG_STATUS <<\_ACEOF
17312 # If no file are specified by the user, then we need to provide default
17313 # value. By we need to know if files were specified by the user.
17314 ac_need_defaults=:
17315 while test $# != 0
17317 case $1 in
17318 --*=*)
17319 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17320 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17321 ac_shift=:
17324 ac_option=$1
17325 ac_optarg=$2
17326 ac_shift=shift
17328 *) # This is not an option, so the user has probably given explicit
17329 # arguments.
17330 ac_option=$1
17331 ac_need_defaults=false;;
17332 esac
17334 case $ac_option in
17335 # Handling of the options.
17336 _ACEOF
17337 cat >>$CONFIG_STATUS <<\_ACEOF
17338 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17339 ac_cs_recheck=: ;;
17340 --version | --vers* | -V )
17341 echo "$ac_cs_version"; exit 0 ;;
17342 --he | --h)
17343 # Conflict between --help and --header
17344 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17345 Try \`$0 --help' for more information." >&5
17346 echo "$as_me: error: ambiguous option: $1
17347 Try \`$0 --help' for more information." >&2;}
17348 { (exit 1); exit 1; }; };;
17349 --help | --hel | -h )
17350 echo "$ac_cs_usage"; exit 0 ;;
17351 --debug | --d* | -d )
17352 debug=: ;;
17353 --file | --fil | --fi | --f )
17354 $ac_shift
17355 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17356 ac_need_defaults=false;;
17357 --header | --heade | --head | --hea )
17358 $ac_shift
17359 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17360 ac_need_defaults=false;;
17361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17362 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17363 ac_cs_silent=: ;;
17365 # This is an error.
17366 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17367 Try \`$0 --help' for more information." >&5
17368 echo "$as_me: error: unrecognized option: $1
17369 Try \`$0 --help' for more information." >&2;}
17370 { (exit 1); exit 1; }; } ;;
17372 *) ac_config_targets="$ac_config_targets $1" ;;
17374 esac
17375 shift
17376 done
17378 ac_configure_extra_args=
17380 if $ac_cs_silent; then
17381 exec 6>/dev/null
17382 ac_configure_extra_args="$ac_configure_extra_args --silent"
17385 _ACEOF
17386 cat >>$CONFIG_STATUS <<_ACEOF
17387 if \$ac_cs_recheck; then
17388 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17389 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17392 _ACEOF
17394 cat >>$CONFIG_STATUS <<_ACEOF
17396 # INIT-COMMANDS section.
17400 srcdir="$srcdir"
17401 host="$host"
17402 target="$target"
17403 with_multisubdir="$with_multisubdir"
17404 with_multisrctop="$with_multisrctop"
17405 with_target_subdir="$with_target_subdir"
17406 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17407 multi_basedir="$multi_basedir"
17408 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17409 CC="$CC"
17410 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17413 # The HP-UX ksh and POSIX shell print the target directory to stdout
17414 # if CDPATH is set.
17415 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17417 sed_quote_subst='$sed_quote_subst'
17418 double_quote_subst='$double_quote_subst'
17419 delay_variable_subst='$delay_variable_subst'
17420 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17421 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17422 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17423 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17424 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17425 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17426 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17427 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17428 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17429 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17430 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17431 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17432 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17433 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17434 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17435 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17436 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17437 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17438 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17439 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17440 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17441 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17442 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17443 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17444 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17445 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17446 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17447 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17448 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17449 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17450 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17451 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17452 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17453 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17454 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17455 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17456 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17457 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17458 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17459 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17460 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17461 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17462 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17463 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17464 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17465 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17466 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17467 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17468 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17469 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17470 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17471 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17472 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17473 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17474 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17475 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17476 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17477 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17478 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17479 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17480 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17481 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17482 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17483 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17484 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17485 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17486 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17487 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17488 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17489 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17490 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17491 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17492 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17493 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17494 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17495 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17496 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17497 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17498 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17499 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17500 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17501 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17502 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17503 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17504 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17505 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17506 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17507 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17508 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17509 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17510 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17511 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17512 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17513 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17514 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17515 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17516 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17517 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17518 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17519 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17520 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17521 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17522 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17523 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17524 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17525 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17526 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17527 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17528 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17529 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17530 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17531 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17532 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17533 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17534 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17535 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17536 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17537 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17538 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17539 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17540 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17541 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17542 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17543 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17544 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17545 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17546 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17547 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17548 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17549 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17550 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17551 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17552 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17553 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17554 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17555 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17556 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17557 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17558 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17559 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17560 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17561 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17562 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17563 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17564 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17565 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17566 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17567 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17568 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17569 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17570 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17571 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17572 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17573 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17574 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17575 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17576 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17577 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17578 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17579 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17580 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17581 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17582 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17583 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17584 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17585 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17586 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17587 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17588 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17589 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17590 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17592 LTCC='$LTCC'
17593 LTCFLAGS='$LTCFLAGS'
17594 compiler='$compiler_DEFAULT'
17596 # Quote evaled strings.
17597 for var in SED \
17598 GREP \
17599 EGREP \
17600 FGREP \
17601 LD \
17602 NM \
17603 LN_S \
17604 lt_SP2NL \
17605 lt_NL2SP \
17606 reload_flag \
17607 OBJDUMP \
17608 deplibs_check_method \
17609 file_magic_cmd \
17610 AR \
17611 AR_FLAGS \
17612 STRIP \
17613 RANLIB \
17614 CC \
17615 CFLAGS \
17616 compiler \
17617 lt_cv_sys_global_symbol_pipe \
17618 lt_cv_sys_global_symbol_to_cdecl \
17619 lt_cv_sys_global_symbol_to_c_name_address \
17620 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17621 SHELL \
17622 ECHO \
17623 lt_prog_compiler_no_builtin_flag \
17624 lt_prog_compiler_wl \
17625 lt_prog_compiler_pic \
17626 lt_prog_compiler_static \
17627 lt_cv_prog_compiler_c_o \
17628 need_locks \
17629 DSYMUTIL \
17630 NMEDIT \
17631 LIPO \
17632 OTOOL \
17633 OTOOL64 \
17634 shrext_cmds \
17635 export_dynamic_flag_spec \
17636 whole_archive_flag_spec \
17637 compiler_needs_object \
17638 with_gnu_ld \
17639 allow_undefined_flag \
17640 no_undefined_flag \
17641 hardcode_libdir_flag_spec \
17642 hardcode_libdir_flag_spec_ld \
17643 hardcode_libdir_separator \
17644 fix_srcfile_path \
17645 exclude_expsyms \
17646 include_expsyms \
17647 file_list_spec \
17648 variables_saved_for_relink \
17649 libname_spec \
17650 library_names_spec \
17651 soname_spec \
17652 finish_eval \
17653 old_striplib \
17654 striplib \
17655 compiler_lib_search_dirs \
17656 predep_objects \
17657 postdep_objects \
17658 predeps \
17659 postdeps \
17660 compiler_lib_search_path \
17661 LD_CXX \
17662 compiler_CXX \
17663 lt_prog_compiler_no_builtin_flag_CXX \
17664 lt_prog_compiler_wl_CXX \
17665 lt_prog_compiler_pic_CXX \
17666 lt_prog_compiler_static_CXX \
17667 lt_cv_prog_compiler_c_o_CXX \
17668 export_dynamic_flag_spec_CXX \
17669 whole_archive_flag_spec_CXX \
17670 compiler_needs_object_CXX \
17671 with_gnu_ld_CXX \
17672 allow_undefined_flag_CXX \
17673 no_undefined_flag_CXX \
17674 hardcode_libdir_flag_spec_CXX \
17675 hardcode_libdir_flag_spec_ld_CXX \
17676 hardcode_libdir_separator_CXX \
17677 fix_srcfile_path_CXX \
17678 exclude_expsyms_CXX \
17679 include_expsyms_CXX \
17680 file_list_spec_CXX \
17681 compiler_lib_search_dirs_CXX \
17682 predep_objects_CXX \
17683 postdep_objects_CXX \
17684 predeps_CXX \
17685 postdeps_CXX \
17686 compiler_lib_search_path_CXX; do
17687 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17688 *[\\\\\\\`\\"\\\$]*)
17689 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17692 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17694 esac
17695 done
17697 # Double-quote double-evaled strings.
17698 for var in reload_cmds \
17699 old_postinstall_cmds \
17700 old_postuninstall_cmds \
17701 old_archive_cmds \
17702 extract_expsyms_cmds \
17703 old_archive_from_new_cmds \
17704 old_archive_from_expsyms_cmds \
17705 archive_cmds \
17706 archive_expsym_cmds \
17707 module_cmds \
17708 module_expsym_cmds \
17709 export_symbols_cmds \
17710 prelink_cmds \
17711 postinstall_cmds \
17712 postuninstall_cmds \
17713 finish_cmds \
17714 sys_lib_search_path_spec \
17715 sys_lib_dlsearch_path_spec \
17716 old_archive_cmds_CXX \
17717 old_archive_from_new_cmds_CXX \
17718 old_archive_from_expsyms_cmds_CXX \
17719 archive_cmds_CXX \
17720 archive_expsym_cmds_CXX \
17721 module_cmds_CXX \
17722 module_expsym_cmds_CXX \
17723 export_symbols_cmds_CXX \
17724 prelink_cmds_CXX; do
17725 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17726 *[\\\\\\\`\\"\\\$]*)
17727 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17730 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17732 esac
17733 done
17735 # Fix-up fallback echo if it was mangled by the above quoting rules.
17736 case \$lt_ECHO in
17737 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17739 esac
17741 ac_aux_dir='$ac_aux_dir'
17742 xsi_shell='$xsi_shell'
17743 lt_shell_append='$lt_shell_append'
17745 # See if we are running on zsh, and set the options which allow our
17746 # commands through without removal of \ escapes INIT.
17747 if test -n "\${ZSH_VERSION+set}" ; then
17748 setopt NO_GLOB_SUBST
17752 PACKAGE='$PACKAGE'
17753 VERSION='$VERSION'
17754 TIMESTAMP='$TIMESTAMP'
17755 RM='$RM'
17756 ofile='$ofile'
17763 _ACEOF
17767 cat >>$CONFIG_STATUS <<\_ACEOF
17768 for ac_config_target in $ac_config_targets
17770 case "$ac_config_target" in
17771 # Handling of arguments.
17772 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17773 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17774 "threads.mk" ) CONFIG_FILES="$CONFIG_FILES threads.mk" ;;
17775 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17776 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17777 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17778 "include/gc_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_config.h" ;;
17779 "include/gc_ext_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_ext_config.h" ;;
17780 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17781 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17782 { (exit 1); exit 1; }; };;
17783 esac
17784 done
17786 # If the user did not use the arguments to specify the items to instantiate,
17787 # then the envvar interface is used. Set only those that are not.
17788 # We use the long form for the default assignment because of an extremely
17789 # bizarre bug on SunOS 4.1.3.
17790 if $ac_need_defaults; then
17791 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17792 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17793 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17796 # Have a temporary directory for convenience. Make it in the build tree
17797 # simply because there is no reason to put it here, and in addition,
17798 # creating and moving files from /tmp can sometimes cause problems.
17799 # Create a temporary directory, and hook for its removal unless debugging.
17800 $debug ||
17802 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17803 trap '{ (exit 1); exit 1; }' 1 2 13 15
17806 # Create a (secure) tmp directory for tmp files.
17809 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17810 test -n "$tmp" && test -d "$tmp"
17811 } ||
17813 tmp=./confstat$$-$RANDOM
17814 (umask 077 && mkdir $tmp)
17815 } ||
17817 echo "$me: cannot create a temporary directory in ." >&2
17818 { (exit 1); exit 1; }
17821 _ACEOF
17823 cat >>$CONFIG_STATUS <<_ACEOF
17826 # CONFIG_FILES section.
17829 # No need to generate the scripts if there are no CONFIG_FILES.
17830 # This happens for instance when ./config.status config.h
17831 if test -n "\$CONFIG_FILES"; then
17832 # Protect against being on the right side of a sed subst in config.status.
17833 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17834 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17835 s,@SHELL@,$SHELL,;t t
17836 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17837 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17838 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17839 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17840 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17841 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17842 s,@exec_prefix@,$exec_prefix,;t t
17843 s,@prefix@,$prefix,;t t
17844 s,@program_transform_name@,$program_transform_name,;t t
17845 s,@bindir@,$bindir,;t t
17846 s,@sbindir@,$sbindir,;t t
17847 s,@libexecdir@,$libexecdir,;t t
17848 s,@datadir@,$datadir,;t t
17849 s,@sysconfdir@,$sysconfdir,;t t
17850 s,@sharedstatedir@,$sharedstatedir,;t t
17851 s,@localstatedir@,$localstatedir,;t t
17852 s,@libdir@,$libdir,;t t
17853 s,@includedir@,$includedir,;t t
17854 s,@oldincludedir@,$oldincludedir,;t t
17855 s,@infodir@,$infodir,;t t
17856 s,@mandir@,$mandir,;t t
17857 s,@build_alias@,$build_alias,;t t
17858 s,@host_alias@,$host_alias,;t t
17859 s,@target_alias@,$target_alias,;t t
17860 s,@DEFS@,$DEFS,;t t
17861 s,@ECHO_C@,$ECHO_C,;t t
17862 s,@ECHO_N@,$ECHO_N,;t t
17863 s,@ECHO_T@,$ECHO_T,;t t
17864 s,@LIBS@,$LIBS,;t t
17865 s,@multi_basedir@,$multi_basedir,;t t
17866 s,@build@,$build,;t t
17867 s,@build_cpu@,$build_cpu,;t t
17868 s,@build_vendor@,$build_vendor,;t t
17869 s,@build_os@,$build_os,;t t
17870 s,@host@,$host,;t t
17871 s,@host_cpu@,$host_cpu,;t t
17872 s,@host_vendor@,$host_vendor,;t t
17873 s,@host_os@,$host_os,;t t
17874 s,@target@,$target,;t t
17875 s,@target_cpu@,$target_cpu,;t t
17876 s,@target_vendor@,$target_vendor,;t t
17877 s,@target_os@,$target_os,;t t
17878 s,@target_noncanonical@,$target_noncanonical,;t t
17879 s,@mkinstalldirs@,$mkinstalldirs,;t t
17880 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17881 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17882 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17883 s,@CYGPATH_W@,$CYGPATH_W,;t t
17884 s,@PACKAGE@,$PACKAGE,;t t
17885 s,@VERSION@,$VERSION,;t t
17886 s,@ACLOCAL@,$ACLOCAL,;t t
17887 s,@AUTOCONF@,$AUTOCONF,;t t
17888 s,@AUTOMAKE@,$AUTOMAKE,;t t
17889 s,@AUTOHEADER@,$AUTOHEADER,;t t
17890 s,@MAKEINFO@,$MAKEINFO,;t t
17891 s,@install_sh@,$install_sh,;t t
17892 s,@STRIP@,$STRIP,;t t
17893 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17894 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17895 s,@mkdir_p@,$mkdir_p,;t t
17896 s,@AWK@,$AWK,;t t
17897 s,@SET_MAKE@,$SET_MAKE,;t t
17898 s,@am__leading_dot@,$am__leading_dot,;t t
17899 s,@AMTAR@,$AMTAR,;t t
17900 s,@am__tar@,$am__tar,;t t
17901 s,@am__untar@,$am__untar,;t t
17902 s,@CC@,$CC,;t t
17903 s,@ac_ct_CC@,$ac_ct_CC,;t t
17904 s,@EXEEXT@,$EXEEXT,;t t
17905 s,@OBJEXT@,$OBJEXT,;t t
17906 s,@DEPDIR@,$DEPDIR,;t t
17907 s,@am__include@,$am__include,;t t
17908 s,@am__quote@,$am__quote,;t t
17909 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17910 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17911 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17912 s,@CCDEPMODE@,$CCDEPMODE,;t t
17913 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17914 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17915 s,@CXX@,$CXX,;t t
17916 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17917 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17918 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17919 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17920 s,@CFLAGS@,$CFLAGS,;t t
17921 s,@CXXFLAGS@,$CXXFLAGS,;t t
17922 s,@CCAS@,$CCAS,;t t
17923 s,@CCASFLAGS@,$CCASFLAGS,;t t
17924 s,@AS@,$AS,;t t
17925 s,@ac_ct_AS@,$ac_ct_AS,;t t
17926 s,@AR@,$AR,;t t
17927 s,@ac_ct_AR@,$ac_ct_AR,;t t
17928 s,@RANLIB@,$RANLIB,;t t
17929 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17930 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17931 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17932 s,@MAINT@,$MAINT,;t t
17933 s,@GC_CFLAGS@,$GC_CFLAGS,;t t
17934 s,@LIBTOOL@,$LIBTOOL,;t t
17935 s,@SED@,$SED,;t t
17936 s,@EGREP@,$EGREP,;t t
17937 s,@FGREP@,$FGREP,;t t
17938 s,@GREP@,$GREP,;t t
17939 s,@LD@,$LD,;t t
17940 s,@DUMPBIN@,$DUMPBIN,;t t
17941 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
17942 s,@NM@,$NM,;t t
17943 s,@LN_S@,$LN_S,;t t
17944 s,@OBJDUMP@,$OBJDUMP,;t t
17945 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
17946 s,@lt_ECHO@,$lt_ECHO,;t t
17947 s,@DSYMUTIL@,$DSYMUTIL,;t t
17948 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
17949 s,@NMEDIT@,$NMEDIT,;t t
17950 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
17951 s,@LIPO@,$LIPO,;t t
17952 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
17953 s,@OTOOL@,$OTOOL,;t t
17954 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
17955 s,@OTOOL64@,$OTOOL64,;t t
17956 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
17957 s,@CPP@,$CPP,;t t
17958 s,@CPPFLAGS@,$CPPFLAGS,;t t
17959 s,@LDFLAGS@,$LDFLAGS,;t t
17960 s,@CXXCPP@,$CXXCPP,;t t
17961 s,@THREADLIBS@,$THREADLIBS,;t t
17962 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
17963 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
17964 s,@extra_ldflags_libgc@,$extra_ldflags_libgc,;t t
17965 s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
17966 s,@target_all@,$target_all,;t t
17967 s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
17968 s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
17969 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
17970 s,@addobjs@,$addobjs,;t t
17971 s,@addincludes@,$addincludes,;t t
17972 s,@addlibs@,$addlibs,;t t
17973 s,@addtests@,$addtests,;t t
17974 s,@MY_CFLAGS@,$MY_CFLAGS,;t t
17975 s,@toolexecdir@,$toolexecdir,;t t
17976 s,@toolexeclibdir@,$toolexeclibdir,;t t
17977 s,@LIBOBJS@,$LIBOBJS,;t t
17978 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17979 CEOF
17981 _ACEOF
17983 cat >>$CONFIG_STATUS <<\_ACEOF
17984 # Split the substitutions into bite-sized pieces for seds with
17985 # small command number limits, like on Digital OSF/1 and HP-UX.
17986 ac_max_sed_lines=48
17987 ac_sed_frag=1 # Number of current file.
17988 ac_beg=1 # First line for current file.
17989 ac_end=$ac_max_sed_lines # Line after last line for current file.
17990 ac_more_lines=:
17991 ac_sed_cmds=
17992 while $ac_more_lines; do
17993 if test $ac_beg -gt 1; then
17994 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17995 else
17996 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17998 if test ! -s $tmp/subs.frag; then
17999 ac_more_lines=false
18000 else
18001 # The purpose of the label and of the branching condition is to
18002 # speed up the sed processing (if there are no `@' at all, there
18003 # is no need to browse any of the substitutions).
18004 # These are the two extra sed commands mentioned above.
18005 (echo ':t
18006 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18007 if test -z "$ac_sed_cmds"; then
18008 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18009 else
18010 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18012 ac_sed_frag=`expr $ac_sed_frag + 1`
18013 ac_beg=$ac_end
18014 ac_end=`expr $ac_end + $ac_max_sed_lines`
18016 done
18017 if test -z "$ac_sed_cmds"; then
18018 ac_sed_cmds=cat
18020 fi # test -n "$CONFIG_FILES"
18022 _ACEOF
18023 cat >>$CONFIG_STATUS <<\_ACEOF
18024 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18025 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18026 case $ac_file in
18027 - | *:- | *:-:* ) # input from stdin
18028 cat >$tmp/stdin
18029 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18030 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18031 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18032 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18033 * ) ac_file_in=$ac_file.in ;;
18034 esac
18036 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18037 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18038 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18039 X"$ac_file" : 'X\(//\)[^/]' \| \
18040 X"$ac_file" : 'X\(//\)$' \| \
18041 X"$ac_file" : 'X\(/\)' \| \
18042 . : '\(.\)' 2>/dev/null ||
18043 echo X"$ac_file" |
18044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18045 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18046 /^X\(\/\/\)$/{ s//\1/; q; }
18047 /^X\(\/\).*/{ s//\1/; q; }
18048 s/.*/./; q'`
18049 { if $as_mkdir_p; then
18050 mkdir -p "$ac_dir"
18051 else
18052 as_dir="$ac_dir"
18053 as_dirs=
18054 while test ! -d "$as_dir"; do
18055 as_dirs="$as_dir $as_dirs"
18056 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18057 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18058 X"$as_dir" : 'X\(//\)[^/]' \| \
18059 X"$as_dir" : 'X\(//\)$' \| \
18060 X"$as_dir" : 'X\(/\)' \| \
18061 . : '\(.\)' 2>/dev/null ||
18062 echo X"$as_dir" |
18063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18064 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18065 /^X\(\/\/\)$/{ s//\1/; q; }
18066 /^X\(\/\).*/{ s//\1/; q; }
18067 s/.*/./; q'`
18068 done
18069 test ! -n "$as_dirs" || mkdir $as_dirs
18070 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18071 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18072 { (exit 1); exit 1; }; }; }
18074 ac_builddir=.
18076 if test "$ac_dir" != .; then
18077 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18078 # A "../" for each directory in $ac_dir_suffix.
18079 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18080 else
18081 ac_dir_suffix= ac_top_builddir=
18084 case $srcdir in
18085 .) # No --srcdir option. We are building in place.
18086 ac_srcdir=.
18087 if test -z "$ac_top_builddir"; then
18088 ac_top_srcdir=.
18089 else
18090 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18091 fi ;;
18092 [\\/]* | ?:[\\/]* ) # Absolute path.
18093 ac_srcdir=$srcdir$ac_dir_suffix;
18094 ac_top_srcdir=$srcdir ;;
18095 *) # Relative path.
18096 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18097 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18098 esac
18100 # Do not use `cd foo && pwd` to compute absolute paths, because
18101 # the directories may not exist.
18102 case `pwd` in
18103 .) ac_abs_builddir="$ac_dir";;
18105 case "$ac_dir" in
18106 .) ac_abs_builddir=`pwd`;;
18107 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18108 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18109 esac;;
18110 esac
18111 case $ac_abs_builddir in
18112 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18114 case ${ac_top_builddir}. in
18115 .) ac_abs_top_builddir=$ac_abs_builddir;;
18116 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18117 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18118 esac;;
18119 esac
18120 case $ac_abs_builddir in
18121 .) ac_abs_srcdir=$ac_srcdir;;
18123 case $ac_srcdir in
18124 .) ac_abs_srcdir=$ac_abs_builddir;;
18125 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18126 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18127 esac;;
18128 esac
18129 case $ac_abs_builddir in
18130 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18132 case $ac_top_srcdir in
18133 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18134 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18135 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18136 esac;;
18137 esac
18140 case $INSTALL in
18141 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18142 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18143 esac
18145 if test x"$ac_file" != x-; then
18146 { echo "$as_me:$LINENO: creating $ac_file" >&5
18147 echo "$as_me: creating $ac_file" >&6;}
18148 rm -f "$ac_file"
18150 # Let's still pretend it is `configure' which instantiates (i.e., don't
18151 # use $as_me), people would be surprised to read:
18152 # /* config.h. Generated by config.status. */
18153 if test x"$ac_file" = x-; then
18154 configure_input=
18155 else
18156 configure_input="$ac_file. "
18158 configure_input=$configure_input"Generated from `echo $ac_file_in |
18159 sed 's,.*/,,'` by configure."
18161 # First look for the input files in the build tree, otherwise in the
18162 # src tree.
18163 ac_file_inputs=`IFS=:
18164 for f in $ac_file_in; do
18165 case $f in
18166 -) echo $tmp/stdin ;;
18167 [\\/$]*)
18168 # Absolute (can't be DOS-style, as IFS=:)
18169 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18170 echo "$as_me: error: cannot find input file: $f" >&2;}
18171 { (exit 1); exit 1; }; }
18172 echo "$f";;
18173 *) # Relative
18174 if test -f "$f"; then
18175 # Build tree
18176 echo "$f"
18177 elif test -f "$srcdir/$f"; then
18178 # Source tree
18179 echo "$srcdir/$f"
18180 else
18181 # /dev/null tree
18182 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18183 echo "$as_me: error: cannot find input file: $f" >&2;}
18184 { (exit 1); exit 1; }; }
18185 fi;;
18186 esac
18187 done` || { (exit 1); exit 1; }
18188 _ACEOF
18189 cat >>$CONFIG_STATUS <<_ACEOF
18190 sed "$ac_vpsub
18191 $extrasub
18192 _ACEOF
18193 cat >>$CONFIG_STATUS <<\_ACEOF
18195 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18196 s,@configure_input@,$configure_input,;t t
18197 s,@srcdir@,$ac_srcdir,;t t
18198 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18199 s,@top_srcdir@,$ac_top_srcdir,;t t
18200 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18201 s,@builddir@,$ac_builddir,;t t
18202 s,@abs_builddir@,$ac_abs_builddir,;t t
18203 s,@top_builddir@,$ac_top_builddir,;t t
18204 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18205 s,@INSTALL@,$ac_INSTALL,;t t
18206 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18207 rm -f $tmp/stdin
18208 if test x"$ac_file" != x-; then
18209 mv $tmp/out $ac_file
18210 else
18211 cat $tmp/out
18212 rm -f $tmp/out
18215 done
18216 _ACEOF
18217 cat >>$CONFIG_STATUS <<\_ACEOF
18220 # CONFIG_HEADER section.
18223 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18224 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18226 # ac_d sets the value in "#define NAME VALUE" lines.
18227 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18228 ac_dB='[ ].*$,\1#\2'
18229 ac_dC=' '
18230 ac_dD=',;t'
18231 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18232 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18233 ac_uB='$,\1#\2define\3'
18234 ac_uC=' '
18235 ac_uD=',;t'
18237 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18238 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18239 case $ac_file in
18240 - | *:- | *:-:* ) # input from stdin
18241 cat >$tmp/stdin
18242 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18243 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18244 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18245 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18246 * ) ac_file_in=$ac_file.in ;;
18247 esac
18249 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18250 echo "$as_me: creating $ac_file" >&6;}
18252 # First look for the input files in the build tree, otherwise in the
18253 # src tree.
18254 ac_file_inputs=`IFS=:
18255 for f in $ac_file_in; do
18256 case $f in
18257 -) echo $tmp/stdin ;;
18258 [\\/$]*)
18259 # Absolute (can't be DOS-style, as IFS=:)
18260 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18261 echo "$as_me: error: cannot find input file: $f" >&2;}
18262 { (exit 1); exit 1; }; }
18263 # Do quote $f, to prevent DOS paths from being IFS'd.
18264 echo "$f";;
18265 *) # Relative
18266 if test -f "$f"; then
18267 # Build tree
18268 echo "$f"
18269 elif test -f "$srcdir/$f"; then
18270 # Source tree
18271 echo "$srcdir/$f"
18272 else
18273 # /dev/null tree
18274 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18275 echo "$as_me: error: cannot find input file: $f" >&2;}
18276 { (exit 1); exit 1; }; }
18277 fi;;
18278 esac
18279 done` || { (exit 1); exit 1; }
18280 # Remove the trailing spaces.
18281 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18283 _ACEOF
18285 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18286 # `conftest.undefs', that substitutes the proper values into
18287 # config.h.in to produce config.h. The first handles `#define'
18288 # templates, and the second `#undef' templates.
18289 # And first: Protect against being on the right side of a sed subst in
18290 # config.status. Protect against being in an unquoted here document
18291 # in config.status.
18292 rm -f conftest.defines conftest.undefs
18293 # Using a here document instead of a string reduces the quoting nightmare.
18294 # Putting comments in sed scripts is not portable.
18296 # `end' is used to avoid that the second main sed command (meant for
18297 # 0-ary CPP macros) applies to n-ary macro definitions.
18298 # See the Autoconf documentation for `clear'.
18299 cat >confdef2sed.sed <<\_ACEOF
18300 s/[\\&,]/\\&/g
18301 s,[\\$`],\\&,g
18302 t clear
18303 : clear
18304 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18305 t end
18306 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18307 : end
18308 _ACEOF
18309 # If some macros were called several times there might be several times
18310 # the same #defines, which is useless. Nevertheless, we may not want to
18311 # sort them, since we want the *last* AC-DEFINE to be honored.
18312 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18313 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18314 rm -f confdef2sed.sed
18316 # This sed command replaces #undef with comments. This is necessary, for
18317 # example, in the case of _POSIX_SOURCE, which is predefined and required
18318 # on some systems where configure will not decide to define it.
18319 cat >>conftest.undefs <<\_ACEOF
18320 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18321 _ACEOF
18323 # Break up conftest.defines because some shells have a limit on the size
18324 # of here documents, and old seds have small limits too (100 cmds).
18325 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18326 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18327 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18328 echo ' :' >>$CONFIG_STATUS
18329 rm -f conftest.tail
18330 while grep . conftest.defines >/dev/null
18332 # Write a limited-size here document to $tmp/defines.sed.
18333 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18334 # Speed up: don't consider the non `#define' lines.
18335 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18336 # Work around the forget-to-reset-the-flag bug.
18337 echo 't clr' >>$CONFIG_STATUS
18338 echo ': clr' >>$CONFIG_STATUS
18339 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18340 echo 'CEOF
18341 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18342 rm -f $tmp/in
18343 mv $tmp/out $tmp/in
18344 ' >>$CONFIG_STATUS
18345 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18346 rm -f conftest.defines
18347 mv conftest.tail conftest.defines
18348 done
18349 rm -f conftest.defines
18350 echo ' fi # grep' >>$CONFIG_STATUS
18351 echo >>$CONFIG_STATUS
18353 # Break up conftest.undefs because some shells have a limit on the size
18354 # of here documents, and old seds have small limits too (100 cmds).
18355 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18356 rm -f conftest.tail
18357 while grep . conftest.undefs >/dev/null
18359 # Write a limited-size here document to $tmp/undefs.sed.
18360 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18361 # Speed up: don't consider the non `#undef'
18362 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18363 # Work around the forget-to-reset-the-flag bug.
18364 echo 't clr' >>$CONFIG_STATUS
18365 echo ': clr' >>$CONFIG_STATUS
18366 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18367 echo 'CEOF
18368 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18369 rm -f $tmp/in
18370 mv $tmp/out $tmp/in
18371 ' >>$CONFIG_STATUS
18372 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18373 rm -f conftest.undefs
18374 mv conftest.tail conftest.undefs
18375 done
18376 rm -f conftest.undefs
18378 cat >>$CONFIG_STATUS <<\_ACEOF
18379 # Let's still pretend it is `configure' which instantiates (i.e., don't
18380 # use $as_me), people would be surprised to read:
18381 # /* config.h. Generated by config.status. */
18382 if test x"$ac_file" = x-; then
18383 echo "/* Generated by configure. */" >$tmp/config.h
18384 else
18385 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18387 cat $tmp/in >>$tmp/config.h
18388 rm -f $tmp/in
18389 if test x"$ac_file" != x-; then
18390 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18391 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18392 echo "$as_me: $ac_file is unchanged" >&6;}
18393 else
18394 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18395 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18396 X"$ac_file" : 'X\(//\)[^/]' \| \
18397 X"$ac_file" : 'X\(//\)$' \| \
18398 X"$ac_file" : 'X\(/\)' \| \
18399 . : '\(.\)' 2>/dev/null ||
18400 echo X"$ac_file" |
18401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18402 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18403 /^X\(\/\/\)$/{ s//\1/; q; }
18404 /^X\(\/\).*/{ s//\1/; q; }
18405 s/.*/./; q'`
18406 { if $as_mkdir_p; then
18407 mkdir -p "$ac_dir"
18408 else
18409 as_dir="$ac_dir"
18410 as_dirs=
18411 while test ! -d "$as_dir"; do
18412 as_dirs="$as_dir $as_dirs"
18413 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18414 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18415 X"$as_dir" : 'X\(//\)[^/]' \| \
18416 X"$as_dir" : 'X\(//\)$' \| \
18417 X"$as_dir" : 'X\(/\)' \| \
18418 . : '\(.\)' 2>/dev/null ||
18419 echo X"$as_dir" |
18420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18421 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18422 /^X\(\/\/\)$/{ s//\1/; q; }
18423 /^X\(\/\).*/{ s//\1/; q; }
18424 s/.*/./; q'`
18425 done
18426 test ! -n "$as_dirs" || mkdir $as_dirs
18427 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18428 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18429 { (exit 1); exit 1; }; }; }
18431 rm -f $ac_file
18432 mv $tmp/config.h $ac_file
18434 else
18435 cat $tmp/config.h
18436 rm -f $tmp/config.h
18438 # Compute $ac_file's index in $config_headers.
18439 _am_stamp_count=1
18440 for _am_header in $config_headers :; do
18441 case $_am_header in
18442 $ac_file | $ac_file:* )
18443 break ;;
18445 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18446 esac
18447 done
18448 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18449 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18450 X$ac_file : 'X\(//\)[^/]' \| \
18451 X$ac_file : 'X\(//\)$' \| \
18452 X$ac_file : 'X\(/\)' \| \
18453 . : '\(.\)' 2>/dev/null ||
18454 echo X$ac_file |
18455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18456 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18457 /^X\(\/\/\)$/{ s//\1/; q; }
18458 /^X\(\/\).*/{ s//\1/; q; }
18459 s/.*/./; q'`/stamp-h$_am_stamp_count
18460 done
18461 _ACEOF
18462 cat >>$CONFIG_STATUS <<\_ACEOF
18465 # CONFIG_COMMANDS section.
18467 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18468 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18469 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18470 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18471 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18472 X"$ac_dest" : 'X\(//\)[^/]' \| \
18473 X"$ac_dest" : 'X\(//\)$' \| \
18474 X"$ac_dest" : 'X\(/\)' \| \
18475 . : '\(.\)' 2>/dev/null ||
18476 echo X"$ac_dest" |
18477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18479 /^X\(\/\/\)$/{ s//\1/; q; }
18480 /^X\(\/\).*/{ s//\1/; q; }
18481 s/.*/./; q'`
18482 { if $as_mkdir_p; then
18483 mkdir -p "$ac_dir"
18484 else
18485 as_dir="$ac_dir"
18486 as_dirs=
18487 while test ! -d "$as_dir"; do
18488 as_dirs="$as_dir $as_dirs"
18489 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18490 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18491 X"$as_dir" : 'X\(//\)[^/]' \| \
18492 X"$as_dir" : 'X\(//\)$' \| \
18493 X"$as_dir" : 'X\(/\)' \| \
18494 . : '\(.\)' 2>/dev/null ||
18495 echo X"$as_dir" |
18496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18498 /^X\(\/\/\)$/{ s//\1/; q; }
18499 /^X\(\/\).*/{ s//\1/; q; }
18500 s/.*/./; q'`
18501 done
18502 test ! -n "$as_dirs" || mkdir $as_dirs
18503 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18504 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18505 { (exit 1); exit 1; }; }; }
18507 ac_builddir=.
18509 if test "$ac_dir" != .; then
18510 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18511 # A "../" for each directory in $ac_dir_suffix.
18512 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18513 else
18514 ac_dir_suffix= ac_top_builddir=
18517 case $srcdir in
18518 .) # No --srcdir option. We are building in place.
18519 ac_srcdir=.
18520 if test -z "$ac_top_builddir"; then
18521 ac_top_srcdir=.
18522 else
18523 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18524 fi ;;
18525 [\\/]* | ?:[\\/]* ) # Absolute path.
18526 ac_srcdir=$srcdir$ac_dir_suffix;
18527 ac_top_srcdir=$srcdir ;;
18528 *) # Relative path.
18529 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18530 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18531 esac
18533 # Do not use `cd foo && pwd` to compute absolute paths, because
18534 # the directories may not exist.
18535 case `pwd` in
18536 .) ac_abs_builddir="$ac_dir";;
18538 case "$ac_dir" in
18539 .) ac_abs_builddir=`pwd`;;
18540 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18541 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18542 esac;;
18543 esac
18544 case $ac_abs_builddir in
18545 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18547 case ${ac_top_builddir}. in
18548 .) ac_abs_top_builddir=$ac_abs_builddir;;
18549 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18550 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18551 esac;;
18552 esac
18553 case $ac_abs_builddir in
18554 .) ac_abs_srcdir=$ac_srcdir;;
18556 case $ac_srcdir in
18557 .) ac_abs_srcdir=$ac_abs_builddir;;
18558 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18559 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18560 esac;;
18561 esac
18562 case $ac_abs_builddir in
18563 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18565 case $ac_top_srcdir in
18566 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18567 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18568 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18569 esac;;
18570 esac
18573 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18574 echo "$as_me: executing $ac_dest commands" >&6;}
18575 case $ac_dest in
18576 default-1 )
18577 # Only add multilib support code if we just rebuilt the top-level
18578 # Makefile.
18579 case " $CONFIG_FILES " in
18580 *" Makefile "*)
18581 ac_file=Makefile . ${multi_basedir}/config-ml.in
18583 esac ;;
18584 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18585 # Strip MF so we end up with the name of the file.
18586 mf=`echo "$mf" | sed -e 's/:.*$//'`
18587 # Check whether this is an Automake generated Makefile or not.
18588 # We used to match only the files named `Makefile.in', but
18589 # some people rename them; so instead we look at the file content.
18590 # Grep'ing the first line is not enough: some people post-process
18591 # each Makefile.in and add a new line on top of each file to say so.
18592 # So let's grep whole file.
18593 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18594 dirpart=`(dirname "$mf") 2>/dev/null ||
18595 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18596 X"$mf" : 'X\(//\)[^/]' \| \
18597 X"$mf" : 'X\(//\)$' \| \
18598 X"$mf" : 'X\(/\)' \| \
18599 . : '\(.\)' 2>/dev/null ||
18600 echo X"$mf" |
18601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18603 /^X\(\/\/\)$/{ s//\1/; q; }
18604 /^X\(\/\).*/{ s//\1/; q; }
18605 s/.*/./; q'`
18606 else
18607 continue
18609 # Extract the definition of DEPDIR, am__include, and am__quote
18610 # from the Makefile without running `make'.
18611 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18612 test -z "$DEPDIR" && continue
18613 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18614 test -z "am__include" && continue
18615 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18616 # When using ansi2knr, U may be empty or an underscore; expand it
18617 U=`sed -n 's/^U = //p' < "$mf"`
18618 # Find all dependency output files, they are included files with
18619 # $(DEPDIR) in their names. We invoke sed twice because it is the
18620 # simplest approach to changing $(DEPDIR) to its actual value in the
18621 # expansion.
18622 for file in `sed -n "
18623 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18624 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18625 # Make sure the directory exists.
18626 test -f "$dirpart/$file" && continue
18627 fdir=`(dirname "$file") 2>/dev/null ||
18628 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18629 X"$file" : 'X\(//\)[^/]' \| \
18630 X"$file" : 'X\(//\)$' \| \
18631 X"$file" : 'X\(/\)' \| \
18632 . : '\(.\)' 2>/dev/null ||
18633 echo X"$file" |
18634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18635 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18636 /^X\(\/\/\)$/{ s//\1/; q; }
18637 /^X\(\/\).*/{ s//\1/; q; }
18638 s/.*/./; q'`
18639 { if $as_mkdir_p; then
18640 mkdir -p $dirpart/$fdir
18641 else
18642 as_dir=$dirpart/$fdir
18643 as_dirs=
18644 while test ! -d "$as_dir"; do
18645 as_dirs="$as_dir $as_dirs"
18646 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18648 X"$as_dir" : 'X\(//\)[^/]' \| \
18649 X"$as_dir" : 'X\(//\)$' \| \
18650 X"$as_dir" : 'X\(/\)' \| \
18651 . : '\(.\)' 2>/dev/null ||
18652 echo X"$as_dir" |
18653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18654 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18655 /^X\(\/\/\)$/{ s//\1/; q; }
18656 /^X\(\/\).*/{ s//\1/; q; }
18657 s/.*/./; q'`
18658 done
18659 test ! -n "$as_dirs" || mkdir $as_dirs
18660 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18661 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18662 { (exit 1); exit 1; }; }; }
18664 # echo "creating $dirpart/$file"
18665 echo '# dummy' > "$dirpart/$file"
18666 done
18667 done
18669 libtool )
18671 # See if we are running on zsh, and set the options which allow our
18672 # commands through without removal of \ escapes.
18673 if test -n "${ZSH_VERSION+set}" ; then
18674 setopt NO_GLOB_SUBST
18677 cfgfile="${ofile}T"
18678 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18679 $RM "$cfgfile"
18681 cat <<_LT_EOF >> "$cfgfile"
18682 #! $SHELL
18684 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18685 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18686 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18687 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18689 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18690 # 2006, 2007, 2008 Free Software Foundation, Inc.
18691 # Written by Gordon Matzigkeit, 1996
18693 # This file is part of GNU Libtool.
18695 # GNU Libtool is free software; you can redistribute it and/or
18696 # modify it under the terms of the GNU General Public License as
18697 # published by the Free Software Foundation; either version 2 of
18698 # the License, or (at your option) any later version.
18700 # As a special exception to the GNU General Public License,
18701 # if you distribute this file as part of a program or library that
18702 # is built using GNU Libtool, you may include this file under the
18703 # same distribution terms that you use for the rest of that program.
18705 # GNU Libtool is distributed in the hope that it will be useful,
18706 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18707 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18708 # GNU General Public License for more details.
18710 # You should have received a copy of the GNU General Public License
18711 # along with GNU Libtool; see the file COPYING. If not, a copy
18712 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18713 # obtained by writing to the Free Software Foundation, Inc.,
18714 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18717 # The names of the tagged configurations supported by this script.
18718 available_tags="CXX "
18720 # ### BEGIN LIBTOOL CONFIG
18722 # Which release of libtool.m4 was used?
18723 macro_version=$macro_version
18724 macro_revision=$macro_revision
18726 # Whether or not to build shared libraries.
18727 build_libtool_libs=$enable_shared
18729 # Whether or not to build static libraries.
18730 build_old_libs=$enable_static
18732 # What type of objects to build.
18733 pic_mode=$pic_mode
18735 # Whether or not to optimize for fast installation.
18736 fast_install=$enable_fast_install
18738 # The host system.
18739 host_alias=$host_alias
18740 host=$host
18741 host_os=$host_os
18743 # The build system.
18744 build_alias=$build_alias
18745 build=$build
18746 build_os=$build_os
18748 # A sed program that does not truncate output.
18749 SED=$lt_SED
18751 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18752 Xsed="\$SED -e 1s/^X//"
18754 # A grep program that handles long lines.
18755 GREP=$lt_GREP
18757 # An ERE matcher.
18758 EGREP=$lt_EGREP
18760 # A literal string matcher.
18761 FGREP=$lt_FGREP
18763 # A BSD- or MS-compatible name lister.
18764 NM=$lt_NM
18766 # Whether we need soft or hard links.
18767 LN_S=$lt_LN_S
18769 # What is the maximum length of a command?
18770 max_cmd_len=$max_cmd_len
18772 # Object file suffix (normally "o").
18773 objext=$ac_objext
18775 # Executable file suffix (normally "").
18776 exeext=$exeext
18778 # whether the shell understands "unset".
18779 lt_unset=$lt_unset
18781 # turn spaces into newlines.
18782 SP2NL=$lt_lt_SP2NL
18784 # turn newlines into spaces.
18785 NL2SP=$lt_lt_NL2SP
18787 # How to create reloadable object files.
18788 reload_flag=$lt_reload_flag
18789 reload_cmds=$lt_reload_cmds
18791 # An object symbol dumper.
18792 OBJDUMP=$lt_OBJDUMP
18794 # Method to check whether dependent libraries are shared objects.
18795 deplibs_check_method=$lt_deplibs_check_method
18797 # Command to use when deplibs_check_method == "file_magic".
18798 file_magic_cmd=$lt_file_magic_cmd
18800 # The archiver.
18801 AR=$lt_AR
18802 AR_FLAGS=$lt_AR_FLAGS
18804 # A symbol stripping program.
18805 STRIP=$lt_STRIP
18807 # Commands used to install an old-style archive.
18808 RANLIB=$lt_RANLIB
18809 old_postinstall_cmds=$lt_old_postinstall_cmds
18810 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18812 # A C compiler.
18813 LTCC=$lt_CC
18815 # LTCC compiler flags.
18816 LTCFLAGS=$lt_CFLAGS
18818 # Take the output of nm and produce a listing of raw symbols and C names.
18819 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18821 # Transform the output of nm in a proper C declaration.
18822 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18824 # Transform the output of nm in a C name address pair.
18825 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18827 # Transform the output of nm in a C name address pair when lib prefix is needed.
18828 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18830 # The name of the directory that contains temporary libtool files.
18831 objdir=$objdir
18833 # Shell to use when invoking shell scripts.
18834 SHELL=$lt_SHELL
18836 # An echo program that does not interpret backslashes.
18837 ECHO=$lt_ECHO
18839 # Used to examine libraries when file_magic_cmd begins with "file".
18840 MAGIC_CMD=$MAGIC_CMD
18842 # Must we lock files when doing compilation?
18843 need_locks=$lt_need_locks
18845 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18846 DSYMUTIL=$lt_DSYMUTIL
18848 # Tool to change global to local symbols on Mac OS X.
18849 NMEDIT=$lt_NMEDIT
18851 # Tool to manipulate fat objects and archives on Mac OS X.
18852 LIPO=$lt_LIPO
18854 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18855 OTOOL=$lt_OTOOL
18857 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18858 OTOOL64=$lt_OTOOL64
18860 # Old archive suffix (normally "a").
18861 libext=$libext
18863 # Shared library suffix (normally ".so").
18864 shrext_cmds=$lt_shrext_cmds
18866 # The commands to extract the exported symbol list from a shared archive.
18867 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18869 # Variables whose values should be saved in libtool wrapper scripts and
18870 # restored at link time.
18871 variables_saved_for_relink=$lt_variables_saved_for_relink
18873 # Do we need the "lib" prefix for modules?
18874 need_lib_prefix=$need_lib_prefix
18876 # Do we need a version for libraries?
18877 need_version=$need_version
18879 # Library versioning type.
18880 version_type=$version_type
18882 # Shared library runtime path variable.
18883 runpath_var=$runpath_var
18885 # Shared library path variable.
18886 shlibpath_var=$shlibpath_var
18888 # Is shlibpath searched before the hard-coded library search path?
18889 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18891 # Format of library name prefix.
18892 libname_spec=$lt_libname_spec
18894 # List of archive names. First name is the real one, the rest are links.
18895 # The last name is the one that the linker finds with -lNAME
18896 library_names_spec=$lt_library_names_spec
18898 # The coded name of the library, if different from the real name.
18899 soname_spec=$lt_soname_spec
18901 # Command to use after installation of a shared archive.
18902 postinstall_cmds=$lt_postinstall_cmds
18904 # Command to use after uninstallation of a shared archive.
18905 postuninstall_cmds=$lt_postuninstall_cmds
18907 # Commands used to finish a libtool library installation in a directory.
18908 finish_cmds=$lt_finish_cmds
18910 # As "finish_cmds", except a single script fragment to be evaled but
18911 # not shown.
18912 finish_eval=$lt_finish_eval
18914 # Whether we should hardcode library paths into libraries.
18915 hardcode_into_libs=$hardcode_into_libs
18917 # Compile-time system search path for libraries.
18918 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18920 # Run-time system search path for libraries.
18921 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18923 # Whether dlopen is supported.
18924 dlopen_support=$enable_dlopen
18926 # Whether dlopen of programs is supported.
18927 dlopen_self=$enable_dlopen_self
18929 # Whether dlopen of statically linked programs is supported.
18930 dlopen_self_static=$enable_dlopen_self_static
18932 # Commands to strip libraries.
18933 old_striplib=$lt_old_striplib
18934 striplib=$lt_striplib
18937 # The linker used to build libraries.
18938 LD=$lt_LD
18940 # Commands used to build an old-style archive.
18941 old_archive_cmds=$lt_old_archive_cmds
18943 # A language specific compiler.
18944 CC=$lt_compiler
18946 # Is the compiler the GNU compiler?
18947 with_gcc=$GCC
18949 # Compiler flag to turn off builtin functions.
18950 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18952 # How to pass a linker flag through the compiler.
18953 wl=$lt_lt_prog_compiler_wl
18955 # Additional compiler flags for building library objects.
18956 pic_flag=$lt_lt_prog_compiler_pic
18958 # Compiler flag to prevent dynamic linking.
18959 link_static_flag=$lt_lt_prog_compiler_static
18961 # Does compiler simultaneously support -c and -o options?
18962 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18964 # Whether or not to add -lc for building shared libraries.
18965 build_libtool_need_lc=$archive_cmds_need_lc
18967 # Whether or not to disallow shared libs when runtime libs are static.
18968 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18970 # Compiler flag to allow reflexive dlopens.
18971 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18973 # Compiler flag to generate shared objects directly from archives.
18974 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18976 # Whether the compiler copes with passing no objects directly.
18977 compiler_needs_object=$lt_compiler_needs_object
18979 # Create an old-style archive from a shared archive.
18980 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18982 # Create a temporary old-style archive to link instead of a shared archive.
18983 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18985 # Commands used to build a shared archive.
18986 archive_cmds=$lt_archive_cmds
18987 archive_expsym_cmds=$lt_archive_expsym_cmds
18989 # Commands used to build a loadable module if different from building
18990 # a shared archive.
18991 module_cmds=$lt_module_cmds
18992 module_expsym_cmds=$lt_module_expsym_cmds
18994 # Whether we are building with GNU ld or not.
18995 with_gnu_ld=$lt_with_gnu_ld
18997 # Flag that allows shared libraries with undefined symbols to be built.
18998 allow_undefined_flag=$lt_allow_undefined_flag
19000 # Flag that enforces no undefined symbols.
19001 no_undefined_flag=$lt_no_undefined_flag
19003 # Flag to hardcode \$libdir into a binary during linking.
19004 # This must work even if \$libdir does not exist
19005 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19007 # If ld is used when linking, flag to hardcode \$libdir into a binary
19008 # during linking. This must work even if \$libdir does not exist.
19009 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19011 # Whether we need a single "-rpath" flag with a separated argument.
19012 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19014 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19015 # DIR into the resulting binary.
19016 hardcode_direct=$hardcode_direct
19018 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19019 # DIR into the resulting binary and the resulting library dependency is
19020 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19021 # library is relocated.
19022 hardcode_direct_absolute=$hardcode_direct_absolute
19024 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19025 # into the resulting binary.
19026 hardcode_minus_L=$hardcode_minus_L
19028 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19029 # into the resulting binary.
19030 hardcode_shlibpath_var=$hardcode_shlibpath_var
19032 # Set to "yes" if building a shared library automatically hardcodes DIR
19033 # into the library and all subsequent libraries and executables linked
19034 # against it.
19035 hardcode_automatic=$hardcode_automatic
19037 # Set to yes if linker adds runtime paths of dependent libraries
19038 # to runtime path list.
19039 inherit_rpath=$inherit_rpath
19041 # Whether libtool must link a program against all its dependency libraries.
19042 link_all_deplibs=$link_all_deplibs
19044 # Fix the shell variable \$srcfile for the compiler.
19045 fix_srcfile_path=$lt_fix_srcfile_path
19047 # Set to "yes" if exported symbols are required.
19048 always_export_symbols=$always_export_symbols
19050 # The commands to list exported symbols.
19051 export_symbols_cmds=$lt_export_symbols_cmds
19053 # Symbols that should not be listed in the preloaded symbols.
19054 exclude_expsyms=$lt_exclude_expsyms
19056 # Symbols that must always be exported.
19057 include_expsyms=$lt_include_expsyms
19059 # Commands necessary for linking programs (against libraries) with templates.
19060 prelink_cmds=$lt_prelink_cmds
19062 # Specify filename containing input files.
19063 file_list_spec=$lt_file_list_spec
19065 # How to hardcode a shared library path into an executable.
19066 hardcode_action=$hardcode_action
19068 # The directories searched by this compiler when creating a shared library.
19069 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19071 # Dependencies to place before and after the objects being linked to
19072 # create a shared library.
19073 predep_objects=$lt_predep_objects
19074 postdep_objects=$lt_postdep_objects
19075 predeps=$lt_predeps
19076 postdeps=$lt_postdeps
19078 # The library search path used internally by the compiler when linking
19079 # a shared library.
19080 compiler_lib_search_path=$lt_compiler_lib_search_path
19082 # ### END LIBTOOL CONFIG
19084 _LT_EOF
19086 case $host_os in
19087 aix3*)
19088 cat <<\_LT_EOF >> "$cfgfile"
19089 # AIX sometimes has problems with the GCC collect2 program. For some
19090 # reason, if we set the COLLECT_NAMES environment variable, the problems
19091 # vanish in a puff of smoke.
19092 if test "X${COLLECT_NAMES+set}" != Xset; then
19093 COLLECT_NAMES=
19094 export COLLECT_NAMES
19096 _LT_EOF
19098 esac
19101 ltmain="$ac_aux_dir/ltmain.sh"
19104 # We use sed instead of cat because bash on DJGPP gets confused if
19105 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19106 # text mode, it properly converts lines to CR/LF. This bash problem
19107 # is reportedly fixed, but why not run on old versions too?
19108 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19109 || (rm -f "$cfgfile"; exit 1)
19111 case $xsi_shell in
19112 yes)
19113 cat << \_LT_EOF >> "$cfgfile"
19115 # func_dirname file append nondir_replacement
19116 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19117 # otherwise set result to NONDIR_REPLACEMENT.
19118 func_dirname ()
19120 case ${1} in
19121 */*) func_dirname_result="${1%/*}${2}" ;;
19122 * ) func_dirname_result="${3}" ;;
19123 esac
19126 # func_basename file
19127 func_basename ()
19129 func_basename_result="${1##*/}"
19132 # func_dirname_and_basename file append nondir_replacement
19133 # perform func_basename and func_dirname in a single function
19134 # call:
19135 # dirname: Compute the dirname of FILE. If nonempty,
19136 # add APPEND to the result, otherwise set result
19137 # to NONDIR_REPLACEMENT.
19138 # value returned in "$func_dirname_result"
19139 # basename: Compute filename of FILE.
19140 # value retuned in "$func_basename_result"
19141 # Implementation must be kept synchronized with func_dirname
19142 # and func_basename. For efficiency, we do not delegate to
19143 # those functions but instead duplicate the functionality here.
19144 func_dirname_and_basename ()
19146 case ${1} in
19147 */*) func_dirname_result="${1%/*}${2}" ;;
19148 * ) func_dirname_result="${3}" ;;
19149 esac
19150 func_basename_result="${1##*/}"
19153 # func_stripname prefix suffix name
19154 # strip PREFIX and SUFFIX off of NAME.
19155 # PREFIX and SUFFIX must not contain globbing or regex special
19156 # characters, hashes, percent signs, but SUFFIX may contain a leading
19157 # dot (in which case that matches only a dot).
19158 func_stripname ()
19160 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19161 # positional parameters, so assign one to ordinary parameter first.
19162 func_stripname_result=${3}
19163 func_stripname_result=${func_stripname_result#"${1}"}
19164 func_stripname_result=${func_stripname_result%"${2}"}
19167 # func_opt_split
19168 func_opt_split ()
19170 func_opt_split_opt=${1%%=*}
19171 func_opt_split_arg=${1#*=}
19174 # func_lo2o object
19175 func_lo2o ()
19177 case ${1} in
19178 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19179 *) func_lo2o_result=${1} ;;
19180 esac
19183 # func_xform libobj-or-source
19184 func_xform ()
19186 func_xform_result=${1%.*}.lo
19189 # func_arith arithmetic-term...
19190 func_arith ()
19192 func_arith_result=$(( $* ))
19195 # func_len string
19196 # STRING may not start with a hyphen.
19197 func_len ()
19199 func_len_result=${#1}
19202 _LT_EOF
19204 *) # Bourne compatible functions.
19205 cat << \_LT_EOF >> "$cfgfile"
19207 # func_dirname file append nondir_replacement
19208 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19209 # otherwise set result to NONDIR_REPLACEMENT.
19210 func_dirname ()
19212 # Extract subdirectory from the argument.
19213 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19214 if test "X$func_dirname_result" = "X${1}"; then
19215 func_dirname_result="${3}"
19216 else
19217 func_dirname_result="$func_dirname_result${2}"
19221 # func_basename file
19222 func_basename ()
19224 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19228 # func_stripname prefix suffix name
19229 # strip PREFIX and SUFFIX off of NAME.
19230 # PREFIX and SUFFIX must not contain globbing or regex special
19231 # characters, hashes, percent signs, but SUFFIX may contain a leading
19232 # dot (in which case that matches only a dot).
19233 # func_strip_suffix prefix name
19234 func_stripname ()
19236 case ${2} in
19237 .*) func_stripname_result=`$ECHO "X${3}" \
19238 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19239 *) func_stripname_result=`$ECHO "X${3}" \
19240 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19241 esac
19244 # sed scripts:
19245 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19246 my_sed_long_arg='1s/^-[^=]*=//'
19248 # func_opt_split
19249 func_opt_split ()
19251 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19252 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19255 # func_lo2o object
19256 func_lo2o ()
19258 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19261 # func_xform libobj-or-source
19262 func_xform ()
19264 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19267 # func_arith arithmetic-term...
19268 func_arith ()
19270 func_arith_result=`expr "$@"`
19273 # func_len string
19274 # STRING may not start with a hyphen.
19275 func_len ()
19277 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19280 _LT_EOF
19281 esac
19283 case $lt_shell_append in
19284 yes)
19285 cat << \_LT_EOF >> "$cfgfile"
19287 # func_append var value
19288 # Append VALUE to the end of shell variable VAR.
19289 func_append ()
19291 eval "$1+=\$2"
19293 _LT_EOF
19296 cat << \_LT_EOF >> "$cfgfile"
19298 # func_append var value
19299 # Append VALUE to the end of shell variable VAR.
19300 func_append ()
19302 eval "$1=\$$1\$2"
19305 _LT_EOF
19307 esac
19310 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19311 || (rm -f "$cfgfile"; exit 1)
19313 mv -f "$cfgfile" "$ofile" ||
19314 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19315 chmod +x "$ofile"
19318 cat <<_LT_EOF >> "$ofile"
19320 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19322 # The linker used to build libraries.
19323 LD=$lt_LD_CXX
19325 # Commands used to build an old-style archive.
19326 old_archive_cmds=$lt_old_archive_cmds_CXX
19328 # A language specific compiler.
19329 CC=$lt_compiler_CXX
19331 # Is the compiler the GNU compiler?
19332 with_gcc=$GCC_CXX
19334 # Compiler flag to turn off builtin functions.
19335 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19337 # How to pass a linker flag through the compiler.
19338 wl=$lt_lt_prog_compiler_wl_CXX
19340 # Additional compiler flags for building library objects.
19341 pic_flag=$lt_lt_prog_compiler_pic_CXX
19343 # Compiler flag to prevent dynamic linking.
19344 link_static_flag=$lt_lt_prog_compiler_static_CXX
19346 # Does compiler simultaneously support -c and -o options?
19347 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19349 # Whether or not to add -lc for building shared libraries.
19350 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19352 # Whether or not to disallow shared libs when runtime libs are static.
19353 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19355 # Compiler flag to allow reflexive dlopens.
19356 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19358 # Compiler flag to generate shared objects directly from archives.
19359 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19361 # Whether the compiler copes with passing no objects directly.
19362 compiler_needs_object=$lt_compiler_needs_object_CXX
19364 # Create an old-style archive from a shared archive.
19365 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19367 # Create a temporary old-style archive to link instead of a shared archive.
19368 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19370 # Commands used to build a shared archive.
19371 archive_cmds=$lt_archive_cmds_CXX
19372 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19374 # Commands used to build a loadable module if different from building
19375 # a shared archive.
19376 module_cmds=$lt_module_cmds_CXX
19377 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19379 # Whether we are building with GNU ld or not.
19380 with_gnu_ld=$lt_with_gnu_ld_CXX
19382 # Flag that allows shared libraries with undefined symbols to be built.
19383 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19385 # Flag that enforces no undefined symbols.
19386 no_undefined_flag=$lt_no_undefined_flag_CXX
19388 # Flag to hardcode \$libdir into a binary during linking.
19389 # This must work even if \$libdir does not exist
19390 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19392 # If ld is used when linking, flag to hardcode \$libdir into a binary
19393 # during linking. This must work even if \$libdir does not exist.
19394 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19396 # Whether we need a single "-rpath" flag with a separated argument.
19397 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19399 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19400 # DIR into the resulting binary.
19401 hardcode_direct=$hardcode_direct_CXX
19403 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19404 # DIR into the resulting binary and the resulting library dependency is
19405 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19406 # library is relocated.
19407 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19409 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19410 # into the resulting binary.
19411 hardcode_minus_L=$hardcode_minus_L_CXX
19413 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19414 # into the resulting binary.
19415 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19417 # Set to "yes" if building a shared library automatically hardcodes DIR
19418 # into the library and all subsequent libraries and executables linked
19419 # against it.
19420 hardcode_automatic=$hardcode_automatic_CXX
19422 # Set to yes if linker adds runtime paths of dependent libraries
19423 # to runtime path list.
19424 inherit_rpath=$inherit_rpath_CXX
19426 # Whether libtool must link a program against all its dependency libraries.
19427 link_all_deplibs=$link_all_deplibs_CXX
19429 # Fix the shell variable \$srcfile for the compiler.
19430 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19432 # Set to "yes" if exported symbols are required.
19433 always_export_symbols=$always_export_symbols_CXX
19435 # The commands to list exported symbols.
19436 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19438 # Symbols that should not be listed in the preloaded symbols.
19439 exclude_expsyms=$lt_exclude_expsyms_CXX
19441 # Symbols that must always be exported.
19442 include_expsyms=$lt_include_expsyms_CXX
19444 # Commands necessary for linking programs (against libraries) with templates.
19445 prelink_cmds=$lt_prelink_cmds_CXX
19447 # Specify filename containing input files.
19448 file_list_spec=$lt_file_list_spec_CXX
19450 # How to hardcode a shared library path into an executable.
19451 hardcode_action=$hardcode_action_CXX
19453 # The directories searched by this compiler when creating a shared library.
19454 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19456 # Dependencies to place before and after the objects being linked to
19457 # create a shared library.
19458 predep_objects=$lt_predep_objects_CXX
19459 postdep_objects=$lt_postdep_objects_CXX
19460 predeps=$lt_predeps_CXX
19461 postdeps=$lt_postdeps_CXX
19463 # The library search path used internally by the compiler when linking
19464 # a shared library.
19465 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19467 # ### END LIBTOOL TAG CONFIG: CXX
19468 _LT_EOF
19471 esac
19472 done
19473 _ACEOF
19475 cat >>$CONFIG_STATUS <<\_ACEOF
19477 { (exit 0); exit 0; }
19478 _ACEOF
19479 chmod +x $CONFIG_STATUS
19480 ac_clean_files=$ac_clean_files_save
19483 # configure is writing to config.log, and then calls config.status.
19484 # config.status does its own redirection, appending to config.log.
19485 # Unfortunately, on DOS this fails, as config.log is still kept open
19486 # by configure, so config.status won't be able to write to it; its
19487 # output is simply discarded. So we exec the FD to /dev/null,
19488 # effectively closing config.log, so it can be properly (re)opened and
19489 # appended to by config.status. When coming back to configure, we
19490 # need to make the FD available again.
19491 if test "$no_create" != yes; then
19492 ac_cs_success=:
19493 ac_config_status_args=
19494 test "$silent" = yes &&
19495 ac_config_status_args="$ac_config_status_args --quiet"
19496 exec 5>/dev/null
19497 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19498 exec 5>>config.log
19499 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19500 # would make configure fail if this is the last instruction.
19501 $ac_cs_success || { (exit 1); exit 1; }