]> gcc.gnu.org Git - gcc.git/blame - boehm-gc/configure
Backport from upstream Libtool:
[gcc.git] / boehm-gc / configure
CommitLineData
1530be84 1#! /bin/sh
1530be84 2# Guess values for system-dependent variables and create Makefiles.
8ab705be 3# Generated by GNU Autoconf 2.59.
1530be84 4#
8ab705be 5# Copyright (C) 2003 Free Software Foundation, Inc.
1530be84
TT
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
47935194
NN
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
8ab705be 22DUALCASE=1; export DUALCASE # for MKS sh
47935194
NN
23
24# Support unset when possible.
8ab705be 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
47935194
NN
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
8ab705be 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47935194
NN
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
137 /*)
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
152done
153;;
154 esac
155
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 '
166 N
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; }; }
177
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
184}
185
186
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
8ab705be 221 test -d ./-p && rmdir ./-p
47935194
NN
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
8ab705be 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
47935194
NN
229
230# Sed expression to map a string onto a valid variable name.
8ab705be 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
47935194 232
1530be84 233
47935194
NN
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
1cf3d07d
SE
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274$*
275_LT_EOF
276 exit 0
277fi
278
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
282
283if 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
292 fi
293 done
294 fi
295
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
299 :
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'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
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
316 fi
317 done
318 IFS="$lt_save_ifs"
319
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
342 :
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=:
360
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
365 fi
366 prev="$cmd"
367 done
368
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
376 fi
377 fi
378 fi
379 fi
380 fi
381fi
382
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.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
47935194
NN
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398exec 6>&1
399
400#
401# Initializations.
402#
1530be84 403ac_default_prefix=/usr/local
47935194
NN
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
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}
415
416# Identity of this package.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="gcj_mlc.c"
424# Factoring default headers for most tests.
425ac_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"
460
93e92f52 461ac_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'
47935194 462ac_subst_files=''
18c04407 463ac_pwd=`pwd`
1530be84
TT
464
465# Initialize some variables set by options.
47935194
NN
466ac_init_help=
467ac_init_version=false
1530be84
TT
468# The variables have the same names as the options, with
469# dashes changed to underlines.
47935194 470cache_file=/dev/null
1530be84 471exec_prefix=NONE
1530be84 472no_create=
1530be84
TT
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
1530be84
TT
481verbose=
482x_includes=NONE
483x_libraries=NONE
47935194
NN
484
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.
1530be84
TT
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
493datadir='${prefix}/share'
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
497libdir='${exec_prefix}/lib'
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
500infodir='${prefix}/info'
501mandir='${prefix}/man'
502
1530be84
TT
503ac_prev=
504for ac_option
505do
1530be84
TT
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
511 fi
512
47935194 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1530be84
TT
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
47935194 517 case $ac_option in
1530be84
TT
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
47935194 522 bindir=$ac_optarg ;;
1530be84
TT
523
524 -build | --build | --buil | --bui | --bu)
47935194 525 ac_prev=build_alias ;;
1530be84 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
47935194 527 build_alias=$ac_optarg ;;
1530be84
TT
528
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=*)
47935194
NN
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
1530be84
TT
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
47935194 543 datadir=$ac_optarg ;;
1530be84
TT
544
545 -disable-* | --disable-*)
47935194 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1530be84 547 # Reject names that are not valid shell variable names.
47935194
NN
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" ;;
1530be84
TT
553
554 -enable-* | --enable-*)
47935194 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1530be84 556 # Reject names that are not valid shell variable names.
47935194
NN
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"`;;
1530be84
TT
563 *) ac_optarg=yes ;;
564 esac
47935194 565 eval "enable_$ac_feature='$ac_optarg'" ;;
1530be84
TT
566
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=*)
47935194 574 exec_prefix=$ac_optarg ;;
1530be84
TT
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
47935194
NN
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 ;;
1530be84
TT
586
587 -host | --host | --hos | --ho)
47935194 588 ac_prev=host_alias ;;
1530be84 589 -host=* | --host=* | --hos=* | --ho=*)
47935194 590 host_alias=$ac_optarg ;;
1530be84
TT
591
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=*)
47935194 597 includedir=$ac_optarg ;;
1530be84
TT
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
47935194 602 infodir=$ac_optarg ;;
1530be84
TT
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
47935194 607 libdir=$ac_optarg ;;
1530be84
TT
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
47935194 614 libexecdir=$ac_optarg ;;
1530be84
TT
615
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=*)
47935194 623 localstatedir=$ac_optarg ;;
1530be84
TT
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
47935194 628 mandir=$ac_optarg ;;
1530be84
TT
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
47935194 635 | --no-cr | --no-c | -n)
1530be84
TT
636 no_create=yes ;;
637
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 ;;
641
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=*)
47935194 649 oldincludedir=$ac_optarg ;;
1530be84
TT
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
47935194 654 prefix=$ac_optarg ;;
1530be84
TT
655
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=*)
47935194 661 program_prefix=$ac_optarg ;;
1530be84
TT
662
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=*)
47935194 668 program_suffix=$ac_optarg ;;
1530be84
TT
669
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=*)
47935194 685 program_transform_name=$ac_optarg ;;
1530be84
TT
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
47935194 695 sbindir=$ac_optarg ;;
1530be84
TT
696
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=*)
47935194 706 sharedstatedir=$ac_optarg ;;
1530be84
TT
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
47935194 711 site=$ac_optarg ;;
1530be84
TT
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
47935194 716 srcdir=$ac_optarg ;;
1530be84
TT
717
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=*)
47935194 723 sysconfdir=$ac_optarg ;;
1530be84
TT
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
47935194 726 ac_prev=target_alias ;;
1530be84 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
47935194 728 target_alias=$ac_optarg ;;
1530be84
TT
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
47935194
NN
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
1530be84
TT
735
736 -with-* | --with-*)
47935194 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1530be84 738 # Reject names that are not valid shell variable names.
47935194
NN
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; }; }
1530be84 742 ac_package=`echo $ac_package| sed 's/-/_/g'`
47935194
NN
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1530be84
TT
745 *) ac_optarg=yes ;;
746 esac
47935194 747 eval "with_$ac_package='$ac_optarg'" ;;
1530be84
TT
748
749 -without-* | --without-*)
47935194 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1530be84 751 # Reject names that are not valid shell variable names.
47935194
NN
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" ;;
1530be84
TT
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
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=*)
47935194 767 x_includes=$ac_optarg ;;
1530be84
TT
768
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=*)
47935194 774 x_libraries=$ac_optarg ;;
1530be84 775
47935194
NN
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
1530be84
TT
779 ;;
780
47935194
NN
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 ;;
790
1530be84 791 *)
47935194
NN
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}
1530be84
TT
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
47935194
NN
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; }; }
1530be84 806fi
1530be84 807
47935194
NN
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
810do
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
817done
1530be84 818
47935194
NN
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
8ab705be 821 localstatedir libdir includedir oldincludedir infodir mandir
1530be84 822do
47935194
NN
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; }; };;
1530be84
TT
828 esac
829done
830
47935194
NN
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.
834build=$build_alias
835host=$host_alias
836target=$target_alias
837
838# FIXME: To remove some day.
839if 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
846 fi
847fi
1530be84 848
47935194
NN
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
1530be84 853
1530be84
TT
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
47935194
NN
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8ab705be
KC
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
47935194
NN
865echo 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'`
1530be84
TT
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875else
876 ac_srcdir_defaulted=no
877fi
878if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
47935194
NN
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
1530be84 882 else
47935194
NN
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
1530be84
TT
885 fi
886fi
47935194
NN
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; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
47935194
NN
903ac_env_CPP_set=${CPP+set}
904ac_env_CPP_value=$CPP
905ac_cv_env_CPP_set=${CPP+set}
906ac_cv_env_CPP_value=$CPP
1cf3d07d
SE
907ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908ac_env_CPPFLAGS_value=$CPPFLAGS
909ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911ac_env_CXX_set=${CXX+set}
912ac_env_CXX_value=$CXX
913ac_cv_env_CXX_set=${CXX+set}
914ac_cv_env_CXX_value=$CXX
915ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916ac_env_CXXFLAGS_value=$CXXFLAGS
917ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CXXCPP_set=${CXXCPP+set}
924ac_env_CXXCPP_value=$CXXCPP
925ac_cv_env_CXXCPP_set=${CXXCPP+set}
926ac_cv_env_CXXCPP_value=$CXXCPP
47935194
NN
927
928#
929# Report the --help message.
930#
931if 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.
936
937Usage: $0 [OPTION]... [VAR=VALUE]...
938
939To assign environment variables (e.g., CC, CFLAGS...), specify them as
940VAR=VALUE. See below for descriptions of some of the useful variables.
941
942Defaults for the options are specified in brackets.
943
944Configuration:
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 \`..']
954
955_ACEOF
956
957 cat <<_ACEOF
958Installation directories:
959 --prefix=PREFIX install architecture-independent files in PREFIX
8ab705be 960 [$ac_default_prefix]
47935194 961 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8ab705be 962 [PREFIX]
47935194
NN
963
964By default, \`make install' will install all the files in
965\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
966an installation prefix other than \`$ac_default_prefix' using \`--prefix',
967for instance \`--prefix=\$HOME'.
968
969For better control, use the options below.
970
971Fine 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
985
986 cat <<\_ACEOF
987
988Program 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
992
993System 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
998fi
999
1000if test -n "$ac_init_help"; then
1001
1002 cat <<\_ACEOF
1003
1004Optional 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)
bf9a420e
PB
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
1cf3d07d
SE
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]
47935194
NN
1018 --disable-libtool-lock avoid locking (might break parallel builds)
1019 --enable-parallel-mark parallelize marking and free list construction
3c1cbf58 1020 --enable-gc-debug include full support for pointer backtracing etc.
47935194
NN
1021
1022Optional Packages:
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1cf3d07d
SE
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]
47935194
NN
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
1032
1033Some 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
47935194 1042 CPP C preprocessor
1cf3d07d 1043 CXXCPP C++ preprocessor
47935194
NN
1044
1045Use these variables to override the choices made by `configure' or to help
1046it to find libraries and programs with nonstandard names/locations.
1047
1048_ACEOF
1049fi
1050
1051if 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=.
1057
1058if 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'`
1062else
1063 ac_dir_suffix= ac_top_builddir=
1064fi
1065
1066case $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 ;;
1080esac
8ab705be
KC
1081
1082# Do not use `cd foo && pwd` to compute absolute paths, because
1083# the directories may not exist.
1084case `pwd` in
1085.) ac_abs_builddir="$ac_dir";;
1086*)
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;;
1092esac
1093case $ac_abs_builddir in
1094.) ac_abs_top_builddir=${ac_top_builddir}.;;
1095*)
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;;
1101esac
1102case $ac_abs_builddir in
1103.) ac_abs_srcdir=$ac_srcdir;;
1104*)
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;;
1110esac
1111case $ac_abs_builddir in
1112.) ac_abs_top_srcdir=$ac_top_srcdir;;
1113*)
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;;
1119esac
47935194
NN
1120
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 ||
8ab705be 1130 test -f $ac_srcdir/configure.in; then
47935194
NN
1131 echo
1132 $ac_configure --help
1133 else
1134 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1135 fi
5572488d 1136 cd $ac_popdir
47935194
NN
1137 done
1138fi
1139
1140test -n "$ac_init_help" && exit 0
1141if $ac_init_version; then
1142 cat <<\_ACEOF
1143
8ab705be 1144Copyright (C) 2003 Free Software Foundation, Inc.
47935194
NN
1145This configure script is free software; the Free Software Foundation
1146gives unlimited permission to copy, distribute and modify it.
1147_ACEOF
1148 exit 0
1149fi
1150exec 5>config.log
1151cat >&5 <<_ACEOF
1152This file contains any messages produced by compilers while
1153running configure, to aid debugging if configure makes a mistake.
1154
1155It was created by $as_me, which was
8ab705be 1156generated by GNU Autoconf 2.59. Invocation command line was
47935194
NN
1157
1158 $ $0 $@
1159
1160_ACEOF
1161{
1162cat <<_ASUNAME
1163## --------- ##
1164## Platform. ##
1165## --------- ##
1166
1167hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1168uname -m = `(uname -m) 2>/dev/null || echo unknown`
1169uname -r = `(uname -r) 2>/dev/null || echo unknown`
1170uname -s = `(uname -s) 2>/dev/null || echo unknown`
1171uname -v = `(uname -v) 2>/dev/null || echo unknown`
1172
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`
1175
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`
1179hostinfo = `(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`
1183
1184_ASUNAME
1185
1186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1187for as_dir in $PATH
1188do
1189 IFS=$as_save_IFS
1190 test -z "$as_dir" && as_dir=.
1191 echo "PATH: $as_dir"
1192done
1193
1194} >&5
1195
1196cat >&5 <<_ACEOF
1197
1198
1199## ----------- ##
1200## Core tests. ##
1201## ----------- ##
1202
1203_ACEOF
1204
1205
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.
1211ac_configure_args=
1212ac_configure_args0=
1213ac_configure_args1=
1214ac_sep=
1215ac_must_keep_next=false
1216for ac_pass in 1 2
1217do
1218 for ac_arg
1219 do
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'" ;;
1230 2)
1231 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1232 if test $ac_must_keep_next = true; then
8ab705be 1233 ac_must_keep_next=false # Got value, back to normal.
47935194 1234 else
8ab705be
KC
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
1243 ;;
1244 -* ) ac_must_keep_next=true ;;
1245 esac
47935194
NN
1246 fi
1247 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1248 # Get rid of the leading space.
1249 ac_sep=" "
1250 ;;
1251 esac
1252 done
1253done
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; }
1256
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.
1262trap 'exit_status=$?
1263 # Save into config.log some information that might help in debugging.
1264 {
1265 echo
1266
1267 cat <<\_ASBOX
1268## ---------------- ##
1269## Cache variables. ##
1270## ---------------- ##
1271_ASBOX
1272 echo
1273 # The following way of writing the cache mishandles newlines in values,
1274{
1275 (set) 2>&1 |
1276 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1277 *ac_space=\ *)
1278 sed -n \
8ab705be
KC
1279 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
47935194
NN
1281 ;;
1282 *)
1283 sed -n \
8ab705be 1284 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
47935194
NN
1285 ;;
1286 esac;
1287}
1288 echo
1289
1290 cat <<\_ASBOX
1291## ----------------- ##
1292## Output variables. ##
1293## ----------------- ##
1294_ASBOX
1295 echo
1296 for ac_var in $ac_subst_vars
1297 do
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1300 done | sort
1301 echo
1302
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
1311 do
1312 eval ac_val=$`echo $ac_var`
8ab705be 1313 echo "$ac_var='"'"'$ac_val'"'"'"
47935194
NN
1314 done | sort
1315 echo
1316 fi
1317
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
1327 fi
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
1335 ' 0
1336for ac_signal in 1 2 13 15; do
1337 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1338done
1339ac_signal=0
1340
1341# confdefs.h avoids OS command line length limits that DEFS can exceed.
1342rm -rf conftest* confdefs.h
1343# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1344echo >confdefs.h
1345
1346# Predefined preprocessor variables.
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_NAME "$PACKAGE_NAME"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_VERSION "$PACKAGE_VERSION"
1360_ACEOF
1361
1530be84 1362
47935194
NN
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_STRING "$PACKAGE_STRING"
1365_ACEOF
1366
1367
1368cat >>confdefs.h <<_ACEOF
1369#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1370_ACEOF
1371
1372
1373# Let the site file select an alternate cache file if it wants to.
1530be84 1374# Prefer explicitly selected file to automatically selected ones.
30c3de1f
JS
1375if 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"
1530be84
TT
1380 fi
1381fi
1382for ac_site_file in $CONFIG_SITE; do
1383 if test -r "$ac_site_file"; then
47935194
NN
1384 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1385echo "$as_me: loading site script $ac_site_file" >&6;}
1386 sed 's/^/| /' "$ac_site_file" >&5
1530be84
TT
1387 . "$ac_site_file"
1388 fi
1389done
1390
1391if test -r "$cache_file"; then
47935194
NN
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
1396echo "$as_me: loading cache $cache_file" >&6;}
1397 case $cache_file in
1398 [\\/]* | ?:[\\/]* ) . $cache_file;;
1399 *) . ./$cache_file;;
1400 esac
1401 fi
1530be84 1402else
47935194
NN
1403 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1404echo "$as_me: creating cache $cache_file" >&6;}
1405 >$cache_file
1406fi
1407
1408# Check that the precious variables saved in the cache have kept the same
1409# value.
1410ac_cache_corrupted=false
1411for ac_var in `(set) 2>&1 |
8ab705be 1412 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
47935194
NN
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
1420echo "$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
1424echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1425 ac_cache_corrupted=: ;;
1426 ,);;
1427 *)
1428 if test "x$ac_old_val" != "x$ac_new_val"; then
deb984e6
PB
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
47935194 1434echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
deb984e6
PB
1435 ac_cache_corrupted=:
1436 else
1437 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1438echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1439 eval $ac_var=\$ac_old_val
1440 fi
1441 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1442echo "$as_me: former value: \`$ac_old_val'" >&2;}
1443 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1444echo "$as_me: current value: \`$ac_new_val'" >&2;}
47935194
NN
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
1458 fi
1459done
1460if $ac_cache_corrupted; then
18c04407
RW
1461 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1462echo "$as_me: error: in \`$ac_pwd':" >&2;}
47935194
NN
1463 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1464echo "$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
1466echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1467 { (exit 1); exit 1; }; }
1530be84
TT
1468fi
1469
1470ac_ext=c
1530be84 1471ac_cpp='$CPP $CPPFLAGS'
47935194
NN
1472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1474ac_compiler_gnu=$ac_cv_c_compiler_gnu
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
18c04407
RW
1492
1493
1494
1530be84
TT
1495
1496
1497
6706f116
AO
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.
1502ORIGINAL_LD_FOR_MULTILIBS=$LD
1503
bf9a420e 1504# Default to --enable-multilib
b1891e51
NN
1505# Check whether --enable-multilib or --disable-multilib was given.
1506if test "${enable_multilib+set}" = set; then
1507 enableval="$enable_multilib"
bf9a420e 1508 case "$enableval" in
b1891e51
NN
1509 yes) multilib=yes ;;
1510 no) multilib=no ;;
bf9a420e
PB
1511 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1512echo "$as_me: error: bad value $enableval for multilib option" >&2;}
47935194 1513 { (exit 1); exit 1; }; } ;;
b1891e51
NN
1514 esac
1515else
1516 multilib=yes
47935194 1517fi;
b1891e51 1518
bf9a420e
PB
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.
1522
1523if test "$srcdir" = "."; then
1524 if test "$with_target_subdir" != "."; then
1525 multi_basedir="$srcdir/$with_multisrctop../.."
b1891e51 1526 else
bf9a420e 1527 multi_basedir="$srcdir/$with_multisrctop.."
b1891e51
NN
1528 fi
1529else
bf9a420e 1530 multi_basedir="$srcdir/.."
b1891e51
NN
1531fi
1532
b1891e51 1533
8a489465
JH
1534# Even if the default multilib is not a cross compilation,
1535# it may be that some of the other multilibs are.
1536if test $cross_compiling = no && test $multilib = yes \
1537 && test "x${with_multisubdir}" != x ; then
1538 cross_compiling=maybe
1539fi
1540
bf9a420e
PB
1541 ac_config_commands="$ac_config_commands default-1"
1542
1543
1544ac_aux_dir=
1545for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
b1891e51
NN
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
47935194
NN
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
1558 fi
b1891e51
NN
1559done
1560if test -z "$ac_aux_dir"; then
bf9a420e
PB
1561 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
47935194 1563 { (exit 1); exit 1; }; }
b1891e51 1564fi
47935194
NN
1565ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
b1891e51 1568
b1891e51 1569# Make sure we can run config.sub.
47935194
NN
1570$ac_config_sub sun4 >/dev/null 2>&1 ||
1571 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1573 { (exit 1); exit 1; }; }
1574
1575echo "$as_me:$LINENO: checking build system type" >&5
1576echo $ECHO_N "checking build system type... $ECHO_C" >&6
1577if test "${ac_cv_build+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579else
1580 ac_cv_build_alias=$build_alias
1581test -z "$ac_cv_build_alias" &&
1582 ac_cv_build_alias=`$ac_config_guess`
1583test -z "$ac_cv_build_alias" &&
1584 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586 { (exit 1); exit 1; }; }
1587ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1590 { (exit 1); exit 1; }; }
1591
1592fi
1593echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594echo "${ECHO_T}$ac_cv_build" >&6
1595build=$ac_cv_build
1596build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1599
1600
1601echo "$as_me:$LINENO: checking host system type" >&5
1602echo $ECHO_N "checking host system type... $ECHO_C" >&6
1603if test "${ac_cv_host+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605else
1606 ac_cv_host_alias=$host_alias
1607test -z "$ac_cv_host_alias" &&
1608 ac_cv_host_alias=$ac_cv_build_alias
1609ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1611echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1613
1614fi
1615echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1616echo "${ECHO_T}$ac_cv_host" >&6
1617host=$ac_cv_host
1618host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623echo "$as_me:$LINENO: checking target system type" >&5
1624echo $ECHO_N "checking target system type... $ECHO_C" >&6
1625if test "${ac_cv_target+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628 ac_cv_target_alias=$target_alias
1629test "x$ac_cv_target_alias" = "x" &&
1630 ac_cv_target_alias=$ac_cv_host_alias
1631ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1632 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1633echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1634 { (exit 1); exit 1; }; }
b1891e51 1635
47935194
NN
1636fi
1637echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1638echo "${ECHO_T}$ac_cv_target" >&6
1639target=$ac_cv_target
1640target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
b1891e51 1643
b1891e51 1644
47935194
NN
1645# The aliases save the names the user supplied, while $host etc.
1646# will get canonicalized.
1647test -n "$target_alias" &&
b1891e51
NN
1648 test "$program_prefix$program_suffix$program_transform_name" = \
1649 NONENONEs,x,x, &&
1650 program_prefix=${target_alias}-
1651
d38d6003 1652# Get the 'noncanonical' system names.
d38d6003
NN
1653 case ${build_alias} in
1654 "") build_noncanonical=${build} ;;
1655 *) build_noncanonical=${build_alias} ;;
1656esac
1657
1658 case ${host_alias} in
1659 "") host_noncanonical=${build_noncanonical} ;;
1660 *) host_noncanonical=${host_alias} ;;
1661esac
1662
1663 case ${target_alias} in
1664 "") target_noncanonical=${host_noncanonical} ;;
1665 *) target_noncanonical=${target_alias} ;;
1666esac
1667
1668
13b040f1
NN
1669
1670
b1891e51
NN
1671# This works around an automake problem.
1672mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1673
1674
4109fe85 1675am__api_version="1.9"
1530be84
TT
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
47935194 1683# AmigaOS /C/install, which installs bootblocks on floppy discs
1530be84
TT
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"
8ab705be 1687# OS/2's system install, which has a completely different semantic
1530be84 1688# ./install, which can be erroneously created by make from ./install.sh.
38d24731 1689# Reject install programs that cannot install multiple files.
47935194
NN
1690echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1691echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1530be84 1692if test -z "$INSTALL"; then
47935194
NN
1693if test "${ac_cv_path_install+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 1695else
47935194
NN
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697for as_dir in $PATH
1698do
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 # Account for people who put trailing slashes in PATH elements.
1702case $as_dir/ in
1703 ./ | .// | /cC/* | \
1704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8ab705be 1705 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47935194
NN
1706 /usr/ucb/* ) ;;
1707 *)
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
8ab705be
KC
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.
1717 :
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.
1721 :
1722 else
38d24731
RW
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
1734 fi
8ab705be
KC
1735 fi
1736 fi
1530be84 1737 done
47935194
NN
1738 done
1739 ;;
1740esac
1741done
1742
38d24731 1743rm -rf conftest.one conftest.two conftest.dir
1530be84
TT
1744
1745fi
1746 if test "${ac_cv_path_install+set}" = set; then
47935194 1747 INSTALL=$ac_cv_path_install
1530be84 1748 else
38d24731
RW
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
1530be84 1751 # break other packages using the cache if that directory is
38d24731 1752 # removed, or if the value is a relative name.
47935194 1753 INSTALL=$ac_install_sh
1530be84
TT
1754 fi
1755fi
47935194
NN
1756echo "$as_me:$LINENO: result: $INSTALL" >&5
1757echo "${ECHO_T}$INSTALL" >&6
1530be84
TT
1758
1759# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1760# It thinks the first close brace ends the variable substitution.
1761test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1762
47935194 1763test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1530be84
TT
1764
1765test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1766
47935194
NN
1767echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1768echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1530be84
TT
1769# Just in case
1770sleep 1
bf9a420e 1771echo timestamp > conftest.file
1530be84
TT
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).
1777if (
bf9a420e 1778 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1530be84
TT
1779 if test "$*" = "X"; then
1780 # -L didn't work.
bf9a420e 1781 set X `ls -t $srcdir/configure conftest.file`
1530be84 1782 fi
bf9a420e
PB
1783 rm -f conftest.file
1784 if test "$*" != "X $srcdir/configure conftest.file" \
1785 && test "$*" != "X conftest.file $srcdir/configure"; then
1530be84
TT
1786
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".
47935194
NN
1791 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1792alias in your environment" >&5
1793echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1794alias in your environment" >&2;}
1795 { (exit 1); exit 1; }; }
1530be84
TT
1796 fi
1797
bf9a420e 1798 test "$2" = conftest.file
1530be84
TT
1799 )
1800then
1801 # Ok.
1802 :
1803else
47935194
NN
1804 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1805Check your system clock" >&5
1806echo "$as_me: error: newly created file is older than distributed files!
1807Check your system clock" >&2;}
1808 { (exit 1); exit 1; }; }
1530be84 1809fi
47935194
NN
1810echo "$as_me:$LINENO: result: yes" >&5
1811echo "${ECHO_T}yes" >&6
1530be84 1812test "$program_prefix" != NONE &&
47935194 1813 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1530be84
TT
1814# Use a double $ so make ignores it.
1815test "$program_suffix" != NONE &&
47935194
NN
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.
1819cat <<\_ACEOF >conftest.sed
1820s/[\\$]/&&/g;s/;s,x,x,$//
1821_ACEOF
1822program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1823rm conftest.sed
1824
bf9a420e
PB
1825# expand $ac_aux_dir to an absolute path
1826am_aux_dir=`cd $ac_aux_dir && pwd`
1827
1828test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1829# Use eval to expand $SHELL
1830if eval "$MISSING --run true"; then
1831 am_missing_run="$MISSING --run "
1832else
1833 am_missing_run=
1834 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1835echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1836fi
1837
1838if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4109fe85
BM
1839 # We used to keeping the `.' as first argument, in order to
1840 # allow $(mkdir_p) to be used without argument. As in
bf9a420e 1841 # $(mkdir_p) $(somedir)
4109fe85
BM
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 --'
bf9a420e
PB
1854else
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;
1860 do
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'
1868 fi
1869fi
1870
1871for ac_prog in gawk mawk nawk awk
1872do
1873 # Extract the first word of "$ac_prog", so it can be a program name with args.
1874set dummy $ac_prog; ac_word=$2
1875echo "$as_me:$LINENO: checking for $ac_word" >&5
1876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877if test "${ac_cv_prog_AWK+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879else
1880 if test -n "$AWK"; then
1881 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1882else
1883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884for as_dir in $PATH
1885do
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
1893 fi
1894done
1895done
1896
1897fi
1898fi
1899AWK=$ac_cv_prog_AWK
1900if test -n "$AWK"; then
1901 echo "$as_me:$LINENO: result: $AWK" >&5
1902echo "${ECHO_T}$AWK" >&6
1903else
1904 echo "$as_me:$LINENO: result: no" >&5
1905echo "${ECHO_T}no" >&6
1906fi
1907
1908 test -n "$AWK" && break
1909done
1910
47935194
NN
1911echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1912echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8ab705be 1913set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
47935194
NN
1914if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 1916else
47935194 1917 cat >conftest.make <<\_ACEOF
1530be84 1918all:
47935194
NN
1919 @echo 'ac_maketemp="$(MAKE)"'
1920_ACEOF
1530be84 1921# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47935194 1922eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1530be84
TT
1923if test -n "$ac_maketemp"; then
1924 eval ac_cv_prog_make_${ac_make}_set=yes
1925else
1926 eval ac_cv_prog_make_${ac_make}_set=no
1927fi
47935194 1928rm -f conftest.make
1530be84
TT
1929fi
1930if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
47935194
NN
1931 echo "$as_me:$LINENO: result: yes" >&5
1932echo "${ECHO_T}yes" >&6
1530be84
TT
1933 SET_MAKE=
1934else
47935194
NN
1935 echo "$as_me:$LINENO: result: no" >&5
1936echo "${ECHO_T}no" >&6
1530be84
TT
1937 SET_MAKE="MAKE=${MAKE-make}"
1938fi
1939
bf9a420e
PB
1940rm -rf .tst 2>/dev/null
1941mkdir .tst 2>/dev/null
1942if test -d .tst; then
1943 am__leading_dot=.
1944else
1945 am__leading_dot=_
1946fi
1947rmdir .tst 2>/dev/null
1530be84 1948
bf9a420e
PB
1949# test to see if srcdir already configured
1950if test "`cd $srcdir && pwd`" != "`pwd`" &&
1951 test -f $srcdir/config.status; then
47935194
NN
1952 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1953echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1954 { (exit 1); exit 1; }; }
1530be84
TT
1955fi
1956
bf9a420e
PB
1957# test whether we have cygpath
1958if 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
1963 fi
1964fi
1965
1966
1967# Define the identity of the package.
1968 PACKAGE=gc
54f28c21 1969 VERSION=6.6
bf9a420e
PB
1970
1971
1972# Some tools Automake needs.
1973
1974ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1975
1530be84 1976
bf9a420e 1977AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1530be84 1978
bf9a420e
PB
1979
1980AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1981
1982
1983AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1984
1985
1986MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1987
bf9a420e
PB
1988install_sh=${install_sh-"$am_aux_dir/install-sh"}
1989
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.
1994if 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.
1997set dummy ${ac_tool_prefix}strip; ac_word=$2
1998echo "$as_me:$LINENO: checking for $ac_word" >&5
1999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000if test "${ac_cv_prog_STRIP+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 2002else
bf9a420e
PB
2003 if test -n "$STRIP"; then
2004 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2005else
2006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007for as_dir in $PATH
2008do
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
2016 fi
2017done
2018done
1530be84 2019
bf9a420e
PB
2020fi
2021fi
2022STRIP=$ac_cv_prog_STRIP
2023if test -n "$STRIP"; then
2024 echo "$as_me:$LINENO: result: $STRIP" >&5
2025echo "${ECHO_T}$STRIP" >&6
1530be84 2026else
bf9a420e
PB
2027 echo "$as_me:$LINENO: result: no" >&5
2028echo "${ECHO_T}no" >&6
1530be84
TT
2029fi
2030
1530be84 2031fi
bf9a420e
PB
2032if 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.
2035set dummy strip; ac_word=$2
2036echo "$as_me:$LINENO: checking for $ac_word" >&5
2037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040else
2041 if test -n "$ac_ct_STRIP"; then
2042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2043else
2044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045for as_dir in $PATH
2046do
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
2054 fi
2055done
2056done
1530be84 2057
bf9a420e
PB
2058 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2059fi
2060fi
2061ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2062if test -n "$ac_ct_STRIP"; then
2063 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2064echo "${ECHO_T}$ac_ct_STRIP" >&6
1530be84 2065else
bf9a420e
PB
2066 echo "$as_me:$LINENO: result: no" >&5
2067echo "${ECHO_T}no" >&6
1530be84
TT
2068fi
2069
bf9a420e 2070 STRIP=$ac_ct_STRIP
1530be84 2071else
bf9a420e
PB
2072 STRIP="$ac_cv_prog_STRIP"
2073fi
2074
1530be84 2075fi
bf9a420e
PB
2076INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2077
2078# We need awk for the "check" target. The system "awk" is bad on
2079# some platforms.
4109fe85
BM
2080# Always define AMTAR for backward compatibility.
2081
2082AMTAR=${AMTAR-"${am_missing_run}tar"}
2083
2084am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2085
2086
bf9a420e 2087
1530be84
TT
2088
2089
2090
47935194 2091# The autoconf 2.5x version of the no-executables hack.
1530be84
TT
2092
2093
e22db4bf
NN
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.
2097
2098
2099
47935194
NN
2100ac_ext=c
2101ac_cpp='$CPP $CPPFLAGS'
2102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105if 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.
2107set dummy ${ac_tool_prefix}gcc; ac_word=$2
2108echo "$as_me:$LINENO: checking for $ac_word" >&5
2109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110if test "${ac_cv_prog_CC+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2112else
2113 if test -n "$CC"; then
2114 ac_cv_prog_CC="$CC" # Let the user override the test.
2115else
2116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117for as_dir in $PATH
2118do
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
2126 fi
2127done
2128done
1530be84 2129
47935194
NN
2130fi
2131fi
2132CC=$ac_cv_prog_CC
2133if test -n "$CC"; then
2134 echo "$as_me:$LINENO: result: $CC" >&5
2135echo "${ECHO_T}$CC" >&6
2136else
2137 echo "$as_me:$LINENO: result: no" >&5
2138echo "${ECHO_T}no" >&6
2139fi
54ce7452 2140
47935194
NN
2141fi
2142if 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.
1530be84 2145set dummy gcc; ac_word=$2
47935194
NN
2146echo "$as_me:$LINENO: checking for $ac_word" >&5
2147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2148if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150else
2151 if test -n "$ac_ct_CC"; then
2152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2153else
2154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155for as_dir in $PATH
2156do
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
2164 fi
2165done
2166done
2167
2168fi
2169fi
2170ac_ct_CC=$ac_cv_prog_ac_ct_CC
2171if test -n "$ac_ct_CC"; then
2172 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2173echo "${ECHO_T}$ac_ct_CC" >&6
2174else
2175 echo "$as_me:$LINENO: result: no" >&5
2176echo "${ECHO_T}no" >&6
2177fi
2178
2179 CC=$ac_ct_CC
2180else
2181 CC="$ac_cv_prog_CC"
2182fi
2183
2184if 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.
2187set dummy ${ac_tool_prefix}cc; ac_word=$2
2188echo "$as_me:$LINENO: checking for $ac_word" >&5
2189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2190if test "${ac_cv_prog_CC+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84
TT
2192else
2193 if test -n "$CC"; then
2194 ac_cv_prog_CC="$CC" # Let the user override the test.
2195else
47935194
NN
2196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197for as_dir in $PATH
2198do
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
2206 fi
2207done
2208done
2209
1530be84
TT
2210fi
2211fi
47935194 2212CC=$ac_cv_prog_CC
1530be84 2213if test -n "$CC"; then
47935194
NN
2214 echo "$as_me:$LINENO: result: $CC" >&5
2215echo "${ECHO_T}$CC" >&6
1530be84 2216else
47935194
NN
2217 echo "$as_me:$LINENO: result: no" >&5
2218echo "${ECHO_T}no" >&6
1530be84
TT
2219fi
2220
47935194
NN
2221fi
2222if 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.
2225set dummy cc; ac_word=$2
2226echo "$as_me:$LINENO: checking for $ac_word" >&5
2227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2230else
2231 if test -n "$ac_ct_CC"; then
2232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2233else
2234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235for as_dir in $PATH
2236do
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
2244 fi
2245done
2246done
2247
2248fi
2249fi
2250ac_ct_CC=$ac_cv_prog_ac_ct_CC
2251if test -n "$ac_ct_CC"; then
2252 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2253echo "${ECHO_T}$ac_ct_CC" >&6
2254else
2255 echo "$as_me:$LINENO: result: no" >&5
2256echo "${ECHO_T}no" >&6
2257fi
2258
2259 CC=$ac_ct_CC
2260else
2261 CC="$ac_cv_prog_CC"
2262fi
2263
2264fi
1530be84
TT
2265if test -z "$CC"; then
2266 # Extract the first word of "cc", so it can be a program name with args.
2267set dummy cc; ac_word=$2
47935194
NN
2268echo "$as_me:$LINENO: checking for $ac_word" >&5
2269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270if test "${ac_cv_prog_CC+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84
TT
2272else
2273 if test -n "$CC"; then
2274 ac_cv_prog_CC="$CC" # Let the user override the test.
2275else
1530be84 2276 ac_prog_rejected=no
47935194
NN
2277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278for as_dir in $PATH
2279do
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
2287 fi
2288 ac_cv_prog_CC="cc"
2289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290 break 2
2291 fi
2292done
2293done
2294
1530be84
TT
2295if 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
47935194 2299 if test $# != 0; then
1530be84
TT
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
47935194 2304 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1530be84
TT
2305 fi
2306fi
2307fi
2308fi
47935194 2309CC=$ac_cv_prog_CC
1530be84 2310if test -n "$CC"; then
47935194
NN
2311 echo "$as_me:$LINENO: result: $CC" >&5
2312echo "${ECHO_T}$CC" >&6
1530be84 2313else
47935194
NN
2314 echo "$as_me:$LINENO: result: no" >&5
2315echo "${ECHO_T}no" >&6
1530be84
TT
2316fi
2317
1530be84 2318fi
47935194
NN
2319if test -z "$CC"; then
2320 if test -n "$ac_tool_prefix"; then
2321 for ac_prog in cl
2322 do
2323 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2324set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2325echo "$as_me:$LINENO: checking for $ac_word" >&5
2326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2327if test "${ac_cv_prog_CC+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 2329else
47935194
NN
2330 if test -n "$CC"; then
2331 ac_cv_prog_CC="$CC" # Let the user override the test.
1530be84 2332else
47935194
NN
2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334for as_dir in $PATH
2335do
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
2343 fi
2344done
2345done
1530be84 2346
1530be84 2347fi
1530be84 2348fi
47935194
NN
2349CC=$ac_cv_prog_CC
2350if test -n "$CC"; then
2351 echo "$as_me:$LINENO: result: $CC" >&5
2352echo "${ECHO_T}$CC" >&6
1530be84 2353else
47935194
NN
2354 echo "$as_me:$LINENO: result: no" >&5
2355echo "${ECHO_T}no" >&6
1530be84
TT
2356fi
2357
47935194
NN
2358 test -n "$CC" && break
2359 done
2360fi
2361if test -z "$CC"; then
2362 ac_ct_CC=$CC
2363 for ac_prog in cl
1530be84 2364do
47935194 2365 # Extract the first word of "$ac_prog", so it can be a program name with args.
1530be84 2366set dummy $ac_prog; ac_word=$2
47935194
NN
2367echo "$as_me:$LINENO: checking for $ac_word" >&5
2368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2369if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 2371else
47935194
NN
2372 if test -n "$ac_ct_CC"; then
2373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1530be84 2374else
47935194
NN
2375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376for as_dir in $PATH
2377do
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
2385 fi
2386done
2387done
2388
1530be84
TT
2389fi
2390fi
47935194
NN
2391ac_ct_CC=$ac_cv_prog_ac_ct_CC
2392if test -n "$ac_ct_CC"; then
2393 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2394echo "${ECHO_T}$ac_ct_CC" >&6
1530be84 2395else
47935194
NN
2396 echo "$as_me:$LINENO: result: no" >&5
2397echo "${ECHO_T}no" >&6
1530be84
TT
2398fi
2399
47935194 2400 test -n "$ac_ct_CC" && break
1530be84 2401done
1530be84 2402
47935194
NN
2403 CC=$ac_ct_CC
2404fi
2405
2406fi
2407
2408
18c04407
RW
2409test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2410echo "$as_me: error: in \`$ac_pwd':" >&2;}
2411{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
47935194
NN
2412See \`config.log' for more details." >&5
2413echo "$as_me: error: no acceptable C compiler found in \$PATH
2414See \`config.log' for more details." >&2;}
18c04407 2415 { (exit 1); exit 1; }; }; }
47935194
NN
2416
2417# Provide some information about the compiler.
2418echo "$as_me:$LINENO:" \
2419 "checking for C compiler version" >&5
2420ac_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); }
2436
2437cat >conftest.$ac_ext <<_ACEOF
2438/* confdefs.h. */
2439_ACEOF
2440cat confdefs.h >>conftest.$ac_ext
2441cat >>conftest.$ac_ext <<_ACEOF
2442/* end confdefs.h. */
2443
2444int
2445main ()
2446{
2447
2448 ;
2449 return 0;
2450}
2451_ACEOF
2452# FIXME: Cleanup?
2453if { (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
1530be84 2459else
47935194 2460 gcc_no_link=yes
1530be84 2461fi
1530be84 2462
47935194
NN
2463if 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=
1530be84 2469else
47935194
NN
2470 cat >conftest.$ac_ext <<_ACEOF
2471/* confdefs.h. */
2472_ACEOF
2473cat confdefs.h >>conftest.$ac_ext
2474cat >>conftest.$ac_ext <<_ACEOF
2475/* end confdefs.h. */
2476
2477int
2478main ()
2479{
2480
2481 ;
2482 return 0;
2483}
2484_ACEOF
2485ac_clean_files_save=$ac_clean_files
2486ac_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.
8ab705be
KC
2490echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2491echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
47935194
NN
2492ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2493if { (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.
2501
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.
2504ac_cv_exeext=
2505# b.out is created by i960 compilers.
2506for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2507do
2508 test -f "$ac_file" || continue
2509 case $ac_file in
2510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
8ab705be 2511 ;;
47935194 2512 conftest.$ac_ext )
8ab705be
KC
2513 # This is the source file.
2514 ;;
47935194 2515 [ab].out )
8ab705be
KC
2516 # We found the default executable, but exeext='' is most
2517 # certainly right.
2518 break;;
47935194 2519 *.* )
8ab705be
KC
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;;
47935194 2526 * )
8ab705be 2527 break;;
47935194
NN
2528 esac
2529done
1530be84 2530else
47935194
NN
2531 echo "$as_me: failed program was:" >&5
2532sed 's/^/| /' conftest.$ac_ext >&5
2533
18c04407
RW
2534{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2535echo "$as_me: error: in \`$ac_pwd':" >&2;}
47935194
NN
2536{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2537See \`config.log' for more details." >&5
2538echo "$as_me: error: C compiler cannot create executables
2539See \`config.log' for more details." >&2;}
18c04407 2540 { (exit 77); exit 77; }; }; }
47935194
NN
2541fi
2542
2543ac_exeext=$ac_cv_exeext
2544echo "$as_me:$LINENO: result: $ac_file" >&5
2545echo "${ECHO_T}$ac_file" >&6
2546
2547# Check the compiler produces executables we can run. If not, either
2548# the compiler is broken, or we cross compile.
2549echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2550echo $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.
2553if 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
1530be84 2561 else
47935194
NN
2562 if test "$cross_compiling" = maybe; then
2563 cross_compiling=yes
2564 else
18c04407
RW
2565 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2566echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
47935194
NN
2568If you meant to cross compile, use \`--host'.
2569See \`config.log' for more details." >&5
2570echo "$as_me: error: cannot run C compiled programs.
2571If you meant to cross compile, use \`--host'.
2572See \`config.log' for more details." >&2;}
18c04407 2573 { (exit 1); exit 1; }; }; }
47935194 2574 fi
1530be84 2575 fi
47935194
NN
2576fi
2577echo "$as_me:$LINENO: result: yes" >&5
2578echo "${ECHO_T}yes" >&6
2579
2580rm -f a.out a.exe conftest$ac_cv_exeext b.out
2581ac_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.
2584echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2585echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2586echo "$as_me:$LINENO: result: $cross_compiling" >&5
2587echo "${ECHO_T}$cross_compiling" >&6
2588
2589echo "$as_me:$LINENO: checking for suffix of executables" >&5
2590echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2591if { (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'.
2600for 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" : '[^.]*\(\..*\)'`
8ab705be
KC
2605 export ac_cv_exeext
2606 break;;
47935194
NN
2607 * ) break;;
2608 esac
2609done
1530be84 2610else
18c04407
RW
2611 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2612echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
47935194
NN
2614See \`config.log' for more details." >&5
2615echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2616See \`config.log' for more details." >&2;}
18c04407 2617 { (exit 1); exit 1; }; }; }
1530be84
TT
2618fi
2619
47935194
NN
2620rm -f conftest$ac_cv_exeext
2621echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2622echo "${ECHO_T}$ac_cv_exeext" >&6
1530be84 2623
47935194
NN
2624rm -f conftest.$ac_ext
2625EXEEXT=$ac_cv_exeext
2626ac_exeext=$EXEEXT
2627fi
2628echo "$as_me:$LINENO: checking for suffix of object files" >&5
2629echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2630if test "${ac_cv_objext+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 2632else
47935194
NN
2633 cat >conftest.$ac_ext <<_ACEOF
2634/* confdefs.h. */
2635_ACEOF
2636cat confdefs.h >>conftest.$ac_ext
2637cat >>conftest.$ac_ext <<_ACEOF
2638/* end confdefs.h. */
2639
2640int
2641main ()
2642{
2643
2644 ;
2645 return 0;
2646}
2647_ACEOF
2648rm -f conftest.o conftest.obj
2649if { (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
2660done
1530be84 2661else
47935194
NN
2662 echo "$as_me: failed program was:" >&5
2663sed 's/^/| /' conftest.$ac_ext >&5
2664
18c04407
RW
2665{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2666echo "$as_me: error: in \`$ac_pwd':" >&2;}
47935194
NN
2667{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2668See \`config.log' for more details." >&5
2669echo "$as_me: error: cannot compute suffix of object files: cannot compile
2670See \`config.log' for more details." >&2;}
18c04407 2671 { (exit 1); exit 1; }; }; }
1530be84 2672fi
47935194
NN
2673
2674rm -f conftest.$ac_cv_objext conftest.$ac_ext
1530be84 2675fi
47935194
NN
2676echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2677echo "${ECHO_T}$ac_cv_objext" >&6
2678OBJEXT=$ac_cv_objext
2679ac_objext=$OBJEXT
2680echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2681echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2682if test "${ac_cv_c_compiler_gnu+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 2684else
47935194
NN
2685 cat >conftest.$ac_ext <<_ACEOF
2686/* confdefs.h. */
2687_ACEOF
2688cat confdefs.h >>conftest.$ac_ext
2689cat >>conftest.$ac_ext <<_ACEOF
2690/* end confdefs.h. */
2691
2692int
2693main ()
2694{
2695#ifndef __GNUC__
2696 choke me
2697#endif
1530be84 2698
47935194
NN
2699 ;
2700 return 0;
2701}
2702_ACEOF
2703rm -f conftest.$ac_objext
2704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 2705 (eval $ac_compile) 2>conftest.er1
47935194 2706 ac_status=$?
8ab705be
KC
2707 grep -v '^ *+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
47935194
NN
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
5572488d
KC
2712 { ac_try='test -z "$ac_c_werror_flag"
2713 || test ! -s conftest.err'
8ab705be
KC
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'
47935194
NN
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
2726else
2727 echo "$as_me: failed program was:" >&5
2728sed 's/^/| /' conftest.$ac_ext >&5
1530be84 2729
47935194
NN
2730ac_compiler_gnu=no
2731fi
8ab705be 2732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194 2733ac_cv_c_compiler_gnu=$ac_compiler_gnu
1530be84 2734
47935194
NN
2735fi
2736echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2737echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2738GCC=`test $ac_compiler_gnu = yes && echo yes`
2739ac_test_CFLAGS=${CFLAGS+set}
2740ac_save_CFLAGS=$CFLAGS
2741CFLAGS="-g"
2742echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2743echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2744if test "${ac_cv_prog_cc_g+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 2746else
47935194
NN
2747 cat >conftest.$ac_ext <<_ACEOF
2748/* confdefs.h. */
2749_ACEOF
2750cat confdefs.h >>conftest.$ac_ext
2751cat >>conftest.$ac_ext <<_ACEOF
2752/* end confdefs.h. */
2753
2754int
2755main ()
2756{
2757
2758 ;
2759 return 0;
2760}
2761_ACEOF
2762rm -f conftest.$ac_objext
2763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 2764 (eval $ac_compile) 2>conftest.er1
47935194 2765 ac_status=$?
8ab705be
KC
2766 grep -v '^ *+' conftest.er1 >conftest.err
2767 rm -f conftest.er1
2768 cat conftest.err >&5
47935194
NN
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } &&
5572488d
KC
2771 { ac_try='test -z "$ac_c_werror_flag"
2772 || test ! -s conftest.err'
8ab705be
KC
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'
47935194
NN
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
1530be84 2785else
47935194
NN
2786 echo "$as_me: failed program was:" >&5
2787sed 's/^/| /' conftest.$ac_ext >&5
2788
2789ac_cv_prog_cc_g=no
2790fi
8ab705be 2791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
2792fi
2793echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2794echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2795if test "$ac_test_CFLAGS" = set; then
2796 CFLAGS=$ac_save_CFLAGS
2797elif test $ac_cv_prog_cc_g = yes; then
2798 if test "$GCC" = yes; then
2799 CFLAGS="-g -O2"
2800 else
2801 CFLAGS="-g"
2802 fi
2803else
2804 if test "$GCC" = yes; then
2805 CFLAGS="-O2"
2806 else
2807 CFLAGS=
2808 fi
2809fi
2810echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2811echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2812if test "${ac_cv_prog_cc_stdc+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2814else
2815 ac_cv_prog_cc_stdc=no
2816ac_save_CC=$CC
2817cat >conftest.$ac_ext <<_ACEOF
2818/* confdefs.h. */
2819_ACEOF
2820cat confdefs.h >>conftest.$ac_ext
2821cat >>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. */
2828struct buf { int x; };
2829FILE * (*rcsopen) (struct buf *, struct stat *, int);
2830static char *e (p, i)
2831 char **p;
2832 int i;
2833{
2834 return p[i];
2835}
2836static char *f (char * (*g) (char **, int), char **p, ...)
2837{
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;
2844}
8ab705be
KC
2845
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. */
2853int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2854
47935194
NN
2855int test (int i, double x);
2856struct s1 {int (*f) (int a);};
2857struct s2 {int (*f) (double a);};
2858int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2859int argc;
2860char **argv;
2861int
2862main ()
2863{
2864return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2865 ;
2866 return 0;
2867}
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__
2876for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2877do
2878 CC="$ac_save_CC $ac_arg"
2879 rm -f conftest.$ac_objext
2880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 2881 (eval $ac_compile) 2>conftest.er1
47935194 2882 ac_status=$?
8ab705be
KC
2883 grep -v '^ *+' conftest.er1 >conftest.err
2884 rm -f conftest.er1
2885 cat conftest.err >&5
47935194
NN
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } &&
5572488d
KC
2888 { ac_try='test -z "$ac_c_werror_flag"
2889 || test ! -s conftest.err'
8ab705be
KC
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'
47935194
NN
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
2902break
2903else
2904 echo "$as_me: failed program was:" >&5
2905sed 's/^/| /' conftest.$ac_ext >&5
2906
2907fi
8ab705be 2908rm -f conftest.err conftest.$ac_objext
47935194
NN
2909done
2910rm -f conftest.$ac_ext conftest.$ac_objext
2911CC=$ac_save_CC
2912
2913fi
2914
2915case "x$ac_cv_prog_cc_stdc" in
2916 x|xno)
2917 echo "$as_me:$LINENO: result: none needed" >&5
2918echo "${ECHO_T}none needed" >&6 ;;
2919 *)
2920 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2921echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2922 CC="$CC $ac_cv_prog_cc_stdc" ;;
2923esac
2924
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.
2929cat >conftest.$ac_ext <<_ACEOF
2930#ifndef __cplusplus
2931 choke me
2932#endif
2933_ACEOF
2934rm -f conftest.$ac_objext
2935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 2936 (eval $ac_compile) 2>conftest.er1
47935194 2937 ac_status=$?
8ab705be
KC
2938 grep -v '^ *+' conftest.er1 >conftest.err
2939 rm -f conftest.er1
2940 cat conftest.err >&5
47935194
NN
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } &&
5572488d
KC
2943 { ac_try='test -z "$ac_c_werror_flag"
2944 || test ! -s conftest.err'
8ab705be
KC
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'
47935194
NN
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);'
2963do
2964 cat >conftest.$ac_ext <<_ACEOF
2965/* confdefs.h. */
2966_ACEOF
2967cat confdefs.h >>conftest.$ac_ext
2968cat >>conftest.$ac_ext <<_ACEOF
2969/* end confdefs.h. */
2970$ac_declaration
2971#include <stdlib.h>
2972int
2973main ()
2974{
2975exit (42);
2976 ;
2977 return 0;
2978}
2979_ACEOF
2980rm -f conftest.$ac_objext
2981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 2982 (eval $ac_compile) 2>conftest.er1
47935194 2983 ac_status=$?
8ab705be
KC
2984 grep -v '^ *+' conftest.er1 >conftest.err
2985 rm -f conftest.er1
2986 cat conftest.err >&5
47935194
NN
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } &&
5572488d
KC
2989 { ac_try='test -z "$ac_c_werror_flag"
2990 || test ! -s conftest.err'
8ab705be
KC
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'
47935194
NN
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
3002 :
3003else
3004 echo "$as_me: failed program was:" >&5
3005sed 's/^/| /' conftest.$ac_ext >&5
3006
3007continue
3008fi
8ab705be 3009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
3010 cat >conftest.$ac_ext <<_ACEOF
3011/* confdefs.h. */
3012_ACEOF
3013cat confdefs.h >>conftest.$ac_ext
3014cat >>conftest.$ac_ext <<_ACEOF
3015/* end confdefs.h. */
3016$ac_declaration
3017int
3018main ()
3019{
3020exit (42);
3021 ;
3022 return 0;
3023}
3024_ACEOF
3025rm -f conftest.$ac_objext
3026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 3027 (eval $ac_compile) 2>conftest.er1
47935194 3028 ac_status=$?
8ab705be
KC
3029 grep -v '^ *+' conftest.er1 >conftest.err
3030 rm -f conftest.er1
3031 cat conftest.err >&5
47935194
NN
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } &&
5572488d
KC
3034 { ac_try='test -z "$ac_c_werror_flag"
3035 || test ! -s conftest.err'
8ab705be
KC
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'
47935194
NN
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
3048else
3049 echo "$as_me: failed program was:" >&5
3050sed 's/^/| /' conftest.$ac_ext >&5
3051
3052fi
8ab705be 3053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
3054done
3055rm -f conftest*
3056if test -n "$ac_declaration"; then
3057 echo '#ifdef __cplusplus' >>confdefs.h
3058 echo $ac_declaration >>confdefs.h
3059 echo '#endif' >>confdefs.h
3060fi
3061
3062else
3063 echo "$as_me: failed program was:" >&5
3064sed 's/^/| /' conftest.$ac_ext >&5
3065
3066fi
8ab705be 3067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
3068ac_ext=c
3069ac_cpp='$CPP $CPPFLAGS'
3070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9a420e
PB
3073DEPDIR="${am__leading_dot}deps"
3074
3075 ac_config_commands="$ac_config_commands depfiles"
3076
3077
3078am_make=${MAKE-make}
3079cat > confinc << 'END'
3080am__doit:
3081 @echo done
3082.PHONY: am__doit
3083END
3084# If we don't find an include directive, just comment out the code.
3085echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3086echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3087am__include="#"
3088am__quote=
3089_am_result=none
3090# First try GNU make style include.
3091echo "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'.
3097if 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
3101fi
3102# Now try BSD make style include.
3103if 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
3109 fi
3110fi
3111
3112
3113echo "$as_me:$LINENO: result: $_am_result" >&5
3114echo "${ECHO_T}$_am_result" >&6
3115rm -f confinc confmf
3116
3117# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3118if test "${enable_dependency_tracking+set}" = set; then
3119 enableval="$enable_dependency_tracking"
3120
3121fi;
3122if test "x$enable_dependency_tracking" != xno; then
3123 am_depcomp="$ac_aux_dir/depcomp"
3124 AMDEPBACKSLASH='\'
3125fi
3126
3127
3128if test "x$enable_dependency_tracking" != xno; then
3129 AMDEP_TRUE=
3130 AMDEP_FALSE='#'
3131else
3132 AMDEP_TRUE='#'
3133 AMDEP_FALSE=
3134fi
3135
3136
3137
3138
3139depcc="$CC" am_compiler_list=
3140
3141echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3142echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3143if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145else
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
3164
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`
3168 fi
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.
3173 #
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
3185
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
3194 fi
3195 ;;
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
3220 fi
3221 fi
3222 done
3223
3224 cd ..
3225 rm -rf conftest.dir
3226else
3227 am_cv_CC_dependencies_compiler_type=none
3228fi
3229
3230fi
3231echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3232echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3233CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3234
3235
3236
3237if
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='#'
3242else
3243 am__fastdepCC_TRUE='#'
3244 am__fastdepCC_FALSE=
3245fi
3246
47935194
NN
3247
3248ac_ext=cc
3249ac_cpp='$CXXCPP $CPPFLAGS'
3250ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3253if 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
3255 do
3256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3257set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3258echo "$as_me:$LINENO: checking for $ac_word" >&5
3259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3260if test "${ac_cv_prog_CXX+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262else
3263 if test -n "$CXX"; then
3264 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3265else
3266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267for as_dir in $PATH
3268do
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
3276 fi
3277done
3278done
3279
3280fi
3281fi
3282CXX=$ac_cv_prog_CXX
3283if test -n "$CXX"; then
3284 echo "$as_me:$LINENO: result: $CXX" >&5
3285echo "${ECHO_T}$CXX" >&6
3286else
3287 echo "$as_me:$LINENO: result: no" >&5
3288echo "${ECHO_T}no" >&6
3289fi
3290
3291 test -n "$CXX" && break
1530be84 3292 done
47935194
NN
3293fi
3294if 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
3297do
3298 # Extract the first word of "$ac_prog", so it can be a program name with args.
3299set dummy $ac_prog; ac_word=$2
3300echo "$as_me:$LINENO: checking for $ac_word" >&5
3301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304else
3305 if test -n "$ac_ct_CXX"; then
3306 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3307else
3308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309for as_dir in $PATH
3310do
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
3318 fi
3319done
3320done
3321
3322fi
3323fi
3324ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3325if test -n "$ac_ct_CXX"; then
3326 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3327echo "${ECHO_T}$ac_ct_CXX" >&6
3328else
3329 echo "$as_me:$LINENO: result: no" >&5
3330echo "${ECHO_T}no" >&6
3331fi
3332
3333 test -n "$ac_ct_CXX" && break
3334done
3335test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3336
3337 CXX=$ac_ct_CXX
3338fi
3339
3340
3341# Provide some information about the compiler.
3342echo "$as_me:$LINENO:" \
3343 "checking for C++ compiler version" >&5
3344ac_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); }
3360
3361echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3362echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3363if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365else
3366 cat >conftest.$ac_ext <<_ACEOF
3367/* confdefs.h. */
3368_ACEOF
3369cat confdefs.h >>conftest.$ac_ext
3370cat >>conftest.$ac_ext <<_ACEOF
3371/* end confdefs.h. */
3372
3373int
3374main ()
3375{
3376#ifndef __GNUC__
3377 choke me
3378#endif
3379
3380 ;
3381 return 0;
3382}
3383_ACEOF
3384rm -f conftest.$ac_objext
3385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 3386 (eval $ac_compile) 2>conftest.er1
47935194 3387 ac_status=$?
8ab705be
KC
3388 grep -v '^ *+' conftest.er1 >conftest.err
3389 rm -f conftest.er1
3390 cat conftest.err >&5
47935194
NN
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } &&
5572488d
KC
3393 { ac_try='test -z "$ac_cxx_werror_flag"
3394 || test ! -s conftest.err'
8ab705be
KC
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'
47935194
NN
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
3407else
3408 echo "$as_me: failed program was:" >&5
3409sed 's/^/| /' conftest.$ac_ext >&5
3410
3411ac_compiler_gnu=no
3412fi
8ab705be 3413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
3414ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3415
3416fi
3417echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3418echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3419GXX=`test $ac_compiler_gnu = yes && echo yes`
3420ac_test_CXXFLAGS=${CXXFLAGS+set}
3421ac_save_CXXFLAGS=$CXXFLAGS
3422CXXFLAGS="-g"
3423echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3424echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3425if test "${ac_cv_prog_cxx_g+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3427else
3428 cat >conftest.$ac_ext <<_ACEOF
3429/* confdefs.h. */
3430_ACEOF
3431cat confdefs.h >>conftest.$ac_ext
3432cat >>conftest.$ac_ext <<_ACEOF
3433/* end confdefs.h. */
3434
3435int
3436main ()
3437{
3438
3439 ;
3440 return 0;
3441}
3442_ACEOF
3443rm -f conftest.$ac_objext
3444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 3445 (eval $ac_compile) 2>conftest.er1
47935194 3446 ac_status=$?
8ab705be
KC
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
47935194
NN
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
5572488d
KC
3452 { ac_try='test -z "$ac_cxx_werror_flag"
3453 || test ! -s conftest.err'
8ab705be
KC
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'
47935194
NN
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
3466else
3467 echo "$as_me: failed program was:" >&5
3468sed 's/^/| /' conftest.$ac_ext >&5
3469
3470ac_cv_prog_cxx_g=no
3471fi
8ab705be 3472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
3473fi
3474echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3475echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3476if test "$ac_test_CXXFLAGS" = set; then
3477 CXXFLAGS=$ac_save_CXXFLAGS
3478elif test $ac_cv_prog_cxx_g = yes; then
3479 if test "$GXX" = yes; then
3480 CXXFLAGS="-g -O2"
3481 else
3482 CXXFLAGS="-g"
3483 fi
3484else
3485 if test "$GXX" = yes; then
3486 CXXFLAGS="-O2"
3487 else
3488 CXXFLAGS=
3489 fi
3490fi
3491for 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);'
3498do
3499 cat >conftest.$ac_ext <<_ACEOF
3500/* confdefs.h. */
3501_ACEOF
3502cat confdefs.h >>conftest.$ac_ext
3503cat >>conftest.$ac_ext <<_ACEOF
3504/* end confdefs.h. */
3505$ac_declaration
3506#include <stdlib.h>
3507int
3508main ()
3509{
3510exit (42);
3511 ;
3512 return 0;
3513}
3514_ACEOF
3515rm -f conftest.$ac_objext
3516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 3517 (eval $ac_compile) 2>conftest.er1
47935194 3518 ac_status=$?
8ab705be
KC
3519 grep -v '^ *+' conftest.er1 >conftest.err
3520 rm -f conftest.er1
3521 cat conftest.err >&5
47935194
NN
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
5572488d
KC
3524 { ac_try='test -z "$ac_cxx_werror_flag"
3525 || test ! -s conftest.err'
8ab705be
KC
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'
47935194
NN
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
3537 :
3538else
3539 echo "$as_me: failed program was:" >&5
3540sed 's/^/| /' conftest.$ac_ext >&5
3541
3542continue
3543fi
8ab705be 3544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
3545 cat >conftest.$ac_ext <<_ACEOF
3546/* confdefs.h. */
3547_ACEOF
3548cat confdefs.h >>conftest.$ac_ext
3549cat >>conftest.$ac_ext <<_ACEOF
3550/* end confdefs.h. */
3551$ac_declaration
3552int
3553main ()
3554{
3555exit (42);
3556 ;
3557 return 0;
3558}
3559_ACEOF
3560rm -f conftest.$ac_objext
3561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 3562 (eval $ac_compile) 2>conftest.er1
47935194 3563 ac_status=$?
8ab705be
KC
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
47935194
NN
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } &&
5572488d
KC
3569 { ac_try='test -z "$ac_cxx_werror_flag"
3570 || test ! -s conftest.err'
8ab705be
KC
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'
47935194
NN
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
3583else
3584 echo "$as_me: failed program was:" >&5
3585sed 's/^/| /' conftest.$ac_ext >&5
3586
3587fi
8ab705be 3588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
3589done
3590rm -f conftest*
3591if test -n "$ac_declaration"; then
3592 echo '#ifdef __cplusplus' >>confdefs.h
3593 echo $ac_declaration >>confdefs.h
3594 echo '#endif' >>confdefs.h
3595fi
3596
3597ac_ext=c
3598ac_cpp='$CPP $CPPFLAGS'
3599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602
bf9a420e
PB
3603depcc="$CXX" am_compiler_list=
3604
3605echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3606echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3607if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609else
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
3628
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`
3632 fi
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.
3637 #
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
3649
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
3658 fi
3659 ;;
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
3684 fi
3685 fi
3686 done
3687
3688 cd ..
3689 rm -rf conftest.dir
3690else
3691 am_cv_CXX_dependencies_compiler_type=none
3692fi
3693
3694fi
3695echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3696echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3697CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3698
3699
3700
3701if
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='#'
3706else
3707 am__fastdepCXX_TRUE='#'
3708 am__fastdepCXX_FALSE=
3709fi
3710
3711
3712
3713
3714if test "x$CC" != xcc; then
3715 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3716echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3717else
3718 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3719echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3720fi
3721set dummy $CC; ac_cc=`echo $2 |
3722 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3723if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725else
3726 cat >conftest.$ac_ext <<_ACEOF
3727/* confdefs.h. */
3728_ACEOF
3729cat confdefs.h >>conftest.$ac_ext
3730cat >>conftest.$ac_ext <<_ACEOF
3731/* end confdefs.h. */
3732
3733int
3734main ()
3735{
3736
3737 ;
3738 return 0;
3739}
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.
3744ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3745if { (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); };
3755then
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.
3778 :
3779 else
3780 # cc exists but doesn't like -o.
3781 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3782 fi
3783 fi
3784 fi
3785else
3786 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3787fi
3788rm -f conftest*
3789
3790fi
3791if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3792 echo "$as_me:$LINENO: result: yes" >&5
3793echo "${ECHO_T}yes" >&6
3794else
3795 echo "$as_me:$LINENO: result: no" >&5
3796echo "${ECHO_T}no" >&6
3797
3798cat >>confdefs.h <<\_ACEOF
3799#define NO_MINUS_C_MINUS_O 1
3800_ACEOF
3801
3802fi
3803
3804# FIXME: we rely on the cache variable name because
3805# there is no other way.
3806set dummy $CC
3807ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3808if 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"
3815fi
47935194 3816
e22db4bf
NN
3817
3818
3819
3820
7664e6f8
NN
3821# Newer automakes demand CCAS and CCASFLAGS.
3822: ${CCAS='$(CC)'}
3823: ${CCASFLAGS='$(CFLAGS)'}
3824
3825
3826
47935194
NN
3827if 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.
3829set dummy ${ac_tool_prefix}as; ac_word=$2
3830echo "$as_me:$LINENO: checking for $ac_word" >&5
3831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3832if test "${ac_cv_prog_AS+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3834else
3835 if test -n "$AS"; then
3836 ac_cv_prog_AS="$AS" # Let the user override the test.
3837else
3838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839for as_dir in $PATH
3840do
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
3848 fi
3849done
3850done
3851
3852fi
3853fi
3854AS=$ac_cv_prog_AS
3855if test -n "$AS"; then
3856 echo "$as_me:$LINENO: result: $AS" >&5
3857echo "${ECHO_T}$AS" >&6
3858else
3859 echo "$as_me:$LINENO: result: no" >&5
3860echo "${ECHO_T}no" >&6
3861fi
3862
3863fi
3864if 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.
3867set dummy as; ac_word=$2
3868echo "$as_me:$LINENO: checking for $ac_word" >&5
3869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3870if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872else
3873 if test -n "$ac_ct_AS"; then
3874 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3875else
3876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877for as_dir in $PATH
3878do
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
3886 fi
3887done
3888done
3889
3890fi
3891fi
3892ac_ct_AS=$ac_cv_prog_ac_ct_AS
3893if test -n "$ac_ct_AS"; then
3894 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3895echo "${ECHO_T}$ac_ct_AS" >&6
3896else
3897 echo "$as_me:$LINENO: result: no" >&5
3898echo "${ECHO_T}no" >&6
3899fi
3900
3901 AS=$ac_ct_AS
3902else
3903 AS="$ac_cv_prog_AS"
3904fi
3905
3906if 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.
3908set dummy ${ac_tool_prefix}ar; ac_word=$2
3909echo "$as_me:$LINENO: checking for $ac_word" >&5
3910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3911if test "${ac_cv_prog_AR+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913else
3914 if test -n "$AR"; then
3915 ac_cv_prog_AR="$AR" # Let the user override the test.
3916else
3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918for as_dir in $PATH
3919do
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
3927 fi
3928done
3929done
3930
1530be84
TT
3931fi
3932fi
47935194 3933AR=$ac_cv_prog_AR
1530be84 3934if test -n "$AR"; then
47935194
NN
3935 echo "$as_me:$LINENO: result: $AR" >&5
3936echo "${ECHO_T}$AR" >&6
1530be84 3937else
47935194
NN
3938 echo "$as_me:$LINENO: result: no" >&5
3939echo "${ECHO_T}no" >&6
1530be84
TT
3940fi
3941
47935194
NN
3942fi
3943if 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.
3946set dummy ar; ac_word=$2
3947echo "$as_me:$LINENO: checking for $ac_word" >&5
3948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951else
3952 if test -n "$ac_ct_AR"; then
3953 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3954else
3955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956for as_dir in $PATH
3957do
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
3965 fi
3966done
3967done
3968
3969fi
3970fi
3971ac_ct_AR=$ac_cv_prog_ac_ct_AR
3972if test -n "$ac_ct_AR"; then
3973 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3974echo "${ECHO_T}$ac_ct_AR" >&6
3975else
3976 echo "$as_me:$LINENO: result: no" >&5
3977echo "${ECHO_T}no" >&6
3978fi
1530be84 3979
47935194
NN
3980 AR=$ac_ct_AR
3981else
3982 AR="$ac_cv_prog_AR"
3983fi
1530be84 3984
47935194
NN
3985if 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.
1530be84 3987set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47935194
NN
3988echo "$as_me:$LINENO: checking for $ac_word" >&5
3989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3990if test "${ac_cv_prog_RANLIB+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84
TT
3992else
3993 if test -n "$RANLIB"; then
3994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3995else
47935194
NN
3996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997for as_dir in $PATH
3998do
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
4006 fi
4007done
4008done
4009
1530be84
TT
4010fi
4011fi
47935194 4012RANLIB=$ac_cv_prog_RANLIB
1530be84 4013if test -n "$RANLIB"; then
47935194
NN
4014 echo "$as_me:$LINENO: result: $RANLIB" >&5
4015echo "${ECHO_T}$RANLIB" >&6
1530be84 4016else
47935194
NN
4017 echo "$as_me:$LINENO: result: no" >&5
4018echo "${ECHO_T}no" >&6
1530be84
TT
4019fi
4020
47935194 4021fi
1530be84 4022if test -z "$ac_cv_prog_RANLIB"; then
47935194 4023 ac_ct_RANLIB=$RANLIB
1530be84
TT
4024 # Extract the first word of "ranlib", so it can be a program name with args.
4025set dummy ranlib; ac_word=$2
47935194
NN
4026echo "$as_me:$LINENO: checking for $ac_word" >&5
4027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4028if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 4030else
47935194
NN
4031 if test -n "$ac_ct_RANLIB"; then
4032 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1530be84 4033else
47935194
NN
4034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035for as_dir in $PATH
4036do
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
4044 fi
4045done
4046done
4047
4048 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1530be84
TT
4049fi
4050fi
47935194
NN
4051ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4052if test -n "$ac_ct_RANLIB"; then
4053 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4054echo "${ECHO_T}$ac_ct_RANLIB" >&6
1530be84 4055else
47935194
NN
4056 echo "$as_me:$LINENO: result: no" >&5
4057echo "${ECHO_T}no" >&6
1530be84
TT
4058fi
4059
47935194 4060 RANLIB=$ac_ct_RANLIB
1530be84 4061else
47935194 4062 RANLIB="$ac_cv_prog_RANLIB"
1530be84
TT
4063fi
4064
4065
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
47935194 4073# AmigaOS /C/install, which installs bootblocks on floppy discs
1530be84
TT
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"
8ab705be 4077# OS/2's system install, which has a completely different semantic
1530be84 4078# ./install, which can be erroneously created by make from ./install.sh.
38d24731 4079# Reject install programs that cannot install multiple files.
47935194
NN
4080echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4081echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1530be84 4082if test -z "$INSTALL"; then
47935194
NN
4083if test "${ac_cv_path_install+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 4085else
47935194
NN
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087for as_dir in $PATH
4088do
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 # Account for people who put trailing slashes in PATH elements.
4092case $as_dir/ in
4093 ./ | .// | /cC/* | \
4094 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8ab705be 4095 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47935194
NN
4096 /usr/ucb/* ) ;;
4097 *)
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
8ab705be
KC
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.
4107 :
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.
4111 :
4112 else
38d24731
RW
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
4124 fi
8ab705be
KC
4125 fi
4126 fi
1530be84 4127 done
47935194
NN
4128 done
4129 ;;
4130esac
4131done
4132
38d24731 4133rm -rf conftest.one conftest.two conftest.dir
1530be84
TT
4134
4135fi
4136 if test "${ac_cv_path_install+set}" = set; then
47935194 4137 INSTALL=$ac_cv_path_install
1530be84 4138 else
38d24731
RW
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
1530be84 4141 # break other packages using the cache if that directory is
38d24731 4142 # removed, or if the value is a relative name.
47935194 4143 INSTALL=$ac_install_sh
1530be84
TT
4144 fi
4145fi
47935194
NN
4146echo "$as_me:$LINENO: result: $INSTALL" >&5
4147echo "${ECHO_T}$INSTALL" >&6
1530be84
TT
4148
4149# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4150# It thinks the first close brace ends the variable substitution.
4151test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4152
47935194 4153test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1530be84
TT
4154
4155test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4156
4157
47935194
NN
4158echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4159echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1530be84
TT
4160 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4161if test "${enable_maintainer_mode+set}" = set; then
4162 enableval="$enable_maintainer_mode"
4163 USE_MAINTAINER_MODE=$enableval
4164else
4165 USE_MAINTAINER_MODE=no
47935194
NN
4166fi;
4167 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4168echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1530be84 4169
1530be84
TT
4170
4171if test $USE_MAINTAINER_MODE = yes; then
4172 MAINTAINER_MODE_TRUE=
4173 MAINTAINER_MODE_FALSE='#'
4174else
4175 MAINTAINER_MODE_TRUE='#'
4176 MAINTAINER_MODE_FALSE=
4177fi
bf9a420e 4178
1530be84 4179 MAINT=$MAINTAINER_MODE_TRUE
47935194 4180
1530be84
TT
4181
4182
c3b48847 4183. ${srcdir}/configure.host
1530be84 4184
5a2586cf
TT
4185case ${gc_basedir} in
4186/* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
4187*) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
1530be84
TT
4188esac
4189
4109fe85 4190gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
1530be84
TT
4191case "${host}" in
4192 *-*-cygwin32*)
5a2586cf 4193 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
1530be84
TT
4194 ;;
4195esac
4196
1530be84 4197
5a2586cf 4198GC_CFLAGS=${gc_cflags}
1530be84
TT
4199
4200
93e92f52
PG
4201case `pwd` in
4202 *\ * | *\ *)
4203 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4204echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4205esac
1cf3d07d
SE
4206
4207
1cf3d07d 4208
93e92f52
PG
4209macro_version='2.2.6'
4210macro_revision='1.3012'
1cf3d07d
SE
4211
4212
4213
4214
4215
4216
115dabb8 4217
1cf3d07d
SE
4218
4219
4220
4221
4222
4223
93e92f52 4224ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d
SE
4225
4226echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4227echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4228if test "${lt_cv_path_SED+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4230else
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.
4233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234for as_dir in $PATH
4235do
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"
4242 fi
4243 done
4244 done
4245done
4246IFS=$as_save_IFS
4247lt_ac_max=0
4248lt_ac_count=0
4249# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4250# along with /bin/sed that truncates output.
4251for 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
4260 fi
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
4274 fi
4275 done
4276done
4277
4278fi
4279
4280SED=$lt_cv_path_SED
4281
4282echo "$as_me:$LINENO: result: $SED" >&5
4283echo "${ECHO_T}$SED" >&6
4284
4285test -z "$SED" && SED=sed
4286Xsed="$SED -e 1s/^X//"
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298echo "$as_me:$LINENO: checking for egrep" >&5
4299echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4300if test "${ac_cv_prog_egrep+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302else
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'
4306 fi
4307fi
4308echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4309echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4310 EGREP=$ac_cv_prog_egrep
4311
4312
4313echo "$as_me:$LINENO: checking for fgrep" >&5
4314echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4315if test "${ac_cv_prog_fgrep+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317else
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'
4321 fi
4322fi
4323echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4324echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4325 FGREP=$ac_cv_prog_fgrep
4326
4327
4328test -z "$GREP" && GREP=grep
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
66deb2be
TT
4348# Check whether --with-gnu-ld or --without-gnu-ld was given.
4349if test "${with_gnu_ld+set}" = set; then
4350 withval="$with_gnu_ld"
4351 test "$withval" = no || with_gnu_ld=yes
4352else
4353 with_gnu_ld=no
47935194 4354fi;
66deb2be 4355ac_prog=ld
2d65a52e 4356if test "$GCC" = yes; then
66deb2be 4357 # Check if gcc -print-prog-name=ld gives a path.
1cf3d07d
SE
4358 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4359echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2f7bf5b7
AO
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'` ;;
4364 *)
4365 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4366 esac
2d65a52e 4367 case $ac_prog in
115dabb8 4368 # Accept absolute paths.
1cf3d07d 4369 [\\/]* | ?:[\\/]*)
115dabb8 4370 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
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%/%"`
115dabb8
TT
4375 done
4376 test -z "$LD" && LD="$ac_prog"
4377 ;;
66deb2be
TT
4378 "")
4379 # If it fails, then pretend we aren't using GCC.
4380 ac_prog=ld
4381 ;;
4382 *)
4383 # If it is relative, then search for the first ld in PATH.
4384 with_gnu_ld=unknown
4385 ;;
4386 esac
4387elif test "$with_gnu_ld" = yes; then
47935194
NN
4388 echo "$as_me:$LINENO: checking for GNU ld" >&5
4389echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
66deb2be 4390else
47935194
NN
4391 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4392echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
66deb2be 4393fi
47935194
NN
4394if test "${lt_cv_path_LD+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
66deb2be
TT
4396else
4397 if test -z "$LD"; then
1cf3d07d 4398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
66deb2be 4399 for ac_dir in $PATH; do
1cf3d07d 4400 IFS="$lt_save_ifs"
66deb2be 4401 test -z "$ac_dir" && ac_dir=.
20bbd3cd 4402 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2d65a52e 4403 lt_cv_path_LD="$ac_dir/$ac_prog"
66deb2be 4404 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 4405 # but apparently some variants of GNU ld only accept -v.
66deb2be 4406 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
4407 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4408 *GNU* | *'with BFD'*)
66deb2be 4409 test "$with_gnu_ld" != no && break
1cf3d07d
SE
4410 ;;
4411 *)
115dabb8 4412 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
4413 ;;
4414 esac
66deb2be
TT
4415 fi
4416 done
1cf3d07d 4417 IFS="$lt_save_ifs"
66deb2be 4418else
2d65a52e 4419 lt_cv_path_LD="$LD" # Let the user override the test with a path.
66deb2be
TT
4420fi
4421fi
4422
2d65a52e 4423LD="$lt_cv_path_LD"
66deb2be 4424if test -n "$LD"; then
47935194
NN
4425 echo "$as_me:$LINENO: result: $LD" >&5
4426echo "${ECHO_T}$LD" >&6
66deb2be 4427else
47935194
NN
4428 echo "$as_me:$LINENO: result: no" >&5
4429echo "${ECHO_T}no" >&6
4430fi
4431test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4432echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4433 { (exit 1); exit 1; }; }
4434echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4435echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4436if test "${lt_cv_prog_gnu_ld+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
66deb2be 4438else
1cf3d07d
SE
4439 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4440case `$LD -v 2>&1 </dev/null` in
4441*GNU* | *'with BFD'*)
2d65a52e 4442 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
4443 ;;
4444*)
2d65a52e 4445 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
4446 ;;
4447esac
66deb2be 4448fi
47935194
NN
4449echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4450echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2d65a52e 4451with_gnu_ld=$lt_cv_prog_gnu_ld
2f7bf5b7
AO
4452
4453
66deb2be 4454
1cf3d07d
SE
4455
4456
4457
4458
4459
4460
1cf3d07d
SE
4461echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4462echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
47935194
NN
4463if test "${lt_cv_path_NM+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
66deb2be
TT
4465else
4466 if test -n "$NM"; then
4467 # Let the user override the test.
2d65a52e 4468 lt_cv_path_NM="$NM"
66deb2be 4469else
1cf3d07d
SE
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"
4473 fi
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
4489 ;;
4490 *)
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
4495 ;;
4496 *)
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
4499 ;;
4500 esac
4501 ;;
4502 esac
4503 fi
4504 done
4505 IFS="$lt_save_ifs"
4506 done
4507 : ${lt_cv_path_NM=no}
4508fi
4509fi
4510echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4511echo "${ECHO_T}$lt_cv_path_NM" >&6
4512if test "$lt_cv_path_NM" != "no"; then
4513 NM="$lt_cv_path_NM"
4514else
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"
4518 do
4519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4520set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4521echo "$as_me:$LINENO: checking for $ac_word" >&5
4522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4523if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525else
4526 if test -n "$DUMPBIN"; then
4527 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4528else
4529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530for as_dir in $PATH
4531do
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
4539 fi
4540done
4541done
4542
4543fi
4544fi
4545DUMPBIN=$ac_cv_prog_DUMPBIN
4546if test -n "$DUMPBIN"; then
4547 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4548echo "${ECHO_T}$DUMPBIN" >&6
4549else
4550 echo "$as_me:$LINENO: result: no" >&5
4551echo "${ECHO_T}no" >&6
4552fi
4553
4554 test -n "$DUMPBIN" && break
4555 done
4556fi
4557if test -z "$DUMPBIN"; then
4558 ac_ct_DUMPBIN=$DUMPBIN
4559 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4560do
4561 # Extract the first word of "$ac_prog", so it can be a program name with args.
4562set dummy $ac_prog; ac_word=$2
4563echo "$as_me:$LINENO: checking for $ac_word" >&5
4564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4567else
4568 if test -n "$ac_ct_DUMPBIN"; then
4569 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4570else
4571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH
4573do
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
4581 fi
4582done
4583done
4584
4585fi
66deb2be 4586fi
1cf3d07d
SE
4587ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4588if test -n "$ac_ct_DUMPBIN"; then
4589 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4590echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4591else
4592 echo "$as_me:$LINENO: result: no" >&5
4593echo "${ECHO_T}no" >&6
4594fi
4595
4596 test -n "$ac_ct_DUMPBIN" && break
4597done
4598test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4599
4600 DUMPBIN=$ac_ct_DUMPBIN
4601fi
4602
4603
4604 if test "$DUMPBIN" != ":"; then
4605 NM="$DUMPBIN"
4606 fi
66deb2be 4607fi
1cf3d07d
SE
4608test -z "$NM" && NM=nm
4609
4610
4611
4612
4613
66deb2be 4614
1cf3d07d
SE
4615echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4616echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4617if test "${lt_cv_nm_interface+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619else
4620 lt_cv_nm_interface="BSD nm"
4621 echo "int some_variable = 0;" > conftest.$ac_ext
93e92f52 4622 (eval echo "\"\$as_me:4622: $ac_compile\"" >&5)
1cf3d07d
SE
4623 (eval "$ac_compile" 2>conftest.err)
4624 cat conftest.err >&5
93e92f52 4625 (eval echo "\"\$as_me:4625: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
4626 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4627 cat conftest.err >&5
93e92f52 4628 (eval echo "\"\$as_me:4628: output\"" >&5)
1cf3d07d
SE
4629 cat conftest.out >&5
4630 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4631 lt_cv_nm_interface="MS dumpbin"
4632 fi
4633 rm -f conftest*
4634fi
4635echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4636echo "${ECHO_T}$lt_cv_nm_interface" >&6
47935194
NN
4637
4638echo "$as_me:$LINENO: checking whether ln -s works" >&5
4639echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4640LN_S=$as_ln_s
4641if test "$LN_S" = "ln -s"; then
4642 echo "$as_me:$LINENO: result: yes" >&5
4643echo "${ECHO_T}yes" >&6
66deb2be 4644else
47935194
NN
4645 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4646echo "${ECHO_T}no, using $LN_S" >&6
66deb2be
TT
4647fi
4648
1cf3d07d
SE
4649# find the maximum length of command line arguments
4650echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4651echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4652if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654else
4655 i=0
4656 teststring="ABCD"
4657
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
4665 ;;
4666
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;
4672 ;;
4673
93e92f52 4674 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
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;
4683 ;;
4684
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;
4689 ;;
4690
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
4699 fi
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`
4703 ;;
4704
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
4708 ;;
4709
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
4716 #
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
4721 fi
4722 ;;
4723 sco3.2v5*)
4724 lt_cv_sys_max_cmd_len=102400
4725 ;;
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
4732 fi
4733 ;;
4734 *)
93e92f52
PG
4735 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4736 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
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
4752 do
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`
4763 fi
1cf3d07d
SE
4764 ;;
4765 esac
4766
4767fi
4768
4769if test -n $lt_cv_sys_max_cmd_len ; then
4770 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4771echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4772else
4773 echo "$as_me:$LINENO: result: none" >&5
4774echo "${ECHO_T}none" >&6
4775fi
4776max_cmd_len=$lt_cv_sys_max_cmd_len
4777
4778
4779
4780
4781
4782
1cf3d07d
SE
4783: ${CP="cp -f"}
4784: ${MV="mv -f"}
4785: ${RM="rm -f"}
4786
4787echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4788echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4789# Try some XSI features
4790xsi_shell=no
4791( _lt_dummy="a/b/c"
4792 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
93e92f52
PG
4793 = c,a/b,, \
4794 && eval 'test $(( 1 + 1 )) -eq 2 \
4795 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d
SE
4796 && xsi_shell=yes
4797echo "$as_me:$LINENO: result: $xsi_shell" >&5
4798echo "${ECHO_T}$xsi_shell" >&6
4799
4800
4801echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4802echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4803lt_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
4807echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4808echo "${ECHO_T}$lt_shell_append" >&6
4809
4810
4811if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4812 lt_unset=unset
4813else
4814 lt_unset=false
4815fi
4816
4817
4818
4819
4820
4821# test EBCDIC or ASCII
4822case `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'
4827 ;;
4828 *) # EBCDIC based system
4829 lt_SP2NL='tr \100 \n'
4830 lt_NL2SP='tr \r\n \100\100'
4831 ;;
4832esac
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4843echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4844if test "${lt_cv_ld_reload_flag+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4846else
4847 lt_cv_ld_reload_flag='-r'
4848fi
4849echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4850echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4851reload_flag=$lt_cv_ld_reload_flag
4852case $reload_flag in
4853"" | " "*) ;;
4854*) reload_flag=" $reload_flag" ;;
4855esac
4856reload_cmds='$LD$reload_flag -o $output$reload_objs'
4857case $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'
4863 fi
4864 ;;
4865esac
4866
4867
4868
4869
4870
4871
4872
4873
4874
93e92f52
PG
4875if 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.
4877set dummy ${ac_tool_prefix}objdump; ac_word=$2
4878echo "$as_me:$LINENO: checking for $ac_word" >&5
4879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4880if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4882else
4883 if test -n "$OBJDUMP"; then
4884 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4885else
4886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887for as_dir in $PATH
4888do
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
4896 fi
4897done
4898done
4899
4900fi
4901fi
4902OBJDUMP=$ac_cv_prog_OBJDUMP
4903if test -n "$OBJDUMP"; then
4904 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4905echo "${ECHO_T}$OBJDUMP" >&6
4906else
4907 echo "$as_me:$LINENO: result: no" >&5
4908echo "${ECHO_T}no" >&6
4909fi
4910
4911fi
4912if 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.
4915set dummy objdump; ac_word=$2
4916echo "$as_me:$LINENO: checking for $ac_word" >&5
4917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4918if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4920else
4921 if test -n "$ac_ct_OBJDUMP"; then
4922 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4923else
4924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925for as_dir in $PATH
4926do
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
4934 fi
4935done
4936done
4937
4938 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4939fi
4940fi
4941ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4942if test -n "$ac_ct_OBJDUMP"; then
4943 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4944echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4945else
4946 echo "$as_me:$LINENO: result: no" >&5
4947echo "${ECHO_T}no" >&6
4948fi
4949
4950 OBJDUMP=$ac_ct_OBJDUMP
4951else
4952 OBJDUMP="$ac_cv_prog_OBJDUMP"
4953fi
4954
4955test -z "$OBJDUMP" && OBJDUMP=objdump
4956
4957
4958
4959
4960
4961
4962
4963
1cf3d07d
SE
4964
4965echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4966echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
47935194
NN
4967if test "${lt_cv_deplibs_check_method+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 4969else
5f527203 4970 lt_cv_file_magic_cmd='$MAGIC_CMD'
2f7bf5b7
AO
4971lt_cv_file_magic_test_file=
4972lt_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.
1cf3d07d
SE
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.
2f7bf5b7
AO
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.
4983
2d65a52e 4984case $host_os in
f3641e7e 4985aix[4-9]*)
2f7bf5b7
AO
4986 lt_cv_deplibs_check_method=pass_all
4987 ;;
4988
4989beos*)
4990 lt_cv_deplibs_check_method=pass_all
4991 ;;
4992
1cf3d07d 4993bsdi[45]*)
2d65a52e
AO
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'
2f7bf5b7
AO
4996 lt_cv_file_magic_test_file=/shlib/libc.so
4997 ;;
4998
1cf3d07d
SE
4999cygwin*)
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'
5003 ;;
5004
5005mingw* | 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'
5015 fi
2f7bf5b7
AO
5016 ;;
5017
93e92f52
PG
5018cegcc)
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'
5022 ;;
5023
2d65a52e 5024darwin* | rhapsody*)
b27317b5 5025 lt_cv_deplibs_check_method=pass_all
2d65a52e
AO
5026 ;;
5027
1cf3d07d
SE
5028freebsd* | dragonfly*)
5029 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
2d65a52e 5030 case $host_cpu in
2f7bf5b7
AO
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.
1cf3d07d 5034 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
2d65a52e 5035 lt_cv_file_magic_cmd=/usr/bin/file
2f7bf5b7
AO
5036 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5037 ;;
5038 esac
5039 else
5040 lt_cv_deplibs_check_method=pass_all
5041 fi
5042 ;;
5043
5044gnu*)
5045 lt_cv_deplibs_check_method=pass_all
5046 ;;
5047
1cf3d07d
SE
5048hpux10.20* | hpux11*)
5049 lt_cv_file_magic_cmd=/usr/bin/file
f5cc59a7 5050 case $host_cpu in
f5cc59a7
AO
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'
f5cc59a7
AO
5053 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5054 ;;
1cf3d07d
SE
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
2f7bf5b7
AO
5058 ;;
5059 *)
1cf3d07d
SE
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
2d65a52e 5062 ;;
2f7bf5b7 5063 esac
1cf3d07d
SE
5064 ;;
5065
5066interix[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)$'
5069 ;;
5070
5071irix5* | 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
2f7bf5b7
AO
5078 lt_cv_deplibs_check_method=pass_all
5079 ;;
5080
5081# This must be Linux ELF.
1cf3d07d 5082linux* | k*bsd*-gnu)
76ecaf09 5083 lt_cv_deplibs_check_method=pass_all
2f7bf5b7
AO
5084 ;;
5085
1cf3d07d
SE
5086netbsd*)
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)$'
2f7bf5b7 5089 else
1cf3d07d 5090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
2f7bf5b7
AO
5091 fi
5092 ;;
5093
1cf3d07d 5094newos6*)
2d65a52e
AO
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
5098 ;;
5099
1cf3d07d
SE
5100*nto* | *qnx*)
5101 lt_cv_deplibs_check_method=pass_all
5102 ;;
5103
5104openbsd*)
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)$'
5109 fi
5110 ;;
5111
2f7bf5b7 5112osf3* | osf4* | osf5*)
2f7bf5b7
AO
5113 lt_cv_deplibs_check_method=pass_all
5114 ;;
66deb2be 5115
1cf3d07d 5116rdos*)
2f7bf5b7
AO
5117 lt_cv_deplibs_check_method=pass_all
5118 ;;
5119
5120solaris*)
5121 lt_cv_deplibs_check_method=pass_all
2f7bf5b7
AO
5122 ;;
5123
1cf3d07d 5124sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
33456445
AO
5125 lt_cv_deplibs_check_method=pass_all
5126 ;;
5127
1cf3d07d 5128sysv4 | sysv4.3*)
2d65a52e 5129 case $host_vendor in
2f7bf5b7 5130 motorola)
2d65a52e
AO
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*`
2f7bf5b7 5133 ;;
1cf3d07d
SE
5134 ncr)
5135 lt_cv_deplibs_check_method=pass_all
5136 ;;
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 )'
5140 ;;
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
5145 ;;
5146 siemens)
5147 lt_cv_deplibs_check_method=pass_all
5148 ;;
5149 pc)
5150 lt_cv_deplibs_check_method=pass_all
5151 ;;
2f7bf5b7
AO
5152 esac
5153 ;;
1cf3d07d
SE
5154
5155tpf*)
5156 lt_cv_deplibs_check_method=pass_all
5157 ;;
2f7bf5b7
AO
5158esac
5159
5160fi
47935194
NN
5161echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5162echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2f7bf5b7
AO
5163file_magic_cmd=$lt_cv_file_magic_cmd
5164deplibs_check_method=$lt_cv_deplibs_check_method
1cf3d07d 5165test -z "$deplibs_check_method" && deplibs_check_method=unknown
2f7bf5b7 5166
2f7bf5b7 5167
47935194 5168
2f7bf5b7 5169
413580dc 5170
2f7bf5b7 5171
2f7bf5b7 5172
2f7bf5b7 5173
2f7bf5b7 5174
2f7bf5b7 5175
2f7bf5b7 5176
2f7bf5b7 5177
47935194 5178if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
5179 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5180set dummy ${ac_tool_prefix}ar; ac_word=$2
47935194
NN
5181echo "$as_me:$LINENO: checking for $ac_word" >&5
5182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 5183if test "${ac_cv_prog_AR+set}" = set; then
47935194 5184 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 5185else
1cf3d07d
SE
5186 if test -n "$AR"; then
5187 ac_cv_prog_AR="$AR" # Let the user override the test.
2f7bf5b7 5188else
47935194
NN
5189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH
5191do
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
1cf3d07d 5196 ac_cv_prog_AR="${ac_tool_prefix}ar"
47935194
NN
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200done
5201done
5202
2f7bf5b7
AO
5203fi
5204fi
1cf3d07d
SE
5205AR=$ac_cv_prog_AR
5206if test -n "$AR"; then
5207 echo "$as_me:$LINENO: result: $AR" >&5
5208echo "${ECHO_T}$AR" >&6
2f7bf5b7 5209else
47935194
NN
5210 echo "$as_me:$LINENO: result: no" >&5
5211echo "${ECHO_T}no" >&6
2f7bf5b7
AO
5212fi
5213
47935194 5214fi
1cf3d07d
SE
5215if 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.
5218set dummy ar; ac_word=$2
47935194
NN
5219echo "$as_me:$LINENO: checking for $ac_word" >&5
5220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 5221if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47935194 5222 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 5223else
1cf3d07d
SE
5224 if test -n "$ac_ct_AR"; then
5225 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2f7bf5b7 5226else
47935194
NN
5227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228for as_dir in $PATH
5229do
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
1cf3d07d 5234 ac_cv_prog_ac_ct_AR="ar"
47935194
NN
5235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5237 fi
5238done
5239done
5240
1cf3d07d 5241 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
2f7bf5b7
AO
5242fi
5243fi
1cf3d07d
SE
5244ac_ct_AR=$ac_cv_prog_ac_ct_AR
5245if test -n "$ac_ct_AR"; then
5246 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5247echo "${ECHO_T}$ac_ct_AR" >&6
2f7bf5b7 5248else
47935194
NN
5249 echo "$as_me:$LINENO: result: no" >&5
5250echo "${ECHO_T}no" >&6
2f7bf5b7
AO
5251fi
5252
1cf3d07d 5253 AR=$ac_ct_AR
2f7bf5b7 5254else
1cf3d07d 5255 AR="$ac_cv_prog_AR"
2f7bf5b7
AO
5256fi
5257
1cf3d07d
SE
5258test -z "$AR" && AR=ar
5259test -z "$AR_FLAGS" && AR_FLAGS=cru
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
47935194
NN
5271if 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.
2f7bf5b7 5273set dummy ${ac_tool_prefix}strip; ac_word=$2
47935194
NN
5274echo "$as_me:$LINENO: checking for $ac_word" >&5
5275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5276if test "${ac_cv_prog_STRIP+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7
AO
5278else
5279 if test -n "$STRIP"; then
5280 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5281else
47935194
NN
5282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283for as_dir in $PATH
5284do
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
5292 fi
5293done
5294done
5295
2f7bf5b7
AO
5296fi
5297fi
47935194 5298STRIP=$ac_cv_prog_STRIP
2f7bf5b7 5299if test -n "$STRIP"; then
47935194
NN
5300 echo "$as_me:$LINENO: result: $STRIP" >&5
5301echo "${ECHO_T}$STRIP" >&6
2f7bf5b7 5302else
47935194
NN
5303 echo "$as_me:$LINENO: result: no" >&5
5304echo "${ECHO_T}no" >&6
2f7bf5b7
AO
5305fi
5306
47935194 5307fi
2f7bf5b7 5308if test -z "$ac_cv_prog_STRIP"; then
47935194 5309 ac_ct_STRIP=$STRIP
2f7bf5b7
AO
5310 # Extract the first word of "strip", so it can be a program name with args.
5311set dummy strip; ac_word=$2
47935194
NN
5312echo "$as_me:$LINENO: checking for $ac_word" >&5
5313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5314if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 5316else
47935194
NN
5317 if test -n "$ac_ct_STRIP"; then
5318 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2f7bf5b7 5319else
47935194
NN
5320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321for as_dir in $PATH
5322do
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
5330 fi
5331done
5332done
5333
5334 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2f7bf5b7
AO
5335fi
5336fi
47935194
NN
5337ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5338if test -n "$ac_ct_STRIP"; then
5339 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5340echo "${ECHO_T}$ac_ct_STRIP" >&6
2f7bf5b7 5341else
47935194
NN
5342 echo "$as_me:$LINENO: result: no" >&5
5343echo "${ECHO_T}no" >&6
2f7bf5b7
AO
5344fi
5345
47935194 5346 STRIP=$ac_ct_STRIP
2f7bf5b7 5347else
47935194 5348 STRIP="$ac_cv_prog_STRIP"
2f7bf5b7
AO
5349fi
5350
1cf3d07d 5351test -z "$STRIP" && STRIP=:
70635f1e 5352
66deb2be 5353
20bbd3cd 5354
20bbd3cd 5355
47935194 5356
2f7bf5b7 5357
1cf3d07d
SE
5358if 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.
5360set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5361echo "$as_me:$LINENO: checking for $ac_word" >&5
5362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5363if test "${ac_cv_prog_RANLIB+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5365else
5366 if test -n "$RANLIB"; then
5367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5368else
5369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370for as_dir in $PATH
5371do
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
5379 fi
5380done
5381done
5382
5383fi
5384fi
5385RANLIB=$ac_cv_prog_RANLIB
5386if test -n "$RANLIB"; then
5387 echo "$as_me:$LINENO: result: $RANLIB" >&5
5388echo "${ECHO_T}$RANLIB" >&6
5389else
5390 echo "$as_me:$LINENO: result: no" >&5
5391echo "${ECHO_T}no" >&6
5392fi
5393
5394fi
5395if 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.
5398set dummy ranlib; ac_word=$2
5399echo "$as_me:$LINENO: checking for $ac_word" >&5
5400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5401if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5403else
5404 if test -n "$ac_ct_RANLIB"; then
5405 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5406else
5407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408for as_dir in $PATH
5409do
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
5417 fi
5418done
5419done
5420
5421 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5422fi
5423fi
5424ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5425if test -n "$ac_ct_RANLIB"; then
5426 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5427echo "${ECHO_T}$ac_ct_RANLIB" >&6
5428else
5429 echo "$as_me:$LINENO: result: no" >&5
5430echo "${ECHO_T}no" >&6
5431fi
5432
5433 RANLIB=$ac_ct_RANLIB
5434else
5435 RANLIB="$ac_cv_prog_RANLIB"
5436fi
5437
5438test -z "$RANLIB" && RANLIB=:
5439
5440
5441
5442
5443
5444
5445# Determine commands to create old-style static archives.
93e92f52 5446old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
5447old_postinstall_cmds='chmod 644 $oldlib'
5448old_postuninstall_cmds=
5449
5450if test -n "$RANLIB"; then
5451 case $host_os in
5452 openbsd*)
5453 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5454 ;;
5455 *)
5456 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5457 ;;
5458 esac
5459 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5460fi
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495# If no C compiler was specified, use CC.
5496LTCC=${LTCC-"$CC"}
5497
5498# If no C compiler flags were specified, use CFLAGS.
5499LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5500
5501# Allow CC to be a program name with arguments.
5502compiler=$CC
5503
5504
5505# Check for command to grab the raw symbol name followed by C symbol from nm.
5506echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5507echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5508if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510else
5511
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?!! ;)]
5514
5515# Character class describing NM global symbol codes.
5516symcode='[BCDEGRST]'
5517
5518# Regexp to match symbols that can be accessed directly from C.
5519sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5520
5521# Define system-specific variables.
5522case $host_os in
5523aix*)
5524 symcode='[BCDT]'
5525 ;;
93e92f52 5526cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
5527 symcode='[ABCDGISTW]'
5528 ;;
5529hpux*)
5530 if test "$host_cpu" = ia64; then
5531 symcode='[ABCDEGRST]'
5532 fi
5533 ;;
5534irix* | nonstopux*)
5535 symcode='[BCDEGRST]'
5536 ;;
5537osf*)
5538 symcode='[BCDEGQRST]'
5539 ;;
5540solaris*)
5541 symcode='[BDRT]'
5542 ;;
5543sco3.2v5*)
5544 symcode='[DT]'
5545 ;;
5546sysv4.2uw2*)
5547 symcode='[DT]'
5548 ;;
5549sysv5* | sco5v6* | unixware* | OpenUNIX*)
5550 symcode='[ABDT]'
5551 ;;
5552sysv4)
5553 symcode='[DFNSTU]'
5554 ;;
5555esac
5556
5557# If we're using GNU nm, then use its standard symbol codes.
5558case `$NM -V 2>&1` in
5559*GNU* | *'with BFD'*)
5560 symcode='[ABCDGIRSTW]' ;;
5561esac
5562
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.
5566lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5567
5568# Transform an extracted symbol line into symbol name and symbol address
5569lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
93e92f52 5570lt_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'"
1cf3d07d
SE
5571
5572# Handle CRLF in mingw tool chain
5573opt_cr=
5574case $build_os in
5575mingw*)
5576 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5577 ;;
5578esac
5579
5580# Try without a prefix underscore, then with it.
5581for ac_symprfx in "" "_"; do
5582
5583 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5584 symxfrm="\\1 $ac_symprfx\\2 \\2"
5585
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'"
5605 fi
5606
5607 # Check to see that the pipe works correctly.
5608 pipe_works=no
5609
5610 rm -f conftest*
5611 cat > conftest.$ac_ext <<_LT_EOF
5612#ifdef __cplusplus
5613extern "C" {
5614#endif
5615char nm_test_var;
5616void nm_test_func(void);
5617void nm_test_func(void){}
5618#ifdef __cplusplus
5619}
5620#endif
5621int main(){nm_test_var='a';nm_test_func();return(0);}
5622_LT_EOF
5623
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
5641 fi
5642
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
5648extern "C" {
5649#endif
5650
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'
5654
5655 cat <<_LT_EOF >> conftest.$ac_ext
5656
5657/* The mapping between symbol names and symbols. */
5658const struct {
5659 const char *name;
5660 void *address;
5661}
5662lt__PROGRAM__LTX_preloaded_symbols[] =
5663{
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}
5669};
5670
5671/* This works around a problem in FreeBSD linker */
5672#ifdef FREEBSD_WORKAROUND
5673static const void *lt_preloaded_setup() {
5674 return lt__PROGRAM__LTX_preloaded_symbols;
5675}
5676#endif
5677
5678#ifdef __cplusplus
5679}
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
5694 fi
5695 LIBS="$lt_save_LIBS"
5696 CFLAGS="$lt_save_CFLAGS"
5697 else
5698 echo "cannot find nm_test_func in $nlist" >&5
5699 fi
5700 else
5701 echo "cannot find nm_test_var in $nlist" >&5
5702 fi
5703 else
5704 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5705 fi
5706 else
5707 echo "$progname: failed program was:" >&5
5708 cat conftest.$ac_ext >&5
5709 fi
93e92f52 5710 rm -rf conftest* conftst*
1cf3d07d
SE
5711
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=
5717 fi
5718done
5719
5720fi
5721
5722if test -z "$lt_cv_sys_global_symbol_pipe"; then
5723 lt_cv_sys_global_symbol_to_cdecl=
5724fi
5725if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5726 echo "$as_me:$LINENO: result: failed" >&5
5727echo "${ECHO_T}failed" >&6
5728else
5729 echo "$as_me:$LINENO: result: ok" >&5
5730echo "${ECHO_T}ok" >&6
5731fi
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
93e92f52
PG
5747
5748
5749
5750
5751
1cf3d07d
SE
5752
5753
5754
5755# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5756if test "${enable_libtool_lock+set}" = set; then
5757 enableval="$enable_libtool_lock"
5758
5759fi;
5760test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5761
5762# Some flags need to be propagated to the compiler or linker for good
5763# libtool support.
2d65a52e 5764case $host in
1cf3d07d 5765ia64-*-hpux*)
66deb2be 5766 # Find out which ABI we are using.
1cf3d07d 5767 echo 'int i;' > conftest.$ac_ext
47935194
NN
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
1cf3d07d
SE
5773 case `/usr/bin/file conftest.$ac_objext` in
5774 *ELF-32*)
5775 HPUX_IA64_MODE="32"
5776 ;;
5777 *ELF-64*)
5778 HPUX_IA64_MODE="64"
5779 ;;
5780 esac
5781 fi
5782 rm -rf conftest*
5783 ;;
5784*-*-irix6*)
5785 # Find out which ABI we are using.
93e92f52 5786 echo '#line 5786 "configure"' > conftest.$ac_ext
1cf3d07d
SE
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"
5796 ;;
5797 *N32*)
5798 LD="${LD-ld} -melf32bmipn32"
5799 ;;
5800 *64-bit*)
5801 LD="${LD-ld} -melf64bmip"
5802 ;;
5803 esac
5804 else
5805 case `/usr/bin/file conftest.$ac_objext` in
5806 *32-bit*)
5807 LD="${LD-ld} -32"
5808 ;;
5809 *N32*)
5810 LD="${LD-ld} -n32"
5811 ;;
5812 *64-bit*)
5813 LD="${LD-ld} -64"
5814 ;;
5815 esac
5816 fi
5817 fi
5818 rm -rf conftest*
5819 ;;
5820
5821x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5822s390*-*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"
5835 ;;
5836 x86_64-*linux*)
5837 LD="${LD-ld} -m elf_i386"
5838 ;;
5839 ppc64-*linux*|powerpc64-*linux*)
5840 LD="${LD-ld} -m elf32ppclinux"
5841 ;;
5842 s390x-*linux*)
5843 LD="${LD-ld} -m elf_s390"
5844 ;;
5845 sparc64-*linux*)
5846 LD="${LD-ld} -m elf32_sparc"
5847 ;;
5848 esac
5849 ;;
5850 *64-bit*)
5851 case $host in
5852 x86_64-*kfreebsd*-gnu)
5853 LD="${LD-ld} -m elf_x86_64_fbsd"
5854 ;;
5855 x86_64-*linux*)
5856 LD="${LD-ld} -m elf_x86_64"
5857 ;;
5858 ppc*-*linux*|powerpc*-*linux*)
5859 LD="${LD-ld} -m elf64ppc"
5860 ;;
5861 s390*-*linux*|s390*-*tpf*)
5862 LD="${LD-ld} -m elf64_s390"
5863 ;;
5864 sparc*-*linux*)
5865 LD="${LD-ld} -m elf64_sparc"
5866 ;;
5867 esac
5868 ;;
5869 esac
5870 fi
5871 rm -rf conftest*
5872 ;;
5873
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
5879echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5880if test "${lt_cv_cc_needs_belf+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5882else
5883 ac_ext=c
5884ac_cpp='$CPP $CPPFLAGS'
5885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887ac_compiler_gnu=$ac_cv_c_compiler_gnu
5888
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
5891echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5892 { (exit 1); exit 1; }; }
5893fi
5894cat >conftest.$ac_ext <<_ACEOF
5895/* confdefs.h. */
5896_ACEOF
5897cat confdefs.h >>conftest.$ac_ext
5898cat >>conftest.$ac_ext <<_ACEOF
5899/* end confdefs.h. */
5900
5901int
5902main ()
5903{
5904
5905 ;
5906 return 0;
5907}
5908_ACEOF
5909rm -f conftest.$ac_objext conftest$ac_exeext
5910if { (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
5932else
5933 echo "$as_me: failed program was:" >&5
5934sed 's/^/| /' conftest.$ac_ext >&5
5935
5936lt_cv_cc_needs_belf=no
5937fi
5938rm -f conftest.err conftest.$ac_objext \
5939 conftest$ac_exeext conftest.$ac_ext
5940 ac_ext=c
5941ac_cpp='$CPP $CPPFLAGS'
5942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5944ac_compiler_gnu=$ac_cv_c_compiler_gnu
5945
5946fi
5947echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5948echo "${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"
5952 fi
5953 ;;
5954sparc*-*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" ;;
93e92f52
PG
5966 *)
5967 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5968 LD="${LD-ld} -64"
5969 fi
5970 ;;
1cf3d07d
SE
5971 esac
5972 ;;
5973 esac
5974 fi
5975 rm -rf conftest*
5976 ;;
5977esac
5978
5979need_locks="$enable_libtool_lock"
5980
93e92f52
PG
5981
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.
5986set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5987echo "$as_me:$LINENO: checking for $ac_word" >&5
5988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5989if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
1cf3d07d
SE
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991else
93e92f52
PG
5992 if test -n "$DSYMUTIL"; then
5993 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5994else
5995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996for as_dir in $PATH
1cf3d07d 5997do
93e92f52
PG
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
1cf3d07d 6005 fi
93e92f52
PG
6006done
6007done
6008
6009fi
6010fi
6011DSYMUTIL=$ac_cv_prog_DSYMUTIL
6012if test -n "$DSYMUTIL"; then
6013 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6014echo "${ECHO_T}$DSYMUTIL" >&6
6015else
6016 echo "$as_me:$LINENO: result: no" >&5
6017echo "${ECHO_T}no" >&6
6018fi
6019
6020fi
6021if 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.
6024set dummy dsymutil; ac_word=$2
6025echo "$as_me:$LINENO: checking for $ac_word" >&5
6026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6027if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6029else
6030 if test -n "$ac_ct_DSYMUTIL"; then
6031 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6032else
6033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034for as_dir in $PATH
6035do
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
6043 fi
6044done
6045done
6046
6047 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6048fi
6049fi
6050ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6051if test -n "$ac_ct_DSYMUTIL"; then
6052 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6053echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6054else
6055 echo "$as_me:$LINENO: result: no" >&5
6056echo "${ECHO_T}no" >&6
6057fi
6058
6059 DSYMUTIL=$ac_ct_DSYMUTIL
6060else
6061 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6062fi
6063
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.
6066set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6067echo "$as_me:$LINENO: checking for $ac_word" >&5
6068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6069if test "${ac_cv_prog_NMEDIT+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071else
6072 if test -n "$NMEDIT"; then
6073 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6074else
6075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076for as_dir in $PATH
6077do
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
6085 fi
6086done
6087done
6088
6089fi
6090fi
6091NMEDIT=$ac_cv_prog_NMEDIT
6092if test -n "$NMEDIT"; then
6093 echo "$as_me:$LINENO: result: $NMEDIT" >&5
6094echo "${ECHO_T}$NMEDIT" >&6
6095else
6096 echo "$as_me:$LINENO: result: no" >&5
6097echo "${ECHO_T}no" >&6
6098fi
6099
6100fi
6101if 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.
6104set dummy nmedit; ac_word=$2
6105echo "$as_me:$LINENO: checking for $ac_word" >&5
6106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6107if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109else
6110 if test -n "$ac_ct_NMEDIT"; then
6111 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6112else
6113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114for as_dir in $PATH
6115do
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
6123 fi
6124done
6125done
6126
6127 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6128fi
6129fi
6130ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6131if test -n "$ac_ct_NMEDIT"; then
6132 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6133echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6134else
6135 echo "$as_me:$LINENO: result: no" >&5
6136echo "${ECHO_T}no" >&6
6137fi
6138
6139 NMEDIT=$ac_ct_NMEDIT
6140else
6141 NMEDIT="$ac_cv_prog_NMEDIT"
6142fi
6143
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.
6146set dummy ${ac_tool_prefix}lipo; ac_word=$2
6147echo "$as_me:$LINENO: checking for $ac_word" >&5
6148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6149if test "${ac_cv_prog_LIPO+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6151else
6152 if test -n "$LIPO"; then
6153 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6154else
6155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156for as_dir in $PATH
6157do
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
6165 fi
6166done
6167done
6168
6169fi
6170fi
6171LIPO=$ac_cv_prog_LIPO
6172if test -n "$LIPO"; then
6173 echo "$as_me:$LINENO: result: $LIPO" >&5
6174echo "${ECHO_T}$LIPO" >&6
6175else
6176 echo "$as_me:$LINENO: result: no" >&5
6177echo "${ECHO_T}no" >&6
6178fi
6179
6180fi
6181if 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.
6184set dummy lipo; ac_word=$2
6185echo "$as_me:$LINENO: checking for $ac_word" >&5
6186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6187if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6189else
6190 if test -n "$ac_ct_LIPO"; then
6191 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6192else
6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194for as_dir in $PATH
6195do
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
6203 fi
6204done
6205done
6206
6207 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6208fi
6209fi
6210ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6211if test -n "$ac_ct_LIPO"; then
6212 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6213echo "${ECHO_T}$ac_ct_LIPO" >&6
6214else
6215 echo "$as_me:$LINENO: result: no" >&5
6216echo "${ECHO_T}no" >&6
6217fi
6218
6219 LIPO=$ac_ct_LIPO
6220else
6221 LIPO="$ac_cv_prog_LIPO"
6222fi
6223
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.
6226set dummy ${ac_tool_prefix}otool; ac_word=$2
6227echo "$as_me:$LINENO: checking for $ac_word" >&5
6228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6229if test "${ac_cv_prog_OTOOL+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6231else
6232 if test -n "$OTOOL"; then
6233 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6234else
6235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236for as_dir in $PATH
6237do
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
6245 fi
6246done
6247done
6248
6249fi
6250fi
6251OTOOL=$ac_cv_prog_OTOOL
6252if test -n "$OTOOL"; then
6253 echo "$as_me:$LINENO: result: $OTOOL" >&5
6254echo "${ECHO_T}$OTOOL" >&6
6255else
6256 echo "$as_me:$LINENO: result: no" >&5
6257echo "${ECHO_T}no" >&6
6258fi
6259
6260fi
6261if 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.
6264set dummy otool; ac_word=$2
6265echo "$as_me:$LINENO: checking for $ac_word" >&5
6266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6267if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6269else
6270 if test -n "$ac_ct_OTOOL"; then
6271 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6272else
6273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274for as_dir in $PATH
6275do
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
6283 fi
6284done
6285done
6286
6287 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6288fi
6289fi
6290ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6291if test -n "$ac_ct_OTOOL"; then
6292 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6293echo "${ECHO_T}$ac_ct_OTOOL" >&6
6294else
6295 echo "$as_me:$LINENO: result: no" >&5
6296echo "${ECHO_T}no" >&6
6297fi
6298
6299 OTOOL=$ac_ct_OTOOL
6300else
6301 OTOOL="$ac_cv_prog_OTOOL"
6302fi
6303
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.
6306set dummy ${ac_tool_prefix}otool64; ac_word=$2
6307echo "$as_me:$LINENO: checking for $ac_word" >&5
6308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6309if test "${ac_cv_prog_OTOOL64+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311else
6312 if test -n "$OTOOL64"; then
6313 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6314else
6315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316for as_dir in $PATH
6317do
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
6325 fi
6326done
6327done
6328
6329fi
6330fi
6331OTOOL64=$ac_cv_prog_OTOOL64
6332if test -n "$OTOOL64"; then
6333 echo "$as_me:$LINENO: result: $OTOOL64" >&5
6334echo "${ECHO_T}$OTOOL64" >&6
6335else
6336 echo "$as_me:$LINENO: result: no" >&5
6337echo "${ECHO_T}no" >&6
6338fi
6339
6340fi
6341if 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.
6344set dummy otool64; ac_word=$2
6345echo "$as_me:$LINENO: checking for $ac_word" >&5
6346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6347if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6349else
6350 if test -n "$ac_ct_OTOOL64"; then
6351 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6352else
6353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354for as_dir in $PATH
6355do
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
6363 fi
6364done
6365done
6366
6367 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6368fi
6369fi
6370ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6371if test -n "$ac_ct_OTOOL64"; then
6372 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6373echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6374else
6375 echo "$as_me:$LINENO: result: no" >&5
6376echo "${ECHO_T}no" >&6
6377fi
6378
6379 OTOOL64=$ac_ct_OTOOL64
6380else
6381 OTOOL64="$ac_cv_prog_OTOOL64"
6382fi
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6411echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6412if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6414else
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
6432 fi
6433 rm -rf libconftest.dylib*
6434 rm -f conftest.*
6435 fi
6436fi
6437echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6438echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6439 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6440echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6441if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6443else
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
6450echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6451 { (exit 1); exit 1; }; }
6452fi
6453cat >conftest.$ac_ext <<_ACEOF
6454/* confdefs.h. */
6455_ACEOF
6456cat confdefs.h >>conftest.$ac_ext
6457cat >>conftest.$ac_ext <<_ACEOF
6458/* end confdefs.h. */
6459
6460int
6461main ()
6462{
6463
6464 ;
6465 return 0;
6466}
6467_ACEOF
6468rm -f conftest.$ac_objext conftest$ac_exeext
6469if { (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
6491else
6492 echo "$as_me: failed program was:" >&5
6493sed 's/^/| /' conftest.$ac_ext >&5
6494
6495lt_cv_ld_exported_symbols_list=no
6496fi
6497rm -f conftest.err conftest.$ac_objext \
6498 conftest$ac_exeext conftest.$ac_ext
6499 LDFLAGS="$save_LDFLAGS"
6500
6501fi
6502echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6503echo "${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
6521 ;;
6522 esac
6523 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6524 _lt_dar_single_mod='$single_module'
6525 fi
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}'
6530 fi
6531 if test "$DSYMUTIL" != ":"; then
6532 _lt_dsymutil='~$DSYMUTIL $lib || :'
6533 else
6534 _lt_dsymutil=
6535 fi
6536 ;;
6537 esac
6538
6539ac_ext=c
6540ac_cpp='$CPP $CPPFLAGS'
6541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6543ac_compiler_gnu=$ac_cv_c_compiler_gnu
6544echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6545echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6546# On Suns, sometimes $CPP names a directory.
6547if test -n "$CPP" && test -d "$CPP"; then
6548 CPP=
6549fi
6550if test -z "$CPP"; then
6551 if test "${ac_cv_prog_CPP+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6553else
6554 # Double quotes because CPP needs to be expanded
6555 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6556 do
6557 ac_preproc_ok=false
6558for ac_c_preproc_warn_flag in '' yes
6559do
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
6569cat confdefs.h >>conftest.$ac_ext
6570cat >>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
6579if { (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=
6592 fi
6593else
1cf3d07d
SE
6594 ac_cpp_err=yes
6595fi
6596if test -z "$ac_cpp_err"; then
6597 :
6598else
6599 echo "$as_me: failed program was:" >&5
6600sed 's/^/| /' conftest.$ac_ext >&5
6601
6602 # Broken: fails on valid input.
6603continue
6604fi
6605rm -f conftest.err conftest.$ac_ext
6606
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
6612cat confdefs.h >>conftest.$ac_ext
6613cat >>conftest.$ac_ext <<_ACEOF
6614/* end confdefs.h. */
6615#include <ac_nonexistent.h>
6616_ACEOF
6617if { (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=
6630 fi
6631else
6632 ac_cpp_err=yes
6633fi
6634if test -z "$ac_cpp_err"; then
6635 # Broken: success on invalid input.
6636continue
6637else
6638 echo "$as_me: failed program was:" >&5
6639sed 's/^/| /' conftest.$ac_ext >&5
6640
6641 # Passes both tests.
6642ac_preproc_ok=:
6643break
6644fi
6645rm -f conftest.err conftest.$ac_ext
6646
6647done
6648# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6649rm -f conftest.err conftest.$ac_ext
6650if $ac_preproc_ok; then
6651 break
6652fi
6653
6654 done
6655 ac_cv_prog_CPP=$CPP
6656
6657fi
6658 CPP=$ac_cv_prog_CPP
6659else
6660 ac_cv_prog_CPP=$CPP
6661fi
6662echo "$as_me:$LINENO: result: $CPP" >&5
6663echo "${ECHO_T}$CPP" >&6
6664ac_preproc_ok=false
6665for ac_c_preproc_warn_flag in '' yes
6666do
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
6676cat confdefs.h >>conftest.$ac_ext
6677cat >>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
6686if { (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=
6699 fi
6700else
6701 ac_cpp_err=yes
6702fi
6703if test -z "$ac_cpp_err"; then
6704 :
6705else
6706 echo "$as_me: failed program was:" >&5
6707sed 's/^/| /' conftest.$ac_ext >&5
6708
6709 # Broken: fails on valid input.
6710continue
6711fi
6712rm -f conftest.err conftest.$ac_ext
6713
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
6719cat confdefs.h >>conftest.$ac_ext
6720cat >>conftest.$ac_ext <<_ACEOF
6721/* end confdefs.h. */
6722#include <ac_nonexistent.h>
6723_ACEOF
6724if { (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=
6737 fi
6738else
6739 ac_cpp_err=yes
6740fi
6741if test -z "$ac_cpp_err"; then
6742 # Broken: success on invalid input.
6743continue
6744else
6745 echo "$as_me: failed program was:" >&5
6746sed 's/^/| /' conftest.$ac_ext >&5
6747
6748 # Passes both tests.
6749ac_preproc_ok=:
6750break
6751fi
6752rm -f conftest.err conftest.$ac_ext
6753
6754done
6755# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6756rm -f conftest.err conftest.$ac_ext
6757if $ac_preproc_ok; then
6758 :
6759else
18c04407
RW
6760 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6761echo "$as_me: error: in \`$ac_pwd':" >&2;}
6762{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1cf3d07d
SE
6763See \`config.log' for more details." >&5
6764echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6765See \`config.log' for more details." >&2;}
18c04407 6766 { (exit 1); exit 1; }; }; }
1cf3d07d
SE
6767fi
6768
6769ac_ext=c
6770ac_cpp='$CPP $CPPFLAGS'
6771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6773ac_compiler_gnu=$ac_cv_c_compiler_gnu
6774
6775
6776echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6777echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6778if test "${ac_cv_header_stdc+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6780else
6781 cat >conftest.$ac_ext <<_ACEOF
6782/* confdefs.h. */
6783_ACEOF
6784cat confdefs.h >>conftest.$ac_ext
6785cat >>conftest.$ac_ext <<_ACEOF
6786/* end confdefs.h. */
6787#include <stdlib.h>
6788#include <stdarg.h>
6789#include <string.h>
6790#include <float.h>
6791
6792int
6793main ()
6794{
6795
6796 ;
6797 return 0;
6798}
6799_ACEOF
6800rm -f conftest.$ac_objext
6801if { (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
6823else
6824 echo "$as_me: failed program was:" >&5
6825sed 's/^/| /' conftest.$ac_ext >&5
6826
6827ac_cv_header_stdc=no
6828fi
6829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6830
6831if 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
6836cat confdefs.h >>conftest.$ac_ext
6837cat >>conftest.$ac_ext <<_ACEOF
6838/* end confdefs.h. */
6839#include <string.h>
6840
6841_ACEOF
6842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6843 $EGREP "memchr" >/dev/null 2>&1; then
6844 :
6845else
6846 ac_cv_header_stdc=no
6847fi
6848rm -f conftest*
6849
6850fi
6851
6852if 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
6857cat confdefs.h >>conftest.$ac_ext
6858cat >>conftest.$ac_ext <<_ACEOF
6859/* end confdefs.h. */
6860#include <stdlib.h>
6861
6862_ACEOF
6863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6864 $EGREP "free" >/dev/null 2>&1; then
6865 :
6866else
6867 ac_cv_header_stdc=no
6868fi
6869rm -f conftest*
6870
6871fi
6872
6873if 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
6876 :
6877else
6878 cat >conftest.$ac_ext <<_ACEOF
6879/* confdefs.h. */
6880_ACEOF
6881cat confdefs.h >>conftest.$ac_ext
6882cat >>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
6895
6896#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6897int
6898main ()
6899{
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);
6906}
6907_ACEOF
6908rm -f conftest$ac_exeext
6909if { (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
6919 :
6920else
6921 echo "$as_me: program exited with status $ac_status" >&5
6922echo "$as_me: failed program was:" >&5
6923sed 's/^/| /' conftest.$ac_ext >&5
6924
6925( exit $ac_status )
6926ac_cv_header_stdc=no
6927fi
6928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6929fi
6930fi
6931fi
6932echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6933echo "${ECHO_T}$ac_cv_header_stdc" >&6
6934if test $ac_cv_header_stdc = yes; then
6935
6936cat >>confdefs.h <<\_ACEOF
6937#define STDC_HEADERS 1
6938_ACEOF
6939
6940fi
6941
6942# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6953 inttypes.h stdint.h unistd.h
6954do
6955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6956echo "$as_me:$LINENO: checking for $ac_header" >&5
6957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6958if eval "test \"\${$as_ac_Header+set}\" = set"; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6960else
6961 cat >conftest.$ac_ext <<_ACEOF
6962/* confdefs.h. */
6963_ACEOF
6964cat confdefs.h >>conftest.$ac_ext
6965cat >>conftest.$ac_ext <<_ACEOF
6966/* end confdefs.h. */
6967$ac_includes_default
6968
6969#include <$ac_header>
6970_ACEOF
6971rm -f conftest.$ac_objext
6972if { (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"
6994else
6995 echo "$as_me: failed program was:" >&5
6996sed 's/^/| /' conftest.$ac_ext >&5
6997
6998eval "$as_ac_Header=no"
6999fi
7000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7001fi
7002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7003echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7004if 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
7008
7009fi
7010
7011done
7012
7013
7014
7015for ac_header in dlfcn.h
7016do
7017as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7018echo "$as_me:$LINENO: checking for $ac_header" >&5
7019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7020if eval "test \"\${$as_ac_Header+set}\" = set"; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022else
7023 cat >conftest.$ac_ext <<_ACEOF
7024/* confdefs.h. */
7025_ACEOF
7026cat confdefs.h >>conftest.$ac_ext
7027cat >>conftest.$ac_ext <<_ACEOF
7028/* end confdefs.h. */
7029$ac_includes_default
7030
7031#include <$ac_header>
7032_ACEOF
7033rm -f conftest.$ac_objext
7034if { (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"
7056else
7057 echo "$as_me: failed program was:" >&5
7058sed 's/^/| /' conftest.$ac_ext >&5
7059
7060eval "$as_ac_Header=no"
7061fi
7062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7063fi
7064echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7065echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7066if 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
7070
7071fi
7072
7073done
7074
7075
7076
7077ac_ext=cc
7078ac_cpp='$CXXCPP $CPPFLAGS'
7079ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7080ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7081ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7082if 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
7084 do
7085 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7086set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7087echo "$as_me:$LINENO: checking for $ac_word" >&5
7088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7089if test "${ac_cv_prog_CXX+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091else
7092 if test -n "$CXX"; then
7093 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7094else
7095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096for as_dir in $PATH
7097do
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
7105 fi
7106done
7107done
7108
7109fi
7110fi
7111CXX=$ac_cv_prog_CXX
7112if test -n "$CXX"; then
7113 echo "$as_me:$LINENO: result: $CXX" >&5
7114echo "${ECHO_T}$CXX" >&6
7115else
7116 echo "$as_me:$LINENO: result: no" >&5
7117echo "${ECHO_T}no" >&6
7118fi
7119
7120 test -n "$CXX" && break
7121 done
7122fi
7123if 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
7126do
7127 # Extract the first word of "$ac_prog", so it can be a program name with args.
7128set dummy $ac_prog; ac_word=$2
7129echo "$as_me:$LINENO: checking for $ac_word" >&5
7130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7131if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133else
7134 if test -n "$ac_ct_CXX"; then
7135 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7136else
7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
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
7147 fi
7148done
7149done
7150
7151fi
7152fi
7153ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7154if test -n "$ac_ct_CXX"; then
7155 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7156echo "${ECHO_T}$ac_ct_CXX" >&6
7157else
7158 echo "$as_me:$LINENO: result: no" >&5
7159echo "${ECHO_T}no" >&6
7160fi
7161
7162 test -n "$ac_ct_CXX" && break
7163done
7164test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7165
7166 CXX=$ac_ct_CXX
7167fi
7168
7169
7170# Provide some information about the compiler.
7171echo "$as_me:$LINENO:" \
7172 "checking for C++ compiler version" >&5
7173ac_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); }
7189
7190echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7191echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7192if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7194else
7195 cat >conftest.$ac_ext <<_ACEOF
7196/* confdefs.h. */
7197_ACEOF
7198cat confdefs.h >>conftest.$ac_ext
7199cat >>conftest.$ac_ext <<_ACEOF
7200/* end confdefs.h. */
7201
7202int
7203main ()
7204{
7205#ifndef __GNUC__
7206 choke me
7207#endif
7208
7209 ;
7210 return 0;
7211}
7212_ACEOF
7213rm -f conftest.$ac_objext
7214if { (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
7236else
7237 echo "$as_me: failed program was:" >&5
7238sed 's/^/| /' conftest.$ac_ext >&5
7239
7240ac_compiler_gnu=no
7241fi
7242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7243ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7244
7245fi
7246echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7247echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7248GXX=`test $ac_compiler_gnu = yes && echo yes`
7249ac_test_CXXFLAGS=${CXXFLAGS+set}
7250ac_save_CXXFLAGS=$CXXFLAGS
7251CXXFLAGS="-g"
7252echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7253echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7254if test "${ac_cv_prog_cxx_g+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7256else
7257 cat >conftest.$ac_ext <<_ACEOF
7258/* confdefs.h. */
7259_ACEOF
7260cat confdefs.h >>conftest.$ac_ext
7261cat >>conftest.$ac_ext <<_ACEOF
7262/* end confdefs.h. */
7263
7264int
7265main ()
7266{
7267
7268 ;
7269 return 0;
7270}
7271_ACEOF
7272rm -f conftest.$ac_objext
7273if { (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
7295else
7296 echo "$as_me: failed program was:" >&5
7297sed 's/^/| /' conftest.$ac_ext >&5
7298
7299ac_cv_prog_cxx_g=no
7300fi
7301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7302fi
7303echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7304echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7305if test "$ac_test_CXXFLAGS" = set; then
7306 CXXFLAGS=$ac_save_CXXFLAGS
7307elif test $ac_cv_prog_cxx_g = yes; then
7308 if test "$GXX" = yes; then
7309 CXXFLAGS="-g -O2"
7310 else
7311 CXXFLAGS="-g"
7312 fi
7313else
7314 if test "$GXX" = yes; then
7315 CXXFLAGS="-O2"
7316 else
7317 CXXFLAGS=
7318 fi
7319fi
7320for 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);'
7327do
7328 cat >conftest.$ac_ext <<_ACEOF
7329/* confdefs.h. */
7330_ACEOF
7331cat confdefs.h >>conftest.$ac_ext
7332cat >>conftest.$ac_ext <<_ACEOF
7333/* end confdefs.h. */
7334$ac_declaration
7335#include <stdlib.h>
7336int
7337main ()
7338{
7339exit (42);
7340 ;
7341 return 0;
7342}
7343_ACEOF
7344rm -f conftest.$ac_objext
7345if { (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
7366 :
7367else
7368 echo "$as_me: failed program was:" >&5
7369sed 's/^/| /' conftest.$ac_ext >&5
7370
7371continue
7372fi
7373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7374 cat >conftest.$ac_ext <<_ACEOF
7375/* confdefs.h. */
7376_ACEOF
7377cat confdefs.h >>conftest.$ac_ext
7378cat >>conftest.$ac_ext <<_ACEOF
7379/* end confdefs.h. */
7380$ac_declaration
7381int
7382main ()
7383{
7384exit (42);
7385 ;
7386 return 0;
7387}
7388_ACEOF
7389rm -f conftest.$ac_objext
7390if { (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
7412else
7413 echo "$as_me: failed program was:" >&5
7414sed 's/^/| /' conftest.$ac_ext >&5
7415
7416fi
7417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7418done
7419rm -f conftest*
7420if test -n "$ac_declaration"; then
7421 echo '#ifdef __cplusplus' >>confdefs.h
7422 echo $ac_declaration >>confdefs.h
7423 echo '#endif' >>confdefs.h
7424fi
7425
7426ac_ext=c
7427ac_cpp='$CPP $CPPFLAGS'
7428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7430ac_compiler_gnu=$ac_cv_c_compiler_gnu
7431
7432depcc="$CXX" am_compiler_list=
7433
7434echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7435echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7436if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7438else
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
7457
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`
7461 fi
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.
7466 #
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
7478
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
7487 fi
7488 ;;
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
7513 fi
7514 fi
7515 done
7516
7517 cd ..
7518 rm -rf conftest.dir
7519else
7520 am_cv_CXX_dependencies_compiler_type=none
7521fi
7522
7523fi
7524echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7525echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7526CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7527
7528
7529
7530if
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='#'
7535else
7536 am__fastdepCXX_TRUE='#'
7537 am__fastdepCXX_FALSE=
7538fi
7539
7540
7541if 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
7545ac_cpp='$CXXCPP $CPPFLAGS'
7546ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7547ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7548ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7549echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7550echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7551if test -z "$CXXCPP"; then
7552 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554else
7555 # Double quotes because CXXCPP needs to be expanded
7556 for CXXCPP in "$CXX -E" "/lib/cpp"
7557 do
7558 ac_preproc_ok=false
7559for ac_cxx_preproc_warn_flag in '' yes
7560do
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
7570cat confdefs.h >>conftest.$ac_ext
7571cat >>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
7580if { (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=
7593 fi
7594else
7595 ac_cpp_err=yes
7596fi
7597if test -z "$ac_cpp_err"; then
7598 :
7599else
7600 echo "$as_me: failed program was:" >&5
7601sed 's/^/| /' conftest.$ac_ext >&5
7602
7603 # Broken: fails on valid input.
7604continue
7605fi
7606rm -f conftest.err conftest.$ac_ext
7607
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
7613cat confdefs.h >>conftest.$ac_ext
7614cat >>conftest.$ac_ext <<_ACEOF
7615/* end confdefs.h. */
7616#include <ac_nonexistent.h>
7617_ACEOF
7618if { (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=
7631 fi
7632else
7633 ac_cpp_err=yes
7634fi
7635if test -z "$ac_cpp_err"; then
7636 # Broken: success on invalid input.
7637continue
7638else
7639 echo "$as_me: failed program was:" >&5
7640sed 's/^/| /' conftest.$ac_ext >&5
7641
7642 # Passes both tests.
7643ac_preproc_ok=:
7644break
7645fi
7646rm -f conftest.err conftest.$ac_ext
7647
7648done
7649# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7650rm -f conftest.err conftest.$ac_ext
7651if $ac_preproc_ok; then
7652 break
7653fi
7654
7655 done
7656 ac_cv_prog_CXXCPP=$CXXCPP
7657
7658fi
7659 CXXCPP=$ac_cv_prog_CXXCPP
7660else
7661 ac_cv_prog_CXXCPP=$CXXCPP
7662fi
7663echo "$as_me:$LINENO: result: $CXXCPP" >&5
7664echo "${ECHO_T}$CXXCPP" >&6
7665ac_preproc_ok=false
7666for ac_cxx_preproc_warn_flag in '' yes
7667do
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
7677cat confdefs.h >>conftest.$ac_ext
7678cat >>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
7687if { (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=
7700 fi
7701else
7702 ac_cpp_err=yes
7703fi
7704if test -z "$ac_cpp_err"; then
7705 :
7706else
7707 echo "$as_me: failed program was:" >&5
7708sed 's/^/| /' conftest.$ac_ext >&5
7709
7710 # Broken: fails on valid input.
7711continue
7712fi
7713rm -f conftest.err conftest.$ac_ext
7714
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
7720cat confdefs.h >>conftest.$ac_ext
7721cat >>conftest.$ac_ext <<_ACEOF
7722/* end confdefs.h. */
7723#include <ac_nonexistent.h>
7724_ACEOF
7725if { (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=
7738 fi
7739else
7740 ac_cpp_err=yes
7741fi
7742if test -z "$ac_cpp_err"; then
7743 # Broken: success on invalid input.
7744continue
7745else
7746 echo "$as_me: failed program was:" >&5
7747sed 's/^/| /' conftest.$ac_ext >&5
7748
7749 # Passes both tests.
7750ac_preproc_ok=:
7751break
7752fi
7753rm -f conftest.err conftest.$ac_ext
7754
7755done
7756# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7757rm -f conftest.err conftest.$ac_ext
7758if $ac_preproc_ok; then
7759 :
7760else
18c04407
RW
7761 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7762echo "$as_me: error: in \`$ac_pwd':" >&2;}
7763_lt_caught_CXX_error=yes; }
1cf3d07d
SE
7764fi
7765
93e92f52
PG
7766ac_ext=c
7767ac_cpp='$CPP $CPPFLAGS'
7768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7770ac_compiler_gnu=$ac_cv_c_compiler_gnu
7771
7772else
7773 _lt_caught_CXX_error=yes
7774fi
7775
7776
7777
7778
7779
7780# Set options
7781
7782
7783
7784 enable_dlopen=no
7785
7786
7787 enable_win32_dll=no
7788
7789
7790 # Check whether --enable-shared or --disable-shared was given.
7791if 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 ;;
7797 *)
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
7805 fi
7806 done
7807 IFS="$lt_save_ifs"
7808 ;;
7809 esac
7810else
7811 enable_shared=yes
7812fi;
7813
7814
7815
7816
7817
7818
7819
7820
7821 # Check whether --enable-static or --disable-static was given.
7822if 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 ;;
7828 *)
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
7836 fi
7837 done
7838 IFS="$lt_save_ifs"
7839 ;;
7840 esac
7841else
7842 enable_static=yes
7843fi;
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853# Check whether --with-pic or --without-pic was given.
7854if test "${with_pic+set}" = set; then
7855 withval="$with_pic"
7856 pic_mode="$withval"
7857else
7858 pic_mode=default
7859fi;
7860
7861test -z "$pic_mode" && pic_mode=default
7862
7863
7864
7865
7866
7867
7868
7869 # Check whether --enable-fast-install or --disable-fast-install was given.
7870if 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 ;;
7876 *)
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
7884 fi
7885 done
7886 IFS="$lt_save_ifs"
7887 ;;
7888 esac
7889else
7890 enable_fast_install=yes
7891fi;
7892
7893
7894
7895
1cf3d07d 7896
1cf3d07d
SE
7897
7898
7899
7900
7901
7902# This can be used to rebuild libtool when needed
7903LIBTOOL_DEPS="$ltmain"
7904
7905# Always use our own libtool.
7906LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932test -z "$LN_S" && LN_S="ln -s"
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947if test -n "${ZSH_VERSION+set}" ; then
7948 setopt NO_GLOB_SUBST
7949fi
7950
7951echo "$as_me:$LINENO: checking for objdir" >&5
7952echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7953if test "${lt_cv_objdir+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955else
7956 rm -f .libs 2>/dev/null
7957mkdir .libs 2>/dev/null
7958if test -d .libs; then
7959 lt_cv_objdir=.libs
7960else
7961 # MS-DOS does not allow filenames that begin with a dot.
7962 lt_cv_objdir=_libs
7963fi
7964rmdir .libs 2>/dev/null
7965fi
7966echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7967echo "${ECHO_T}$lt_cv_objdir" >&6
7968objdir=$lt_cv_objdir
7969
7970
7971
7972
7973
7974cat >>confdefs.h <<_ACEOF
7975#define LT_OBJDIR "$lt_cv_objdir/"
7976_ACEOF
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994case $host_os in
7995aix3*)
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
8002 fi
8003 ;;
8004esac
8005
8006# Sed substitution that helps us do robust quoting. It backslashifies
8007# metacharacters that are still active within double-quoted strings.
8008sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8009
8010# Same as above, but do not quote variable references.
8011double_quote_subst='s/\(["`\\]\)/\\\1/g'
8012
8013# Sed substitution to delay expansion of an escaped shell variable in a
8014# double_quote_subst'ed string.
8015delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8016
8017# Sed substitution to delay expansion of an escaped single quote.
8018delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8019
8020# Sed substitution to avoid accidental globbing in evaled expressions
8021no_glob_subst='s/\*/\\\*/g'
8022
8023# Global variables:
8024ofile=libtool
8025can_build_shared=yes
8026
8027# All known linkers require a `.a' archive for static linking (except MSVC,
8028# which needs '.lib').
8029libext=a
8030
8031with_gnu_ld="$lt_cv_prog_gnu_ld"
8032
8033old_CC="$CC"
8034old_CFLAGS="$CFLAGS"
8035
8036# Set sane defaults for various variables
8037test -z "$CC" && CC=cc
8038test -z "$LTCC" && LTCC=$CC
8039test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8040test -z "$LD" && LD=ld
8041test -z "$ac_objext" && ac_objext=o
8042
8043for 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
8050done
8051cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8052
8053
8054# Only perform the check for file, if the check method requires it
8055test -z "$MAGIC_CMD" && MAGIC_CMD=file
8056case $deplibs_check_method in
8057file_magic*)
8058 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8059 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8060echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8061if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8063else
8064 case $MAGIC_CMD in
8065[\\/*] | ?:[\\/]*)
8066 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8067 ;;
8068*)
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
8084 :
8085 else
8086 cat <<_LT_EOF 1>&2
8087
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
8096
8097_LT_EOF
8098 fi ;;
8099 esac
8100 fi
8101 break
8102 fi
8103 done
8104 IFS="$lt_save_ifs"
8105 MAGIC_CMD="$lt_save_MAGIC_CMD"
8106 ;;
8107esac
8108fi
8109
8110MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8111if test -n "$MAGIC_CMD"; then
8112 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8113echo "${ECHO_T}$MAGIC_CMD" >&6
8114else
8115 echo "$as_me:$LINENO: result: no" >&5
8116echo "${ECHO_T}no" >&6
8117fi
8118
8119
8120
8121
8122
8123if 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
8126echo $ECHO_N "checking for file... $ECHO_C" >&6
8127if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8129else
8130 case $MAGIC_CMD in
8131[\\/*] | ?:[\\/]*)
8132 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8133 ;;
8134*)
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
8150 :
8151 else
8152 cat <<_LT_EOF 1>&2
8153
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
8162
8163_LT_EOF
8164 fi ;;
8165 esac
8166 fi
8167 break
8168 fi
8169 done
8170 IFS="$lt_save_ifs"
8171 MAGIC_CMD="$lt_save_MAGIC_CMD"
8172 ;;
8173esac
8174fi
8175
8176MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8177if test -n "$MAGIC_CMD"; then
8178 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8179echo "${ECHO_T}$MAGIC_CMD" >&6
8180else
8181 echo "$as_me:$LINENO: result: no" >&5
8182echo "${ECHO_T}no" >&6
8183fi
8184
8185
8186 else
8187 MAGIC_CMD=:
8188 fi
8189fi
8190
8191 fi
8192 ;;
8193esac
8194
8195# Use C for the default configuration in the libtool script
8196
8197lt_save_CC="$CC"
8198ac_ext=c
8199ac_cpp='$CPP $CPPFLAGS'
8200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8202ac_compiler_gnu=$ac_cv_c_compiler_gnu
8203
8204
8205# Source file extension for C test sources.
8206ac_ext=c
8207
8208# Object file extension for compiled C test sources.
8209objext=o
8210objext=$objext
8211
8212# Code to be used in simple compile tests
8213lt_simple_compile_test_code="int some_variable = 0;"
8214
8215# Code to be used in simple link tests
8216lt_simple_link_test_code='int main(){return(0);}'
8217
8218
8219
8220
8221
8222
8223
8224# If no C compiler was specified, use CC.
8225LTCC=${LTCC-"$CC"}
8226
8227# If no C compiler flags were specified, use CFLAGS.
8228LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8229
8230# Allow CC to be a program name with arguments.
8231compiler=$CC
8232
8233# Save the default compiler, since it gets overwritten when the other
8234# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8235compiler_DEFAULT=$CC
8236
8237# save warnings/boilerplate of simple test code
8238ac_outfile=conftest.$ac_objext
8239echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8240eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8241_lt_compiler_boilerplate=`cat conftest.err`
8242$RM conftest*
8243
8244ac_outfile=conftest.$ac_objext
8245echo "$lt_simple_link_test_code" >conftest.$ac_ext
8246eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8247_lt_linker_boilerplate=`cat conftest.err`
93e92f52 8248$RM -r conftest*
1cf3d07d
SE
8249
8250
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...
8255if test -n "$compiler"; then
8256
8257lt_prog_compiler_no_builtin_flag=
8258
8259if test "$GCC" = yes; then
8260 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8261
8262 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8263echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8264if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8266else
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:'`
93e92f52 8280 (eval echo "\"\$as_me:8280: $lt_compile\"" >&5)
1cf3d07d
SE
8281 (eval "$lt_compile" 2>conftest.err)
8282 ac_status=$?
8283 cat conftest.err >&5
93e92f52 8284 echo "$as_me:8284: \$? = $ac_status" >&5
1cf3d07d
SE
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
8292 fi
8293 fi
8294 $RM conftest*
8295
8296fi
8297echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8298echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8299
8300if 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"
8302else
8303 :
8304fi
8305
8306fi
8307
8308
8309
8310
8311
8312
8313 lt_prog_compiler_wl=
8314lt_prog_compiler_pic=
8315lt_prog_compiler_static=
8316
8317echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8318echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8319
8320 if test "$GCC" = yes; then
8321 lt_prog_compiler_wl='-Wl,'
8322 lt_prog_compiler_static='-static'
8323
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'
8330 fi
8331 ;;
8332
8333 amigaos*)
93e92f52
PG
8334 case $host_cpu in
8335 powerpc)
8336 # see comment about AmigaOS4 .so support
8337 lt_prog_compiler_pic='-fPIC'
8338 ;;
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'
8344 ;;
8345 esac
1cf3d07d
SE
8346 ;;
8347
8348 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8349 # PIC is the default for these OSes.
8350 ;;
8351
93e92f52 8352 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
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'
8358 ;;
8359
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'
8364 ;;
8365
8366 hpux*)
93e92f52
PG
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.
1cf3d07d 8370 case $host_cpu in
93e92f52 8371 hppa*64*)
1cf3d07d
SE
8372 # +Z the default
8373 ;;
8374 *)
8375 lt_prog_compiler_pic='-fPIC'
8376 ;;
8377 esac
8378 ;;
8379
8380 interix[3-9]*)
8381 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8382 # Instead, we relocate shared libraries at runtime.
8383 ;;
8384
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
8390 ;;
8391
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'
8396 ;;
8397
8398 sysv4*MP*)
8399 if test -d /usr/nec; then
8400 lt_prog_compiler_pic=-Kconform_pic
8401 fi
8402 ;;
8403
8404 *)
8405 lt_prog_compiler_pic='-fPIC'
8406 ;;
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'
8418 fi
8419 ;;
1cf3d07d 8420
93e92f52 8421 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
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'
8425 ;;
8426
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
8434 ;;
8435 *)
8436 lt_prog_compiler_pic='+Z'
8437 ;;
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'
8441 ;;
8442
8443 irix5* | irix6* | nonstopux*)
8444 lt_prog_compiler_wl='-Wl,'
8445 # PIC (with -KPIC) is the default.
8446 lt_prog_compiler_static='-non_shared'
8447 ;;
8448
8449 linux* | k*bsd*-gnu)
8450 case $cc_basename in
93e92f52
PG
8451 # old Intel for x86_64 which still supported -KPIC.
8452 ecc*)
1cf3d07d
SE
8453 lt_prog_compiler_wl='-Wl,'
8454 lt_prog_compiler_pic='-KPIC'
8455 lt_prog_compiler_static='-static'
8456 ;;
93e92f52
PG
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'
8463 ;;
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'
8469 ;;
1cf3d07d
SE
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'
8476 ;;
8477 ccc*)
8478 lt_prog_compiler_wl='-Wl,'
8479 # All Alpha code is PIC.
8480 lt_prog_compiler_static='-non_shared'
8481 ;;
93e92f52
PG
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'
8487 ;;
1cf3d07d
SE
8488 *)
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,'
8495 ;;
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=''
8501 ;;
8502 esac
8503 ;;
8504 esac
8505 ;;
8506
8507 newsos6)
8508 lt_prog_compiler_pic='-KPIC'
8509 lt_prog_compiler_static='-Bstatic'
8510 ;;
8511
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'
8516 ;;
8517
8518 osf3* | osf4* | osf5*)
8519 lt_prog_compiler_wl='-Wl,'
8520 # All OSF/1 code is PIC.
8521 lt_prog_compiler_static='-non_shared'
8522 ;;
8523
8524 rdos*)
8525 lt_prog_compiler_static='-non_shared'
8526 ;;
8527
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 ';;
8534 *)
8535 lt_prog_compiler_wl='-Wl,';;
8536 esac
8537 ;;
8538
8539 sunos4*)
8540 lt_prog_compiler_wl='-Qoption ld '
8541 lt_prog_compiler_pic='-PIC'
8542 lt_prog_compiler_static='-Bstatic'
8543 ;;
8544
8545 sysv4 | sysv4.2uw2* | sysv4.3*)
8546 lt_prog_compiler_wl='-Wl,'
8547 lt_prog_compiler_pic='-KPIC'
8548 lt_prog_compiler_static='-Bstatic'
8549 ;;
8550
8551 sysv4*MP*)
8552 if test -d /usr/nec ;then
8553 lt_prog_compiler_pic='-Kconform_pic'
8554 lt_prog_compiler_static='-Bstatic'
8555 fi
8556 ;;
8557
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'
8562 ;;
8563
8564 unicos*)
8565 lt_prog_compiler_wl='-Wl,'
8566 lt_prog_compiler_can_build_shared=no
8567 ;;
8568
8569 uts4*)
8570 lt_prog_compiler_pic='-pic'
8571 lt_prog_compiler_static='-Bstatic'
8572 ;;
8573
8574 *)
8575 lt_prog_compiler_can_build_shared=no
8576 ;;
8577 esac
8578 fi
8579
8580case $host_os in
8581 # For platforms which do not support PIC, -DPIC is meaningless:
8582 *djgpp*)
8583 lt_prog_compiler_pic=
8584 ;;
8585 *)
8586 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8587 ;;
8588esac
8589echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8590echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8591
8592
8593
8594
8595
8596
8597#
8598# Check to make sure the PIC flag actually works.
8599#
8600if test -n "$lt_prog_compiler_pic"; then
8601 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8602echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
93e92f52 8603if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
1cf3d07d
SE
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8605else
93e92f52 8606 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
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:'`
93e92f52 8619 (eval echo "\"\$as_me:8619: $lt_compile\"" >&5)
1cf3d07d
SE
8620 (eval "$lt_compile" 2>conftest.err)
8621 ac_status=$?
8622 cat conftest.err >&5
93e92f52 8623 echo "$as_me:8623: \$? = $ac_status" >&5
1cf3d07d
SE
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
93e92f52 8630 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
8631 fi
8632 fi
8633 $RM conftest*
8634
8635fi
93e92f52
PG
8636echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8637echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
1cf3d07d 8638
93e92f52 8639if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
8640 case $lt_prog_compiler_pic in
8641 "" | " "*) ;;
8642 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8643 esac
8644else
8645 lt_prog_compiler_pic=
8646 lt_prog_compiler_can_build_shared=no
8647fi
8648
8649fi
8650
8651
8652
8653
8654
8655
8656#
8657# Check to make sure the static flag actually works.
8658#
8659wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8660echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8661echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
93e92f52 8662if test "${lt_cv_prog_compiler_static_works+set}" = set; then
1cf3d07d
SE
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664else
93e92f52 8665 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
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
93e92f52 8678 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8679 fi
8680 else
93e92f52 8681 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8682 fi
8683 fi
93e92f52 8684 $RM -r conftest*
1cf3d07d
SE
8685 LDFLAGS="$save_LDFLAGS"
8686
8687fi
93e92f52
PG
8688echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8689echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
1cf3d07d 8690
93e92f52 8691if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
8692 :
8693else
8694 lt_prog_compiler_static=
8695fi
8696
8697
8698
8699
8700
8701
8702
8703 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8704echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8705if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8707else
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
8714
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:'`
93e92f52 8724 (eval echo "\"\$as_me:8724: $lt_compile\"" >&5)
1cf3d07d
SE
8725 (eval "$lt_compile" 2>out/conftest.err)
8726 ac_status=$?
8727 cat out/conftest.err >&5
93e92f52 8728 echo "$as_me:8728: \$? = $ac_status" >&5
1cf3d07d
SE
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
8737 fi
8738 fi
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*
8748
8749fi
8750echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8751echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8752
8753
8754
8755
8756
8757
8758 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8759echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8760if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8762else
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
8769
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:'`
93e92f52 8779 (eval echo "\"\$as_me:8779: $lt_compile\"" >&5)
1cf3d07d
SE
8780 (eval "$lt_compile" 2>out/conftest.err)
8781 ac_status=$?
8782 cat out/conftest.err >&5
93e92f52 8783 echo "$as_me:8783: \$? = $ac_status" >&5
1cf3d07d
SE
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
8792 fi
8793 fi
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*
8803
8804fi
8805echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8806echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8807
8808
8809
8810
8811hard_links="nottested"
8812if 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
8815echo $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
8823echo "${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
8826echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8827 need_locks=warn
8828 fi
8829else
8830 need_locks=no
8831fi
8832
8833
8834
8835
8836
8837
8838 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8839echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8840
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'.
93e92f52 8873 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
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.
93e92f52 8879 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
8880 extract_expsyms_cmds=
8881
8882 case $host_os in
93e92f52 8883 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
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
8889 fi
8890 ;;
8891 interix*)
8892 # we just hope/assume this is gcc and not c89 (= MSVC++)
8893 with_gnu_ld=yes
8894 ;;
8895 openbsd*)
8896 with_gnu_ld=no
8897 ;;
8898 esac
8899
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}'
8904
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=
8916 fi
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
8925
8926 # See if GNU ld supports shared libraries.
8927 case $host_os in
f3641e7e 8928 aix[3-9]*)
1cf3d07d
SE
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
8933
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.
8939
8940_LT_EOF
8941 fi
8942 ;;
8943
8944 amigaos*)
93e92f52
PG
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=''
8950 ;;
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
8955 ;;
8956 esac
1cf3d07d
SE
8957 ;;
8958
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
8967 fi
8968 ;;
8969
93e92f52 8970 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
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'
8978
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;
8988 fi~
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
8992 fi
8993 ;;
8994
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'
9008 ;;
9009
9010 gnu* | linux* | tpf* | k*bsd*-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
9016 fi
9017 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9018 && test "$tmp_diet" = no
9019 then
9020 tmp_addflag=
93e92f52 9021 tmp_sharedflag='-shared'
1cf3d07d
SE
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'
9026 ;;
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' ;;
93e92f52
PG
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= ;;
1cf3d07d
SE
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' ;;
1cf3d07d
SE
9050 esac
9051 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9052
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'
9058 fi
93e92f52
PG
9059
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'
9072 fi
9073 ;;
9074 esac
1cf3d07d
SE
9075 else
9076 ld_shlibs=no
9077 fi
9078 ;;
9079
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'
9087 fi
9088 ;;
9089
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
9094
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.
9101
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
9108 fi
9109 ;;
9110
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
9116
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.
9123
9124_LT_EOF
9125 ;;
9126 *)
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
9137 fi
9138 ;;
9139 esac
9140 ;;
9141
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
9147 ;;
9148
9149 *)
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
9155 fi
9156 ;;
9157 esac
9158
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=
9164 fi
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
9179 fi
9180 ;;
9181
f3641e7e 9182 aix[4-9]*)
1cf3d07d
SE
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'
9196 fi
9197 aix_use_runtimelinking=no
9198
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.
f3641e7e 9202 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
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
9207 fi
9208 done
9209 ;;
9210 esac
9211
9212 exp_sym_flag='-bexport'
9213 no_entry_flag='-bnoentry'
9214 fi
9215
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.
9221
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,'
9228
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
9238 :
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=
9248 fi
9249 ;;
9250 esac
9251 shared_flag='-shared'
9252 if test "$aix_use_runtimelinking" = yes; then
9253 shared_flag="$shared_flag "'${wl}-G'
9254 fi
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'
9266 fi
9267 fi
9268 fi
9269
93e92f52 9270 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
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
9282echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9283 { (exit 1); exit 1; }; }
9284fi
9285cat >conftest.$ac_ext <<_ACEOF
9286/* confdefs.h. */
9287_ACEOF
9288cat confdefs.h >>conftest.$ac_ext
9289cat >>conftest.$ac_ext <<_ACEOF
9290/* end confdefs.h. */
9291
9292int
9293main ()
9294{
9295
9296 ;
9297 return 0;
9298}
9299_ACEOF
9300rm -f conftest.$ac_objext conftest$ac_exeext
9301if { (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
9322
9323lt_aix_libpath_sed='
9324 /Import File Strings/,/^$/ {
9325 /^0/ {
9326 s/^0 *\(.*\)$/\1/
9327 p
9328 }
9329 }'
9330aix_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.
9332if test -z "$aix_libpath"; then
9333 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9334fi
9335else
9336 echo "$as_me: failed program was:" >&5
9337sed 's/^/| /' conftest.$ac_ext >&5
9338
9339fi
9340rm -f conftest.err conftest.$ac_objext \
9341 conftest$ac_exeext conftest.$ac_ext
9342if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9343
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
9356echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9357 { (exit 1); exit 1; }; }
9358fi
9359cat >conftest.$ac_ext <<_ACEOF
9360/* confdefs.h. */
9361_ACEOF
9362cat confdefs.h >>conftest.$ac_ext
9363cat >>conftest.$ac_ext <<_ACEOF
9364/* end confdefs.h. */
9365
9366int
9367main ()
9368{
9369
9370 ;
9371 return 0;
9372}
9373_ACEOF
9374rm -f conftest.$ac_objext conftest$ac_exeext
9375if { (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
9396
9397lt_aix_libpath_sed='
9398 /Import File Strings/,/^$/ {
9399 /^0/ {
9400 s/^0 *\(.*\)$/\1/
9401 p
9402 }
9403 }'
9404aix_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.
9406if test -z "$aix_libpath"; then
9407 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9408fi
9409else
9410 echo "$as_me: failed program was:" >&5
9411sed 's/^/| /' conftest.$ac_ext >&5
9412
9413fi
9414rm -f conftest.err conftest.$ac_objext \
9415 conftest$ac_exeext conftest.$ac_ext
9416if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9417
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'
9428 fi
9429 fi
9430 ;;
9431
9432 amigaos*)
93e92f52
PG
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=''
9438 ;;
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
9443 ;;
9444 esac
1cf3d07d
SE
9445 ;;
9446
9447 bsdi[45]*)
9448 export_dynamic_flag_spec=-rdynamic
9449 ;;
9450
93e92f52 9451 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
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
9470 ;;
9471
9472 darwin* | rhapsody*)
1cf3d07d 9473
93e92f52
PG
9474
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}"
9492
9493 else
9494 ld_shlibs=no
9495 fi
9496
1cf3d07d
SE
9497 ;;
9498
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
9503 ;;
9504
9505 freebsd1*)
9506 ld_shlibs=no
9507 ;;
9508
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
9518 ;;
9519
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
9526 ;;
9527
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
9534 ;;
9535
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'
9541 fi
9542 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9543 hardcode_libdir_separator=:
9544 hardcode_direct=yes
9545
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'
9550 ;;
9551
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'
9557 fi
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
9568 fi
9569 ;;
9570
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'
9576 ;;
9577 ia64*)
93e92f52 9578 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
9579 ;;
9580 *)
9581 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9582 ;;
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'
9588 ;;
9589 ia64*)
9590 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9591 ;;
9592 *)
9593 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9594 ;;
9595 esac
9596 fi
9597 if test "$with_gnu_ld" = no; then
9598 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9599 hardcode_libdir_separator=:
9600
9601 case $host_cpu in
9602 hppa*64*|ia64*)
9603 hardcode_direct=no
9604 hardcode_shlibpath_var=no
9605 ;;
9606 *)
9607 hardcode_direct=yes
9608 hardcode_direct_absolute=yes
9609 export_dynamic_flag_spec='${wl}-E'
9610
9611 # hardcode_minus_L: Not really in the search PATH,
9612 # but as the default location of the library.
9613 hardcode_minus_L=yes
9614 ;;
9615 esac
9616 fi
9617 ;;
9618
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
9629echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9630 { (exit 1); exit 1; }; }
9631fi
9632cat >conftest.$ac_ext <<_ACEOF
9633int foo(void) {}
9634_ACEOF
9635rm -f conftest.$ac_objext conftest$ac_exeext
9636if { (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'
9658
9659else
9660 echo "$as_me: failed program was:" >&5
9661sed 's/^/| /' conftest.$ac_ext >&5
9662
9663fi
9664rm -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'
9670 fi
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
9676 ;;
9677
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
9683 fi
9684 hardcode_libdir_flag_spec='-R$libdir'
9685 hardcode_direct=yes
9686 hardcode_shlibpath_var=no
9687 ;;
9688
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
9695 ;;
9696
9697 *nto* | *qnx*)
9698 ;;
9699
9700 openbsd*)
93e92f52
PG
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
1cf3d07d 9706 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
93e92f52 9707 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 9708 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
93e92f52
PG
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'
9715 ;;
9716 *)
9717 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9718 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9719 ;;
9720 esac
9721 fi
9722 else
9723 ld_shlibs=no
1cf3d07d
SE
9724 fi
9725 ;;
9726
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'
9733 ;;
9734
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'
9742 fi
9743 archive_cmds_need_lc='no'
9744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9745 hardcode_libdir_separator=:
9746 ;;
9747
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'
9758
9759 # Both c and cxx compiler support -rpath directly
9760 hardcode_libdir_flag_spec='-rpath $libdir'
9761 fi
9762 archive_cmds_need_lc='no'
9763 hardcode_libdir_separator=:
9764 ;;
9765
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'
9780 ;;
9781 *)
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'
9786 ;;
9787 esac
9788 fi
9789 hardcode_libdir_flag_spec='-R$libdir'
9790 hardcode_shlibpath_var=no
9791 case $host_os in
9792 solaris2.[0-5] | solaris2.[0-5].*) ;;
9793 *)
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'
9802 fi
9803 ;;
9804 esac
9805 link_all_deplibs=yes
9806 ;;
9807
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'
9815 fi
9816 hardcode_libdir_flag_spec='-L$libdir'
9817 hardcode_direct=yes
9818 hardcode_minus_L=yes
9819 hardcode_shlibpath_var=no
9820 ;;
9821
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???
9827 ;;
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
9834 ;;
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
9838 ;;
9839 esac
9840 runpath_var='LD_RUN_PATH'
9841 hardcode_shlibpath_var=no
9842 ;;
9843
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'
9848 ;;
9849
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
9857 fi
9858 ;;
9859
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'
9865
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'
9872 fi
9873 ;;
9874
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'
9891
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'
9898 fi
9899 ;;
9900
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
9905 ;;
9906
9907 *)
9908 ld_shlibs=no
9909 ;;
9910 esac
9911
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'
9916 ;;
9917 esac
9918 fi
9919 fi
9920
9921echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9922echo "${ECHO_T}$ld_shlibs" >&6
9923test "$ld_shlibs" = no && can_build_shared=no
9924
9925with_gnu_ld=$with_gnu_ld
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941#
9942# Do we need to explicitly link libc?
9943#
9944case "x$archive_cmds_need_lc" in
9945x|xyes)
9946 # Assume -lc should be added
9947 archive_cmds_need_lc=yes
9948
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.
9953 ;;
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
9959echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
baafc534
RW
9960if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9962else
9963 $RM conftest*
9964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 9965
baafc534 9966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1cf3d07d
SE
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
baafc534
RW
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
1cf3d07d
SE
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); }
baafc534
RW
9989 then
9990 lt_cv_archive_cmds_need_lc=no
9991 else
9992 lt_cv_archive_cmds_need_lc=yes
9993 fi
9994 allow_undefined_flag=$lt_save_allow_undefined_flag
9995 else
9996 cat conftest.err 1>&5
9997 fi
9998 $RM conftest*
9999
10000fi
10001echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10002echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
10003 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
10004 ;;
10005 esac
10006 fi
10007 ;;
10008esac
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10167echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
93e92f52
PG
10168
10169if test "$GCC" = yes; then
1cf3d07d
SE
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"`
10183 fi
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"
10194 fi
10195 done
10196 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10197BEGIN {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--;
10209 }
10210 }
10211 }
10212 }
10213 if (lt_foo != "") { lt_freq[lt_foo]++; }
10214 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10215}'`
10216 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10217else
10218 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10219fi
10220library_names_spec=
10221libname_spec='lib$name'
10222soname_spec=
10223shrext_cmds=".so"
10224postinstall_cmds=
10225postuninstall_cmds=
10226finish_cmds=
10227finish_eval=
10228shlibpath_var=
10229shlibpath_overrides_runpath=unknown
10230version_type=none
10231dynamic_linker="$host_os ld.so"
10232sys_lib_dlsearch_path_spec="/lib /usr/lib"
10233need_lib_prefix=unknown
10234hardcode_into_libs=no
10235
10236# when you set need_version to no, make sure it does not cause -set_version
10237# flags to be left without arguments
10238need_version=unknown
10239
10240case $host_os in
10241aix3*)
10242 version_type=linux
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10244 shlibpath_var=LIBPATH
10245
10246 # AIX 3 has no versioning support, so we append a major version to the name.
10247 soname_spec='${libname}${release}${shared_ext}$major'
10248 ;;
10249
f3641e7e 10250aix[4-9]*)
1cf3d07d
SE
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
10270 :
10271 else
10272 can_build_shared=no
10273 fi
10274 ;;
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'
10289 fi
10290 shlibpath_var=LIBPATH
10291 fi
10292 ;;
10293
10294amigaos*)
93e92f52
PG
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}'
10300 ;;
10301 m68k)
1cf3d07d
SE
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'
93e92f52
PG
10305 ;;
10306 esac
1cf3d07d
SE
10307 ;;
10308
10309beos*)
10310 library_names_spec='${libname}${shared_ext}'
10311 dynamic_linker="$host_os ld.so"
10312 shlibpath_var=LIBRARY_PATH
10313 ;;
10314
10315bsdi[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
10327 ;;
10328
93e92f52 10329cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10330 version_type=windows
10331 shrext_cmds=".dll"
10332 need_version=no
10333 need_lib_prefix=no
10334
93e92f52
PG
10335 case $GCC,$host_os in
10336 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
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 \$?;
10347 fi'
10348 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10349 dlpath=$dir/\$dldll~
10350 $RM \$dlpath'
10351 shlibpath_overrides_runpath=yes
10352
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"
10358 ;;
93e92f52 10359 mingw* | cegcc*)
1cf3d07d
SE
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"`
10373 fi
10374 ;;
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}'
10378 ;;
10379 esac
10380 ;;
10381
10382 *)
10383 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10384 ;;
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
10389 ;;
10390
10391darwin* | 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`'
10401
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'
10404 ;;
10405
10406dgux*)
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
10413 ;;
10414
10415freebsd1*)
10416 dynamic_linker=no
10417 ;;
10418
10419freebsd* | 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
10429 fi
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
10436 ;;
10437 freebsd-*)
10438 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10439 need_version=yes
10440 ;;
10441 esac
10442 shlibpath_var=LD_LIBRARY_PATH
10443 case $host_os in
10444 freebsd2*)
10445 shlibpath_overrides_runpath=yes
10446 ;;
10447 freebsd3.[01]* | freebsdelf3.[01]*)
10448 shlibpath_overrides_runpath=yes
10449 hardcode_into_libs=yes
10450 ;;
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
10455 ;;
10456 *) # from 4.6 on, and DragonFly
10457 shlibpath_overrides_runpath=yes
10458 hardcode_into_libs=yes
10459 ;;
10460 esac
10461 ;;
10462
10463gnu*)
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
10471 ;;
10472
10473hpux9* | 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"
10492 fi
10493 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10494 ;;
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
10505 ;;
10506 *)
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'
10513 ;;
10514 esac
10515 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10516 postinstall_cmds='chmod 555 $lib'
10517 ;;
10518
10519interix[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
10529 ;;
10530
10531irix5* | irix6* | nonstopux*)
10532 case $host_os in
10533 nonstopux*) version_type=nonstopux ;;
10534 *)
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=
10548 ;;
10549 *)
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
10559 ;;
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
10566 ;;
10567
10568# No shared lib support for Linux oldld, aout, or coff.
10569linux*oldld* | linux*aout* | linux*coff*)
10570 dynamic_linker=no
10571 ;;
10572
10573# This must be Linux ELF.
10574linux* | k*bsd*-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
baafc534 10583
1cf3d07d 10584 # Some binutils ld are patched to set DT_RUNPATH
baafc534
RW
10585 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10587else
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
1cf3d07d
SE
10594 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10595echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10596 { (exit 1); exit 1; }; }
10597fi
10598cat >conftest.$ac_ext <<_ACEOF
10599/* confdefs.h. */
10600_ACEOF
10601cat confdefs.h >>conftest.$ac_ext
10602cat >>conftest.$ac_ext <<_ACEOF
10603/* end confdefs.h. */
10604
10605int
10606main ()
10607{
10608
10609 ;
10610 return 0;
10611}
10612_ACEOF
10613rm -f conftest.$ac_objext conftest$ac_exeext
10614if { (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
93e92f52 10635 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
baafc534 10636 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d
SE
10637fi
10638
10639else
10640 echo "$as_me: failed program was:" >&5
10641sed 's/^/| /' conftest.$ac_ext >&5
10642
10643fi
10644rm -f conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
10646 LDFLAGS=$save_LDFLAGS
10647 libdir=$save_libdir
10648
10649fi
10650
10651 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
10652
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
10657
10658 # Append ld.so.conf contents to the search path
10659 if test -f /etc/ld.so.conf; then
93e92f52 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' ' '`
1cf3d07d
SE
10661 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10662 fi
10663
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'
10671 ;;
10672
10673netbsd*)
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'
10685 fi
10686 shlibpath_var=LD_LIBRARY_PATH
10687 shlibpath_overrides_runpath=yes
10688 hardcode_into_libs=yes
10689 ;;
10690
10691newsos6)
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
10696 ;;
10697
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'
10708 ;;
10709
10710openbsd*)
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
10726 ;;
10727 *)
10728 shlibpath_overrides_runpath=yes
10729 ;;
10730 esac
10731 else
10732 shlibpath_overrides_runpath=yes
10733 fi
10734 ;;
10735
10736os2*)
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
10743 ;;
10744
10745osf3* | 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"
10754 ;;
10755
10756rdos*)
10757 dynamic_linker=no
10758 ;;
10759
10760solaris*)
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'
10771 ;;
10772
10773sunos4*)
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
10781 fi
10782 need_version=yes
10783 ;;
10784
10785sysv4 | 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
10795 ;;
10796 siemens)
10797 need_lib_prefix=no
10798 ;;
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'
10804 ;;
10805 esac
10806 ;;
10807
10808sysv4*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
10814 fi
10815 ;;
10816
10817sysv5* | 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"
10833 ;;
10834 esac
10835 fi
10836 sys_lib_dlsearch_path_spec='/usr/lib'
10837 ;;
10838
10839tpf*)
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
93e92f52 10844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
10845 shlibpath_var=LD_LIBRARY_PATH
10846 shlibpath_overrides_runpath=no
10847 hardcode_into_libs=yes
10848 ;;
10849
10850uts4*)
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
10855 ;;
10856
10857*)
10858 dynamic_linker=no
10859 ;;
10860esac
10861echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10862echo "${ECHO_T}$dynamic_linker" >&6
10863test "$dynamic_linker" = no && can_build_shared=no
10864
10865variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10866if test "$GCC" = yes; then
10867 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10868fi
10869
93e92f52
PG
10870if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10871 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10872fi
10873if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10874 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10875fi
10876
1cf3d07d
SE
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10964echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10965hardcode_action=
10966if test -n "$hardcode_libdir_flag_spec" ||
10967 test -n "$runpath_var" ||
10968 test "X$hardcode_automatic" = "Xyes" ; then
10969
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
10982 fi
10983else
10984 # We cannot hardcode anything, or else we can only hardcode existing
10985 # directories.
10986 hardcode_action=unsupported
10987fi
10988echo "$as_me:$LINENO: result: $hardcode_action" >&5
10989echo "${ECHO_T}$hardcode_action" >&6
10990
10991if test "$hardcode_action" = relink ||
10992 test "$inherit_rpath" = yes; then
10993 # Fast installation is not supported
10994 enable_fast_install=no
10995elif test "$shlibpath_overrides_runpath" = yes ||
10996 test "$enable_shared" = no; then
10997 # Fast installation is not necessary
10998 enable_fast_install=needless
10999fi
11000
11001
11002
11003
11004
11005
11006 if test "x$enable_dlopen" != xyes; then
11007 enable_dlopen=unknown
11008 enable_dlopen_self=unknown
11009 enable_dlopen_self_static=unknown
11010else
11011 lt_cv_dlopen=no
11012 lt_cv_dlopen_libs=
11013
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
11019 ;;
11020
93e92f52 11021 mingw* | pw32* | cegcc*)
1cf3d07d
SE
11022 lt_cv_dlopen="LoadLibrary"
11023 lt_cv_dlopen_libs=
11024 ;;
11025
11026 cygwin*)
11027 lt_cv_dlopen="dlopen"
11028 lt_cv_dlopen_libs=
11029 ;;
11030
11031 darwin*)
11032 # if libdl is installed we need to link against it
11033 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11034echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11035if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11037else
11038 ac_check_lib_save_LIBS=$LIBS
11039LIBS="-ldl $LIBS"
11040if test x$gcc_no_link = xyes; then
11041 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11042echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11043 { (exit 1); exit 1; }; }
11044fi
11045cat >conftest.$ac_ext <<_ACEOF
11046/* confdefs.h. */
11047_ACEOF
11048cat confdefs.h >>conftest.$ac_ext
11049cat >>conftest.$ac_ext <<_ACEOF
11050/* end confdefs.h. */
11051
11052/* Override any gcc2 internal prototype to avoid an error. */
11053#ifdef __cplusplus
11054extern "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. */
11058char dlopen ();
11059int
11060main ()
11061{
11062dlopen ();
11063 ;
11064 return 0;
11065}
11066_ACEOF
11067rm -f conftest.$ac_objext conftest$ac_exeext
11068if { (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
11090else
11091 echo "$as_me: failed program was:" >&5
11092sed 's/^/| /' conftest.$ac_ext >&5
11093
11094ac_cv_lib_dl_dlopen=no
11095fi
11096rm -f conftest.err conftest.$ac_objext \
11097 conftest$ac_exeext conftest.$ac_ext
11098LIBS=$ac_check_lib_save_LIBS
11099fi
11100echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11101echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11102if test $ac_cv_lib_dl_dlopen = yes; then
11103 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11104else
11105
11106 lt_cv_dlopen="dyld"
11107 lt_cv_dlopen_libs=
11108 lt_cv_dlopen_self=yes
11109
11110fi
11111
11112 ;;
11113
11114 *)
11115 echo "$as_me:$LINENO: checking for shl_load" >&5
11116echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11117if test "${ac_cv_func_shl_load+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11119else
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
11122echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11123 { (exit 1); exit 1; }; }
11124fi
11125cat >conftest.$ac_ext <<_ACEOF
11126/* confdefs.h. */
11127_ACEOF
11128cat confdefs.h >>conftest.$ac_ext
11129cat >>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
11134
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. */
11139
11140#ifdef __STDC__
11141# include <limits.h>
11142#else
11143# include <assert.h>
11144#endif
11145
11146#undef shl_load
11147
11148/* Override any gcc2 internal prototype to avoid an error. */
11149#ifdef __cplusplus
11150extern "C"
11151{
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. */
11155char 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)
11160choke me
11161#else
11162char (*f) () = shl_load;
11163#endif
11164#ifdef __cplusplus
11165}
11166#endif
11167
11168int
11169main ()
11170{
11171return f != shl_load;
11172 ;
11173 return 0;
11174}
11175_ACEOF
11176rm -f conftest.$ac_objext conftest$ac_exeext
11177if { (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
11199else
11200 echo "$as_me: failed program was:" >&5
11201sed 's/^/| /' conftest.$ac_ext >&5
11202
11203ac_cv_func_shl_load=no
11204fi
11205rm -f conftest.err conftest.$ac_objext \
11206 conftest$ac_exeext conftest.$ac_ext
11207fi
11208echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11209echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11210if test $ac_cv_func_shl_load = yes; then
11211 lt_cv_dlopen="shl_load"
11212else
11213 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11214echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11215if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11217else
11218 ac_check_lib_save_LIBS=$LIBS
11219LIBS="-ldld $LIBS"
11220if test x$gcc_no_link = xyes; then
11221 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11222echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11223 { (exit 1); exit 1; }; }
11224fi
11225cat >conftest.$ac_ext <<_ACEOF
11226/* confdefs.h. */
11227_ACEOF
11228cat confdefs.h >>conftest.$ac_ext
11229cat >>conftest.$ac_ext <<_ACEOF
11230/* end confdefs.h. */
11231
11232/* Override any gcc2 internal prototype to avoid an error. */
11233#ifdef __cplusplus
11234extern "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. */
11238char shl_load ();
11239int
11240main ()
11241{
11242shl_load ();
11243 ;
11244 return 0;
11245}
11246_ACEOF
11247rm -f conftest.$ac_objext conftest$ac_exeext
11248if { (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
11270else
11271 echo "$as_me: failed program was:" >&5
11272sed 's/^/| /' conftest.$ac_ext >&5
11273
11274ac_cv_lib_dld_shl_load=no
11275fi
11276rm -f conftest.err conftest.$ac_objext \
11277 conftest$ac_exeext conftest.$ac_ext
11278LIBS=$ac_check_lib_save_LIBS
11279fi
11280echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11281echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11282if test $ac_cv_lib_dld_shl_load = yes; then
93e92f52 11283 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
11284else
11285 echo "$as_me:$LINENO: checking for dlopen" >&5
11286echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11287if test "${ac_cv_func_dlopen+set}" = set; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11289else
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
11292echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11293 { (exit 1); exit 1; }; }
11294fi
11295cat >conftest.$ac_ext <<_ACEOF
11296/* confdefs.h. */
11297_ACEOF
11298cat confdefs.h >>conftest.$ac_ext
11299cat >>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
11304
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. */
11309
11310#ifdef __STDC__
11311# include <limits.h>
11312#else
11313# include <assert.h>
11314#endif
11315
11316#undef dlopen
11317
11318/* Override any gcc2 internal prototype to avoid an error. */
11319#ifdef __cplusplus
11320extern "C"
11321{
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. */
11325char 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)
11330choke me
11331#else
11332char (*f) () = dlopen;
11333#endif
11334#ifdef __cplusplus
11335}
11336#endif
11337
11338int
11339main ()
11340{
11341return f != dlopen;
11342 ;
11343 return 0;
11344}
11345_ACEOF
11346rm -f conftest.$ac_objext conftest$ac_exeext
11347if { (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
11369else
11370 echo "$as_me: failed program was:" >&5
11371sed 's/^/| /' conftest.$ac_ext >&5
11372
11373ac_cv_func_dlopen=no
11374fi
11375rm -f conftest.err conftest.$ac_objext \
11376 conftest$ac_exeext conftest.$ac_ext
11377fi
11378echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11379echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11380if test $ac_cv_func_dlopen = yes; then
11381 lt_cv_dlopen="dlopen"
11382else
11383 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11384echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11385if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11387else
11388 ac_check_lib_save_LIBS=$LIBS
11389LIBS="-ldl $LIBS"
11390if test x$gcc_no_link = xyes; then
11391 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11392echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11393 { (exit 1); exit 1; }; }
11394fi
11395cat >conftest.$ac_ext <<_ACEOF
11396/* confdefs.h. */
11397_ACEOF
11398cat confdefs.h >>conftest.$ac_ext
11399cat >>conftest.$ac_ext <<_ACEOF
11400/* end confdefs.h. */
11401
11402/* Override any gcc2 internal prototype to avoid an error. */
11403#ifdef __cplusplus
11404extern "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. */
11408char dlopen ();
11409int
11410main ()
11411{
11412dlopen ();
11413 ;
11414 return 0;
11415}
11416_ACEOF
11417rm -f conftest.$ac_objext conftest$ac_exeext
11418if { (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
11440else
11441 echo "$as_me: failed program was:" >&5
11442sed 's/^/| /' conftest.$ac_ext >&5
11443
11444ac_cv_lib_dl_dlopen=no
11445fi
11446rm -f conftest.err conftest.$ac_objext \
11447 conftest$ac_exeext conftest.$ac_ext
11448LIBS=$ac_check_lib_save_LIBS
11449fi
11450echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11451echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11452if test $ac_cv_lib_dl_dlopen = yes; then
11453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11454else
11455 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11456echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11457if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11459else
11460 ac_check_lib_save_LIBS=$LIBS
11461LIBS="-lsvld $LIBS"
11462if test x$gcc_no_link = xyes; then
11463 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11464echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11465 { (exit 1); exit 1; }; }
11466fi
11467cat >conftest.$ac_ext <<_ACEOF
11468/* confdefs.h. */
11469_ACEOF
11470cat confdefs.h >>conftest.$ac_ext
11471cat >>conftest.$ac_ext <<_ACEOF
11472/* end confdefs.h. */
11473
11474/* Override any gcc2 internal prototype to avoid an error. */
11475#ifdef __cplusplus
11476extern "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. */
11480char dlopen ();
11481int
11482main ()
11483{
11484dlopen ();
11485 ;
11486 return 0;
11487}
11488_ACEOF
11489rm -f conftest.$ac_objext conftest$ac_exeext
11490if { (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
11512else
11513 echo "$as_me: failed program was:" >&5
11514sed 's/^/| /' conftest.$ac_ext >&5
11515
11516ac_cv_lib_svld_dlopen=no
11517fi
11518rm -f conftest.err conftest.$ac_objext \
11519 conftest$ac_exeext conftest.$ac_ext
11520LIBS=$ac_check_lib_save_LIBS
11521fi
11522echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11523echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11524if test $ac_cv_lib_svld_dlopen = yes; then
11525 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11526else
11527 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11528echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11529if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11530 echo $ECHO_N "(cached) $ECHO_C" >&6
11531else
11532 ac_check_lib_save_LIBS=$LIBS
11533LIBS="-ldld $LIBS"
11534if test x$gcc_no_link = xyes; then
11535 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11536echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11537 { (exit 1); exit 1; }; }
11538fi
11539cat >conftest.$ac_ext <<_ACEOF
11540/* confdefs.h. */
11541_ACEOF
11542cat confdefs.h >>conftest.$ac_ext
11543cat >>conftest.$ac_ext <<_ACEOF
11544/* end confdefs.h. */
11545
11546/* Override any gcc2 internal prototype to avoid an error. */
11547#ifdef __cplusplus
11548extern "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. */
11552char dld_link ();
11553int
11554main ()
11555{
11556dld_link ();
11557 ;
11558 return 0;
11559}
11560_ACEOF
11561rm -f conftest.$ac_objext conftest$ac_exeext
11562if { (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
11584else
11585 echo "$as_me: failed program was:" >&5
11586sed 's/^/| /' conftest.$ac_ext >&5
11587
11588ac_cv_lib_dld_dld_link=no
11589fi
11590rm -f conftest.err conftest.$ac_objext \
11591 conftest$ac_exeext conftest.$ac_ext
11592LIBS=$ac_check_lib_save_LIBS
11593fi
11594echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11595echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11596if test $ac_cv_lib_dld_dld_link = yes; then
93e92f52 11597 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
11598fi
11599
11600
11601fi
11602
11603
11604fi
11605
11606
11607fi
11608
11609
11610fi
11611
11612
11613fi
11614
11615 ;;
11616 esac
11617
11618 if test "x$lt_cv_dlopen" != xno; then
11619 enable_dlopen=yes
11620 else
11621 enable_dlopen=no
11622 fi
11623
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"
11628
11629 save_LDFLAGS="$LDFLAGS"
11630 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11631
11632 save_LIBS="$LIBS"
11633 LIBS="$lt_cv_dlopen_libs $LIBS"
11634
11635 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11636echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11637if test "${lt_cv_dlopen_self+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11639else
11640 if test "$cross_compiling" = yes; then :
11641 lt_cv_dlopen_self=cross
11642else
11643 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11644 lt_status=$lt_dlunknown
11645 cat > conftest.$ac_ext <<_LT_EOF
baafc534 11646#line 11646 "configure"
1cf3d07d
SE
11647#include "confdefs.h"
11648
11649#if HAVE_DLFCN_H
11650#include <dlfcn.h>
11651#endif
11652
11653#include <stdio.h>
11654
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
11664
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
11686
1cf3d07d
SE
11687void fnord() { int i=42;}
11688int main ()
11689{
11690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11691 int status = $lt_dlunknown;
11692
11693 if (self)
11694 {
11695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11696 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11697 /* dlclose (self); */
11698 }
11699 else
11700 puts (dlerror ());
11701
93e92f52 11702 return status;
1cf3d07d
SE
11703}
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
11720 fi
11721fi
11722rm -fr conftest*
11723
11724
11725fi
11726echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11727echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11728
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
11732echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11733if test "${lt_cv_dlopen_self_static+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11735else
11736 if test "$cross_compiling" = yes; then :
11737 lt_cv_dlopen_self_static=cross
11738else
11739 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11740 lt_status=$lt_dlunknown
11741 cat > conftest.$ac_ext <<_LT_EOF
baafc534 11742#line 11742 "configure"
1cf3d07d
SE
11743#include "confdefs.h"
11744
11745#if HAVE_DLFCN_H
11746#include <dlfcn.h>
11747#endif
11748
11749#include <stdio.h>
11750
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
11760
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
11782
1cf3d07d
SE
11783void fnord() { int i=42;}
11784int main ()
11785{
11786 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11787 int status = $lt_dlunknown;
11788
11789 if (self)
11790 {
11791 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11792 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11793 /* dlclose (self); */
11794 }
11795 else
11796 puts (dlerror ());
11797
93e92f52 11798 return status;
1cf3d07d
SE
11799}
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
11816 fi
11817fi
11818rm -fr conftest*
11819
11820
11821fi
11822echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11823echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11824 fi
11825
11826 CPPFLAGS="$save_CPPFLAGS"
11827 LDFLAGS="$save_LDFLAGS"
11828 LIBS="$save_LIBS"
11829 ;;
11830 esac
11831
11832 case $lt_cv_dlopen_self in
11833 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11834 *) enable_dlopen_self=unknown ;;
11835 esac
11836
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
11841fi
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859striplib=
11860old_striplib=
11861echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11862echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11863if 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
11867echo "${ECHO_T}yes" >&6
11868else
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
11876echo "${ECHO_T}yes" >&6
11877 else
11878 echo "$as_me:$LINENO: result: no" >&5
11879echo "${ECHO_T}no" >&6
11880 fi
11881 ;;
11882 *)
11883 echo "$as_me:$LINENO: result: no" >&5
11884echo "${ECHO_T}no" >&6
11885 ;;
11886 esac
11887fi
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900 # Report which library types will actually be built
11901 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11902echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11903 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11904echo "${ECHO_T}$can_build_shared" >&6
11905
11906 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11907echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11908 test "$can_build_shared" = "no" && enable_shared=no
11909
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'
11918 fi
11919 ;;
11920
f3641e7e 11921 aix[4-9]*)
1cf3d07d
SE
11922 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11923 test "$enable_shared" = yes && enable_static=no
11924 fi
11925 ;;
11926 esac
11927 echo "$as_me:$LINENO: result: $enable_shared" >&5
11928echo "${ECHO_T}$enable_shared" >&6
11929
11930 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11931echo $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
11935echo "${ECHO_T}$enable_static" >&6
11936
11937
11938
11939
11940fi
11941ac_ext=c
11942ac_cpp='$CPP $CPPFLAGS'
11943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11945ac_compiler_gnu=$ac_cv_c_compiler_gnu
11946
11947CC="$lt_save_CC"
11948
11949
11950ac_ext=cc
11951ac_cpp='$CXXCPP $CPPFLAGS'
11952ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11953ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11954ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11955
11956archive_cmds_need_lc_CXX=no
11957allow_undefined_flag_CXX=
11958always_export_symbols_CXX=no
11959archive_expsym_cmds_CXX=
11960compiler_needs_object_CXX=no
11961export_dynamic_flag_spec_CXX=
11962hardcode_direct_CXX=no
11963hardcode_direct_absolute_CXX=no
11964hardcode_libdir_flag_spec_CXX=
11965hardcode_libdir_flag_spec_ld_CXX=
11966hardcode_libdir_separator_CXX=
11967hardcode_minus_L_CXX=no
11968hardcode_shlibpath_var_CXX=unsupported
11969hardcode_automatic_CXX=no
11970inherit_rpath_CXX=no
11971module_cmds_CXX=
11972module_expsym_cmds_CXX=
11973link_all_deplibs_CXX=unknown
11974old_archive_cmds_CXX=$old_archive_cmds
11975no_undefined_flag_CXX=
11976whole_archive_flag_spec_CXX=
11977enable_shared_with_static_runtimes_CXX=no
11978
11979# Source file extension for C++ test sources.
11980ac_ext=cpp
11981
11982# Object file extension for compiled C++ test sources.
11983objext=o
11984objext_CXX=$objext
11985
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.
11990if 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;"
11993
11994 # Code to be used in simple link tests
11995 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11996
11997 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11998
11999
12000
12001
12002
12003
12004# If no C compiler was specified, use CC.
12005LTCC=${LTCC-"$CC"}
12006
12007# If no C compiler flags were specified, use CFLAGS.
12008LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12009
12010# Allow CC to be a program name with arguments.
12011compiler=$CC
12012
12013
12014 # save warnings/boilerplate of simple test code
12015 ac_outfile=conftest.$ac_objext
12016echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12017eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12018_lt_compiler_boilerplate=`cat conftest.err`
12019$RM conftest*
12020
12021 ac_outfile=conftest.$ac_objext
12022echo "$lt_simple_link_test_code" >conftest.$ac_ext
12023eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12024_lt_linker_boilerplate=`cat conftest.err`
93e92f52 12025$RM -r conftest*
1cf3d07d
SE
12026
12027
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
12039 fi
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
12044 fi
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
12056done
12057cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12058
12059
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=
12067 fi
12068
12069 if test "$GXX" = yes; then
12070 # Set up default GNU C++ configuration
12071
12072
12073
12074# Check whether --with-gnu-ld or --without-gnu-ld was given.
12075if test "${with_gnu_ld+set}" = set; then
12076 withval="$with_gnu_ld"
12077 test "$withval" = no || with_gnu_ld=yes
12078else
12079 with_gnu_ld=no
12080fi;
12081ac_prog=ld
12082if 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
12085echo $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'` ;;
12090 *)
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"
12103 ;;
12104 "")
12105 # If it fails, then pretend we aren't using GCC.
12106 ac_prog=ld
12107 ;;
12108 *)
12109 # If it is relative, then search for the first ld in PATH.
12110 with_gnu_ld=unknown
12111 ;;
12112 esac
12113elif test "$with_gnu_ld" = yes; then
12114 echo "$as_me:$LINENO: checking for GNU ld" >&5
12115echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12116else
12117 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12118echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12119fi
12120if test "${lt_cv_path_LD+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12122else
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
12136 ;;
12137 *)
12138 test "$with_gnu_ld" != yes && break
12139 ;;
12140 esac
12141 fi
12142 done
12143 IFS="$lt_save_ifs"
12144else
12145 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12146fi
12147fi
12148
12149LD="$lt_cv_path_LD"
12150if test -n "$LD"; then
12151 echo "$as_me:$LINENO: result: $LD" >&5
12152echo "${ECHO_T}$LD" >&6
12153else
12154 echo "$as_me:$LINENO: result: no" >&5
12155echo "${ECHO_T}no" >&6
12156fi
12157test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12158echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12159 { (exit 1); exit 1; }; }
12160echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12161echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12162if test "${lt_cv_prog_gnu_ld+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12164else
12165 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12166case `$LD -v 2>&1 </dev/null` in
12167*GNU* | *'with BFD'*)
12168 lt_cv_prog_gnu_ld=yes
12169 ;;
12170*)
12171 lt_cv_prog_gnu_ld=no
12172 ;;
12173esac
12174fi
12175echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12176echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12177with_gnu_ld=$lt_cv_prog_gnu_ld
12178
12179
12180
12181
12182
12183
12184
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'
12190
12191 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12192 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12193
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}'
12198
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=
12205 fi
12206 else
12207 with_gnu_ld=no
12208 wlarc=
12209
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'
12216 fi
12217
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"'
12222
12223 else
12224 GXX=no
12225 with_gnu_ld=no
12226 wlarc=
12227 fi
12228
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
12231echo $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
12237 ;;
f3641e7e 12238 aix[4-9]*)
1cf3d07d
SE
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
12247
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.
f3641e7e 12251 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
12252 for ld_flag in $LDFLAGS; do
12253 case $ld_flag in
12254 *-brtl*)
12255 aix_use_runtimelinking=yes
12256 break
12257 ;;
12258 esac
12259 done
12260 ;;
12261 esac
12262
12263 exp_sym_flag='-bexport'
12264 no_entry_flag='-bnoentry'
12265 fi
12266
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.
12272
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,'
12279
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
12289 :
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=
12299 fi
12300 esac
12301 shared_flag='-shared'
12302 if test "$aix_use_runtimelinking" = yes; then
12303 shared_flag="$shared_flag "'${wl}-G'
12304 fi
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'
12316 fi
12317 fi
12318 fi
12319
93e92f52 12320 export_dynamic_flag_spec_CXX='${wl}-bexpall'
1cf3d07d
SE
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
12333echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12334 { (exit 1); exit 1; }; }
12335fi
12336cat >conftest.$ac_ext <<_ACEOF
12337/* confdefs.h. */
12338_ACEOF
12339cat confdefs.h >>conftest.$ac_ext
12340cat >>conftest.$ac_ext <<_ACEOF
12341/* end confdefs.h. */
12342
12343int
12344main ()
12345{
12346
12347 ;
12348 return 0;
12349}
12350_ACEOF
12351rm -f conftest.$ac_objext conftest$ac_exeext
12352if { (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
12373
12374lt_aix_libpath_sed='
12375 /Import File Strings/,/^$/ {
12376 /^0/ {
12377 s/^0 *\(.*\)$/\1/
12378 p
12379 }
12380 }'
12381aix_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.
12383if test -z "$aix_libpath"; then
12384 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12385fi
12386else
12387 echo "$as_me: failed program was:" >&5
12388sed 's/^/| /' conftest.$ac_ext >&5
12389
12390fi
12391rm -f conftest.err conftest.$ac_objext \
12392 conftest$ac_exeext conftest.$ac_ext
12393if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12394
12395 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12396
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
12408echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12409 { (exit 1); exit 1; }; }
12410fi
12411cat >conftest.$ac_ext <<_ACEOF
12412/* confdefs.h. */
12413_ACEOF
12414cat confdefs.h >>conftest.$ac_ext
12415cat >>conftest.$ac_ext <<_ACEOF
12416/* end confdefs.h. */
12417
12418int
12419main ()
12420{
12421
12422 ;
12423 return 0;
12424}
12425_ACEOF
12426rm -f conftest.$ac_objext conftest$ac_exeext
12427if { (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
12448
12449lt_aix_libpath_sed='
12450 /Import File Strings/,/^$/ {
12451 /^0/ {
12452 s/^0 *\(.*\)$/\1/
12453 p
12454 }
12455 }'
12456aix_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.
12458if test -z "$aix_libpath"; then
12459 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12460fi
12461else
12462 echo "$as_me: failed program was:" >&5
12463sed 's/^/| /' conftest.$ac_ext >&5
12464
12465fi
12466rm -f conftest.err conftest.$ac_objext \
12467 conftest$ac_exeext conftest.$ac_ext
12468if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12469
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'
12481 fi
12482 fi
12483 ;;
12484
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
12493 fi
12494 ;;
12495
12496 chorus*)
12497 case $cc_basename in
12498 *)
12499 # FIXME: insert proper C++ library support
12500 ld_shlibs_CXX=no
12501 ;;
12502 esac
12503 ;;
12504
93e92f52 12505 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
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
12512
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;
12522 fi~
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
12526 fi
12527 ;;
12528 darwin* | rhapsody*)
1cf3d07d 12529
1cf3d07d 12530
93e92f52
PG
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}"
12551 fi
12552
12553 else
12554 ld_shlibs_CXX=no
12555 fi
12556
1cf3d07d
SE
12557 ;;
12558
12559 dgux*)
12560 case $cc_basename in
12561 ec++*)
12562 # FIXME: insert proper C++ library support
12563 ld_shlibs_CXX=no
12564 ;;
12565 ghcx*)
12566 # Green Hills C++ Compiler
12567 # FIXME: insert proper C++ library support
12568 ld_shlibs_CXX=no
12569 ;;
12570 *)
12571 # FIXME: insert proper C++ library support
12572 ld_shlibs_CXX=no
12573 ;;
12574 esac
12575 ;;
12576
12577 freebsd[12]*)
12578 # C++ shared libraries reported to be fairly broken before
12579 # switch to ELF
12580 ld_shlibs_CXX=no
12581 ;;
12582
12583 freebsd-elf*)
12584 archive_cmds_need_lc_CXX=no
12585 ;;
12586
12587 freebsd* | dragonfly*)
12588 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12589 # conventions
12590 ld_shlibs_CXX=yes
12591 ;;
12592
12593 gnu*)
12594 ;;
12595
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.
12604
12605 case $cc_basename in
12606 CC*)
12607 # FIXME: insert proper C++ library support
12608 ld_shlibs_CXX=no
12609 ;;
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.
12615 #
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'
12621 ;;
12622 *)
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
12628 fi
12629 ;;
12630 esac
12631 ;;
12632
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=:
12637
12638 case $host_cpu in
12639 hppa*64*|ia64*)
12640 ;;
12641 *)
12642 export_dynamic_flag_spec_CXX='${wl}-E'
12643 ;;
12644 esac
12645 fi
12646 case $host_cpu in
12647 hppa*64*|ia64*)
12648 hardcode_direct_CXX=no
12649 hardcode_shlibpath_var_CXX=no
12650 ;;
12651 *)
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.
12657 ;;
12658 esac
12659
12660 case $cc_basename in
12661 CC*)
12662 # FIXME: insert proper C++ library support
12663 ld_shlibs_CXX=no
12664 ;;
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'
12669 ;;
12670 ia64*)
12671 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12672 ;;
12673 *)
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'
12675 ;;
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.
12680 #
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'
12686 ;;
12687 *)
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'
12693 ;;
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'
12696 ;;
12697 *)
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'
12699 ;;
12700 esac
12701 fi
12702 else
12703 # FIXME: insert proper C++ library support
12704 ld_shlibs_CXX=no
12705 fi
12706 ;;
12707 esac
12708 ;;
12709
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'
12723 ;;
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'
12729
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'
12735 ;;
12736 *)
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'
12742 fi
12743 fi
12744 link_all_deplibs_CXX=yes
12745 ;;
12746 esac
12747 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12748 hardcode_libdir_separator_CXX=:
12749 inherit_rpath_CXX=yes
12750 ;;
12751
12752 linux* | k*bsd*-gnu)
12753 case $cc_basename in
12754 KCC*)
12755 # Kuck and Associates, Inc. (KAI) C++ Compiler
12756
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.
12765 #
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'
12771
12772 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12773 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12774
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'
12778 ;;
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'
12789 ;;
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'
12797 ;;
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'
12803 ;;
93e92f52 12804 pgCC* | pgcpp*)
1cf3d07d
SE
12805 # Portland Group C++ compiler
12806 case `$CC -V` in
93e92f52 12807 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
1cf3d07d
SE
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'
12825 ;;
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'
12829 ;;
12830 esac
12831
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'
12835 ;;
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'
12840
12841 runpath_var=LD_RUN_PATH
12842 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12843 hardcode_libdir_separator_CXX=:
12844
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.
12848 #
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'
12854 ;;
93e92f52
PG
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'
12865 fi
12866 ;;
1cf3d07d
SE
12867 *)
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
12877
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'
12882
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'
12888 ;;
12889 esac
12890 ;;
12891 esac
12892 ;;
12893
12894 lynxos*)
12895 # FIXME: insert proper C++ library support
12896 ld_shlibs_CXX=no
12897 ;;
12898
12899 m88k*)
12900 # FIXME: insert proper C++ library support
12901 ld_shlibs_CXX=no
12902 ;;
12903
12904 mvs*)
12905 case $cc_basename in
12906 cxx*)
12907 # FIXME: insert proper C++ library support
12908 ld_shlibs_CXX=no
12909 ;;
12910 *)
12911 # FIXME: insert proper C++ library support
12912 ld_shlibs_CXX=no
12913 ;;
12914 esac
12915 ;;
12916
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
12924 fi
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::"'
12927 ;;
12928
12929 *nto* | *qnx*)
12930 ld_shlibs_CXX=yes
12931 ;;
12932
12933 openbsd2*)
12934 # C++ shared libraries are fairly broken
12935 ld_shlibs_CXX=no
12936 ;;
12937
12938 openbsd*)
93e92f52
PG
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'
12949 fi
12950 output_verbose_link_cmd=echo
12951 else
12952 ld_shlibs_CXX=no
1cf3d07d 12953 fi
1cf3d07d
SE
12954 ;;
12955
12956 osf3* | osf4* | osf5*)
12957 case $cc_basename in
12958 KCC*)
12959 # Kuck and Associates, Inc. (KAI) C++ Compiler
12960
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'
12965
12966 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12967 hardcode_libdir_separator_CXX=:
12968
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
12975 ;;
12976 RCC*)
12977 # Rational C++ 2.4.1
12978 # FIXME: insert proper C++ library support
12979 ld_shlibs_CXX=no
12980 ;;
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'
12987 ;;
12988 *)
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'
12996 ;;
12997 esac
12998
12999 hardcode_libdir_separator_CXX=:
13000
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.
13004 #
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'
13010 ;;
13011 *)
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'
13017 ;;
13018 *)
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'
13020 ;;
13021 esac
13022
13023 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13024 hardcode_libdir_separator_CXX=:
13025
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"'
13030
13031 else
13032 # FIXME: insert proper C++ library support
13033 ld_shlibs_CXX=no
13034 fi
13035 ;;
13036 esac
13037 ;;
13038
13039 psos*)
13040 # FIXME: insert proper C++ library support
13041 ld_shlibs_CXX=no
13042 ;;
13043
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
13050 ;;
13051 lcc*)
13052 # Lucid
13053 # FIXME: insert proper C++ library support
13054 ld_shlibs_CXX=no
13055 ;;
13056 *)
13057 # FIXME: insert proper C++ library support
13058 ld_shlibs_CXX=no
13059 ;;
13060 esac
13061 ;;
13062
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'
13072
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].*) ;;
13077 *)
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'
13082 ;;
13083 esac
13084 link_all_deplibs_CXX=yes
13085
13086 output_verbose_link_cmd='echo'
13087
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'
13093 ;;
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'
13097
13098 # The C++ compiler must be used to create the archive.
13099 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13100 ;;
13101 *)
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'
13109
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'
13120
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"'
13125 fi
13126
13127 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13128 case $host_os in
13129 solaris2.[0-5] | solaris2.[0-5].*) ;;
13130 *)
13131 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13132 ;;
13133 esac
13134 fi
13135 ;;
13136 esac
13137 ;;
13138
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'
13144
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'
13149 ;;
13150 *)
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'
13153 ;;
13154 esac
13155 ;;
13156
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'
13173
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'
13178 ;;
13179 *)
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'
13182 ;;
13183 esac
13184 ;;
13185
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
13192 ;;
13193 *)
13194 # FIXME: insert proper C++ library support
13195 ld_shlibs_CXX=no
13196 ;;
13197 esac
13198 ;;
13199
13200 vxworks*)
13201 # FIXME: insert proper C++ library support
13202 ld_shlibs_CXX=no
13203 ;;
13204
13205 *)
13206 # FIXME: insert proper C++ library support
13207 ld_shlibs_CXX=no
13208 ;;
13209 esac
13210
13211 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13212echo "${ECHO_T}$ld_shlibs_CXX" >&6
13213 test "$ld_shlibs_CXX" = no && can_build_shared=no
13214
13215 GCC_CXX="$GXX"
13216 LD_CXX="$LD"
13217
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:
13223predep_objects_CXX=
13224postdep_objects_CXX=
13225predeps_CXX=
13226postdeps_CXX=
13227compiler_lib_search_path_CXX=
13228
13229cat > conftest.$ac_ext <<_LT_EOF
13230class Foo
13231{
13232public:
13233 Foo (void) { a = 0; }
13234private:
13235 int a;
13236};
13237_LT_EOF
13238
13239if { (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.
13246
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
13250
93e92f52 13251 for p in `eval "$output_verbose_link_cmd"`; do
1cf3d07d
SE
13252 case $p in
13253
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=
13263 fi
13264
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}"
13275 fi
13276 ;;
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}"
13285 fi
13286 fi
13287 ;;
13288
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
13295 fi
13296
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"
13302 fi
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"
13308 fi
13309 fi
13310 ;;
13311
13312 *) ;; # Ignore the rest.
13313
13314 esac
13315 done
13316
13317 # Clean up.
13318 rm -f a.out a.exe
13319else
13320 echo "libtool.m4: error: problem compiling CXX test program"
13321fi
13322
13323$RM -f confest.$objext
13324
13325# PORTME: override above test on systems where it is broken
13326case $host_os in
13327interix[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=
13333 ;;
13334
13335linux*)
13336 case `$CC -V 2>&1 | sed 5q` in
13337 *Sun\ C*)
13338 # Sun C++ 5.9
13339
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
3343fdd2 13347 ;;
1cf3d07d
SE
13348 esac
13349
13350 if test "$solaris_use_stlport4" != yes; then
13351 postdeps_CXX='-library=Cstd -library=Crun'
13352 fi
13353 ;;
13354 esac
13355 ;;
13356
13357solaris*)
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
3343fdd2
AO
13367 ;;
13368 esac
1cf3d07d
SE
13369
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'
13375 fi
13376 ;;
13377 esac
13378 ;;
13379esac
13380
13381
13382case " $postdeps_CXX " in
13383*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13384esac
93e92f52
PG
13385 compiler_lib_search_dirs_CXX=
13386if 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!^ !!'`
13388fi
13389
13390
13391
13392
13393
1cf3d07d
SE
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420 lt_prog_compiler_wl_CXX=
13421lt_prog_compiler_pic_CXX=
13422lt_prog_compiler_static_CXX=
13423
13424echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13425echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13426
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'
13431
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'
13438 fi
66deb2be 13439 ;;
93e92f52 13440
1cf3d07d 13441 amigaos*)
93e92f52
PG
13442 case $host_cpu in
13443 powerpc)
13444 # see comment about AmigaOS4 .so support
13445 lt_prog_compiler_pic_CXX='-fPIC'
13446 ;;
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'
13452 ;;
13453 esac
66deb2be 13454 ;;
93e92f52 13455
1cf3d07d
SE
13456 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13457 # PIC is the default for these OSes.
13458 ;;
93e92f52 13459 mingw* | cygwin* | os2* | pw32* | cegcc*)
1cf3d07d
SE
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'
13465 ;;
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'
13470 ;;
13471 *djgpp*)
13472 # DJGPP does not support shared libraries at all
13473 lt_prog_compiler_pic_CXX=
13474 ;;
13475 interix[3-9]*)
13476 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13477 # Instead, we relocate shared libraries at runtime.
13478 ;;
13479 sysv4*MP*)
13480 if test -d /usr/nec; then
13481 lt_prog_compiler_pic_CXX=-Kconform_pic
13482 fi
66deb2be 13483 ;;
1cf3d07d 13484 hpux*)
93e92f52
PG
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.
1cf3d07d 13488 case $host_cpu in
93e92f52 13489 hppa*64*)
1cf3d07d
SE
13490 ;;
13491 *)
13492 lt_prog_compiler_pic_CXX='-fPIC'
13493 ;;
13494 esac
13495 ;;
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'
13500 ;;
13501 *)
13502 lt_prog_compiler_pic_CXX='-fPIC'
13503 ;;
13504 esac
13505 else
13506 case $host_os in
f3641e7e 13507 aix[4-9]*)
1cf3d07d
SE
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'
13514 fi
13515 ;;
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"
13521 ;;
13522 esac
13523 ;;
1cf3d07d
SE
13524 dgux*)
13525 case $cc_basename in
13526 ec++*)
13527 lt_prog_compiler_pic_CXX='-KPIC'
13528 ;;
13529 ghcx*)
13530 # Green Hills C++ Compiler
13531 lt_prog_compiler_pic_CXX='-pic'
13532 ;;
13533 *)
13534 ;;
13535 esac
13536 ;;
13537 freebsd* | dragonfly*)
13538 # FreeBSD uses GNU C++
13539 ;;
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'
13547 fi
13548 ;;
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
13555 ;;
13556 *)
13557 lt_prog_compiler_pic_CXX='+Z'
13558 ;;
13559 esac
13560 ;;
13561 *)
13562 ;;
13563 esac
13564 ;;
13565 interix*)
13566 # This is c89, which is MS Visual C++ (no shared libs)
13567 # Anyone wants to do a port?
13568 ;;
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.
13575 ;;
13576 *)
13577 ;;
13578 esac
13579 ;;
13580 linux* | k*bsd*-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'
13586 ;;
93e92f52
PG
13587 ecpc* )
13588 # old Intel C++ for x86_64 which still supported -KPIC.
1cf3d07d
SE
13589 lt_prog_compiler_wl_CXX='-Wl,'
13590 lt_prog_compiler_pic_CXX='-KPIC'
13591 lt_prog_compiler_static_CXX='-static'
13592 ;;
93e92f52
PG
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'
13599 ;;
13600 pgCC* | pgcpp*)
1cf3d07d
SE
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'
13605 ;;
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'
13612 ;;
93e92f52
PG
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'
13618 ;;
1cf3d07d
SE
13619 *)
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 '
13626 ;;
13627 esac
13628 ;;
13629 esac
13630 ;;
13631 lynxos*)
13632 ;;
13633 m88k*)
13634 ;;
13635 mvs*)
13636 case $cc_basename in
13637 cxx*)
13638 lt_prog_compiler_pic_CXX='-W c,exportall'
13639 ;;
13640 *)
13641 ;;
13642 esac
13643 ;;
13644 netbsd*)
13645 ;;
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'
13650 ;;
13651 osf3* | osf4* | osf5*)
13652 case $cc_basename in
13653 KCC*)
13654 lt_prog_compiler_wl_CXX='--backend -Wl,'
13655 ;;
13656 RCC*)
13657 # Rational C++ 2.4.1
13658 lt_prog_compiler_pic_CXX='-pic'
13659 ;;
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'
13667 ;;
13668 *)
13669 ;;
13670 esac
13671 ;;
13672 psos*)
13673 ;;
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 '
13681 ;;
13682 gcx*)
13683 # Green Hills C++ Compiler
13684 lt_prog_compiler_pic_CXX='-PIC'
13685 ;;
13686 *)
13687 ;;
13688 esac
13689 ;;
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'
13696 ;;
13697 lcc*)
13698 # Lucid
13699 lt_prog_compiler_pic_CXX='-pic'
13700 ;;
13701 *)
13702 ;;
13703 esac
13704 ;;
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'
13711 ;;
13712 esac
13713 ;;
13714 tandem*)
13715 case $cc_basename in
13716 NCC*)
13717 # NonStop-UX NCC 3.20
13718 lt_prog_compiler_pic_CXX='-KPIC'
13719 ;;
13720 *)
13721 ;;
13722 esac
13723 ;;
13724 vxworks*)
13725 ;;
13726 *)
13727 lt_prog_compiler_can_build_shared_CXX=no
13728 ;;
66deb2be 13729 esac
1cf3d07d
SE
13730 fi
13731
13732case $host_os in
13733 # For platforms which do not support PIC, -DPIC is meaningless:
13734 *djgpp*)
13735 lt_prog_compiler_pic_CXX=
13736 ;;
13737 *)
13738 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13739 ;;
13740esac
13741echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13742echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13743
13744
13745
13746#
13747# Check to make sure the PIC flag actually works.
13748#
13749if 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
13751echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
93e92f52 13752if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
1cf3d07d
SE
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13754else
93e92f52 13755 lt_cv_prog_compiler_pic_works_CXX=no
1cf3d07d
SE
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:'`
baafc534 13768 (eval echo "\"\$as_me:13768: $lt_compile\"" >&5)
1cf3d07d
SE
13769 (eval "$lt_compile" 2>conftest.err)
13770 ac_status=$?
13771 cat conftest.err >&5
baafc534 13772 echo "$as_me:13772: \$? = $ac_status" >&5
1cf3d07d
SE
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
93e92f52 13779 lt_cv_prog_compiler_pic_works_CXX=yes
1cf3d07d
SE
13780 fi
13781 fi
13782 $RM conftest*
13783
13784fi
93e92f52
PG
13785echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13786echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
1cf3d07d 13787
93e92f52 13788if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
1cf3d07d
SE
13789 case $lt_prog_compiler_pic_CXX in
13790 "" | " "*) ;;
13791 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13792 esac
13793else
13794 lt_prog_compiler_pic_CXX=
13795 lt_prog_compiler_can_build_shared_CXX=no
13796fi
13797
13798fi
13799
13800
13801
13802#
13803# Check to make sure the static flag actually works.
13804#
13805wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13806echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13807echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
93e92f52 13808if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
1cf3d07d
SE
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13810else
93e92f52 13811 lt_cv_prog_compiler_static_works_CXX=no
1cf3d07d
SE
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
93e92f52 13824 lt_cv_prog_compiler_static_works_CXX=yes
1cf3d07d
SE
13825 fi
13826 else
93e92f52 13827 lt_cv_prog_compiler_static_works_CXX=yes
1cf3d07d
SE
13828 fi
13829 fi
93e92f52 13830 $RM -r conftest*
1cf3d07d
SE
13831 LDFLAGS="$save_LDFLAGS"
13832
13833fi
93e92f52
PG
13834echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13835echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
1cf3d07d 13836
93e92f52 13837if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
1cf3d07d
SE
13838 :
13839else
13840 lt_prog_compiler_static_CXX=
13841fi
13842
13843
13844
13845
13846 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13847echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13848if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13849 echo $ECHO_N "(cached) $ECHO_C" >&6
13850else
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
13857
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:'`
baafc534 13867 (eval echo "\"\$as_me:13867: $lt_compile\"" >&5)
1cf3d07d
SE
13868 (eval "$lt_compile" 2>out/conftest.err)
13869 ac_status=$?
13870 cat out/conftest.err >&5
baafc534 13871 echo "$as_me:13871: \$? = $ac_status" >&5
1cf3d07d
SE
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
13880 fi
13881 fi
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*
13891
13892fi
13893echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13894echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13895
13896
13897
13898 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13899echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13900if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902else
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
13909
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:'`
baafc534 13919 (eval echo "\"\$as_me:13919: $lt_compile\"" >&5)
1cf3d07d
SE
13920 (eval "$lt_compile" 2>out/conftest.err)
13921 ac_status=$?
13922 cat out/conftest.err >&5
baafc534 13923 echo "$as_me:13923: \$? = $ac_status" >&5
1cf3d07d
SE
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
13932 fi
3343fdd2 13933 fi
1cf3d07d
SE
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*
13943
13944fi
13945echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13946echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13947
13948
13949
13950
13951hard_links="nottested"
13952if 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
13955echo $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
13963echo "${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
13966echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13967 need_locks=warn
66deb2be 13968 fi
1cf3d07d
SE
13969else
13970 need_locks=no
13971fi
13972
13973
13974
13975 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13976echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13977
13978 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13979 case $host_os in
f3641e7e 13980 aix[4-9]*)
1cf3d07d
SE
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'
13987 fi
13988 ;;
13989 pw32*)
13990 export_symbols_cmds_CXX="$ltdll_cmds"
13991 ;;
93e92f52 13992 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
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'
13994 ;;
13995 *)
13996 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
66deb2be 13997 ;;
1cf3d07d 13998 esac
93e92f52 13999 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
66deb2be 14000
1cf3d07d
SE
14001echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14002echo "${ECHO_T}$ld_shlibs_CXX" >&6
14003test "$ld_shlibs_CXX" = no && can_build_shared=no
14004
14005with_gnu_ld_CXX=$with_gnu_ld
14006
14007
14008
14009
14010
14011
14012#
14013# Do we need to explicitly link libc?
14014#
14015case "x$archive_cmds_need_lc_CXX" in
14016x|xyes)
14017 # Assume -lc should be added
14018 archive_cmds_need_lc_CXX=yes
14019
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.
14024 ;;
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
14030echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
baafc534
RW
14031if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14033else
14034 $RM conftest*
14035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 14036
baafc534 14037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47935194
NN
14038 (eval $ac_compile) 2>&5
14039 ac_status=$?
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d 14041 (exit $ac_status); } 2>conftest.err; then
baafc534
RW
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
1cf3d07d 14056 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
47935194
NN
14057 ac_status=$?
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d 14059 (exit $ac_status); }
baafc534
RW
14060 then
14061 lt_cv_archive_cmds_need_lc_CXX=no
14062 else
14063 lt_cv_archive_cmds_need_lc_CXX=yes
14064 fi
14065 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14066 else
14067 cat conftest.err 1>&5
14068 fi
14069 $RM conftest*
14070
14071fi
14072echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14073echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
14074 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13b6e5b4
AO
14075 ;;
14076 esac
14077 fi
13b6e5b4 14078 ;;
1cf3d07d 14079esac
13b6e5b4 14080
115dabb8 14081
115dabb8 14082
47935194 14083
47935194 14084
47935194 14085
47935194 14086
2f7bf5b7 14087
66deb2be 14088
66deb2be 14089
66deb2be 14090
115dabb8 14091
47935194 14092
47935194 14093
1cf3d07d
SE
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14145echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
93e92f52 14146
1cf3d07d
SE
14147library_names_spec=
14148libname_spec='lib$name'
14149soname_spec=
14150shrext_cmds=".so"
14151postinstall_cmds=
14152postuninstall_cmds=
14153finish_cmds=
14154finish_eval=
14155shlibpath_var=
14156shlibpath_overrides_runpath=unknown
14157version_type=none
14158dynamic_linker="$host_os ld.so"
14159sys_lib_dlsearch_path_spec="/lib /usr/lib"
14160need_lib_prefix=unknown
14161hardcode_into_libs=no
14162
14163# when you set need_version to no, make sure it does not cause -set_version
14164# flags to be left without arguments
14165need_version=unknown
14166
14167case $host_os in
14168aix3*)
14169 version_type=linux
14170 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14171 shlibpath_var=LIBPATH
14172
14173 # AIX 3 has no versioning support, so we append a major version to the name.
14174 soname_spec='${libname}${release}${shared_ext}$major'
14175 ;;
14176
f3641e7e 14177aix[4-9]*)
1cf3d07d
SE
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
14197 :
14198 else
14199 can_build_shared=no
14200 fi
47935194 14201 ;;
1cf3d07d
SE
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'
14216 fi
14217 shlibpath_var=LIBPATH
14218 fi
14219 ;;
14220
14221amigaos*)
93e92f52
PG
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}'
14227 ;;
14228 m68k)
1cf3d07d
SE
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'
93e92f52
PG
14232 ;;
14233 esac
1cf3d07d 14234 ;;
115dabb8 14235
1cf3d07d
SE
14236beos*)
14237 library_names_spec='${libname}${shared_ext}'
14238 dynamic_linker="$host_os ld.so"
14239 shlibpath_var=LIBRARY_PATH
14240 ;;
66deb2be 14241
1cf3d07d
SE
14242bsdi[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
14254 ;;
14255
93e92f52 14256cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14257 version_type=windows
14258 shrext_cmds=".dll"
14259 need_version=no
14260 need_lib_prefix=no
14261
93e92f52
PG
14262 case $GCC,$host_os in
14263 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
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 \$?;
14274 fi'
14275 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14276 dlpath=$dir/\$dldll~
14277 $RM \$dlpath'
14278 shlibpath_overrides_runpath=yes
14279
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"
14285 ;;
93e92f52 14286 mingw* | cegcc*)
1cf3d07d
SE
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"`
14300 fi
14301 ;;
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}'
14305 ;;
47935194 14306 esac
1cf3d07d 14307 ;;
115dabb8 14308
1cf3d07d
SE
14309 *)
14310 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14311 ;;
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
14316 ;;
115dabb8 14317
1cf3d07d
SE
14318darwin* | 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`'
14328
14329 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14330 ;;
115dabb8 14331
1cf3d07d
SE
14332dgux*)
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
14339 ;;
115dabb8 14340
1cf3d07d
SE
14341freebsd1*)
14342 dynamic_linker=no
14343 ;;
66deb2be 14344
1cf3d07d
SE
14345freebsd* | 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`
47935194 14350 else
1cf3d07d
SE
14351 case $host_os in
14352 freebsd[123]*) objformat=aout ;;
14353 *) objformat=elf ;;
14354 esac
47935194 14355 fi
1cf3d07d
SE
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
14362 ;;
14363 freebsd-*)
14364 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14365 need_version=yes
14366 ;;
14367 esac
14368 shlibpath_var=LD_LIBRARY_PATH
14369 case $host_os in
14370 freebsd2*)
14371 shlibpath_overrides_runpath=yes
14372 ;;
14373 freebsd3.[01]* | freebsdelf3.[01]*)
14374 shlibpath_overrides_runpath=yes
14375 hardcode_into_libs=yes
14376 ;;
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
14381 ;;
14382 *) # from 4.6 on, and DragonFly
14383 shlibpath_overrides_runpath=yes
14384 hardcode_into_libs=yes
14385 ;;
14386 esac
14387 ;;
47935194 14388
1cf3d07d
SE
14389gnu*)
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
14397 ;;
47935194 14398
1cf3d07d
SE
14399hpux9* | 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"
14418 fi
14419 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14420 ;;
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
14431 ;;
14432 *)
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'
14439 ;;
14440 esac
14441 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14442 postinstall_cmds='chmod 555 $lib'
14443 ;;
47935194 14444
1cf3d07d
SE
14445interix[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
14455 ;;
47935194 14456
1cf3d07d
SE
14457irix5* | irix6* | nonstopux*)
14458 case $host_os in
14459 nonstopux*) version_type=nonstopux ;;
14460 *)
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=
14474 ;;
14475 *)
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
14485 ;;
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
14492 ;;
47935194 14493
1cf3d07d
SE
14494# No shared lib support for Linux oldld, aout, or coff.
14495linux*oldld* | linux*aout* | linux*coff*)
14496 dynamic_linker=no
14497 ;;
47935194 14498
1cf3d07d
SE
14499# This must be Linux ELF.
14500linux* | k*bsd*-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
baafc534 14509
1cf3d07d 14510 # Some binutils ld are patched to set DT_RUNPATH
baafc534
RW
14511 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14513else
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
1cf3d07d
SE
14520 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14521echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14522 { (exit 1); exit 1; }; }
47935194 14523fi
1cf3d07d 14524cat >conftest.$ac_ext <<_ACEOF
47935194
NN
14525/* confdefs.h. */
14526_ACEOF
14527cat confdefs.h >>conftest.$ac_ext
14528cat >>conftest.$ac_ext <<_ACEOF
14529/* end confdefs.h. */
47935194 14530
1cf3d07d
SE
14531int
14532main ()
14533{
47935194 14534
1cf3d07d
SE
14535 ;
14536 return 0;
14537}
47935194 14538_ACEOF
1cf3d07d
SE
14539rm -f conftest.$ac_objext conftest$ac_exeext
14540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14541 (eval $ac_link) 2>conftest.er1
47935194
NN
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
1cf3d07d
SE
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
93e92f52 14561 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
baafc534 14562 lt_cv_shlibpath_overrides_runpath=yes
47935194 14563fi
1cf3d07d 14564
47935194
NN
14565else
14566 echo "$as_me: failed program was:" >&5
14567sed 's/^/| /' conftest.$ac_ext >&5
14568
47935194 14569fi
1cf3d07d
SE
14570rm -f conftest.err conftest.$ac_objext \
14571 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
14572 LDFLAGS=$save_LDFLAGS
14573 libdir=$save_libdir
14574
14575fi
14576
14577 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
14578
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
14583
14584 # Append ld.so.conf contents to the search path
14585 if test -f /etc/ld.so.conf; then
93e92f52 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' ' '`
1cf3d07d
SE
14587 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14588 fi
47935194 14589
1cf3d07d
SE
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'
14597 ;;
14598
14599netbsd*)
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'
14611 fi
14612 shlibpath_var=LD_LIBRARY_PATH
14613 shlibpath_overrides_runpath=yes
14614 hardcode_into_libs=yes
14615 ;;
14616
14617newsos6)
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
14622 ;;
14623
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'
14634 ;;
14635
14636openbsd*)
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
14652 ;;
14653 *)
14654 shlibpath_overrides_runpath=yes
14655 ;;
14656 esac
14657 else
14658 shlibpath_overrides_runpath=yes
14659 fi
14660 ;;
14661
14662os2*)
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
14669 ;;
14670
14671osf3* | 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"
14680 ;;
14681
14682rdos*)
14683 dynamic_linker=no
14684 ;;
14685
14686solaris*)
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'
14697 ;;
14698
14699sunos4*)
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
14707 fi
14708 need_version=yes
14709 ;;
14710
14711sysv4 | 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
14721 ;;
14722 siemens)
14723 need_lib_prefix=no
14724 ;;
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'
14730 ;;
14731 esac
14732 ;;
14733
14734sysv4*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
14740 fi
14741 ;;
14742
14743sysv5* | 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"
14759 ;;
14760 esac
14761 fi
14762 sys_lib_dlsearch_path_spec='/usr/lib'
14763 ;;
14764
14765tpf*)
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
93e92f52 14770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
14771 shlibpath_var=LD_LIBRARY_PATH
14772 shlibpath_overrides_runpath=no
14773 hardcode_into_libs=yes
14774 ;;
14775
14776uts4*)
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
14781 ;;
14782
14783*)
14784 dynamic_linker=no
14785 ;;
14786esac
14787echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14788echo "${ECHO_T}$dynamic_linker" >&6
14789test "$dynamic_linker" = no && can_build_shared=no
14790
14791variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14792if test "$GCC" = yes; then
14793 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47935194
NN
14794fi
14795
93e92f52
PG
14796if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14797 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14798fi
14799if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14800 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14801fi
14802
47935194 14803
66deb2be 14804
2f7bf5b7 14805
2f7bf5b7 14806
2f7bf5b7 14807
2f7bf5b7 14808
47935194
NN
14809
14810
14811
14812
14813
2f7bf5b7 14814
47935194 14815
1530be84 14816
1530be84
TT
14817
14818
1cf3d07d
SE
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14839echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14840hardcode_action_CXX=
14841if test -n "$hardcode_libdir_flag_spec_CXX" ||
14842 test -n "$runpath_var_CXX" ||
14843 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14844
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
14857 fi
14858else
14859 # We cannot hardcode anything, or else we can only hardcode existing
14860 # directories.
14861 hardcode_action_CXX=unsupported
5a2586cf 14862fi
1cf3d07d
SE
14863echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14864echo "${ECHO_T}$hardcode_action_CXX" >&6
5a2586cf 14865
1cf3d07d
SE
14866if test "$hardcode_action_CXX" = relink ||
14867 test "$inherit_rpath_CXX" = yes; then
14868 # Fast installation is not supported
14869 enable_fast_install=no
14870elif test "$shlibpath_overrides_runpath" = yes ||
14871 test "$enable_shared" = no; then
14872 # Fast installation is not necessary
14873 enable_fast_install=needless
14874fi
5a2586cf 14875
1530be84 14876
5572488d 14877
5a2586cf 14878
5572488d 14879
5a2586cf 14880
5572488d 14881
1cf3d07d 14882 fi # test -n "$compiler"
5a2586cf 14883
1cf3d07d
SE
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
14893fi # test "$_lt_caught_CXX_error" != yes
5572488d 14894
1cf3d07d
SE
14895ac_ext=c
14896ac_cpp='$CPP $CPPFLAGS'
14897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14899ac_compiler_gnu=$ac_cv_c_compiler_gnu
5a2586cf 14900
1530be84 14901
30c3de1f 14902
5572488d 14903
30c3de1f 14904
1530be84 14905
5572488d 14906
5a2586cf 14907
5572488d 14908
5a2586cf 14909
5a2586cf 14910
5a2586cf 14911
d0c03515 14912
1cf3d07d 14913 ac_config_commands="$ac_config_commands libtool"
d0c03515 14914
eb496303 14915
eb496303 14916
eb496303 14917
1cf3d07d 14918# Only expand once:
eb496303 14919
9a35ada5 14920
eb496303 14921
5572488d 14922
1cf3d07d
SE
14923# Check whether --with-target-subdir or --without-target-subdir was given.
14924if test "${with_target_subdir+set}" = set; then
14925 withval="$with_target_subdir"
62aa6b06 14926
1cf3d07d 14927fi;
5572488d 14928
1cf3d07d
SE
14929# Check whether --with-cross-host or --without-cross-host was given.
14930if test "${with_cross_host+set}" = set; then
14931 withval="$with_cross_host"
1530be84 14932
1cf3d07d 14933fi;
5572488d 14934
1cf3d07d
SE
14935echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
14936echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
14937THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
14938if test -z "$THREADS"; then
14939 THREADS=no
14940fi
14941echo "$as_me:$LINENO: result: $THREADS" >&5
14942echo "${ECHO_T}$THREADS" >&6
14caa62f 14943
1cf3d07d
SE
14944# Check whether --enable-parallel-mark or --disable-parallel-mark was given.
14945if 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
14950echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
14951 { (exit 1); exit 1; }; }
14caa62f 14952 ;;
1cf3d07d 14953 esac
5572488d 14954
1cf3d07d 14955fi;
1530be84 14956
1cf3d07d
SE
14957AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
14958THREADLIBS=
14959case "$THREADS" in
14960 no | none | single)
14961 THREADS=none
14962 ;;
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*)
5572488d
KC
14968
14969cat >>confdefs.h <<\_ACEOF
1cf3d07d 14970#define GC_LINUX_THREADS 1
47935194 14971_ACEOF
30c3de1f 14972
5572488d
KC
14973
14974cat >>confdefs.h <<\_ACEOF
1cf3d07d 14975#define _REENTRANT 1
47935194 14976_ACEOF
30c3de1f 14977
1cf3d07d 14978 if test "${enable_parallel_mark}" = yes; then
30c3de1f 14979
1cf3d07d 14980cat >>confdefs.h <<\_ACEOF
30c3de1f 14981#define PARALLEL_MARK 1
47935194 14982_ACEOF
30c3de1f
JS
14983
14984 fi
5572488d
KC
14985
14986cat >>confdefs.h <<\_ACEOF
30c3de1f 14987#define THREAD_LOCAL_ALLOC 1
47935194 14988_ACEOF
30c3de1f 14989
1530be84 14990 ;;
1cf3d07d
SE
14991 *-*-linux*)
14992 cat >>confdefs.h <<\_ACEOF
14993#define GC_LINUX_THREADS 1
47935194 14994_ACEOF
30c3de1f 14995
1cf3d07d
SE
14996 cat >>confdefs.h <<\_ACEOF
14997#define _REENTRANT 1
47935194 14998_ACEOF
30c3de1f 14999
1cf3d07d
SE
15000 ;;
15001 *-*-aix*)
5572488d
KC
15002
15003cat >>confdefs.h <<\_ACEOF
30c3de1f 15004#define GC_AIX_THREADS 1
47935194 15005_ACEOF
30c3de1f 15006
1cf3d07d 15007 cat >>confdefs.h <<\_ACEOF
30c3de1f 15008#define _REENTRANT 1
47935194 15009_ACEOF
30c3de1f 15010
1cf3d07d
SE
15011 ;;
15012 *-*-hpux11*)
15013 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
15014echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
bf9a420e 15015
1cf3d07d
SE
15016cat >>confdefs.h <<\_ACEOF
15017#define GC_HPUX_THREADS 1
4f6d8cc8 15018_ACEOF
4f6d8cc8 15019
1cf3d07d
SE
15020
15021cat >>confdefs.h <<\_ACEOF
15022#define _POSIX_C_SOURCE 199506L
4f6d8cc8 15023_ACEOF
4f6d8cc8 15024
1cf3d07d
SE
15025 if test "${enable_parallel_mark}" = yes; then
15026 cat >>confdefs.h <<\_ACEOF
15027#define PARALLEL_MARK 1
4f6d8cc8 15028_ACEOF
4f6d8cc8 15029
1cf3d07d
SE
15030 fi
15031 cat >>confdefs.h <<\_ACEOF
15032#define THREAD_LOCAL_ALLOC 1
4f6d8cc8 15033_ACEOF
4f6d8cc8 15034
1cf3d07d
SE
15035 THREADLIBS="-lpthread -lrt"
15036 # HPUX needs REENTRANT for the _r calls.
4f6d8cc8
GK
15037
15038cat >>confdefs.h <<\_ACEOF
1cf3d07d 15039#define _REENTRANT 1
4f6d8cc8
GK
15040_ACEOF
15041
1cf3d07d
SE
15042 ;;
15043 *-*-hpux10*)
15044 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
15045echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
15046 ;;
15047 *-*-kfreebsd*-gnu)
15048 cat >>confdefs.h <<\_ACEOF
15049#define GC_FREEBSD_THREADS 1
15050_ACEOF
4f6d8cc8 15051
1cf3d07d
SE
15052 INCLUDES="$INCLUDES -pthread"
15053 THREADDLLIBS=-pthread
15054 cat >>confdefs.h <<\_ACEOF
15055#define _REENTRANT 1
4f6d8cc8 15056_ACEOF
4f6d8cc8 15057
1cf3d07d
SE
15058 if test "${enable_parallel_mark}" = yes; then
15059 cat >>confdefs.h <<\_ACEOF
15060#define PARALLEL_MARK 1
4f6d8cc8 15061_ACEOF
4f6d8cc8 15062
1cf3d07d
SE
15063 fi
15064 cat >>confdefs.h <<\_ACEOF
15065#define THREAD_LOCAL_ALLOC 1
4f6d8cc8 15066_ACEOF
4f6d8cc8 15067
1cf3d07d
SE
15068
15069cat >>confdefs.h <<\_ACEOF
15070#define USE_COMPILER_TLS 1
4f6d8cc8 15071_ACEOF
4f6d8cc8 15072
1cf3d07d
SE
15073 ;;
15074 *-*-freebsd*)
15075 { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
15076echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
4f6d8cc8
GK
15077
15078cat >>confdefs.h <<\_ACEOF
1cf3d07d 15079#define GC_FREEBSD_THREADS 1
4f6d8cc8
GK
15080_ACEOF
15081
1cf3d07d
SE
15082 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
15083 THREADLIBS=-pthread
15084 ;;
15085 *-*-solaris*)
4f6d8cc8 15086
1cf3d07d
SE
15087cat >>confdefs.h <<\_ACEOF
15088#define GC_SOLARIS_PTHREADS 1
4f6d8cc8 15089_ACEOF
4f6d8cc8 15090
28e2ff77
RO
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"
1cf3d07d
SE
15096 ;;
15097 *-*-irix*)
15098
15099cat >>confdefs.h <<\_ACEOF
15100#define GC_IRIX_THREADS 1
4f6d8cc8 15101_ACEOF
4f6d8cc8 15102
1cf3d07d
SE
15103 ;;
15104 *-*-cygwin*)
15105
15106cat >>confdefs.h <<\_ACEOF
15107#define GC_WIN32_THREADS 1
4f6d8cc8 15108_ACEOF
4f6d8cc8 15109
1cf3d07d
SE
15110 ;;
15111 *-*-darwin*)
15112
15113cat >>confdefs.h <<\_ACEOF
15114#define GC_DARWIN_THREADS 1
15115_ACEOF
15116
15117 cat >>confdefs.h <<\_ACEOF
15118#define THREAD_LOCAL_ALLOC 1
15119_ACEOF
15120
15121 if test "${enable_parallel_mark}" = yes; then
15122 cat >>confdefs.h <<\_ACEOF
15123#define PARALLEL_MARK 1
15124_ACEOF
15125
15126 fi
15127 ;;
15128 *-*-osf*)
4f6d8cc8
GK
15129
15130cat >>confdefs.h <<\_ACEOF
1cf3d07d 15131#define GC_OSF1_THREADS 1
4f6d8cc8
GK
15132_ACEOF
15133
1cf3d07d
SE
15134 if test "${enable_parallel_mark}" = yes; then
15135 cat >>confdefs.h <<\_ACEOF
15136#define PARALLEL_MARK 1
15137_ACEOF
4f6d8cc8 15138
1cf3d07d
SE
15139 cat >>confdefs.h <<\_ACEOF
15140#define THREAD_LOCAL_ALLOC 1
4f6d8cc8 15141_ACEOF
4f6d8cc8 15142
1cf3d07d
SE
15143 # May want to enable it in other cases, too.
15144 # Measurements havent yet been done.
15145 fi
15146 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
15147 THREADLIBS="-lpthread -lrt"
15148 ;;
15149 esac
15150 ;;
15151 win32)
15152 cat >>confdefs.h <<\_ACEOF
15153#define GC_WIN32_THREADS 1
4f6d8cc8 15154_ACEOF
4f6d8cc8 15155
1cf3d07d
SE
15156 ;;
15157 dgux386)
15158 THREADS=dgux386
15159echo "$as_me:$LINENO: result: $THREADLIBS" >&5
15160echo "${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
4f6d8cc8 15166_ACEOF
4f6d8cc8 15167
1cf3d07d
SE
15168 fi
15169 cat >>confdefs.h <<\_ACEOF
15170#define THREAD_LOCAL_ALLOC 1
4f6d8cc8 15171_ACEOF
4f6d8cc8 15172
4f6d8cc8
GK
15173
15174cat >>confdefs.h <<\_ACEOF
1cf3d07d 15175#define GC_DGUX386_THREADS 1
4f6d8cc8
GK
15176_ACEOF
15177
4f6d8cc8 15178
1cf3d07d
SE
15179cat >>confdefs.h <<\_ACEOF
15180#define DGUX_THREADS 1
15181_ACEOF
15182
15183 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
15184 AM_CPPFLAGS="-pthread $AM_CPPFLAGS"
4f6d8cc8 15185 ;;
1cf3d07d
SE
15186 aix)
15187 THREADS=posix
15188 THREADLIBS=-lpthread
15189 cat >>confdefs.h <<\_ACEOF
15190#define GC_AIX_THREADS 1
15191_ACEOF
15192
15193 cat >>confdefs.h <<\_ACEOF
15194#define _REENTRANT 1
15195_ACEOF
15196
15197 ;;
15198 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
15199 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
15200echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
15201 { (exit 1); exit 1; }; }
15202 ;;
15203 *)
15204 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
15205echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
15206 { (exit 1); exit 1; }; }
15207 ;;
15208esac
15209
15210
15211case "$host" in
15212 powerpc-*-darwin*)
15213 powerpc_darwin=true
15214 ;;
15215esac
15216
15217
15218if test x$powerpc_darwin = xtrue; then
15219 POWERPC_DARWIN_TRUE=
15220 POWERPC_DARWIN_FALSE='#'
15221else
15222 POWERPC_DARWIN_TRUE='#'
15223 POWERPC_DARWIN_FALSE=
15224fi
15225
15226
15227# Darwin needs a few extra special tests to deal with variation in the
15228# system headers.
15229case "$host" in
15230 powerpc*-*-darwin*)
15231 echo "$as_me:$LINENO: checking for ppc_thread_state_t.r0" >&5
15232echo $ECHO_N "checking for ppc_thread_state_t.r0... $ECHO_C" >&6
15233if test "${ac_cv_member_ppc_thread_state_t_r0+set}" = set; then
4f6d8cc8
GK
15234 echo $ECHO_N "(cached) $ECHO_C" >&6
15235else
15236 cat >conftest.$ac_ext <<_ACEOF
15237/* confdefs.h. */
15238_ACEOF
15239cat confdefs.h >>conftest.$ac_ext
15240cat >>conftest.$ac_ext <<_ACEOF
15241/* end confdefs.h. */
1cf3d07d 15242#include <mach/thread_status.h>
4f6d8cc8
GK
15243
15244int
15245main ()
15246{
1cf3d07d
SE
15247static ppc_thread_state_t ac_aggr;
15248if (ac_aggr.r0)
4f6d8cc8
GK
15249return 0;
15250 ;
15251 return 0;
15252}
15253_ACEOF
15254rm -f conftest.$ac_objext
15255if { (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
1cf3d07d 15276 ac_cv_member_ppc_thread_state_t_r0=yes
4f6d8cc8
GK
15277else
15278 echo "$as_me: failed program was:" >&5
15279sed 's/^/| /' conftest.$ac_ext >&5
15280
15281cat >conftest.$ac_ext <<_ACEOF
15282/* confdefs.h. */
15283_ACEOF
15284cat confdefs.h >>conftest.$ac_ext
15285cat >>conftest.$ac_ext <<_ACEOF
15286/* end confdefs.h. */
1cf3d07d 15287#include <mach/thread_status.h>
4f6d8cc8
GK
15288
15289int
15290main ()
15291{
1cf3d07d
SE
15292static ppc_thread_state_t ac_aggr;
15293if (sizeof ac_aggr.r0)
4f6d8cc8
GK
15294return 0;
15295 ;
15296 return 0;
15297}
15298_ACEOF
15299rm -f conftest.$ac_objext
15300if { (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
1cf3d07d 15321 ac_cv_member_ppc_thread_state_t_r0=yes
4f6d8cc8
GK
15322else
15323 echo "$as_me: failed program was:" >&5
15324sed 's/^/| /' conftest.$ac_ext >&5
15325
1cf3d07d 15326ac_cv_member_ppc_thread_state_t_r0=no
4f6d8cc8
GK
15327fi
15328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15329fi
15330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15331fi
1cf3d07d
SE
15332echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_r0" >&5
15333echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t_r0" >&6
15334if test $ac_cv_member_ppc_thread_state_t_r0 = yes; then
4f6d8cc8
GK
15335
15336cat >>confdefs.h <<\_ACEOF
1cf3d07d 15337#define HAS_PPC_THREAD_STATE_R0 1
4f6d8cc8
GK
15338_ACEOF
15339
15340fi
15341
1cf3d07d
SE
15342 echo "$as_me:$LINENO: checking for ppc_thread_state_t.__r0" >&5
15343echo $ECHO_N "checking for ppc_thread_state_t.__r0... $ECHO_C" >&6
15344if test "${ac_cv_member_ppc_thread_state_t___r0+set}" = set; then
4f6d8cc8
GK
15345 echo $ECHO_N "(cached) $ECHO_C" >&6
15346else
15347 cat >conftest.$ac_ext <<_ACEOF
15348/* confdefs.h. */
15349_ACEOF
15350cat confdefs.h >>conftest.$ac_ext
15351cat >>conftest.$ac_ext <<_ACEOF
15352/* end confdefs.h. */
1cf3d07d 15353#include <mach/thread_status.h>
4f6d8cc8
GK
15354
15355int
15356main ()
15357{
1cf3d07d
SE
15358static ppc_thread_state_t ac_aggr;
15359if (ac_aggr.__r0)
4f6d8cc8
GK
15360return 0;
15361 ;
15362 return 0;
15363}
15364_ACEOF
15365rm -f conftest.$ac_objext
15366if { (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
1cf3d07d 15387 ac_cv_member_ppc_thread_state_t___r0=yes
4f6d8cc8
GK
15388else
15389 echo "$as_me: failed program was:" >&5
15390sed 's/^/| /' conftest.$ac_ext >&5
15391
15392cat >conftest.$ac_ext <<_ACEOF
15393/* confdefs.h. */
15394_ACEOF
15395cat confdefs.h >>conftest.$ac_ext
15396cat >>conftest.$ac_ext <<_ACEOF
15397/* end confdefs.h. */
1cf3d07d 15398#include <mach/thread_status.h>
4f6d8cc8
GK
15399
15400int
15401main ()
15402{
1cf3d07d
SE
15403static ppc_thread_state_t ac_aggr;
15404if (sizeof ac_aggr.__r0)
4f6d8cc8
GK
15405return 0;
15406 ;
15407 return 0;
15408}
15409_ACEOF
15410rm -f conftest.$ac_objext
15411if { (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
1cf3d07d 15432 ac_cv_member_ppc_thread_state_t___r0=yes
4f6d8cc8
GK
15433else
15434 echo "$as_me: failed program was:" >&5
15435sed 's/^/| /' conftest.$ac_ext >&5
15436
1cf3d07d 15437ac_cv_member_ppc_thread_state_t___r0=no
4f6d8cc8
GK
15438fi
15439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15440fi
15441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15442fi
1cf3d07d
SE
15443echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t___r0" >&5
15444echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t___r0" >&6
15445if test $ac_cv_member_ppc_thread_state_t___r0 = yes; then
4f6d8cc8
GK
15446
15447cat >>confdefs.h <<\_ACEOF
1cf3d07d 15448#define HAS_PPC_THREAD_STATE___R0 1
4f6d8cc8
GK
15449_ACEOF
15450
15451fi
15452
1cf3d07d
SE
15453 echo "$as_me:$LINENO: checking for ppc_thread_state64_t.r0" >&5
15454echo $ECHO_N "checking for ppc_thread_state64_t.r0... $ECHO_C" >&6
15455if test "${ac_cv_member_ppc_thread_state64_t_r0+set}" = set; then
583cb3d3
AT
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15457else
15458 cat >conftest.$ac_ext <<_ACEOF
15459/* confdefs.h. */
15460_ACEOF
15461cat confdefs.h >>conftest.$ac_ext
15462cat >>conftest.$ac_ext <<_ACEOF
15463/* end confdefs.h. */
1cf3d07d 15464#include <mach/thread_status.h>
583cb3d3
AT
15465
15466int
15467main ()
15468{
1cf3d07d
SE
15469static ppc_thread_state64_t ac_aggr;
15470if (ac_aggr.r0)
583cb3d3
AT
15471return 0;
15472 ;
15473 return 0;
15474}
15475_ACEOF
15476rm -f conftest.$ac_objext
15477if { (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
1cf3d07d 15498 ac_cv_member_ppc_thread_state64_t_r0=yes
583cb3d3
AT
15499else
15500 echo "$as_me: failed program was:" >&5
15501sed 's/^/| /' conftest.$ac_ext >&5
15502
15503cat >conftest.$ac_ext <<_ACEOF
15504/* confdefs.h. */
15505_ACEOF
15506cat confdefs.h >>conftest.$ac_ext
15507cat >>conftest.$ac_ext <<_ACEOF
15508/* end confdefs.h. */
1cf3d07d 15509#include <mach/thread_status.h>
583cb3d3
AT
15510
15511int
15512main ()
15513{
1cf3d07d
SE
15514static ppc_thread_state64_t ac_aggr;
15515if (sizeof ac_aggr.r0)
583cb3d3
AT
15516return 0;
15517 ;
15518 return 0;
15519}
15520_ACEOF
15521rm -f conftest.$ac_objext
15522if { (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
1cf3d07d 15543 ac_cv_member_ppc_thread_state64_t_r0=yes
583cb3d3
AT
15544else
15545 echo "$as_me: failed program was:" >&5
15546sed 's/^/| /' conftest.$ac_ext >&5
15547
1cf3d07d 15548ac_cv_member_ppc_thread_state64_t_r0=no
583cb3d3
AT
15549fi
15550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15551fi
15552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15553fi
1cf3d07d
SE
15554echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t_r0" >&5
15555echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t_r0" >&6
15556if test $ac_cv_member_ppc_thread_state64_t_r0 = yes; then
583cb3d3
AT
15557
15558cat >>confdefs.h <<\_ACEOF
1cf3d07d 15559#define HAS_PPC_THREAD_STATE64_R0 1
583cb3d3
AT
15560_ACEOF
15561
15562fi
15563
1cf3d07d
SE
15564 echo "$as_me:$LINENO: checking for ppc_thread_state64_t.__r0" >&5
15565echo $ECHO_N "checking for ppc_thread_state64_t.__r0... $ECHO_C" >&6
15566if test "${ac_cv_member_ppc_thread_state64_t___r0+set}" = set; then
583cb3d3
AT
15567 echo $ECHO_N "(cached) $ECHO_C" >&6
15568else
15569 cat >conftest.$ac_ext <<_ACEOF
15570/* confdefs.h. */
15571_ACEOF
15572cat confdefs.h >>conftest.$ac_ext
15573cat >>conftest.$ac_ext <<_ACEOF
15574/* end confdefs.h. */
1cf3d07d 15575#include <mach/thread_status.h>
583cb3d3
AT
15576
15577int
15578main ()
15579{
1cf3d07d
SE
15580static ppc_thread_state64_t ac_aggr;
15581if (ac_aggr.__r0)
583cb3d3
AT
15582return 0;
15583 ;
15584 return 0;
15585}
15586_ACEOF
15587rm -f conftest.$ac_objext
15588if { (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
1cf3d07d 15609 ac_cv_member_ppc_thread_state64_t___r0=yes
583cb3d3
AT
15610else
15611 echo "$as_me: failed program was:" >&5
15612sed 's/^/| /' conftest.$ac_ext >&5
15613
15614cat >conftest.$ac_ext <<_ACEOF
15615/* confdefs.h. */
15616_ACEOF
15617cat confdefs.h >>conftest.$ac_ext
15618cat >>conftest.$ac_ext <<_ACEOF
15619/* end confdefs.h. */
1cf3d07d 15620#include <mach/thread_status.h>
583cb3d3
AT
15621
15622int
15623main ()
15624{
1cf3d07d
SE
15625static ppc_thread_state64_t ac_aggr;
15626if (sizeof ac_aggr.__r0)
583cb3d3
AT
15627return 0;
15628 ;
15629 return 0;
15630}
15631_ACEOF
15632rm -f conftest.$ac_objext
15633if { (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
1cf3d07d 15654 ac_cv_member_ppc_thread_state64_t___r0=yes
583cb3d3
AT
15655else
15656 echo "$as_me: failed program was:" >&5
15657sed 's/^/| /' conftest.$ac_ext >&5
15658
1cf3d07d 15659ac_cv_member_ppc_thread_state64_t___r0=no
583cb3d3
AT
15660fi
15661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15662fi
15663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15664fi
1cf3d07d
SE
15665echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t___r0" >&5
15666echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t___r0" >&6
15667if test $ac_cv_member_ppc_thread_state64_t___r0 = yes; then
583cb3d3
AT
15668
15669cat >>confdefs.h <<\_ACEOF
1cf3d07d 15670#define HAS_PPC_THREAD_STATE64___R0 1
583cb3d3
AT
15671_ACEOF
15672
15673fi
15674
1cf3d07d
SE
15675 ;;
15676 i?86*-*-darwin*)
15677 echo "$as_me:$LINENO: checking for x86_thread_state32_t.eax" >&5
15678echo $ECHO_N "checking for x86_thread_state32_t.eax... $ECHO_C" >&6
15679if test "${ac_cv_member_x86_thread_state32_t_eax+set}" = set; then
47935194
NN
15680 echo $ECHO_N "(cached) $ECHO_C" >&6
15681else
1cf3d07d 15682 cat >conftest.$ac_ext <<_ACEOF
47935194
NN
15683/* confdefs.h. */
15684_ACEOF
15685cat confdefs.h >>conftest.$ac_ext
15686cat >>conftest.$ac_ext <<_ACEOF
15687/* end confdefs.h. */
1cf3d07d
SE
15688#include <sys/cdefs.h>
15689 #include <mach/thread_status.h>
47935194 15690
47935194
NN
15691int
15692main ()
15693{
1cf3d07d
SE
15694static x86_thread_state32_t ac_aggr;
15695if (ac_aggr.eax)
15696return 0;
47935194
NN
15697 ;
15698 return 0;
15699}
1cf3d07d
SE
15700_ACEOF
15701rm -f conftest.$ac_objext
15702if { (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
7ddf92a8 15724else
1cf3d07d
SE
15725 echo "$as_me: failed program was:" >&5
15726sed 's/^/| /' conftest.$ac_ext >&5
15727
7ddf92a8
BM
15728cat >conftest.$ac_ext <<_ACEOF
15729/* confdefs.h. */
15730_ACEOF
15731cat confdefs.h >>conftest.$ac_ext
15732cat >>conftest.$ac_ext <<_ACEOF
15733/* end confdefs.h. */
1cf3d07d
SE
15734#include <sys/cdefs.h>
15735 #include <mach/thread_status.h>
7ddf92a8
BM
15736
15737int
15738main ()
15739{
1cf3d07d
SE
15740static x86_thread_state32_t ac_aggr;
15741if (sizeof ac_aggr.eax)
15742return 0;
7ddf92a8
BM
15743 ;
15744 return 0;
15745}
15746_ACEOF
1cf3d07d
SE
15747rm -f conftest.$ac_objext
15748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15749 (eval $ac_compile) 2>conftest.er1
7ddf92a8
BM
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); }; } &&
1cf3d07d 15763 { ac_try='test -s conftest.$ac_objext'
7ddf92a8
BM
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
1cf3d07d 15769 ac_cv_member_x86_thread_state32_t_eax=yes
7ddf92a8
BM
15770else
15771 echo "$as_me: failed program was:" >&5
15772sed 's/^/| /' conftest.$ac_ext >&5
15773
1cf3d07d 15774ac_cv_member_x86_thread_state32_t_eax=no
7ddf92a8 15775fi
1cf3d07d 15776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ddf92a8 15777fi
1cf3d07d 15778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ddf92a8 15779fi
1cf3d07d
SE
15780echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t_eax" >&5
15781echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t_eax" >&6
15782if test $ac_cv_member_x86_thread_state32_t_eax = yes; then
5572488d
KC
15783
15784cat >>confdefs.h <<\_ACEOF
1cf3d07d 15785#define HAS_X86_THREAD_STATE32_EAX 1
47935194 15786_ACEOF
b27317b5 15787
1530be84 15788fi
1530be84 15789
1cf3d07d
SE
15790 echo "$as_me:$LINENO: checking for x86_thread_state32_t.__eax" >&5
15791echo $ECHO_N "checking for x86_thread_state32_t.__eax... $ECHO_C" >&6
15792if test "${ac_cv_member_x86_thread_state32_t___eax+set}" = set; then
47935194 15793 echo $ECHO_N "(cached) $ECHO_C" >&6
30c3de1f 15794else
47935194
NN
15795 cat >conftest.$ac_ext <<_ACEOF
15796/* confdefs.h. */
15797_ACEOF
15798cat confdefs.h >>conftest.$ac_ext
15799cat >>conftest.$ac_ext <<_ACEOF
15800/* end confdefs.h. */
1cf3d07d
SE
15801#include <sys/cdefs.h>
15802 #include <mach/thread_status.h>
15803
15804int
15805main ()
15806{
15807static x86_thread_state32_t ac_aggr;
15808if (ac_aggr.__eax)
15809return 0;
15810 ;
15811 return 0;
15812}
47935194 15813_ACEOF
1cf3d07d
SE
15814rm -f conftest.$ac_objext
15815if { (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
47935194 15833 ac_status=$?
47935194 15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
15835 (exit $ac_status); }; }; then
15836 ac_cv_member_x86_thread_state32_t___eax=yes
30c3de1f 15837else
47935194
NN
15838 echo "$as_me: failed program was:" >&5
15839sed 's/^/| /' conftest.$ac_ext >&5
15840
1cf3d07d 15841cat >conftest.$ac_ext <<_ACEOF
47935194
NN
15842/* confdefs.h. */
15843_ACEOF
15844cat confdefs.h >>conftest.$ac_ext
15845cat >>conftest.$ac_ext <<_ACEOF
15846/* end confdefs.h. */
1cf3d07d
SE
15847#include <sys/cdefs.h>
15848 #include <mach/thread_status.h>
15849
15850int
15851main ()
15852{
15853static x86_thread_state32_t ac_aggr;
15854if (sizeof ac_aggr.__eax)
15855return 0;
15856 ;
15857 return 0;
15858}
47935194 15859_ACEOF
1cf3d07d
SE
15860rm -f conftest.$ac_objext
15861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15862 (eval $ac_compile) 2>conftest.er1
47935194
NN
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
1cf3d07d
SE
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
47935194
NN
15883else
15884 echo "$as_me: failed program was:" >&5
15885sed 's/^/| /' conftest.$ac_ext >&5
15886
1cf3d07d 15887ac_cv_member_x86_thread_state32_t___eax=no
30c3de1f 15888fi
1cf3d07d 15889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194 15890fi
1cf3d07d
SE
15891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15892fi
15893echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t___eax" >&5
15894echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t___eax" >&6
15895if test $ac_cv_member_x86_thread_state32_t___eax = yes; then
47935194 15896
1cf3d07d
SE
15897cat >>confdefs.h <<\_ACEOF
15898#define HAS_X86_THREAD_STATE32___EAX 1
15899_ACEOF
47935194
NN
15900
15901fi
1cf3d07d
SE
15902
15903 ;;
15904 x86_64-*-darwin*)
15905 echo "$as_me:$LINENO: checking for x86_thread_state64_t.rax" >&5
15906echo $ECHO_N "checking for x86_thread_state64_t.rax... $ECHO_C" >&6
15907if test "${ac_cv_member_x86_thread_state64_t_rax+set}" = set; then
15908 echo $ECHO_N "(cached) $ECHO_C" >&6
47935194 15909else
47935194
NN
15910 cat >conftest.$ac_ext <<_ACEOF
15911/* confdefs.h. */
15912_ACEOF
15913cat confdefs.h >>conftest.$ac_ext
15914cat >>conftest.$ac_ext <<_ACEOF
15915/* end confdefs.h. */
1cf3d07d
SE
15916#include <sys/cdefs.h>
15917 #include <mach/thread_status.h>
15918
15919int
15920main ()
15921{
15922static x86_thread_state64_t ac_aggr;
15923if (ac_aggr.rax)
15924return 0;
15925 ;
15926 return 0;
15927}
47935194 15928_ACEOF
1cf3d07d
SE
15929rm -f conftest.$ac_objext
15930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15931 (eval $ac_compile) 2>conftest.er1
47935194
NN
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
1cf3d07d
SE
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
47935194
NN
15952else
15953 echo "$as_me: failed program was:" >&5
15954sed 's/^/| /' conftest.$ac_ext >&5
15955
1cf3d07d 15956cat >conftest.$ac_ext <<_ACEOF
47935194
NN
15957/* confdefs.h. */
15958_ACEOF
15959cat confdefs.h >>conftest.$ac_ext
15960cat >>conftest.$ac_ext <<_ACEOF
15961/* end confdefs.h. */
1cf3d07d
SE
15962#include <sys/cdefs.h>
15963 #include <mach/thread_status.h>
15964
15965int
15966main ()
15967{
15968static x86_thread_state64_t ac_aggr;
15969if (sizeof ac_aggr.rax)
15970return 0;
15971 ;
15972 return 0;
15973}
47935194 15974_ACEOF
1cf3d07d
SE
15975rm -f conftest.$ac_objext
15976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15977 (eval $ac_compile) 2>conftest.er1
47935194
NN
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
1cf3d07d
SE
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
47935194
NN
15998else
15999 echo "$as_me: failed program was:" >&5
16000sed 's/^/| /' conftest.$ac_ext >&5
16001
1cf3d07d 16002ac_cv_member_x86_thread_state64_t_rax=no
47935194 16003fi
1cf3d07d 16004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194 16005fi
1cf3d07d
SE
16006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16007fi
16008echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t_rax" >&5
16009echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t_rax" >&6
16010if test $ac_cv_member_x86_thread_state64_t_rax = yes; then
47935194 16011
1cf3d07d
SE
16012cat >>confdefs.h <<\_ACEOF
16013#define HAS_X86_THREAD_STATE64_RAX 1
16014_ACEOF
47935194 16015
1cf3d07d
SE
16016fi
16017
16018 echo "$as_me:$LINENO: checking for x86_thread_state64_t.__rax" >&5
16019echo $ECHO_N "checking for x86_thread_state64_t.__rax... $ECHO_C" >&6
16020if test "${ac_cv_member_x86_thread_state64_t___rax+set}" = set; then
47935194
NN
16021 echo $ECHO_N "(cached) $ECHO_C" >&6
16022else
16023 cat >conftest.$ac_ext <<_ACEOF
16024/* confdefs.h. */
16025_ACEOF
16026cat confdefs.h >>conftest.$ac_ext
16027cat >>conftest.$ac_ext <<_ACEOF
16028/* end confdefs.h. */
1cf3d07d
SE
16029#include <sys/cdefs.h>
16030 #include <mach/thread_status.h>
47935194
NN
16031
16032int
16033main ()
16034{
1cf3d07d
SE
16035static x86_thread_state64_t ac_aggr;
16036if (ac_aggr.__rax)
16037return 0;
47935194
NN
16038 ;
16039 return 0;
16040}
16041_ACEOF
16042rm -f conftest.$ac_objext
16043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 16044 (eval $ac_compile) 2>conftest.er1
47935194 16045 ac_status=$?
8ab705be
KC
16046 grep -v '^ *+' conftest.er1 >conftest.err
16047 rm -f conftest.er1
16048 cat conftest.err >&5
47935194
NN
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); } &&
5572488d
KC
16051 { ac_try='test -z "$ac_c_werror_flag"
16052 || test ! -s conftest.err'
8ab705be
KC
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'
47935194
NN
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
1cf3d07d 16064 ac_cv_member_x86_thread_state64_t___rax=yes
47935194
NN
16065else
16066 echo "$as_me: failed program was:" >&5
16067sed 's/^/| /' conftest.$ac_ext >&5
16068
1cf3d07d 16069cat >conftest.$ac_ext <<_ACEOF
47935194
NN
16070/* confdefs.h. */
16071_ACEOF
16072cat confdefs.h >>conftest.$ac_ext
16073cat >>conftest.$ac_ext <<_ACEOF
16074/* end confdefs.h. */
1cf3d07d
SE
16075#include <sys/cdefs.h>
16076 #include <mach/thread_status.h>
47935194 16077
1cf3d07d
SE
16078int
16079main ()
16080{
16081static x86_thread_state64_t ac_aggr;
16082if (sizeof ac_aggr.__rax)
16083return 0;
16084 ;
16085 return 0;
16086}
47935194 16087_ACEOF
1cf3d07d
SE
16088rm -f conftest.$ac_objext
16089if { (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
47935194 16111else
1cf3d07d
SE
16112 echo "$as_me: failed program was:" >&5
16113sed 's/^/| /' conftest.$ac_ext >&5
47935194 16114
1cf3d07d
SE
16115ac_cv_member_x86_thread_state64_t___rax=no
16116fi
16117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16118fi
16119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194 16120fi
1cf3d07d
SE
16121echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t___rax" >&5
16122echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t___rax" >&6
16123if test $ac_cv_member_x86_thread_state64_t___rax = yes; then
47935194 16124
1cf3d07d
SE
16125cat >>confdefs.h <<\_ACEOF
16126#define HAS_X86_THREAD_STATE64___RAX 1
47935194 16127_ACEOF
47935194 16128
47935194 16129fi
47935194 16130
1cf3d07d
SE
16131 ;;
16132 *) ;;
16133esac
47935194 16134
1cf3d07d
SE
16135# We never want libdl on darwin. It is a fake libdl that just ends up making
16136# dyld calls anyway
16137case "$host" in
16138 *-*-darwin*) ;;
16139 *)
16140 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16141echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16142if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16143 echo $ECHO_N "(cached) $ECHO_C" >&6
47935194 16144else
1cf3d07d
SE
16145 ac_check_lib_save_LIBS=$LIBS
16146LIBS="-ldl $LIBS"
16147if test x$gcc_no_link = xyes; then
16148 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16149echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16150 { (exit 1); exit 1; }; }
16151fi
16152cat >conftest.$ac_ext <<_ACEOF
47935194
NN
16153/* confdefs.h. */
16154_ACEOF
16155cat confdefs.h >>conftest.$ac_ext
16156cat >>conftest.$ac_ext <<_ACEOF
16157/* end confdefs.h. */
47935194 16158
1cf3d07d
SE
16159/* Override any gcc2 internal prototype to avoid an error. */
16160#ifdef __cplusplus
16161extern "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. */
16165char dlopen ();
47935194
NN
16166int
16167main ()
16168{
1cf3d07d
SE
16169dlopen ();
16170 ;
16171 return 0;
47935194
NN
16172}
16173_ACEOF
1cf3d07d 16174rm -f conftest.$ac_objext conftest$ac_exeext
47935194 16175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1cf3d07d
SE
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
47935194
NN
16187 ac_status=$?
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
16189 (exit $ac_status); }; } &&
16190 { ac_try='test -s conftest$ac_exeext'
47935194
NN
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
1cf3d07d 16196 ac_cv_lib_dl_dlopen=yes
30c3de1f 16197else
1cf3d07d 16198 echo "$as_me: failed program was:" >&5
47935194
NN
16199sed 's/^/| /' conftest.$ac_ext >&5
16200
1cf3d07d 16201ac_cv_lib_dl_dlopen=no
47935194 16202fi
1cf3d07d
SE
16203rm -f conftest.err conftest.$ac_objext \
16204 conftest$ac_exeext conftest.$ac_ext
16205LIBS=$ac_check_lib_save_LIBS
16206fi
16207echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16208echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16209if test $ac_cv_lib_dl_dlopen = yes; then
16210 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
47935194 16211fi
1cf3d07d
SE
16212
16213 ;;
16214esac
16215
16216# extra LD Flags which are required for targets
16217case "${host}" in
16218 *-*-darwin*)
16219 extra_ldflags_libgc=-Wl,-single_module
16220 ;;
16221esac
16222
16223
16224
16225
16226target_all=libgcjgc.la
16227
16228
16229TARGET_ECOS="no"
16230
16231# Check whether --with-ecos or --without-ecos was given.
16232if test "${with_ecos+set}" = set; then
16233 withval="$with_ecos"
16234 TARGET_ECOS="$with_ecos"
16235
16236fi;
16237
16238addobjs=
16239addlibs=
16240addincludes=
16241addtests=
16242case "$TARGET_ECOS" in
16243 no)
16244 ;;
16245 *)
16246
16247cat >>confdefs.h <<\_ACEOF
16248#define ECOS 1
16249_ACEOF
16250
16251 AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
16252 addobjs="$addobjs ecos.lo"
16253 ;;
16254esac
16255
16256if test "${enable_cplusplus}" = yes; then
16257 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
16258 addtests="$addtests test_cpp"
30c3de1f 16259fi
1cf3d07d
SE
16260
16261
16262
16263if test "${enable_cplusplus}" = yes; then
16264 CPLUSPLUS_TRUE=
16265 CPLUSPLUS_FALSE='#'
16266else
16267 CPLUSPLUS_TRUE='#'
16268 CPLUSPLUS_FALSE=
47935194 16269fi
47935194 16270
47935194 16271
47935194 16272
47935194
NN
16273
16274
16275
1cf3d07d
SE
16276# Configuration of shared libraries
16277#
16278echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16279echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16280# Check whether --enable-shared or --disable-shared was given.
16281if 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 ;;
16287 *)
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
16295 fi
16296 done
16297 IFS="$lt_save_ifs"
16298 ;;
16299 esac
16300else
16301 enable_shared=yes
16302fi;
16303
16304
47935194
NN
16305
16306
16307
16308
1cf3d07d
SE
16309case "$host" in
16310 alpha-*-openbsd*)
16311 enable_shared=no
16312 echo "$as_me:$LINENO: result: no" >&5
16313echo "${ECHO_T}no" >&6
16314 ;;
16315 *)
16316 echo "$as_me:$LINENO: result: yes" >&5
16317echo "${ECHO_T}yes" >&6
16318 ;;
16319esac
47935194 16320
1cf3d07d
SE
16321# Checks for pthreads functions
16322#
16323oldLIBS="$LIBS"
16324LIBS="$LIBS $THREADLIBS"
47935194 16325
1cf3d07d 16326for ac_func in pthread_getattr_np
47935194 16327do
1cf3d07d
SE
16328as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16329echo "$as_me:$LINENO: checking for $ac_func" >&5
16330echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16331if eval "test \"\${$as_ac_var+set}\" = set"; then
47935194
NN
16332 echo $ECHO_N "(cached) $ECHO_C" >&6
16333else
1cf3d07d
SE
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
16336echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16337 { (exit 1); exit 1; }; }
16338fi
16339cat >conftest.$ac_ext <<_ACEOF
47935194
NN
16340/* confdefs.h. */
16341_ACEOF
16342cat confdefs.h >>conftest.$ac_ext
16343cat >>conftest.$ac_ext <<_ACEOF
16344/* end confdefs.h. */
1cf3d07d
SE
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
47935194 16348
1cf3d07d
SE
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. */
16353
16354#ifdef __STDC__
16355# include <limits.h>
16356#else
16357# include <assert.h>
16358#endif
16359
16360#undef $ac_func
16361
16362/* Override any gcc2 internal prototype to avoid an error. */
16363#ifdef __cplusplus
16364extern "C"
16365{
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. */
16369char $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)
16374choke me
16375#else
16376char (*f) () = $ac_func;
16377#endif
16378#ifdef __cplusplus
16379}
16380#endif
16381
16382int
16383main ()
16384{
16385return f != $ac_func;
16386 ;
16387 return 0;
16388}
47935194 16389_ACEOF
1cf3d07d
SE
16390rm -f conftest.$ac_objext conftest$ac_exeext
16391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16392 (eval $ac_link) 2>conftest.er1
47935194 16393 ac_status=$?
8ab705be
KC
16394 grep -v '^ *+' conftest.er1 >conftest.err
16395 rm -f conftest.er1
16396 cat conftest.err >&5
47935194
NN
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
5572488d
KC
16399 { ac_try='test -z "$ac_c_werror_flag"
16400 || test ! -s conftest.err'
8ab705be
KC
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); }; } &&
1cf3d07d 16406 { ac_try='test -s conftest$ac_exeext'
47935194
NN
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
1cf3d07d 16412 eval "$as_ac_var=yes"
47935194
NN
16413else
16414 echo "$as_me: failed program was:" >&5
16415sed 's/^/| /' conftest.$ac_ext >&5
16416
1cf3d07d 16417eval "$as_ac_var=no"
47935194 16418fi
1cf3d07d
SE
16419rm -f conftest.err conftest.$ac_objext \
16420 conftest$ac_exeext conftest.$ac_ext
47935194 16421fi
1cf3d07d
SE
16422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16423echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16424if test `eval echo '${'$as_ac_var'}'` = yes; then
47935194 16425 cat >>confdefs.h <<_ACEOF
1cf3d07d 16426#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47935194
NN
16427_ACEOF
16428
16429fi
47935194
NN
16430done
16431
1cf3d07d
SE
16432LIBS="$oldLIBS"
16433
16434# Configuration of machine-dependent code
16435#
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.
16439#
16440echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
16441echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
16442machdep=
16443case "$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
16448echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
16449 fi
16450 ;;
16451 alpha*-*-linux*)
16452 machdep="alpha_mach_dep.lo"
16453 ;;
16454 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
16455
16456cat >>confdefs.h <<\_ACEOF
16457#define SOLARIS25_PROC_VDB_BUG_FIXED 1
16458_ACEOF
16459
16460 ;;
16461 mipstx39-*-elf*)
16462 machdep="mips_ultrix_mach_dep.lo"
16463
16464cat >>confdefs.h <<\_ACEOF
16465#define STACKBASE __stackbase
16466_ACEOF
16467
16468
16469cat >>confdefs.h <<\_ACEOF
16470#define DATASTART_IS_ETEXT 1
16471_ACEOF
16472
16473 ;;
16474 mips-dec-ultrix*)
16475 machdep="mips_ultrix_mach-dep.lo"
16476 ;;
16477 mips-nec-sysv*|mips-unknown-sysv*)
16478 ;;
16479 mips*-*-linux*)
16480 ;;
16481 mips-*-*)
16482 machdep="mips_sgi_mach_dep.lo"
16483 ;;
16484 sparc-*-netbsd*)
16485 machdep="sparc_netbsd_mach_dep.lo"
16486 ;;
16487 sparc-sun-solaris2.3)
16488 machdep="sparc_mach_dep.lo"
16489
16490cat >>confdefs.h <<\_ACEOF
16491#define SUNOS53_SHARED_LIB 1
16492_ACEOF
16493
16494 ;;
16495 sparc*-sun-solaris2.*)
16496 machdep="sparc_mach_dep.lo"
16497 ;;
16498 ia64-*-*)
16499 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
16500 ;;
16501esac
16502
16503cat >>confdefs.h <<\_ACEOF
16504#define NO_EXECUTE_PERMISSION 1
16505_ACEOF
16506
16507if test x"$machdep" = x; then
16508echo "$as_me:$LINENO: result: $machdep" >&5
16509echo "${ECHO_T}$machdep" >&6
16510 machdep="mach_dep.lo"
16511fi
16512addobjs="$addobjs $machdep"
16513
16514
16515
16516
30c3de1f 16517
1cf3d07d
SE
16518#
16519# Check for AViiON Machines running DGUX
16520#
16521echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
16522echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
16523ac_is_dgux=no
47935194
NN
16524if 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
16526echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16527if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16528 echo $ECHO_N "(cached) $ECHO_C" >&6
16529fi
16530echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16531echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
30c3de1f 16532else
47935194
NN
16533 # Is the header compilable?
16534echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16535echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
16536cat >conftest.$ac_ext <<_ACEOF
16537/* confdefs.h. */
16538_ACEOF
16539cat confdefs.h >>conftest.$ac_ext
16540cat >>conftest.$ac_ext <<_ACEOF
16541/* end confdefs.h. */
16542$ac_includes_default
30c3de1f 16543#include <sys/dg_sys_info.h>
47935194
NN
16544_ACEOF
16545rm -f conftest.$ac_objext
16546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 16547 (eval $ac_compile) 2>conftest.er1
47935194 16548 ac_status=$?
8ab705be
KC
16549 grep -v '^ *+' conftest.er1 >conftest.err
16550 rm -f conftest.er1
16551 cat conftest.err >&5
47935194
NN
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); } &&
5572488d
KC
16554 { ac_try='test -z "$ac_c_werror_flag"
16555 || test ! -s conftest.err'
8ab705be
KC
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'
47935194
NN
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
30c3de1f 16568else
47935194
NN
16569 echo "$as_me: failed program was:" >&5
16570sed 's/^/| /' conftest.$ac_ext >&5
16571
16572ac_header_compiler=no
16573fi
8ab705be 16574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
16575echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16576echo "${ECHO_T}$ac_header_compiler" >&6
16577
16578# Is the header present?
16579echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16580echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
16581cat >conftest.$ac_ext <<_ACEOF
16582/* confdefs.h. */
16583_ACEOF
16584cat confdefs.h >>conftest.$ac_ext
16585cat >>conftest.$ac_ext <<_ACEOF
16586/* end confdefs.h. */
16587#include <sys/dg_sys_info.h>
16588_ACEOF
16589if { (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
8ab705be 16599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47935194
NN
16600 else
16601 ac_cpp_err=
16602 fi
16603else
16604 ac_cpp_err=yes
30c3de1f 16605fi
47935194
NN
16606if test -z "$ac_cpp_err"; then
16607 ac_header_preproc=yes
16608else
16609 echo "$as_me: failed program was:" >&5
16610sed 's/^/| /' conftest.$ac_ext >&5
16611
16612 ac_header_preproc=no
16613fi
16614rm -f conftest.err conftest.$ac_ext
16615echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16616echo "${ECHO_T}$ac_header_preproc" >&6
16617
16618# So? What about this header?
8ab705be
KC
16619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16620 yes:no: )
47935194
NN
16621 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16622echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8ab705be
KC
16623 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16624echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16625 ac_header_preproc=yes
47935194 16626 ;;
8ab705be 16627 no:yes:* )
47935194
NN
16628 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16629echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
8ab705be
KC
16630 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16631echo "$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
16633echo "$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
16635echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
47935194
NN
16636 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16637echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
8ab705be
KC
16638 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16639echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
47935194
NN
16640 (
16641 cat <<\_ASBOX
8ab705be
KC
16642## ------------------------------------------ ##
16643## Report this to the AC_PACKAGE_NAME lists. ##
16644## ------------------------------------------ ##
47935194
NN
16645_ASBOX
16646 ) |
16647 sed "s/^/$as_me: WARNING: /" >&2
16648 ;;
16649esac
16650echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16651echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16652if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16653 echo $ECHO_N "(cached) $ECHO_C" >&6
16654else
16655 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
30c3de1f 16656fi
47935194
NN
16657echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16658echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16659
16660fi
16661if test $ac_cv_header_sys_dg_sys_info_h = yes; then
30c3de1f 16662 ac_is_dgux=yes;
30c3de1f
JS
16663fi
16664
16665
47935194
NN
16666
16667echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
16668echo "${ECHO_T}$ac_is_dgux" >&6
30c3de1f
JS
16669 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
16670if 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"
16677 fi
47935194
NN
16678
16679
30c3de1f
JS
16680fi
16681
47935194
NN
16682echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
16683echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
1530be84 16684case "$host" in
ab52d207 16685 *aix*)
1530be84 16686 if test "$GCC" = yes; then
47935194
NN
16687 echo "$as_me:$LINENO: result: yes" >&5
16688echo "${ECHO_T}yes" >&6
1530be84
TT
16689 new_CFLAGS=
16690 for i in $CFLAGS; do
16691 case "$i" in
16692 -O*)
16693 ;;
16694 *)
16695 new_CFLAGS="$new_CFLAGS $i"
16696 ;;
16697 esac
16698 done
16699 CFLAGS="$new_CFLAGS"
30c3de1f 16700 else
47935194
NN
16701 echo "$as_me:$LINENO: result: no" >&5
16702echo "${ECHO_T}no" >&6
1530be84
TT
16703 fi
16704 ;;
47935194
NN
16705 *) echo "$as_me:$LINENO: result: no" >&5
16706echo "${ECHO_T}no" >&6 ;;
1530be84
TT
16707esac
16708
16709MY_CFLAGS="$CFLAGS"
16710
16711
5572488d 16712
47935194 16713cat >>confdefs.h <<\_ACEOF
1530be84 16714#define SILENT 1
47935194 16715_ACEOF
1530be84 16716
5572488d 16717
47935194 16718cat >>confdefs.h <<\_ACEOF
1530be84 16719#define NO_SIGNALS 1
47935194 16720_ACEOF
1530be84 16721
5572488d 16722
47935194 16723cat >>confdefs.h <<\_ACEOF
5a2586cf 16724#define ALL_INTERIOR_POINTERS 1
47935194 16725_ACEOF
5a2586cf
TT
16726
16727
5572488d 16728
47935194 16729cat >>confdefs.h <<\_ACEOF
0476f098 16730#define JAVA_FINALIZATION 1
47935194 16731_ACEOF
1530be84 16732
5572488d 16733
47935194 16734cat >>confdefs.h <<\_ACEOF
0476f098 16735#define GC_GCJ_SUPPORT 1
47935194 16736_ACEOF
1530be84 16737
5572488d 16738
47935194 16739cat >>confdefs.h <<\_ACEOF
5a2586cf 16740#define ATOMIC_UNCOLLECTABLE 1
47935194 16741_ACEOF
5a2586cf 16742
1530be84 16743
3c1cbf58
HB
16744# Check whether --enable-gc-debug or --disable-gc-debug was given.
16745if test "${enable_gc_debug+set}" = set; then
16746 enableval="$enable_gc_debug"
16747 if test "$enable_gc_debug" = "yes"; then
47935194
NN
16748 { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
16749echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
5572488d
KC
16750
16751cat >>confdefs.h <<\_ACEOF
5a2586cf 16752#define KEEP_BACK_PTRS 1
47935194 16753_ACEOF
5a2586cf 16754
5572488d
KC
16755
16756cat >>confdefs.h <<\_ACEOF
5a2586cf 16757#define DBG_HDRS_ALL 1
47935194 16758_ACEOF
5a2586cf
TT
16759
16760 case $host in
79f777fd 16761 ia64-*-linux* )
5572488d
KC
16762
16763cat >>confdefs.h <<\_ACEOF
79f777fd 16764#define MAKE_BACK_GRAPH 1
47935194 16765_ACEOF
79f777fd
BM
16766
16767 ;;
48528b67 16768 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
47935194 16769 cat >>confdefs.h <<\_ACEOF
79f777fd 16770#define MAKE_BACK_GRAPH 1
47935194 16771_ACEOF
79f777fd 16772
47935194
NN
16773 { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
16774echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
5572488d
KC
16775
16776cat >>confdefs.h <<\_ACEOF
5a2586cf 16777#define SAVE_CALL_COUNT 8
47935194 16778_ACEOF
30c3de1f
JS
16779
16780 ;;
16781 i345686-*-dgux*)
47935194 16782 cat >>confdefs.h <<\_ACEOF
30c3de1f 16783#define MAKE_BACK_GRAPH 1
47935194 16784_ACEOF
5a2586cf
TT
16785
16786 ;;
47935194 16787 esac
5a2586cf 16788 fi
47935194 16789fi;
5a2586cf 16790
5909b034
BM
16791if test "${gc_use_mmap}" = "yes"; then
16792
16793cat >>confdefs.h <<\_ACEOF
16794#define USE_MMAP 1
16795_ACEOF
16796
16797fi
16798
13b6e5b4
AO
16799if test -n "$with_cross_host" &&
16800 test x"$with_cross_host" != x"no"; then
d38d6003 16801 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
13b6e5b4 16802 toolexeclibdir='$(toolexecdir)/lib'
b48ed568 16803else
d38d6003 16804 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
13b6e5b4 16805 toolexeclibdir='$(libdir)'
b48ed568 16806fi
ff8b9ca8
AS
16807multi_os_directory=`$CC -print-multi-os-directory`
16808case $multi_os_directory in
16809 .) ;; # Avoid trailing /.
16810 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16811esac
13b6e5b4
AO
16812
16813
b48ed568 16814
1530be84
TT
16815if test "${multilib}" = "yes"; then
16816 multilib_arg="--enable-multilib"
16817else
16818 multilib_arg=
16819fi
16820
9a060b37 16821 ac_config_headers="$ac_config_headers include/gc_config.h include/gc_ext_config.h"
4109fe85 16822
bf9a420e 16823
785fad0a 16824 ac_config_files="$ac_config_files Makefile include/Makefile threads.mk"
bf9a420e 16825
47935194 16826cat >confcache <<\_ACEOF
1530be84
TT
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
47935194
NN
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.
1530be84 16832#
47935194
NN
16833# config.status only pays attention to the cache file if you give it
16834# the --recheck option to rerun configure.
1530be84 16835#
47935194
NN
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.
16839
16840_ACEOF
16841
1530be84
TT
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.
47935194
NN
16847{
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 \
8ab705be
KC
16854 "s/'/'\\\\''/g;
16855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
47935194
NN
16856 ;;
16857 *)
16858 # `set' quotes correctly as required by POSIX, so do not add quotes.
16859 sed -n \
8ab705be 16860 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
47935194
NN
16861 ;;
16862 esac;
16863} |
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
16871if diff $cache_file confcache >/dev/null 2>&1; then :; else
1530be84 16872 if test -w $cache_file; then
47935194
NN
16873 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16874 cat confcache >$cache_file
1530be84
TT
16875 else
16876 echo "not updating unwritable cache $cache_file"
16877 fi
16878fi
16879rm -f confcache
16880
1530be84
TT
16881test "x$prefix" = xNONE && prefix=$ac_default_prefix
16882# Let make expand exec_prefix.
16883test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16884
47935194
NN
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).
1530be84 16889if test "x$srcdir" = x.; then
8ab705be 16890 ac_vpsub='/^[ ]*VPATH[ ]*=/{
47935194
NN
16891s/:*\$(srcdir):*/:/;
16892s/:*\${srcdir}:*/:/;
16893s/:*@srcdir@:*/:/;
8ab705be 16894s/^\([^=]*=[ ]*\):*/\1/;
47935194 16895s/:*$//;
8ab705be 16896s/^[^=]*=[ ]*$//;
47935194 16897}'
1530be84
TT
16898fi
16899
4109fe85 16900DEFS=-DHAVE_CONFIG_H
47935194
NN
16901
16902ac_libobjs=
16903ac_ltlibobjs=
16904for 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" |
8ab705be 16907 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
47935194
NN
16908 # 2. Add them.
16909 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16910 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16911done
16912LIBOBJS=$ac_libobjs
1530be84 16913
47935194 16914LTLIBOBJS=$ac_ltlibobjs
1530be84 16915
1530be84 16916
bf9a420e
PB
16917if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16918 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16919Usually this means the macro was only invoked conditionally." >&5
16920echo "$as_me: error: conditional \"AMDEP\" was never defined.
16921Usually this means the macro was only invoked conditionally." >&2;}
16922 { (exit 1); exit 1; }; }
16923fi
16924if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16925 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16926Usually this means the macro was only invoked conditionally." >&5
16927echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16928Usually this means the macro was only invoked conditionally." >&2;}
16929 { (exit 1); exit 1; }; }
16930fi
16931if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16932 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16933Usually this means the macro was only invoked conditionally." >&5
16934echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16935Usually this means the macro was only invoked conditionally." >&2;}
16936 { (exit 1); exit 1; }; }
16937fi
16938if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16939 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16940Usually this means the macro was only invoked conditionally." >&5
16941echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16942Usually this means the macro was only invoked conditionally." >&2;}
16943 { (exit 1); exit 1; }; }
16944fi
1cf3d07d
SE
16945if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16946 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16947Usually this means the macro was only invoked conditionally." >&5
16948echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16949Usually this means the macro was only invoked conditionally." >&2;}
16950 { (exit 1); exit 1; }; }
16951fi
bf9a420e
PB
16952if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
16953 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
16954Usually this means the macro was only invoked conditionally." >&5
16955echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
16956Usually this means the macro was only invoked conditionally." >&2;}
16957 { (exit 1); exit 1; }; }
16958fi
16959if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
16960 { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined.
16961Usually this means the macro was only invoked conditionally." >&5
16962echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined.
16963Usually this means the macro was only invoked conditionally." >&2;}
16964 { (exit 1); exit 1; }; }
16965fi
47935194
NN
16966
16967: ${CONFIG_STATUS=./config.status}
16968ac_clean_files_save=$ac_clean_files
16969ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16970{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16971echo "$as_me: creating $CONFIG_STATUS" >&6;}
16972cat >$CONFIG_STATUS <<_ACEOF
16973#! $SHELL
16974# Generated by $as_me.
1530be84 16975# Run this file to recreate the current configuration.
1530be84 16976# Compiler output produced by configure, useful for debugging
47935194
NN
16977# configure, is in config.log if it exists.
16978
16979debug=false
16980ac_cs_recheck=false
16981ac_cs_silent=false
16982SHELL=\${CONFIG_SHELL-$SHELL}
16983_ACEOF
16984
16985cat >>$CONFIG_STATUS <<\_ACEOF
16986## --------------------- ##
16987## M4sh Initialization. ##
16988## --------------------- ##
16989
16990# Be Bourne compatible
16991if 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+"$@"}'='"$@"'
16997elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16998 set -o posix
16999fi
8ab705be 17000DUALCASE=1; export DUALCASE # for MKS sh
47935194
NN
17001
17002# Support unset when possible.
8ab705be 17003if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
47935194
NN
17004 as_unset=unset
17005else
17006 as_unset=false
17007fi
1530be84 17008
47935194
NN
17009
17010# Work around bugs in pre-3.0 UWIN ksh.
17011$as_unset ENV MAIL MAILPATH
17012PS1='$ '
17013PS2='> '
17014PS4='+ '
17015
17016# NLS nuisances.
17017for 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
1530be84 17021do
8ab705be 17022 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47935194
NN
17023 eval $as_var=C; export $as_var
17024 else
17025 $as_unset $as_var
17026 fi
1530be84
TT
17027done
17028
47935194
NN
17029# Required to use basename.
17030if expr a : '\(a\)' >/dev/null 2>&1; then
17031 as_expr=expr
17032else
17033 as_expr=false
17034fi
1530be84 17035
47935194
NN
17036if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17037 as_basename=basename
17038else
17039 as_basename=false
17040fi
17041
17042
17043# Name of the executable.
17044as_me=`$as_basename "$0" ||
17045$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17046 X"$0" : 'X\(//\)$' \| \
17047 X"$0" : 'X\(/\)$' \| \
17048 . : '\(.\)' 2>/dev/null ||
17049echo X/"$0" |
17050 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17051 /^X\/\(\/\/\)$/{ s//\1/; q; }
17052 /^X\/\(\/\).*/{ s//\1/; q; }
17053 s/.*/./; q'`
17054
17055
17056# PATH needs CR, and LINENO needs CR and PATH.
17057# Avoid depending upon Character Ranges.
17058as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17059as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17060as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17061as_cr_digits='0123456789'
17062as_cr_alnum=$as_cr_Letters$as_cr_digits
17063
17064# The user is always right.
17065if 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=:
17073 fi
17074 rm -f conf$$.sh
17075fi
1530be84 17076
1530be84 17077
47935194
NN
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
17088for as_dir in $PATH
17089do
17090 IFS=$as_save_IFS
17091 test -z "$as_dir" && as_dir=.
17092 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17093done
1530be84 17094
47935194
NN
17095 ;;
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
1530be84 17101 fi
47935194
NN
17102 if test ! -f "$as_myself"; then
17103 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17104echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17105 { (exit 1); exit 1; }; }
1530be84 17106 fi
47935194
NN
17107 case $CONFIG_SHELL in
17108 '')
17109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17110for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17111do
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
17116 /*)
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
1530be84 17131done
47935194 17132;;
1530be84
TT
17133 esac
17134
47935194
NN
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 '
17145 N
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
17155echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17156 { (exit 1); exit 1; }; }
17157
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
17164}
17165
17166
17167case `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= ;;
17172esac
17173
17174if expr a : '\(a\)' >/dev/null 2>&1; then
17175 as_expr=expr
17176else
17177 as_expr=false
17178fi
1530be84 17179
47935194
NN
17180rm -f conf$$ conf$$.exe conf$$.file
17181echo >conf$$.file
17182if 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'
1530be84 17188 else
47935194 17189 as_ln_s='ln -s'
1530be84 17190 fi
47935194
NN
17191elif ln conf$$.file conf$$ 2>/dev/null; then
17192 as_ln_s=ln
17193else
17194 as_ln_s='cp -p'
17195fi
17196rm -f conf$$ conf$$.exe conf$$.file
1530be84 17197
47935194
NN
17198if mkdir -p . 2>/dev/null; then
17199 as_mkdir_p=:
17200else
8ab705be 17201 test -d ./-p && rmdir ./-p
47935194
NN
17202 as_mkdir_p=false
17203fi
17204
17205as_executable_p="test -f"
17206
17207# Sed expression to map a string onto a valid CPP name.
8ab705be 17208as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
47935194
NN
17209
17210# Sed expression to map a string onto a valid variable name.
8ab705be 17211as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
47935194
NN
17212
17213
17214# IFS
17215# We need space, tab and new line, in precisely that order.
17216as_nl='
17217'
17218IFS=" $as_nl"
17219
17220# CDPATH.
17221$as_unset CDPATH
17222
17223exec 6>&1
17224
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.
17228exec 5>>config.log
17229{
17230 echo
17231 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17232## Running $as_me. ##
17233_ASBOX
17234} >&5
17235cat >&5 <<_CSEOF
17236
17237This file was extended by $as_me, which was
8ab705be 17238generated by GNU Autoconf 2.59. Invocation command line was
47935194
NN
17239
17240 CONFIG_FILES = $CONFIG_FILES
17241 CONFIG_HEADERS = $CONFIG_HEADERS
17242 CONFIG_LINKS = $CONFIG_LINKS
17243 CONFIG_COMMANDS = $CONFIG_COMMANDS
17244 $ $0 $@
17245
17246_CSEOF
17247echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17248echo >&5
17249_ACEOF
1530be84 17250
47935194
NN
17251# Files that config.status was made for.
17252if test -n "$ac_config_files"; then
17253 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17254fi
17255
17256if test -n "$ac_config_headers"; then
17257 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17258fi
17259
17260if test -n "$ac_config_links"; then
17261 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17262fi
17263
17264if test -n "$ac_config_commands"; then
17265 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17266fi
17267
17268cat >>$CONFIG_STATUS <<\_ACEOF
17269
17270ac_cs_usage="\
17271\`$as_me' instantiates files from templates according to the
17272current configuration.
17273
17274Usage: $0 [OPTIONS] [FILE]...
17275
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]
8ab705be 17282 instantiate the configuration file FILE
4109fe85
BM
17283 --header=FILE[:TEMPLATE]
17284 instantiate the configuration header FILE
47935194
NN
17285
17286Configuration files:
17287$config_files
17288
4109fe85
BM
17289Configuration headers:
17290$config_headers
17291
47935194
NN
17292Configuration commands:
17293$config_commands
17294
17295Report bugs to <bug-autoconf@gnu.org>."
17296_ACEOF
17297
17298cat >>$CONFIG_STATUS <<_ACEOF
17299ac_cs_version="\\
17300config.status
8ab705be 17301configured by $0, generated by GNU Autoconf 2.59,
47935194
NN
17302 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17303
8ab705be 17304Copyright (C) 2003 Free Software Foundation, Inc.
47935194
NN
17305This config.status script is free software; the Free Software Foundation
17306gives unlimited permission to copy, distribute and modify it."
17307srcdir=$srcdir
17308INSTALL="$INSTALL"
17309_ACEOF
17310
17311cat >>$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.
17314ac_need_defaults=:
17315while test $# != 0
17316do
17317 case $1 in
17318 --*=*)
17319 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17320 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17321 ac_shift=:
17322 ;;
17323 -*)
17324 ac_option=$1
17325 ac_optarg=$2
17326 ac_shift=shift
17327 ;;
17328 *) # This is not an option, so the user has probably given explicit
17329 # arguments.
17330 ac_option=$1
17331 ac_need_defaults=false;;
1530be84
TT
17332 esac
17333
47935194
NN
17334 case $ac_option in
17335 # Handling of the options.
17336_ACEOF
17337cat >>$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
17345Try \`$0 --help' for more information." >&5
17346echo "$as_me: error: ambiguous option: $1
17347Try \`$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=: ;;
17364
17365 # This is an error.
17366 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17367Try \`$0 --help' for more information." >&5
17368echo "$as_me: error: unrecognized option: $1
17369Try \`$0 --help' for more information." >&2;}
17370 { (exit 1); exit 1; }; } ;;
17371
17372 *) ac_config_targets="$ac_config_targets $1" ;;
17373
1530be84 17374 esac
47935194
NN
17375 shift
17376done
1530be84 17377
47935194
NN
17378ac_configure_extra_args=
17379
17380if $ac_cs_silent; then
17381 exec 6>/dev/null
17382 ac_configure_extra_args="$ac_configure_extra_args --silent"
17383fi
17384
17385_ACEOF
17386cat >>$CONFIG_STATUS <<_ACEOF
17387if \$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
17390fi
17391
1cf3d07d
SE
17392_ACEOF
17393
17394cat >>$CONFIG_STATUS <<_ACEOF
17395#
17396# INIT-COMMANDS section.
17397#
17398
17399
17400srcdir="$srcdir"
17401host="$host"
17402target="$target"
17403with_multisubdir="$with_multisubdir"
17404with_multisrctop="$with_multisrctop"
17405with_target_subdir="$with_target_subdir"
17406ac_configure_args="${multilib_arg} ${ac_configure_args}"
17407multi_basedir="$multi_basedir"
17408CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17409CC="$CC"
17410AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17411
17412
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
17416
17417sed_quote_subst='$sed_quote_subst'
17418double_quote_subst='$double_quote_subst'
17419delay_variable_subst='$delay_variable_subst'
17420macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17421macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17422enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17423enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17424pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17425enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17426host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17427host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17428host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17429build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17430build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17431build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17432SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17433Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17434GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17435EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17436FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17437LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17438NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17439LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17440max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17441ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17442exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17443lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17444lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17445lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17446reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17447reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
93e92f52 17448OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
17449deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17450file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17451AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17452AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17453STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17454RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17455old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17456old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17457old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17458CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17459CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17460compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17461GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17462lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17463lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17464lt_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"`'
93e92f52 17465lt_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"`'
1cf3d07d
SE
17466objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17467SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17468ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17469MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17470lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17471lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17472lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17473lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17474lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17475need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
93e92f52
PG
17476DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17477NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17478LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17479OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17480OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
17481libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17482shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17483extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17484archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17485enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17486export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17487whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17488compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17489old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17490old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17491archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17492archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17493module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17494module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17495with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17496allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17497no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17498hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17499hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17500hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17501hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17502hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17503hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17504hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17505hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17506inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17507link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17508fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17509always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17510export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17511exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17512include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17513prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17514file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17515variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17516need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17517need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17518version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17519runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17520shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17521shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17522libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17523library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17524soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17525postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17526postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17527finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17528finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17529hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17530sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17531sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17532hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17533enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17534enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17535enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17536old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17537striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
93e92f52 17538compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
17539predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17540postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17541predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17542postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17543compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17544LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17545old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17546compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17547GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17548lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17549lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17550lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17551lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17552lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17553archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17554enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17555export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17556whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17557compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17558old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17559old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17560archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17561archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17562module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17563module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17564with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17565allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17566no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17567hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17568hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17569hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17570hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17571hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17572hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17573hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17574hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17575inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17576link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17577fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17578always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17579export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17580exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17581include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17582prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17583file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17584hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
93e92f52 17585compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
17586predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17587postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17588predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17589postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17590compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17591
17592LTCC='$LTCC'
17593LTCFLAGS='$LTCFLAGS'
17594compiler='$compiler_DEFAULT'
17595
17596# Quote evaled strings.
17597for var in SED \
17598GREP \
17599EGREP \
17600FGREP \
17601LD \
17602NM \
17603LN_S \
17604lt_SP2NL \
17605lt_NL2SP \
17606reload_flag \
93e92f52 17607OBJDUMP \
1cf3d07d
SE
17608deplibs_check_method \
17609file_magic_cmd \
17610AR \
17611AR_FLAGS \
17612STRIP \
17613RANLIB \
17614CC \
17615CFLAGS \
17616compiler \
17617lt_cv_sys_global_symbol_pipe \
17618lt_cv_sys_global_symbol_to_cdecl \
17619lt_cv_sys_global_symbol_to_c_name_address \
93e92f52 17620lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
17621SHELL \
17622ECHO \
17623lt_prog_compiler_no_builtin_flag \
17624lt_prog_compiler_wl \
17625lt_prog_compiler_pic \
17626lt_prog_compiler_static \
17627lt_cv_prog_compiler_c_o \
17628need_locks \
93e92f52
PG
17629DSYMUTIL \
17630NMEDIT \
17631LIPO \
17632OTOOL \
17633OTOOL64 \
1cf3d07d
SE
17634shrext_cmds \
17635export_dynamic_flag_spec \
17636whole_archive_flag_spec \
17637compiler_needs_object \
17638with_gnu_ld \
17639allow_undefined_flag \
17640no_undefined_flag \
17641hardcode_libdir_flag_spec \
17642hardcode_libdir_flag_spec_ld \
17643hardcode_libdir_separator \
17644fix_srcfile_path \
17645exclude_expsyms \
17646include_expsyms \
17647file_list_spec \
17648variables_saved_for_relink \
17649libname_spec \
17650library_names_spec \
17651soname_spec \
17652finish_eval \
17653old_striplib \
17654striplib \
93e92f52 17655compiler_lib_search_dirs \
1cf3d07d
SE
17656predep_objects \
17657postdep_objects \
17658predeps \
17659postdeps \
17660compiler_lib_search_path \
17661LD_CXX \
17662compiler_CXX \
17663lt_prog_compiler_no_builtin_flag_CXX \
17664lt_prog_compiler_wl_CXX \
17665lt_prog_compiler_pic_CXX \
17666lt_prog_compiler_static_CXX \
17667lt_cv_prog_compiler_c_o_CXX \
17668export_dynamic_flag_spec_CXX \
17669whole_archive_flag_spec_CXX \
17670compiler_needs_object_CXX \
17671with_gnu_ld_CXX \
17672allow_undefined_flag_CXX \
17673no_undefined_flag_CXX \
17674hardcode_libdir_flag_spec_CXX \
17675hardcode_libdir_flag_spec_ld_CXX \
17676hardcode_libdir_separator_CXX \
17677fix_srcfile_path_CXX \
17678exclude_expsyms_CXX \
17679include_expsyms_CXX \
17680file_list_spec_CXX \
93e92f52 17681compiler_lib_search_dirs_CXX \
1cf3d07d
SE
17682predep_objects_CXX \
17683postdep_objects_CXX \
17684predeps_CXX \
17685postdeps_CXX \
17686compiler_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\\"\\\`\\\\\\""
17690 ;;
17691 *)
17692 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17693 ;;
17694 esac
17695done
17696
17697# Double-quote double-evaled strings.
17698for var in reload_cmds \
17699old_postinstall_cmds \
17700old_postuninstall_cmds \
17701old_archive_cmds \
17702extract_expsyms_cmds \
17703old_archive_from_new_cmds \
17704old_archive_from_expsyms_cmds \
17705archive_cmds \
17706archive_expsym_cmds \
17707module_cmds \
17708module_expsym_cmds \
17709export_symbols_cmds \
17710prelink_cmds \
17711postinstall_cmds \
17712postuninstall_cmds \
17713finish_cmds \
17714sys_lib_search_path_spec \
17715sys_lib_dlsearch_path_spec \
17716old_archive_cmds_CXX \
17717old_archive_from_new_cmds_CXX \
17718old_archive_from_expsyms_cmds_CXX \
17719archive_cmds_CXX \
17720archive_expsym_cmds_CXX \
17721module_cmds_CXX \
17722module_expsym_cmds_CXX \
17723export_symbols_cmds_CXX \
17724prelink_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\\"\\\`\\\\\\""
17728 ;;
17729 *)
17730 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17731 ;;
17732 esac
17733done
17734
17735# Fix-up fallback echo if it was mangled by the above quoting rules.
17736case \$lt_ECHO in
17737*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17738 ;;
17739esac
17740
17741ac_aux_dir='$ac_aux_dir'
17742xsi_shell='$xsi_shell'
17743lt_shell_append='$lt_shell_append'
17744
17745# See if we are running on zsh, and set the options which allow our
17746# commands through without removal of \ escapes INIT.
17747if test -n "\${ZSH_VERSION+set}" ; then
17748 setopt NO_GLOB_SUBST
17749fi
17750
17751
17752 PACKAGE='$PACKAGE'
17753 VERSION='$VERSION'
17754 TIMESTAMP='$TIMESTAMP'
17755 RM='$RM'
17756 ofile='$ofile'
17757
17758
47935194 17759
1530be84 17760
bf9a420e 17761
1530be84 17762
47935194
NN
17763_ACEOF
17764
17765
17766
17767cat >>$CONFIG_STATUS <<\_ACEOF
17768for ac_config_target in $ac_config_targets
17769do
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" ;;
785fad0a 17774 "threads.mk" ) CONFIG_FILES="$CONFIG_FILES threads.mk" ;;
bf9a420e
PB
17775 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17776 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1cf3d07d 17777 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
4109fe85 17778 "include/gc_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_config.h" ;;
9a060b37 17779 "include/gc_ext_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_ext_config.h" ;;
47935194
NN
17780 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17781echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17782 { (exit 1); exit 1; }; };;
17783 esac
17784done
17785
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.
17790if $ac_need_defaults; then
17791 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4109fe85 17792 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
47935194
NN
17793 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17794fi
17795
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 ||
17801{
17802 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17803 trap '{ (exit 1); exit 1; }' 1 2 13 15
17804}
17805
17806# Create a (secure) tmp directory for tmp files.
17807
17808{
17809 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17810 test -n "$tmp" && test -d "$tmp"
17811} ||
17812{
17813 tmp=./confstat$$-$RANDOM
17814 (umask 077 && mkdir $tmp)
17815} ||
17816{
17817 echo "$me: cannot create a temporary directory in ." >&2
17818 { (exit 1); exit 1; }
17819}
17820
17821_ACEOF
17822
17823cat >>$CONFIG_STATUS <<_ACEOF
17824
17825#
17826# CONFIG_FILES section.
17827#
17828
17829# No need to generate the scripts if there are no CONFIG_FILES.
17830# This happens for instance when ./config.status config.h
17831if 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
17835s,@SHELL@,$SHELL,;t t
17836s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17837s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17838s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17839s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17840s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17841s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17842s,@exec_prefix@,$exec_prefix,;t t
17843s,@prefix@,$prefix,;t t
17844s,@program_transform_name@,$program_transform_name,;t t
17845s,@bindir@,$bindir,;t t
17846s,@sbindir@,$sbindir,;t t
17847s,@libexecdir@,$libexecdir,;t t
17848s,@datadir@,$datadir,;t t
17849s,@sysconfdir@,$sysconfdir,;t t
17850s,@sharedstatedir@,$sharedstatedir,;t t
17851s,@localstatedir@,$localstatedir,;t t
17852s,@libdir@,$libdir,;t t
17853s,@includedir@,$includedir,;t t
17854s,@oldincludedir@,$oldincludedir,;t t
17855s,@infodir@,$infodir,;t t
17856s,@mandir@,$mandir,;t t
17857s,@build_alias@,$build_alias,;t t
17858s,@host_alias@,$host_alias,;t t
17859s,@target_alias@,$target_alias,;t t
17860s,@DEFS@,$DEFS,;t t
17861s,@ECHO_C@,$ECHO_C,;t t
17862s,@ECHO_N@,$ECHO_N,;t t
17863s,@ECHO_T@,$ECHO_T,;t t
17864s,@LIBS@,$LIBS,;t t
bf9a420e 17865s,@multi_basedir@,$multi_basedir,;t t
47935194
NN
17866s,@build@,$build,;t t
17867s,@build_cpu@,$build_cpu,;t t
17868s,@build_vendor@,$build_vendor,;t t
17869s,@build_os@,$build_os,;t t
17870s,@host@,$host,;t t
17871s,@host_cpu@,$host_cpu,;t t
17872s,@host_vendor@,$host_vendor,;t t
17873s,@host_os@,$host_os,;t t
17874s,@target@,$target,;t t
17875s,@target_cpu@,$target_cpu,;t t
17876s,@target_vendor@,$target_vendor,;t t
17877s,@target_os@,$target_os,;t t
13b040f1 17878s,@target_noncanonical@,$target_noncanonical,;t t
47935194
NN
17879s,@mkinstalldirs@,$mkinstalldirs,;t t
17880s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17881s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17882s,@INSTALL_DATA@,$INSTALL_DATA,;t t
bf9a420e 17883s,@CYGPATH_W@,$CYGPATH_W,;t t
47935194
NN
17884s,@PACKAGE@,$PACKAGE,;t t
17885s,@VERSION@,$VERSION,;t t
17886s,@ACLOCAL@,$ACLOCAL,;t t
17887s,@AUTOCONF@,$AUTOCONF,;t t
17888s,@AUTOMAKE@,$AUTOMAKE,;t t
17889s,@AUTOHEADER@,$AUTOHEADER,;t t
17890s,@MAKEINFO@,$MAKEINFO,;t t
bf9a420e
PB
17891s,@install_sh@,$install_sh,;t t
17892s,@STRIP@,$STRIP,;t t
17893s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17894s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17895s,@mkdir_p@,$mkdir_p,;t t
17896s,@AWK@,$AWK,;t t
47935194 17897s,@SET_MAKE@,$SET_MAKE,;t t
bf9a420e 17898s,@am__leading_dot@,$am__leading_dot,;t t
4109fe85
BM
17899s,@AMTAR@,$AMTAR,;t t
17900s,@am__tar@,$am__tar,;t t
17901s,@am__untar@,$am__untar,;t t
47935194 17902s,@CC@,$CC,;t t
47935194
NN
17903s,@ac_ct_CC@,$ac_ct_CC,;t t
17904s,@EXEEXT@,$EXEEXT,;t t
17905s,@OBJEXT@,$OBJEXT,;t t
bf9a420e
PB
17906s,@DEPDIR@,$DEPDIR,;t t
17907s,@am__include@,$am__include,;t t
17908s,@am__quote@,$am__quote,;t t
17909s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17910s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17911s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17912s,@CCDEPMODE@,$CCDEPMODE,;t t
17913s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17914s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
47935194 17915s,@CXX@,$CXX,;t t
47935194 17916s,@ac_ct_CXX@,$ac_ct_CXX,;t t
bf9a420e
PB
17917s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17918s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17919s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
e22db4bf
NN
17920s,@CFLAGS@,$CFLAGS,;t t
17921s,@CXXFLAGS@,$CXXFLAGS,;t t
7664e6f8
NN
17922s,@CCAS@,$CCAS,;t t
17923s,@CCASFLAGS@,$CCASFLAGS,;t t
47935194
NN
17924s,@AS@,$AS,;t t
17925s,@ac_ct_AS@,$ac_ct_AS,;t t
17926s,@AR@,$AR,;t t
17927s,@ac_ct_AR@,$ac_ct_AR,;t t
17928s,@RANLIB@,$RANLIB,;t t
17929s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17930s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17931s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17932s,@MAINT@,$MAINT,;t t
17933s,@GC_CFLAGS@,$GC_CFLAGS,;t t
47935194 17934s,@LIBTOOL@,$LIBTOOL,;t t
1cf3d07d
SE
17935s,@SED@,$SED,;t t
17936s,@EGREP@,$EGREP,;t t
17937s,@FGREP@,$FGREP,;t t
17938s,@GREP@,$GREP,;t t
17939s,@LD@,$LD,;t t
17940s,@DUMPBIN@,$DUMPBIN,;t t
17941s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
17942s,@NM@,$NM,;t t
17943s,@LN_S@,$LN_S,;t t
93e92f52
PG
17944s,@OBJDUMP@,$OBJDUMP,;t t
17945s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
1cf3d07d 17946s,@lt_ECHO@,$lt_ECHO,;t t
93e92f52
PG
17947s,@DSYMUTIL@,$DSYMUTIL,;t t
17948s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
17949s,@NMEDIT@,$NMEDIT,;t t
17950s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
17951s,@LIPO@,$LIPO,;t t
17952s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
17953s,@OTOOL@,$OTOOL,;t t
17954s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
17955s,@OTOOL64@,$OTOOL64,;t t
17956s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
1cf3d07d 17957s,@CPP@,$CPP,;t t
e22db4bf 17958s,@CPPFLAGS@,$CPPFLAGS,;t t
1cf3d07d
SE
17959s,@LDFLAGS@,$LDFLAGS,;t t
17960s,@CXXCPP@,$CXXCPP,;t t
47935194
NN
17961s,@THREADLIBS@,$THREADLIBS,;t t
17962s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
17963s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
53630715 17964s,@extra_ldflags_libgc@,$extra_ldflags_libgc,;t t
47935194
NN
17965s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
17966s,@target_all@,$target_all,;t t
47935194
NN
17967s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
17968s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
bf9a420e 17969s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
47935194
NN
17970s,@addobjs@,$addobjs,;t t
17971s,@addincludes@,$addincludes,;t t
17972s,@addlibs@,$addlibs,;t t
17973s,@addtests@,$addtests,;t t
47935194
NN
17974s,@MY_CFLAGS@,$MY_CFLAGS,;t t
17975s,@toolexecdir@,$toolexecdir,;t t
17976s,@toolexeclibdir@,$toolexeclibdir,;t t
17977s,@LIBOBJS@,$LIBOBJS,;t t
17978s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17979CEOF
17980
17981_ACEOF
17982
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
17997 fi
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
8ab705be 18008 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
47935194 18009 else
8ab705be 18010 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
47935194
NN
18011 fi
18012 ac_sed_frag=`expr $ac_sed_frag + 1`
18013 ac_beg=$ac_end
18014 ac_end=`expr $ac_end + $ac_max_sed_lines`
18015 fi
18016 done
18017 if test -z "$ac_sed_cmds"; then
18018 ac_sed_cmds=cat
18019 fi
18020fi # test -n "$CONFIG_FILES"
18021
18022_ACEOF
18023cat >>$CONFIG_STATUS <<\_ACEOF
18024for 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
8ab705be
KC
18028 cat >$tmp/stdin
18029 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18030 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47935194 18031 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8ab705be 18032 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47935194
NN
18033 * ) ac_file_in=$ac_file.in ;;
18034 esac
18035
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\(.*[^/]\)//*[^/][^/]*/*$' \| \
8ab705be
KC
18039 X"$ac_file" : 'X\(//\)[^/]' \| \
18040 X"$ac_file" : 'X\(//\)$' \| \
18041 X"$ac_file" : 'X\(/\)' \| \
18042 . : '\(.\)' 2>/dev/null ||
47935194
NN
18043echo 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\(.*[^/]\)//*[^/][^/]*/*$' \| \
8ab705be
KC
18058 X"$as_dir" : 'X\(//\)[^/]' \| \
18059 X"$as_dir" : 'X\(//\)$' \| \
18060 X"$as_dir" : 'X\(/\)' \| \
18061 . : '\(.\)' 2>/dev/null ||
47935194
NN
18062echo 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
18071echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18072 { (exit 1); exit 1; }; }; }
18073
18074 ac_builddir=.
18075
18076if 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'`
18080else
18081 ac_dir_suffix= ac_top_builddir=
18082fi
18083
18084case $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 ;;
18098esac
8ab705be
KC
18099
18100# Do not use `cd foo && pwd` to compute absolute paths, because
18101# the directories may not exist.
18102case `pwd` in
18103.) ac_abs_builddir="$ac_dir";;
18104*)
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;;
18110esac
18111case $ac_abs_builddir in
18112.) ac_abs_top_builddir=${ac_top_builddir}.;;
18113*)
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;;
18119esac
18120case $ac_abs_builddir in
18121.) ac_abs_srcdir=$ac_srcdir;;
18122*)
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;;
18128esac
18129case $ac_abs_builddir in
18130.) ac_abs_top_srcdir=$ac_top_srcdir;;
18131*)
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;;
18137esac
47935194
NN
18138
18139
18140 case $INSTALL in
18141 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18142 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18143 esac
18144
5572488d
KC
18145 if test x"$ac_file" != x-; then
18146 { echo "$as_me:$LINENO: creating $ac_file" >&5
18147echo "$as_me: creating $ac_file" >&6;}
18148 rm -f "$ac_file"
18149 fi
47935194
NN
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. "
18157 fi
18158 configure_input=$configure_input"Generated from `echo $ac_file_in |
8ab705be 18159 sed 's,.*/,,'` by configure."
47935194
NN
18160
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 [\\/$]*)
8ab705be
KC
18168 # Absolute (can't be DOS-style, as IFS=:)
18169 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47935194
NN
18170echo "$as_me: error: cannot find input file: $f" >&2;}
18171 { (exit 1); exit 1; }; }
8ab705be 18172 echo "$f";;
47935194 18173 *) # Relative
8ab705be
KC
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
47935194
NN
18183echo "$as_me: error: cannot find input file: $f" >&2;}
18184 { (exit 1); exit 1; }; }
8ab705be 18185 fi;;
47935194
NN
18186 esac
18187 done` || { (exit 1); exit 1; }
47935194
NN
18188_ACEOF
18189cat >>$CONFIG_STATUS <<_ACEOF
18190 sed "$ac_vpsub
18191$extrasub
18192_ACEOF
18193cat >>$CONFIG_STATUS <<\_ACEOF
18194:t
18195/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18196s,@configure_input@,$configure_input,;t t
18197s,@srcdir@,$ac_srcdir,;t t
18198s,@abs_srcdir@,$ac_abs_srcdir,;t t
18199s,@top_srcdir@,$ac_top_srcdir,;t t
18200s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18201s,@builddir@,$ac_builddir,;t t
18202s,@abs_builddir@,$ac_abs_builddir,;t t
18203s,@top_builddir@,$ac_top_builddir,;t t
18204s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18205s,@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
18213 fi
18214
18215done
18216_ACEOF
18217cat >>$CONFIG_STATUS <<\_ACEOF
18218
4109fe85
BM
18219#
18220# CONFIG_HEADER section.
18221#
18222
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.
18225#
18226# ac_d sets the value in "#define NAME VALUE" lines.
18227ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18228ac_dB='[ ].*$,\1#\2'
18229ac_dC=' '
18230ac_dD=',;t'
18231# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18232ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18233ac_uB='$,\1#\2define\3'
18234ac_uC=' '
18235ac_uD=',;t'
18236
18237for 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
18248
18249 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18250echo "$as_me: creating $ac_file" >&6;}
18251
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
18261echo "$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
18275echo "$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
18282
18283_ACEOF
18284
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.
18292rm -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.
18295#
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'.
18299cat >confdef2sed.sed <<\_ACEOF
18300s/[\\&,]/\\&/g
18301s,[\\$`],\\&,g
18302t clear
18303: clear
18304s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18305t end
18306s,^[ ]*#[ ]*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.
18312uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18313sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18314rm -f confdef2sed.sed
18315
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.
18319cat >>conftest.undefs <<\_ACEOF
18320s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18321_ACEOF
18322
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).
18325echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18326echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18327echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18328echo ' :' >>$CONFIG_STATUS
18329rm -f conftest.tail
18330while grep . conftest.defines >/dev/null
18331do
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
18348done
18349rm -f conftest.defines
18350echo ' fi # grep' >>$CONFIG_STATUS
18351echo >>$CONFIG_STATUS
18352
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).
18355echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18356rm -f conftest.tail
18357while grep . conftest.undefs >/dev/null
18358do
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
18375done
18376rm -f conftest.undefs
18377
18378cat >>$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
18386 fi
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
18392echo "$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 ||
18400echo 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 ||
18419echo 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
18428echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18429 { (exit 1); exit 1; }; }; }
18430
18431 rm -f $ac_file
18432 mv $tmp/config.h $ac_file
18433 fi
18434 else
18435 cat $tmp/config.h
18436 rm -f $tmp/config.h
18437 fi
18438# Compute $ac_file's index in $config_headers.
18439_am_stamp_count=1
18440for _am_header in $config_headers :; do
18441 case $_am_header in
18442 $ac_file | $ac_file:* )
18443 break ;;
18444 * )
18445 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18446 esac
18447done
18448echo "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 ||
18454echo 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
18460done
18461_ACEOF
18462cat >>$CONFIG_STATUS <<\_ACEOF
18463
47935194
NN
18464#
18465# CONFIG_COMMANDS section.
18466#
18467for 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\(.*[^/]\)//*[^/][^/]*/*$' \| \
8ab705be
KC
18472 X"$ac_dest" : 'X\(//\)[^/]' \| \
18473 X"$ac_dest" : 'X\(//\)$' \| \
18474 X"$ac_dest" : 'X\(/\)' \| \
18475 . : '\(.\)' 2>/dev/null ||
47935194
NN
18476echo 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'`
8ab705be
KC
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 ||
18495echo 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
18504echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18505 { (exit 1); exit 1; }; }; }
18506
47935194
NN
18507 ac_builddir=.
18508
18509if 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'`
18513else
18514 ac_dir_suffix= ac_top_builddir=
18515fi
18516
18517case $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 ;;
18531esac
8ab705be
KC
18532
18533# Do not use `cd foo && pwd` to compute absolute paths, because
18534# the directories may not exist.
18535case `pwd` in
18536.) ac_abs_builddir="$ac_dir";;
18537*)
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;;
18543esac
18544case $ac_abs_builddir in
18545.) ac_abs_top_builddir=${ac_top_builddir}.;;
18546*)
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;;
18552esac
18553case $ac_abs_builddir in
18554.) ac_abs_srcdir=$ac_srcdir;;
18555*)
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;;
18561esac
18562case $ac_abs_builddir in
18563.) ac_abs_top_srcdir=$ac_top_srcdir;;
18564*)
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;;
18570esac
47935194
NN
18571
18572
18573 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18574echo "$as_me: executing $ac_dest commands" >&6;}
18575 case $ac_dest in
bf9a420e
PB
18576 default-1 )
18577# Only add multilib support code if we just rebuilt the top-level
18578# Makefile.
18579case " $CONFIG_FILES " in
18580 *" Makefile "*)
18581 ac_file=Makefile . ${multi_basedir}/config-ml.in
18582 ;;
18583esac ;;
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 ||
18600echo 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
18608 fi
4109fe85
BM
18609 # Extract the definition of DEPDIR, am__include, and am__quote
18610 # from the Makefile without running `make'.
bf9a420e
PB
18611 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18612 test -z "$DEPDIR" && continue
4109fe85
BM
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"`
bf9a420e
PB
18616 # When using ansi2knr, U may be empty or an underscore; expand it
18617 U=`sed -n 's/^U = //p' < "$mf"`
4109fe85
BM
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" | \
bf9a420e
PB
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 ||
18633echo 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 ||
18652echo 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
18661echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18662 { (exit 1); exit 1; }; }; }
1530be84 18663
bf9a420e
PB
18664 # echo "creating $dirpart/$file"
18665 echo '# dummy' > "$dirpart/$file"
18666 done
18667done
1cf3d07d
SE
18668 ;;
18669 libtool )
18670
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
18675 fi
18676
18677 cfgfile="${ofile}T"
18678 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18679 $RM "$cfgfile"
18680
18681 cat <<_LT_EOF >> "$cfgfile"
18682#! $SHELL
18683
18684# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
93e92f52 18685# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
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.
18688#
93e92f52
PG
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
1cf3d07d 18692#
93e92f52 18693# This file is part of GNU Libtool.
1cf3d07d 18694#
93e92f52
PG
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.
1cf3d07d 18699#
93e92f52
PG
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.
1cf3d07d 18704#
93e92f52
PG
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.
1cf3d07d 18709#
93e92f52
PG
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.
1cf3d07d
SE
18715
18716
18717# The names of the tagged configurations supported by this script.
18718available_tags="CXX "
18719
18720# ### BEGIN LIBTOOL CONFIG
18721
18722# Which release of libtool.m4 was used?
18723macro_version=$macro_version
18724macro_revision=$macro_revision
18725
18726# Whether or not to build shared libraries.
18727build_libtool_libs=$enable_shared
18728
18729# Whether or not to build static libraries.
18730build_old_libs=$enable_static
18731
18732# What type of objects to build.
18733pic_mode=$pic_mode
18734
18735# Whether or not to optimize for fast installation.
18736fast_install=$enable_fast_install
18737
18738# The host system.
18739host_alias=$host_alias
18740host=$host
18741host_os=$host_os
18742
18743# The build system.
18744build_alias=$build_alias
18745build=$build
18746build_os=$build_os
18747
18748# A sed program that does not truncate output.
18749SED=$lt_SED
18750
18751# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18752Xsed="\$SED -e 1s/^X//"
18753
18754# A grep program that handles long lines.
18755GREP=$lt_GREP
18756
18757# An ERE matcher.
18758EGREP=$lt_EGREP
18759
18760# A literal string matcher.
18761FGREP=$lt_FGREP
18762
18763# A BSD- or MS-compatible name lister.
18764NM=$lt_NM
18765
18766# Whether we need soft or hard links.
18767LN_S=$lt_LN_S
18768
18769# What is the maximum length of a command?
18770max_cmd_len=$max_cmd_len
18771
18772# Object file suffix (normally "o").
18773objext=$ac_objext
18774
18775# Executable file suffix (normally "").
18776exeext=$exeext
18777
18778# whether the shell understands "unset".
18779lt_unset=$lt_unset
18780
18781# turn spaces into newlines.
18782SP2NL=$lt_lt_SP2NL
18783
18784# turn newlines into spaces.
18785NL2SP=$lt_lt_NL2SP
18786
18787# How to create reloadable object files.
18788reload_flag=$lt_reload_flag
18789reload_cmds=$lt_reload_cmds
18790
93e92f52
PG
18791# An object symbol dumper.
18792OBJDUMP=$lt_OBJDUMP
18793
1cf3d07d
SE
18794# Method to check whether dependent libraries are shared objects.
18795deplibs_check_method=$lt_deplibs_check_method
18796
18797# Command to use when deplibs_check_method == "file_magic".
18798file_magic_cmd=$lt_file_magic_cmd
18799
18800# The archiver.
18801AR=$lt_AR
18802AR_FLAGS=$lt_AR_FLAGS
18803
18804# A symbol stripping program.
18805STRIP=$lt_STRIP
18806
18807# Commands used to install an old-style archive.
18808RANLIB=$lt_RANLIB
18809old_postinstall_cmds=$lt_old_postinstall_cmds
18810old_postuninstall_cmds=$lt_old_postuninstall_cmds
18811
18812# A C compiler.
18813LTCC=$lt_CC
18814
18815# LTCC compiler flags.
18816LTCFLAGS=$lt_CFLAGS
18817
18818# Take the output of nm and produce a listing of raw symbols and C names.
18819global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18820
18821# Transform the output of nm in a proper C declaration.
18822global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18823
18824# Transform the output of nm in a C name address pair.
18825global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18826
93e92f52
PG
18827# Transform the output of nm in a C name address pair when lib prefix is needed.
18828global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18829
1cf3d07d
SE
18830# The name of the directory that contains temporary libtool files.
18831objdir=$objdir
18832
18833# Shell to use when invoking shell scripts.
18834SHELL=$lt_SHELL
18835
18836# An echo program that does not interpret backslashes.
18837ECHO=$lt_ECHO
18838
18839# Used to examine libraries when file_magic_cmd begins with "file".
18840MAGIC_CMD=$MAGIC_CMD
18841
18842# Must we lock files when doing compilation?
18843need_locks=$lt_need_locks
18844
93e92f52
PG
18845# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18846DSYMUTIL=$lt_DSYMUTIL
18847
18848# Tool to change global to local symbols on Mac OS X.
18849NMEDIT=$lt_NMEDIT
18850
18851# Tool to manipulate fat objects and archives on Mac OS X.
18852LIPO=$lt_LIPO
18853
18854# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18855OTOOL=$lt_OTOOL
18856
18857# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18858OTOOL64=$lt_OTOOL64
18859
1cf3d07d
SE
18860# Old archive suffix (normally "a").
18861libext=$libext
18862
18863# Shared library suffix (normally ".so").
18864shrext_cmds=$lt_shrext_cmds
18865
18866# The commands to extract the exported symbol list from a shared archive.
18867extract_expsyms_cmds=$lt_extract_expsyms_cmds
18868
18869# Variables whose values should be saved in libtool wrapper scripts and
18870# restored at link time.
18871variables_saved_for_relink=$lt_variables_saved_for_relink
18872
18873# Do we need the "lib" prefix for modules?
18874need_lib_prefix=$need_lib_prefix
18875
18876# Do we need a version for libraries?
18877need_version=$need_version
18878
18879# Library versioning type.
18880version_type=$version_type
18881
18882# Shared library runtime path variable.
18883runpath_var=$runpath_var
18884
18885# Shared library path variable.
18886shlibpath_var=$shlibpath_var
18887
18888# Is shlibpath searched before the hard-coded library search path?
18889shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18890
18891# Format of library name prefix.
18892libname_spec=$lt_libname_spec
18893
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
18896library_names_spec=$lt_library_names_spec
18897
18898# The coded name of the library, if different from the real name.
18899soname_spec=$lt_soname_spec
18900
18901# Command to use after installation of a shared archive.
18902postinstall_cmds=$lt_postinstall_cmds
18903
18904# Command to use after uninstallation of a shared archive.
18905postuninstall_cmds=$lt_postuninstall_cmds
18906
18907# Commands used to finish a libtool library installation in a directory.
18908finish_cmds=$lt_finish_cmds
18909
18910# As "finish_cmds", except a single script fragment to be evaled but
18911# not shown.
18912finish_eval=$lt_finish_eval
18913
18914# Whether we should hardcode library paths into libraries.
18915hardcode_into_libs=$hardcode_into_libs
18916
18917# Compile-time system search path for libraries.
18918sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18919
18920# Run-time system search path for libraries.
18921sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18922
18923# Whether dlopen is supported.
18924dlopen_support=$enable_dlopen
18925
18926# Whether dlopen of programs is supported.
18927dlopen_self=$enable_dlopen_self
18928
18929# Whether dlopen of statically linked programs is supported.
18930dlopen_self_static=$enable_dlopen_self_static
18931
18932# Commands to strip libraries.
18933old_striplib=$lt_old_striplib
18934striplib=$lt_striplib
18935
18936
18937# The linker used to build libraries.
18938LD=$lt_LD
18939
18940# Commands used to build an old-style archive.
18941old_archive_cmds=$lt_old_archive_cmds
18942
18943# A language specific compiler.
18944CC=$lt_compiler
18945
18946# Is the compiler the GNU compiler?
18947with_gcc=$GCC
18948
18949# Compiler flag to turn off builtin functions.
18950no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18951
18952# How to pass a linker flag through the compiler.
18953wl=$lt_lt_prog_compiler_wl
18954
18955# Additional compiler flags for building library objects.
18956pic_flag=$lt_lt_prog_compiler_pic
18957
18958# Compiler flag to prevent dynamic linking.
18959link_static_flag=$lt_lt_prog_compiler_static
18960
18961# Does compiler simultaneously support -c and -o options?
18962compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18963
18964# Whether or not to add -lc for building shared libraries.
18965build_libtool_need_lc=$archive_cmds_need_lc
18966
18967# Whether or not to disallow shared libs when runtime libs are static.
18968allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18969
18970# Compiler flag to allow reflexive dlopens.
18971export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18972
18973# Compiler flag to generate shared objects directly from archives.
18974whole_archive_flag_spec=$lt_whole_archive_flag_spec
18975
18976# Whether the compiler copes with passing no objects directly.
18977compiler_needs_object=$lt_compiler_needs_object
18978
18979# Create an old-style archive from a shared archive.
18980old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18981
18982# Create a temporary old-style archive to link instead of a shared archive.
18983old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18984
18985# Commands used to build a shared archive.
18986archive_cmds=$lt_archive_cmds
18987archive_expsym_cmds=$lt_archive_expsym_cmds
18988
18989# Commands used to build a loadable module if different from building
18990# a shared archive.
18991module_cmds=$lt_module_cmds
18992module_expsym_cmds=$lt_module_expsym_cmds
18993
18994# Whether we are building with GNU ld or not.
18995with_gnu_ld=$lt_with_gnu_ld
18996
18997# Flag that allows shared libraries with undefined symbols to be built.
18998allow_undefined_flag=$lt_allow_undefined_flag
18999
19000# Flag that enforces no undefined symbols.
19001no_undefined_flag=$lt_no_undefined_flag
19002
19003# Flag to hardcode \$libdir into a binary during linking.
19004# This must work even if \$libdir does not exist
19005hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19006
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.
19009hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19010
19011# Whether we need a single "-rpath" flag with a separated argument.
19012hardcode_libdir_separator=$lt_hardcode_libdir_separator
19013
19014# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19015# DIR into the resulting binary.
19016hardcode_direct=$hardcode_direct
19017
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.
19022hardcode_direct_absolute=$hardcode_direct_absolute
19023
19024# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19025# into the resulting binary.
19026hardcode_minus_L=$hardcode_minus_L
19027
19028# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19029# into the resulting binary.
19030hardcode_shlibpath_var=$hardcode_shlibpath_var
19031
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.
19035hardcode_automatic=$hardcode_automatic
19036
19037# Set to yes if linker adds runtime paths of dependent libraries
19038# to runtime path list.
19039inherit_rpath=$inherit_rpath
19040
19041# Whether libtool must link a program against all its dependency libraries.
19042link_all_deplibs=$link_all_deplibs
19043
19044# Fix the shell variable \$srcfile for the compiler.
19045fix_srcfile_path=$lt_fix_srcfile_path
19046
19047# Set to "yes" if exported symbols are required.
19048always_export_symbols=$always_export_symbols
19049
19050# The commands to list exported symbols.
19051export_symbols_cmds=$lt_export_symbols_cmds
19052
19053# Symbols that should not be listed in the preloaded symbols.
19054exclude_expsyms=$lt_exclude_expsyms
19055
19056# Symbols that must always be exported.
19057include_expsyms=$lt_include_expsyms
19058
19059# Commands necessary for linking programs (against libraries) with templates.
19060prelink_cmds=$lt_prelink_cmds
19061
19062# Specify filename containing input files.
19063file_list_spec=$lt_file_list_spec
19064
19065# How to hardcode a shared library path into an executable.
19066hardcode_action=$hardcode_action
19067
93e92f52
PG
19068# The directories searched by this compiler when creating a shared library.
19069compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19070
1cf3d07d
SE
19071# Dependencies to place before and after the objects being linked to
19072# create a shared library.
19073predep_objects=$lt_predep_objects
19074postdep_objects=$lt_postdep_objects
19075predeps=$lt_predeps
19076postdeps=$lt_postdeps
19077
19078# The library search path used internally by the compiler when linking
19079# a shared library.
19080compiler_lib_search_path=$lt_compiler_lib_search_path
19081
19082# ### END LIBTOOL CONFIG
19083
19084_LT_EOF
19085
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.
19092if test "X${COLLECT_NAMES+set}" != Xset; then
19093 COLLECT_NAMES=
19094 export COLLECT_NAMES
19095fi
19096_LT_EOF
19097 ;;
19098 esac
19099
19100
19101ltmain="$ac_aux_dir/ltmain.sh"
19102
19103
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)
19110
19111 case $xsi_shell in
19112 yes)
19113 cat << \_LT_EOF >> "$cfgfile"
93e92f52 19114
1cf3d07d
SE
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.
19118func_dirname ()
19119{
19120 case ${1} in
19121 */*) func_dirname_result="${1%/*}${2}" ;;
19122 * ) func_dirname_result="${3}" ;;
19123 esac
19124}
19125
19126# func_basename file
19127func_basename ()
19128{
19129 func_basename_result="${1##*/}"
19130}
19131
93e92f52
PG
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.
19144func_dirname_and_basename ()
19145{
19146 case ${1} in
19147 */*) func_dirname_result="${1%/*}${2}" ;;
19148 * ) func_dirname_result="${3}" ;;
19149 esac
19150 func_basename_result="${1##*/}"
19151}
19152
1cf3d07d
SE
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).
19158func_stripname ()
19159{
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}"}
19165}
19166
19167# func_opt_split
19168func_opt_split ()
19169{
19170 func_opt_split_opt=${1%%=*}
19171 func_opt_split_arg=${1#*=}
19172}
19173
19174# func_lo2o object
19175func_lo2o ()
19176{
19177 case ${1} in
19178 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19179 *) func_lo2o_result=${1} ;;
19180 esac
19181}
93e92f52
PG
19182
19183# func_xform libobj-or-source
19184func_xform ()
19185{
19186 func_xform_result=${1%.*}.lo
19187}
19188
19189# func_arith arithmetic-term...
19190func_arith ()
19191{
19192 func_arith_result=$(( $* ))
19193}
19194
19195# func_len string
19196# STRING may not start with a hyphen.
19197func_len ()
19198{
19199 func_len_result=${#1}
19200}
19201
1cf3d07d
SE
19202_LT_EOF
19203 ;;
19204 *) # Bourne compatible functions.
19205 cat << \_LT_EOF >> "$cfgfile"
93e92f52 19206
1cf3d07d
SE
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.
19210func_dirname ()
19211{
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}"
19218 fi
19219}
19220
19221# func_basename file
19222func_basename ()
19223{
19224 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19225}
19226
93e92f52 19227
1cf3d07d
SE
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
19234func_stripname ()
19235{
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
19242}
19243
19244# sed scripts:
19245my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19246my_sed_long_arg='1s/^-[^=]*=//'
19247
19248# func_opt_split
19249func_opt_split ()
19250{
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"`
19253}
19254
19255# func_lo2o object
19256func_lo2o ()
19257{
19258 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19259}
93e92f52
PG
19260
19261# func_xform libobj-or-source
19262func_xform ()
19263{
19264 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19265}
19266
19267# func_arith arithmetic-term...
19268func_arith ()
19269{
19270 func_arith_result=`expr "$@"`
19271}
19272
19273# func_len string
19274# STRING may not start with a hyphen.
19275func_len ()
19276{
19277 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19278}
19279
1cf3d07d
SE
19280_LT_EOF
19281esac
19282
19283case $lt_shell_append in
19284 yes)
19285 cat << \_LT_EOF >> "$cfgfile"
19286
19287# func_append var value
19288# Append VALUE to the end of shell variable VAR.
19289func_append ()
19290{
19291 eval "$1+=\$2"
19292}
19293_LT_EOF
19294 ;;
19295 *)
19296 cat << \_LT_EOF >> "$cfgfile"
19297
19298# func_append var value
19299# Append VALUE to the end of shell variable VAR.
19300func_append ()
19301{
19302 eval "$1=\$$1\$2"
19303}
93e92f52 19304
1cf3d07d
SE
19305_LT_EOF
19306 ;;
19307 esac
19308
19309
19310 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19311 || (rm -f "$cfgfile"; exit 1)
19312
19313 mv -f "$cfgfile" "$ofile" ||
19314 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19315 chmod +x "$ofile"
19316
19317
19318 cat <<_LT_EOF >> "$ofile"
19319
19320# ### BEGIN LIBTOOL TAG CONFIG: CXX
19321
19322# The linker used to build libraries.
19323LD=$lt_LD_CXX
19324
19325# Commands used to build an old-style archive.
19326old_archive_cmds=$lt_old_archive_cmds_CXX
19327
19328# A language specific compiler.
19329CC=$lt_compiler_CXX
19330
19331# Is the compiler the GNU compiler?
19332with_gcc=$GCC_CXX
19333
19334# Compiler flag to turn off builtin functions.
19335no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19336
19337# How to pass a linker flag through the compiler.
19338wl=$lt_lt_prog_compiler_wl_CXX
19339
19340# Additional compiler flags for building library objects.
19341pic_flag=$lt_lt_prog_compiler_pic_CXX
19342
19343# Compiler flag to prevent dynamic linking.
19344link_static_flag=$lt_lt_prog_compiler_static_CXX
19345
19346# Does compiler simultaneously support -c and -o options?
19347compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19348
19349# Whether or not to add -lc for building shared libraries.
19350build_libtool_need_lc=$archive_cmds_need_lc_CXX
19351
19352# Whether or not to disallow shared libs when runtime libs are static.
19353allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19354
19355# Compiler flag to allow reflexive dlopens.
19356export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19357
19358# Compiler flag to generate shared objects directly from archives.
19359whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19360
19361# Whether the compiler copes with passing no objects directly.
19362compiler_needs_object=$lt_compiler_needs_object_CXX
19363
19364# Create an old-style archive from a shared archive.
19365old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19366
19367# Create a temporary old-style archive to link instead of a shared archive.
19368old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19369
19370# Commands used to build a shared archive.
19371archive_cmds=$lt_archive_cmds_CXX
19372archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19373
19374# Commands used to build a loadable module if different from building
19375# a shared archive.
19376module_cmds=$lt_module_cmds_CXX
19377module_expsym_cmds=$lt_module_expsym_cmds_CXX
19378
19379# Whether we are building with GNU ld or not.
19380with_gnu_ld=$lt_with_gnu_ld_CXX
19381
19382# Flag that allows shared libraries with undefined symbols to be built.
19383allow_undefined_flag=$lt_allow_undefined_flag_CXX
19384
19385# Flag that enforces no undefined symbols.
19386no_undefined_flag=$lt_no_undefined_flag_CXX
19387
19388# Flag to hardcode \$libdir into a binary during linking.
19389# This must work even if \$libdir does not exist
19390hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19391
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.
19394hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19395
19396# Whether we need a single "-rpath" flag with a separated argument.
19397hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19398
19399# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19400# DIR into the resulting binary.
19401hardcode_direct=$hardcode_direct_CXX
19402
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.
19407hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19408
19409# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19410# into the resulting binary.
19411hardcode_minus_L=$hardcode_minus_L_CXX
19412
19413# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19414# into the resulting binary.
19415hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19416
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.
19420hardcode_automatic=$hardcode_automatic_CXX
19421
19422# Set to yes if linker adds runtime paths of dependent libraries
19423# to runtime path list.
19424inherit_rpath=$inherit_rpath_CXX
19425
19426# Whether libtool must link a program against all its dependency libraries.
19427link_all_deplibs=$link_all_deplibs_CXX
19428
19429# Fix the shell variable \$srcfile for the compiler.
19430fix_srcfile_path=$lt_fix_srcfile_path_CXX
19431
19432# Set to "yes" if exported symbols are required.
19433always_export_symbols=$always_export_symbols_CXX
19434
19435# The commands to list exported symbols.
19436export_symbols_cmds=$lt_export_symbols_cmds_CXX
19437
19438# Symbols that should not be listed in the preloaded symbols.
19439exclude_expsyms=$lt_exclude_expsyms_CXX
19440
19441# Symbols that must always be exported.
19442include_expsyms=$lt_include_expsyms_CXX
19443
19444# Commands necessary for linking programs (against libraries) with templates.
19445prelink_cmds=$lt_prelink_cmds_CXX
19446
19447# Specify filename containing input files.
19448file_list_spec=$lt_file_list_spec_CXX
19449
19450# How to hardcode a shared library path into an executable.
19451hardcode_action=$hardcode_action_CXX
19452
93e92f52
PG
19453# The directories searched by this compiler when creating a shared library.
19454compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19455
1cf3d07d
SE
19456# Dependencies to place before and after the objects being linked to
19457# create a shared library.
19458predep_objects=$lt_predep_objects_CXX
19459postdep_objects=$lt_postdep_objects_CXX
19460predeps=$lt_predeps_CXX
19461postdeps=$lt_postdeps_CXX
19462
19463# The library search path used internally by the compiler when linking
19464# a shared library.
19465compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19466
19467# ### END LIBTOOL TAG CONFIG: CXX
19468_LT_EOF
19469
bf9a420e 19470 ;;
47935194
NN
19471 esac
19472done
19473_ACEOF
19474
19475cat >>$CONFIG_STATUS <<\_ACEOF
19476
19477{ (exit 0); exit 0; }
19478_ACEOF
1530be84 19479chmod +x $CONFIG_STATUS
47935194
NN
19480ac_clean_files=$ac_clean_files_save
19481
19482
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.
19491if 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; }
19502fi
1530be84 19503
This page took 2.813713 seconds and 5 git commands to generate.